@sankhyalabs/ezui 6.0.1 → 6.1.0-dev.1

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 (827) hide show
  1. package/dist/cjs/FormLayout-18853e70.js +27 -0
  2. package/dist/cjs/{constants-2714478b.js → constants-569271bc.js} +4 -0
  3. package/dist/cjs/ez-actions-button.cjs.entry.js +2 -2
  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-avatar.cjs.entry.js +50 -0
  8. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-button.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-card-item_2.cjs.entry.js +4 -1218
  13. package/dist/cjs/ez-chart.cjs.entry.js +2 -2
  14. package/dist/cjs/ez-check.cjs.entry.js +19 -11
  15. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  16. package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
  17. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +4 -4
  18. package/dist/cjs/ez-combo-box.cjs.entry.js +9 -14
  19. package/dist/cjs/ez-date-input.cjs.entry.js +3 -2
  20. package/dist/cjs/ez-date-time-input.cjs.entry.js +3 -2
  21. package/dist/cjs/ez-dialog.cjs.entry.js +7 -4
  22. package/dist/cjs/ez-double-list.cjs.entry.js +115 -54
  23. package/dist/cjs/{ez-dropdown_2.cjs.entry.js → ez-dropdown.cjs.entry.js} +2 -63
  24. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-filter-input_2.cjs.entry.js +257 -0
  26. package/dist/cjs/ez-form-view.cjs.entry.js +19 -11
  27. package/dist/cjs/ez-form.cjs.entry.js +87 -6
  28. package/dist/cjs/ez-grid.cjs.entry.js +1042 -145
  29. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-icon.cjs.entry.js +12 -6
  31. package/dist/cjs/ez-list.cjs.entry.js +3 -3
  32. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-modal-container.cjs.entry.js +8 -4
  34. package/dist/cjs/ez-modal.cjs.entry.js +6 -2
  35. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-number-input.cjs.entry.js +3 -2
  37. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-popup.cjs.entry.js +6 -2
  40. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  41. package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
  42. package/dist/cjs/ez-search-plus.cjs.entry.js +397 -0
  43. package/dist/cjs/ez-search-result-list.cjs.entry.js +97 -0
  44. package/dist/cjs/ez-search.cjs.entry.js +5 -4
  45. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-skeleton.cjs.entry.js +149 -0
  47. package/dist/cjs/ez-sortable-list.cjs.entry.js +3510 -0
  48. package/dist/cjs/ez-split-button.cjs.entry.js +16 -7
  49. package/dist/cjs/ez-split-item.cjs.entry.js +2 -2
  50. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  51. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  52. package/dist/cjs/ez-text-area.cjs.entry.js +25 -4
  53. package/dist/cjs/ez-text-input.cjs.entry.js +84 -101
  54. package/dist/cjs/ez-time-input.cjs.entry.js +3 -2
  55. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  56. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  57. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  58. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  59. package/dist/cjs/ezui.cjs.js +2 -2
  60. package/dist/cjs/filter-column.cjs.entry.js +15 -6
  61. package/dist/cjs/floating-ui.dom.esm-017acce4.js +1404 -0
  62. package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +24 -11
  63. package/dist/cjs/loader.cjs.js +2 -2
  64. package/dist/cjs/{DataBinder-e92314c2.js → search-column-27d1f72f.js} +73 -13
  65. package/dist/collection/collection-manifest.json +14 -0
  66. package/dist/collection/components/ez-avatar/ez-avatar.css +139 -0
  67. package/dist/collection/components/ez-avatar/ez-avatar.js +143 -0
  68. package/dist/collection/components/ez-check/ez-check.css +9 -0
  69. package/dist/collection/components/ez-check/ez-check.js +34 -9
  70. package/dist/collection/components/ez-combo-box/ez-combo-box.js +25 -14
  71. package/dist/collection/components/ez-date-input/ez-date-input.js +19 -1
  72. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +19 -1
  73. package/dist/collection/components/ez-dialog/ez-dialog.css +24 -21
  74. package/dist/collection/components/ez-dialog/ez-dialog.js +5 -2
  75. package/dist/collection/components/ez-double-list/doubleListHelper.js +9 -10
  76. package/dist/collection/components/ez-double-list/ez-double-list.css +6 -38
  77. package/dist/collection/components/ez-double-list/ez-double-list.js +168 -50
  78. package/dist/collection/components/ez-dropdown/ez-dropdown.js +1 -1
  79. package/dist/collection/components/ez-form/ez-form.js +124 -4
  80. package/dist/collection/components/ez-form-view/ez-form-view.css +8 -0
  81. package/dist/collection/components/ez-form-view/ez-form-view.js +21 -2
  82. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +3 -1
  83. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +6 -0
  84. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +148 -14
  85. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +23 -4
  86. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +30 -6
  87. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +2 -0
  88. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js +15 -0
  89. package/dist/collection/components/ez-grid/ez-grid.css +4 -0
  90. package/dist/collection/components/ez-grid/ez-grid.js +122 -15
  91. package/dist/collection/components/ez-grid/interfaces/IGridMode.js +1 -0
  92. package/dist/collection/components/ez-grid/interfaces/index.js +1 -0
  93. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +14 -5
  94. package/dist/collection/components/ez-icon/ez-icon.js +28 -5
  95. package/dist/collection/components/ez-list/ez-list.js +2 -2
  96. package/dist/collection/components/ez-modal/ez-modal.js +5 -1
  97. package/dist/collection/components/ez-modal-container/ez-modal-container.css +1 -0
  98. package/dist/collection/components/ez-modal-container/ez-modal-container.js +6 -2
  99. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js +1 -0
  100. package/dist/collection/components/ez-number-input/ez-number-input.js +19 -1
  101. package/dist/collection/components/ez-popup/ez-popup.js +5 -1
  102. package/dist/collection/components/ez-search/ez-search.js +19 -1
  103. package/dist/collection/components/ez-search-plus/ez-search-plus.css +373 -0
  104. package/dist/collection/components/ez-search-plus/ez-search-plus.js +960 -0
  105. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css +221 -0
  106. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +278 -0
  107. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js +25 -1
  108. package/dist/collection/components/ez-skeleton/ez-skeleton.css +122 -80
  109. package/dist/collection/components/ez-skeleton/ez-skeleton.js +210 -46
  110. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css +226 -0
  111. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js +582 -0
  112. package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
  113. package/dist/collection/components/ez-split-button/ez-split-button.js +87 -10
  114. package/dist/collection/components/ez-text-area/ez-text-area.js +47 -2
  115. package/dist/collection/components/ez-text-input/ez-text-input.css +27 -2
  116. package/dist/collection/components/ez-text-input/ez-text-input.js +124 -73
  117. package/dist/collection/components/ez-time-input/ez-time-input.js +19 -1
  118. package/dist/collection/components/ez-tooltip/ez-tooltip.css +54 -12
  119. package/dist/collection/components/ez-tooltip/ez-tooltip.js +240 -46
  120. package/dist/collection/utils/constants.js +2 -0
  121. package/dist/collection/utils/form/DataBinder.js +43 -14
  122. package/dist/collection/utils/form/interfaces/FormLayout.js +5 -0
  123. package/dist/collection/utils/form/interfaces/index.js +1 -1
  124. package/dist/collection/utils/form/test/DataBinder.test.js +14 -0
  125. package/dist/collection/utils/index.js +3 -0
  126. package/dist/collection/utils/search/types.js +7 -0
  127. package/dist/collection/utils/searchColumn/search-column.js +35 -0
  128. package/dist/custom-elements/index.d.ts +24 -0
  129. package/dist/custom-elements/index.js +6009 -467
  130. package/dist/esm/FormLayout-071d324c.js +27 -0
  131. package/dist/esm/constants-b036528f.js +7 -0
  132. package/dist/esm/ez-actions-button.entry.js +2 -2
  133. package/dist/esm/ez-alert-list.entry.js +1 -1
  134. package/dist/esm/ez-alert.entry.js +1 -1
  135. package/dist/esm/ez-application.entry.js +1 -1
  136. package/dist/esm/ez-avatar.entry.js +46 -0
  137. package/dist/esm/ez-badge.entry.js +1 -1
  138. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  139. package/dist/esm/ez-button.entry.js +1 -1
  140. package/dist/esm/ez-calendar.entry.js +1 -1
  141. package/dist/esm/ez-card-item_2.entry.js +2 -1216
  142. package/dist/esm/ez-chart.entry.js +2 -2
  143. package/dist/esm/ez-check.entry.js +19 -11
  144. package/dist/esm/ez-chip.entry.js +1 -1
  145. package/dist/esm/ez-collapsible-box.entry.js +2 -2
  146. package/dist/esm/ez-combo-box-list_3.entry.js +3 -3
  147. package/dist/esm/ez-combo-box.entry.js +9 -14
  148. package/dist/esm/ez-date-input.entry.js +3 -2
  149. package/dist/esm/ez-date-time-input.entry.js +3 -2
  150. package/dist/esm/ez-dialog.entry.js +7 -4
  151. package/dist/esm/ez-double-list.entry.js +116 -55
  152. package/dist/esm/{ez-dropdown_2.entry.js → ez-dropdown.entry.js} +3 -63
  153. package/dist/esm/ez-file-item.entry.js +1 -1
  154. package/dist/esm/ez-filter-input_2.entry.js +252 -0
  155. package/dist/esm/ez-form-view.entry.js +20 -12
  156. package/dist/esm/ez-form.entry.js +86 -5
  157. package/dist/esm/ez-grid.entry.js +1038 -141
  158. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  159. package/dist/esm/ez-icon.entry.js +12 -6
  160. package/dist/esm/ez-list.entry.js +3 -3
  161. package/dist/esm/ez-loading-bar.entry.js +1 -1
  162. package/dist/esm/ez-modal-container.entry.js +8 -4
  163. package/dist/esm/ez-modal.entry.js +6 -2
  164. package/dist/esm/ez-multi-selection-list.entry.js +1 -1
  165. package/dist/esm/ez-number-input.entry.js +3 -2
  166. package/dist/esm/ez-popover-plus_3.entry.js +1 -1
  167. package/dist/esm/ez-popover.entry.js +1 -1
  168. package/dist/esm/ez-popup.entry.js +6 -2
  169. package/dist/esm/ez-radio-button.entry.js +1 -1
  170. package/dist/esm/ez-scroller_2.entry.js +1 -1
  171. package/dist/esm/ez-search-plus.entry.js +393 -0
  172. package/dist/esm/ez-search-result-list.entry.js +93 -0
  173. package/dist/esm/ez-search.entry.js +5 -4
  174. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  175. package/dist/esm/ez-skeleton.entry.js +145 -0
  176. package/dist/esm/ez-sortable-list.entry.js +3506 -0
  177. package/dist/esm/ez-split-button.entry.js +16 -7
  178. package/dist/esm/ez-split-item.entry.js +2 -2
  179. package/dist/esm/ez-split-panel.entry.js +1 -1
  180. package/dist/esm/ez-tabselector.entry.js +1 -1
  181. package/dist/esm/ez-text-area.entry.js +25 -4
  182. package/dist/esm/ez-text-input.entry.js +84 -101
  183. package/dist/esm/ez-time-input.entry.js +3 -2
  184. package/dist/esm/ez-toast.entry.js +1 -1
  185. package/dist/esm/ez-tree.entry.js +1 -1
  186. package/dist/esm/ez-upload.entry.js +1 -1
  187. package/dist/esm/ez-view-stack.entry.js +1 -1
  188. package/dist/esm/ezui.js +3 -3
  189. package/dist/esm/filter-column.entry.js +15 -6
  190. package/dist/esm/floating-ui.dom.esm-5d3da819.js +1398 -0
  191. package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +25 -11
  192. package/dist/esm/loader.js +3 -3
  193. package/dist/esm/{DataBinder-9c877244.js → search-column-e609d513.js} +69 -15
  194. package/dist/ezui/ezui.esm.js +1 -1
  195. package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
  196. package/dist/ezui/p-07894c4a.entry.js +1 -0
  197. package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
  198. package/dist/ezui/p-0d9856a4.entry.js +1 -0
  199. package/dist/ezui/{p-87f5a060.entry.js → p-1bcfd88c.entry.js} +1 -1
  200. package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
  201. package/dist/ezui/{p-866abc8e.entry.js → p-1eb34cad.entry.js} +1 -1
  202. package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
  203. package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
  204. package/dist/ezui/p-26685c50.entry.js +1 -0
  205. package/dist/ezui/{p-06f1b8e4.entry.js → p-288631d1.entry.js} +1 -1
  206. package/dist/ezui/p-2b42abbb.entry.js +1 -0
  207. package/dist/ezui/p-2b4df33d.entry.js +1 -0
  208. package/dist/ezui/p-30ffb9ed.js +1 -0
  209. package/dist/ezui/p-33326ac5.entry.js +1 -0
  210. package/dist/ezui/p-341da682.entry.js +1 -0
  211. package/dist/ezui/p-35115d5d.entry.js +1 -0
  212. package/dist/ezui/p-3ba9565c.entry.js +1 -0
  213. package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
  214. package/dist/ezui/p-496f7832.entry.js +1 -0
  215. package/dist/ezui/{p-769632d5.entry.js → p-4b67138e.entry.js} +1 -1
  216. package/dist/ezui/p-4bd6dd6a.entry.js +1 -0
  217. package/dist/ezui/p-4d30b703.entry.js +1 -0
  218. package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
  219. package/dist/ezui/{p-30571aaf.entry.js → p-57363cfd.entry.js} +1 -1
  220. package/dist/ezui/p-58f69d24.entry.js +1 -0
  221. package/dist/ezui/p-59561756.entry.js +7 -0
  222. package/dist/ezui/{p-cedeedf1.entry.js → p-5dde9df3.entry.js} +1 -1
  223. package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
  224. package/dist/ezui/p-5eea9886.js +1 -0
  225. package/dist/ezui/p-63cb493e.entry.js +1 -0
  226. package/dist/ezui/p-69937816.entry.js +1 -0
  227. package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
  228. package/dist/ezui/p-7019f782.entry.js +1 -0
  229. package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
  230. package/dist/ezui/p-7eae6986.entry.js +1 -0
  231. package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
  232. package/dist/ezui/p-9478b13b.entry.js +1 -0
  233. package/dist/ezui/p-9567b31a.entry.js +1 -0
  234. package/dist/ezui/p-97c7cf51.entry.js +1 -0
  235. package/dist/ezui/p-998afb6a.entry.js +1 -0
  236. package/dist/ezui/p-9c5cd3b2.entry.js +1 -0
  237. package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
  238. package/dist/ezui/p-a148e994.entry.js +1 -0
  239. package/dist/ezui/p-a3bf8cf1.entry.js +1 -0
  240. package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
  241. package/dist/ezui/p-b38411b4.entry.js +309 -0
  242. package/dist/ezui/p-b81881ac.entry.js +1 -0
  243. package/dist/ezui/p-bac0f920.entry.js +1 -0
  244. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  245. package/dist/ezui/p-bff24a7b.js +1 -0
  246. package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
  247. package/dist/ezui/p-cb75eb46.entry.js +1 -0
  248. package/dist/ezui/p-d47dabdf.entry.js +1 -0
  249. package/dist/ezui/{p-708b196e.entry.js → p-da1b4a38.entry.js} +1 -1
  250. package/dist/ezui/{p-c7035d65.entry.js → p-dc73e1fe.entry.js} +1 -1
  251. package/dist/ezui/{p-2f351332.entry.js → p-e06a9886.entry.js} +1 -1
  252. package/dist/ezui/p-e07e4671.js +1 -0
  253. package/dist/ezui/p-e4528470.entry.js +1 -0
  254. package/dist/ezui/{p-9e95bfeb.entry.js → p-e6a9041d.entry.js} +1 -1
  255. package/dist/ezui/{p-000159dc.entry.js → p-e75c7a23.entry.js} +1 -1
  256. package/dist/ezui/{p-44b39e81.entry.js → p-fa6732f2.entry.js} +1 -1
  257. package/dist/types/components/ez-avatar/ez-avatar.d.ts +24 -0
  258. package/dist/types/components/ez-check/ez-check.d.ts +7 -2
  259. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +4 -2
  260. package/dist/types/components/ez-date-input/ez-date-input.d.ts +4 -0
  261. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +4 -0
  262. package/dist/types/components/ez-dialog/ez-dialog.d.ts +1 -0
  263. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +4 -2
  264. package/dist/types/components/ez-double-list/ez-double-list.d.ts +60 -24
  265. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +4 -4
  266. package/dist/types/components/ez-form/ez-form.d.ts +23 -1
  267. package/dist/types/components/ez-form-view/ez-form-view.d.ts +4 -0
  268. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -0
  269. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +9 -1
  270. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +9 -1
  271. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +1 -0
  272. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +1 -0
  273. package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.d.ts +3 -0
  274. package/dist/types/components/ez-grid/ez-grid.d.ts +17 -1
  275. package/dist/types/components/ez-grid/interfaces/IGridMode.d.ts +1 -0
  276. package/dist/types/components/ez-grid/interfaces/index.d.ts +1 -0
  277. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +1 -0
  278. package/dist/types/components/ez-icon/ez-icon.d.ts +5 -0
  279. package/dist/types/components/ez-modal/ez-modal.d.ts +2 -0
  280. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +2 -0
  281. package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.d.ts +2 -1
  282. package/dist/types/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.d.ts +3 -0
  283. package/dist/types/components/ez-number-input/ez-number-input.d.ts +4 -0
  284. package/dist/types/components/ez-popup/ez-popup.d.ts +2 -0
  285. package/dist/types/components/ez-search/ez-search.d.ts +4 -0
  286. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +186 -0
  287. package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +26 -0
  288. package/dist/types/components/ez-skeleton/ez-skeleton.constants.d.ts +55 -1
  289. package/dist/types/components/ez-skeleton/ez-skeleton.d.ts +50 -22
  290. package/dist/types/components/ez-sortable-list/ez-sortable-list.d.ts +91 -0
  291. package/dist/types/components/ez-split-button/ez-split-button.d.ts +14 -2
  292. package/dist/types/components/ez-text-area/ez-text-area.d.ts +8 -0
  293. package/dist/types/components/ez-text-input/ez-text-input.d.ts +21 -9
  294. package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
  295. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +41 -5
  296. package/dist/types/components.d.ts +778 -24
  297. package/dist/types/utils/constants.d.ts +2 -0
  298. package/dist/types/utils/form/DataBinder.d.ts +4 -2
  299. package/dist/types/utils/form/interfaces/FormLayout.d.ts +4 -0
  300. package/dist/types/utils/form/interfaces/index.d.ts +1 -0
  301. package/dist/types/utils/index.d.ts +3 -0
  302. package/dist/types/utils/search/types.d.ts +12 -0
  303. package/dist/types/utils/searchColumn/search-column.d.ts +9 -0
  304. package/package.json +7 -2
  305. package/react/components.d.ts +64 -60
  306. package/react/components.js +4 -0
  307. package/react/components.js.map +1 -1
  308. package/react/react-component-lib/createComponent.d.ts +1 -1
  309. package/react/react-component-lib/createComponent.js.map +1 -1
  310. package/react/react-component-lib/createOverlayComponent.js.map +1 -1
  311. package/react/react-component-lib/interfaces.js +1 -0
  312. package/react/react-component-lib/utils/attachProps.d.ts +1 -1
  313. package/react/react-component-lib/utils/attachProps.js.map +1 -1
  314. package/react/react-component-lib/utils/dev.js.map +1 -1
  315. package/react/react-component-lib/utils/index.d.ts +2 -2
  316. package/react/react-component-lib/utils/index.js.map +1 -1
  317. package/dist/cjs/ApplicationUtils-c9d1205c.js.gz +0 -0
  318. package/dist/cjs/CSSVarsUtils-f20973d1.js.gz +0 -0
  319. package/dist/cjs/CheckMode-ecb90b87.js.gz +0 -0
  320. package/dist/cjs/DataBinder-e92314c2.js.gz +0 -0
  321. package/dist/cjs/DialogType-2114c337.js.gz +0 -0
  322. package/dist/cjs/EzScrollDirection-b2c99895.js.gz +0 -0
  323. package/dist/cjs/FocusResolver-885f2173.js.gz +0 -0
  324. package/dist/cjs/ICustomRender-6fafffce.js +0 -13
  325. package/dist/cjs/ICustomRender-6fafffce.js.gz +0 -0
  326. package/dist/cjs/constants-2714478b.js.gz +0 -0
  327. package/dist/cjs/ez-actions-button.cjs.entry.js.gz +0 -0
  328. package/dist/cjs/ez-alert-list.cjs.entry.js.gz +0 -0
  329. package/dist/cjs/ez-alert.cjs.entry.js.gz +0 -0
  330. package/dist/cjs/ez-application.cjs.entry.js.gz +0 -0
  331. package/dist/cjs/ez-badge.cjs.entry.js.gz +0 -0
  332. package/dist/cjs/ez-breadcrumb.cjs.entry.js.gz +0 -0
  333. package/dist/cjs/ez-button.cjs.entry.js.gz +0 -0
  334. package/dist/cjs/ez-calendar.cjs.entry.js.gz +0 -0
  335. package/dist/cjs/ez-card-item_2.cjs.entry.js.gz +0 -0
  336. package/dist/cjs/ez-chart.cjs.entry.js.gz +0 -0
  337. package/dist/cjs/ez-check.cjs.entry.js.gz +0 -0
  338. package/dist/cjs/ez-chip.cjs.entry.js.gz +0 -0
  339. package/dist/cjs/ez-collapsible-box.cjs.entry.js.gz +0 -0
  340. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js.gz +0 -0
  341. package/dist/cjs/ez-combo-box.cjs.entry.js.gz +0 -0
  342. package/dist/cjs/ez-date-input.cjs.entry.js.gz +0 -0
  343. package/dist/cjs/ez-date-time-input.cjs.entry.js.gz +0 -0
  344. package/dist/cjs/ez-dialog.cjs.entry.js.gz +0 -0
  345. package/dist/cjs/ez-double-list.cjs.entry.js.gz +0 -0
  346. package/dist/cjs/ez-dropdown_2.cjs.entry.js.gz +0 -0
  347. package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
  348. package/dist/cjs/ez-filter-input.cjs.entry.js +0 -129
  349. package/dist/cjs/ez-filter-input.cjs.entry.js.gz +0 -0
  350. package/dist/cjs/ez-form-view.cjs.entry.js.gz +0 -0
  351. package/dist/cjs/ez-form.cjs.entry.js.gz +0 -0
  352. package/dist/cjs/ez-grid.cjs.entry.js.gz +0 -0
  353. package/dist/cjs/ez-guide-navigator.cjs.entry.js.gz +0 -0
  354. package/dist/cjs/ez-icon.cjs.entry.js.gz +0 -0
  355. package/dist/cjs/ez-list.cjs.entry.js.gz +0 -0
  356. package/dist/cjs/ez-loading-bar.cjs.entry.js.gz +0 -0
  357. package/dist/cjs/ez-modal-container.cjs.entry.js.gz +0 -0
  358. package/dist/cjs/ez-modal.cjs.entry.js.gz +0 -0
  359. package/dist/cjs/ez-multi-selection-list.cjs.entry.js.gz +0 -0
  360. package/dist/cjs/ez-number-input.cjs.entry.js.gz +0 -0
  361. package/dist/cjs/ez-popover-plus_3.cjs.entry.js.gz +0 -0
  362. package/dist/cjs/ez-popover.cjs.entry.js.gz +0 -0
  363. package/dist/cjs/ez-popup.cjs.entry.js.gz +0 -0
  364. package/dist/cjs/ez-radio-button.cjs.entry.js.gz +0 -0
  365. package/dist/cjs/ez-scroller_2.cjs.entry.js.gz +0 -0
  366. package/dist/cjs/ez-search.cjs.entry.js.gz +0 -0
  367. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js.gz +0 -0
  368. package/dist/cjs/ez-split-button.cjs.entry.js.gz +0 -0
  369. package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
  370. package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
  371. package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
  372. package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
  373. package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
  374. package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
  375. package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
  376. package/dist/cjs/ez-tooltip.cjs.entry.js +0 -55
  377. package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
  378. package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
  379. package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
  380. package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
  381. package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
  382. package/dist/cjs/ezui.cjs.js.gz +0 -0
  383. package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
  384. package/dist/cjs/index-9e5554cb.js.gz +0 -0
  385. package/dist/cjs/index.cjs.js.gz +0 -0
  386. package/dist/cjs/loader.cjs.js.gz +0 -0
  387. package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
  388. package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
  389. package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
  390. package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
  391. package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
  392. package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
  393. package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
  394. package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
  395. package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
  396. package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
  397. package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
  398. package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
  399. package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
  400. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
  401. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
  402. package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
  403. package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
  404. package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
  405. package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
  406. package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
  407. package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
  408. package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
  409. package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
  410. package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
  411. package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
  412. package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
  413. package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
  414. package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
  415. package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
  416. package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
  417. package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
  418. package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
  419. package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
  420. package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
  421. package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
  422. package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
  423. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
  424. package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
  425. package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
  426. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
  427. package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
  428. package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
  429. package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
  430. package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
  431. package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
  432. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
  433. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
  434. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
  435. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
  436. package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
  437. package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
  438. package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
  439. package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
  440. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
  441. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
  442. package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
  443. package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
  444. package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
  445. package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
  446. package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
  447. package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
  448. package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
  449. package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
  450. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
  451. package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
  452. package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
  453. package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
  454. package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
  455. package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
  456. package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
  457. package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
  458. package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
  459. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
  460. package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
  461. package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
  462. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
  463. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
  464. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
  465. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
  466. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
  467. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
  468. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
  469. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js.gz +0 -0
  470. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
  471. package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
  472. package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
  473. package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
  474. package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
  475. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
  476. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
  477. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
  478. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
  479. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
  480. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
  481. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
  482. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
  483. package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
  484. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
  485. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
  486. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
  487. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
  488. package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
  489. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
  490. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
  491. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
  492. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
  493. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
  494. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
  495. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
  496. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
  497. package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js.gz +0 -0
  498. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
  499. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
  500. package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
  501. package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
  502. package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
  503. package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
  504. package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
  505. package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
  506. package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
  507. package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
  508. package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
  509. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
  510. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
  511. package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
  512. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
  513. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
  514. package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
  515. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
  516. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
  517. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
  518. package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
  519. package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
  520. package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
  521. package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
  522. package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
  523. package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
  524. package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
  525. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
  526. package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
  527. package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
  528. package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
  529. package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
  530. package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
  531. package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
  532. package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
  533. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
  534. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
  535. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
  536. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
  537. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
  538. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
  539. package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
  540. package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
  541. package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
  542. package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
  543. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
  544. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
  545. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
  546. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
  547. package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
  548. package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
  549. package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
  550. package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
  551. package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
  552. package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
  553. package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
  554. package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
  555. package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
  556. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
  557. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
  558. package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
  559. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
  560. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
  561. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
  562. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
  563. package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
  564. package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
  565. package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
  566. package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
  567. package/dist/collection/components/ez-sidebar-navigator/messages/constants.js.gz +0 -0
  568. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
  569. package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
  570. package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
  571. package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
  572. package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
  573. package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
  574. package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
  575. package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
  576. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
  577. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
  578. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
  579. package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
  580. package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
  581. package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
  582. package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
  583. package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
  584. package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
  585. package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
  586. package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
  587. package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
  588. package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
  589. package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
  590. package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
  591. package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
  592. package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
  593. package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
  594. package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
  595. package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
  596. package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
  597. package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
  598. package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
  599. package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
  600. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
  601. package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
  602. package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
  603. package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
  604. package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
  605. package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
  606. package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
  607. package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
  608. package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
  609. package/dist/collection/index.js.gz +0 -0
  610. package/dist/collection/servidor.js.gz +0 -0
  611. package/dist/collection/setupTests.js.gz +0 -0
  612. package/dist/collection/sw.js.gz +0 -0
  613. package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
  614. package/dist/collection/utils/AssetsUtils.js.gz +0 -0
  615. package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
  616. package/dist/collection/utils/FocusResolver.js.gz +0 -0
  617. package/dist/collection/utils/ResponsiveInputUtils.js +0 -26
  618. package/dist/collection/utils/ResponsiveInputUtils.js.gz +0 -0
  619. package/dist/collection/utils/constants.js.gz +0 -0
  620. package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
  621. package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
  622. package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
  623. package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
  624. package/dist/collection/utils/form/DataBinder.js.gz +0 -0
  625. package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
  626. package/dist/collection/utils/form/index.js.gz +0 -0
  627. package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
  628. package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
  629. package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
  630. package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
  631. package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
  632. package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
  633. package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
  634. package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
  635. package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
  636. package/dist/collection/utils/index.js.gz +0 -0
  637. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
  638. package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
  639. package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
  640. package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
  641. package/dist/collection/utils/utils.js.gz +0 -0
  642. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
  643. package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
  644. package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
  645. package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
  646. package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
  647. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
  648. package/dist/custom-elements/index.js.gz +0 -0
  649. package/dist/esm/ApplicationUtils-eaf91331.js.gz +0 -0
  650. package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
  651. package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
  652. package/dist/esm/DataBinder-9c877244.js.gz +0 -0
  653. package/dist/esm/DialogType-54a62731.js.gz +0 -0
  654. package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
  655. package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
  656. package/dist/esm/ICustomRender-875b5a40.js +0 -13
  657. package/dist/esm/ICustomRender-875b5a40.js.gz +0 -0
  658. package/dist/esm/constants-4e0d35b7.js +0 -5
  659. package/dist/esm/constants-4e0d35b7.js.gz +0 -0
  660. package/dist/esm/ez-actions-button.entry.js.gz +0 -0
  661. package/dist/esm/ez-alert-list.entry.js.gz +0 -0
  662. package/dist/esm/ez-alert.entry.js.gz +0 -0
  663. package/dist/esm/ez-application.entry.js.gz +0 -0
  664. package/dist/esm/ez-badge.entry.js.gz +0 -0
  665. package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
  666. package/dist/esm/ez-button.entry.js.gz +0 -0
  667. package/dist/esm/ez-calendar.entry.js.gz +0 -0
  668. package/dist/esm/ez-card-item_2.entry.js.gz +0 -0
  669. package/dist/esm/ez-chart.entry.js.gz +0 -0
  670. package/dist/esm/ez-check.entry.js.gz +0 -0
  671. package/dist/esm/ez-chip.entry.js.gz +0 -0
  672. package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
  673. package/dist/esm/ez-combo-box-list_3.entry.js.gz +0 -0
  674. package/dist/esm/ez-combo-box.entry.js.gz +0 -0
  675. package/dist/esm/ez-date-input.entry.js.gz +0 -0
  676. package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
  677. package/dist/esm/ez-dialog.entry.js.gz +0 -0
  678. package/dist/esm/ez-double-list.entry.js.gz +0 -0
  679. package/dist/esm/ez-dropdown_2.entry.js.gz +0 -0
  680. package/dist/esm/ez-file-item.entry.js.gz +0 -0
  681. package/dist/esm/ez-filter-input.entry.js +0 -125
  682. package/dist/esm/ez-filter-input.entry.js.gz +0 -0
  683. package/dist/esm/ez-form-view.entry.js.gz +0 -0
  684. package/dist/esm/ez-form.entry.js.gz +0 -0
  685. package/dist/esm/ez-grid.entry.js.gz +0 -0
  686. package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
  687. package/dist/esm/ez-icon.entry.js.gz +0 -0
  688. package/dist/esm/ez-list.entry.js.gz +0 -0
  689. package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
  690. package/dist/esm/ez-modal-container.entry.js.gz +0 -0
  691. package/dist/esm/ez-modal.entry.js.gz +0 -0
  692. package/dist/esm/ez-multi-selection-list.entry.js.gz +0 -0
  693. package/dist/esm/ez-number-input.entry.js.gz +0 -0
  694. package/dist/esm/ez-popover-plus_3.entry.js.gz +0 -0
  695. package/dist/esm/ez-popover.entry.js.gz +0 -0
  696. package/dist/esm/ez-popup.entry.js.gz +0 -0
  697. package/dist/esm/ez-radio-button.entry.js.gz +0 -0
  698. package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
  699. package/dist/esm/ez-search.entry.js.gz +0 -0
  700. package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
  701. package/dist/esm/ez-split-button.entry.js.gz +0 -0
  702. package/dist/esm/ez-split-item.entry.js.gz +0 -0
  703. package/dist/esm/ez-split-panel.entry.js.gz +0 -0
  704. package/dist/esm/ez-tabselector.entry.js.gz +0 -0
  705. package/dist/esm/ez-text-area.entry.js.gz +0 -0
  706. package/dist/esm/ez-text-input.entry.js.gz +0 -0
  707. package/dist/esm/ez-time-input.entry.js.gz +0 -0
  708. package/dist/esm/ez-toast.entry.js.gz +0 -0
  709. package/dist/esm/ez-tooltip.entry.js +0 -51
  710. package/dist/esm/ez-tooltip.entry.js.gz +0 -0
  711. package/dist/esm/ez-tree.entry.js.gz +0 -0
  712. package/dist/esm/ez-upload.entry.js.gz +0 -0
  713. package/dist/esm/ez-view-stack.entry.js.gz +0 -0
  714. package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
  715. package/dist/esm/ezui.js.gz +0 -0
  716. package/dist/esm/filter-column.entry.js.gz +0 -0
  717. package/dist/esm/index-5a720e56.js.gz +0 -0
  718. package/dist/esm/index.js.gz +0 -0
  719. package/dist/esm/loader.js.gz +0 -0
  720. package/dist/esm/polyfills/core-js.js.gz +0 -0
  721. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  722. package/dist/esm/polyfills/dom.js.gz +0 -0
  723. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  724. package/dist/esm/polyfills/index.js.gz +0 -0
  725. package/dist/esm/polyfills/system.js.gz +0 -0
  726. package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
  727. package/dist/ezui/ezui.esm.js.gz +0 -0
  728. package/dist/ezui/index.esm.js.gz +0 -0
  729. package/dist/ezui/p-000159dc.entry.js.gz +0 -0
  730. package/dist/ezui/p-0378416a.entry.js.gz +0 -0
  731. package/dist/ezui/p-05e1f4e7.js +0 -1
  732. package/dist/ezui/p-05e1f4e7.js.gz +0 -0
  733. package/dist/ezui/p-06f1b8e4.entry.js.gz +0 -0
  734. package/dist/ezui/p-0cfbbe82.entry.js +0 -1
  735. package/dist/ezui/p-0cfbbe82.entry.js.gz +0 -0
  736. package/dist/ezui/p-11bfeca3.entry.js.gz +0 -0
  737. package/dist/ezui/p-1bb62d6b.entry.js +0 -1
  738. package/dist/ezui/p-1bb62d6b.entry.js.gz +0 -0
  739. package/dist/ezui/p-2069c78a.entry.js +0 -1
  740. package/dist/ezui/p-2069c78a.entry.js.gz +0 -0
  741. package/dist/ezui/p-2187f86c.js.gz +0 -0
  742. package/dist/ezui/p-23dab72f.entry.js +0 -1
  743. package/dist/ezui/p-23dab72f.entry.js.gz +0 -0
  744. package/dist/ezui/p-24b42f3d.entry.js +0 -1
  745. package/dist/ezui/p-24b42f3d.entry.js.gz +0 -0
  746. package/dist/ezui/p-2f351332.entry.js.gz +0 -0
  747. package/dist/ezui/p-30571aaf.entry.js.gz +0 -0
  748. package/dist/ezui/p-40a60148.js.gz +0 -0
  749. package/dist/ezui/p-41652617.entry.js +0 -1
  750. package/dist/ezui/p-41652617.entry.js.gz +0 -0
  751. package/dist/ezui/p-44b39e81.entry.js.gz +0 -0
  752. package/dist/ezui/p-4607fb89.js +0 -1
  753. package/dist/ezui/p-4607fb89.js.gz +0 -0
  754. package/dist/ezui/p-4818b8ce.entry.js +0 -1
  755. package/dist/ezui/p-4818b8ce.entry.js.gz +0 -0
  756. package/dist/ezui/p-61b4834d.entry.js +0 -309
  757. package/dist/ezui/p-61b4834d.entry.js.gz +0 -0
  758. package/dist/ezui/p-68b2e579.entry.js +0 -1
  759. package/dist/ezui/p-68b2e579.entry.js.gz +0 -0
  760. package/dist/ezui/p-6b51c9cc.entry.js.gz +0 -0
  761. package/dist/ezui/p-6d8b3298.entry.js +0 -1
  762. package/dist/ezui/p-6d8b3298.entry.js.gz +0 -0
  763. package/dist/ezui/p-6ec40dec.entry.js +0 -1
  764. package/dist/ezui/p-6ec40dec.entry.js.gz +0 -0
  765. package/dist/ezui/p-6fc26622.entry.js.gz +0 -0
  766. package/dist/ezui/p-708b196e.entry.js.gz +0 -0
  767. package/dist/ezui/p-7567ccdd.entry.js.gz +0 -0
  768. package/dist/ezui/p-769632d5.entry.js.gz +0 -0
  769. package/dist/ezui/p-7c1b3cef.entry.js +0 -1
  770. package/dist/ezui/p-7c1b3cef.entry.js.gz +0 -0
  771. package/dist/ezui/p-80dfc50b.js.gz +0 -0
  772. package/dist/ezui/p-81461d2f.entry.js.gz +0 -0
  773. package/dist/ezui/p-82fa4b09.entry.js.gz +0 -0
  774. package/dist/ezui/p-866abc8e.entry.js.gz +0 -0
  775. package/dist/ezui/p-87f5a060.entry.js.gz +0 -0
  776. package/dist/ezui/p-88c615f0.entry.js +0 -1
  777. package/dist/ezui/p-88c615f0.entry.js.gz +0 -0
  778. package/dist/ezui/p-8ea07b8c.entry.js +0 -1
  779. package/dist/ezui/p-8ea07b8c.entry.js.gz +0 -0
  780. package/dist/ezui/p-9066b0b0.entry.js +0 -1
  781. package/dist/ezui/p-9066b0b0.entry.js.gz +0 -0
  782. package/dist/ezui/p-91ccae0c.entry.js.gz +0 -0
  783. package/dist/ezui/p-92748142.entry.js.gz +0 -0
  784. package/dist/ezui/p-98bb8b16.js.gz +0 -0
  785. package/dist/ezui/p-9c5a6ec4.entry.js +0 -1
  786. package/dist/ezui/p-9c5a6ec4.entry.js.gz +0 -0
  787. package/dist/ezui/p-9e95bfeb.entry.js.gz +0 -0
  788. package/dist/ezui/p-a0b034cf.entry.js +0 -1
  789. package/dist/ezui/p-a0b034cf.entry.js.gz +0 -0
  790. package/dist/ezui/p-a79f3789.entry.js +0 -1
  791. package/dist/ezui/p-a79f3789.entry.js.gz +0 -0
  792. package/dist/ezui/p-ab574d59.js.gz +0 -0
  793. package/dist/ezui/p-acddfb2e.js +0 -1
  794. package/dist/ezui/p-acddfb2e.js.gz +0 -0
  795. package/dist/ezui/p-b3b5647e.entry.js +0 -1
  796. package/dist/ezui/p-b3b5647e.entry.js.gz +0 -0
  797. package/dist/ezui/p-b853763b.js.gz +0 -0
  798. package/dist/ezui/p-b9282c79.entry.js +0 -1
  799. package/dist/ezui/p-b9282c79.entry.js.gz +0 -0
  800. package/dist/ezui/p-c2b20f78.entry.js.gz +0 -0
  801. package/dist/ezui/p-c7035d65.entry.js.gz +0 -0
  802. package/dist/ezui/p-c96fbbef.entry.js +0 -1
  803. package/dist/ezui/p-c96fbbef.entry.js.gz +0 -0
  804. package/dist/ezui/p-ca8936df.entry.js +0 -1
  805. package/dist/ezui/p-ca8936df.entry.js.gz +0 -0
  806. package/dist/ezui/p-cc4ffa6b.entry.js +0 -1
  807. package/dist/ezui/p-cc4ffa6b.entry.js.gz +0 -0
  808. package/dist/ezui/p-ce7ce731.entry.js +0 -1
  809. package/dist/ezui/p-ce7ce731.entry.js.gz +0 -0
  810. package/dist/ezui/p-cedeedf1.entry.js.gz +0 -0
  811. package/dist/ezui/p-cf33bc48.entry.js +0 -1
  812. package/dist/ezui/p-cf33bc48.entry.js.gz +0 -0
  813. package/dist/ezui/p-dc628ed3.js.gz +0 -0
  814. package/dist/ezui/p-dfca5946.entry.js.gz +0 -0
  815. package/dist/ezui/p-e18d9e6a.entry.js +0 -1
  816. package/dist/ezui/p-e18d9e6a.entry.js.gz +0 -0
  817. package/dist/ezui/p-e3f8660b.entry.js +0 -1
  818. package/dist/ezui/p-e3f8660b.entry.js.gz +0 -0
  819. package/dist/ezui/p-e4c7eb39.js.gz +0 -0
  820. package/dist/ezui/p-e6b38ade.entry.js.gz +0 -0
  821. package/dist/ezui/p-ec7db713.js.gz +0 -0
  822. package/dist/ezui/p-f4da7e1e.entry.js +0 -1
  823. package/dist/ezui/p-f4da7e1e.entry.js.gz +0 -0
  824. package/dist/ezui/p-fc194825.entry.js.gz +0 -0
  825. package/dist/index.cjs.js.gz +0 -0
  826. package/dist/index.js.gz +0 -0
  827. package/dist/types/utils/ResponsiveInputUtils.d.ts +0 -6
@@ -1,12 +1,12 @@
1
- import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-5a720e56.js';
2
- import { Action, DataUnit, ObjectUtils as ObjectUtils$1, HTMLBuilder, ApplicationContext, StringUtils as StringUtils$1, UserInterface, LockManager, LockManagerOperation, NumberUtils as NumberUtils$1, MaskFormatter, DataType, SortMode, ElementIDUtils, ColumnFilterManager as ColumnFilterManager$1, DateUtils as DateUtils$1, ArrayUtils as ArrayUtils$1, FieldComparator, JSUtils, OverflowWatcher, OVERFLOWED_CLASS_NAME, KeyboardManager } from '@sankhyalabs/core';
1
+ import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-baa5e267.js';
2
+ import { Action, DataUnit, ObjectUtils as ObjectUtils$1, UserInterface, HTMLBuilder, ApplicationContext, StringUtils as StringUtils$1, LockManager, LockManagerOperation, DataType, NumberUtils as NumberUtils$1, MaskFormatter, SortMode, ElementIDUtils, ColumnFilterManager as ColumnFilterManager$1, DateUtils as DateUtils$1, ArrayUtils as ArrayUtils$1, FieldComparator, JSUtils, OverflowWatcher, OVERFLOWED_CLASS_NAME, KeyboardManager } from '@sankhyalabs/core';
3
3
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
4
4
  import { A as ApplicationUtils } from './ApplicationUtils-eaf91331.js';
5
5
  import './DialogType-54a62731.js';
6
6
  import './CheckMode-bdb2ec19.js';
7
- import { C as CustomEditorSource, a as CustomRenderSource } from './ICustomRender-875b5a40.js';
8
- import { D as DISTINCT_FILTER_NAME_PREFIX, E as EZ_GRID_LOADING_SOURCE } from './constants-4e0d35b7.js';
9
- import { b as buildFieldMetadata, R as RecordValidationProcessor, D as DataBinder } from './DataBinder-9c877244.js';
7
+ import { C as CustomEditorSource, a as CustomRenderSource } from './FormLayout-071d324c.js';
8
+ import { b as buildFieldMetadata, R as RecordValidationProcessor, D as DataBinder, S as SHORTCUT_SEARCH_FIELD, f as focusOnFieldSerch, c as SEARCH_FIELD_FULL_WIDTH, d as LABEL_SEARCH_COLUMN, a as buildFieldSearch } from './search-column-e609d513.js';
9
+ import { D as DISTINCT_FILTER_NAME_PREFIX, E as EZ_GRID_LOADING_SOURCE, P as PRESENTATION_COL_ID_PROP_NAME, a as PRESENTATION_FROM_COL_PROP_NAME } from './constants-b036528f.js';
10
10
  import { F as FocusResolver } from './FocusResolver-1ccbf850.js';
11
11
 
12
12
  /**
@@ -432,6 +432,7 @@ function removeAllReferences(obj, objectName) {
432
432
  // leave all basic types - this is needed for GridAPI to leave the "destroyed: boolean" attribute alone
433
433
  if (typeof value === 'function') {
434
434
  var func = function () {
435
+ console.warn("AG Grid: " + objectName + " function " + key + "() cannot be called as the grid has been destroyed.\n Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't\n be keeping the API reference, your application has a memory leak! Remove the API reference\n when the grid is destroyed.");
435
436
  };
436
437
  properties[key] = { value: func, writable: true };
437
438
  }
@@ -602,6 +603,9 @@ function waitUntil(condition, callback, timeout, timeoutMessage) {
602
603
  window.clearInterval(interval);
603
604
  interval = null;
604
605
  }
606
+ if (reachedTimeout && timeoutMessage) {
607
+ console.warn(timeoutMessage);
608
+ }
605
609
  }
606
610
  };
607
611
  internalCallback();
@@ -703,9 +707,14 @@ var Context = /** @class */ (function () {
703
707
  Context.prototype.createBeanWrapper = function (BeanClass) {
704
708
  var metaData = BeanClass.__agBeanMetaData;
705
709
  if (!metaData) {
710
+ var beanName = void 0;
706
711
  if (BeanClass.prototype.constructor) {
707
- getFunctionName(BeanClass.prototype.constructor);
712
+ beanName = getFunctionName(BeanClass.prototype.constructor);
713
+ }
714
+ else {
715
+ beanName = "" + BeanClass;
708
716
  }
717
+ console.error("Context item " + beanName + " is not a bean");
709
718
  return;
710
719
  }
711
720
  var beanEntry = {
@@ -777,6 +786,7 @@ var Context = /** @class */ (function () {
777
786
  return beansList;
778
787
  };
779
788
  Context.prototype.lookupBeanInstance = function (wiringBean, beanName, optional) {
789
+ if (optional === void 0) { optional = false; }
780
790
  if (beanName === "context") {
781
791
  return this;
782
792
  }
@@ -787,6 +797,9 @@ var Context = /** @class */ (function () {
787
797
  if (beanEntry) {
788
798
  return beanEntry.beanInstance;
789
799
  }
800
+ if (!optional) {
801
+ console.error("AG Grid: unable to find bean reference " + beanName + " while initialising " + wiringBean);
802
+ }
790
803
  return null;
791
804
  };
792
805
  Context.prototype.callLifeCycleMethods = function (beanInstances, lifeCycleMethod) {
@@ -893,9 +906,11 @@ function Optional(name) {
893
906
  }
894
907
  function autowiredFunc(target, name, optional, classPrototype, methodOrAttributeName, index) {
895
908
  if (name === null) {
909
+ console.error("AG Grid: Autowired name should not be null");
896
910
  return;
897
911
  }
898
912
  if (typeof index === "number") {
913
+ console.error("AG Grid: Autowired should be on an attribute");
899
914
  return;
900
915
  }
901
916
  // it's an attribute on the class
@@ -1227,6 +1242,8 @@ var ModuleRegistry = /** @class */ (function () {
1227
1242
  else {
1228
1243
  if (ModuleRegistry.moduleBased !== moduleBased) {
1229
1244
  doOnce(function () {
1245
+ console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms.");
1246
+ console.warn('Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.');
1230
1247
  }, 'ModulePackageCheck');
1231
1248
  }
1232
1249
  }
@@ -1244,7 +1261,15 @@ var ModuleRegistry = /** @class */ (function () {
1244
1261
  return true;
1245
1262
  }
1246
1263
  var warningKey = reason + moduleName;
1264
+ var warningMessage;
1265
+ if (ModuleRegistry.moduleBased) {
1266
+ warningMessage = "AG Grid: unable to use " + reason + " as module " + moduleName + " is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/";
1267
+ }
1268
+ else {
1269
+ warningMessage = "AG Grid: unable to use " + reason + " as package 'ag-grid-enterprise' is not present. Please see: https://www.ag-grid.com/javascript-grid/packages/";
1270
+ }
1247
1271
  doOnce(function () {
1272
+ console.warn(warningMessage);
1248
1273
  }, warningKey);
1249
1274
  return false;
1250
1275
  };
@@ -1437,9 +1462,11 @@ var Column = /** @class */ (function () {
1437
1462
  var colDefAny = this.colDef;
1438
1463
  function warnOnce(msg, key, obj) {
1439
1464
  doOnce(function () {
1440
- if (obj) ;
1465
+ if (obj) {
1466
+ console.warn(msg, obj);
1467
+ }
1441
1468
  else {
1442
- doOnce(function () { return (void 0); }, key);
1469
+ doOnce(function () { return console.warn(msg); }, key);
1443
1470
  }
1444
1471
  }, key);
1445
1472
  }
@@ -1907,16 +1934,19 @@ var Column = /** @class */ (function () {
1907
1934
  // this used to be needed, as previous version of ag-grid had lockPosition as column state,
1908
1935
  // so couldn't depend on colDef version.
1909
1936
  Column.prototype.isLockPosition = function () {
1937
+ console.warn('AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead.');
1910
1938
  return this.colDef ? !!this.colDef.lockPosition : false;
1911
1939
  };
1912
1940
  // this used to be needed, as previous version of ag-grid had lockVisible as column state,
1913
1941
  // so couldn't depend on colDef version.
1914
1942
  Column.prototype.isLockVisible = function () {
1943
+ console.warn('AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead.');
1915
1944
  return this.colDef ? !!this.colDef.lockVisible : false;
1916
1945
  };
1917
1946
  // this used to be needed, as previous version of ag-grid had lockPinned as column state,
1918
1947
  // so couldn't depend on colDef version.
1919
1948
  Column.prototype.isLockPinned = function () {
1949
+ console.warn('AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead.');
1920
1950
  return this.colDef ? !!this.colDef.lockPinned : false;
1921
1951
  };
1922
1952
  // + renderedHeaderCell - for making header cell transparent when moving
@@ -2312,6 +2342,7 @@ var ColumnGroup = /** @class */ (function () {
2312
2342
  };
2313
2343
  /** @deprecated getOriginalColumnGroup is deprecated, use getOriginalColumnGroup. */
2314
2344
  ColumnGroup.prototype.getOriginalColumnGroup = function () {
2345
+ console.warn('AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead');
2315
2346
  return this.getProvidedColumnGroup();
2316
2347
  };
2317
2348
  ColumnGroup.prototype.getPaddingLevel = function () {
@@ -3187,7 +3218,9 @@ var ColumnFactory = /** @class */ (function (_super) {
3187
3218
  var typeKeys = [];
3188
3219
  if (type instanceof Array) {
3189
3220
  var invalidArray = type.some(function (a) { return typeof a !== 'string'; });
3190
- if (invalidArray) ;
3221
+ if (invalidArray) {
3222
+ console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'");
3223
+ }
3191
3224
  else {
3192
3225
  typeKeys = type;
3193
3226
  }
@@ -3196,13 +3229,16 @@ var ColumnFactory = /** @class */ (function (_super) {
3196
3229
  typeKeys = type.split(',');
3197
3230
  }
3198
3231
  else {
3232
+ console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");
3199
3233
  return;
3200
3234
  }
3201
3235
  // merge user defined with default column types
3202
3236
  var allColumnTypes = Object.assign({}, DefaultColumnTypes);
3203
3237
  var userTypes = this.gridOptionsWrapper.getColumnTypes() || {};
3204
3238
  iterateObject(userTypes, function (key, value) {
3205
- if (key in allColumnTypes) ;
3239
+ if (key in allColumnTypes) {
3240
+ console.warn("AG Grid: the column type '" + key + "' is a default column type and cannot be overridden.");
3241
+ }
3206
3242
  else {
3207
3243
  allColumnTypes[key] = value;
3208
3244
  }
@@ -3212,12 +3248,34 @@ var ColumnFactory = /** @class */ (function (_super) {
3212
3248
  if (typeColDef) {
3213
3249
  mergeDeep(colDefMerged, typeColDef, false, true);
3214
3250
  }
3251
+ else {
3252
+ console.warn("AG Grid: colDef.type '" + t + "' does not correspond to defined gridOptions.columnTypes");
3253
+ }
3215
3254
  });
3216
3255
  };
3217
3256
  ColumnFactory.prototype.checkForDeprecatedItems = function (colDef) {
3218
3257
  if (colDef) {
3219
3258
  var colDefNoType = colDef; // take out the type, so we can access attributes not defined in the type
3259
+ if (colDefNoType.group !== undefined) {
3260
+ console.warn('AG Grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3');
3261
+ }
3262
+ if (colDefNoType.headerGroup !== undefined) {
3263
+ console.warn('AG Grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3');
3264
+ }
3265
+ if (colDefNoType.headerGroupShow !== undefined) {
3266
+ console.warn('AG Grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3');
3267
+ }
3268
+ if (colDefNoType.suppressRowGroup !== undefined) {
3269
+ console.warn('AG Grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead');
3270
+ }
3271
+ if (colDefNoType.suppressAggregation !== undefined) {
3272
+ console.warn('AG Grid: colDef.suppressAggregation is deprecated, please use colDef.type instead');
3273
+ }
3274
+ if (colDefNoType.suppressRowGroup || colDefNoType.suppressAggregation) {
3275
+ console.warn('AG Grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead');
3276
+ }
3220
3277
  if (colDefNoType.displayName) {
3278
+ console.warn("AG Grid: Found displayName " + colDefNoType.displayName + ", please use headerName instead, displayName is deprecated.");
3221
3279
  colDefNoType.headerName = colDefNoType.displayName;
3222
3280
  }
3223
3281
  }
@@ -4279,6 +4337,7 @@ var SideBarDefParser = /** @class */ (function () {
4279
4337
  toParse.forEach(function (key) {
4280
4338
  var lookupResult = SideBarDefParser.DEFAULT_BY_KEY[key];
4281
4339
  if (!lookupResult) {
4340
+ console.warn("AG Grid: the key " + key + " is not a valid key for specifying a tool panel, valid keys are: " + Object.keys(SideBarDefParser.DEFAULT_BY_KEY).join(','));
4282
4341
  return;
4283
4342
  }
4284
4343
  comps_1.push(lookupResult);
@@ -4309,6 +4368,7 @@ var SideBarDefParser = /** @class */ (function () {
4309
4368
  if (typeof it === 'string') {
4310
4369
  var lookupResult = SideBarDefParser.DEFAULT_BY_KEY[it];
4311
4370
  if (!lookupResult) {
4371
+ console.warn("AG Grid: the key " + it + " is not a valid key for specifying a tool panel, valid keys are: " + Object.keys(SideBarDefParser.DEFAULT_BY_KEY).join(','));
4312
4372
  return;
4313
4373
  }
4314
4374
  toAdd = lookupResult;
@@ -4905,6 +4965,7 @@ var GridOptionsWrapper = /** @class */ (function () {
4905
4965
  this.destroyed = true;
4906
4966
  };
4907
4967
  GridOptionsWrapper.prototype.init = function () {
4968
+ var _this = this;
4908
4969
  if (this.gridOptions.suppressPropertyNamesCheck !== true) {
4909
4970
  this.checkGridOptionsProperties();
4910
4971
  this.checkColumnDefProperties();
@@ -4915,26 +4976,61 @@ var GridOptionsWrapper = /** @class */ (function () {
4915
4976
  }
4916
4977
  var async = this.useAsyncEvents();
4917
4978
  this.eventService.addGlobalListener(this.globalEventHandler.bind(this), async);
4918
- if (this.isGroupSelectsChildren() && this.isSuppressParentsInRowNodes()) ;
4979
+ if (this.isGroupSelectsChildren() && this.isSuppressParentsInRowNodes()) {
4980
+ console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work");
4981
+ }
4919
4982
  if (this.isGroupSelectsChildren()) {
4920
- if (!this.isRowSelectionMulti()) ;
4921
- if (this.isRowModelServerSide()) ;
4983
+ if (!this.isRowSelectionMulti()) {
4984
+ console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense");
4985
+ }
4986
+ if (this.isRowModelServerSide()) {
4987
+ console.warn('AG Grid: group selects children is NOT support for Server Side Row Model. ' +
4988
+ 'This is because the rows are lazy loaded, so selecting a group is not possible as' +
4989
+ 'the grid has no way of knowing what the children are.');
4990
+ }
4991
+ }
4992
+ if (this.isGroupRemoveSingleChildren() && this.isGroupHideOpenParents()) {
4993
+ console.warn("AG Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to use these together on our support forum either, you will get the same answer!");
4922
4994
  }
4923
- if (this.isGroupRemoveSingleChildren() && this.isGroupHideOpenParents()) ;
4924
4995
  if (this.isRowModelServerSide()) {
4925
- if (exists(this.gridOptions.groupDefaultExpanded)) ;
4926
- if (exists(this.gridOptions.groupDefaultExpanded)) ;
4927
- if (exists(this.gridOptions.groupDefaultExpanded)) ;
4996
+ var msg = function (prop) { return "AG Grid: '" + prop + "' is not supported on the Server-Side Row Model"; };
4997
+ if (exists(this.gridOptions.groupDefaultExpanded)) {
4998
+ console.warn(msg('groupDefaultExpanded'));
4999
+ }
5000
+ if (exists(this.gridOptions.groupDefaultExpanded)) {
5001
+ console.warn(msg('groupIncludeFooter'));
5002
+ }
5003
+ if (exists(this.gridOptions.groupDefaultExpanded)) {
5004
+ console.warn(msg('groupIncludeTotalFooter'));
5005
+ }
4928
5006
  }
4929
5007
  if (isTrue(this.gridOptions.enableRangeSelection)) {
4930
5008
  ModuleRegistry.assertRegistered(ModuleNames.RangeSelectionModule, 'enableRangeSelection');
4931
5009
  }
4932
- else if (this.isEnableRangeHandle() || this.isEnableFillHandle()) ;
5010
+ else if (this.isEnableRangeHandle() || this.isEnableFillHandle()) {
5011
+ console.warn("AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");
5012
+ }
4933
5013
  if (this.isGroupRowsSticky()) {
4934
- if (this.isGroupHideOpenParents()) ;
4935
- if (this.isMasterDetail()) ;
4936
- if (this.isPagination()) ;
5014
+ if (this.isGroupHideOpenParents()) {
5015
+ console.warn("AG Grid: groupRowsSticky and groupHideOpenParents do not work with each other, you need to pick one.");
5016
+ }
5017
+ if (this.isMasterDetail()) {
5018
+ console.warn("AG Grid: groupRowsSticky and masterDetail do not work with each other, you need to pick one.");
5019
+ }
5020
+ if (this.isPagination()) {
5021
+ console.warn("AG Grid: groupRowsSticky and pagination do not work with each other, you need to pick one.");
5022
+ }
4937
5023
  }
5024
+ var warnOfDeprecaredIcon = function (name) {
5025
+ if (_this.gridOptions.icons && _this.gridOptions.icons[name]) {
5026
+ console.warn("gridOptions.icons." + name + " is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/");
5027
+ }
5028
+ };
5029
+ warnOfDeprecaredIcon('radioButtonOff');
5030
+ warnOfDeprecaredIcon('radioButtonOn');
5031
+ warnOfDeprecaredIcon('checkboxChecked');
5032
+ warnOfDeprecaredIcon('checkboxUnchecked');
5033
+ warnOfDeprecaredIcon('checkboxIndeterminate');
4938
5034
  // sets an initial calculation for the scrollbar width
4939
5035
  this.getScrollbarWidth();
4940
5036
  };
@@ -4958,7 +5054,11 @@ var GridOptionsWrapper = /** @class */ (function () {
4958
5054
  GridOptionsWrapper.prototype.checkProperties = function (userProperties, validPropertiesAndExceptions, validProperties, containerName, docsUrl) {
4959
5055
  var invalidProperties = fuzzyCheckStrings(userProperties, validPropertiesAndExceptions, validProperties);
4960
5056
  iterateObject(invalidProperties, function (key, value) {
5057
+ console.warn("ag-grid: invalid " + containerName + " property '" + key + "' did you mean any of these: " + value.slice(0, 8).join(", "));
4961
5058
  });
5059
+ if (Object.keys(invalidProperties).length > 0) {
5060
+ console.warn("ag-grid: to see all the valid " + containerName + " properties please check: " + docsUrl);
5061
+ }
4962
5062
  };
4963
5063
  /**
4964
5064
  * Wrap the user callback and attach the api, columnApi and context to the params object on the way through.
@@ -5217,7 +5317,7 @@ var GridOptionsWrapper = /** @class */ (function () {
5217
5317
  ];
5218
5318
  if (validLayouts.indexOf(domLayout) === -1) {
5219
5319
  doOnce(function () {
5220
- return (void 0);
5320
+ return console.warn("AG Grid: " + domLayout + " is not valid for DOM Layout, valid values are " + Constants.DOM_LAYOUT_NORMAL + ", " + Constants.DOM_LAYOUT_AUTO_HEIGHT + " and " + Constants.DOM_LAYOUT_PRINT);
5221
5321
  }, 'warn about dom layout values');
5222
5322
  return Constants.DOM_LAYOUT_NORMAL;
5223
5323
  }
@@ -5612,7 +5712,7 @@ var GridOptionsWrapper = /** @class */ (function () {
5612
5712
  return 'xy';
5613
5713
  }
5614
5714
  if (direction !== 'x' && direction !== 'y' && direction !== 'xy') {
5615
- doOnce(function () { return (void 0); }, 'warn invalid fill direction');
5715
+ doOnce(function () { return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'."); }, 'warn invalid fill direction');
5616
5716
  return 'xy';
5617
5717
  }
5618
5718
  return direction;
@@ -5711,6 +5811,7 @@ var GridOptionsWrapper = /** @class */ (function () {
5711
5811
  };
5712
5812
  GridOptionsWrapper.prototype.getDefaultExportParams = function (type) {
5713
5813
  if (this.gridOptions.defaultExportParams) {
5814
+ console.warn("AG Grid: Since v25.2 `defaultExportParams` has been replaced by `default" + capitalise(type) + "ExportParams`'");
5714
5815
  if (type === 'csv') {
5715
5816
  return this.gridOptions.defaultExportParams;
5716
5817
  }
@@ -5843,7 +5944,7 @@ var GridOptionsWrapper = /** @class */ (function () {
5843
5944
  GridOptionsWrapper.prototype.isServerSideSortAllLevels = function () {
5844
5945
  var isEnabled = isTrue(this.gridOptions.serverSideSortAllLevels);
5845
5946
  if (!this.isRowModelServerSide() && isEnabled) {
5846
- doOnce(function () { return (void 0); }, 'serverSideSortAllLevels');
5947
+ doOnce(function () { return console.warn('AG Grid: The `serverSideSortAllLevels` property can only be used with the server side row model.'); }, 'serverSideSortAllLevels');
5847
5948
  return false;
5848
5949
  }
5849
5950
  return isEnabled;
@@ -5851,7 +5952,7 @@ var GridOptionsWrapper = /** @class */ (function () {
5851
5952
  GridOptionsWrapper.prototype.isServerSideFilterAllLevels = function () {
5852
5953
  var isEnabled = isTrue(this.gridOptions.serverSideFilterAllLevels);
5853
5954
  if (!this.isRowModelServerSide() && isEnabled) {
5854
- doOnce(function () { return (void 0); }, 'serverSideFilterAllLevels');
5955
+ doOnce(function () { return console.warn('AG Grid: The `serverSideFilterAllLevels` property can only be used with the server side row model.'); }, 'serverSideFilterAllLevels');
5855
5956
  return false;
5856
5957
  }
5857
5958
  return isEnabled;
@@ -5859,11 +5960,11 @@ var GridOptionsWrapper = /** @class */ (function () {
5859
5960
  GridOptionsWrapper.prototype.isServerSideSortOnServer = function () {
5860
5961
  var isEnabled = isTrue(this.gridOptions.serverSideSortOnServer);
5861
5962
  if (!this.isRowModelServerSide() && isEnabled) {
5862
- doOnce(function () { return (void 0); }, 'serverSideSortOnServerRowModel');
5963
+ doOnce(function () { return console.warn('AG Grid: The `serverSideSortOnServer` property can only be used with the server side row model.'); }, 'serverSideSortOnServerRowModel');
5863
5964
  return false;
5864
5965
  }
5865
5966
  if (this.isTreeData() && isEnabled) {
5866
- doOnce(function () { return (void 0); }, 'serverSideSortOnServerTreeData');
5967
+ doOnce(function () { return console.warn('AG Grid: The `serverSideSortOnServer` property cannot be used while using tree data.'); }, 'serverSideSortOnServerTreeData');
5867
5968
  return false;
5868
5969
  }
5869
5970
  return isEnabled;
@@ -5871,11 +5972,11 @@ var GridOptionsWrapper = /** @class */ (function () {
5871
5972
  GridOptionsWrapper.prototype.isServerSideFilterOnServer = function () {
5872
5973
  var isEnabled = isTrue(this.gridOptions.serverSideFilterOnServer);
5873
5974
  if (!this.isRowModelServerSide() && isEnabled) {
5874
- doOnce(function () { return (void 0); }, 'serverSideFilterOnServerRowModel');
5975
+ doOnce(function () { return console.warn('AG Grid: The `serverSideFilterOnServer` property can only be used with the server side row model.'); }, 'serverSideFilterOnServerRowModel');
5875
5976
  return false;
5876
5977
  }
5877
5978
  if (this.isTreeData() && isEnabled) {
5878
- doOnce(function () { return (void 0); }, 'serverSideFilterOnServerTreeData');
5979
+ doOnce(function () { return console.warn('AG Grid: The `serverSideFilterOnServer` property cannot be used while using tree data.'); }, 'serverSideFilterOnServerTreeData');
5879
5980
  return false;
5880
5981
  }
5881
5982
  return isEnabled;
@@ -5984,7 +6085,7 @@ var GridOptionsWrapper = /** @class */ (function () {
5984
6085
  var capitalisedType = capitalise(type);
5985
6086
  if (exists(delay)) {
5986
6087
  if (delay < 0) {
5987
- doOnce(function () { return (void 0); }, "tooltip" + capitalisedType + "DelayWarn");
6088
+ doOnce(function () { return console.warn("ag-grid: tooltip" + capitalisedType + "Delay should not be lower than 0"); }, "tooltip" + capitalisedType + "DelayWarn");
5988
6089
  }
5989
6090
  return Math.max(200, delay);
5990
6091
  }
@@ -6035,7 +6136,7 @@ var GridOptionsWrapper = /** @class */ (function () {
6035
6136
  var rowBuffer = this.gridOptions.rowBuffer;
6036
6137
  if (typeof rowBuffer === 'number') {
6037
6138
  if (rowBuffer < 0) {
6038
- doOnce(function () { return (void 0); }, 'warn rowBuffer negative');
6139
+ doOnce(function () { return console.warn("AG Grid: rowBuffer should not be negative"); }, 'warn rowBuffer negative');
6039
6140
  this.gridOptions.rowBuffer = rowBuffer = 0;
6040
6141
  }
6041
6142
  }
@@ -6069,23 +6170,45 @@ var GridOptionsWrapper = /** @class */ (function () {
6069
6170
  // casting to generic object, so typescript compiles even though
6070
6171
  // we are looking for attributes that don't exist
6071
6172
  var options = this.gridOptions;
6173
+ if (options.deprecatedEmbedFullWidthRows) {
6174
+ console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows.");
6175
+ }
6176
+ if (options.rowDeselection) {
6177
+ console.warn('AG Grid: since v24.x, rowDeselection is deprecated and the behaviour is true by default. Please use `suppressRowDeselection` to prevent rows from being deselected.');
6178
+ }
6072
6179
  if (options.enableMultiRowDragging) {
6073
6180
  options.rowDragMultiRow = true;
6074
6181
  delete options.enableMultiRowDragging;
6182
+ console.warn('AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`.');
6075
6183
  }
6076
6184
  var checkRenamedProperty = function (oldProp, newProp, version) {
6077
6185
  if (options[oldProp] != null) {
6186
+ console.warn("AG Grid: since version " + version + ", '" + oldProp + "' is deprecated / renamed, please use the new property name '" + newProp + "' instead.");
6078
6187
  if (options[newProp] == null) {
6079
6188
  options[newProp] = options[oldProp];
6080
6189
  }
6081
6190
  }
6082
6191
  };
6083
- checkRenamedProperty('batchUpdateWaitMillis', 'asyncTransactionWaitMillis');
6084
- checkRenamedProperty('deltaRowDataMode', 'immutableData');
6085
- checkRenamedProperty('serverSideFilteringAlwaysResets', 'serverSideFilterAllLevels');
6086
- checkRenamedProperty('serverSideSortingAlwaysResets', 'serverSideSortAllLevels');
6087
- checkRenamedProperty('suppressSetColumnStateEvents', 'suppressColumnStateEvents');
6192
+ checkRenamedProperty('batchUpdateWaitMillis', 'asyncTransactionWaitMillis', '23.1.x');
6193
+ checkRenamedProperty('deltaRowDataMode', 'immutableData', '23.1.x');
6194
+ checkRenamedProperty('serverSideFilteringAlwaysResets', 'serverSideFilterAllLevels', '28.0.0');
6195
+ checkRenamedProperty('serverSideSortingAlwaysResets', 'serverSideSortAllLevels', '28.0.0');
6196
+ if (options.immutableColumns || options.deltaColumnMode) {
6197
+ console.warn('AG Grid: since v24.0, immutableColumns and deltaColumnMode properties are gone. The grid now works like this as default. To keep column order maintained, set grid property applyColumnDefOrder=true');
6198
+ }
6199
+ checkRenamedProperty('suppressSetColumnStateEvents', 'suppressColumnStateEvents', '24.0.x');
6088
6200
  if (options.groupRowInnerRenderer || options.groupRowInnerRendererParams || options.groupRowInnerRendererFramework) {
6201
+ console.warn('AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used.');
6202
+ console.warn(' Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams.');
6203
+ console.warn(' For example instead of this:');
6204
+ console.warn(' groupRowInnerRenderer: "myRenderer"');
6205
+ console.warn(' groupRowInnerRendererParams: {x: a}');
6206
+ console.warn(' Replace with this:');
6207
+ console.warn(' groupRowRendererParams: {');
6208
+ console.warn(' innerRenderer: "myRenderer",');
6209
+ console.warn(' innerRendererParams: {x: a}');
6210
+ console.warn(' }');
6211
+ console.warn(' We have copied the properties over for you. However to stop this error message, please change your application code.');
6089
6212
  if (!options.groupRowRendererParams) {
6090
6213
  options.groupRowRendererParams = {};
6091
6214
  }
@@ -6100,36 +6223,105 @@ var GridOptionsWrapper = /** @class */ (function () {
6100
6223
  params.innerRendererFramework = options.groupRowInnerRendererFramework;
6101
6224
  }
6102
6225
  }
6226
+ if (options.rememberGroupStateWhenNewData) {
6227
+ console.warn('AG Grid: since v24.0, grid property rememberGroupStateWhenNewData is deprecated. This feature was provided before Transaction Updates worked (which keep group state). Now that transaction updates are possible and they keep group state, this feature is no longer needed.');
6228
+ }
6103
6229
  if (options.detailCellRendererParams && options.detailCellRendererParams.autoHeight) {
6230
+ console.warn('AG Grid: since v24.1, grid property detailCellRendererParams.autoHeight is replaced with grid property detailRowAutoHeight. This allows this feature to work when you provide a custom DetailCellRenderer');
6104
6231
  options.detailRowAutoHeight = true;
6105
6232
  }
6233
+ if (options.suppressKeyboardEvent) {
6234
+ console.warn("AG Grid: since v24.1 suppressKeyboardEvent in the gridOptions has been deprecated and will be removed in\n future versions of AG Grid. If you need this to be set for every column use the defaultColDef property.");
6235
+ }
6236
+ if (options.suppressEnterpriseResetOnNewColumns) {
6237
+ console.warn('AG Grid: since v25, grid property suppressEnterpriseResetOnNewColumns is deprecated. This was a temporary property to allow changing columns in Server Side Row Model without triggering a reload. Now that it is possible to dynamically change columns in the grid, this is no longer needed.');
6238
+ }
6239
+ if (options.suppressColumnStateEvents) {
6240
+ console.warn('AG Grid: since v25, grid property suppressColumnStateEvents no longer works due to a refactor that we did. It should be possible to achieve similar using event.source, which would be "api" if the event was due to setting column state via the API');
6241
+ }
6242
+ if (options.defaultExportParams) {
6243
+ console.warn('AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`.');
6244
+ }
6106
6245
  if (options.stopEditingWhenGridLosesFocus) {
6246
+ console.warn('AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`.');
6107
6247
  options.stopEditingWhenCellsLoseFocus = true;
6108
6248
  }
6249
+ if (options.applyColumnDefOrder) {
6250
+ console.warn('AG Grid: since v26.0, the grid property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true');
6251
+ }
6109
6252
  if (options.groupMultiAutoColumn) {
6253
+ console.warn("AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`");
6110
6254
  options.groupDisplayType = 'multipleColumns';
6111
6255
  }
6112
6256
  if (options.groupUseEntireRow) {
6257
+ console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`");
6113
6258
  options.groupDisplayType = 'groupRows';
6114
6259
  }
6115
6260
  if (options.groupSuppressAutoColumn) {
6261
+ var propName = options.treeData ? 'treeDataDisplayType' : 'groupDisplayType';
6262
+ console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `" + propName + " = 'custom'`");
6116
6263
  options.groupDisplayType = 'custom';
6117
6264
  }
6265
+ if (options.defaultGroupOrderComparator) {
6266
+ console.warn("AG Grid: since v27.2, the grid property `defaultGroupOrderComparator` is deprecated and has been replaced by `initialGroupOrderComparator` and now receives a single params object.");
6267
+ }
6118
6268
  if (options.defaultGroupSortComparator) {
6269
+ console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `initialGroupOrderComparator`");
6119
6270
  options.defaultGroupOrderComparator = options.defaultGroupSortComparator;
6120
6271
  }
6272
+ if (options.groupRowAggNodes) {
6273
+ console.warn("AG Grid: since v27.2, the grid property `groupRowAggNodes` is deprecated and has been replaced by `getGroupRowAgg` and now receives a single params object.");
6274
+ }
6275
+ if (options.postSort) {
6276
+ console.warn("AG Grid: since v27.2, the grid property `postSort` is deprecated and has been replaced by `postSortRows` and now receives a single params object.");
6277
+ }
6278
+ if (options.isFullWidthCell) {
6279
+ console.warn("AG Grid: since v27.2, the grid property `isFullWidthCell` is deprecated and has been replaced by `isFullWidthRow` and now receives a single params object.");
6280
+ }
6281
+ if (options.localeTextFunc) {
6282
+ console.warn("AG Grid: since v27.2, the grid property `localeTextFunc` is deprecated and has been replaced by `getLocaleText` and now receives a single params object.");
6283
+ }
6284
+ if (options.colWidth) {
6285
+ console.warn('AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`.');
6286
+ }
6287
+ if (options.minColWidth) {
6288
+ console.warn('AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`.');
6289
+ }
6290
+ if (options.maxColWidth) {
6291
+ console.warn('AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`.');
6292
+ }
6293
+ if (options.reactUi) {
6294
+ console.warn('AG Grid: since v27.0, React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true.');
6295
+ }
6296
+ if (options.suppressReactUi) {
6297
+ console.warn('AG Grid: The legacy React rendering engine is deprecated and will be removed in the next major version of the grid.');
6298
+ }
6121
6299
  if (options.suppressCellSelection) {
6300
+ console.warn('AG Grid: since v27.0, `suppressCellSelection` has been replaced by `suppressCellFocus`.');
6122
6301
  options.suppressCellFocus = options.suppressCellSelection;
6123
6302
  }
6303
+ if (options.getRowNodeId) {
6304
+ console.warn('AG Grid: since v27.1, `getRowNodeId` is deprecated and has been replaced by `getRowId`. The difference: if getRowId() is implemented then immutable data is enabled by default.');
6305
+ }
6306
+ if (options.immutableData) {
6307
+ if (options.getRowId) {
6308
+ console.warn('AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`.');
6309
+ }
6310
+ else {
6311
+ console.warn('AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.');
6312
+ }
6313
+ }
6124
6314
  if (options.clipboardDeliminator) {
6315
+ console.warn('AG Grid: since v27.1, `clipboardDeliminator` has been replaced by `clipboardDelimiter`.');
6125
6316
  options.clipboardDelimiter = options.clipboardDeliminator;
6126
6317
  }
6127
- checkRenamedProperty('processSecondaryColDef', 'processPivotResultColDef');
6128
- checkRenamedProperty('processSecondaryColGroupDef', 'processPivotResultColGroupDef');
6318
+ checkRenamedProperty('processSecondaryColDef', 'processPivotResultColDef', '28.0.x');
6319
+ checkRenamedProperty('processSecondaryColGroupDef', 'processPivotResultColGroupDef', '28.0.x');
6129
6320
  if (options.serverSideStoreType) {
6321
+ console.warn('AG Grid: since v28.0, `serverSideStoreType` has been replaced by `serverSideInfiniteScroll`. Set to true to use Partial Store, and false to use Full Store.');
6130
6322
  options.serverSideInfiniteScroll = options.serverSideStoreType === 'partial';
6131
6323
  }
6132
- checkRenamedProperty('getServerSideStoreParams', 'getServerSideGroupLevelParams');
6324
+ checkRenamedProperty('getServerSideStoreParams', 'getServerSideGroupLevelParams', '28.0.x');
6133
6325
  };
6134
6326
  GridOptionsWrapper.prototype.checkForViolations = function () {
6135
6327
  if (this.isTreeData()) {
@@ -6138,11 +6330,20 @@ var GridOptionsWrapper = /** @class */ (function () {
6138
6330
  };
6139
6331
  GridOptionsWrapper.prototype.treeDataViolations = function () {
6140
6332
  if (this.isRowModelDefault()) {
6141
- if (missing(this.getDataPathFunc())) ;
6333
+ if (missing(this.getDataPathFunc())) {
6334
+ console.warn('AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not ' +
6335
+ 'provide getDataPath function, please provide getDataPath function if using tree data.');
6336
+ }
6142
6337
  }
6143
6338
  if (this.isRowModelServerSide()) {
6144
- if (missing(this.getIsServerSideGroupFunc())) ;
6145
- if (missing(this.getServerSideGroupKeyFunc())) ;
6339
+ if (missing(this.getIsServerSideGroupFunc())) {
6340
+ console.warn('AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not ' +
6341
+ 'provide isServerSideGroup function, please provide isServerSideGroup function if using tree data.');
6342
+ }
6343
+ if (missing(this.getServerSideGroupKeyFunc())) {
6344
+ console.warn('AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not ' +
6345
+ 'provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data.');
6346
+ }
6146
6347
  }
6147
6348
  };
6148
6349
  GridOptionsWrapper.prototype.getLocaleTextFunc = function () {
@@ -6211,6 +6412,7 @@ var GridOptionsWrapper = /** @class */ (function () {
6211
6412
  this.setRowHeightVariable(rowHeight);
6212
6413
  return rowHeight;
6213
6414
  }
6415
+ console.warn('AG Grid row height must be a number if not using standard row model');
6214
6416
  return this.getDefaultRowHeight();
6215
6417
  };
6216
6418
  GridOptionsWrapper.prototype.isGetRowHeightFunction = function () {
@@ -6235,7 +6437,7 @@ var GridOptionsWrapper = /** @class */ (function () {
6235
6437
  var height = this.mergeGridCommonParams(this.gridOptions.getRowHeight)(params);
6236
6438
  if (this.isNumeric(height)) {
6237
6439
  if (height === 0) {
6238
- doOnce(function () { return (void 0); }, 'invalidRowHeight');
6440
+ doOnce(function () { return console.warn('AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.'); }, 'invalidRowHeight');
6239
6441
  }
6240
6442
  return { height: Math.max(1, height), estimated: false };
6241
6443
  }
@@ -6280,6 +6482,7 @@ var GridOptionsWrapper = /** @class */ (function () {
6280
6482
  GridOptionsWrapper.prototype.matchesGroupDisplayType = function (toMatch, supplied) {
6281
6483
  var groupDisplayTypeValues = ['groupRows', 'multipleColumns', 'custom', 'singleColumn'];
6282
6484
  if (groupDisplayTypeValues.indexOf(supplied) < 0) {
6485
+ console.warn("AG Grid: '" + supplied + "' is not a valid groupDisplayType value - possible values are: '" + groupDisplayTypeValues.join("', '") + "'");
6283
6486
  return false;
6284
6487
  }
6285
6488
  return supplied === toMatch;
@@ -6287,6 +6490,7 @@ var GridOptionsWrapper = /** @class */ (function () {
6287
6490
  GridOptionsWrapper.prototype.matchesTreeDataDisplayType = function (toMatch, supplied) {
6288
6491
  var treeDataDisplayTypeValues = ['auto', 'custom'];
6289
6492
  if (treeDataDisplayTypeValues.indexOf(supplied) < 0) {
6493
+ console.warn("AG Grid: '" + supplied + "' is not a valid treeDataDisplayType value - possible values are: '" + treeDataDisplayTypeValues.join("', '") + "'");
6290
6494
  return false;
6291
6495
  }
6292
6496
  return supplied === toMatch;
@@ -6671,6 +6875,7 @@ var ColumnModel = /** @class */ (function (_super) {
6671
6875
  };
6672
6876
  ColumnModel.prototype.isPivotSettingAllowed = function (pivot) {
6673
6877
  if (pivot && this.gridOptionsWrapper.isTreeData()) {
6878
+ console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'");
6674
6879
  return false;
6675
6880
  }
6676
6881
  return true;
@@ -7301,6 +7506,7 @@ var ColumnModel = /** @class */ (function (_super) {
7301
7506
  if (loopCount > 1000) {
7302
7507
  // this should never happen, but in the future, someone might introduce a bug here,
7303
7508
  // so we stop the browser from hanging and report bug properly
7509
+ console.error('AG Grid: infinite loop in resizeColumnSets');
7304
7510
  return "break";
7305
7511
  }
7306
7512
  finishedColsGrew = false;
@@ -7418,6 +7624,8 @@ var ColumnModel = /** @class */ (function (_super) {
7418
7624
  if (source === void 0) { source = "api"; }
7419
7625
  this.columnAnimationService.start();
7420
7626
  if (toIndex > this.gridColumns.length - columnsToMoveKeys.length) {
7627
+ console.warn('AG Grid: tried to insert columns in invalid location, toIndex = ' + toIndex);
7628
+ console.warn('AG Grid: remember that you should not count the moving columns when calculating the new index');
7421
7629
  return;
7422
7630
  }
7423
7631
  // we want to pull all the columns out first and put them into an ordered list
@@ -7670,6 +7878,7 @@ var ColumnModel = /** @class */ (function (_super) {
7670
7878
  ColumnModel.prototype.setColumnsPinned = function (keys, pinned, source) {
7671
7879
  if (source === void 0) { source = "api"; }
7672
7880
  if (this.gridOptionsWrapper.getDomLayout() === 'print') {
7881
+ console.warn("Changing the column pinning status is not allowed with domLayout='print'");
7673
7882
  return;
7674
7883
  }
7675
7884
  this.columnAnimationService.start();
@@ -7939,6 +8148,7 @@ var ColumnModel = /** @class */ (function (_super) {
7939
8148
  return false;
7940
8149
  }
7941
8150
  if (params && params.state && !params.state.forEach) {
8151
+ console.warn('AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.');
7942
8152
  return false;
7943
8153
  }
7944
8154
  var applyStates = function (states, existingColumns, getById) {
@@ -8085,6 +8295,7 @@ var ColumnModel = /** @class */ (function (_super) {
8085
8295
  // is less sexy for the code here, but it keeps consistency.
8086
8296
  newOrder = this.placeLockedColumns(newOrder);
8087
8297
  if (!this.doesMovePassMarryChildren(newOrder)) {
8298
+ console.warn('AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.');
8088
8299
  return;
8089
8300
  }
8090
8301
  this.gridColumns = newOrder;
@@ -8336,7 +8547,11 @@ var ColumnModel = /** @class */ (function (_super) {
8336
8547
  }
8337
8548
  }
8338
8549
  else {
8339
- if (exists(aggFunc)) ;
8550
+ if (exists(aggFunc)) {
8551
+ console.warn('AG Grid: stateItem.aggFunc must be a string. if using your own aggregation ' +
8552
+ 'functions, register the functions first before using them in get/set state. This is because it is ' +
8553
+ 'intended for the column state to be stored and retrieved as simple JSON.');
8554
+ }
8340
8555
  // Note: we do not call column.setAggFunc(null), so that next time we aggregate
8341
8556
  // by this column (eg drag the column to the agg section int he toolpanel) it will
8342
8557
  // default to the last aggregation function.
@@ -8404,6 +8619,9 @@ var ColumnModel = /** @class */ (function (_super) {
8404
8619
  return null;
8405
8620
  }
8406
8621
  var column = this.getGridColumn(key);
8622
+ if (!column) {
8623
+ console.warn('AG Grid: could not find column ' + key);
8624
+ }
8407
8625
  return column;
8408
8626
  };
8409
8627
  ColumnModel.prototype.getPrimaryColumn = function (key) {
@@ -8506,6 +8724,7 @@ var ColumnModel = /** @class */ (function (_super) {
8506
8724
  // valueGetter is an expression, so execute the expression
8507
8725
  return this.expressionService.evaluate(headerValueGetter, params);
8508
8726
  }
8727
+ console.warn('ag-grid: headerValueGetter must be a function or a string');
8509
8728
  return '';
8510
8729
  }
8511
8730
  else if (colDef.headerName != null) {
@@ -8800,6 +9019,10 @@ var ColumnModel = /** @class */ (function (_super) {
8800
9019
  this.setColumnGroupState([{ groupId: keyAsString, open: newValue }], source);
8801
9020
  };
8802
9021
  ColumnModel.prototype.getProvidedColumnGroup = function (key) {
9022
+ // if (key instanceof ProvidedColumnGroup) { return key; }
9023
+ if (typeof key !== 'string') {
9024
+ console.error('AG Grid: group key must be a string');
9025
+ }
8803
9026
  // otherwise, search for the column group by id
8804
9027
  var res = null;
8805
9028
  this.columnUtils.depthFirstOriginalTreeSearch(null, this.gridBalancedTree, function (node) {
@@ -9010,7 +9233,8 @@ var ColumnModel = /** @class */ (function (_super) {
9010
9233
  var rowModelType = this.rowModel.getType();
9011
9234
  var supportedRowModel = rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE || rowModelType === Constants.ROW_MODEL_TYPE_SERVER_SIDE;
9012
9235
  if (!supportedRowModel) {
9013
- doOnce(function () { return (void 0); }, 'autoHeightActive.wrongRowModel');
9236
+ var message_1 = 'AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.';
9237
+ doOnce(function () { return console.warn(message_1); }, 'autoHeightActive.wrongRowModel');
9014
9238
  }
9015
9239
  }
9016
9240
  };
@@ -10002,6 +10226,7 @@ var DisplayedGroupCreator = /** @class */ (function (_super) {
10002
10226
  if (found) {
10003
10227
  return result;
10004
10228
  }
10229
+ console.warn('AG Grid: could not get path');
10005
10230
  return null;
10006
10231
  };
10007
10232
  DisplayedGroupCreator = __decorate$36([
@@ -11685,12 +11910,14 @@ function createIconNoSpan(iconName, gridOptionsWrapper, column, forceCreate) {
11685
11910
  if (isNodeOrElement(rendererResult)) {
11686
11911
  return rendererResult;
11687
11912
  }
11913
+ console.warn('AG Grid: iconRenderer should return back a string or a dom object');
11688
11914
  }
11689
11915
  else {
11690
11916
  var span = document.createElement('span');
11691
11917
  var cssClass = iconNameClassMap[iconName];
11692
11918
  if (!cssClass) {
11693
11919
  if (!forceCreate) {
11920
+ console.warn("AG Grid: Did not find icon " + iconName);
11694
11921
  cssClass = '';
11695
11922
  }
11696
11923
  else {
@@ -12129,6 +12356,7 @@ var AgPromise = /** @class */ (function () {
12129
12356
  this.waiters.forEach(function (waiter) { return waiter(value); });
12130
12357
  };
12131
12358
  AgPromise.prototype.onReject = function (params) {
12359
+ console.warn('TBI');
12132
12360
  };
12133
12361
  return AgPromise;
12134
12362
  }());
@@ -12754,9 +12982,11 @@ function RefSelector(ref) {
12754
12982
  }
12755
12983
  function querySelectorFunc(selector, refSelector, classPrototype, methodOrAttributeName, index) {
12756
12984
  if (selector === null) {
12985
+ console.error('AG Grid: QuerySelector selector should not be null');
12757
12986
  return;
12758
12987
  }
12759
12988
  if (typeof index === 'number') {
12989
+ console.error('AG Grid: QuerySelector should be on an attribute');
12760
12990
  return;
12761
12991
  }
12762
12992
  addToObjectProps(classPrototype, 'querySelectors', {
@@ -12991,8 +13221,12 @@ var OptionsFactory = /** @class */ (function () {
12991
13221
  this.checkForDeprecatedParams();
12992
13222
  };
12993
13223
  OptionsFactory.prototype.checkForDeprecatedParams = function () {
12994
- if (this.filterOptions.some(function (opt) { return typeof opt != 'string' && opt.test != null; })) ;
12995
- if (this.filterOptions.some(function (opt) { return typeof opt != 'string' && opt.hideFilterInput != null; })) ;
13224
+ if (this.filterOptions.some(function (opt) { return typeof opt != 'string' && opt.test != null; })) {
13225
+ console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate().");
13226
+ }
13227
+ if (this.filterOptions.some(function (opt) { return typeof opt != 'string' && opt.hideFilterInput != null; })) {
13228
+ console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.");
13229
+ }
12996
13230
  };
12997
13231
  OptionsFactory.prototype.getFilterOptions = function () {
12998
13232
  return this.filterOptions;
@@ -13009,6 +13243,7 @@ var OptionsFactory = /** @class */ (function () {
13009
13243
  var requiredProperties = [['displayKey'], ['displayName'], ['predicate', 'test']];
13010
13244
  var propertyCheck = function (keys) {
13011
13245
  if (!keys.some(function (key) { return filterOption[key] != null; })) {
13246
+ console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '" + keys + "'");
13012
13247
  return false;
13013
13248
  }
13014
13249
  return true;
@@ -13042,9 +13277,13 @@ var OptionsFactory = /** @class */ (function () {
13042
13277
  else if (firstFilterOption.displayKey) {
13043
13278
  this.defaultOption = firstFilterOption.displayKey;
13044
13279
  }
13045
- else ;
13280
+ else {
13281
+ console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'");
13282
+ }
13283
+ }
13284
+ else {
13285
+ console.warn('AG Grid: no filter options for filter');
13046
13286
  }
13047
- else ;
13048
13287
  };
13049
13288
  OptionsFactory.prototype.getDefaultOption = function () {
13050
13289
  return this.defaultOption;
@@ -13307,6 +13546,7 @@ var ProvidedFilter = /** @class */ (function (_super) {
13307
13546
  clickListener = function (e) { _this.onBtCancel(e); };
13308
13547
  break;
13309
13548
  default:
13549
+ console.warn('AG Grid: Unknown button type specified');
13310
13550
  return;
13311
13551
  }
13312
13552
  var buttonType = type === 'apply' ? 'submit' : 'button';
@@ -13447,6 +13687,9 @@ var ProvidedFilter = /** @class */ (function (_super) {
13447
13687
  // static, as used by floating filter also
13448
13688
  ProvidedFilter.getDebounceMs = function (params, debounceDefault) {
13449
13689
  if (ProvidedFilter.isUseApplyButton(params)) {
13690
+ if (params.debounceMs != null) {
13691
+ console.warn('AG Grid: debounceMs is ignored when apply button is present');
13692
+ }
13450
13693
  return 0;
13451
13694
  }
13452
13695
  return params.debounceMs != null ? params.debounceMs : debounceDefault;
@@ -14823,6 +15066,7 @@ var ScalarFilter = /** @class */ (function (_super) {
14823
15066
  case ScalarFilter.NOT_BLANK:
14824
15067
  return !this.isBlank(cellValue);
14825
15068
  default:
15069
+ console.warn('AG Grid: Unexpected type of filter "' + filterModel.type + '", it looks like the filter was configured with incorrect Filter Options');
14826
15070
  return true;
14827
15071
  }
14828
15072
  };
@@ -14916,11 +15160,17 @@ var DateFilter = /** @class */ (function (_super) {
14916
15160
  if (!isNaN(params[param])) {
14917
15161
  return params[param] == null ? fallback : Number(params[param]);
14918
15162
  }
15163
+ else {
15164
+ console.warn("AG Grid: DateFilter " + param + " is not a number");
15165
+ }
14919
15166
  }
14920
15167
  return fallback;
14921
15168
  };
14922
15169
  this.minValidYear = yearParser('minValidYear', DEFAULT_MIN_YEAR);
14923
15170
  this.maxValidYear = yearParser('maxValidYear', DEFAULT_MAX_YEAR);
15171
+ if (this.minValidYear > this.maxValidYear) {
15172
+ console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear");
15173
+ }
14924
15174
  this.createDateComponents();
14925
15175
  };
14926
15176
  DateFilter.prototype.createDateComponents = function () {
@@ -15621,7 +15871,7 @@ var TextFilter = /** @class */ (function (_super) {
15621
15871
  TextFilter.prototype.getTextMatcher = function () {
15622
15872
  var legacyComparator = this.textFilterParams.textCustomComparator;
15623
15873
  if (legacyComparator) {
15624
- _.doOnce(function () { return (void 0); }, 'textCustomComparator.deprecated');
15874
+ _.doOnce(function () { return console.warn('AG Grid - textCustomComparator is deprecated, use textMatcher instead.'); }, 'textCustomComparator.deprecated');
15625
15875
  return function (_a) {
15626
15876
  var filterOption = _a.filterOption, value = _a.value, filterText = _a.filterText;
15627
15877
  return legacyComparator(filterOption, value, filterText);
@@ -16547,7 +16797,8 @@ var HeaderGroupComp = /** @class */ (function (_super) {
16547
16797
  HeaderGroupComp.prototype.checkWarnings = function () {
16548
16798
  var paramsAny = this.params;
16549
16799
  if (paramsAny.template) {
16550
- doOnce(function () { return (void 0); }, 'HeaderGroupComp.templateNotSupported');
16800
+ var message_1 = "AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)";
16801
+ doOnce(function () { return console.warn(message_1); }, 'HeaderGroupComp.templateNotSupported');
16551
16802
  }
16552
16803
  };
16553
16804
  HeaderGroupComp.prototype.setupExpandIcons = function () {
@@ -16778,6 +17029,7 @@ var SelectCellEditor = /** @class */ (function (_super) {
16778
17029
  var _this = this;
16779
17030
  this.focusAfterAttached = params.cellStartedEdit;
16780
17031
  if (missing(params.values)) {
17032
+ console.warn('AG Grid: no values found for select cellEditor');
16781
17033
  return;
16782
17034
  }
16783
17035
  this.startedByEnter = params.eventKey != null ? params.eventKey === KeyCode.ENTER : false;
@@ -16851,7 +17103,7 @@ var PopupSelectCellEditor = /** @class */ (function (_super) {
16851
17103
  __extends$2_(PopupSelectCellEditor, _super);
16852
17104
  function PopupSelectCellEditor() {
16853
17105
  var _this = _super.call(this) || this;
16854
- doOnce(function () { return (void 0); }, 'PopupSelectCellEditor.deprecated');
17106
+ doOnce(function () { return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: "agSelectCellEditor", cellEditorPopup: true} '); }, 'PopupSelectCellEditor.deprecated');
16855
17107
  return _this;
16856
17108
  }
16857
17109
  PopupSelectCellEditor.prototype.isPopup = function () {
@@ -17005,7 +17257,7 @@ var PopupTextCellEditor = /** @class */ (function (_super) {
17005
17257
  __extends$2Y(PopupTextCellEditor, _super);
17006
17258
  function PopupTextCellEditor() {
17007
17259
  var _this = _super.call(this) || this;
17008
- doOnce(function () { return (void 0); }, 'PopupTextCellEditor.deprecated');
17260
+ doOnce(function () { return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: "agTextCellEditor", cellEditorPopup: true} '); }, 'PopupTextCellEditor.deprecated');
17009
17261
  return _this;
17010
17262
  }
17011
17263
  PopupTextCellEditor.prototype.isPopup = function () {
@@ -17382,7 +17634,9 @@ var RowNode = /** @class */ (function () {
17382
17634
  });
17383
17635
  // make sure id provided doesn't start with 'row-group-' as this is reserved. also check that
17384
17636
  // it has 'startsWith' in case the user provided a number.
17385
- if (this.id !== null && typeof this.id === 'string' && this.id.startsWith(RowNode.ID_PREFIX_ROW_GROUP)) ;
17637
+ if (this.id !== null && typeof this.id === 'string' && this.id.startsWith(RowNode.ID_PREFIX_ROW_GROUP)) {
17638
+ console.error("AG Grid: Row IDs cannot start with " + RowNode.ID_PREFIX_ROW_GROUP + ", this is a reserved prefix for AG Grid's row grouping feature.");
17639
+ }
17386
17640
  // force id to be a string
17387
17641
  if (this.id !== null && typeof this.id !== 'string') {
17388
17642
  this.id = '' + this.id;
@@ -17841,9 +18095,11 @@ var RowNode = /** @class */ (function () {
17841
18095
  // groupSelectsFiltered only makes sense when group selects children
17842
18096
  var groupSelectsFiltered = groupSelectsChildren && (params.groupSelectsFiltered === true);
17843
18097
  if (this.id === undefined) {
18098
+ console.warn('AG Grid: cannot select node until id for node is known');
17844
18099
  return 0;
17845
18100
  }
17846
18101
  if (this.rowPinned) {
18102
+ console.warn('AG Grid: cannot select pinned rows');
17847
18103
  return 0;
17848
18104
  }
17849
18105
  // if we are a footer, we don't do selection, just pass the info
@@ -18618,7 +18874,9 @@ var DragAndDropService = /** @class */ (function (_super) {
18618
18874
  }
18619
18875
  }
18620
18876
  this.eGhostParent = targetEl;
18621
- if (!this.eGhostParent) ;
18877
+ if (!this.eGhostParent) {
18878
+ console.warn('AG Grid: could not find document body, it is needed for dragging columns');
18879
+ }
18622
18880
  else {
18623
18881
  this.eGhostParent.appendChild(this.eGhost);
18624
18882
  }
@@ -18781,7 +19039,7 @@ var RowDragComp = /** @class */ (function (_super) {
18781
19039
  var treeData = this.beans.gridOptionsWrapper.isTreeData();
18782
19040
  if (treeData && managed) {
18783
19041
  doOnce(function () {
18784
- return (void 0);
19042
+ return console.warn('AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true');
18785
19043
  }, 'RowDragComp.managedAndTreeData');
18786
19044
  }
18787
19045
  };
@@ -19190,7 +19448,9 @@ var GroupCellRendererCtrl = /** @class */ (function (_super) {
19190
19448
  else if (typeof footerValueGetter === 'string') {
19191
19449
  footerValue = this.expressionService.evaluate(footerValueGetter, paramsClone);
19192
19450
  }
19193
- else ;
19451
+ else {
19452
+ console.warn('AG Grid: footerValueGetter should be either a function or a string (expression)');
19453
+ }
19194
19454
  }
19195
19455
  else {
19196
19456
  footerValue = 'Total ' + (this.params.value != null ? this.params.value : '');
@@ -19408,7 +19668,7 @@ var GroupCellRendererCtrl = /** @class */ (function (_super) {
19408
19668
  var paddingCount = manyDimensionThisColumn ? rowNode.uiLevel : 0;
19409
19669
  var userProvidedPaddingPixelsTheDeprecatedWay = params.padding >= 0;
19410
19670
  if (userProvidedPaddingPixelsTheDeprecatedWay) {
19411
- doOnce(function () { return (void 0); }, 'groupCellRenderer->doDeprecatedWay');
19671
+ doOnce(function () { return console.warn('AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the AG Grid documentation page for Themes, in particular the property $row-group-indent-size.'); }, 'groupCellRenderer->doDeprecatedWay');
19412
19672
  }
19413
19673
  if (this.indentClass) {
19414
19674
  this.comp.addOrRemoveCssClass(this.indentClass, false);
@@ -19913,6 +20173,7 @@ var UserComponentRegistry = /** @class */ (function (_super) {
19913
20173
  UserComponentRegistry.prototype.registerDefaultComponent = function (rawName, component) {
19914
20174
  var name = this.translateIfDeprecated(rawName);
19915
20175
  if (this.agGridDefaults[name]) {
20176
+ console.error("Trying to overwrite a default component. You should call registerComponent");
19916
20177
  return;
19917
20178
  }
19918
20179
  this.agGridDefaults[name] = component;
@@ -19920,6 +20181,7 @@ var UserComponentRegistry = /** @class */ (function (_super) {
19920
20181
  UserComponentRegistry.prototype.registerJsComponent = function (rawName, component) {
19921
20182
  var name = this.translateIfDeprecated(rawName);
19922
20183
  if (this.fwComps[name]) {
20184
+ console.error("Trying to register a component that you have already registered for frameworks: " + name);
19923
20185
  return;
19924
20186
  }
19925
20187
  this.jsComps[name] = component;
@@ -19929,7 +20191,8 @@ var UserComponentRegistry = /** @class */ (function (_super) {
19929
20191
  * A the agGridComponent interface (ie IHeaderComp). The final object acceptable by ag-grid
19930
20192
  */
19931
20193
  UserComponentRegistry.prototype.registerFwComponent = function (rawName, component) {
19932
- doOnce(function () { return (void 0); }, "UserComponentRegistry.frameworkComponentsDeprecated");
20194
+ var warningMessage = "AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.";
20195
+ doOnce(function () { return console.warn(warningMessage); }, "UserComponentRegistry.frameworkComponentsDeprecated");
19933
20196
  var name = this.translateIfDeprecated(rawName);
19934
20197
  this.fwComps[name] = component;
19935
20198
  };
@@ -19956,13 +20219,16 @@ var UserComponentRegistry = /** @class */ (function (_super) {
19956
20219
  if (defaultComponent) {
19957
20220
  return createResult(defaultComponent, false);
19958
20221
  }
19959
- if (Object.keys(this.agGridDefaults).indexOf(name) < 0) ;
20222
+ if (Object.keys(this.agGridDefaults).indexOf(name) < 0) {
20223
+ console.warn("AG Grid: Looking for component [" + name + "] but it wasn't found.");
20224
+ }
19960
20225
  return null;
19961
20226
  };
19962
20227
  UserComponentRegistry.prototype.translateIfDeprecated = function (raw) {
19963
20228
  var deprecatedInfo = this.agDeprecatedNames[raw];
19964
20229
  if (deprecatedInfo != null) {
19965
20230
  doOnce(function () {
20231
+ console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename " + deprecatedInfo.propertyHolder + ":" + raw + " to " + deprecatedInfo.propertyHolder + ":" + deprecatedInfo.newComponentName);
19966
20232
  }, 'DEPRECATE_COMPONENT_' + raw);
19967
20233
  return deprecatedInfo.newComponentName;
19968
20234
  }
@@ -20180,6 +20446,7 @@ var UserComponentFactory = /** @class */ (function (_super) {
20180
20446
  };
20181
20447
  UserComponentFactory.prototype.getCompDetails = function (defObject, type, defaultName, params, mandatory) {
20182
20448
  var _this = this;
20449
+ if (mandatory === void 0) { mandatory = false; }
20183
20450
  var propertyName = type.propertyName, cellRenderer = type.cellRenderer;
20184
20451
  var _a = this.getCompKeys(defObject, type, params), compName = _a.compName, jsComp = _a.jsComp, fwComp = _a.fwComp, paramsFromSelector = _a.paramsFromSelector, popupFromSelector = _a.popupFromSelector, popupPositionFromSelector = _a.popupPositionFromSelector;
20185
20452
  var lookupFromRegistry = function (key) {
@@ -20202,6 +20469,9 @@ var UserComponentFactory = /** @class */ (function (_super) {
20202
20469
  jsComp = this.agComponentUtils.adaptFunction(propertyName, jsComp);
20203
20470
  }
20204
20471
  if (!jsComp && !fwComp) {
20472
+ if (mandatory) {
20473
+ console.error("Could not find component " + compName + ", did you forget to configure this component?");
20474
+ }
20205
20475
  return;
20206
20476
  }
20207
20477
  var paramsMerged = this.mergeParamsWithApplicationProvidedParams(defObject, type, params, paramsFromSelector);
@@ -20238,7 +20508,8 @@ var UserComponentFactory = /** @class */ (function (_super) {
20238
20508
  var selectorRes = selectorFunc ? selectorFunc(params) : null;
20239
20509
  var assignComp = function (providedJsComp, providedFwComp) {
20240
20510
  var xxxFrameworkDeprecatedWarn = function () {
20241
- doOnce(function () { return (void 0); }, "UserComponentFactory." + propertyName + "FrameworkDeprecated");
20511
+ var warningMessage = "AG Grid: As of v27, the property " + propertyName + "Framework is deprecated. The property " + propertyName + " can now be used for JavaScript AND Framework Components.";
20512
+ doOnce(function () { return console.warn(warningMessage); }, "UserComponentFactory." + propertyName + "FrameworkDeprecated");
20242
20513
  };
20243
20514
  if (typeof providedJsComp === 'string') {
20244
20515
  compName = providedJsComp;
@@ -20264,7 +20535,8 @@ var UserComponentFactory = /** @class */ (function (_super) {
20264
20535
  };
20265
20536
  if (selectorRes) {
20266
20537
  if (selectorRes.frameworkComponent != null) {
20267
- doOnce(function () { return (void 0); }, "UserComponentFactory." + propertyName + "FrameworkSelectorDeprecated");
20538
+ var warningMessage_1 = "AG Grid: As of v27, the return for " + propertyName + "Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.";
20539
+ doOnce(function () { return console.warn(warningMessage_1); }, "UserComponentFactory." + propertyName + "FrameworkSelectorDeprecated");
20268
20540
  assignComp(selectorRes.frameworkComponent, undefined);
20269
20541
  }
20270
20542
  else {
@@ -20769,13 +21041,16 @@ var FilterManager = /** @class */ (function (_super) {
20769
21041
  modelKeys_1.forEach(function (colId) {
20770
21042
  var column = _this.columnModel.getPrimaryColumn(colId) || _this.columnModel.getGridColumn(colId);
20771
21043
  if (!column) {
21044
+ console.warn('AG Grid: setFilterModel() - no column found for colId: ' + colId);
20772
21045
  return;
20773
21046
  }
20774
21047
  if (!column.isFilterAllowed()) {
21048
+ console.warn('AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: ' + colId);
20775
21049
  return;
20776
21050
  }
20777
21051
  var filterWrapper = _this.getOrCreateFilterWrapper(column, 'NO_UI');
20778
21052
  if (!filterWrapper) {
21053
+ console.warn('AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: ' + colId);
20779
21054
  return;
20780
21055
  }
20781
21056
  allPromises.push(_this.setModelOnFilterWrapper(filterWrapper.filterPromise, model[colId]));
@@ -20805,6 +21080,7 @@ var FilterManager = /** @class */ (function (_super) {
20805
21080
  return new AgPromise(function (resolve) {
20806
21081
  filterPromise.then(function (filter) {
20807
21082
  if (typeof filter.setModel !== 'function') {
21083
+ console.warn('AG Grid: filter missing setModel method, which is needed for setFilterModel');
20808
21084
  resolve();
20809
21085
  }
20810
21086
  (filter.setModel(newModel) || AgPromise.resolve()).then(function () { return resolve(); });
@@ -20821,6 +21097,7 @@ var FilterManager = /** @class */ (function (_super) {
20821
21097
  return null;
20822
21098
  }
20823
21099
  if (typeof filter.getModel !== 'function') {
21100
+ console.warn('AG Grid: filter API missing getModel method, which is needed for getFilterModel');
20824
21101
  return;
20825
21102
  }
20826
21103
  var model = filter.getModel();
@@ -20854,6 +21131,7 @@ var FilterManager = /** @class */ (function (_super) {
20854
21131
  return false;
20855
21132
  } // this never happens, including to avoid compile error
20856
21133
  if (!filter.isFilterActive) {
21134
+ console.warn('AG Grid: Filter is missing isFilterActive() method');
20857
21135
  return false;
20858
21136
  }
20859
21137
  return filter.isFilterActive();
@@ -20927,12 +21205,14 @@ var FilterManager = /** @class */ (function (_super) {
20927
21205
  return null;
20928
21206
  }
20929
21207
  if (!this.gridOptionsWrapper.isRowModelDefault()) {
21208
+ console.warn('AG Grid - Quick filtering only works with the Client-Side Row Model');
20930
21209
  return null;
20931
21210
  }
20932
21211
  return newFilter.toUpperCase();
20933
21212
  };
20934
21213
  FilterManager.prototype.setQuickFilter = function (newFilter) {
20935
21214
  if (newFilter != null && typeof newFilter !== 'string') {
21215
+ console.warn("AG Grid - setQuickFilter() only supports string inputs, received: " + typeof newFilter);
20936
21216
  return;
20937
21217
  }
20938
21218
  var parsedFilter = this.parseQuickFilter(newFilter);
@@ -21192,7 +21472,9 @@ var FilterManager = /** @class */ (function (_super) {
21192
21472
  filterWrapper.guiPromise = new AgPromise(function (resolve) {
21193
21473
  filterWrapper.filterPromise.then(function (filter) {
21194
21474
  var guiFromFilter = filter.getGui();
21195
- if (!exists(guiFromFilter)) ;
21475
+ if (!exists(guiFromFilter)) {
21476
+ console.warn("AG Grid: getGui method from filter returned " + guiFromFilter + ", it should be a DOM element or an HTML template string.");
21477
+ }
21196
21478
  // for backwards compatibility with Angular 1 - we
21197
21479
  // used to allow providing back HTML from getGui().
21198
21480
  // once we move away from supporting Angular 1
@@ -21784,6 +22066,7 @@ var GridBodyScrollFeature = /** @class */ (function (_super) {
21784
22066
  }
21785
22067
  var rowCount = this.paginationProxy.getRowCount();
21786
22068
  if (typeof index !== 'number' || index < 0 || index >= rowCount) {
22069
+ console.warn('invalid row index for ensureIndexVisible: ' + index);
21787
22070
  return;
21788
22071
  }
21789
22072
  var isPaging = this.gridOptionsWrapper.isPagination();
@@ -22278,10 +22561,11 @@ var RowDragFeature = /** @class */ (function (_super) {
22278
22561
  RowDragFeature.prototype.addRowDropZone = function (params) {
22279
22562
  var _this = this;
22280
22563
  if (!params.getContainer()) {
22281
- doOnce(function () { return (void 0); }, 'add-drop-zone-empty-target');
22564
+ doOnce(function () { return console.warn('AG Grid: addRowDropZone - A container target needs to be provided'); }, 'add-drop-zone-empty-target');
22282
22565
  return;
22283
22566
  }
22284
22567
  if (this.dragAndDropService.findExternalZone(params)) {
22568
+ console.warn('AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.');
22285
22569
  return;
22286
22570
  }
22287
22571
  var processedParams = {
@@ -22808,7 +23092,10 @@ var GridBodyCtrl = /** @class */ (function (_super) {
22808
23092
  _this.sizeColumnsToFit(params, -1);
22809
23093
  }, 500);
22810
23094
  }
22811
- else ;
23095
+ else {
23096
+ console.warn('AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with ' +
23097
+ 'zero width, maybe the grid is not visible yet on the screen?');
23098
+ }
22812
23099
  };
22813
23100
  // + rangeService
22814
23101
  GridBodyCtrl.prototype.addScrollEventListener = function (listener) {
@@ -24469,6 +24756,7 @@ var CellCtrl = /** @class */ (function (_super) {
24469
24756
  CellCtrl.prototype.createCellRendererParams = function () {
24470
24757
  var _this = this;
24471
24758
  var addRowCompListener = function (eventType, listener) {
24759
+ console.warn('AG Grid: since AG Grid v26, params.addRowCompListener() is deprecated. If you need this functionality, please contact AG Grid support and advise why so that we can revert with an appropriate workaround, as we dont have any valid use cases for it. This method was originally provided as a work around to know when cells were destroyed in AG Grid before custom Cell Renderers could be provided.');
24472
24760
  _this.rowCtrl.addEventListener(eventType, listener);
24473
24761
  };
24474
24762
  var res = {
@@ -24997,11 +25285,11 @@ var CellCtrl = /** @class */ (function (_super) {
24997
25285
  if (rowDragManaged) {
24998
25286
  // row dragging only available in default row model
24999
25287
  if (!clientSideRowModelActive) {
25000
- doOnce(function () { return (void 0); }, 'CellComp.addRowDragging');
25288
+ doOnce(function () { return console.warn('AG Grid: managed row dragging is only allowed in the Client Side Row Model'); }, 'CellComp.addRowDragging');
25001
25289
  return;
25002
25290
  }
25003
25291
  if (pagination) {
25004
- doOnce(function () { return (void 0); }, 'CellComp.addRowDragging');
25292
+ doOnce(function () { return console.warn('AG Grid: managed row dragging is not possible when doing pagination'); }, 'CellComp.addRowDragging');
25005
25293
  return;
25006
25294
  }
25007
25295
  }
@@ -25218,6 +25506,7 @@ var RowCtrl = /** @class */ (function (_super) {
25218
25506
  var gow = this.beans.gridOptionsWrapper;
25219
25507
  if (gow.isEnableRangeSelection()) {
25220
25508
  doOnce(function () {
25509
+ console.warn('AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn\'t work with `enableRangeSelection: true`');
25221
25510
  }, 'rowDragAndRangeSelectionEnabled');
25222
25511
  return;
25223
25512
  }
@@ -25230,7 +25519,12 @@ var RowCtrl = /** @class */ (function (_super) {
25230
25519
  var params = this.createFullWidthParams(gui.element, pinned);
25231
25520
  var masterDetailModuleLoaded = ModuleRegistry.isRegistered(ModuleNames.MasterDetailModule);
25232
25521
  if (this.rowType == RowType$1.FullWidthDetail && !masterDetailModuleLoaded) {
25233
- if (ModuleRegistry.isPackageBased()) ;
25522
+ if (ModuleRegistry.isPackageBased()) {
25523
+ console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with ag-grid-enterprise package.");
25524
+ }
25525
+ else {
25526
+ console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with AG Grid Enterprise Module " + ModuleNames.MasterDetailModule);
25527
+ }
25234
25528
  return;
25235
25529
  }
25236
25530
  var compDetails;
@@ -25981,6 +26275,7 @@ var RowCtrl = /** @class */ (function (_super) {
25981
26275
  // part 1 - rowStyle
25982
26276
  var rowStyle = this.beans.gridOptionsWrapper.getRowStyle();
25983
26277
  if (rowStyle && typeof rowStyle === 'function') {
26278
+ console.warn('AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead');
25984
26279
  return;
25985
26280
  }
25986
26281
  // part 1 - rowStyleFunc
@@ -26095,12 +26390,14 @@ var RowCtrl = /** @class */ (function (_super) {
26095
26390
  RowCtrl.prototype.addEventListener = function (eventType, listener) {
26096
26391
  if (eventType === 'renderedRowRemoved' || eventType === 'rowRemoved') {
26097
26392
  eventType = Events.EVENT_VIRTUAL_ROW_REMOVED;
26393
+ console.warn('AG Grid: Since version 11, event renderedRowRemoved is now called ' + Events.EVENT_VIRTUAL_ROW_REMOVED);
26098
26394
  }
26099
26395
  _super.prototype.addEventListener.call(this, eventType, listener);
26100
26396
  };
26101
26397
  RowCtrl.prototype.removeEventListener = function (eventType, listener) {
26102
26398
  if (eventType === 'renderedRowRemoved' || eventType === 'rowRemoved') {
26103
26399
  eventType = Events.EVENT_VIRTUAL_ROW_REMOVED;
26400
+ console.warn('AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called ' + Events.EVENT_VIRTUAL_ROW_REMOVED);
26104
26401
  }
26105
26402
  _super.prototype.removeEventListener.call(this, eventType, listener);
26106
26403
  };
@@ -28260,7 +28557,7 @@ var NavigationService = /** @class */ (function (_super) {
28260
28557
  var userCell = userFunc(params);
28261
28558
  if (exists(userCell)) {
28262
28559
  if (userCell.floating) {
28263
- doOnce(function () { }, 'no floating in userCell');
28560
+ doOnce(function () { console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?"); }, 'no floating in userCell');
28264
28561
  userCell.rowPinned = userCell.floating;
28265
28562
  }
28266
28563
  nextPosition = {
@@ -28393,7 +28690,7 @@ var NavigationService = /** @class */ (function (_super) {
28393
28690
  var userCell = userFunc(params);
28394
28691
  if (exists(userCell)) {
28395
28692
  if (userCell.floating) {
28396
- doOnce(function () { }, 'no floating in userCell');
28693
+ doOnce(function () { console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?"); }, 'no floating in userCell');
28397
28694
  userCell.rowPinned = userCell.floating;
28398
28695
  }
28399
28696
  nextCell = {
@@ -28948,6 +29245,7 @@ var CellComp = /** @class */ (function (_super) {
28948
29245
  return;
28949
29246
  }
28950
29247
  if (!cellEditor.getGui) {
29248
+ console.warn("AG Grid: cellEditor for column " + this.column.getId() + " is missing getGui() method");
28951
29249
  this.beans.context.destroyBean(cellEditor);
28952
29250
  return;
28953
29251
  }
@@ -28985,7 +29283,10 @@ var CellComp = /** @class */ (function (_super) {
28985
29283
  };
28986
29284
  CellComp.prototype.addPopupCellEditor = function (params, position) {
28987
29285
  var _this = this;
28988
- if (this.beans.gridOptionsWrapper.isFullRowEdit()) ;
29286
+ if (this.beans.gridOptionsWrapper.isFullRowEdit()) {
29287
+ console.warn('AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both ' +
29288
+ '- either turn off fullRowEdit, or stop using popup editors.');
29289
+ }
28989
29290
  var cellEditor = this.cellEditor;
28990
29291
  // if a popup, then we wrap in a popup editor and return the popup
28991
29292
  this.cellEditorPopupWrapper = this.beans.context.createBean(new PopupEditorWrapper(params));
@@ -29169,6 +29470,9 @@ var RowComp = /** @class */ (function (_super) {
29169
29470
  };
29170
29471
  RowComp.prototype.setFullWidthRowComp = function (fullWidthRowComponent) {
29171
29472
  var _this = this;
29473
+ if (this.fullWidthCellRenderer) {
29474
+ console.error('AG Grid - should not be setting fullWidthRowComponent twice');
29475
+ }
29172
29476
  this.fullWidthCellRenderer = fullWidthRowComponent;
29173
29477
  this.addDestroyFunc(function () {
29174
29478
  _this.fullWidthCellRenderer = _this.beans.context.destroyBean(_this.fullWidthCellRenderer);
@@ -29593,6 +29897,7 @@ var MoveColumnFeature = /** @class */ (function () {
29593
29897
  switch (hDirection) {
29594
29898
  case HorizontalDirection.Left: return HorizontalDirection.Right;
29595
29899
  case HorizontalDirection.Right: return HorizontalDirection.Left;
29900
+ default: console.error("AG Grid: Unknown direction " + hDirection);
29596
29901
  }
29597
29902
  }
29598
29903
  else {
@@ -30633,6 +30938,7 @@ var GridApi = /** @class */ (function () {
30633
30938
  }
30634
30939
  var exportMode = this.getExcelExportMode(params);
30635
30940
  if (this.excelCreator.getFactoryMode(exportMode) === ExcelFactoryMode.MULTI_SHEET) {
30941
+ console.warn('AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`');
30636
30942
  return;
30637
30943
  }
30638
30944
  return this.excelCreator.getDataAsExcel(params);
@@ -30644,6 +30950,7 @@ var GridApi = /** @class */ (function () {
30644
30950
  }
30645
30951
  var exportMode = this.getExcelExportMode(params);
30646
30952
  if (this.excelCreator.getFactoryMode(exportMode) === ExcelFactoryMode.MULTI_SHEET) {
30953
+ console.warn('AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`');
30647
30954
  return;
30648
30955
  }
30649
30956
  this.excelCreator.exportDataAsExcel(params);
@@ -30671,6 +30978,7 @@ var GridApi = /** @class */ (function () {
30671
30978
  };
30672
30979
  /** @deprecated AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource() */
30673
30980
  GridApi.prototype.setEnterpriseDatasource = function (datasource) {
30981
+ console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()");
30674
30982
  this.setServerSideDatasource(datasource);
30675
30983
  };
30676
30984
  /**
@@ -30699,6 +31007,9 @@ var GridApi = /** @class */ (function () {
30699
31007
  // should really have an IEnterpriseRowModel interface, so we are not casting to any
30700
31008
  this.serverSideRowModel.setDatasource(datasource);
30701
31009
  }
31010
+ else {
31011
+ console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '" + Constants.ROW_MODEL_TYPE_SERVER_SIDE + "'");
31012
+ }
30702
31013
  };
30703
31014
  /**
30704
31015
  * Updates the `cacheBlockSize` used by `serverSideInfiniteScroll` when requesting data from the server.
@@ -30707,6 +31018,7 @@ var GridApi = /** @class */ (function () {
30707
31018
  * */
30708
31019
  GridApi.prototype.setCacheBlockSize = function (blockSize) {
30709
31020
  if (!this.serverSideRowModel) {
31021
+ console.warn("AG Grid: you can only set cacheBlockSize with gridOptions.rowModelType '" + Constants.ROW_MODEL_TYPE_SERVER_SIDE + "'");
30710
31022
  return;
30711
31023
  }
30712
31024
  this.gridOptionsWrapper.setProperty('cacheBlockSize', blockSize);
@@ -30717,6 +31029,9 @@ var GridApi = /** @class */ (function () {
30717
31029
  if (this.gridOptionsWrapper.isRowModelInfinite()) {
30718
31030
  this.rowModel.setDatasource(datasource);
30719
31031
  }
31032
+ else {
31033
+ console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '" + Constants.ROW_MODEL_TYPE_INFINITE + "'");
31034
+ }
30720
31035
  };
30721
31036
  /** Set new datasource for Viewport Row Model. */
30722
31037
  GridApi.prototype.setViewportDatasource = function (viewportDatasource) {
@@ -30726,12 +31041,16 @@ var GridApi = /** @class */ (function () {
30726
31041
  // the enterprise implement it, rather than casting to 'any' here
30727
31042
  this.rowModel.setViewportDatasource(viewportDatasource);
30728
31043
  }
31044
+ else {
31045
+ console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '" + Constants.ROW_MODEL_TYPE_VIEWPORT + "'");
31046
+ }
30729
31047
  };
30730
31048
  /** Set the row data. */
30731
31049
  GridApi.prototype.setRowData = function (rowData) {
30732
31050
  // immutable service is part of the CSRM module, if missing, no CSRM
30733
31051
  var missingImmutableService = this.immutableService == null;
30734
31052
  if (missingImmutableService) {
31053
+ console.warn('AG Grid: you can only set rowData when using the Client Side Row Model');
30735
31054
  return;
30736
31055
  }
30737
31056
  // if no keys provided provided for rows, then we can tread the operation as Immutable
@@ -30745,26 +31064,32 @@ var GridApi = /** @class */ (function () {
30745
31064
  };
30746
31065
  /** @deprecated AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData() */
30747
31066
  GridApi.prototype.setFloatingTopRowData = function (rows) {
31067
+ console.warn('AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()');
30748
31068
  this.setPinnedTopRowData(rows);
30749
31069
  };
30750
31070
  /** @deprecated AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData() */
30751
31071
  GridApi.prototype.setFloatingBottomRowData = function (rows) {
31072
+ console.warn('AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()');
30752
31073
  this.setPinnedBottomRowData(rows);
30753
31074
  };
30754
31075
  /** @deprecated AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount() */
30755
31076
  GridApi.prototype.getFloatingTopRowCount = function () {
31077
+ console.warn('AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()');
30756
31078
  return this.getPinnedTopRowCount();
30757
31079
  };
30758
31080
  /** @deprecated AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount() */
30759
31081
  GridApi.prototype.getFloatingBottomRowCount = function () {
31082
+ console.warn('AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()');
30760
31083
  return this.getPinnedBottomRowCount();
30761
31084
  };
30762
31085
  /** @deprecated AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow() */
30763
31086
  GridApi.prototype.getFloatingTopRow = function (index) {
31087
+ console.warn('AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()');
30764
31088
  return this.getPinnedTopRow(index);
30765
31089
  };
30766
31090
  /** @deprecated AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow() */
30767
31091
  GridApi.prototype.getFloatingBottomRow = function (index) {
31092
+ console.warn('AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()');
30768
31093
  return this.getPinnedBottomRow(index);
30769
31094
  };
30770
31095
  /** Set the top pinned rows. Call with no rows / undefined to clear top pinned rows. */
@@ -30845,6 +31170,7 @@ var GridApi = /** @class */ (function () {
30845
31170
  if (params === void 0) { params = {}; }
30846
31171
  if (Array.isArray(params)) {
30847
31172
  // the old version of refreshCells() took an array of rowNodes for the first argument
31173
+ console.warn('since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation.');
30848
31174
  return;
30849
31175
  }
30850
31176
  this.rowRenderer.refreshCells(params);
@@ -30898,8 +31224,12 @@ var GridApi = /** @class */ (function () {
30898
31224
  * It will work out the final set of 'to be displayed' rows again (i.e. expand or collapse the group visually).
30899
31225
  */
30900
31226
  GridApi.prototype.onGroupExpandedOrCollapsed = function (deprecated_refreshFromIndex) {
30901
- if (missing(this.clientSideRowModel)) ;
30902
- if (exists(deprecated_refreshFromIndex)) ;
31227
+ if (missing(this.clientSideRowModel)) {
31228
+ console.warn('AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model');
31229
+ }
31230
+ if (exists(deprecated_refreshFromIndex)) {
31231
+ console.warn('AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows');
31232
+ }
30903
31233
  // we don't really want the user calling this if only one rowNode was expanded, instead they should be
30904
31234
  // calling rowNode.setExpanded(boolean) - this way we do a 'keepRenderedRows=false' so that the whole
30905
31235
  // grid gets refreshed again - otherwise the row with the rowNodes that were changed won't get updated,
@@ -30908,6 +31238,7 @@ var GridApi = /** @class */ (function () {
30908
31238
  };
30909
31239
  /** @deprecated AG Grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel() */
30910
31240
  GridApi.prototype.refreshInMemoryRowModel = function (step) {
31241
+ console.warn("AG Grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()");
30911
31242
  this.refreshClientSideRowModel(step);
30912
31243
  };
30913
31244
  /**
@@ -30915,7 +31246,9 @@ var GridApi = /** @class */ (function () {
30915
31246
  * Optionally provide the step you wish the refresh to apply from. Defaults to `everything`.
30916
31247
  */
30917
31248
  GridApi.prototype.refreshClientSideRowModel = function (step) {
30918
- if (missing(this.clientSideRowModel)) ;
31249
+ if (missing(this.clientSideRowModel)) {
31250
+ console.warn('cannot call refreshClientSideRowModel unless using normal row model');
31251
+ }
30919
31252
  var paramsStep = ClientSideRowModelSteps.EVERYTHING;
30920
31253
  var stepsMapped = {
30921
31254
  everything: ClientSideRowModelSteps.EVERYTHING,
@@ -30930,6 +31263,7 @@ var GridApi = /** @class */ (function () {
30930
31263
  paramsStep = stepsMapped[step];
30931
31264
  }
30932
31265
  if (missing(paramsStep)) {
31266
+ console.error("AG Grid: invalid step " + step + ", available steps are " + Object.keys(stepsMapped).join(', '));
30933
31267
  return;
30934
31268
  }
30935
31269
  var animate = !this.gridOptionsWrapper.isSuppressAnimationFrame();
@@ -30975,7 +31309,9 @@ var GridApi = /** @class */ (function () {
30975
31309
  else if (this.serverSideRowModel) {
30976
31310
  this.serverSideRowModel.expandAll(true);
30977
31311
  }
30978
- else ;
31312
+ else {
31313
+ console.warn('AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model');
31314
+ }
30979
31315
  };
30980
31316
  /** Collapse all groups. */
30981
31317
  GridApi.prototype.collapseAll = function () {
@@ -30985,17 +31321,23 @@ var GridApi = /** @class */ (function () {
30985
31321
  else if (this.serverSideRowModel) {
30986
31322
  this.serverSideRowModel.expandAll(false);
30987
31323
  }
30988
- else ;
31324
+ else {
31325
+ console.warn('AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model');
31326
+ }
30989
31327
  };
30990
31328
  /** Gets the tool panel instance corresponding to the supplied `id`. */
30991
31329
  GridApi.prototype.getToolPanelInstance = function (id) {
30992
31330
  if (!this.sideBarComp) {
31331
+ console.warn('AG Grid: toolPanel is only available in AG Grid Enterprise');
30993
31332
  return;
30994
31333
  }
30995
31334
  var comp = this.sideBarComp.getToolPanelInstance(id);
30996
31335
  return unwrapUserComp(comp);
30997
31336
  };
30998
31337
  GridApi.prototype.addVirtualRowListener = function (eventName, rowIndex, callback) {
31338
+ if (typeof eventName !== 'string') {
31339
+ console.warn('AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener.');
31340
+ }
30999
31341
  this.addRenderedRowListener(eventName, rowIndex, callback);
31000
31342
  };
31001
31343
  /**
@@ -31006,6 +31348,9 @@ var GridApi = /** @class */ (function () {
31006
31348
  * listen for this event if your `cellRenderer` needs to do cleanup when the row no longer exists.
31007
31349
  */
31008
31350
  GridApi.prototype.addRenderedRowListener = function (eventName, rowIndex, callback) {
31351
+ if (eventName === 'virtualRowSelected') {
31352
+ console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node.");
31353
+ }
31009
31354
  this.rowRenderer.addRenderedRowListener(eventName, rowIndex, callback);
31010
31355
  };
31011
31356
  /** Pass a quick filter text into the grid for filtering. */
@@ -31014,19 +31359,38 @@ var GridApi = /** @class */ (function () {
31014
31359
  };
31015
31360
  /** @deprecated AG Grid: do not use api for selection, call rowNode.setSelected(value) instead */
31016
31361
  GridApi.prototype.selectIndex = function (index, tryMulti, suppressEvents) {
31362
+ console.warn('AG Grid: do not use api for selection, call rowNode.setSelected(value) instead');
31363
+ if (suppressEvents) {
31364
+ console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');
31365
+ }
31017
31366
  this.selectionService.selectIndex(index, tryMulti);
31018
31367
  };
31019
31368
  /** @deprecated AG Grid: do not use api for selection, call rowNode.setSelected(value) instead. */
31020
31369
  GridApi.prototype.deselectIndex = function (index, suppressEvents) {
31370
+ if (suppressEvents === void 0) { suppressEvents = false; }
31371
+ console.warn('AG Grid: do not use api for selection, call rowNode.setSelected(value) instead');
31372
+ if (suppressEvents) {
31373
+ console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');
31374
+ }
31021
31375
  this.selectionService.deselectIndex(index);
31022
31376
  };
31023
31377
  /** @deprecated AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead. */
31024
31378
  GridApi.prototype.selectNode = function (node, tryMulti, suppressEvents) {
31025
31379
  if (tryMulti === void 0) { tryMulti = false; }
31380
+ if (suppressEvents === void 0) { suppressEvents = false; }
31381
+ console.warn('AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead');
31382
+ if (suppressEvents) {
31383
+ console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');
31384
+ }
31026
31385
  node.setSelectedParams({ newValue: true, clearSelection: !tryMulti });
31027
31386
  };
31028
31387
  /** @deprecated AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead. */
31029
31388
  GridApi.prototype.deselectNode = function (node, suppressEvents) {
31389
+ if (suppressEvents === void 0) { suppressEvents = false; }
31390
+ console.warn('AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead');
31391
+ if (suppressEvents) {
31392
+ console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');
31393
+ }
31030
31394
  node.setSelectedParams({ newValue: false });
31031
31395
  };
31032
31396
  /** Select all rows, regardless of filtering and rows that are not visible due to grouping being enabled and their groups not expanded. */
@@ -31047,7 +31411,10 @@ var GridApi = /** @class */ (function () {
31047
31411
  };
31048
31412
  /** @deprecated recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead */
31049
31413
  GridApi.prototype.recomputeAggregates = function () {
31050
- if (missing(this.clientSideRowModel)) ;
31414
+ if (missing(this.clientSideRowModel)) {
31415
+ console.warn('cannot call recomputeAggregates unless using normal row model');
31416
+ }
31417
+ console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead");
31051
31418
  this.clientSideRowModel.refreshModel({ step: ClientSideRowModelSteps.AGGREGATE });
31052
31419
  };
31053
31420
  /**
@@ -31069,10 +31436,12 @@ var GridApi = /** @class */ (function () {
31069
31436
  this.overlayWrapperComp.hideOverlay();
31070
31437
  };
31071
31438
  GridApi.prototype.isNodeSelected = function (node) {
31439
+ console.warn('AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead');
31072
31440
  return node.isSelected();
31073
31441
  };
31074
31442
  /** @deprecated Use getSelectedNodesById no longer exists, use getSelectedNodes(). */
31075
31443
  GridApi.prototype.getSelectedNodesById = function () {
31444
+ console.error('AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead');
31076
31445
  return null;
31077
31446
  };
31078
31447
  /**
@@ -31101,6 +31470,7 @@ var GridApi = /** @class */ (function () {
31101
31470
  };
31102
31471
  /** @deprecated ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead. */
31103
31472
  GridApi.prototype.ensureColIndexVisible = function (index) {
31473
+ console.warn('AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.');
31104
31474
  };
31105
31475
  /**
31106
31476
  * Ensures the column is visible by scrolling the table if needed.
@@ -31142,7 +31512,9 @@ var GridApi = /** @class */ (function () {
31142
31512
  * but excluding groups the grid created where gaps were missing in the hierarchy.
31143
31513
  */
31144
31514
  GridApi.prototype.forEachLeafNode = function (callback) {
31145
- if (missing(this.clientSideRowModel)) ;
31515
+ if (missing(this.clientSideRowModel)) {
31516
+ console.warn('cannot call forEachNode unless using normal row model');
31517
+ }
31146
31518
  this.clientSideRowModel.forEachLeafNode(callback);
31147
31519
  };
31148
31520
  /**
@@ -31156,12 +31528,16 @@ var GridApi = /** @class */ (function () {
31156
31528
  };
31157
31529
  /** Similar to `forEachNode`, except skips any filtered out data. */
31158
31530
  GridApi.prototype.forEachNodeAfterFilter = function (callback) {
31159
- if (missing(this.clientSideRowModel)) ;
31531
+ if (missing(this.clientSideRowModel)) {
31532
+ console.warn('cannot call forEachNodeAfterFilter unless using normal row model');
31533
+ }
31160
31534
  this.clientSideRowModel.forEachNodeAfterFilter(callback);
31161
31535
  };
31162
31536
  /** Similar to `forEachNodeAfterFilter`, except the callbacks are called in the order the rows are displayed in the grid. */
31163
31537
  GridApi.prototype.forEachNodeAfterFilterAndSort = function (callback) {
31164
- if (missing(this.clientSideRowModel)) ;
31538
+ if (missing(this.clientSideRowModel)) {
31539
+ console.warn('cannot call forEachNodeAfterFilterAndSort unless using normal row model');
31540
+ }
31165
31541
  this.clientSideRowModel.forEachNodeAfterFilterAndSort(callback);
31166
31542
  };
31167
31543
  /**
@@ -31399,10 +31775,12 @@ var GridApi = /** @class */ (function () {
31399
31775
  };
31400
31776
  /** @deprecated use `setProcessPivotResultColDef` instead */
31401
31777
  GridApi.prototype.setProcessSecondaryColDef = function (processSecondaryColDefFunc) {
31778
+ console.warn('AG Grid: since version 28.0.x setProcessSecondaryColDef has been renamed, please use setProcessPivotResultColDef instead');
31402
31779
  this.setProcessPivotResultColDef(processSecondaryColDefFunc);
31403
31780
  };
31404
31781
  /** @deprecated use `setProcessPivotResultColGroupDef` instead */
31405
31782
  GridApi.prototype.setProcessSecondaryColGroupDef = function (processSecondaryColGroupDefFunc) {
31783
+ console.warn('AG Grid: since version 28.0.x setProcessSecondaryColGroupDef has been renamed, please use setProcessPivotResultColGroupDef instead');
31406
31784
  this.setProcessPivotResultColGroupDef(processSecondaryColGroupDefFunc);
31407
31785
  };
31408
31786
  GridApi.prototype.setProcessPivotResultColDef = function (processPivotResultColDefFunc) {
@@ -31458,6 +31836,9 @@ var GridApi = /** @class */ (function () {
31458
31836
  /** Show/hide the entire side bar, including any visible panel and the tab buttons. */
31459
31837
  GridApi.prototype.setSideBarVisible = function (show) {
31460
31838
  if (!this.sideBarComp) {
31839
+ if (show) {
31840
+ console.warn('AG Grid: sideBar is not loaded');
31841
+ }
31461
31842
  return;
31462
31843
  }
31463
31844
  this.sideBarComp.setDisplayed(show);
@@ -31465,6 +31846,7 @@ var GridApi = /** @class */ (function () {
31465
31846
  /** Sets the side bar position relative to the grid. Possible values are `'left'` or `'right'`. */
31466
31847
  GridApi.prototype.setSideBarPosition = function (position) {
31467
31848
  if (!this.sideBarComp) {
31849
+ console.warn('AG Grid: sideBar is not loaded');
31468
31850
  return;
31469
31851
  }
31470
31852
  this.sideBarComp.setSideBarPosition(position);
@@ -31472,6 +31854,7 @@ var GridApi = /** @class */ (function () {
31472
31854
  /** Opens a particular tool panel. Provide the ID of the tool panel to open. */
31473
31855
  GridApi.prototype.openToolPanel = function (key) {
31474
31856
  if (!this.sideBarComp) {
31857
+ console.warn('AG Grid: toolPanel is only available in AG Grid Enterprise');
31475
31858
  return;
31476
31859
  }
31477
31860
  this.sideBarComp.openToolPanel(key);
@@ -31479,6 +31862,7 @@ var GridApi = /** @class */ (function () {
31479
31862
  /** Closes the currently open tool panel (if any). */
31480
31863
  GridApi.prototype.closeToolPanel = function () {
31481
31864
  if (!this.sideBarComp) {
31865
+ console.warn('AG Grid: toolPanel is only available in AG Grid Enterprise');
31482
31866
  return;
31483
31867
  }
31484
31868
  this.sideBarComp.close();
@@ -31504,12 +31888,14 @@ var GridApi = /** @class */ (function () {
31504
31888
  };
31505
31889
  /** @deprecated AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically. */
31506
31890
  GridApi.prototype.doLayout = function () {
31507
- doOnce(function () { return (void 0); }, 'doLayoutDeprecated');
31891
+ var message = "AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically";
31892
+ doOnce(function () { return console.warn(message); }, 'doLayoutDeprecated');
31508
31893
  };
31509
31894
  /** Tells the grid to recalculate the row heights. */
31510
31895
  GridApi.prototype.resetRowHeights = function () {
31511
31896
  if (exists(this.clientSideRowModel)) {
31512
31897
  if (this.columnModel.isAutoRowHeightActive()) {
31898
+ console.warn('AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.');
31513
31899
  return;
31514
31900
  }
31515
31901
  this.clientSideRowModel.resetRowHeights();
@@ -31596,6 +31982,9 @@ var GridApi = /** @class */ (function () {
31596
31982
  setTimeout(removeAllReferences.bind(window, this, 'Grid API'), 100);
31597
31983
  };
31598
31984
  GridApi.prototype.warnIfDestroyed = function (methodName) {
31985
+ if (this.destroyCalled) {
31986
+ console.warn("AG Grid: Grid API method " + methodName + " was called on a grid that was destroyed.");
31987
+ }
31599
31988
  return this.destroyCalled;
31600
31989
  };
31601
31990
  /** Reset the quick filter cache text on every rowNode. */
@@ -31607,6 +31996,7 @@ var GridApi = /** @class */ (function () {
31607
31996
  };
31608
31997
  /** @deprecated AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead. */
31609
31998
  GridApi.prototype.getRangeSelections = function () {
31999
+ console.warn("AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n getCellRanges() is a bit different, please check the AG Grid documentation.");
31610
32000
  return null;
31611
32001
  };
31612
32002
  /** Returns the list of selected cell ranges. */
@@ -31614,6 +32004,7 @@ var GridApi = /** @class */ (function () {
31614
32004
  if (this.rangeService) {
31615
32005
  return this.rangeService.getCellRanges();
31616
32006
  }
32007
+ console.warn('AG Grid: cell range selection is only available in AG Grid Enterprise');
31617
32008
  return null;
31618
32009
  };
31619
32010
  GridApi.prototype.camelCaseToHumanReadable = function (camelCase) {
@@ -31621,13 +32012,20 @@ var GridApi = /** @class */ (function () {
31621
32012
  };
31622
32013
  /** @deprecated AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection() */
31623
32014
  GridApi.prototype.addRangeSelection = function (deprecatedNoLongerUsed) {
32015
+ console.warn('AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()');
31624
32016
  };
31625
32017
  /** Adds the provided cell range to the selected ranges. */
31626
32018
  GridApi.prototype.addCellRange = function (params) {
32019
+ if (!this.rangeService) {
32020
+ console.warn('AG Grid: cell range selection is only available in AG Grid Enterprise');
32021
+ }
31627
32022
  this.rangeService.addCellRange(params);
31628
32023
  };
31629
32024
  /** Clears the selected ranges. */
31630
32025
  GridApi.prototype.clearRangeSelection = function () {
32026
+ if (!this.rangeService) {
32027
+ console.warn('AG Grid: cell range selection is only available in AG Grid Enterprise');
32028
+ }
31631
32029
  this.rangeService.removeAllCellRanges();
31632
32030
  };
31633
32031
  /** Reverts the last cell edit. */
@@ -31714,18 +32112,30 @@ var GridApi = /** @class */ (function () {
31714
32112
  };
31715
32113
  /** Copies data to clipboard by following the same rules as pressing Ctrl+C. */
31716
32114
  GridApi.prototype.copyToClipboard = function (params) {
32115
+ if (!this.clipboardService) {
32116
+ console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');
32117
+ }
31717
32118
  this.clipboardService.copyToClipboard(params);
31718
32119
  };
31719
32120
  /** Copies the selected rows to the clipboard. */
31720
32121
  GridApi.prototype.copySelectedRowsToClipboard = function (params) {
32122
+ if (!this.clipboardService) {
32123
+ console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');
32124
+ }
31721
32125
  this.clipboardService.copySelectedRowsToClipboard(params);
31722
32126
  };
31723
32127
  /** Copies the selected ranges to the clipboard. */
31724
32128
  GridApi.prototype.copySelectedRangeToClipboard = function (params) {
32129
+ if (!this.clipboardService) {
32130
+ console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');
32131
+ }
31725
32132
  this.clipboardService.copySelectedRangeToClipboard(params);
31726
32133
  };
31727
32134
  /** Copies the selected range down, similar to `Ctrl + D` in Excel. */
31728
32135
  GridApi.prototype.copySelectedRangeDown = function () {
32136
+ if (!this.clipboardService) {
32137
+ console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');
32138
+ }
31729
32139
  this.clipboardService.copyRangeDown();
31730
32140
  };
31731
32141
  /** Shows the column menu after and positions it relative to the provided button element. Use in conjunction with your own header template. */
@@ -31742,6 +32152,7 @@ var GridApi = /** @class */ (function () {
31742
32152
  column = this.columnModel.getPrimaryColumn(colKey);
31743
32153
  }
31744
32154
  if (!column) {
32155
+ console.error("AG Grid: column '" + colKey + "' not found");
31745
32156
  return;
31746
32157
  }
31747
32158
  this.menuFactory.showMenuAfterMouseEvent(column, mouseEvent);
@@ -31794,6 +32205,7 @@ var GridApi = /** @class */ (function () {
31794
32205
  GridApi.prototype.startEditingCell = function (params) {
31795
32206
  var column = this.columnModel.getGridColumn(params.colKey);
31796
32207
  if (!column) {
32208
+ console.warn("AG Grid: no column found for " + params.colKey);
31797
32209
  return;
31798
32210
  }
31799
32211
  var cellPosition = {
@@ -31832,12 +32244,14 @@ var GridApi = /** @class */ (function () {
31832
32244
  /** Apply transactions to the server side row model. */
31833
32245
  GridApi.prototype.applyServerSideTransaction = function (transaction) {
31834
32246
  if (!this.serverSideTransactionManager) {
32247
+ console.warn('AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.');
31835
32248
  return;
31836
32249
  }
31837
32250
  return this.serverSideTransactionManager.applyTransaction(transaction);
31838
32251
  };
31839
32252
  GridApi.prototype.applyServerSideTransactionAsync = function (transaction, callback) {
31840
32253
  if (!this.serverSideTransactionManager) {
32254
+ console.warn('AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.');
31841
32255
  return;
31842
32256
  }
31843
32257
  return this.serverSideTransactionManager.applyTransactionAsync(transaction, callback);
@@ -31845,12 +32259,14 @@ var GridApi = /** @class */ (function () {
31845
32259
  /** Gets all failed server side loads to retry. */
31846
32260
  GridApi.prototype.retryServerSideLoads = function () {
31847
32261
  if (!this.serverSideRowModel) {
32262
+ console.warn('AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.');
31848
32263
  return;
31849
32264
  }
31850
32265
  this.serverSideRowModel.retryLoads();
31851
32266
  };
31852
32267
  GridApi.prototype.flushServerSideAsyncTransactions = function () {
31853
32268
  if (!this.serverSideTransactionManager) {
32269
+ console.warn('AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.');
31854
32270
  return;
31855
32271
  }
31856
32272
  return this.serverSideTransactionManager.flushAsyncTransactions();
@@ -31858,6 +32274,7 @@ var GridApi = /** @class */ (function () {
31858
32274
  /** Update row data. Pass a transaction object with lists for `add`, `remove` and `update`. */
31859
32275
  GridApi.prototype.applyTransaction = function (rowDataTransaction) {
31860
32276
  if (!this.clientSideRowModel) {
32277
+ console.error('AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1');
31861
32278
  return;
31862
32279
  }
31863
32280
  var res = this.clientSideRowModel.updateRowData(rowDataTransaction);
@@ -31875,12 +32292,14 @@ var GridApi = /** @class */ (function () {
31875
32292
  };
31876
32293
  /** @deprecated AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). */
31877
32294
  GridApi.prototype.updateRowData = function (rowDataTransaction) {
31878
- doOnce(function () { return (void 0); }, 'updateRowData deprecated');
32295
+ var message = 'AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.';
32296
+ doOnce(function () { return console.warn(message); }, 'updateRowData deprecated');
31879
32297
  return this.applyTransaction(rowDataTransaction);
31880
32298
  };
31881
32299
  /** Same as `applyTransaction` except executes asynchronously for efficiency. */
31882
32300
  GridApi.prototype.applyTransactionAsync = function (rowDataTransaction, callback) {
31883
32301
  if (!this.clientSideRowModel) {
32302
+ console.error('AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.');
31884
32303
  return;
31885
32304
  }
31886
32305
  this.clientSideRowModel.batchUpdateRowData(rowDataTransaction, callback);
@@ -31888,34 +32307,41 @@ var GridApi = /** @class */ (function () {
31888
32307
  /** Executes any remaining asynchronous grid transactions, if any are waiting to be executed. */
31889
32308
  GridApi.prototype.flushAsyncTransactions = function () {
31890
32309
  if (!this.clientSideRowModel) {
32310
+ console.error('AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.');
31891
32311
  return;
31892
32312
  }
31893
32313
  this.clientSideRowModel.flushAsyncTransactions();
31894
32314
  };
31895
32315
  /** @deprecated AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). */
31896
32316
  GridApi.prototype.batchUpdateRowData = function (rowDataTransaction, callback) {
31897
- doOnce(function () { return (void 0); }, 'batchUpdateRowData deprecated');
32317
+ var message = 'AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.';
32318
+ doOnce(function () { return console.warn(message); }, 'batchUpdateRowData deprecated');
31898
32319
  this.applyTransactionAsync(rowDataTransaction, callback);
31899
32320
  };
31900
32321
  /** @deprecated AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead.*/
31901
32322
  GridApi.prototype.insertItemsAtIndex = function (index, items, skipRefresh) {
32323
+ console.warn('AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead.');
31902
32324
  this.updateRowData({ add: items, addIndex: index, update: null, remove: null });
31903
32325
  };
31904
32326
  /** @deprecated AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead. */
31905
32327
  GridApi.prototype.removeItems = function (rowNodes, skipRefresh) {
32328
+ console.warn('AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.');
31906
32329
  var dataToRemove = rowNodes.map(function (rowNode) { return rowNode.data; });
31907
32330
  this.updateRowData({ add: null, addIndex: null, update: null, remove: dataToRemove });
31908
32331
  };
31909
32332
  /** @deprecated AG Grid: addItems() is deprecated, use updateRowData(transaction) instead. */
31910
32333
  GridApi.prototype.addItems = function (items, skipRefresh) {
32334
+ console.warn('AG Grid: addItems() is deprecated, use updateRowData(transaction) instead.');
31911
32335
  this.updateRowData({ add: items, addIndex: null, update: null, remove: null });
31912
32336
  };
31913
32337
  /** @deprecated AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead */
31914
32338
  GridApi.prototype.refreshVirtualPageCache = function () {
32339
+ console.warn('AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead');
31915
32340
  this.refreshInfiniteCache();
31916
32341
  };
31917
32342
  /** @deprecated AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead */
31918
32343
  GridApi.prototype.refreshInfinitePageCache = function () {
32344
+ console.warn('AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead');
31919
32345
  this.refreshInfiniteCache();
31920
32346
  };
31921
32347
  /**
@@ -31927,13 +32353,18 @@ var GridApi = /** @class */ (function () {
31927
32353
  if (this.infiniteRowModel) {
31928
32354
  this.infiniteRowModel.refreshCache();
31929
32355
  }
32356
+ else {
32357
+ console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.");
32358
+ }
31930
32359
  };
31931
32360
  /** @deprecated AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead */
31932
32361
  GridApi.prototype.purgeVirtualPageCache = function () {
32362
+ console.warn('AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead');
31933
32363
  this.purgeInfinitePageCache();
31934
32364
  };
31935
32365
  /** @deprecated AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead */
31936
32366
  GridApi.prototype.purgeInfinitePageCache = function () {
32367
+ console.warn('AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead');
31937
32368
  this.purgeInfiniteCache();
31938
32369
  };
31939
32370
  /**
@@ -31946,20 +32377,28 @@ var GridApi = /** @class */ (function () {
31946
32377
  if (this.infiniteRowModel) {
31947
32378
  this.infiniteRowModel.purgeCache();
31948
32379
  }
32380
+ else {
32381
+ console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.");
32382
+ }
31949
32383
  };
31950
32384
  /** @deprecated AG Grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.refreshServerSide({purge: true}) */
31951
32385
  GridApi.prototype.purgeEnterpriseCache = function (route) {
32386
+ console.warn("AG Grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.refreshServerSide({purge: true})");
31952
32387
  this.purgeServerSideCache(route);
31953
32388
  };
31954
32389
  /** @deprecated AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead. */
31955
32390
  GridApi.prototype.purgeServerSideCache = function (route) {
31956
32391
  if (route === void 0) { route = []; }
31957
32392
  if (this.serverSideRowModel) {
32393
+ console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead.");
31958
32394
  this.refreshServerSide({
31959
32395
  route: route,
31960
32396
  purge: true
31961
32397
  });
31962
32398
  }
32399
+ else {
32400
+ console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.");
32401
+ }
31963
32402
  };
31964
32403
  /**
31965
32404
  * Refresh a server-side level.
@@ -31968,29 +32407,34 @@ var GridApi = /** @class */ (function () {
31968
32407
  */
31969
32408
  GridApi.prototype.refreshServerSide = function (params) {
31970
32409
  if (!this.serverSideRowModel) {
32410
+ console.warn("AG Grid: api.refreshServerSide is only available when rowModelType='serverSide'.");
31971
32411
  return;
31972
32412
  }
31973
32413
  this.serverSideRowModel.refreshStore(params);
31974
32414
  };
31975
32415
  /** @deprecated use `refreshServerSide` instead */
31976
32416
  GridApi.prototype.refreshServerSideStore = function (params) {
31977
- doOnce(function () { return (void 0); }, 'refreshServerSideStore-renamed');
32417
+ var message = "AG Grid: Grid API refreshServerSideStore() was renamed to refreshServerSide() in v28.0";
32418
+ doOnce(function () { return console.warn(message); }, 'refreshServerSideStore-renamed');
31978
32419
  return this.refreshServerSide(params);
31979
32420
  };
31980
32421
  /** @deprecated use `getServerSideGroupLevelState` instead */
31981
32422
  GridApi.prototype.getServerSideStoreState = function () {
31982
- doOnce(function () { return (void 0); }, 'getServerSideStoreState-renamed');
32423
+ var message = "AG Grid: Grid API getServerSideStoreState() was renamed to getServerSideGroupLevelState() in v28.0";
32424
+ doOnce(function () { return console.warn(message); }, 'getServerSideStoreState-renamed');
31983
32425
  return this.getServerSideGroupLevelState();
31984
32426
  };
31985
32427
  /** Returns info on all server side group levels. */
31986
32428
  GridApi.prototype.getServerSideGroupLevelState = function () {
31987
32429
  if (!this.serverSideRowModel) {
32430
+ console.warn("AG Grid: api.getServerSideGroupLevelState is only available when rowModelType='serverSide'.");
31988
32431
  return [];
31989
32432
  }
31990
32433
  return this.serverSideRowModel.getStoreState();
31991
32434
  };
31992
32435
  /** @deprecated AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead */
31993
32436
  GridApi.prototype.getVirtualRowCount = function () {
32437
+ console.warn('AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead');
31994
32438
  return this.getInfiniteRowCount();
31995
32439
  };
31996
32440
  /** The row count defines how many rows the grid allows scrolling to. */
@@ -31998,9 +32442,13 @@ var GridApi = /** @class */ (function () {
31998
32442
  if (this.infiniteRowModel) {
31999
32443
  return this.infiniteRowModel.getRowCount();
32000
32444
  }
32445
+ else {
32446
+ console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.");
32447
+ }
32001
32448
  };
32002
32449
  /** @deprecated AG Grid: api.isMaxRowFound is deprecated, please use api.isLastRowIndexKnown() */
32003
32450
  GridApi.prototype.isMaxRowFound = function () {
32451
+ console.warn("AG Grid: api.isMaxRowFound is deprecated, please use api.isLastRowIndexKnown()");
32004
32452
  return this.isLastRowIndexKnown();
32005
32453
  };
32006
32454
  /** Returns `true` if grid allows for scrolling past the last row to load more rows, thus providing infinite scroll. */
@@ -32008,13 +32456,18 @@ var GridApi = /** @class */ (function () {
32008
32456
  if (this.infiniteRowModel) {
32009
32457
  return this.infiniteRowModel.isLastRowIndexKnown();
32010
32458
  }
32459
+ else {
32460
+ console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.");
32461
+ }
32011
32462
  };
32012
32463
  /** @deprecated AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead */
32013
32464
  GridApi.prototype.setVirtualRowCount = function (rowCount, maxRowFound) {
32465
+ console.warn('AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead');
32014
32466
  this.setRowCount(rowCount, maxRowFound);
32015
32467
  };
32016
32468
  /** @deprecated AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead */
32017
32469
  GridApi.prototype.setInfiniteRowCount = function (rowCount, maxRowFound) {
32470
+ console.warn('AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead');
32018
32471
  this.setRowCount(rowCount, maxRowFound);
32019
32472
  };
32020
32473
  /**
@@ -32028,13 +32481,18 @@ var GridApi = /** @class */ (function () {
32028
32481
  if (this.infiniteRowModel) {
32029
32482
  this.infiniteRowModel.setRowCount(rowCount, maxRowFound);
32030
32483
  }
32484
+ else {
32485
+ console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.");
32486
+ }
32031
32487
  };
32032
32488
  /** @deprecated AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead */
32033
32489
  GridApi.prototype.getVirtualPageState = function () {
32490
+ console.warn('AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead');
32034
32491
  return this.getCacheBlockState();
32035
32492
  };
32036
32493
  /** @deprecated getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead */
32037
32494
  GridApi.prototype.getInfinitePageState = function () {
32495
+ console.warn('AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead');
32038
32496
  return this.getCacheBlockState();
32039
32497
  };
32040
32498
  /**
@@ -32045,9 +32503,11 @@ var GridApi = /** @class */ (function () {
32045
32503
  };
32046
32504
  /** @deprecated In AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything useful. */
32047
32505
  GridApi.prototype.checkGridSize = function () {
32506
+ console.warn("In AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything useful.");
32048
32507
  };
32049
32508
  /** @deprecated In AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow() */
32050
32509
  GridApi.prototype.getFirstRenderedRow = function () {
32510
+ console.warn('In AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()');
32051
32511
  return this.getFirstDisplayedRow();
32052
32512
  };
32053
32513
  /** Get the index of the first displayed row due to scrolling (includes invisible rendered rows in the buffer). */
@@ -32056,6 +32516,7 @@ var GridApi = /** @class */ (function () {
32056
32516
  };
32057
32517
  /** @deprecated In AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow() */
32058
32518
  GridApi.prototype.getLastRenderedRow = function () {
32519
+ console.warn('in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()');
32059
32520
  return this.getLastDisplayedRow();
32060
32521
  };
32061
32522
  /** Get the index of the last displayed row due to scrolling (includes invisible rendered rows in the buffer). */
@@ -33107,7 +33568,11 @@ var SelectAllFeature = /** @class */ (function (_super) {
33107
33568
  };
33108
33569
  };
33109
33570
  SelectAllFeature.prototype.checkRightRowModelType = function () {
33110
- this.rowModel.getType();
33571
+ var rowModelType = this.rowModel.getType();
33572
+ var rowModelMatches = rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE;
33573
+ if (!rowModelMatches) {
33574
+ console.warn("AG Grid: selectAllCheckbox is only available if using normal row model, you are using " + rowModelType);
33575
+ }
33111
33576
  };
33112
33577
  SelectAllFeature.prototype.onCbSelectAll = function () {
33113
33578
  if (this.processingEventFromCheckbox) {
@@ -33139,12 +33604,15 @@ var SelectAllFeature = /** @class */ (function (_super) {
33139
33604
  }
33140
33605
  if (result) {
33141
33606
  if (this.gridOptionsWrapper.isRowModelServerSide()) {
33607
+ console.warn('AG Grid: headerCheckboxSelection is not supported for Server Side Row Model');
33142
33608
  return false;
33143
33609
  }
33144
33610
  if (this.gridOptionsWrapper.isRowModelInfinite()) {
33611
+ console.warn('AG Grid: headerCheckboxSelection is not supported for Infinite Row Model');
33145
33612
  return false;
33146
33613
  }
33147
33614
  if (this.gridOptionsWrapper.isRowModelViewport()) {
33615
+ console.warn('AG Grid: headerCheckboxSelection is not supported for Viewport Row Model');
33148
33616
  return false;
33149
33617
  }
33150
33618
  // otherwise the row model is compatible, so return true
@@ -35761,6 +36229,9 @@ var AnimationFrameService = /** @class */ (function (_super) {
35761
36229
  // frames. this stops bugs - where some code is asking for a frame to be executed
35762
36230
  // when it should not.
35763
36231
  AnimationFrameService.prototype.verifyAnimationFrameOn = function (methodName) {
36232
+ if (this.useAnimationFrame === false) {
36233
+ console.warn("AG Grid: AnimationFrameService." + methodName + " called but animation frames are off");
36234
+ }
35764
36235
  };
35765
36236
  AnimationFrameService.prototype.createTask = function (task, index, list) {
35766
36237
  this.verifyAnimationFrameOn(list);
@@ -36997,10 +37468,10 @@ var RowRenderer = /** @class */ (function (_super) {
36997
37468
  this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_ROW_CLASS, this.redrawRows.bind(this));
36998
37469
  if (this.gridOptionsWrapper.isGroupRowsSticky()) {
36999
37470
  if (this.rowModel.getType() != Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {
37000
- doOnce(function () { return (void 0); }, 'rowRenderer.stickyWorksWithCsrmOnly');
37471
+ doOnce(function () { return console.warn('AG Grid: The feature Sticky Row Groups only works with the Client Side Row Model'); }, 'rowRenderer.stickyWorksWithCsrmOnly');
37001
37472
  }
37002
37473
  else if (this.gridOptionsWrapper.isTreeData()) {
37003
- doOnce(function () { return (void 0); }, 'rowRenderer.stickyDoesNotWorkWithTreeData');
37474
+ doOnce(function () { return console.warn('AG Grid: The feature Sticky Row Groups does not work with Tree Data.'); }, 'rowRenderer.stickyDoesNotWorkWithTreeData');
37004
37475
  }
37005
37476
  else {
37006
37477
  this.stickyRowFeature = this.createManagedBean(new StickyRowFeature(this.createRowCon.bind(this), this.destroyRowCtrls.bind(this)));
@@ -41144,7 +41615,9 @@ var AgMenuList = /** @class */ (function (_super) {
41144
41615
  if (menuItemOrString === 'separator') {
41145
41616
  _this.addSeparator();
41146
41617
  }
41147
- else if (typeof menuItemOrString === 'string') ;
41618
+ else if (typeof menuItemOrString === 'string') {
41619
+ console.warn("AG Grid: unrecognised menu item " + menuItemOrString);
41620
+ }
41148
41621
  else {
41149
41622
  _this.addItem(menuItemOrString);
41150
41623
  }
@@ -41509,7 +41982,9 @@ var AgMenuItemComponent = /** @class */ (function (_super) {
41509
41982
  else if (typeof this.params.icon === 'string') {
41510
41983
  icon.innerHTML = this.params.icon;
41511
41984
  }
41512
- else ;
41985
+ else {
41986
+ console.warn('AG Grid: menu item icon must be DOM node or string');
41987
+ }
41513
41988
  }
41514
41989
  this.getGui().appendChild(icon);
41515
41990
  };
@@ -42459,6 +42934,7 @@ var PopupService = /** @class */ (function (_super) {
42459
42934
  var eDocument = this.gridOptionsWrapper.getDocument();
42460
42935
  var destroyPositionTracker = new AgPromise(function (resolve) { return resolve(function () { }); });
42461
42936
  if (!eDocument) {
42937
+ console.warn('ag-grid: could not find the document, document is empty');
42462
42938
  return { hideFunc: function () { }, stopAnchoringPromise: destroyPositionTracker };
42463
42939
  }
42464
42940
  var pos = this.popupList.findIndex(function (popup) { return popup.element === eChild; });
@@ -42871,6 +43347,7 @@ var VirtualList = /** @class */ (function (_super) {
42871
43347
  VirtualList.prototype.ensureIndexVisible = function (index) {
42872
43348
  var lastRow = this.model.getRowCount();
42873
43349
  if (typeof index !== 'number' || index < 0 || index >= lastRow) {
43350
+ console.warn('AG Grid: invalid row index for ensureIndexVisible: ' + index);
42874
43351
  return;
42875
43352
  }
42876
43353
  var rowTopPixel = index * this.rowHeight;
@@ -43174,6 +43651,7 @@ var CellNavigationService = /** @class */ (function (_super) {
43174
43651
  break;
43175
43652
  default:
43176
43653
  pointer = null;
43654
+ console.warn('AG Grid: unknown key for navigation ' + key);
43177
43655
  break;
43178
43656
  }
43179
43657
  if (pointer) {
@@ -43568,6 +44046,12 @@ var AlignedGridsService = /** @class */ (function (_super) {
43568
44046
  var groupOpenedEvent = event;
43569
44047
  _this.processGroupOpenedEvent(groupOpenedEvent);
43570
44048
  break;
44049
+ case Events.EVENT_COLUMN_PIVOT_CHANGED:
44050
+ // we cannot support pivoting with aligned grids as the columns will be out of sync as the
44051
+ // grids will have columns created based on the row data of the grid.
44052
+ console.warn('AG Grid: pivoting is not supported with aligned grids. ' +
44053
+ 'You can only use one of these features at a time in a grid.');
44054
+ break;
43571
44055
  }
43572
44056
  });
43573
44057
  };
@@ -43869,11 +44353,13 @@ var SelectionService = /** @class */ (function (_super) {
43869
44353
  // where groups don't actually appear in the selection normally.
43870
44354
  SelectionService.prototype.getBestCostNodeSelection = function () {
43871
44355
  if (this.rowModel.getType() !== Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {
44356
+ console.warn('AG Grid: `getBestCostNodeSelection` is only available when using normal row model');
43872
44357
  return;
43873
44358
  }
43874
44359
  var clientSideRowModel = this.rowModel;
43875
44360
  var topLevelNodes = clientSideRowModel.getTopLevelNodes();
43876
44361
  if (topLevelNodes === null) {
44362
+ console.warn('AG Grid: `selectAll` not available doing `rowModel=virtual`');
43877
44363
  return;
43878
44364
  }
43879
44365
  var result = [];
@@ -43915,6 +44401,7 @@ var SelectionService = /** @class */ (function (_super) {
43915
44401
  var rowModelClientSide = this.rowModel.getType() === Constants.ROW_MODEL_TYPE_CLIENT_SIDE;
43916
44402
  if (justFiltered) {
43917
44403
  if (!rowModelClientSide) {
44404
+ console.error('AG Grid: selecting just filtered only works with In Memory Row Model');
43918
44405
  return;
43919
44406
  }
43920
44407
  var clientSideRowModel = this.rowModel;
@@ -44027,6 +44514,11 @@ var ColumnApi = /** @class */ (function () {
44027
44514
  }
44028
44515
  /** Gets the grid to size the columns to the specified width in pixels, e.g. `sizeColumnsToFit(900)`. To have the grid fit the columns to the grid's width, use the Grid API `gridApi.sizeColumnsToFit()` instead. */
44029
44516
  ColumnApi.prototype.sizeColumnsToFit = function (gridWidth) {
44517
+ // AG-3403 validate that gridWidth is provided because this method has the same name as
44518
+ // a method on the grid API that takes no arguments, and it's easy to confuse the two
44519
+ if (typeof gridWidth === "undefined") {
44520
+ console.error('AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)');
44521
+ }
44030
44522
  this.columnModel.sizeColumnsToFit(gridWidth, 'api');
44031
44523
  };
44032
44524
  /** Call this if you want to open or close a column group. */
@@ -44095,6 +44587,7 @@ var ColumnApi = /** @class */ (function () {
44095
44587
  ColumnApi.prototype.moveColumn = function (key, toIndex) {
44096
44588
  if (typeof key === 'number') {
44097
44589
  // moveColumn used to take indexes, so this is advising user who hasn't moved to new method name
44590
+ console.warn('AG Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead');
44098
44591
  this.columnModel.moveColumnByIndex(key, toIndex, 'api');
44099
44592
  }
44100
44593
  else {
@@ -44125,6 +44618,7 @@ var ColumnApi = /** @class */ (function () {
44125
44618
  ColumnApi.prototype.isPivotMode = function () { return this.columnModel.isPivotMode(); };
44126
44619
  /** @deprecated Use `getPivotResultColumn` instead */
44127
44620
  ColumnApi.prototype.getSecondaryPivotColumn = function (pivotKeys, valueColKey) {
44621
+ console.warn('AG Grid: since version 28.0.x getSecondaryPivotColumn has been renamed, please use getPivotResultColumn instead');
44128
44622
  return this.getPivotResultColumn(pivotKeys, valueColKey);
44129
44623
  };
44130
44624
  /** Returns the pivot result column for the given `pivotKeys` and `valueColId`. Useful to then call operations on the pivot column. */
@@ -44183,18 +44677,21 @@ var ColumnApi = /** @class */ (function () {
44183
44677
  ColumnApi.prototype.autoSizeAllColumns = function (skipHeader) { this.columnModel.autoSizeAllColumns(skipHeader, 'api'); };
44184
44678
  /** @deprecated Use `setPivotResultColumns` instead. */
44185
44679
  ColumnApi.prototype.setSecondaryColumns = function (colDefs) {
44680
+ console.warn('AG Grid: since version 28.0.x setSecondaryColumns has been renamed, please use setPivotResultColumns instead');
44186
44681
  this.setPivotResultColumns(colDefs);
44187
44682
  };
44188
44683
  /** Set the pivot result columns. */
44189
44684
  ColumnApi.prototype.setPivotResultColumns = function (colDefs) { this.columnModel.setSecondaryColumns(colDefs, 'api'); };
44190
44685
  /** @deprecated Use `getPivotResultColumns` instead. */
44191
44686
  ColumnApi.prototype.getSecondaryColumns = function () {
44687
+ console.warn('AG Grid: since version 28.0.x getSecondaryColumns has been renamed, please use getPivotResultColumns instead');
44192
44688
  return this.getPivotResultColumns();
44193
44689
  };
44194
44690
  /** Returns the grid's pivot result columns. */
44195
44691
  ColumnApi.prototype.getPivotResultColumns = function () { return this.columnModel.getSecondaryColumns(); };
44196
44692
  /** @deprecated Use `getColumns` instead. */
44197
44693
  ColumnApi.prototype.getPrimaryColumns = function () {
44694
+ console.warn('AG Grid: since version 28.0.x getPrimaryColumns has been renamed, please use getColumns instead');
44198
44695
  return this.getColumns();
44199
44696
  };
44200
44697
  ColumnApi.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid = function () {
@@ -44213,66 +44710,82 @@ var ColumnApi = /** @class */ (function () {
44213
44710
  // }
44214
44711
  /** @deprecated Use `getColumns` instead */
44215
44712
  ColumnApi.prototype.getAllColumns = function () {
44713
+ console.warn('AG Grid: since version 28.0.x getAllColumns has been renamed, please use getColumns instead');
44216
44714
  return this.getColumns();
44217
44715
  };
44218
44716
  /** @deprecated columnGroupOpened no longer exists, use setColumnGroupOpened */
44219
44717
  ColumnApi.prototype.columnGroupOpened = function (group, newValue) {
44718
+ console.error('AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened');
44220
44719
  this.setColumnGroupOpened(group, newValue);
44221
44720
  };
44222
44721
  /** @deprecated hideColumns is deprecated, use setColumnsVisible */
44223
44722
  ColumnApi.prototype.hideColumns = function (colIds, hide) {
44723
+ console.error('AG Grid: hideColumns is deprecated, use setColumnsVisible');
44224
44724
  this.columnModel.setColumnsVisible(colIds, !hide, 'api');
44225
44725
  };
44226
44726
  /** @deprecated hideColumn is deprecated, use setColumnVisible */
44227
44727
  ColumnApi.prototype.hideColumn = function (colId, hide) {
44728
+ console.error('AG Grid: hideColumn is deprecated, use setColumnVisible');
44228
44729
  this.columnModel.setColumnVisible(colId, !hide, 'api');
44229
44730
  };
44230
44731
  /** @deprecated setState is deprecated, use setColumnState */
44231
44732
  ColumnApi.prototype.setState = function (columnState) {
44733
+ console.error('AG Grid: setState is deprecated, use setColumnState');
44232
44734
  return this.setColumnState(columnState);
44233
44735
  };
44234
44736
  /** @deprecated getState is deprecated, use getColumnState */
44235
44737
  ColumnApi.prototype.getState = function () {
44738
+ console.error('AG Grid: getState is deprecated, use getColumnState');
44236
44739
  return this.getColumnState();
44237
44740
  };
44238
44741
  /** @deprecated resetState is deprecated, use resetColumnState */
44239
44742
  ColumnApi.prototype.resetState = function () {
44743
+ console.error('AG Grid: resetState is deprecated, use resetColumnState');
44240
44744
  this.resetColumnState();
44241
44745
  };
44242
44746
  /** @deprecated getAggregationColumns is deprecated, use getValueColumns */
44243
44747
  ColumnApi.prototype.getAggregationColumns = function () {
44748
+ console.error('AG Grid: getAggregationColumns is deprecated, use getValueColumns');
44244
44749
  return this.columnModel.getValueColumns();
44245
44750
  };
44246
44751
  /** @deprecated removeAggregationColumn is deprecated, use removeValueColumn */
44247
44752
  ColumnApi.prototype.removeAggregationColumn = function (colKey) {
44753
+ console.error('AG Grid: removeAggregationColumn is deprecated, use removeValueColumn');
44248
44754
  this.columnModel.removeValueColumn(colKey, 'api');
44249
44755
  };
44250
44756
  /** @deprecated removeAggregationColumns is deprecated, use removeValueColumns */
44251
44757
  ColumnApi.prototype.removeAggregationColumns = function (colKeys) {
44758
+ console.error('AG Grid: removeAggregationColumns is deprecated, use removeValueColumns');
44252
44759
  this.columnModel.removeValueColumns(colKeys, 'api');
44253
44760
  };
44254
44761
  /** @deprecated addAggregationColumn is deprecated, use addValueColumn */
44255
44762
  ColumnApi.prototype.addAggregationColumn = function (colKey) {
44763
+ console.error('AG Grid: addAggregationColumn is deprecated, use addValueColumn');
44256
44764
  this.columnModel.addValueColumn(colKey, 'api');
44257
44765
  };
44258
44766
  /** @deprecated addAggregationColumns is deprecated, use addValueColumns */
44259
44767
  ColumnApi.prototype.addAggregationColumns = function (colKeys) {
44768
+ console.error('AG Grid: addAggregationColumns is deprecated, use addValueColumns');
44260
44769
  this.columnModel.addValueColumns(colKeys, 'api');
44261
44770
  };
44262
44771
  /** @deprecated setColumnAggFunction is deprecated, use setColumnAggFunc */
44263
44772
  ColumnApi.prototype.setColumnAggFunction = function (column, aggFunc) {
44773
+ console.error('AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc');
44264
44774
  this.columnModel.setColumnAggFunc(column, aggFunc, 'api');
44265
44775
  };
44266
44776
  /** @deprecated getDisplayNameForCol is deprecated, use getDisplayNameForColumn */
44267
44777
  ColumnApi.prototype.getDisplayNameForCol = function (column) {
44778
+ console.error('AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn');
44268
44779
  return this.getDisplayNameForColumn(column, null);
44269
44780
  };
44270
44781
  /** @deprecated setColumnState is deprecated, use applyColumnState. */
44271
44782
  ColumnApi.prototype.setColumnState = function (columnState) {
44783
+ console.error('AG Grid: setColumnState is deprecated, use applyColumnState');
44272
44784
  return this.columnModel.applyColumnState({ state: columnState, applyOrder: true }, 'api');
44273
44785
  };
44274
44786
  /** @deprecated getOriginalColumnGroup is deprecated, use getProvidedColumnGroup. */
44275
44787
  ColumnApi.prototype.getOriginalColumnGroup = function (name) {
44788
+ console.error('AG Grid: getOriginalColumnGroup is deprecated, use getProvidedColumnGroup');
44276
44789
  return this.columnModel.getProvidedColumnGroup(name);
44277
44790
  };
44278
44791
  __decorate$1n([
@@ -44425,6 +44938,7 @@ var ValueService = /** @class */ (function (_super) {
44425
44938
  // need either a field or a newValueHandler for this to work
44426
44939
  if (missing(field) && missing(newValueHandler) && missing(valueSetter)) {
44427
44940
  // we don't tell user about newValueHandler, as that is deprecated
44941
+ console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work");
44428
44942
  return false;
44429
44943
  }
44430
44944
  var params = {
@@ -44601,6 +45115,7 @@ var ValueService = /** @class */ (function (_super) {
44601
45115
  result = String(result);
44602
45116
  if (result === '[object Object]') {
44603
45117
  doOnce(function () {
45118
+ console.warn('AG Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key');
44604
45119
  }, 'getKeyForNode - warn about [object,object]');
44605
45120
  }
44606
45121
  return result;
@@ -44672,7 +45187,9 @@ var ExpressionService = /** @class */ (function (_super) {
44672
45187
  var expression = expressionOrFunc;
44673
45188
  return this.evaluateExpression(expression, params);
44674
45189
  }
44675
- else ;
45190
+ else {
45191
+ console.error('AG Grid: value should be either a string or a function', expressionOrFunc);
45192
+ }
44676
45193
  };
44677
45194
  ExpressionService.prototype.evaluateExpression = function (expression, params) {
44678
45195
  try {
@@ -44686,9 +45203,13 @@ var ExpressionService = /** @class */ (function (_super) {
44686
45203
  // the expression failed, which can happen, as it's the client that
44687
45204
  // provides the expression. so print a nice message
44688
45205
  // tslint:disable-next-line
45206
+ console.log('Processing of the expression failed');
44689
45207
  // tslint:disable-next-line
45208
+ console.log('Expression = ' + expression);
44690
45209
  // tslint:disable-next-line
45210
+ console.log('Params =', params);
44691
45211
  // tslint:disable-next-line
45212
+ console.log('Exception = ' + e);
44692
45213
  return null;
44693
45214
  }
44694
45215
  };
@@ -44786,6 +45307,7 @@ var TemplateService = /** @class */ (function (_super) {
44786
45307
  };
44787
45308
  TemplateService.prototype.handleHttpResult = function (httpResult, url) {
44788
45309
  if (httpResult.status !== 200 || httpResult.response === null) {
45310
+ console.warn("AG Grid: Unable to get template error " + httpResult.status + " - " + url);
44789
45311
  return;
44790
45312
  }
44791
45313
  // response success, so process it
@@ -44866,7 +45388,10 @@ var Logger = /** @class */ (function () {
44866
45388
  return this.isLoggingFunc();
44867
45389
  };
44868
45390
  Logger.prototype.log = function (message) {
44869
- if (this.isLoggingFunc()) ;
45391
+ if (this.isLoggingFunc()) {
45392
+ // tslint:disable-next-line
45393
+ console.log('AG Grid.' + this.name + ': ' + message);
45394
+ }
44870
45395
  };
44871
45396
  return Logger;
44872
45397
  }());
@@ -45266,6 +45791,7 @@ var SortController = /** @class */ (function (_super) {
45266
45791
  sortingOrder = SortController_1.DEFAULT_SORTING_ORDER;
45267
45792
  }
45268
45793
  if (!Array.isArray(sortingOrder) || sortingOrder.length <= 0) {
45794
+ console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's " + sortingOrder);
45269
45795
  return null;
45270
45796
  }
45271
45797
  var currentIndex = sortingOrder.indexOf(column.getSort());
@@ -45280,6 +45806,7 @@ var SortController = /** @class */ (function (_super) {
45280
45806
  }
45281
45807
  // verify the sort type exists, as the user could provide the sortingOrder, need to make sure it's valid
45282
45808
  if (SortController_1.DEFAULT_SORTING_ORDER.indexOf(result) < 0) {
45809
+ console.warn('AG Grid: invalid sort type ' + result);
45283
45810
  return null;
45284
45811
  }
45285
45812
  return result;
@@ -45608,6 +46135,7 @@ var AutoGroupColService = /** @class */ (function (_super) {
45608
46135
  var doingTreeData = this.gridOptionsWrapper.isTreeData();
45609
46136
  var doingMultiAutoColumn = this.gridOptionsWrapper.isGroupMultiAutoColumn();
45610
46137
  if (doingTreeData && doingMultiAutoColumn) {
46138
+ console.warn('AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data');
45611
46139
  doingMultiAutoColumn = false;
45612
46140
  }
45613
46141
  // if doing groupMultiAutoColumn, then we call the method multiple times, once
@@ -46291,8 +46819,8 @@ var Environment = /** @class */ (function (_super) {
46291
46819
  var theme = themeMatch[0];
46292
46820
  var usingOldTheme = themeMatch[2] === undefined;
46293
46821
  if (usingOldTheme) {
46294
- theme.replace('ag-', 'ag-theme-');
46295
- doOnce(function () { return (void 0); }, 'using-old-theme');
46822
+ var newTheme_1 = theme.replace('ag-', 'ag-theme-');
46823
+ doOnce(function () { return console.warn("AG Grid: As of v19 old theme are no longer provided. Please replace " + theme + " with " + newTheme_1 + "."); }, 'using-old-theme');
46296
46824
  }
46297
46825
  return { theme: theme, el: el, themeFamily: theme.replace(/-dark$/, ''), allThemes: allThemes };
46298
46826
  };
@@ -47798,6 +48326,7 @@ var RowCssClassCalculator = /** @class */ (function () {
47798
48326
  var rowClass = this.gridOptionsWrapper.getRowClass();
47799
48327
  if (rowClass) {
47800
48328
  if (typeof rowClass === 'function') {
48329
+ console.warn('AG Grid: rowClass should not be a function, please use getRowClass instead');
47801
48330
  return [];
47802
48331
  }
47803
48332
  process(rowClass);
@@ -48638,6 +49167,7 @@ var __spread$6 = (undefined && undefined.__spread) || function () {
48638
49167
  var Grid = /** @class */ (function () {
48639
49168
  function Grid(eGridDiv, gridOptions, params) {
48640
49169
  if (!gridOptions) {
49170
+ console.error('AG Grid: no gridOptions provided to the grid');
48641
49171
  return;
48642
49172
  }
48643
49173
  this.gridOptions = gridOptions;
@@ -48843,7 +49373,32 @@ var GridCoreCreator = /** @class */ (function () {
48843
49373
  if (exists(rowModelClass)) {
48844
49374
  return rowModelClass;
48845
49375
  }
48846
- if (ModuleRegistry.isPackageBased()) ;
49376
+ if (ModuleRegistry.isPackageBased()) {
49377
+ if ([Constants.ROW_MODEL_TYPE_VIEWPORT, Constants.ROW_MODEL_TYPE_SERVER_SIDE].includes(rowModelType)) {
49378
+ // If package based only the enterprise row models could be missing.
49379
+ console.error("AG Grid: Row Model \"" + rowModelType + "\" not found. Please ensure the package 'ag-grid-enterprise' is imported. Please see: https://www.ag-grid.com/javascript-grid/packages/");
49380
+ }
49381
+ else {
49382
+ console.error('AG Grid: could not find row model for rowModelType ' + rowModelType);
49383
+ }
49384
+ }
49385
+ else {
49386
+ if (rowModelType === Constants.ROW_MODEL_TYPE_INFINITE) {
49387
+ console.error("AG Grid: Row Model \"Infinite\" not found. Please ensure the " + ModuleNames.InfiniteRowModelModule + " module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/");
49388
+ }
49389
+ else if (rowModelType === Constants.ROW_MODEL_TYPE_VIEWPORT) {
49390
+ console.error("AG Grid: Row Model \"Viewport\" not found. Please ensure the AG Grid Enterprise Module " + ModuleNames.ViewportRowModelModule + " module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/");
49391
+ }
49392
+ else if (rowModelType === Constants.ROW_MODEL_TYPE_SERVER_SIDE) {
49393
+ console.error("AG Grid: Row Model \"Server Side\" not found. Please ensure the AG Grid Enterprise Module " + ModuleNames.ServerSideRowModelModule + " module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/");
49394
+ }
49395
+ else if (rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {
49396
+ console.error("AG Grid: Row Model \"Client Side\" not found. Please ensure the " + ModuleNames.ClientSideRowModelModule + " module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/");
49397
+ }
49398
+ else {
49399
+ console.error('AG Grid: could not find row model for rowModelType ' + rowModelType);
49400
+ }
49401
+ }
48847
49402
  };
48848
49403
  return GridCoreCreator;
48849
49404
  }());
@@ -49105,15 +49660,51 @@ var LicenseManager = /** @class */ (function (_super) {
49105
49660
  }
49106
49661
  };
49107
49662
  LicenseManager.prototype.outputInvalidLicenseKey = function () {
49663
+ console.error('*****************************************************************************************************************');
49664
+ console.error('***************************************** AG Grid Enterprise License ********************************************');
49665
+ console.error('********************************************* Invalid License ***************************************************');
49666
+ console.error('* Your license for AG Grid Enterprise is not valid - please contact info@ag-grid.com to obtain a valid license. *');
49667
+ console.error('*****************************************************************************************************************');
49668
+ console.error('*****************************************************************************************************************');
49108
49669
  this.watermarkMessage = "Invalid License";
49109
49670
  };
49110
49671
  LicenseManager.prototype.outputExpiredTrialKey = function (formattedExpiryDate) {
49672
+ console.error('****************************************************************************************************************');
49673
+ console.error('***************************************** AG Grid Enterprise License *******************************************');
49674
+ console.error('***************************************** Trial Period Expired. *******************************************');
49675
+ console.error("* Your license for AG Grid Enterprise expired on " + formattedExpiryDate + ". *");
49676
+ console.error('* Please email info@ag-grid.com to purchase a license. *');
49677
+ console.error('****************************************************************************************************************');
49678
+ console.error('****************************************************************************************************************');
49111
49679
  this.watermarkMessage = "Trial Period Expired";
49112
49680
  };
49113
49681
  LicenseManager.prototype.outputMissingLicenseKey = function () {
49682
+ console.error('****************************************************************************************************************');
49683
+ console.error('***************************************** AG Grid Enterprise License *******************************************');
49684
+ console.error('****************************************** License Key Not Found ***********************************************');
49685
+ console.error('* All AG Grid Enterprise features are unlocked. *');
49686
+ console.error('* This is an evaluation only version, it is not licensed for development projects intended for production. *');
49687
+ console.error('* If you want to hide the watermark, please email info@ag-grid.com for a trial license. *');
49688
+ console.error('****************************************************************************************************************');
49689
+ console.error('****************************************************************************************************************');
49114
49690
  this.watermarkMessage = "For Trial Use Only";
49115
49691
  };
49116
49692
  LicenseManager.prototype.outputIncompatibleVersion = function (formattedExpiryDate, formattedReleaseDate) {
49693
+ console.error('****************************************************************************************************************************');
49694
+ console.error('****************************************************************************************************************************');
49695
+ console.error('* AG Grid Enterprise License *');
49696
+ console.error('* License not compatible with installed version of AG Grid Enterprise. *');
49697
+ console.error('* *');
49698
+ console.error("* Your AG Grid License entitles you to all versions of AG Grid that we release within the time covered by your license *");
49699
+ console.error("* - typically we provide one year licenses which entitles you to all releases / updates of AG Grid within that year. *");
49700
+ console.error("* Your license has an end (expiry) date which stops the license key working with versions of AG Grid released after the *");
49701
+ console.error("* license end date. The license key that you have expires on " + formattedExpiryDate + ", however the version of AG Grid you *");
49702
+ console.error("* are trying to use was released on " + formattedReleaseDate + ". *");
49703
+ console.error('* *');
49704
+ console.error('* Please contact info@ag-grid.com to renew your subscription to new versions and get a new license key to work with this *');
49705
+ console.error('* version of AG Grid. *');
49706
+ console.error('****************************************************************************************************************************');
49707
+ console.error('****************************************************************************************************************************');
49117
49708
  this.watermarkMessage = "License Expired";
49118
49709
  };
49119
49710
  var LicenseManager_1;
@@ -49655,14 +50246,20 @@ class DataSource {
49655
50246
  return indexA - indexB;
49656
50247
  });
49657
50248
  this._dataUnit.metadata.fields.forEach(f => {
49658
- var _a;
50249
+ var _a, _b;
49659
50250
  if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
49660
50251
  const props = new Map();
49661
50252
  const properties = this._dataUnit.getField(f.name).properties;
49662
50253
  for (const value in properties) {
49663
50254
  props.set(value, properties[value]);
49664
50255
  }
49665
- columnDefs.push({ label: f.label, name: f.name, userInterface: f.userInterface, options: (_a = this._dataUnit.getField(f.name).properties) === null || _a === void 0 ? void 0 : _a.options, props });
50256
+ const col = { label: f.label, name: f.name, userInterface: f.userInterface, options: (_a = this._dataUnit.getField(f.name).properties) === null || _a === void 0 ? void 0 : _a.options, props };
50257
+ columnDefs.push(col);
50258
+ if (f.userInterface === UserInterface.SEARCHPLUS && ((_b = f.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD)) {
50259
+ const descriptionCol = this.buildDescriptionColumn(f);
50260
+ columnDefs.push(descriptionCol);
50261
+ f.properties[PRESENTATION_COL_ID_PROP_NAME] = descriptionCol.name;
50262
+ }
49666
50263
  }
49667
50264
  });
49668
50265
  }
@@ -49672,6 +50269,19 @@ class DataSource {
49672
50269
  console.warn(error);
49673
50270
  }
49674
50271
  }
50272
+ buildDescriptionColumn(field) {
50273
+ var _a, _b, _c, _d;
50274
+ const props = new Map();
50275
+ props.set(PRESENTATION_FROM_COL_PROP_NAME, field.name);
50276
+ const descriptionFieldName = `${(_a = field.properties) === null || _a === void 0 ? void 0 : _a.ENTITYNAME}.${(_b = field.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD}`;
50277
+ this._dataUnit.addSourceFieldValue(descriptionFieldName, field.name);
50278
+ return {
50279
+ label: `${(_c = field.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONFIELDLABEL} (${(_d = field.properties) === null || _d === void 0 ? void 0 : _d.DESCRIPTIONENTITY})`,
50280
+ name: descriptionFieldName,
50281
+ userInterface: UserInterface.SHORTTEXT,
50282
+ props
50283
+ };
50284
+ }
49675
50285
  }
49676
50286
 
49677
50287
  class EzGridCustomHeader {
@@ -50082,6 +50692,21 @@ const buildSwitch = (fieldMetadata) => {
50082
50692
  return combo;
50083
50693
  };
50084
50694
 
50695
+ const buildSearchPlus = ({ name, required, readOnly, dataUnit }) => {
50696
+ const ezSearch = HTMLBuilder.parseElement(`<ez-search-plus
50697
+ class="ez-grid grid_editor"
50698
+ mode="slim"
50699
+ suppress-empty-option=${required}
50700
+ enabled=${!readOnly}
50701
+ hide-description-input=${true}
50702
+ />`);
50703
+ const loader = ApplicationContext.getContextValue("__EZUI__SEARCH__PLUS__OPTION__LOADER__");
50704
+ ezSearch.optionLoader = (argument) => loader(argument, name, dataUnit);
50705
+ ezSearch.autoFocus = true;
50706
+ ezSearch.valueGetter = () => ezSearch.getValueAsync();
50707
+ return ezSearch;
50708
+ };
50709
+
50085
50710
  const buildSearch = ({ name, required, readOnly, eGridCell, dataUnit }) => {
50086
50711
  var _a;
50087
50712
  const ezSearch = HTMLBuilder.parseElement(`<ez-search
@@ -50114,6 +50739,7 @@ uiBuilders.set(UserInterface.CHECKBOX, buildSwitch);
50114
50739
  uiBuilders.set(UserInterface.OPTIONSELECTOR, buildComboBox);
50115
50740
  uiBuilders.set(UserInterface.LONGTEXT, buildTextAreaInput);
50116
50741
  uiBuilders.set(UserInterface.SEARCH, buildSearch);
50742
+ uiBuilders.set(UserInterface.SEARCHPLUS, buildSearchPlus);
50117
50743
  class EzCellEditor {
50118
50744
  init(params) {
50119
50745
  this._rowData = params.data;
@@ -50312,6 +50938,7 @@ class EzGridCustomCellRender extends EzCellRender {
50312
50938
 
50313
50939
  class GridEditionManager {
50314
50940
  constructor(dataUnit, useEnterLikeTab, recordsValidator, editionIsDisabled, customEditors, customRenders, enableContinuousInsert, enableGridInsert, lockerId) {
50941
+ this._inProgressChanges = [];
50315
50942
  this._dataUnit = dataUnit;
50316
50943
  this._recordValidationProcessor = new RecordValidationProcessor(this._dataUnit, {
50317
50944
  getRequiredFields: () => this.getRequiredFields(),
@@ -50411,6 +51038,12 @@ class GridEditionManager {
50411
51038
  return this._enableContinuousInsert && (this._dataUnit.records.length - 1) === ((_a = this._lastCellEdited) === null || _a === void 0 ? void 0 : _a.rowIndex);
50412
51039
  }
50413
51040
  async proceedAutoSave() {
51041
+ var _a;
51042
+ //Aguarda outras promises entrarem na fila
51043
+ await new Promise(resolve => setTimeout(resolve, 100));
51044
+ if (this._inProgressChanges.length) {
51045
+ await Promise.all((_a = this._inProgressChanges) === null || _a === void 0 ? void 0 : _a.map(({ promise }) => promise));
51046
+ }
50414
51047
  if (!this._dataUnit.isDirty()) {
50415
51048
  this.saveSuccess();
50416
51049
  return true;
@@ -50481,7 +51114,9 @@ class GridEditionManager {
50481
51114
  }
50482
51115
  configureColumn(col) {
50483
51116
  col.cellEditor = 'ezCellEditor';
50484
- col.editable = params => this.canEdit(params);
51117
+ if (col.editable != false) {
51118
+ col.editable = params => this.canEdit(params);
51119
+ }
50485
51120
  col.suppressKeyboardEvent = (params) => {
50486
51121
  if (params.event.key === KeyCode.ESCAPE && params.editing) {
50487
51122
  return this._dataUnit.isDirty();
@@ -50665,6 +51300,14 @@ class GridEditionManager {
50665
51300
  return;
50666
51301
  }
50667
51302
  if (value instanceof Promise) {
51303
+ const progressChange = {
51304
+ promise: undefined,
51305
+ resolve: () => { }
51306
+ };
51307
+ progressChange.promise = new Promise((resolve) => {
51308
+ progressChange.resolve = resolve;
51309
+ });
51310
+ this._inProgressChanges.push(progressChange);
50668
51311
  this.handlePromiseValue(event, value);
50669
51312
  return;
50670
51313
  }
@@ -50678,20 +51321,26 @@ class GridEditionManager {
50678
51321
  const resolved = await value;
50679
51322
  return this.updateCellValue(event, resolved);
50680
51323
  }
50681
- updateCellValue(event, newValue) {
50682
- var _a;
51324
+ async updateCellValue(event, newValue) {
51325
+ var _a, _b, _c;
50683
51326
  const fieldName = event.colDef.field;
50684
51327
  const fieldDescriptor = this._dataUnit.getField(fieldName);
50685
51328
  if (newValue == '' && newValue != this._dataUnit.getFieldValue(fieldName) && (fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.userInterface) === UserInterface.SEARCH) {
50686
51329
  newValue = this._dataUnit.getFieldValue(fieldName);
50687
51330
  }
51331
+ const newData = { [fieldName]: newValue };
51332
+ const descriptionColName = (_a = fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.properties) === null || _a === void 0 ? void 0 : _a[PRESENTATION_COL_ID_PROP_NAME];
51333
+ if (!StringUtils$1.isEmpty(descriptionColName)) {
51334
+ newData[descriptionColName] = newValue === null || newValue === void 0 ? void 0 : newValue.label;
51335
+ }
50688
51336
  event.node.setData(Object.assign(Object.assign({}, event.data), { [fieldName]: newValue }));
50689
- (_a = this._currentEditLock) === null || _a === void 0 ? void 0 : _a.call(this);
51337
+ (_b = this._currentEditLock) === null || _b === void 0 ? void 0 : _b.call(this);
50690
51338
  if (event.oldValue !== newValue) {
50691
51339
  this._isGridEdition = true;
50692
- this._dataUnit.setFieldValue(fieldName, newValue, [event.data.__record__id__], { suppressCreateNewRecord: true });
51340
+ await this._dataUnit.setFieldValue(fieldName, newValue, [event.data.__record__id__], { suppressCreateNewRecord: true });
50693
51341
  this._lastCellEdited = { rowIndex: event.rowIndex, column: event.column, rowPinned: undefined };
50694
51342
  }
51343
+ (_c = this._inProgressChanges) === null || _c === void 0 ? void 0 : _c.forEach(({ resolve }) => resolve(newValue));
50695
51344
  }
50696
51345
  setCellEditors(customEditors) {
50697
51346
  var _a;
@@ -51480,10 +52129,12 @@ var RangeService = /** @class */ (function (_super) {
51480
52129
  var isSameColumn = columnFrom === columnTo;
51481
52130
  var fromIndex = allColumns.indexOf(columnFrom);
51482
52131
  if (fromIndex < 0) {
52132
+ console.warn("AG Grid: column " + columnFrom.getId() + " is not visible");
51483
52133
  return;
51484
52134
  }
51485
52135
  var toIndex = isSameColumn ? fromIndex : allColumns.indexOf(columnTo);
51486
52136
  if (toIndex < 0) {
52137
+ console.warn("AG Grid: column " + columnTo.getId() + " is not visible");
51487
52138
  return;
51488
52139
  }
51489
52140
  if (isSameColumn) {
@@ -52418,10 +53069,12 @@ var ServerSideRowModel = /** @class */ (function (_super) {
52418
53069
  };
52419
53070
  ServerSideRowModel.prototype.verifyProps = function () {
52420
53071
  if (this.gridOptionsWrapper.getInitialGroupOrderComparator() != null) {
52421
- _.doOnce(function () { return (void 0); }, 'SSRM.InitialGroupOrderComparator');
53072
+ var message_1 = "AG Grid: initialGroupOrderComparator cannot be used with Server Side Row Model. If using Full Store, then provide the rows to the grid in the desired sort order. If using Infinite Scroll, then sorting is done on the server side, nothing to do with the client.";
53073
+ _.doOnce(function () { return console.warn(message_1); }, 'SSRM.InitialGroupOrderComparator');
52422
53074
  }
52423
53075
  if (this.gridOptionsWrapper.isRowSelection() && this.gridOptionsWrapper.getRowIdFunc() == null) {
52424
- _.doOnce(function () { return (void 0); }, 'SSRM.SelectionNeedsRowNodeIdFunc');
53076
+ var message_2 = "AG Grid: getRowId callback must be provided for Server Side Row Model selection to work correctly.";
53077
+ _.doOnce(function () { return console.warn(message_2); }, 'SSRM.SelectionNeedsRowNodeIdFunc');
52425
53078
  }
52426
53079
  };
52427
53080
  ServerSideRowModel.prototype.setDatasource = function (datasource) {
@@ -52971,6 +53624,11 @@ var BlockUtils = /** @class */ (function (_super) {
52971
53624
  rowNode.key = this.valueService.getValue(rowNode.rowGroupColumn, rowNode);
52972
53625
  if (rowNode.key === null || rowNode.key === undefined) {
52973
53626
  _.doOnce(function () {
53627
+ console.warn("AG Grid: null and undefined values are not allowed for server side row model keys");
53628
+ if (rowNode.rowGroupColumn) {
53629
+ console.warn("column = " + rowNode.rowGroupColumn.getId());
53630
+ }
53631
+ console.warn("data is ", rowNode.data);
52974
53632
  }, 'ServerSideBlock-CannotHaveNullOrUndefinedForKey');
52975
53633
  }
52976
53634
  };
@@ -53087,6 +53745,7 @@ var BlockUtils = /** @class */ (function (_super) {
53087
53745
  var bottomPointer = 0;
53088
53746
  var topPointer = rowNodes.length - 1;
53089
53747
  if (_.missing(topPointer) || _.missing(bottomPointer)) {
53748
+ console.warn("AG Grid: error: topPointer = " + topPointer + ", bottomPointer = " + bottomPointer);
53090
53749
  return undefined;
53091
53750
  }
53092
53751
  while (true) {
@@ -53115,6 +53774,7 @@ var BlockUtils = /** @class */ (function (_super) {
53115
53774
  topPointer = midPointer - 1;
53116
53775
  }
53117
53776
  else {
53777
+ console.warn("AG Grid: error: unable to locate rowIndex = " + displayRowIndex + " in cache");
53118
53778
  return undefined;
53119
53779
  }
53120
53780
  }
@@ -53230,6 +53890,11 @@ var NodeManager = /** @class */ (function () {
53230
53890
  }
53231
53891
  NodeManager.prototype.addRowNode = function (rowNode) {
53232
53892
  var id = rowNode.id;
53893
+ if (this.rowNodes[id]) {
53894
+ console.warn("AG Grid: Duplicate node id " + rowNode.id + ". Row ID's are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.");
53895
+ console.warn('first instance', this.rowNodes[id].data);
53896
+ console.warn('second instance', rowNode.data);
53897
+ }
53233
53898
  this.rowNodes[id] = rowNode;
53234
53899
  };
53235
53900
  NodeManager.prototype.removeNode = function (rowNode) {
@@ -54161,7 +54826,8 @@ var InfiniteStore = /** @class */ (function (_super) {
54161
54826
  Object.assign(this.info, info);
54162
54827
  }
54163
54828
  if (!params.rowData) {
54164
- _.doOnce(function () { return (void 0); }, 'InfiniteStore.noData');
54829
+ var message_1 = 'AG Grid: "params.rowData" is missing from Server-Side Row Model success() callback. Please use the "rowData" attribute. If no data is returned, set an empty list.';
54830
+ _.doOnce(function () { return console.warn(message_1, params); }, 'InfiniteStore.noData');
54165
54831
  }
54166
54832
  var finalRowCount = params.rowCount != null && params.rowCount >= 0 ? params.rowCount : undefined;
54167
54833
  // if we are not active, then we ignore all events, otherwise we could end up getting the
@@ -54920,7 +55586,8 @@ var FullStore = /** @class */ (function (_super) {
54920
55586
  this.nodesAfterFilter = [];
54921
55587
  this.allNodesMap = {};
54922
55588
  if (!params.rowData) {
54923
- _.doOnce(function () { return (void 0); }, 'FullStore.noData');
55589
+ var message_1 = 'AG Grid: "params.data" is missing from Server-Side Row Model success() callback. Please use the "data" attribute. If no data is returned, set an empty list.';
55590
+ _.doOnce(function () { return console.warn(message_1, params); }, 'FullStore.noData');
54924
55591
  }
54925
55592
  this.createOrRecycleNodes(nodesToRecycle, params.rowData);
54926
55593
  if (nodesToRecycle) {
@@ -55295,6 +55962,7 @@ var FullStore = /** @class */ (function (_super) {
55295
55962
  });
55296
55963
  rowNode = this.allNodesMap[id];
55297
55964
  if (!rowNode) {
55965
+ console.error("AG Grid: could not find row id=" + id + ", data item was not found for this id");
55298
55966
  return null;
55299
55967
  }
55300
55968
  }
@@ -55302,6 +55970,7 @@ var FullStore = /** @class */ (function (_super) {
55302
55970
  // find rowNode using object references
55303
55971
  rowNode = this.allRowNodes.find(function (currentRowNode) { return currentRowNode.data === data; });
55304
55972
  if (!rowNode) {
55973
+ console.error("AG Grid: could not find data item as object was not found", data);
55305
55974
  return null;
55306
55975
  }
55307
55976
  }
@@ -55449,11 +56118,15 @@ var StoreFactory = /** @class */ (function () {
55449
56118
  return undefined;
55450
56119
  }
55451
56120
  if (ssrmParams.dynamicRowHeight) {
55452
- _.doOnce(function () { return (void 0); }, 'storeFactory.maxBlocksInCache.dynamicRowHeight');
56121
+ var message_1 = 'AG Grid: Server Side Row Model does not support Dynamic Row Height and Cache Purging. ' +
56122
+ 'Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.';
56123
+ _.doOnce(function () { return console.warn(message_1); }, 'storeFactory.maxBlocksInCache.dynamicRowHeight');
55453
56124
  return undefined;
55454
56125
  }
55455
56126
  if (this.columnModel.isAutoRowHeightActive()) {
55456
- _.doOnce(function () { return (void 0); }, 'storeFactory.maxBlocksInCache.autoRowHeightActive');
56127
+ var message_2 = 'AG Grid: Server Side Row Model does not support Auto Row Height and Cache Purging. ' +
56128
+ 'Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.';
56129
+ _.doOnce(function () { return console.warn(message_2); }, 'storeFactory.maxBlocksInCache.autoRowHeightActive');
55457
56130
  return undefined;
55458
56131
  }
55459
56132
  return maxBlocksInCache;
@@ -55681,6 +56354,7 @@ var Downloader = /** @class */ (function () {
55681
56354
  Downloader.download = function (fileName, content) {
55682
56355
  var win = document.defaultView || window;
55683
56356
  if (!win) {
56357
+ console.warn('AG Grid: There is no `window` associated with the current `document`');
55684
56358
  return;
55685
56359
  }
55686
56360
  var element = document.createElement('a');
@@ -55814,6 +56488,7 @@ var CsvSerializingSession = /** @class */ (function (_super) {
55814
56488
  stringValue = value.toString();
55815
56489
  }
55816
56490
  else {
56491
+ console.warn('AG Grid: unknown value type during csv conversion');
55817
56492
  stringValue = '';
55818
56493
  }
55819
56494
  // replace each " with "" (ie two sets of double quotes is how to do double quotes in csv)
@@ -55868,6 +56543,7 @@ var CsvCreator = /** @class */ (function (_super) {
55868
56543
  };
55869
56544
  CsvCreator.prototype.export = function (userParams) {
55870
56545
  if (this.isExportSuppressed()) {
56546
+ console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration.");
55871
56547
  return '';
55872
56548
  }
55873
56549
  var mergedParams = this.getMergedParams(userParams);
@@ -55987,7 +56663,7 @@ var GridSerializer = /** @class */ (function (_super) {
55987
56663
  var shouldSkipLowestGroup = skipLowestSingleChildrenGroup && node.leafGroup;
55988
56664
  var shouldSkipCurrentGroup = node.allChildrenCount === 1 && (skipSingleChildrenGroup || shouldSkipLowestGroup);
55989
56665
  if (skipRowGroups && params.skipGroups) {
55990
- _.doOnce(function () { return (void 0); }, 'gridSerializer-skipGroups');
56666
+ _.doOnce(function () { return console.warn('AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.'); }, 'gridSerializer-skipGroups');
55991
56667
  }
55992
56668
  if ((!isLeafNode && (params.skipRowGroups || shouldSkipCurrentGroup || hideOpenParents)) ||
55993
56669
  (params.onlySelected && !node.isSelected()) ||
@@ -56021,7 +56697,7 @@ var GridSerializer = /** @class */ (function (_super) {
56021
56697
  var appendContent = params.customFooter || params.appendContent;
56022
56698
  if (appendContent) {
56023
56699
  if (params.customFooter) {
56024
- _.doOnce(function () { return (void 0); }, 'gridSerializer-customFooter');
56700
+ _.doOnce(function () { return console.warn('AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.'); }, 'gridSerializer-customFooter');
56025
56701
  }
56026
56702
  gridSerializingSession.addCustomContent(appendContent);
56027
56703
  }
@@ -56033,7 +56709,7 @@ var GridSerializer = /** @class */ (function (_super) {
56033
56709
  var prependContent = params.customHeader || params.prependContent;
56034
56710
  if (prependContent) {
56035
56711
  if (params.customHeader) {
56036
- _.doOnce(function () { return (void 0); }, 'gridSerializer-customHeader');
56712
+ _.doOnce(function () { return console.warn('AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.'); }, 'gridSerializer-customHeader');
56037
56713
  }
56038
56714
  gridSerializingSession.addCustomContent(prependContent);
56039
56715
  }
@@ -56055,7 +56731,7 @@ var GridSerializer = /** @class */ (function (_super) {
56055
56731
  _this.recursivelyAddHeaderGroups(displayedGroups, gridSerializingSession, params.processGroupHeaderCallback);
56056
56732
  }
56057
56733
  else if (params.columnGroups) {
56058
- _.doOnce(function () { return (void 0); }, 'gridSerializer-columnGroups');
56734
+ _.doOnce(function () { return console.warn('AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.'); }, 'gridSerializer-columnGroups');
56059
56735
  }
56060
56736
  return gridSerializingSession;
56061
56737
  };
@@ -56069,7 +56745,7 @@ var GridSerializer = /** @class */ (function (_super) {
56069
56745
  });
56070
56746
  }
56071
56747
  else if (params.skipHeader) {
56072
- _.doOnce(function () { return (void 0); }, 'gridSerializer-skipHeader');
56748
+ _.doOnce(function () { return console.warn('AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.'); }, 'gridSerializer-skipHeader');
56073
56749
  }
56074
56750
  return gridSerializingSession;
56075
56751
  };
@@ -56317,6 +56993,12 @@ var ClipboardService = /** @class */ (function (_super) {
56317
56993
  .then(this.processClipboardData.bind(this))
56318
56994
  .catch(function (e) {
56319
56995
  _.doOnce(function () {
56996
+ console.warn(e);
56997
+ console.warn('AG Grid: Unable to use the Clipboard API (navigator.clipboard.readText()). ' +
56998
+ 'The reason why it could not be used has been logged in the previous line. ' +
56999
+ 'For this reason the grid has defaulted to using a workaround which doesn\'t perform as well. ' +
57000
+ 'Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid ' +
57001
+ 'property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API');
56320
57002
  }, 'clipboardApiError');
56321
57003
  _this.navigatorApiFailed = true;
56322
57004
  _this.pasteFromClipboardLegacy();
@@ -56843,6 +57525,12 @@ var ClipboardService = /** @class */ (function (_super) {
56843
57525
  if (allowNavigator && navigator.clipboard) {
56844
57526
  navigator.clipboard.writeText(data).catch(function (e) {
56845
57527
  _.doOnce(function () {
57528
+ console.warn(e);
57529
+ console.warn('AG Grid: Unable to use the Clipboard API (navigator.clipboard.writeText()). ' +
57530
+ 'The reason why it could not be used has been logged in the previous line. ' +
57531
+ 'For this reason the grid has defaulted to using a workaround which doesn\'t perform as well. ' +
57532
+ 'Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid ' +
57533
+ 'property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.');
56846
57534
  }, 'clipboardApiError');
56847
57535
  _this.copyDataToClipboardLegacy(data);
56848
57536
  });
@@ -56859,7 +57547,12 @@ var ClipboardService = /** @class */ (function (_super) {
56859
57547
  element.value = data || ' '; // has to be non-empty value or execCommand will not do anything
56860
57548
  element.select();
56861
57549
  element.focus({ preventScroll: true });
56862
- eDocument.execCommand('copy');
57550
+ var result = eDocument.execCommand('copy');
57551
+ if (!result) {
57552
+ console.warn('AG Grid: Browser did not allow document.execCommand(\'copy\'). Ensure ' +
57553
+ 'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise ' +
57554
+ 'the browser will prevent it for security reasons.');
57555
+ }
56863
57556
  if (focusedElementBefore != null && focusedElementBefore.focus != null) {
56864
57557
  focusedElementBefore.focus({ preventScroll: true });
56865
57558
  }
@@ -56883,6 +57576,7 @@ var ClipboardService = /** @class */ (function (_super) {
56883
57576
  callbackNow(eTempInput);
56884
57577
  }
56885
57578
  catch (err) {
57579
+ console.warn('AG Grid: Browser does not support document.execCommand(\'copy\') for clipboard operations');
56886
57580
  }
56887
57581
  //It needs 100 otherwise OS X seemed to not always be able to paste... Go figure...
56888
57582
  if (callbackAfter) {
@@ -58155,6 +58849,7 @@ var ToolPanelColumnComp = /** @class */ (function (_super) {
58155
58849
  return false;
58156
58850
  };
58157
58851
  ToolPanelColumnComp.prototype.setExpanded = function (value) {
58852
+ console.warn('AG Grid: can not expand a column item that does not represent a column group header');
58158
58853
  };
58159
58854
  ToolPanelColumnComp.TEMPLATE = "<div class=\"ag-column-select-column\" aria-hidden=\"true\">\n <ag-checkbox ref=\"cbSelect\" class=\"ag-column-select-checkbox\"></ag-checkbox>\n <span class=\"ag-column-select-column-label\" ref=\"eLabel\"></span>\n </div>";
58160
58855
  __decorate$q([
@@ -58449,7 +59144,10 @@ var PRIMARY_COLS_LIST_PANEL_CLASS = 'ag-column-select-list';
58449
59144
  expandedGroupIds.push(groupId);
58450
59145
  }
58451
59146
  });
58452
- groupIds.filter(function (groupId) { return !_.includes(expandedGroupIds, groupId); });
59147
+ var unrecognisedGroupIds = groupIds.filter(function (groupId) { return !_.includes(expandedGroupIds, groupId); });
59148
+ if (unrecognisedGroupIds.length > 0) {
59149
+ console.warn('AG Grid: unable to find group(s) for supplied groupIds:', unrecognisedGroupIds);
59150
+ }
58453
59151
  };
58454
59152
  PrimaryColsListPanel.prototype.getExpandState = function () {
58455
59153
  var expandedCount = 0;
@@ -58843,6 +59541,7 @@ var __decorate$n = (undefined && undefined.__decorate) || function (decorators,
58843
59541
  this.aggFuncService.getAggFunc(aggFuncOrString) :
58844
59542
  aggFuncOrString;
58845
59543
  if (typeof aggFunc !== 'function') {
59544
+ console.error("AG Grid: unrecognised aggregation function " + aggFuncOrString);
58846
59545
  return null;
58847
59546
  }
58848
59547
  var aggFuncAny = aggFunc;
@@ -59369,6 +60068,9 @@ var __spread$2 = (undefined && undefined.__spread) || function () {
59369
60068
  GroupStage.prototype.insertOneNode = function (childNode, details, isMove) {
59370
60069
  var path = this.getGroupInfo(childNode, details);
59371
60070
  var parentGroup = this.findParentForNode(childNode, path, details);
60071
+ if (!parentGroup.group) {
60072
+ console.warn("AG Grid: duplicate group keys for row data, keys should be unique", [parentGroup.data, childNode.data]);
60073
+ }
59372
60074
  if (this.usingTreeData) {
59373
60075
  this.swapGroupWithUserNode(parentGroup, childNode, isMove);
59374
60076
  }
@@ -59506,7 +60208,7 @@ var __spread$2 = (undefined && undefined.__spread) || function () {
59506
60208
  GroupStage.prototype.getGroupInfoFromCallback = function (rowNode) {
59507
60209
  var keys = this.getDataPath ? this.getDataPath(rowNode.data) : null;
59508
60210
  if (keys === null || keys === undefined || keys.length === 0) {
59509
- _.doOnce(function () { return (void 0); }, 'groupStage.getGroupInfoFromCallback');
60211
+ _.doOnce(function () { return console.warn("AG Grid: getDataPath() should not return an empty path for data", rowNode.data); }, 'groupStage.getGroupInfoFromCallback');
59510
60212
  }
59511
60213
  var groupInfoMapper = function (key) { return ({ key: key, field: null, rowGroupColumn: null }); };
59512
60214
  return keys ? keys.map(groupInfoMapper) : [];
@@ -62231,6 +62933,7 @@ var ToolPanelWrapper = /** @class */ (function (_super) {
62231
62933
  var compDetails = this.userComponentFactory.getToolPanelCompDetails(toolPanelDef, params);
62232
62934
  var componentPromise = compDetails.newAgStackInstance();
62233
62935
  if (componentPromise == null) {
62936
+ console.warn("AG Grid: error processing tool panel component " + id + ". You need to specify either 'toolPanel' or 'toolPanelFramework'");
62234
62937
  return;
62235
62938
  }
62236
62939
  componentPromise.then(this.setToolPanelComponent.bind(this));
@@ -62425,6 +63128,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
62425
63128
  var _this = this;
62426
63129
  defs.forEach(function (def) {
62427
63130
  if (def.id == null) {
63131
+ console.warn("AG Grid: please review all your toolPanel components, it seems like at least one of them doesn't have an id");
62428
63132
  return;
62429
63133
  }
62430
63134
  // helpers, in case user doesn't have the right module loaded
@@ -62470,6 +63174,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
62470
63174
  SideBarComp.prototype.getToolPanelInstance = function (key) {
62471
63175
  var toolPanelWrapper = this.toolPanelWrappers.filter(function (toolPanel) { return toolPanel.getToolPanelId() === key; })[0];
62472
63176
  if (!toolPanelWrapper) {
63177
+ console.warn("AG Grid: unable to lookup Tool Panel as invalid key supplied: " + key);
62473
63178
  return;
62474
63179
  }
62475
63180
  return toolPanelWrapper.getToolPanelInstance();
@@ -62555,6 +63260,7 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
62555
63260
  }
62556
63261
  ToolPanelColDefService.prototype.createColumnTree = function (colDefs) {
62557
63262
  var _this = this;
63263
+ var invalidColIds = [];
62558
63264
  var createDummyColGroup = function (abstractColDef, depth) {
62559
63265
  if (_this.isColGroupDef(abstractColDef)) {
62560
63266
  // creating 'dummy' group which is not associated with grid column group
@@ -62576,6 +63282,9 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
62576
63282
  var colDef = abstractColDef;
62577
63283
  var key = colDef.colId ? colDef.colId : colDef.field;
62578
63284
  var column = _this.columnModel.getPrimaryColumn(key);
63285
+ if (!column) {
63286
+ invalidColIds.push(colDef);
63287
+ }
62579
63288
  return column;
62580
63289
  }
62581
63290
  };
@@ -62587,6 +63296,9 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
62587
63296
  mappedResults.push(result);
62588
63297
  }
62589
63298
  });
63299
+ if (invalidColIds.length > 0) {
63300
+ console.warn('AG Grid: unable to find grid columns for the supplied colDef(s):', invalidColIds);
63301
+ }
62590
63302
  return mappedResults;
62591
63303
  };
62592
63304
  ToolPanelColDefService.prototype.syncLayoutWithGrid = function (syncLayoutCallback) {
@@ -63141,10 +63853,15 @@ var EnterpriseMenu = /** @class */ (function (_super) {
63141
63853
  };
63142
63854
  EnterpriseMenu.prototype.isValidMenuTabItem = function (menuTabName) {
63143
63855
  var isValid = true;
63856
+ var itemsToConsider = EnterpriseMenu.TABS_DEFAULT;
63144
63857
  if (this.restrictTo != null) {
63145
63858
  isValid = this.restrictTo.indexOf(menuTabName) > -1;
63859
+ itemsToConsider = this.restrictTo;
63146
63860
  }
63147
63861
  isValid = isValid && EnterpriseMenu.TABS_DEFAULT.indexOf(menuTabName) > -1;
63862
+ if (!isValid) {
63863
+ console.warn("AG Grid: Trying to render an invalid menu item '" + menuTabName + "'. Check that your 'menuTabs' contains one of [" + itemsToConsider + "]");
63864
+ }
63148
63865
  return isValid;
63149
63866
  };
63150
63867
  EnterpriseMenu.prototype.isNotSuppressed = function (menuTabName) {
@@ -63855,6 +64572,7 @@ var MenuItemMapper = /** @class */ (function (_super) {
63855
64572
  return chartMenuItem;
63856
64573
  }
63857
64574
  else {
64575
+ console.warn("AG Grid: unknown menu item type " + key);
63858
64576
  return null;
63859
64577
  }
63860
64578
  }
@@ -64098,7 +64816,8 @@ class AgGridController {
64098
64816
  }
64099
64817
  showFilterColumn(configs) {
64100
64818
  var _a;
64101
- (_a = this._filterColumn) === null || _a === void 0 ? void 0 : _a.show(configs);
64819
+ const presentationMetadata = this.resolveDescriptionColMetadata(configs.columnName);
64820
+ (_a = this._filterColumn) === null || _a === void 0 ? void 0 : _a.show(Object.assign(Object.assign({}, configs), { fieldDescriptor: presentationMetadata }));
64102
64821
  }
64103
64822
  constructor(_enterprise) {
64104
64823
  this.DEFAULT_ROW_HEIGHT = 30;
@@ -64119,6 +64838,7 @@ class AgGridController {
64119
64838
  this._customFormatters = new Map();
64120
64839
  this._gridShowDom = false;
64121
64840
  this.peddingExecutionsOnGridShow = [];
64841
+ this._lastColsConfig = undefined;
64122
64842
  ModuleRegistry.registerModules([
64123
64843
  EnterpriseCoreModule,
64124
64844
  RangeSelectionModule,
@@ -64130,8 +64850,25 @@ class AgGridController {
64130
64850
  getGridConfig() {
64131
64851
  return this._gridConfig;
64132
64852
  }
64133
- locateColumn(columnName) {
64853
+ locateColumn(columnName, gridElement) {
64134
64854
  this._gridOptions.api.ensureColumnVisible(columnName);
64855
+ requestAnimationFrame(() => {
64856
+ this.highlightColumnHeader(columnName, gridElement);
64857
+ });
64858
+ }
64859
+ highlightColumnHeader(columnName, gridElement) {
64860
+ const headerElement = gridElement.querySelector(`.ag-header-cell[col-id="${columnName}"]`);
64861
+ if (!headerElement)
64862
+ return;
64863
+ headerElement.classList.add("ez-grid__column-highlight-header");
64864
+ headerElement.setAttribute("tabindex", "0");
64865
+ const removeHighlight = (event) => {
64866
+ if (!headerElement.contains(event.target)) {
64867
+ headerElement.classList.remove("ez-grid__column-highlight-header");
64868
+ document.removeEventListener("click", removeHighlight);
64869
+ }
64870
+ };
64871
+ document.addEventListener("click", removeHighlight);
64135
64872
  }
64136
64873
  getSort(_dataUnitName, defaultSorting) {
64137
64874
  const sortedColumns = [];
@@ -64153,10 +64890,15 @@ class AgGridController {
64153
64890
  return;
64154
64891
  }
64155
64892
  return Array.from(this._filteredColumns.entries())
64156
- .map(([column, items]) => {
64893
+ .map(([col, items]) => {
64157
64894
  var _a;
64158
64895
  const checkedOptions = items.filter(option => option.check);
64159
64896
  if (checkedOptions.length > 0) {
64897
+ let column = col;
64898
+ const presentationFrom = this.getCodeColFromDescriptionCol(col);
64899
+ if (!StringUtils$1.isEmpty(presentationFrom)) {
64900
+ column = presentationFrom;
64901
+ }
64160
64902
  const fieldDescriptor = this._dataUnit.getField(column);
64161
64903
  const dataType = (_a = fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.dataType) !== null && _a !== void 0 ? _a : DataType.TEXT;
64162
64904
  let placeholders = '';
@@ -64223,6 +64965,7 @@ class AgGridController {
64223
64965
  this._dataUnit.addFilterProvider(this);
64224
64966
  }
64225
64967
  this._gridOptions = {
64968
+ suppressHorizontalScroll: options.suppressHorizontalScroll,
64226
64969
  localeText: gridTerms,
64227
64970
  enableRangeSelection: this._multipleSelection,
64228
64971
  rowSelection: this._multipleSelection ? 'multiple' : 'single',
@@ -64350,6 +65093,23 @@ class AgGridController {
64350
65093
  action: () => this.showFilterColumn({ columnName, columnLabel, leftPosition: this._filterColumnleftPosition, filteredOptions: this._filteredColumns.get(columnName) }),
64351
65094
  };
64352
65095
  }
65096
+ resolveDescriptionColMetadata(columnName) {
65097
+ var _a;
65098
+ const colDef = (_a = this._gridOptions.columnApi.getColumn(columnName)) === null || _a === void 0 ? void 0 : _a.getColDef();
65099
+ const presentationFrom = this.getCodeColFromDescriptionCol(columnName);
65100
+ if (!StringUtils$1.isEmpty(presentationFrom)) {
65101
+ return {
65102
+ label: colDef.headerName,
65103
+ name: columnName,
65104
+ userInterface: UserInterface.SHORTTEXT,
65105
+ dataType: DataType.TEXT,
65106
+ properties: {
65107
+ [PRESENTATION_FROM_COL_PROP_NAME]: presentationFrom
65108
+ }
65109
+ };
65110
+ }
65111
+ return undefined;
65112
+ }
64353
65113
  buildMenuItemOptionPin(params) {
64354
65114
  const { column, columnApi } = params;
64355
65115
  const isPinned = params.column.isPinned();
@@ -64676,7 +65436,7 @@ class AgGridController {
64676
65436
  }
64677
65437
  syncSelectWithDataUnit() {
64678
65438
  const rowNode = this._gridOptions.api.getRowNode(this._dataUnit.getSelectedRecord().__record__id__);
64679
- if ((rowNode === null || rowNode === void 0 ? void 0 : rowNode.rowIndex) < 0)
65439
+ if (!rowNode || (rowNode === null || rowNode === void 0 ? void 0 : rowNode.rowIndex) < 0)
64680
65440
  return;
64681
65441
  const rowRange = this._gridOptions.api.getCellRanges().find(row => row.startRow.rowIndex === rowNode.rowIndex);
64682
65442
  if ((rowRange === null || rowRange === void 0 ? void 0 : rowRange.columns.length) > 0) {
@@ -64713,7 +65473,9 @@ class AgGridController {
64713
65473
  }
64714
65474
  }
64715
65475
  isColumnEditable(rowIndex, column) {
64716
- if (column.getColDef().headerName === '' || rowIndex === -1)
65476
+ if (column.getColDef().headerName === ''
65477
+ || column.getColDef().headerName === this.CHECK_BOX_COL_ID
65478
+ || rowIndex === -1)
64717
65479
  return false;
64718
65480
  const rowId = this._dataUnit.records[rowIndex][this._idAttribName];
64719
65481
  const rowNode = this._gridOptions.api.getRowNode(rowId);
@@ -64731,7 +65493,7 @@ class AgGridController {
64731
65493
  this._gridOptions.api.setFocusedCell(rowIndex, firstCell);
64732
65494
  }
64733
65495
  setColumnsDef(cols) {
64734
- const checkBoxColumn = Object.assign({ colId: this.CHECK_BOX_COL_ID, headerName: '', checkboxSelection: true, width: 29, suppressMovable: true, suppressAutoSize: true, suppressMenu: true, lockPosition: true, pinned: true }, (this._multipleSelection && { headerComponent: 'ezGridHeaderComponent', headerClass: 'ag-column-select-header' }));
65496
+ const checkBoxColumn = Object.assign({ colId: this.CHECK_BOX_COL_ID, headerName: this.CHECK_BOX_COL_ID, checkboxSelection: true, width: 29, suppressMovable: true, suppressAutoSize: true, suppressMenu: true, lockPosition: true, pinned: true }, (this._multipleSelection && { headerComponent: 'ezGridHeaderComponent', headerClass: 'ag-column-select-header' }));
64735
65497
  const newColDefs = this._options.suppressCheckBoxCol ? [] : [checkBoxColumn];
64736
65498
  if (this._statusResolver != undefined) {
64737
65499
  newColDefs.push({
@@ -64759,8 +65521,39 @@ class AgGridController {
64759
65521
  });
64760
65522
  this._colDefs = newColDefs;
64761
65523
  if (this._gridOptions && this._gridOptions.api) {
65524
+ this.setColsDefsWithStateIfNeeded(this._colDefs);
65525
+ }
65526
+ }
65527
+ setColsDefsWithStateIfNeeded(colDefs) {
65528
+ if (!this._lastColsConfig) {
64762
65529
  this._gridOptions.api.setColumnDefs(this._colDefs);
64763
65530
  }
65531
+ /*
65532
+ Caso a definição de colunas esteja sendo atualizada,
65533
+ e existe uma config aplicada, temos que considerar essa
65534
+ config ao adicionar nova definição de colunas.
65535
+ PS: Poderia apenas chamar o setColumnsState, porém,
65536
+ isso impactaria em performance, e o usuário ia perceber
65537
+ a mudança das colunas visualmente na grade, o que traria
65538
+ uma experiencia ruim.
65539
+ */
65540
+ const colDefsWithConfigs = this.getColsDefWithConfigApplied(colDefs, this._lastColsConfig);
65541
+ this._gridOptions.api.setColumnDefs(colDefsWithConfigs);
65542
+ }
65543
+ getColsDefWithConfigApplied(colDefs, colsConfig) {
65544
+ //Cria map de colunas existentes na config e seu índice
65545
+ const orderMap = colsConfig.reduce((map, col, index) => {
65546
+ map[col.name] = index;
65547
+ return map;
65548
+ }, {});
65549
+ //Remove colunas que não existem na config
65550
+ const filteredColsDefs = colDefs.filter((col) => !orderMap.hasOwnProperty(col.colId));
65551
+ //Ordena colunas baseada na config aplicada
65552
+ const sortedColumnDefs = filteredColsDefs.sort((a, b) => {
65553
+ var _a, _b;
65554
+ return ((_a = orderMap[a.field]) !== null && _a !== void 0 ? _a : Number.MAX_VALUE) - ((_b = orderMap[b.field]) !== null && _b !== void 0 ? _b : Number.MAX_VALUE);
65555
+ });
65556
+ return sortedColumnDefs;
64764
65557
  }
64765
65558
  clearRangeSelection() {
64766
65559
  this._gridOptions.api.clearRangeSelection();
@@ -64797,6 +65590,7 @@ class AgGridController {
64797
65590
  if (this._grid === undefined) {
64798
65591
  throw new Error('Erro interno: Grid ainda não inicializado.');
64799
65592
  }
65593
+ this._lastColsConfig = state;
64800
65594
  const colDef = this._gridOptions.columnApi.getColumns();
64801
65595
  let columns = this.getColumnsDef();
64802
65596
  let visibleColumns = [];
@@ -64805,14 +65599,39 @@ class AgGridController {
64805
65599
  const columnsOffset = colDef.length - columns.length;
64806
65600
  this._gridConfig = state;
64807
65601
  let sort = [];
64808
- state.forEach((cfgColumn, index) => {
65602
+ let currentIndex = 0;
65603
+ state.forEach((cfgColumn) => {
65604
+ var _a, _b;
64809
65605
  const colWidth = this.getColumnWidth(cfgColumn);
64810
- this._gridOptions.columnApi.moveColumn(cfgColumn.name, index + columnsOffset);
65606
+ this._gridOptions.columnApi.moveColumn(cfgColumn.name, currentIndex + columnsOffset);
64811
65607
  this._gridOptions.columnApi.setColumnWidth(cfgColumn.name, colWidth);
64812
65608
  visibleColumns.push(cfgColumn.name);
64813
65609
  if (cfgColumn.ascending !== undefined) {
64814
65610
  sort.push({ colId: cfgColumn.name, sort: cfgColumn.ascending !== true ? 'desc' : 'asc', sortIndex: cfgColumn.orderIndex });
64815
65611
  }
65612
+ currentIndex++;
65613
+ const fieldMD = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(cfgColumn.name);
65614
+ /*
65615
+ Migração para o SEARCHPLUS, caso de uso:
65616
+ - Agora existe uma coluna para o campo de descrição do relaciona
65617
+ - Essa col, não existe na config da grade que já foi salva pelo DS
65618
+ - Nesse caso, precisamos inserir a coluna de descrição automaticamente para que
65619
+ os usuários não percam a apresentação do campo de descrição.
65620
+ PS: Caso esteja herdando do HTML5, devemos manter a config como está la
65621
+ */
65622
+ if (this.needToAddDescriptionColumn(cfgColumn, fieldMD, state)) {
65623
+ const descriptionColID = (_b = fieldMD === null || fieldMD === void 0 ? void 0 : fieldMD.properties) === null || _b === void 0 ? void 0 : _b[PRESENTATION_COL_ID_PROP_NAME];
65624
+ if (!descriptionColID)
65625
+ return;
65626
+ const descriptionCol = this._gridOptions.columnApi.getColumn(descriptionColID);
65627
+ const descriptionColDef = descriptionCol === null || descriptionCol === void 0 ? void 0 : descriptionCol.getColDef();
65628
+ const descriptionHeaderName = descriptionColDef === null || descriptionColDef === void 0 ? void 0 : descriptionColDef.headerName;
65629
+ const descriptionColSize = this.getColumnWidthByLabel(descriptionHeaderName);
65630
+ this._gridOptions.columnApi.moveColumn(descriptionColID, currentIndex + columnsOffset);
65631
+ this._gridOptions.columnApi.setColumnWidth(descriptionColID, descriptionColSize);
65632
+ visibleColumns.push(descriptionColID);
65633
+ currentIndex++;
65634
+ }
64816
65635
  });
64817
65636
  let invisibleColumns = columns.filter(column => !visibleColumns.includes(column.name)).map(column => column.name);
64818
65637
  this._gridOptions.columnApi.setColumnsVisible(visibleColumns, true);
@@ -64822,6 +65641,16 @@ class AgGridController {
64822
65641
  defaultState: { sort: null },
64823
65642
  });
64824
65643
  }
65644
+ needToAddDescriptionColumn(cfgColumn, fieldMD, stateConfig) {
65645
+ var _a, _b;
65646
+ if (!fieldMD) {
65647
+ return false;
65648
+ }
65649
+ const configVersion = ((_a = cfgColumn.configVersion) !== null && _a !== void 0 ? _a : 0);
65650
+ const isSearchPlus = (fieldMD === null || fieldMD === void 0 ? void 0 : fieldMD.userInterface) == UserInterface.SEARCHPLUS;
65651
+ const descriptionColID = (_b = fieldMD === null || fieldMD === void 0 ? void 0 : fieldMD.properties) === null || _b === void 0 ? void 0 : _b[PRESENTATION_COL_ID_PROP_NAME];
65652
+ return isSearchPlus && configVersion < 1 && stateConfig.find(col => col.name === descriptionColID) != undefined;
65653
+ }
64825
65654
  getColumnsState() {
64826
65655
  if (this._grid === undefined) {
64827
65656
  throw new Error('Erro interno: Grid ainda não inicializado.');
@@ -64881,7 +65710,7 @@ class AgGridController {
64881
65710
  return filterOptions.map(item => item.check).includes(true);
64882
65711
  }
64883
65712
  buildColDef(source) {
64884
- var _a, _b, _c;
65713
+ var _a, _b, _c, _d, _e;
64885
65714
  let tooltip = undefined;
64886
65715
  const propSortable = StringUtils$1.getBooleanValue((_a = source.props) === null || _a === void 0 ? void 0 : _a.get('gridSortable'), true);
64887
65716
  if ((_b = source.props) === null || _b === void 0 ? void 0 : _b.get('gridHeaderTooltip')) {
@@ -64890,6 +65719,7 @@ class AgGridController {
64890
65719
  else if (propSortable === false) {
64891
65720
  tooltip = 'Coluna não pode ser ordenada';
64892
65721
  }
65722
+ const presentationFrom = (_d = source === null || source === void 0 ? void 0 : source.props) === null || _d === void 0 ? void 0 : _d.get(PRESENTATION_FROM_COL_PROP_NAME);
64893
65723
  return this._editionManager.configureColumn({
64894
65724
  headerName: source.label,
64895
65725
  field: source.name,
@@ -64897,12 +65727,17 @@ class AgGridController {
64897
65727
  resizable: true,
64898
65728
  headerComponent: 'ezGridCustomHeader',
64899
65729
  headerComponentParams: {
65730
+ presentationFrom,
64900
65731
  tooltip: tooltip,
64901
65732
  isSortable: propSortable,
64902
65733
  hasFilter: () => this.hasFilterColumn(source.name),
64903
65734
  showColumnFilter: (leftPosition) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name), fromIcon: true }),
64904
65735
  },
64905
65736
  valueFormatter: params => {
65737
+ var _a, _b, _c;
65738
+ if (presentationFrom) {
65739
+ return (_c = (_b = (_a = params === null || params === void 0 ? void 0 : params.data) === null || _a === void 0 ? void 0 : _a[presentationFrom]) === null || _b === void 0 ? void 0 : _b.label) !== null && _c !== void 0 ? _c : "";
65740
+ }
64906
65741
  if (params.value === undefined || params.value === null) {
64907
65742
  return "";
64908
65743
  }
@@ -64922,6 +65757,7 @@ class AgGridController {
64922
65757
  return this.getFormatterByColumn(params, source);
64923
65758
  },
64924
65759
  cellStyle: this.getStyleByColumn(source),
65760
+ editable: !((_e = source.props) === null || _e === void 0 ? void 0 : _e.has(PRESENTATION_FROM_COL_PROP_NAME))
64925
65761
  });
64926
65762
  }
64927
65763
  setCustomFormatters(customFormatters) {
@@ -64937,8 +65773,11 @@ class AgGridController {
64937
65773
  };
64938
65774
  }
64939
65775
  getStyleByColumn(source) {
65776
+ var _a;
64940
65777
  let cellStyle = this.getInitCellStyle();
64941
- switch (source === null || source === void 0 ? void 0 : source.userInterface) {
65778
+ const primitiveUIType = (_a = source === null || source === void 0 ? void 0 : source.props) === null || _a === void 0 ? void 0 : _a.get("PRIMITIVETUIYPE");
65779
+ const uitype = source === null || source === void 0 ? void 0 : source.userInterface;
65780
+ switch (primitiveUIType !== null && primitiveUIType !== void 0 ? primitiveUIType : uitype) {
64942
65781
  case UserInterface.DECIMALNUMBER:
64943
65782
  case UserInterface.INTEGERNUMBER:
64944
65783
  cellStyle['text-align'] = 'right';
@@ -64954,7 +65793,7 @@ class AgGridController {
64954
65793
  return cellStyle;
64955
65794
  }
64956
65795
  getFormatterByColumn(params, source) {
64957
- var _a;
65796
+ var _a, _b, _c, _d;
64958
65797
  if ((source === null || source === void 0 ? void 0 : source.userInterface) === 'OPTIONSELECTOR' && source.options) {
64959
65798
  const prop = source === null || source === void 0 ? void 0 : source.options;
64960
65799
  let options;
@@ -64991,6 +65830,9 @@ class AgGridController {
64991
65830
  return params === null || params === void 0 ? void 0 : params.value;
64992
65831
  }
64993
65832
  }
65833
+ if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.SEARCHPLUS) {
65834
+ return (_d = (_c = (_b = params === null || params === void 0 ? void 0 : params.value) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : params === null || params === void 0 ? void 0 : params.value) !== null && _d !== void 0 ? _d : "";
65835
+ }
64994
65836
  if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.DECIMALNUMBER) {
64995
65837
  if (params.value != undefined) {
64996
65838
  const precision = Number(source.props.get('precision')) || 2;
@@ -65164,7 +66006,7 @@ class AgGridController {
65164
66006
  this._gridOptions.api.stopEditing();
65165
66007
  }
65166
66008
  getColumnWidth(cfgColumn) {
65167
- var _a, _b;
66009
+ var _a, _b, _c, _d, _e, _f;
65168
66010
  if (cfgColumn == undefined) {
65169
66011
  return;
65170
66012
  }
@@ -65178,12 +66020,22 @@ class AgGridController {
65178
66020
  return parseWidth + this.DEFAULT_FONT_SIZE_HTML5;
65179
66021
  }
65180
66022
  const field = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(cfgColumn.name);
66023
+ const label = (_b = field === null || field === void 0 ? void 0 : field.label) !== null && _b !== void 0 ? _b : (_f = (_e = (_d = (_c = this._gridOptions) === null || _c === void 0 ? void 0 : _c.columnApi) === null || _d === void 0 ? void 0 : _d.getColumn(cfgColumn.name)) === null || _e === void 0 ? void 0 : _e.getColDef()) === null || _f === void 0 ? void 0 : _f.headerName;
65181
66024
  if ((field === null || field === void 0 ? void 0 : field.userInterface) === UserInterface.SEARCH) {
65182
66025
  return this.DEFAULT_MAX_SIZE;
65183
66026
  }
65184
- const labelSize = (((_b = field === null || field === void 0 ? void 0 : field.label) === null || _b === void 0 ? void 0 : _b.length) || 0) * this.DEFAULT_FONT_SIZE + this.DEFAULT_ICON_SIZE;
66027
+ return this.getColumnWidthByLabel(label);
66028
+ }
66029
+ getColumnWidthByLabel(label) {
66030
+ const labelSize = ((label === null || label === void 0 ? void 0 : label.length) || 0) * this.DEFAULT_FONT_SIZE + this.DEFAULT_ICON_SIZE;
65185
66031
  return labelSize > this.DEFAULT_MAX_SIZE ? this.DEFAULT_MAX_SIZE : labelSize;
65186
66032
  }
66033
+ getCodeColFromDescriptionCol(descriptionColName) {
66034
+ var _a;
66035
+ const colGrid = this._gridOptions.columnApi.getColumn(descriptionColName);
66036
+ const colDef = colGrid === null || colGrid === void 0 ? void 0 : colGrid.getColDef();
66037
+ return (_a = colDef === null || colDef === void 0 ? void 0 : colDef.headerComponentParams) === null || _a === void 0 ? void 0 : _a.presentationFrom;
66038
+ }
65187
66039
  }
65188
66040
 
65189
66041
  function enableSelectAll(total) {
@@ -65360,7 +66212,7 @@ class InMemoryFilterColumnDataSource {
65360
66212
  }
65361
66213
  }
65362
66214
 
65363
- const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--ez-grid__header--background-color:var(--background--xlight, #FFF);--ez-grid__selection-counter--z-index:var(--visible, 1);--ez-grid__container--shadow:var(--shadow);--ez-grid--min-height:300px;--ez-grid__container--shadow--outline:var(--shadow--outline) var(--color--strokes);--ez-grid__header--shadow:var(--shadow--xsmall);--ez-grid__header--shadow--outline:var(--shadow--outline) var(--color--strokes);--ez-grid__header--outline:none;--ez-grid__header--border:none;min-height:var(--ez-grid--min-height)}.grid-header.sc-ez-grid{display:grid;justify-content:space-between;align-items:center;grid-row-start:1;grid-template-columns:1fr;background-color:var(--ez-grid__header--background-color, #FFF)}.grid-header.shadow-mode.sc-ez-grid{box-shadow:var(--ez-grid__header--shadow);border:var(--ez-grid__header--border);outline:var(--ez-grid__header--outline)}.grid-header.outline-mode.sc-ez-grid{box-shadow:var(--ez-grid__header--shadow--outline);border:var(--ez-grid__header--border);outline:var(--ez-grid__header--outline)}.header-overlay.sc-ez-grid{padding-top:15px;margin-top:-12px}.grid__container.sc-ez-grid{outline:none;box-shadow:var(--ez-grid__container--shadow);background-color:var(--ez-grid__header--background-color);border:var(--border--small) var(--color--strokes);border-radius:var(--border--radius-small)}.sc-ez-grid-h:not([no-header]) .grid__container.sc-ez-grid{border:none}.grid__container.outline-mode.sc-ez-grid{box-shadow:var(--ez-grid__container--shadow--outline);border:none;outline:none}.grid-header__popover.sc-ez-grid{position:relative;top:var(--space--sm, 16px)}.grid-header__container.sc-ez-grid{display:flex;align-items:center;flex-grow:1;flex-shrink:1}.grid-header__position.sc-ez-grid{display:flex;align-items:center;justify-content:space-between}.grid__selection-counter.sc-ez-grid{position:fixed;white-space:nowrap;transform:translate(-50%, 0px);left:50%;opacity:0;bottom:-100%;transition:opacity 0.1s, bottom 0.5s}.grid__selection-counter--opened.sc-ez-grid{opacity:1;bottom:0px}.grid__btn-close.sc-ez-grid{display:flex;align-items:center;justify-content:center;padding:0;outline:none;width:20px;height:20px;border:none;background-color:unset;cursor:pointer}.grid__btn-clear.sc-ez-grid{--ez-button--link-color:var(--color--alert-warning-900, #8C6B00);--ez-button--link--hover-color:var(--color--alert-warning-900, #8C6B00)}[no-header].sc-ez-grid-h .grid-header.sc-ez-grid{height:0;padding:0}.grid-header__pagination.sc-ez-grid{justify-content:flex-end;flex-wrap:nowrap;flex-shrink:1;flex-grow:1}.grid-header__pagination-label.sc-ez-grid{width:100%;white-space:nowrap}.overflowed.sc-ez-grid{display:none}.pagination-contracted.sc-ez-grid{width:100px}.pagination-expanded.sc-ez-grid{min-width:150px}.left__header-contracted.sc-ez-grid{width:auto}.left__header-expanded.sc-ez-grid{flex-grow:1}.grid__footer.sc-ez-grid{background-color:var(--background--xlight, #FFF);border-radius:0 0 var(--border--radius-medium) var(--border--radius-medium);box-shadow:var(--shadow--small)}.cancel-pagination.sc-ez-grid{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:4px;padding:8px;width:180px}.cancel-pagination-btn.sc-ez-grid{color:var(--color--error);font-size:var(--text--medium);font-weight:var(--text-weight--large);font-family:var(--font-pattern, Roboto);text-wrap:nowrap;cursor:pointer}.spin.sc-ez-grid{animation-name:spin;animation-duration:5000ms;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}";
66215
+ const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--ez-grid__header--background-color:var(--background--xlight, #FFF);--ez-grid__selection-counter--z-index:var(--visible, 1);--ez-grid__container--shadow:var(--shadow);--ez-grid--min-height:300px;--ez-grid__container--shadow--outline:var(--shadow--outline) var(--color--strokes);--ez-grid__header--shadow:var(--shadow--xsmall);--ez-grid__header--shadow--outline:var(--shadow--outline) var(--color--strokes);--ez-grid__header--outline:none;--ez-grid__header--border:none;min-height:var(--ez-grid--min-height)}.grid-header.sc-ez-grid{display:grid;justify-content:space-between;align-items:center;grid-row-start:1;grid-template-columns:1fr;background-color:var(--ez-grid__header--background-color, #FFF)}.grid-header.shadow-mode.sc-ez-grid{box-shadow:var(--ez-grid__header--shadow);border:var(--ez-grid__header--border);outline:var(--ez-grid__header--outline)}.grid-header.outline-mode.sc-ez-grid{box-shadow:var(--ez-grid__header--shadow--outline);border:var(--ez-grid__header--border);outline:var(--ez-grid__header--outline)}.header-overlay.sc-ez-grid{padding-top:15px;margin-top:-12px}.grid__container.sc-ez-grid{outline:none;box-shadow:var(--ez-grid__container--shadow);background-color:var(--ez-grid__header--background-color);border:var(--border--small) var(--color--strokes);border-radius:var(--border--radius-small)}.grid__container.no-scroll.sc-ez-grid{width:100vw}.sc-ez-grid-h:not([no-header]) .grid__container.sc-ez-grid{border:none}.grid__container.outline-mode.sc-ez-grid{box-shadow:var(--ez-grid__container--shadow--outline);border:none;outline:none}.grid-header__popover.sc-ez-grid{position:relative;top:var(--space--sm, 16px)}.grid-header__container.sc-ez-grid{display:flex;align-items:center;flex-grow:1;flex-shrink:1}.grid-header__position.sc-ez-grid{display:flex;align-items:center;justify-content:space-between}.grid__selection-counter.sc-ez-grid{position:fixed;white-space:nowrap;transform:translate(-50%, 0px);left:50%;opacity:0;bottom:-100%;transition:opacity 0.1s, bottom 0.5s}.grid__selection-counter--opened.sc-ez-grid{opacity:1;bottom:0px}.grid__btn-close.sc-ez-grid{display:flex;align-items:center;justify-content:center;padding:0;outline:none;width:20px;height:20px;border:none;background-color:unset;cursor:pointer}.grid__btn-clear.sc-ez-grid{--ez-button--link-color:var(--color--alert-warning-900, #8C6B00);--ez-button--link--hover-color:var(--color--alert-warning-900, #8C6B00)}[no-header].sc-ez-grid-h .grid-header.sc-ez-grid{height:0;padding:0}.grid-header__pagination.sc-ez-grid{justify-content:flex-end;flex-wrap:nowrap;flex-shrink:1;flex-grow:1}.grid-header__pagination-label.sc-ez-grid{width:100%;white-space:nowrap}.overflowed.sc-ez-grid{display:none}.pagination-contracted.sc-ez-grid{width:100px}.pagination-expanded.sc-ez-grid{min-width:150px}.left__header-contracted.sc-ez-grid{width:auto}.left__header-expanded.sc-ez-grid{flex-grow:1}.grid__footer.sc-ez-grid{background-color:var(--background--xlight, #FFF);border-radius:0 0 var(--border--radius-medium) var(--border--radius-medium);box-shadow:var(--shadow--small)}.cancel-pagination.sc-ez-grid{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:4px;padding:8px;width:180px}.cancel-pagination-btn.sc-ez-grid{color:var(--color--error);font-size:var(--text--medium);font-weight:var(--text-weight--large);font-family:var(--font-pattern, Roboto);text-wrap:nowrap;cursor:pointer}.spin.sc-ez-grid{animation-name:spin;animation-duration:5000ms;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}";
65364
66216
 
65365
66217
  const windowInstace = window;
65366
66218
  const matches = (text, filter) => {
@@ -65408,6 +66260,9 @@ const EzGrid = class {
65408
66260
  this.outlineMode = false;
65409
66261
  this.enableRowTableStriped = true;
65410
66262
  this.compact = false;
66263
+ this.useSearchColumn = true;
66264
+ this.suppressHorizontalScroll = false;
66265
+ this.mode = "complete";
65411
66266
  }
65412
66267
  /**
65413
66268
  * Aplica a definição de colunas.
@@ -65461,7 +66316,7 @@ const EzGrid = class {
65461
66316
  * Localiza determinada coluna tornando-a visível.
65462
66317
  */
65463
66318
  async locateColumn(columnName) {
65464
- this._gridController.locateColumn(columnName);
66319
+ this._gridController.locateColumn(columnName, this._element);
65465
66320
  }
65466
66321
  /**
65467
66322
  * Usa um argumento para filtrar as colunas po label
@@ -65564,6 +66419,14 @@ const EzGrid = class {
65564
66419
  this._showPaginationDescription();
65565
66420
  }
65566
66421
  }
66422
+ async observeModeChange(newMode = this.mode) {
66423
+ if (newMode === "simple") {
66424
+ this.canEdit = false;
66425
+ this.multipleSelection = false;
66426
+ this.suppressCheckboxColumn = true;
66427
+ this.compact = true;
66428
+ }
66429
+ }
65567
66430
  onSelectionChange(evt) {
65568
66431
  this._currentPageSelected = evt.detail.selectionHeaderStatus === true;
65569
66432
  if (this.dataUnit) {
@@ -65816,6 +66679,7 @@ const EzGrid = class {
65816
66679
  enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick,
65817
66680
  enableLockManagerLoadingComp: this.enableLockManagerLoadingComp,
65818
66681
  enableRowTableStriped: this.enableRowTableStriped,
66682
+ suppressHorizontalScroll: this.suppressHorizontalScroll
65819
66683
  });
65820
66684
  if (this.config) {
65821
66685
  this.observeConfig(this.config);
@@ -65916,6 +66780,7 @@ const EzGrid = class {
65916
66780
  }
65917
66781
  connectedCallback() {
65918
66782
  var _a;
66783
+ this.observeModeChange();
65919
66784
  (_a = this._gridController) === null || _a === void 0 ? void 0 : _a.registryListeners();
65920
66785
  }
65921
66786
  componentWillRender() {
@@ -65948,6 +66813,9 @@ const EzGrid = class {
65948
66813
  return this.columnfilterDataSource;
65949
66814
  }
65950
66815
  hideHeader() {
66816
+ if (this.mode === "simple") {
66817
+ return true;
66818
+ }
65951
66819
  return !this._hasLeftButtons && !this._paginationInfo;
65952
66820
  }
65953
66821
  resolveLeftHeaderClass() {
@@ -65984,15 +66852,42 @@ const EzGrid = class {
65984
66852
  this.nextPage();
65985
66853
  }
65986
66854
  }, { description: "Avança para a próxima página.", element: this._element });
66855
+ if (this.useSearchColumn) {
66856
+ this._keyboardManager.bind(SHORTCUT_SEARCH_FIELD, async () => {
66857
+ if (!this._container || !this._ezPopoverSearchColumn)
66858
+ return;
66859
+ const container = this._container.getBoundingClientRect();
66860
+ await focusOnFieldSerch(this._columnSearch);
66861
+ this._ezPopoverSearchColumn.showUnder(this._container, { horizontalGap: container.width - (SEARCH_FIELD_FULL_WIDTH), verticalGap: container.height * -1 });
66862
+ }, { description: LABEL_SEARCH_COLUMN, element: this._element });
66863
+ }
65987
66864
  }
65988
66865
  async removeShortcuts() {
65989
- if (this._keyboardManager) {
65990
- this._keyboardManager
65991
- .unbind("ctrl + .")
65992
- .unbind("ctrl + ,")
65993
- .unbind("ctrl + alt + ArrowLeft")
65994
- .unbind("ctrl + alt + ArrowRight");
65995
- }
66866
+ var _a;
66867
+ (_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
66868
+ }
66869
+ renderFieldSearchColumn() {
66870
+ this._columnSearch = buildFieldSearch({
66871
+ value: StringUtils$1.generateUUID(),
66872
+ label: LABEL_SEARCH_COLUMN,
66873
+ }, ({ argument }) => new Promise(accept => {
66874
+ this.filterColumns(argument).then((columns) => {
66875
+ accept(columns
66876
+ .filter(column => !column.hidden)
66877
+ .map(column => ({ label: column.label, value: column.name })));
66878
+ });
66879
+ }), async (option) => {
66880
+ if (option != undefined && option.value != undefined) {
66881
+ await this.locateColumn(option.value);
66882
+ if (this._ezPopoverSearchColumn) {
66883
+ this._ezPopoverSearchColumn.hide();
66884
+ }
66885
+ if (this._container) {
66886
+ requestAnimationFrame(() => this._container.focus());
66887
+ }
66888
+ }
66889
+ });
66890
+ return this._columnSearch;
65996
66891
  }
65997
66892
  render() {
65998
66893
  var _a;
@@ -66002,11 +66897,12 @@ const EzGrid = class {
66002
66897
  'shadow-mode': !this.outlineMode,
66003
66898
  'no-padding': this.compact,
66004
66899
  'header-overlay': !this.hideHeader(),
66005
- }, ref: elem => (this._container = elem) }), h("div", { class: {
66900
+ 'no-scroll': this.suppressHorizontalScroll
66901
+ }, ref: elem => (this._container = elem), tabindex: "0" }), h("div", { class: {
66006
66902
  'ez-box ez-padding--small grid-header': true,
66007
66903
  'outline-mode': this.outlineMode,
66008
66904
  'shadow-mode': !this.outlineMode && !this.hideHeader(),
66009
- } }, 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
66905
+ }, tabindex: "0" }, 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("ez-popover", { ref: elem => (this._ezPopoverSearchColumn = elem), overlayType: "none" }, this.renderFieldSearchColumn()), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
66010
66906
  ${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
66011
66907
  ` }, 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" }))));
66012
66908
  }
@@ -66015,7 +66911,8 @@ const EzGrid = class {
66015
66911
  static get watchers() { return {
66016
66912
  "config": ["observeConfig"],
66017
66913
  "_paginationInfo": ["updatePaginationTooltip"],
66018
- "paginationCounterMode": ["observePaginationCounterMode"]
66914
+ "paginationCounterMode": ["observePaginationCounterMode"],
66915
+ "mode": ["observeModeChange"]
66019
66916
  }; }
66020
66917
  };
66021
66918
  EzGrid.style = ezGridCss;