@sankhyalabs/ezui 6.0.1 → 6.1.0-dev.2

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 (757) 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 +1 -1
  4. package/dist/cjs/ez-avatar.cjs.entry.js +50 -0
  5. package/dist/cjs/ez-card-item_2.cjs.entry.js +3 -1217
  6. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-check.cjs.entry.js +18 -10
  8. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +3 -3
  10. package/dist/cjs/ez-combo-box.cjs.entry.js +10 -14
  11. package/dist/cjs/ez-date-input.cjs.entry.js +2 -1
  12. package/dist/cjs/ez-date-time-input.cjs.entry.js +2 -1
  13. package/dist/cjs/ez-dialog.cjs.entry.js +6 -3
  14. package/dist/cjs/ez-double-list.cjs.entry.js +114 -53
  15. package/dist/cjs/{ez-dropdown_2.cjs.entry.js → ez-dropdown.cjs.entry.js} +1 -62
  16. package/dist/cjs/ez-filter-input_2.cjs.entry.js +257 -0
  17. package/dist/cjs/ez-form-view.cjs.entry.js +18 -10
  18. package/dist/cjs/ez-form.cjs.entry.js +86 -5
  19. package/dist/cjs/ez-grid.cjs.entry.js +1041 -144
  20. package/dist/cjs/ez-icon.cjs.entry.js +11 -5
  21. package/dist/cjs/ez-list.cjs.entry.js +2 -2
  22. package/dist/cjs/ez-modal-container.cjs.entry.js +7 -3
  23. package/dist/cjs/ez-modal.cjs.entry.js +5 -1
  24. package/dist/cjs/ez-number-input.cjs.entry.js +2 -1
  25. package/dist/cjs/ez-popup.cjs.entry.js +5 -1
  26. package/dist/cjs/ez-search-plus.cjs.entry.js +397 -0
  27. package/dist/cjs/ez-search-result-list.cjs.entry.js +97 -0
  28. package/dist/cjs/ez-search.cjs.entry.js +4 -3
  29. package/dist/cjs/ez-skeleton.cjs.entry.js +149 -0
  30. package/dist/cjs/ez-sortable-list.cjs.entry.js +3510 -0
  31. package/dist/cjs/ez-split-button.cjs.entry.js +15 -6
  32. package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-text-area.cjs.entry.js +24 -3
  34. package/dist/cjs/ez-text-input.cjs.entry.js +83 -100
  35. package/dist/cjs/ez-time-input.cjs.entry.js +2 -1
  36. package/dist/cjs/ezui.cjs.js +1 -1
  37. package/dist/cjs/filter-column.cjs.entry.js +14 -5
  38. package/dist/cjs/floating-ui.dom.esm-017acce4.js +1404 -0
  39. package/dist/cjs/index-9e5554cb.js +24 -8
  40. package/dist/cjs/loader.cjs.js +1 -1
  41. package/dist/cjs/{DataBinder-e92314c2.js → search-column-1d3c9fa5.js} +73 -13
  42. package/dist/collection/collection-manifest.json +14 -0
  43. package/dist/collection/components/ez-avatar/ez-avatar.css +139 -0
  44. package/dist/collection/components/ez-avatar/ez-avatar.js +143 -0
  45. package/dist/collection/components/ez-check/ez-check.css +9 -0
  46. package/dist/collection/components/ez-check/ez-check.js +34 -9
  47. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +1 -0
  48. package/dist/collection/components/ez-combo-box/ez-combo-box.js +45 -15
  49. package/dist/collection/components/ez-date-input/ez-date-input.js +19 -1
  50. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +19 -1
  51. package/dist/collection/components/ez-dialog/ez-dialog.css +24 -21
  52. package/dist/collection/components/ez-dialog/ez-dialog.js +5 -2
  53. package/dist/collection/components/ez-double-list/doubleListHelper.js +9 -10
  54. package/dist/collection/components/ez-double-list/ez-double-list.css +6 -38
  55. package/dist/collection/components/ez-double-list/ez-double-list.js +168 -50
  56. package/dist/collection/components/ez-dropdown/ez-dropdown.js +1 -1
  57. package/dist/collection/components/ez-form/ez-form.js +124 -4
  58. package/dist/collection/components/ez-form-view/ez-form-view.css +8 -0
  59. package/dist/collection/components/ez-form-view/ez-form-view.js +21 -2
  60. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +3 -1
  61. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +6 -0
  62. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +148 -14
  63. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +23 -4
  64. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +30 -6
  65. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +2 -0
  66. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js +15 -0
  67. package/dist/collection/components/ez-grid/ez-grid.css +4 -0
  68. package/dist/collection/components/ez-grid/ez-grid.js +122 -15
  69. package/dist/collection/components/ez-grid/interfaces/IGridMode.js +1 -0
  70. package/dist/collection/components/ez-grid/interfaces/index.js +1 -0
  71. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +14 -5
  72. package/dist/collection/components/ez-icon/ez-icon.js +28 -5
  73. package/dist/collection/components/ez-list/ez-list.js +2 -2
  74. package/dist/collection/components/ez-modal/ez-modal.js +5 -1
  75. package/dist/collection/components/ez-modal-container/ez-modal-container.css +1 -0
  76. package/dist/collection/components/ez-modal-container/ez-modal-container.js +6 -2
  77. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js +1 -0
  78. package/dist/collection/components/ez-number-input/ez-number-input.js +19 -1
  79. package/dist/collection/components/ez-popup/ez-popup.js +5 -1
  80. package/dist/collection/components/ez-search/ez-search.js +19 -1
  81. package/dist/collection/components/ez-search-plus/ez-search-plus.css +373 -0
  82. package/dist/collection/components/ez-search-plus/ez-search-plus.js +960 -0
  83. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css +221 -0
  84. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +278 -0
  85. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js +25 -1
  86. package/dist/collection/components/ez-skeleton/ez-skeleton.css +122 -80
  87. package/dist/collection/components/ez-skeleton/ez-skeleton.js +210 -46
  88. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css +226 -0
  89. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js +582 -0
  90. package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
  91. package/dist/collection/components/ez-split-button/ez-split-button.js +87 -10
  92. package/dist/collection/components/ez-text-area/ez-text-area.js +47 -2
  93. package/dist/collection/components/ez-text-input/ez-text-input.css +27 -2
  94. package/dist/collection/components/ez-text-input/ez-text-input.js +124 -73
  95. package/dist/collection/components/ez-time-input/ez-time-input.js +19 -1
  96. package/dist/collection/components/ez-tooltip/ez-tooltip.css +54 -12
  97. package/dist/collection/components/ez-tooltip/ez-tooltip.js +240 -46
  98. package/dist/collection/utils/constants.js +2 -0
  99. package/dist/collection/utils/form/DataBinder.js +43 -14
  100. package/dist/collection/utils/form/interfaces/FormLayout.js +5 -0
  101. package/dist/collection/utils/form/interfaces/index.js +1 -1
  102. package/dist/collection/utils/form/test/DataBinder.test.js +14 -0
  103. package/dist/collection/utils/index.js +3 -0
  104. package/dist/collection/utils/search/types.js +7 -0
  105. package/dist/collection/utils/searchColumn/search-column.js +35 -0
  106. package/dist/custom-elements/index.d.ts +24 -0
  107. package/dist/custom-elements/index.js +6012 -469
  108. package/dist/esm/FormLayout-071d324c.js +27 -0
  109. package/dist/esm/constants-b036528f.js +7 -0
  110. package/dist/esm/ez-actions-button.entry.js +1 -1
  111. package/dist/esm/ez-avatar.entry.js +46 -0
  112. package/dist/esm/ez-card-item_2.entry.js +1 -1215
  113. package/dist/esm/ez-chart.entry.js +1 -1
  114. package/dist/esm/ez-check.entry.js +18 -10
  115. package/dist/esm/ez-collapsible-box.entry.js +1 -1
  116. package/dist/esm/ez-combo-box-list_3.entry.js +2 -2
  117. package/dist/esm/ez-combo-box.entry.js +10 -14
  118. package/dist/esm/ez-date-input.entry.js +2 -1
  119. package/dist/esm/ez-date-time-input.entry.js +2 -1
  120. package/dist/esm/ez-dialog.entry.js +6 -3
  121. package/dist/esm/ez-double-list.entry.js +115 -54
  122. package/dist/esm/{ez-dropdown_2.entry.js → ez-dropdown.entry.js} +2 -62
  123. package/dist/esm/ez-filter-input_2.entry.js +252 -0
  124. package/dist/esm/ez-form-view.entry.js +19 -11
  125. package/dist/esm/ez-form.entry.js +85 -4
  126. package/dist/esm/ez-grid.entry.js +1037 -140
  127. package/dist/esm/ez-icon.entry.js +11 -5
  128. package/dist/esm/ez-list.entry.js +2 -2
  129. package/dist/esm/ez-modal-container.entry.js +7 -3
  130. package/dist/esm/ez-modal.entry.js +5 -1
  131. package/dist/esm/ez-number-input.entry.js +2 -1
  132. package/dist/esm/ez-popup.entry.js +5 -1
  133. package/dist/esm/ez-search-plus.entry.js +393 -0
  134. package/dist/esm/ez-search-result-list.entry.js +93 -0
  135. package/dist/esm/ez-search.entry.js +4 -3
  136. package/dist/esm/ez-skeleton.entry.js +145 -0
  137. package/dist/esm/ez-sortable-list.entry.js +3506 -0
  138. package/dist/esm/ez-split-button.entry.js +15 -6
  139. package/dist/esm/ez-split-item.entry.js +1 -1
  140. package/dist/esm/ez-text-area.entry.js +24 -3
  141. package/dist/esm/ez-text-input.entry.js +83 -100
  142. package/dist/esm/ez-time-input.entry.js +2 -1
  143. package/dist/esm/ezui.js +1 -1
  144. package/dist/esm/filter-column.entry.js +14 -5
  145. package/dist/esm/floating-ui.dom.esm-5d3da819.js +1398 -0
  146. package/dist/esm/index-5a720e56.js +24 -8
  147. package/dist/esm/loader.js +1 -1
  148. package/dist/esm/{DataBinder-9c877244.js → search-column-35f4ad93.js} +69 -15
  149. package/dist/ezui/ezui.esm.js +1 -1
  150. package/dist/ezui/p-01b72d7e.entry.js +1 -0
  151. package/dist/ezui/p-07594da0.entry.js +1 -0
  152. package/dist/ezui/p-175154a0.js +1 -0
  153. package/dist/ezui/p-18e71523.entry.js +1 -0
  154. package/dist/ezui/p-1fefb37a.entry.js +1 -0
  155. package/dist/ezui/{p-cedeedf1.entry.js → p-220b9944.entry.js} +1 -1
  156. package/dist/ezui/p-28987410.entry.js +1 -0
  157. package/dist/ezui/p-2d10bb18.entry.js +1 -0
  158. package/dist/ezui/p-30ffb9ed.js +1 -0
  159. package/dist/ezui/p-4a876b8b.entry.js +1 -0
  160. package/dist/ezui/p-4e66eaeb.entry.js +1 -0
  161. package/dist/ezui/p-545bd5d5.entry.js +7 -0
  162. package/dist/ezui/p-5b85d3de.entry.js +1 -0
  163. package/dist/ezui/p-5eea9886.js +1 -0
  164. package/dist/ezui/p-61f5c258.entry.js +1 -0
  165. package/dist/ezui/p-6b2cc9b8.entry.js +1 -0
  166. package/dist/ezui/p-6b3fddee.entry.js +1 -0
  167. package/dist/ezui/p-700c1320.entry.js +1 -0
  168. package/dist/ezui/p-791f4e43.entry.js +1 -0
  169. package/dist/ezui/p-7db20f8e.entry.js +1 -0
  170. package/dist/ezui/p-7ec3f335.entry.js +1 -0
  171. package/dist/ezui/p-80764ff6.entry.js +309 -0
  172. package/dist/ezui/p-85d7b78a.entry.js +1 -0
  173. package/dist/ezui/p-90c90351.entry.js +1 -0
  174. package/dist/ezui/p-90e91173.entry.js +1 -0
  175. package/dist/ezui/p-926a0bde.entry.js +1 -0
  176. package/dist/ezui/p-97d94ef3.entry.js +1 -0
  177. package/dist/ezui/p-a11827ca.entry.js +1 -0
  178. package/dist/ezui/p-b3b3c99a.entry.js +1 -0
  179. package/dist/ezui/p-c8e6204f.entry.js +1 -0
  180. package/dist/ezui/p-d2290004.entry.js +1 -0
  181. package/dist/ezui/p-d4d6d5fe.entry.js +1 -0
  182. package/dist/ezui/p-ddb22a70.entry.js +1 -0
  183. package/dist/ezui/{p-866abc8e.entry.js → p-ddd0bd61.entry.js} +1 -1
  184. package/dist/ezui/p-e07e4671.js +1 -0
  185. package/dist/ezui/p-e4ae4ddb.entry.js +1 -0
  186. package/dist/ezui/{p-30571aaf.entry.js → p-e4ead194.entry.js} +1 -1
  187. package/dist/ezui/p-ed48a632.entry.js +1 -0
  188. package/dist/types/components/ez-avatar/ez-avatar.d.ts +24 -0
  189. package/dist/types/components/ez-check/ez-check.d.ts +7 -2
  190. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +8 -2
  191. package/dist/types/components/ez-date-input/ez-date-input.d.ts +4 -0
  192. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +4 -0
  193. package/dist/types/components/ez-dialog/ez-dialog.d.ts +1 -0
  194. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +4 -2
  195. package/dist/types/components/ez-double-list/ez-double-list.d.ts +60 -24
  196. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +4 -4
  197. package/dist/types/components/ez-form/ez-form.d.ts +23 -1
  198. package/dist/types/components/ez-form-view/ez-form-view.d.ts +4 -0
  199. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -0
  200. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +9 -1
  201. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +9 -1
  202. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +1 -0
  203. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +1 -0
  204. package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.d.ts +3 -0
  205. package/dist/types/components/ez-grid/ez-grid.d.ts +17 -1
  206. package/dist/types/components/ez-grid/interfaces/IGridMode.d.ts +1 -0
  207. package/dist/types/components/ez-grid/interfaces/index.d.ts +1 -0
  208. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +1 -0
  209. package/dist/types/components/ez-icon/ez-icon.d.ts +5 -0
  210. package/dist/types/components/ez-modal/ez-modal.d.ts +2 -0
  211. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +2 -0
  212. package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.d.ts +2 -1
  213. package/dist/types/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.d.ts +3 -0
  214. package/dist/types/components/ez-number-input/ez-number-input.d.ts +4 -0
  215. package/dist/types/components/ez-popup/ez-popup.d.ts +2 -0
  216. package/dist/types/components/ez-search/ez-search.d.ts +4 -0
  217. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +186 -0
  218. package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +26 -0
  219. package/dist/types/components/ez-skeleton/ez-skeleton.constants.d.ts +55 -1
  220. package/dist/types/components/ez-skeleton/ez-skeleton.d.ts +50 -22
  221. package/dist/types/components/ez-sortable-list/ez-sortable-list.d.ts +91 -0
  222. package/dist/types/components/ez-split-button/ez-split-button.d.ts +14 -2
  223. package/dist/types/components/ez-text-area/ez-text-area.d.ts +8 -0
  224. package/dist/types/components/ez-text-input/ez-text-input.d.ts +21 -9
  225. package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
  226. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +41 -5
  227. package/dist/types/components.d.ts +786 -24
  228. package/dist/types/utils/constants.d.ts +2 -0
  229. package/dist/types/utils/form/DataBinder.d.ts +4 -2
  230. package/dist/types/utils/form/interfaces/FormLayout.d.ts +4 -0
  231. package/dist/types/utils/form/interfaces/index.d.ts +1 -0
  232. package/dist/types/utils/index.d.ts +3 -0
  233. package/dist/types/utils/search/types.d.ts +12 -0
  234. package/dist/types/utils/searchColumn/search-column.d.ts +9 -0
  235. package/package.json +7 -2
  236. package/react/components.d.ts +64 -60
  237. package/react/components.js +4 -0
  238. package/react/components.js.map +1 -1
  239. package/react/react-component-lib/createComponent.d.ts +1 -1
  240. package/react/react-component-lib/createComponent.js.map +1 -1
  241. package/react/react-component-lib/createOverlayComponent.js.map +1 -1
  242. package/react/react-component-lib/interfaces.js +1 -0
  243. package/react/react-component-lib/utils/attachProps.d.ts +1 -1
  244. package/react/react-component-lib/utils/attachProps.js.map +1 -1
  245. package/react/react-component-lib/utils/dev.js.map +1 -1
  246. package/react/react-component-lib/utils/index.d.ts +2 -2
  247. package/react/react-component-lib/utils/index.js.map +1 -1
  248. package/dist/cjs/ApplicationUtils-c9d1205c.js.gz +0 -0
  249. package/dist/cjs/CSSVarsUtils-f20973d1.js.gz +0 -0
  250. package/dist/cjs/CheckMode-ecb90b87.js.gz +0 -0
  251. package/dist/cjs/DataBinder-e92314c2.js.gz +0 -0
  252. package/dist/cjs/DialogType-2114c337.js.gz +0 -0
  253. package/dist/cjs/EzScrollDirection-b2c99895.js.gz +0 -0
  254. package/dist/cjs/FocusResolver-885f2173.js.gz +0 -0
  255. package/dist/cjs/ICustomRender-6fafffce.js +0 -13
  256. package/dist/cjs/ICustomRender-6fafffce.js.gz +0 -0
  257. package/dist/cjs/constants-2714478b.js.gz +0 -0
  258. package/dist/cjs/ez-actions-button.cjs.entry.js.gz +0 -0
  259. package/dist/cjs/ez-alert-list.cjs.entry.js.gz +0 -0
  260. package/dist/cjs/ez-alert.cjs.entry.js.gz +0 -0
  261. package/dist/cjs/ez-application.cjs.entry.js.gz +0 -0
  262. package/dist/cjs/ez-badge.cjs.entry.js.gz +0 -0
  263. package/dist/cjs/ez-breadcrumb.cjs.entry.js.gz +0 -0
  264. package/dist/cjs/ez-button.cjs.entry.js.gz +0 -0
  265. package/dist/cjs/ez-calendar.cjs.entry.js.gz +0 -0
  266. package/dist/cjs/ez-card-item_2.cjs.entry.js.gz +0 -0
  267. package/dist/cjs/ez-chart.cjs.entry.js.gz +0 -0
  268. package/dist/cjs/ez-check.cjs.entry.js.gz +0 -0
  269. package/dist/cjs/ez-chip.cjs.entry.js.gz +0 -0
  270. package/dist/cjs/ez-collapsible-box.cjs.entry.js.gz +0 -0
  271. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js.gz +0 -0
  272. package/dist/cjs/ez-combo-box.cjs.entry.js.gz +0 -0
  273. package/dist/cjs/ez-date-input.cjs.entry.js.gz +0 -0
  274. package/dist/cjs/ez-date-time-input.cjs.entry.js.gz +0 -0
  275. package/dist/cjs/ez-dialog.cjs.entry.js.gz +0 -0
  276. package/dist/cjs/ez-double-list.cjs.entry.js.gz +0 -0
  277. package/dist/cjs/ez-dropdown_2.cjs.entry.js.gz +0 -0
  278. package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
  279. package/dist/cjs/ez-filter-input.cjs.entry.js +0 -129
  280. package/dist/cjs/ez-filter-input.cjs.entry.js.gz +0 -0
  281. package/dist/cjs/ez-form-view.cjs.entry.js.gz +0 -0
  282. package/dist/cjs/ez-form.cjs.entry.js.gz +0 -0
  283. package/dist/cjs/ez-grid.cjs.entry.js.gz +0 -0
  284. package/dist/cjs/ez-guide-navigator.cjs.entry.js.gz +0 -0
  285. package/dist/cjs/ez-icon.cjs.entry.js.gz +0 -0
  286. package/dist/cjs/ez-list.cjs.entry.js.gz +0 -0
  287. package/dist/cjs/ez-loading-bar.cjs.entry.js.gz +0 -0
  288. package/dist/cjs/ez-modal-container.cjs.entry.js.gz +0 -0
  289. package/dist/cjs/ez-modal.cjs.entry.js.gz +0 -0
  290. package/dist/cjs/ez-multi-selection-list.cjs.entry.js.gz +0 -0
  291. package/dist/cjs/ez-number-input.cjs.entry.js.gz +0 -0
  292. package/dist/cjs/ez-popover-plus_3.cjs.entry.js.gz +0 -0
  293. package/dist/cjs/ez-popover.cjs.entry.js.gz +0 -0
  294. package/dist/cjs/ez-popup.cjs.entry.js.gz +0 -0
  295. package/dist/cjs/ez-radio-button.cjs.entry.js.gz +0 -0
  296. package/dist/cjs/ez-scroller_2.cjs.entry.js.gz +0 -0
  297. package/dist/cjs/ez-search.cjs.entry.js.gz +0 -0
  298. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js.gz +0 -0
  299. package/dist/cjs/ez-split-button.cjs.entry.js.gz +0 -0
  300. package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
  301. package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
  302. package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
  303. package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
  304. package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
  305. package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
  306. package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
  307. package/dist/cjs/ez-tooltip.cjs.entry.js +0 -55
  308. package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
  309. package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
  310. package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
  311. package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
  312. package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
  313. package/dist/cjs/ezui.cjs.js.gz +0 -0
  314. package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
  315. package/dist/cjs/index-9e5554cb.js.gz +0 -0
  316. package/dist/cjs/index.cjs.js.gz +0 -0
  317. package/dist/cjs/loader.cjs.js.gz +0 -0
  318. package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
  319. package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
  320. package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
  321. package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
  322. package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
  323. package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
  324. package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
  325. package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
  326. package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
  327. package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
  328. package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
  329. package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
  330. package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
  331. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
  332. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
  333. package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
  334. package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
  335. package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
  336. package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
  337. package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
  338. package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
  339. package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
  340. package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
  341. package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
  342. package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
  343. package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
  344. package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
  345. package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
  346. package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
  347. package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
  348. package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
  349. package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
  350. package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
  351. package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
  352. package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
  353. package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
  354. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
  355. package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
  356. package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
  357. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
  358. package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
  359. package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
  360. package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
  361. package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
  362. package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
  363. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
  364. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
  365. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
  366. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
  367. package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
  368. package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
  369. package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
  370. package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
  371. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
  372. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
  373. package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
  374. package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
  375. package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
  376. package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
  377. package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
  378. package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
  379. package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
  380. package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
  381. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
  382. package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
  383. package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
  384. package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
  385. package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
  386. package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
  387. package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
  388. package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
  389. package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
  390. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
  391. package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
  392. package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
  393. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
  394. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
  395. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
  396. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
  397. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
  398. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
  399. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
  400. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js.gz +0 -0
  401. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
  402. package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
  403. package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
  404. package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
  405. package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
  406. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
  407. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
  408. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
  409. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
  410. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
  411. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
  412. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
  413. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
  414. package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
  415. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
  416. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
  417. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
  418. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
  419. package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
  420. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
  421. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
  422. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
  423. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
  424. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
  425. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
  426. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
  427. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
  428. package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js.gz +0 -0
  429. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
  430. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
  431. package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
  432. package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
  433. package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
  434. package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
  435. package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
  436. package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
  437. package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
  438. package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
  439. package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
  440. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
  441. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
  442. package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
  443. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
  444. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
  445. package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
  446. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
  447. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
  448. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
  449. package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
  450. package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
  451. package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
  452. package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
  453. package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
  454. package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
  455. package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
  456. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
  457. package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
  458. package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
  459. package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
  460. package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
  461. package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
  462. package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
  463. package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
  464. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
  465. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
  466. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
  467. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
  468. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
  469. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
  470. package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
  471. package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
  472. package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
  473. package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
  474. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
  475. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
  476. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
  477. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
  478. package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
  479. package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
  480. package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
  481. package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
  482. package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
  483. package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
  484. package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
  485. package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
  486. package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
  487. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
  488. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
  489. package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
  490. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
  491. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
  492. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
  493. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
  494. package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
  495. package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
  496. package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
  497. package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
  498. package/dist/collection/components/ez-sidebar-navigator/messages/constants.js.gz +0 -0
  499. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
  500. package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
  501. package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
  502. package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
  503. package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
  504. package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
  505. package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
  506. package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
  507. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
  508. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
  509. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
  510. package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
  511. package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
  512. package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
  513. package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
  514. package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
  515. package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
  516. package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
  517. package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
  518. package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
  519. package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
  520. package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
  521. package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
  522. package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
  523. package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
  524. package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
  525. package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
  526. package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
  527. package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
  528. package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
  529. package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
  530. package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
  531. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
  532. package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
  533. package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
  534. package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
  535. package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
  536. package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
  537. package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
  538. package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
  539. package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
  540. package/dist/collection/index.js.gz +0 -0
  541. package/dist/collection/servidor.js.gz +0 -0
  542. package/dist/collection/setupTests.js.gz +0 -0
  543. package/dist/collection/sw.js.gz +0 -0
  544. package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
  545. package/dist/collection/utils/AssetsUtils.js.gz +0 -0
  546. package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
  547. package/dist/collection/utils/FocusResolver.js.gz +0 -0
  548. package/dist/collection/utils/ResponsiveInputUtils.js +0 -26
  549. package/dist/collection/utils/ResponsiveInputUtils.js.gz +0 -0
  550. package/dist/collection/utils/constants.js.gz +0 -0
  551. package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
  552. package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
  553. package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
  554. package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
  555. package/dist/collection/utils/form/DataBinder.js.gz +0 -0
  556. package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
  557. package/dist/collection/utils/form/index.js.gz +0 -0
  558. package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
  559. package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
  560. package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
  561. package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
  562. package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
  563. package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
  564. package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
  565. package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
  566. package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
  567. package/dist/collection/utils/index.js.gz +0 -0
  568. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
  569. package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
  570. package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
  571. package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
  572. package/dist/collection/utils/utils.js.gz +0 -0
  573. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
  574. package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
  575. package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
  576. package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
  577. package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
  578. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
  579. package/dist/custom-elements/index.js.gz +0 -0
  580. package/dist/esm/ApplicationUtils-eaf91331.js.gz +0 -0
  581. package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
  582. package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
  583. package/dist/esm/DataBinder-9c877244.js.gz +0 -0
  584. package/dist/esm/DialogType-54a62731.js.gz +0 -0
  585. package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
  586. package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
  587. package/dist/esm/ICustomRender-875b5a40.js +0 -13
  588. package/dist/esm/ICustomRender-875b5a40.js.gz +0 -0
  589. package/dist/esm/constants-4e0d35b7.js +0 -5
  590. package/dist/esm/constants-4e0d35b7.js.gz +0 -0
  591. package/dist/esm/ez-actions-button.entry.js.gz +0 -0
  592. package/dist/esm/ez-alert-list.entry.js.gz +0 -0
  593. package/dist/esm/ez-alert.entry.js.gz +0 -0
  594. package/dist/esm/ez-application.entry.js.gz +0 -0
  595. package/dist/esm/ez-badge.entry.js.gz +0 -0
  596. package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
  597. package/dist/esm/ez-button.entry.js.gz +0 -0
  598. package/dist/esm/ez-calendar.entry.js.gz +0 -0
  599. package/dist/esm/ez-card-item_2.entry.js.gz +0 -0
  600. package/dist/esm/ez-chart.entry.js.gz +0 -0
  601. package/dist/esm/ez-check.entry.js.gz +0 -0
  602. package/dist/esm/ez-chip.entry.js.gz +0 -0
  603. package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
  604. package/dist/esm/ez-combo-box-list_3.entry.js.gz +0 -0
  605. package/dist/esm/ez-combo-box.entry.js.gz +0 -0
  606. package/dist/esm/ez-date-input.entry.js.gz +0 -0
  607. package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
  608. package/dist/esm/ez-dialog.entry.js.gz +0 -0
  609. package/dist/esm/ez-double-list.entry.js.gz +0 -0
  610. package/dist/esm/ez-dropdown_2.entry.js.gz +0 -0
  611. package/dist/esm/ez-file-item.entry.js.gz +0 -0
  612. package/dist/esm/ez-filter-input.entry.js +0 -125
  613. package/dist/esm/ez-filter-input.entry.js.gz +0 -0
  614. package/dist/esm/ez-form-view.entry.js.gz +0 -0
  615. package/dist/esm/ez-form.entry.js.gz +0 -0
  616. package/dist/esm/ez-grid.entry.js.gz +0 -0
  617. package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
  618. package/dist/esm/ez-icon.entry.js.gz +0 -0
  619. package/dist/esm/ez-list.entry.js.gz +0 -0
  620. package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
  621. package/dist/esm/ez-modal-container.entry.js.gz +0 -0
  622. package/dist/esm/ez-modal.entry.js.gz +0 -0
  623. package/dist/esm/ez-multi-selection-list.entry.js.gz +0 -0
  624. package/dist/esm/ez-number-input.entry.js.gz +0 -0
  625. package/dist/esm/ez-popover-plus_3.entry.js.gz +0 -0
  626. package/dist/esm/ez-popover.entry.js.gz +0 -0
  627. package/dist/esm/ez-popup.entry.js.gz +0 -0
  628. package/dist/esm/ez-radio-button.entry.js.gz +0 -0
  629. package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
  630. package/dist/esm/ez-search.entry.js.gz +0 -0
  631. package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
  632. package/dist/esm/ez-split-button.entry.js.gz +0 -0
  633. package/dist/esm/ez-split-item.entry.js.gz +0 -0
  634. package/dist/esm/ez-split-panel.entry.js.gz +0 -0
  635. package/dist/esm/ez-tabselector.entry.js.gz +0 -0
  636. package/dist/esm/ez-text-area.entry.js.gz +0 -0
  637. package/dist/esm/ez-text-input.entry.js.gz +0 -0
  638. package/dist/esm/ez-time-input.entry.js.gz +0 -0
  639. package/dist/esm/ez-toast.entry.js.gz +0 -0
  640. package/dist/esm/ez-tooltip.entry.js +0 -51
  641. package/dist/esm/ez-tooltip.entry.js.gz +0 -0
  642. package/dist/esm/ez-tree.entry.js.gz +0 -0
  643. package/dist/esm/ez-upload.entry.js.gz +0 -0
  644. package/dist/esm/ez-view-stack.entry.js.gz +0 -0
  645. package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
  646. package/dist/esm/ezui.js.gz +0 -0
  647. package/dist/esm/filter-column.entry.js.gz +0 -0
  648. package/dist/esm/index-5a720e56.js.gz +0 -0
  649. package/dist/esm/index.js.gz +0 -0
  650. package/dist/esm/loader.js.gz +0 -0
  651. package/dist/esm/polyfills/core-js.js.gz +0 -0
  652. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  653. package/dist/esm/polyfills/dom.js.gz +0 -0
  654. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  655. package/dist/esm/polyfills/index.js.gz +0 -0
  656. package/dist/esm/polyfills/system.js.gz +0 -0
  657. package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
  658. package/dist/ezui/ezui.esm.js.gz +0 -0
  659. package/dist/ezui/index.esm.js.gz +0 -0
  660. package/dist/ezui/p-000159dc.entry.js.gz +0 -0
  661. package/dist/ezui/p-0378416a.entry.js.gz +0 -0
  662. package/dist/ezui/p-05e1f4e7.js +0 -1
  663. package/dist/ezui/p-05e1f4e7.js.gz +0 -0
  664. package/dist/ezui/p-06f1b8e4.entry.js.gz +0 -0
  665. package/dist/ezui/p-0cfbbe82.entry.js +0 -1
  666. package/dist/ezui/p-0cfbbe82.entry.js.gz +0 -0
  667. package/dist/ezui/p-11bfeca3.entry.js.gz +0 -0
  668. package/dist/ezui/p-1bb62d6b.entry.js +0 -1
  669. package/dist/ezui/p-1bb62d6b.entry.js.gz +0 -0
  670. package/dist/ezui/p-2069c78a.entry.js +0 -1
  671. package/dist/ezui/p-2069c78a.entry.js.gz +0 -0
  672. package/dist/ezui/p-2187f86c.js.gz +0 -0
  673. package/dist/ezui/p-23dab72f.entry.js +0 -1
  674. package/dist/ezui/p-23dab72f.entry.js.gz +0 -0
  675. package/dist/ezui/p-24b42f3d.entry.js +0 -1
  676. package/dist/ezui/p-24b42f3d.entry.js.gz +0 -0
  677. package/dist/ezui/p-2f351332.entry.js.gz +0 -0
  678. package/dist/ezui/p-30571aaf.entry.js.gz +0 -0
  679. package/dist/ezui/p-40a60148.js.gz +0 -0
  680. package/dist/ezui/p-41652617.entry.js +0 -1
  681. package/dist/ezui/p-41652617.entry.js.gz +0 -0
  682. package/dist/ezui/p-44b39e81.entry.js.gz +0 -0
  683. package/dist/ezui/p-4607fb89.js +0 -1
  684. package/dist/ezui/p-4607fb89.js.gz +0 -0
  685. package/dist/ezui/p-4818b8ce.entry.js +0 -1
  686. package/dist/ezui/p-4818b8ce.entry.js.gz +0 -0
  687. package/dist/ezui/p-61b4834d.entry.js +0 -309
  688. package/dist/ezui/p-61b4834d.entry.js.gz +0 -0
  689. package/dist/ezui/p-68b2e579.entry.js +0 -1
  690. package/dist/ezui/p-68b2e579.entry.js.gz +0 -0
  691. package/dist/ezui/p-6b51c9cc.entry.js.gz +0 -0
  692. package/dist/ezui/p-6d8b3298.entry.js +0 -1
  693. package/dist/ezui/p-6d8b3298.entry.js.gz +0 -0
  694. package/dist/ezui/p-6ec40dec.entry.js.gz +0 -0
  695. package/dist/ezui/p-6fc26622.entry.js.gz +0 -0
  696. package/dist/ezui/p-708b196e.entry.js.gz +0 -0
  697. package/dist/ezui/p-7567ccdd.entry.js.gz +0 -0
  698. package/dist/ezui/p-769632d5.entry.js.gz +0 -0
  699. package/dist/ezui/p-7c1b3cef.entry.js +0 -1
  700. package/dist/ezui/p-7c1b3cef.entry.js.gz +0 -0
  701. package/dist/ezui/p-80dfc50b.js.gz +0 -0
  702. package/dist/ezui/p-81461d2f.entry.js.gz +0 -0
  703. package/dist/ezui/p-82fa4b09.entry.js.gz +0 -0
  704. package/dist/ezui/p-866abc8e.entry.js.gz +0 -0
  705. package/dist/ezui/p-87f5a060.entry.js.gz +0 -0
  706. package/dist/ezui/p-88c615f0.entry.js +0 -1
  707. package/dist/ezui/p-88c615f0.entry.js.gz +0 -0
  708. package/dist/ezui/p-8ea07b8c.entry.js +0 -1
  709. package/dist/ezui/p-8ea07b8c.entry.js.gz +0 -0
  710. package/dist/ezui/p-9066b0b0.entry.js +0 -1
  711. package/dist/ezui/p-9066b0b0.entry.js.gz +0 -0
  712. package/dist/ezui/p-91ccae0c.entry.js.gz +0 -0
  713. package/dist/ezui/p-92748142.entry.js.gz +0 -0
  714. package/dist/ezui/p-98bb8b16.js.gz +0 -0
  715. package/dist/ezui/p-9c5a6ec4.entry.js +0 -1
  716. package/dist/ezui/p-9c5a6ec4.entry.js.gz +0 -0
  717. package/dist/ezui/p-9e95bfeb.entry.js.gz +0 -0
  718. package/dist/ezui/p-a0b034cf.entry.js +0 -1
  719. package/dist/ezui/p-a0b034cf.entry.js.gz +0 -0
  720. package/dist/ezui/p-a79f3789.entry.js +0 -1
  721. package/dist/ezui/p-a79f3789.entry.js.gz +0 -0
  722. package/dist/ezui/p-ab574d59.js.gz +0 -0
  723. package/dist/ezui/p-acddfb2e.js +0 -1
  724. package/dist/ezui/p-acddfb2e.js.gz +0 -0
  725. package/dist/ezui/p-b3b5647e.entry.js +0 -1
  726. package/dist/ezui/p-b3b5647e.entry.js.gz +0 -0
  727. package/dist/ezui/p-b853763b.js.gz +0 -0
  728. package/dist/ezui/p-b9282c79.entry.js +0 -1
  729. package/dist/ezui/p-b9282c79.entry.js.gz +0 -0
  730. package/dist/ezui/p-c2b20f78.entry.js.gz +0 -0
  731. package/dist/ezui/p-c7035d65.entry.js.gz +0 -0
  732. package/dist/ezui/p-c96fbbef.entry.js +0 -1
  733. package/dist/ezui/p-c96fbbef.entry.js.gz +0 -0
  734. package/dist/ezui/p-ca8936df.entry.js +0 -1
  735. package/dist/ezui/p-ca8936df.entry.js.gz +0 -0
  736. package/dist/ezui/p-cc4ffa6b.entry.js +0 -1
  737. package/dist/ezui/p-cc4ffa6b.entry.js.gz +0 -0
  738. package/dist/ezui/p-ce7ce731.entry.js +0 -1
  739. package/dist/ezui/p-ce7ce731.entry.js.gz +0 -0
  740. package/dist/ezui/p-cedeedf1.entry.js.gz +0 -0
  741. package/dist/ezui/p-cf33bc48.entry.js +0 -1
  742. package/dist/ezui/p-cf33bc48.entry.js.gz +0 -0
  743. package/dist/ezui/p-dc628ed3.js.gz +0 -0
  744. package/dist/ezui/p-dfca5946.entry.js.gz +0 -0
  745. package/dist/ezui/p-e18d9e6a.entry.js +0 -1
  746. package/dist/ezui/p-e18d9e6a.entry.js.gz +0 -0
  747. package/dist/ezui/p-e3f8660b.entry.js +0 -1
  748. package/dist/ezui/p-e3f8660b.entry.js.gz +0 -0
  749. package/dist/ezui/p-e4c7eb39.js.gz +0 -0
  750. package/dist/ezui/p-e6b38ade.entry.js.gz +0 -0
  751. package/dist/ezui/p-ec7db713.js.gz +0 -0
  752. package/dist/ezui/p-f4da7e1e.entry.js +0 -1
  753. package/dist/ezui/p-f4da7e1e.entry.js.gz +0 -0
  754. package/dist/ezui/p-fc194825.entry.js.gz +0 -0
  755. package/dist/index.cjs.js.gz +0 -0
  756. package/dist/index.js.gz +0 -0
  757. package/dist/types/utils/ResponsiveInputUtils.d.ts +0 -6
@@ -8,9 +8,9 @@ const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
8
8
  const ApplicationUtils = require('./ApplicationUtils-c9d1205c.js');
9
9
  require('./DialogType-2114c337.js');
10
10
  require('./CheckMode-ecb90b87.js');
11
- const ICustomRender = require('./ICustomRender-6fafffce.js');
12
- const constants = require('./constants-2714478b.js');
13
- const DataBinder = require('./DataBinder-e92314c2.js');
11
+ const FormLayout = require('./FormLayout-18853e70.js');
12
+ const searchColumn = require('./search-column-1d3c9fa5.js');
13
+ const constants = require('./constants-569271bc.js');
14
14
  const FocusResolver = require('./FocusResolver-885f2173.js');
15
15
 
16
16
  /**
@@ -436,6 +436,7 @@ function removeAllReferences(obj, objectName) {
436
436
  // leave all basic types - this is needed for GridAPI to leave the "destroyed: boolean" attribute alone
437
437
  if (typeof value === 'function') {
438
438
  var func = function () {
439
+ 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.");
439
440
  };
440
441
  properties[key] = { value: func, writable: true };
441
442
  }
@@ -606,6 +607,9 @@ function waitUntil(condition, callback, timeout, timeoutMessage) {
606
607
  window.clearInterval(interval);
607
608
  interval = null;
608
609
  }
610
+ if (reachedTimeout && timeoutMessage) {
611
+ console.warn(timeoutMessage);
612
+ }
609
613
  }
610
614
  };
611
615
  internalCallback();
@@ -707,9 +711,14 @@ var Context = /** @class */ (function () {
707
711
  Context.prototype.createBeanWrapper = function (BeanClass) {
708
712
  var metaData = BeanClass.__agBeanMetaData;
709
713
  if (!metaData) {
714
+ var beanName = void 0;
710
715
  if (BeanClass.prototype.constructor) {
711
- getFunctionName(BeanClass.prototype.constructor);
716
+ beanName = getFunctionName(BeanClass.prototype.constructor);
717
+ }
718
+ else {
719
+ beanName = "" + BeanClass;
712
720
  }
721
+ console.error("Context item " + beanName + " is not a bean");
713
722
  return;
714
723
  }
715
724
  var beanEntry = {
@@ -781,6 +790,7 @@ var Context = /** @class */ (function () {
781
790
  return beansList;
782
791
  };
783
792
  Context.prototype.lookupBeanInstance = function (wiringBean, beanName, optional) {
793
+ if (optional === void 0) { optional = false; }
784
794
  if (beanName === "context") {
785
795
  return this;
786
796
  }
@@ -791,6 +801,9 @@ var Context = /** @class */ (function () {
791
801
  if (beanEntry) {
792
802
  return beanEntry.beanInstance;
793
803
  }
804
+ if (!optional) {
805
+ console.error("AG Grid: unable to find bean reference " + beanName + " while initialising " + wiringBean);
806
+ }
794
807
  return null;
795
808
  };
796
809
  Context.prototype.callLifeCycleMethods = function (beanInstances, lifeCycleMethod) {
@@ -897,9 +910,11 @@ function Optional(name) {
897
910
  }
898
911
  function autowiredFunc(target, name, optional, classPrototype, methodOrAttributeName, index) {
899
912
  if (name === null) {
913
+ console.error("AG Grid: Autowired name should not be null");
900
914
  return;
901
915
  }
902
916
  if (typeof index === "number") {
917
+ console.error("AG Grid: Autowired should be on an attribute");
903
918
  return;
904
919
  }
905
920
  // it's an attribute on the class
@@ -1231,6 +1246,8 @@ var ModuleRegistry = /** @class */ (function () {
1231
1246
  else {
1232
1247
  if (ModuleRegistry.moduleBased !== moduleBased) {
1233
1248
  doOnce(function () {
1249
+ 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.");
1250
+ console.warn('Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.');
1234
1251
  }, 'ModulePackageCheck');
1235
1252
  }
1236
1253
  }
@@ -1248,7 +1265,15 @@ var ModuleRegistry = /** @class */ (function () {
1248
1265
  return true;
1249
1266
  }
1250
1267
  var warningKey = reason + moduleName;
1268
+ var warningMessage;
1269
+ if (ModuleRegistry.moduleBased) {
1270
+ warningMessage = "AG Grid: unable to use " + reason + " as module " + moduleName + " is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/";
1271
+ }
1272
+ else {
1273
+ 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/";
1274
+ }
1251
1275
  doOnce(function () {
1276
+ console.warn(warningMessage);
1252
1277
  }, warningKey);
1253
1278
  return false;
1254
1279
  };
@@ -1441,9 +1466,11 @@ var Column = /** @class */ (function () {
1441
1466
  var colDefAny = this.colDef;
1442
1467
  function warnOnce(msg, key, obj) {
1443
1468
  doOnce(function () {
1444
- if (obj) ;
1469
+ if (obj) {
1470
+ console.warn(msg, obj);
1471
+ }
1445
1472
  else {
1446
- doOnce(function () { return (void 0); }, key);
1473
+ doOnce(function () { return console.warn(msg); }, key);
1447
1474
  }
1448
1475
  }, key);
1449
1476
  }
@@ -1911,16 +1938,19 @@ var Column = /** @class */ (function () {
1911
1938
  // this used to be needed, as previous version of ag-grid had lockPosition as column state,
1912
1939
  // so couldn't depend on colDef version.
1913
1940
  Column.prototype.isLockPosition = function () {
1941
+ console.warn('AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead.');
1914
1942
  return this.colDef ? !!this.colDef.lockPosition : false;
1915
1943
  };
1916
1944
  // this used to be needed, as previous version of ag-grid had lockVisible as column state,
1917
1945
  // so couldn't depend on colDef version.
1918
1946
  Column.prototype.isLockVisible = function () {
1947
+ console.warn('AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead.');
1919
1948
  return this.colDef ? !!this.colDef.lockVisible : false;
1920
1949
  };
1921
1950
  // this used to be needed, as previous version of ag-grid had lockPinned as column state,
1922
1951
  // so couldn't depend on colDef version.
1923
1952
  Column.prototype.isLockPinned = function () {
1953
+ console.warn('AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead.');
1924
1954
  return this.colDef ? !!this.colDef.lockPinned : false;
1925
1955
  };
1926
1956
  // + renderedHeaderCell - for making header cell transparent when moving
@@ -2316,6 +2346,7 @@ var ColumnGroup = /** @class */ (function () {
2316
2346
  };
2317
2347
  /** @deprecated getOriginalColumnGroup is deprecated, use getOriginalColumnGroup. */
2318
2348
  ColumnGroup.prototype.getOriginalColumnGroup = function () {
2349
+ console.warn('AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead');
2319
2350
  return this.getProvidedColumnGroup();
2320
2351
  };
2321
2352
  ColumnGroup.prototype.getPaddingLevel = function () {
@@ -3191,7 +3222,9 @@ var ColumnFactory = /** @class */ (function (_super) {
3191
3222
  var typeKeys = [];
3192
3223
  if (type instanceof Array) {
3193
3224
  var invalidArray = type.some(function (a) { return typeof a !== 'string'; });
3194
- if (invalidArray) ;
3225
+ if (invalidArray) {
3226
+ console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'");
3227
+ }
3195
3228
  else {
3196
3229
  typeKeys = type;
3197
3230
  }
@@ -3200,13 +3233,16 @@ var ColumnFactory = /** @class */ (function (_super) {
3200
3233
  typeKeys = type.split(',');
3201
3234
  }
3202
3235
  else {
3236
+ console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");
3203
3237
  return;
3204
3238
  }
3205
3239
  // merge user defined with default column types
3206
3240
  var allColumnTypes = Object.assign({}, DefaultColumnTypes);
3207
3241
  var userTypes = this.gridOptionsWrapper.getColumnTypes() || {};
3208
3242
  iterateObject(userTypes, function (key, value) {
3209
- if (key in allColumnTypes) ;
3243
+ if (key in allColumnTypes) {
3244
+ console.warn("AG Grid: the column type '" + key + "' is a default column type and cannot be overridden.");
3245
+ }
3210
3246
  else {
3211
3247
  allColumnTypes[key] = value;
3212
3248
  }
@@ -3216,12 +3252,34 @@ var ColumnFactory = /** @class */ (function (_super) {
3216
3252
  if (typeColDef) {
3217
3253
  mergeDeep(colDefMerged, typeColDef, false, true);
3218
3254
  }
3255
+ else {
3256
+ console.warn("AG Grid: colDef.type '" + t + "' does not correspond to defined gridOptions.columnTypes");
3257
+ }
3219
3258
  });
3220
3259
  };
3221
3260
  ColumnFactory.prototype.checkForDeprecatedItems = function (colDef) {
3222
3261
  if (colDef) {
3223
3262
  var colDefNoType = colDef; // take out the type, so we can access attributes not defined in the type
3263
+ if (colDefNoType.group !== undefined) {
3264
+ console.warn('AG Grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3');
3265
+ }
3266
+ if (colDefNoType.headerGroup !== undefined) {
3267
+ console.warn('AG Grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3');
3268
+ }
3269
+ if (colDefNoType.headerGroupShow !== undefined) {
3270
+ 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');
3271
+ }
3272
+ if (colDefNoType.suppressRowGroup !== undefined) {
3273
+ console.warn('AG Grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead');
3274
+ }
3275
+ if (colDefNoType.suppressAggregation !== undefined) {
3276
+ console.warn('AG Grid: colDef.suppressAggregation is deprecated, please use colDef.type instead');
3277
+ }
3278
+ if (colDefNoType.suppressRowGroup || colDefNoType.suppressAggregation) {
3279
+ console.warn('AG Grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead');
3280
+ }
3224
3281
  if (colDefNoType.displayName) {
3282
+ console.warn("AG Grid: Found displayName " + colDefNoType.displayName + ", please use headerName instead, displayName is deprecated.");
3225
3283
  colDefNoType.headerName = colDefNoType.displayName;
3226
3284
  }
3227
3285
  }
@@ -4283,6 +4341,7 @@ var SideBarDefParser = /** @class */ (function () {
4283
4341
  toParse.forEach(function (key) {
4284
4342
  var lookupResult = SideBarDefParser.DEFAULT_BY_KEY[key];
4285
4343
  if (!lookupResult) {
4344
+ 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(','));
4286
4345
  return;
4287
4346
  }
4288
4347
  comps_1.push(lookupResult);
@@ -4313,6 +4372,7 @@ var SideBarDefParser = /** @class */ (function () {
4313
4372
  if (typeof it === 'string') {
4314
4373
  var lookupResult = SideBarDefParser.DEFAULT_BY_KEY[it];
4315
4374
  if (!lookupResult) {
4375
+ 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(','));
4316
4376
  return;
4317
4377
  }
4318
4378
  toAdd = lookupResult;
@@ -4909,6 +4969,7 @@ var GridOptionsWrapper = /** @class */ (function () {
4909
4969
  this.destroyed = true;
4910
4970
  };
4911
4971
  GridOptionsWrapper.prototype.init = function () {
4972
+ var _this = this;
4912
4973
  if (this.gridOptions.suppressPropertyNamesCheck !== true) {
4913
4974
  this.checkGridOptionsProperties();
4914
4975
  this.checkColumnDefProperties();
@@ -4919,26 +4980,61 @@ var GridOptionsWrapper = /** @class */ (function () {
4919
4980
  }
4920
4981
  var async = this.useAsyncEvents();
4921
4982
  this.eventService.addGlobalListener(this.globalEventHandler.bind(this), async);
4922
- if (this.isGroupSelectsChildren() && this.isSuppressParentsInRowNodes()) ;
4983
+ if (this.isGroupSelectsChildren() && this.isSuppressParentsInRowNodes()) {
4984
+ console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work");
4985
+ }
4923
4986
  if (this.isGroupSelectsChildren()) {
4924
- if (!this.isRowSelectionMulti()) ;
4925
- if (this.isRowModelServerSide()) ;
4987
+ if (!this.isRowSelectionMulti()) {
4988
+ console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense");
4989
+ }
4990
+ if (this.isRowModelServerSide()) {
4991
+ console.warn('AG Grid: group selects children is NOT support for Server Side Row Model. ' +
4992
+ 'This is because the rows are lazy loaded, so selecting a group is not possible as' +
4993
+ 'the grid has no way of knowing what the children are.');
4994
+ }
4995
+ }
4996
+ if (this.isGroupRemoveSingleChildren() && this.isGroupHideOpenParents()) {
4997
+ 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!");
4926
4998
  }
4927
- if (this.isGroupRemoveSingleChildren() && this.isGroupHideOpenParents()) ;
4928
4999
  if (this.isRowModelServerSide()) {
4929
- if (exists(this.gridOptions.groupDefaultExpanded)) ;
4930
- if (exists(this.gridOptions.groupDefaultExpanded)) ;
4931
- if (exists(this.gridOptions.groupDefaultExpanded)) ;
5000
+ var msg = function (prop) { return "AG Grid: '" + prop + "' is not supported on the Server-Side Row Model"; };
5001
+ if (exists(this.gridOptions.groupDefaultExpanded)) {
5002
+ console.warn(msg('groupDefaultExpanded'));
5003
+ }
5004
+ if (exists(this.gridOptions.groupDefaultExpanded)) {
5005
+ console.warn(msg('groupIncludeFooter'));
5006
+ }
5007
+ if (exists(this.gridOptions.groupDefaultExpanded)) {
5008
+ console.warn(msg('groupIncludeTotalFooter'));
5009
+ }
4932
5010
  }
4933
5011
  if (isTrue(this.gridOptions.enableRangeSelection)) {
4934
5012
  ModuleRegistry.assertRegistered(ModuleNames.RangeSelectionModule, 'enableRangeSelection');
4935
5013
  }
4936
- else if (this.isEnableRangeHandle() || this.isEnableFillHandle()) ;
5014
+ else if (this.isEnableRangeHandle() || this.isEnableFillHandle()) {
5015
+ console.warn("AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");
5016
+ }
4937
5017
  if (this.isGroupRowsSticky()) {
4938
- if (this.isGroupHideOpenParents()) ;
4939
- if (this.isMasterDetail()) ;
4940
- if (this.isPagination()) ;
5018
+ if (this.isGroupHideOpenParents()) {
5019
+ console.warn("AG Grid: groupRowsSticky and groupHideOpenParents do not work with each other, you need to pick one.");
5020
+ }
5021
+ if (this.isMasterDetail()) {
5022
+ console.warn("AG Grid: groupRowsSticky and masterDetail do not work with each other, you need to pick one.");
5023
+ }
5024
+ if (this.isPagination()) {
5025
+ console.warn("AG Grid: groupRowsSticky and pagination do not work with each other, you need to pick one.");
5026
+ }
4941
5027
  }
5028
+ var warnOfDeprecaredIcon = function (name) {
5029
+ if (_this.gridOptions.icons && _this.gridOptions.icons[name]) {
5030
+ 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/");
5031
+ }
5032
+ };
5033
+ warnOfDeprecaredIcon('radioButtonOff');
5034
+ warnOfDeprecaredIcon('radioButtonOn');
5035
+ warnOfDeprecaredIcon('checkboxChecked');
5036
+ warnOfDeprecaredIcon('checkboxUnchecked');
5037
+ warnOfDeprecaredIcon('checkboxIndeterminate');
4942
5038
  // sets an initial calculation for the scrollbar width
4943
5039
  this.getScrollbarWidth();
4944
5040
  };
@@ -4962,7 +5058,11 @@ var GridOptionsWrapper = /** @class */ (function () {
4962
5058
  GridOptionsWrapper.prototype.checkProperties = function (userProperties, validPropertiesAndExceptions, validProperties, containerName, docsUrl) {
4963
5059
  var invalidProperties = fuzzyCheckStrings(userProperties, validPropertiesAndExceptions, validProperties);
4964
5060
  iterateObject(invalidProperties, function (key, value) {
5061
+ console.warn("ag-grid: invalid " + containerName + " property '" + key + "' did you mean any of these: " + value.slice(0, 8).join(", "));
4965
5062
  });
5063
+ if (Object.keys(invalidProperties).length > 0) {
5064
+ console.warn("ag-grid: to see all the valid " + containerName + " properties please check: " + docsUrl);
5065
+ }
4966
5066
  };
4967
5067
  /**
4968
5068
  * Wrap the user callback and attach the api, columnApi and context to the params object on the way through.
@@ -5221,7 +5321,7 @@ var GridOptionsWrapper = /** @class */ (function () {
5221
5321
  ];
5222
5322
  if (validLayouts.indexOf(domLayout) === -1) {
5223
5323
  doOnce(function () {
5224
- return (void 0);
5324
+ 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);
5225
5325
  }, 'warn about dom layout values');
5226
5326
  return Constants.DOM_LAYOUT_NORMAL;
5227
5327
  }
@@ -5616,7 +5716,7 @@ var GridOptionsWrapper = /** @class */ (function () {
5616
5716
  return 'xy';
5617
5717
  }
5618
5718
  if (direction !== 'x' && direction !== 'y' && direction !== 'xy') {
5619
- doOnce(function () { return (void 0); }, 'warn invalid fill direction');
5719
+ doOnce(function () { return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'."); }, 'warn invalid fill direction');
5620
5720
  return 'xy';
5621
5721
  }
5622
5722
  return direction;
@@ -5715,6 +5815,7 @@ var GridOptionsWrapper = /** @class */ (function () {
5715
5815
  };
5716
5816
  GridOptionsWrapper.prototype.getDefaultExportParams = function (type) {
5717
5817
  if (this.gridOptions.defaultExportParams) {
5818
+ console.warn("AG Grid: Since v25.2 `defaultExportParams` has been replaced by `default" + capitalise(type) + "ExportParams`'");
5718
5819
  if (type === 'csv') {
5719
5820
  return this.gridOptions.defaultExportParams;
5720
5821
  }
@@ -5847,7 +5948,7 @@ var GridOptionsWrapper = /** @class */ (function () {
5847
5948
  GridOptionsWrapper.prototype.isServerSideSortAllLevels = function () {
5848
5949
  var isEnabled = isTrue(this.gridOptions.serverSideSortAllLevels);
5849
5950
  if (!this.isRowModelServerSide() && isEnabled) {
5850
- doOnce(function () { return (void 0); }, 'serverSideSortAllLevels');
5951
+ doOnce(function () { return console.warn('AG Grid: The `serverSideSortAllLevels` property can only be used with the server side row model.'); }, 'serverSideSortAllLevels');
5851
5952
  return false;
5852
5953
  }
5853
5954
  return isEnabled;
@@ -5855,7 +5956,7 @@ var GridOptionsWrapper = /** @class */ (function () {
5855
5956
  GridOptionsWrapper.prototype.isServerSideFilterAllLevels = function () {
5856
5957
  var isEnabled = isTrue(this.gridOptions.serverSideFilterAllLevels);
5857
5958
  if (!this.isRowModelServerSide() && isEnabled) {
5858
- doOnce(function () { return (void 0); }, 'serverSideFilterAllLevels');
5959
+ doOnce(function () { return console.warn('AG Grid: The `serverSideFilterAllLevels` property can only be used with the server side row model.'); }, 'serverSideFilterAllLevels');
5859
5960
  return false;
5860
5961
  }
5861
5962
  return isEnabled;
@@ -5863,11 +5964,11 @@ var GridOptionsWrapper = /** @class */ (function () {
5863
5964
  GridOptionsWrapper.prototype.isServerSideSortOnServer = function () {
5864
5965
  var isEnabled = isTrue(this.gridOptions.serverSideSortOnServer);
5865
5966
  if (!this.isRowModelServerSide() && isEnabled) {
5866
- doOnce(function () { return (void 0); }, 'serverSideSortOnServerRowModel');
5967
+ doOnce(function () { return console.warn('AG Grid: The `serverSideSortOnServer` property can only be used with the server side row model.'); }, 'serverSideSortOnServerRowModel');
5867
5968
  return false;
5868
5969
  }
5869
5970
  if (this.isTreeData() && isEnabled) {
5870
- doOnce(function () { return (void 0); }, 'serverSideSortOnServerTreeData');
5971
+ doOnce(function () { return console.warn('AG Grid: The `serverSideSortOnServer` property cannot be used while using tree data.'); }, 'serverSideSortOnServerTreeData');
5871
5972
  return false;
5872
5973
  }
5873
5974
  return isEnabled;
@@ -5875,11 +5976,11 @@ var GridOptionsWrapper = /** @class */ (function () {
5875
5976
  GridOptionsWrapper.prototype.isServerSideFilterOnServer = function () {
5876
5977
  var isEnabled = isTrue(this.gridOptions.serverSideFilterOnServer);
5877
5978
  if (!this.isRowModelServerSide() && isEnabled) {
5878
- doOnce(function () { return (void 0); }, 'serverSideFilterOnServerRowModel');
5979
+ doOnce(function () { return console.warn('AG Grid: The `serverSideFilterOnServer` property can only be used with the server side row model.'); }, 'serverSideFilterOnServerRowModel');
5879
5980
  return false;
5880
5981
  }
5881
5982
  if (this.isTreeData() && isEnabled) {
5882
- doOnce(function () { return (void 0); }, 'serverSideFilterOnServerTreeData');
5983
+ doOnce(function () { return console.warn('AG Grid: The `serverSideFilterOnServer` property cannot be used while using tree data.'); }, 'serverSideFilterOnServerTreeData');
5883
5984
  return false;
5884
5985
  }
5885
5986
  return isEnabled;
@@ -5988,7 +6089,7 @@ var GridOptionsWrapper = /** @class */ (function () {
5988
6089
  var capitalisedType = capitalise(type);
5989
6090
  if (exists(delay)) {
5990
6091
  if (delay < 0) {
5991
- doOnce(function () { return (void 0); }, "tooltip" + capitalisedType + "DelayWarn");
6092
+ doOnce(function () { return console.warn("ag-grid: tooltip" + capitalisedType + "Delay should not be lower than 0"); }, "tooltip" + capitalisedType + "DelayWarn");
5992
6093
  }
5993
6094
  return Math.max(200, delay);
5994
6095
  }
@@ -6039,7 +6140,7 @@ var GridOptionsWrapper = /** @class */ (function () {
6039
6140
  var rowBuffer = this.gridOptions.rowBuffer;
6040
6141
  if (typeof rowBuffer === 'number') {
6041
6142
  if (rowBuffer < 0) {
6042
- doOnce(function () { return (void 0); }, 'warn rowBuffer negative');
6143
+ doOnce(function () { return console.warn("AG Grid: rowBuffer should not be negative"); }, 'warn rowBuffer negative');
6043
6144
  this.gridOptions.rowBuffer = rowBuffer = 0;
6044
6145
  }
6045
6146
  }
@@ -6073,23 +6174,45 @@ var GridOptionsWrapper = /** @class */ (function () {
6073
6174
  // casting to generic object, so typescript compiles even though
6074
6175
  // we are looking for attributes that don't exist
6075
6176
  var options = this.gridOptions;
6177
+ if (options.deprecatedEmbedFullWidthRows) {
6178
+ console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows.");
6179
+ }
6180
+ if (options.rowDeselection) {
6181
+ 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.');
6182
+ }
6076
6183
  if (options.enableMultiRowDragging) {
6077
6184
  options.rowDragMultiRow = true;
6078
6185
  delete options.enableMultiRowDragging;
6186
+ console.warn('AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`.');
6079
6187
  }
6080
6188
  var checkRenamedProperty = function (oldProp, newProp, version) {
6081
6189
  if (options[oldProp] != null) {
6190
+ console.warn("AG Grid: since version " + version + ", '" + oldProp + "' is deprecated / renamed, please use the new property name '" + newProp + "' instead.");
6082
6191
  if (options[newProp] == null) {
6083
6192
  options[newProp] = options[oldProp];
6084
6193
  }
6085
6194
  }
6086
6195
  };
6087
- checkRenamedProperty('batchUpdateWaitMillis', 'asyncTransactionWaitMillis');
6088
- checkRenamedProperty('deltaRowDataMode', 'immutableData');
6089
- checkRenamedProperty('serverSideFilteringAlwaysResets', 'serverSideFilterAllLevels');
6090
- checkRenamedProperty('serverSideSortingAlwaysResets', 'serverSideSortAllLevels');
6091
- checkRenamedProperty('suppressSetColumnStateEvents', 'suppressColumnStateEvents');
6196
+ checkRenamedProperty('batchUpdateWaitMillis', 'asyncTransactionWaitMillis', '23.1.x');
6197
+ checkRenamedProperty('deltaRowDataMode', 'immutableData', '23.1.x');
6198
+ checkRenamedProperty('serverSideFilteringAlwaysResets', 'serverSideFilterAllLevels', '28.0.0');
6199
+ checkRenamedProperty('serverSideSortingAlwaysResets', 'serverSideSortAllLevels', '28.0.0');
6200
+ if (options.immutableColumns || options.deltaColumnMode) {
6201
+ 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');
6202
+ }
6203
+ checkRenamedProperty('suppressSetColumnStateEvents', 'suppressColumnStateEvents', '24.0.x');
6092
6204
  if (options.groupRowInnerRenderer || options.groupRowInnerRendererParams || options.groupRowInnerRendererFramework) {
6205
+ console.warn('AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used.');
6206
+ console.warn(' Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams.');
6207
+ console.warn(' For example instead of this:');
6208
+ console.warn(' groupRowInnerRenderer: "myRenderer"');
6209
+ console.warn(' groupRowInnerRendererParams: {x: a}');
6210
+ console.warn(' Replace with this:');
6211
+ console.warn(' groupRowRendererParams: {');
6212
+ console.warn(' innerRenderer: "myRenderer",');
6213
+ console.warn(' innerRendererParams: {x: a}');
6214
+ console.warn(' }');
6215
+ console.warn(' We have copied the properties over for you. However to stop this error message, please change your application code.');
6093
6216
  if (!options.groupRowRendererParams) {
6094
6217
  options.groupRowRendererParams = {};
6095
6218
  }
@@ -6104,36 +6227,105 @@ var GridOptionsWrapper = /** @class */ (function () {
6104
6227
  params.innerRendererFramework = options.groupRowInnerRendererFramework;
6105
6228
  }
6106
6229
  }
6230
+ if (options.rememberGroupStateWhenNewData) {
6231
+ 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.');
6232
+ }
6107
6233
  if (options.detailCellRendererParams && options.detailCellRendererParams.autoHeight) {
6234
+ 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');
6108
6235
  options.detailRowAutoHeight = true;
6109
6236
  }
6237
+ if (options.suppressKeyboardEvent) {
6238
+ 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.");
6239
+ }
6240
+ if (options.suppressEnterpriseResetOnNewColumns) {
6241
+ 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.');
6242
+ }
6243
+ if (options.suppressColumnStateEvents) {
6244
+ 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');
6245
+ }
6246
+ if (options.defaultExportParams) {
6247
+ console.warn('AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`.');
6248
+ }
6110
6249
  if (options.stopEditingWhenGridLosesFocus) {
6250
+ console.warn('AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`.');
6111
6251
  options.stopEditingWhenCellsLoseFocus = true;
6112
6252
  }
6253
+ if (options.applyColumnDefOrder) {
6254
+ 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');
6255
+ }
6113
6256
  if (options.groupMultiAutoColumn) {
6257
+ console.warn("AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`");
6114
6258
  options.groupDisplayType = 'multipleColumns';
6115
6259
  }
6116
6260
  if (options.groupUseEntireRow) {
6261
+ console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`");
6117
6262
  options.groupDisplayType = 'groupRows';
6118
6263
  }
6119
6264
  if (options.groupSuppressAutoColumn) {
6265
+ var propName = options.treeData ? 'treeDataDisplayType' : 'groupDisplayType';
6266
+ console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `" + propName + " = 'custom'`");
6120
6267
  options.groupDisplayType = 'custom';
6121
6268
  }
6269
+ if (options.defaultGroupOrderComparator) {
6270
+ 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.");
6271
+ }
6122
6272
  if (options.defaultGroupSortComparator) {
6273
+ console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `initialGroupOrderComparator`");
6123
6274
  options.defaultGroupOrderComparator = options.defaultGroupSortComparator;
6124
6275
  }
6276
+ if (options.groupRowAggNodes) {
6277
+ 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.");
6278
+ }
6279
+ if (options.postSort) {
6280
+ 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.");
6281
+ }
6282
+ if (options.isFullWidthCell) {
6283
+ 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.");
6284
+ }
6285
+ if (options.localeTextFunc) {
6286
+ 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.");
6287
+ }
6288
+ if (options.colWidth) {
6289
+ console.warn('AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`.');
6290
+ }
6291
+ if (options.minColWidth) {
6292
+ console.warn('AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`.');
6293
+ }
6294
+ if (options.maxColWidth) {
6295
+ console.warn('AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`.');
6296
+ }
6297
+ if (options.reactUi) {
6298
+ 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.');
6299
+ }
6300
+ if (options.suppressReactUi) {
6301
+ console.warn('AG Grid: The legacy React rendering engine is deprecated and will be removed in the next major version of the grid.');
6302
+ }
6125
6303
  if (options.suppressCellSelection) {
6304
+ console.warn('AG Grid: since v27.0, `suppressCellSelection` has been replaced by `suppressCellFocus`.');
6126
6305
  options.suppressCellFocus = options.suppressCellSelection;
6127
6306
  }
6307
+ if (options.getRowNodeId) {
6308
+ 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.');
6309
+ }
6310
+ if (options.immutableData) {
6311
+ if (options.getRowId) {
6312
+ 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`.');
6313
+ }
6314
+ else {
6315
+ console.warn('AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.');
6316
+ }
6317
+ }
6128
6318
  if (options.clipboardDeliminator) {
6319
+ console.warn('AG Grid: since v27.1, `clipboardDeliminator` has been replaced by `clipboardDelimiter`.');
6129
6320
  options.clipboardDelimiter = options.clipboardDeliminator;
6130
6321
  }
6131
- checkRenamedProperty('processSecondaryColDef', 'processPivotResultColDef');
6132
- checkRenamedProperty('processSecondaryColGroupDef', 'processPivotResultColGroupDef');
6322
+ checkRenamedProperty('processSecondaryColDef', 'processPivotResultColDef', '28.0.x');
6323
+ checkRenamedProperty('processSecondaryColGroupDef', 'processPivotResultColGroupDef', '28.0.x');
6133
6324
  if (options.serverSideStoreType) {
6325
+ 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.');
6134
6326
  options.serverSideInfiniteScroll = options.serverSideStoreType === 'partial';
6135
6327
  }
6136
- checkRenamedProperty('getServerSideStoreParams', 'getServerSideGroupLevelParams');
6328
+ checkRenamedProperty('getServerSideStoreParams', 'getServerSideGroupLevelParams', '28.0.x');
6137
6329
  };
6138
6330
  GridOptionsWrapper.prototype.checkForViolations = function () {
6139
6331
  if (this.isTreeData()) {
@@ -6142,11 +6334,20 @@ var GridOptionsWrapper = /** @class */ (function () {
6142
6334
  };
6143
6335
  GridOptionsWrapper.prototype.treeDataViolations = function () {
6144
6336
  if (this.isRowModelDefault()) {
6145
- if (missing(this.getDataPathFunc())) ;
6337
+ if (missing(this.getDataPathFunc())) {
6338
+ console.warn('AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not ' +
6339
+ 'provide getDataPath function, please provide getDataPath function if using tree data.');
6340
+ }
6146
6341
  }
6147
6342
  if (this.isRowModelServerSide()) {
6148
- if (missing(this.getIsServerSideGroupFunc())) ;
6149
- if (missing(this.getServerSideGroupKeyFunc())) ;
6343
+ if (missing(this.getIsServerSideGroupFunc())) {
6344
+ console.warn('AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not ' +
6345
+ 'provide isServerSideGroup function, please provide isServerSideGroup function if using tree data.');
6346
+ }
6347
+ if (missing(this.getServerSideGroupKeyFunc())) {
6348
+ console.warn('AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not ' +
6349
+ 'provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data.');
6350
+ }
6150
6351
  }
6151
6352
  };
6152
6353
  GridOptionsWrapper.prototype.getLocaleTextFunc = function () {
@@ -6215,6 +6416,7 @@ var GridOptionsWrapper = /** @class */ (function () {
6215
6416
  this.setRowHeightVariable(rowHeight);
6216
6417
  return rowHeight;
6217
6418
  }
6419
+ console.warn('AG Grid row height must be a number if not using standard row model');
6218
6420
  return this.getDefaultRowHeight();
6219
6421
  };
6220
6422
  GridOptionsWrapper.prototype.isGetRowHeightFunction = function () {
@@ -6239,7 +6441,7 @@ var GridOptionsWrapper = /** @class */ (function () {
6239
6441
  var height = this.mergeGridCommonParams(this.gridOptions.getRowHeight)(params);
6240
6442
  if (this.isNumeric(height)) {
6241
6443
  if (height === 0) {
6242
- doOnce(function () { return (void 0); }, 'invalidRowHeight');
6444
+ 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');
6243
6445
  }
6244
6446
  return { height: Math.max(1, height), estimated: false };
6245
6447
  }
@@ -6284,6 +6486,7 @@ var GridOptionsWrapper = /** @class */ (function () {
6284
6486
  GridOptionsWrapper.prototype.matchesGroupDisplayType = function (toMatch, supplied) {
6285
6487
  var groupDisplayTypeValues = ['groupRows', 'multipleColumns', 'custom', 'singleColumn'];
6286
6488
  if (groupDisplayTypeValues.indexOf(supplied) < 0) {
6489
+ console.warn("AG Grid: '" + supplied + "' is not a valid groupDisplayType value - possible values are: '" + groupDisplayTypeValues.join("', '") + "'");
6287
6490
  return false;
6288
6491
  }
6289
6492
  return supplied === toMatch;
@@ -6291,6 +6494,7 @@ var GridOptionsWrapper = /** @class */ (function () {
6291
6494
  GridOptionsWrapper.prototype.matchesTreeDataDisplayType = function (toMatch, supplied) {
6292
6495
  var treeDataDisplayTypeValues = ['auto', 'custom'];
6293
6496
  if (treeDataDisplayTypeValues.indexOf(supplied) < 0) {
6497
+ console.warn("AG Grid: '" + supplied + "' is not a valid treeDataDisplayType value - possible values are: '" + treeDataDisplayTypeValues.join("', '") + "'");
6294
6498
  return false;
6295
6499
  }
6296
6500
  return supplied === toMatch;
@@ -6675,6 +6879,7 @@ var ColumnModel = /** @class */ (function (_super) {
6675
6879
  };
6676
6880
  ColumnModel.prototype.isPivotSettingAllowed = function (pivot) {
6677
6881
  if (pivot && this.gridOptionsWrapper.isTreeData()) {
6882
+ console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'");
6678
6883
  return false;
6679
6884
  }
6680
6885
  return true;
@@ -7305,6 +7510,7 @@ var ColumnModel = /** @class */ (function (_super) {
7305
7510
  if (loopCount > 1000) {
7306
7511
  // this should never happen, but in the future, someone might introduce a bug here,
7307
7512
  // so we stop the browser from hanging and report bug properly
7513
+ console.error('AG Grid: infinite loop in resizeColumnSets');
7308
7514
  return "break";
7309
7515
  }
7310
7516
  finishedColsGrew = false;
@@ -7422,6 +7628,8 @@ var ColumnModel = /** @class */ (function (_super) {
7422
7628
  if (source === void 0) { source = "api"; }
7423
7629
  this.columnAnimationService.start();
7424
7630
  if (toIndex > this.gridColumns.length - columnsToMoveKeys.length) {
7631
+ console.warn('AG Grid: tried to insert columns in invalid location, toIndex = ' + toIndex);
7632
+ console.warn('AG Grid: remember that you should not count the moving columns when calculating the new index');
7425
7633
  return;
7426
7634
  }
7427
7635
  // we want to pull all the columns out first and put them into an ordered list
@@ -7674,6 +7882,7 @@ var ColumnModel = /** @class */ (function (_super) {
7674
7882
  ColumnModel.prototype.setColumnsPinned = function (keys, pinned, source) {
7675
7883
  if (source === void 0) { source = "api"; }
7676
7884
  if (this.gridOptionsWrapper.getDomLayout() === 'print') {
7885
+ console.warn("Changing the column pinning status is not allowed with domLayout='print'");
7677
7886
  return;
7678
7887
  }
7679
7888
  this.columnAnimationService.start();
@@ -7943,6 +8152,7 @@ var ColumnModel = /** @class */ (function (_super) {
7943
8152
  return false;
7944
8153
  }
7945
8154
  if (params && params.state && !params.state.forEach) {
8155
+ 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.');
7946
8156
  return false;
7947
8157
  }
7948
8158
  var applyStates = function (states, existingColumns, getById) {
@@ -8089,6 +8299,7 @@ var ColumnModel = /** @class */ (function (_super) {
8089
8299
  // is less sexy for the code here, but it keeps consistency.
8090
8300
  newOrder = this.placeLockedColumns(newOrder);
8091
8301
  if (!this.doesMovePassMarryChildren(newOrder)) {
8302
+ console.warn('AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.');
8092
8303
  return;
8093
8304
  }
8094
8305
  this.gridColumns = newOrder;
@@ -8340,7 +8551,11 @@ var ColumnModel = /** @class */ (function (_super) {
8340
8551
  }
8341
8552
  }
8342
8553
  else {
8343
- if (exists(aggFunc)) ;
8554
+ if (exists(aggFunc)) {
8555
+ console.warn('AG Grid: stateItem.aggFunc must be a string. if using your own aggregation ' +
8556
+ 'functions, register the functions first before using them in get/set state. This is because it is ' +
8557
+ 'intended for the column state to be stored and retrieved as simple JSON.');
8558
+ }
8344
8559
  // Note: we do not call column.setAggFunc(null), so that next time we aggregate
8345
8560
  // by this column (eg drag the column to the agg section int he toolpanel) it will
8346
8561
  // default to the last aggregation function.
@@ -8408,6 +8623,9 @@ var ColumnModel = /** @class */ (function (_super) {
8408
8623
  return null;
8409
8624
  }
8410
8625
  var column = this.getGridColumn(key);
8626
+ if (!column) {
8627
+ console.warn('AG Grid: could not find column ' + key);
8628
+ }
8411
8629
  return column;
8412
8630
  };
8413
8631
  ColumnModel.prototype.getPrimaryColumn = function (key) {
@@ -8510,6 +8728,7 @@ var ColumnModel = /** @class */ (function (_super) {
8510
8728
  // valueGetter is an expression, so execute the expression
8511
8729
  return this.expressionService.evaluate(headerValueGetter, params);
8512
8730
  }
8731
+ console.warn('ag-grid: headerValueGetter must be a function or a string');
8513
8732
  return '';
8514
8733
  }
8515
8734
  else if (colDef.headerName != null) {
@@ -8804,6 +9023,10 @@ var ColumnModel = /** @class */ (function (_super) {
8804
9023
  this.setColumnGroupState([{ groupId: keyAsString, open: newValue }], source);
8805
9024
  };
8806
9025
  ColumnModel.prototype.getProvidedColumnGroup = function (key) {
9026
+ // if (key instanceof ProvidedColumnGroup) { return key; }
9027
+ if (typeof key !== 'string') {
9028
+ console.error('AG Grid: group key must be a string');
9029
+ }
8807
9030
  // otherwise, search for the column group by id
8808
9031
  var res = null;
8809
9032
  this.columnUtils.depthFirstOriginalTreeSearch(null, this.gridBalancedTree, function (node) {
@@ -9014,7 +9237,8 @@ var ColumnModel = /** @class */ (function (_super) {
9014
9237
  var rowModelType = this.rowModel.getType();
9015
9238
  var supportedRowModel = rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE || rowModelType === Constants.ROW_MODEL_TYPE_SERVER_SIDE;
9016
9239
  if (!supportedRowModel) {
9017
- doOnce(function () { return (void 0); }, 'autoHeightActive.wrongRowModel');
9240
+ var message_1 = 'AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.';
9241
+ doOnce(function () { return console.warn(message_1); }, 'autoHeightActive.wrongRowModel');
9018
9242
  }
9019
9243
  }
9020
9244
  };
@@ -10006,6 +10230,7 @@ var DisplayedGroupCreator = /** @class */ (function (_super) {
10006
10230
  if (found) {
10007
10231
  return result;
10008
10232
  }
10233
+ console.warn('AG Grid: could not get path');
10009
10234
  return null;
10010
10235
  };
10011
10236
  DisplayedGroupCreator = __decorate$36([
@@ -11689,12 +11914,14 @@ function createIconNoSpan(iconName, gridOptionsWrapper, column, forceCreate) {
11689
11914
  if (isNodeOrElement(rendererResult)) {
11690
11915
  return rendererResult;
11691
11916
  }
11917
+ console.warn('AG Grid: iconRenderer should return back a string or a dom object');
11692
11918
  }
11693
11919
  else {
11694
11920
  var span = document.createElement('span');
11695
11921
  var cssClass = iconNameClassMap[iconName];
11696
11922
  if (!cssClass) {
11697
11923
  if (!forceCreate) {
11924
+ console.warn("AG Grid: Did not find icon " + iconName);
11698
11925
  cssClass = '';
11699
11926
  }
11700
11927
  else {
@@ -12133,6 +12360,7 @@ var AgPromise = /** @class */ (function () {
12133
12360
  this.waiters.forEach(function (waiter) { return waiter(value); });
12134
12361
  };
12135
12362
  AgPromise.prototype.onReject = function (params) {
12363
+ console.warn('TBI');
12136
12364
  };
12137
12365
  return AgPromise;
12138
12366
  }());
@@ -12758,9 +12986,11 @@ function RefSelector(ref) {
12758
12986
  }
12759
12987
  function querySelectorFunc(selector, refSelector, classPrototype, methodOrAttributeName, index) {
12760
12988
  if (selector === null) {
12989
+ console.error('AG Grid: QuerySelector selector should not be null');
12761
12990
  return;
12762
12991
  }
12763
12992
  if (typeof index === 'number') {
12993
+ console.error('AG Grid: QuerySelector should be on an attribute');
12764
12994
  return;
12765
12995
  }
12766
12996
  addToObjectProps(classPrototype, 'querySelectors', {
@@ -12995,8 +13225,12 @@ var OptionsFactory = /** @class */ (function () {
12995
13225
  this.checkForDeprecatedParams();
12996
13226
  };
12997
13227
  OptionsFactory.prototype.checkForDeprecatedParams = function () {
12998
- if (this.filterOptions.some(function (opt) { return typeof opt != 'string' && opt.test != null; })) ;
12999
- if (this.filterOptions.some(function (opt) { return typeof opt != 'string' && opt.hideFilterInput != null; })) ;
13228
+ if (this.filterOptions.some(function (opt) { return typeof opt != 'string' && opt.test != null; })) {
13229
+ console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate().");
13230
+ }
13231
+ if (this.filterOptions.some(function (opt) { return typeof opt != 'string' && opt.hideFilterInput != null; })) {
13232
+ console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.");
13233
+ }
13000
13234
  };
13001
13235
  OptionsFactory.prototype.getFilterOptions = function () {
13002
13236
  return this.filterOptions;
@@ -13013,6 +13247,7 @@ var OptionsFactory = /** @class */ (function () {
13013
13247
  var requiredProperties = [['displayKey'], ['displayName'], ['predicate', 'test']];
13014
13248
  var propertyCheck = function (keys) {
13015
13249
  if (!keys.some(function (key) { return filterOption[key] != null; })) {
13250
+ console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '" + keys + "'");
13016
13251
  return false;
13017
13252
  }
13018
13253
  return true;
@@ -13046,9 +13281,13 @@ var OptionsFactory = /** @class */ (function () {
13046
13281
  else if (firstFilterOption.displayKey) {
13047
13282
  this.defaultOption = firstFilterOption.displayKey;
13048
13283
  }
13049
- else ;
13284
+ else {
13285
+ console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'");
13286
+ }
13287
+ }
13288
+ else {
13289
+ console.warn('AG Grid: no filter options for filter');
13050
13290
  }
13051
- else ;
13052
13291
  };
13053
13292
  OptionsFactory.prototype.getDefaultOption = function () {
13054
13293
  return this.defaultOption;
@@ -13311,6 +13550,7 @@ var ProvidedFilter = /** @class */ (function (_super) {
13311
13550
  clickListener = function (e) { _this.onBtCancel(e); };
13312
13551
  break;
13313
13552
  default:
13553
+ console.warn('AG Grid: Unknown button type specified');
13314
13554
  return;
13315
13555
  }
13316
13556
  var buttonType = type === 'apply' ? 'submit' : 'button';
@@ -13451,6 +13691,9 @@ var ProvidedFilter = /** @class */ (function (_super) {
13451
13691
  // static, as used by floating filter also
13452
13692
  ProvidedFilter.getDebounceMs = function (params, debounceDefault) {
13453
13693
  if (ProvidedFilter.isUseApplyButton(params)) {
13694
+ if (params.debounceMs != null) {
13695
+ console.warn('AG Grid: debounceMs is ignored when apply button is present');
13696
+ }
13454
13697
  return 0;
13455
13698
  }
13456
13699
  return params.debounceMs != null ? params.debounceMs : debounceDefault;
@@ -14827,6 +15070,7 @@ var ScalarFilter = /** @class */ (function (_super) {
14827
15070
  case ScalarFilter.NOT_BLANK:
14828
15071
  return !this.isBlank(cellValue);
14829
15072
  default:
15073
+ console.warn('AG Grid: Unexpected type of filter "' + filterModel.type + '", it looks like the filter was configured with incorrect Filter Options');
14830
15074
  return true;
14831
15075
  }
14832
15076
  };
@@ -14920,11 +15164,17 @@ var DateFilter = /** @class */ (function (_super) {
14920
15164
  if (!isNaN(params[param])) {
14921
15165
  return params[param] == null ? fallback : Number(params[param]);
14922
15166
  }
15167
+ else {
15168
+ console.warn("AG Grid: DateFilter " + param + " is not a number");
15169
+ }
14923
15170
  }
14924
15171
  return fallback;
14925
15172
  };
14926
15173
  this.minValidYear = yearParser('minValidYear', DEFAULT_MIN_YEAR);
14927
15174
  this.maxValidYear = yearParser('maxValidYear', DEFAULT_MAX_YEAR);
15175
+ if (this.minValidYear > this.maxValidYear) {
15176
+ console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear");
15177
+ }
14928
15178
  this.createDateComponents();
14929
15179
  };
14930
15180
  DateFilter.prototype.createDateComponents = function () {
@@ -15625,7 +15875,7 @@ var TextFilter = /** @class */ (function (_super) {
15625
15875
  TextFilter.prototype.getTextMatcher = function () {
15626
15876
  var legacyComparator = this.textFilterParams.textCustomComparator;
15627
15877
  if (legacyComparator) {
15628
- _.doOnce(function () { return (void 0); }, 'textCustomComparator.deprecated');
15878
+ _.doOnce(function () { return console.warn('AG Grid - textCustomComparator is deprecated, use textMatcher instead.'); }, 'textCustomComparator.deprecated');
15629
15879
  return function (_a) {
15630
15880
  var filterOption = _a.filterOption, value = _a.value, filterText = _a.filterText;
15631
15881
  return legacyComparator(filterOption, value, filterText);
@@ -16551,7 +16801,8 @@ var HeaderGroupComp = /** @class */ (function (_super) {
16551
16801
  HeaderGroupComp.prototype.checkWarnings = function () {
16552
16802
  var paramsAny = this.params;
16553
16803
  if (paramsAny.template) {
16554
- doOnce(function () { return (void 0); }, 'HeaderGroupComp.templateNotSupported');
16804
+ var message_1 = "AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)";
16805
+ doOnce(function () { return console.warn(message_1); }, 'HeaderGroupComp.templateNotSupported');
16555
16806
  }
16556
16807
  };
16557
16808
  HeaderGroupComp.prototype.setupExpandIcons = function () {
@@ -16782,6 +17033,7 @@ var SelectCellEditor = /** @class */ (function (_super) {
16782
17033
  var _this = this;
16783
17034
  this.focusAfterAttached = params.cellStartedEdit;
16784
17035
  if (missing(params.values)) {
17036
+ console.warn('AG Grid: no values found for select cellEditor');
16785
17037
  return;
16786
17038
  }
16787
17039
  this.startedByEnter = params.eventKey != null ? params.eventKey === KeyCode.ENTER : false;
@@ -16855,7 +17107,7 @@ var PopupSelectCellEditor = /** @class */ (function (_super) {
16855
17107
  __extends$2_(PopupSelectCellEditor, _super);
16856
17108
  function PopupSelectCellEditor() {
16857
17109
  var _this = _super.call(this) || this;
16858
- doOnce(function () { return (void 0); }, 'PopupSelectCellEditor.deprecated');
17110
+ doOnce(function () { return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: "agSelectCellEditor", cellEditorPopup: true} '); }, 'PopupSelectCellEditor.deprecated');
16859
17111
  return _this;
16860
17112
  }
16861
17113
  PopupSelectCellEditor.prototype.isPopup = function () {
@@ -17009,7 +17261,7 @@ var PopupTextCellEditor = /** @class */ (function (_super) {
17009
17261
  __extends$2Y(PopupTextCellEditor, _super);
17010
17262
  function PopupTextCellEditor() {
17011
17263
  var _this = _super.call(this) || this;
17012
- doOnce(function () { return (void 0); }, 'PopupTextCellEditor.deprecated');
17264
+ doOnce(function () { return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: "agTextCellEditor", cellEditorPopup: true} '); }, 'PopupTextCellEditor.deprecated');
17013
17265
  return _this;
17014
17266
  }
17015
17267
  PopupTextCellEditor.prototype.isPopup = function () {
@@ -17386,7 +17638,9 @@ var RowNode = /** @class */ (function () {
17386
17638
  });
17387
17639
  // make sure id provided doesn't start with 'row-group-' as this is reserved. also check that
17388
17640
  // it has 'startsWith' in case the user provided a number.
17389
- if (this.id !== null && typeof this.id === 'string' && this.id.startsWith(RowNode.ID_PREFIX_ROW_GROUP)) ;
17641
+ if (this.id !== null && typeof this.id === 'string' && this.id.startsWith(RowNode.ID_PREFIX_ROW_GROUP)) {
17642
+ 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.");
17643
+ }
17390
17644
  // force id to be a string
17391
17645
  if (this.id !== null && typeof this.id !== 'string') {
17392
17646
  this.id = '' + this.id;
@@ -17845,9 +18099,11 @@ var RowNode = /** @class */ (function () {
17845
18099
  // groupSelectsFiltered only makes sense when group selects children
17846
18100
  var groupSelectsFiltered = groupSelectsChildren && (params.groupSelectsFiltered === true);
17847
18101
  if (this.id === undefined) {
18102
+ console.warn('AG Grid: cannot select node until id for node is known');
17848
18103
  return 0;
17849
18104
  }
17850
18105
  if (this.rowPinned) {
18106
+ console.warn('AG Grid: cannot select pinned rows');
17851
18107
  return 0;
17852
18108
  }
17853
18109
  // if we are a footer, we don't do selection, just pass the info
@@ -18622,7 +18878,9 @@ var DragAndDropService = /** @class */ (function (_super) {
18622
18878
  }
18623
18879
  }
18624
18880
  this.eGhostParent = targetEl;
18625
- if (!this.eGhostParent) ;
18881
+ if (!this.eGhostParent) {
18882
+ console.warn('AG Grid: could not find document body, it is needed for dragging columns');
18883
+ }
18626
18884
  else {
18627
18885
  this.eGhostParent.appendChild(this.eGhost);
18628
18886
  }
@@ -18785,7 +19043,7 @@ var RowDragComp = /** @class */ (function (_super) {
18785
19043
  var treeData = this.beans.gridOptionsWrapper.isTreeData();
18786
19044
  if (treeData && managed) {
18787
19045
  doOnce(function () {
18788
- return (void 0);
19046
+ return console.warn('AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true');
18789
19047
  }, 'RowDragComp.managedAndTreeData');
18790
19048
  }
18791
19049
  };
@@ -19194,7 +19452,9 @@ var GroupCellRendererCtrl = /** @class */ (function (_super) {
19194
19452
  else if (typeof footerValueGetter === 'string') {
19195
19453
  footerValue = this.expressionService.evaluate(footerValueGetter, paramsClone);
19196
19454
  }
19197
- else ;
19455
+ else {
19456
+ console.warn('AG Grid: footerValueGetter should be either a function or a string (expression)');
19457
+ }
19198
19458
  }
19199
19459
  else {
19200
19460
  footerValue = 'Total ' + (this.params.value != null ? this.params.value : '');
@@ -19412,7 +19672,7 @@ var GroupCellRendererCtrl = /** @class */ (function (_super) {
19412
19672
  var paddingCount = manyDimensionThisColumn ? rowNode.uiLevel : 0;
19413
19673
  var userProvidedPaddingPixelsTheDeprecatedWay = params.padding >= 0;
19414
19674
  if (userProvidedPaddingPixelsTheDeprecatedWay) {
19415
- doOnce(function () { return (void 0); }, 'groupCellRenderer->doDeprecatedWay');
19675
+ 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');
19416
19676
  }
19417
19677
  if (this.indentClass) {
19418
19678
  this.comp.addOrRemoveCssClass(this.indentClass, false);
@@ -19917,6 +20177,7 @@ var UserComponentRegistry = /** @class */ (function (_super) {
19917
20177
  UserComponentRegistry.prototype.registerDefaultComponent = function (rawName, component) {
19918
20178
  var name = this.translateIfDeprecated(rawName);
19919
20179
  if (this.agGridDefaults[name]) {
20180
+ console.error("Trying to overwrite a default component. You should call registerComponent");
19920
20181
  return;
19921
20182
  }
19922
20183
  this.agGridDefaults[name] = component;
@@ -19924,6 +20185,7 @@ var UserComponentRegistry = /** @class */ (function (_super) {
19924
20185
  UserComponentRegistry.prototype.registerJsComponent = function (rawName, component) {
19925
20186
  var name = this.translateIfDeprecated(rawName);
19926
20187
  if (this.fwComps[name]) {
20188
+ console.error("Trying to register a component that you have already registered for frameworks: " + name);
19927
20189
  return;
19928
20190
  }
19929
20191
  this.jsComps[name] = component;
@@ -19933,7 +20195,8 @@ var UserComponentRegistry = /** @class */ (function (_super) {
19933
20195
  * A the agGridComponent interface (ie IHeaderComp). The final object acceptable by ag-grid
19934
20196
  */
19935
20197
  UserComponentRegistry.prototype.registerFwComponent = function (rawName, component) {
19936
- doOnce(function () { return (void 0); }, "UserComponentRegistry.frameworkComponentsDeprecated");
20198
+ 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.";
20199
+ doOnce(function () { return console.warn(warningMessage); }, "UserComponentRegistry.frameworkComponentsDeprecated");
19937
20200
  var name = this.translateIfDeprecated(rawName);
19938
20201
  this.fwComps[name] = component;
19939
20202
  };
@@ -19960,13 +20223,16 @@ var UserComponentRegistry = /** @class */ (function (_super) {
19960
20223
  if (defaultComponent) {
19961
20224
  return createResult(defaultComponent, false);
19962
20225
  }
19963
- if (Object.keys(this.agGridDefaults).indexOf(name) < 0) ;
20226
+ if (Object.keys(this.agGridDefaults).indexOf(name) < 0) {
20227
+ console.warn("AG Grid: Looking for component [" + name + "] but it wasn't found.");
20228
+ }
19964
20229
  return null;
19965
20230
  };
19966
20231
  UserComponentRegistry.prototype.translateIfDeprecated = function (raw) {
19967
20232
  var deprecatedInfo = this.agDeprecatedNames[raw];
19968
20233
  if (deprecatedInfo != null) {
19969
20234
  doOnce(function () {
20235
+ 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);
19970
20236
  }, 'DEPRECATE_COMPONENT_' + raw);
19971
20237
  return deprecatedInfo.newComponentName;
19972
20238
  }
@@ -20184,6 +20450,7 @@ var UserComponentFactory = /** @class */ (function (_super) {
20184
20450
  };
20185
20451
  UserComponentFactory.prototype.getCompDetails = function (defObject, type, defaultName, params, mandatory) {
20186
20452
  var _this = this;
20453
+ if (mandatory === void 0) { mandatory = false; }
20187
20454
  var propertyName = type.propertyName, cellRenderer = type.cellRenderer;
20188
20455
  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;
20189
20456
  var lookupFromRegistry = function (key) {
@@ -20206,6 +20473,9 @@ var UserComponentFactory = /** @class */ (function (_super) {
20206
20473
  jsComp = this.agComponentUtils.adaptFunction(propertyName, jsComp);
20207
20474
  }
20208
20475
  if (!jsComp && !fwComp) {
20476
+ if (mandatory) {
20477
+ console.error("Could not find component " + compName + ", did you forget to configure this component?");
20478
+ }
20209
20479
  return;
20210
20480
  }
20211
20481
  var paramsMerged = this.mergeParamsWithApplicationProvidedParams(defObject, type, params, paramsFromSelector);
@@ -20242,7 +20512,8 @@ var UserComponentFactory = /** @class */ (function (_super) {
20242
20512
  var selectorRes = selectorFunc ? selectorFunc(params) : null;
20243
20513
  var assignComp = function (providedJsComp, providedFwComp) {
20244
20514
  var xxxFrameworkDeprecatedWarn = function () {
20245
- doOnce(function () { return (void 0); }, "UserComponentFactory." + propertyName + "FrameworkDeprecated");
20515
+ 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.";
20516
+ doOnce(function () { return console.warn(warningMessage); }, "UserComponentFactory." + propertyName + "FrameworkDeprecated");
20246
20517
  };
20247
20518
  if (typeof providedJsComp === 'string') {
20248
20519
  compName = providedJsComp;
@@ -20268,7 +20539,8 @@ var UserComponentFactory = /** @class */ (function (_super) {
20268
20539
  };
20269
20540
  if (selectorRes) {
20270
20541
  if (selectorRes.frameworkComponent != null) {
20271
- doOnce(function () { return (void 0); }, "UserComponentFactory." + propertyName + "FrameworkSelectorDeprecated");
20542
+ 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.";
20543
+ doOnce(function () { return console.warn(warningMessage_1); }, "UserComponentFactory." + propertyName + "FrameworkSelectorDeprecated");
20272
20544
  assignComp(selectorRes.frameworkComponent, undefined);
20273
20545
  }
20274
20546
  else {
@@ -20773,13 +21045,16 @@ var FilterManager = /** @class */ (function (_super) {
20773
21045
  modelKeys_1.forEach(function (colId) {
20774
21046
  var column = _this.columnModel.getPrimaryColumn(colId) || _this.columnModel.getGridColumn(colId);
20775
21047
  if (!column) {
21048
+ console.warn('AG Grid: setFilterModel() - no column found for colId: ' + colId);
20776
21049
  return;
20777
21050
  }
20778
21051
  if (!column.isFilterAllowed()) {
21052
+ console.warn('AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: ' + colId);
20779
21053
  return;
20780
21054
  }
20781
21055
  var filterWrapper = _this.getOrCreateFilterWrapper(column, 'NO_UI');
20782
21056
  if (!filterWrapper) {
21057
+ console.warn('AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: ' + colId);
20783
21058
  return;
20784
21059
  }
20785
21060
  allPromises.push(_this.setModelOnFilterWrapper(filterWrapper.filterPromise, model[colId]));
@@ -20809,6 +21084,7 @@ var FilterManager = /** @class */ (function (_super) {
20809
21084
  return new AgPromise(function (resolve) {
20810
21085
  filterPromise.then(function (filter) {
20811
21086
  if (typeof filter.setModel !== 'function') {
21087
+ console.warn('AG Grid: filter missing setModel method, which is needed for setFilterModel');
20812
21088
  resolve();
20813
21089
  }
20814
21090
  (filter.setModel(newModel) || AgPromise.resolve()).then(function () { return resolve(); });
@@ -20825,6 +21101,7 @@ var FilterManager = /** @class */ (function (_super) {
20825
21101
  return null;
20826
21102
  }
20827
21103
  if (typeof filter.getModel !== 'function') {
21104
+ console.warn('AG Grid: filter API missing getModel method, which is needed for getFilterModel');
20828
21105
  return;
20829
21106
  }
20830
21107
  var model = filter.getModel();
@@ -20858,6 +21135,7 @@ var FilterManager = /** @class */ (function (_super) {
20858
21135
  return false;
20859
21136
  } // this never happens, including to avoid compile error
20860
21137
  if (!filter.isFilterActive) {
21138
+ console.warn('AG Grid: Filter is missing isFilterActive() method');
20861
21139
  return false;
20862
21140
  }
20863
21141
  return filter.isFilterActive();
@@ -20931,12 +21209,14 @@ var FilterManager = /** @class */ (function (_super) {
20931
21209
  return null;
20932
21210
  }
20933
21211
  if (!this.gridOptionsWrapper.isRowModelDefault()) {
21212
+ console.warn('AG Grid - Quick filtering only works with the Client-Side Row Model');
20934
21213
  return null;
20935
21214
  }
20936
21215
  return newFilter.toUpperCase();
20937
21216
  };
20938
21217
  FilterManager.prototype.setQuickFilter = function (newFilter) {
20939
21218
  if (newFilter != null && typeof newFilter !== 'string') {
21219
+ console.warn("AG Grid - setQuickFilter() only supports string inputs, received: " + typeof newFilter);
20940
21220
  return;
20941
21221
  }
20942
21222
  var parsedFilter = this.parseQuickFilter(newFilter);
@@ -21196,7 +21476,9 @@ var FilterManager = /** @class */ (function (_super) {
21196
21476
  filterWrapper.guiPromise = new AgPromise(function (resolve) {
21197
21477
  filterWrapper.filterPromise.then(function (filter) {
21198
21478
  var guiFromFilter = filter.getGui();
21199
- if (!exists(guiFromFilter)) ;
21479
+ if (!exists(guiFromFilter)) {
21480
+ console.warn("AG Grid: getGui method from filter returned " + guiFromFilter + ", it should be a DOM element or an HTML template string.");
21481
+ }
21200
21482
  // for backwards compatibility with Angular 1 - we
21201
21483
  // used to allow providing back HTML from getGui().
21202
21484
  // once we move away from supporting Angular 1
@@ -21788,6 +22070,7 @@ var GridBodyScrollFeature = /** @class */ (function (_super) {
21788
22070
  }
21789
22071
  var rowCount = this.paginationProxy.getRowCount();
21790
22072
  if (typeof index !== 'number' || index < 0 || index >= rowCount) {
22073
+ console.warn('invalid row index for ensureIndexVisible: ' + index);
21791
22074
  return;
21792
22075
  }
21793
22076
  var isPaging = this.gridOptionsWrapper.isPagination();
@@ -22282,10 +22565,11 @@ var RowDragFeature = /** @class */ (function (_super) {
22282
22565
  RowDragFeature.prototype.addRowDropZone = function (params) {
22283
22566
  var _this = this;
22284
22567
  if (!params.getContainer()) {
22285
- doOnce(function () { return (void 0); }, 'add-drop-zone-empty-target');
22568
+ doOnce(function () { return console.warn('AG Grid: addRowDropZone - A container target needs to be provided'); }, 'add-drop-zone-empty-target');
22286
22569
  return;
22287
22570
  }
22288
22571
  if (this.dragAndDropService.findExternalZone(params)) {
22572
+ console.warn('AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.');
22289
22573
  return;
22290
22574
  }
22291
22575
  var processedParams = {
@@ -22812,7 +23096,10 @@ var GridBodyCtrl = /** @class */ (function (_super) {
22812
23096
  _this.sizeColumnsToFit(params, -1);
22813
23097
  }, 500);
22814
23098
  }
22815
- else ;
23099
+ else {
23100
+ console.warn('AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with ' +
23101
+ 'zero width, maybe the grid is not visible yet on the screen?');
23102
+ }
22816
23103
  };
22817
23104
  // + rangeService
22818
23105
  GridBodyCtrl.prototype.addScrollEventListener = function (listener) {
@@ -24473,6 +24760,7 @@ var CellCtrl = /** @class */ (function (_super) {
24473
24760
  CellCtrl.prototype.createCellRendererParams = function () {
24474
24761
  var _this = this;
24475
24762
  var addRowCompListener = function (eventType, listener) {
24763
+ 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.');
24476
24764
  _this.rowCtrl.addEventListener(eventType, listener);
24477
24765
  };
24478
24766
  var res = {
@@ -25001,11 +25289,11 @@ var CellCtrl = /** @class */ (function (_super) {
25001
25289
  if (rowDragManaged) {
25002
25290
  // row dragging only available in default row model
25003
25291
  if (!clientSideRowModelActive) {
25004
- doOnce(function () { return (void 0); }, 'CellComp.addRowDragging');
25292
+ doOnce(function () { return console.warn('AG Grid: managed row dragging is only allowed in the Client Side Row Model'); }, 'CellComp.addRowDragging');
25005
25293
  return;
25006
25294
  }
25007
25295
  if (pagination) {
25008
- doOnce(function () { return (void 0); }, 'CellComp.addRowDragging');
25296
+ doOnce(function () { return console.warn('AG Grid: managed row dragging is not possible when doing pagination'); }, 'CellComp.addRowDragging');
25009
25297
  return;
25010
25298
  }
25011
25299
  }
@@ -25222,6 +25510,7 @@ var RowCtrl = /** @class */ (function (_super) {
25222
25510
  var gow = this.beans.gridOptionsWrapper;
25223
25511
  if (gow.isEnableRangeSelection()) {
25224
25512
  doOnce(function () {
25513
+ console.warn('AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn\'t work with `enableRangeSelection: true`');
25225
25514
  }, 'rowDragAndRangeSelectionEnabled');
25226
25515
  return;
25227
25516
  }
@@ -25234,7 +25523,12 @@ var RowCtrl = /** @class */ (function (_super) {
25234
25523
  var params = this.createFullWidthParams(gui.element, pinned);
25235
25524
  var masterDetailModuleLoaded = ModuleRegistry.isRegistered(ModuleNames.MasterDetailModule);
25236
25525
  if (this.rowType == RowType$1.FullWidthDetail && !masterDetailModuleLoaded) {
25237
- if (ModuleRegistry.isPackageBased()) ;
25526
+ if (ModuleRegistry.isPackageBased()) {
25527
+ console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with ag-grid-enterprise package.");
25528
+ }
25529
+ else {
25530
+ console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with AG Grid Enterprise Module " + ModuleNames.MasterDetailModule);
25531
+ }
25238
25532
  return;
25239
25533
  }
25240
25534
  var compDetails;
@@ -25985,6 +26279,7 @@ var RowCtrl = /** @class */ (function (_super) {
25985
26279
  // part 1 - rowStyle
25986
26280
  var rowStyle = this.beans.gridOptionsWrapper.getRowStyle();
25987
26281
  if (rowStyle && typeof rowStyle === 'function') {
26282
+ console.warn('AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead');
25988
26283
  return;
25989
26284
  }
25990
26285
  // part 1 - rowStyleFunc
@@ -26099,12 +26394,14 @@ var RowCtrl = /** @class */ (function (_super) {
26099
26394
  RowCtrl.prototype.addEventListener = function (eventType, listener) {
26100
26395
  if (eventType === 'renderedRowRemoved' || eventType === 'rowRemoved') {
26101
26396
  eventType = Events.EVENT_VIRTUAL_ROW_REMOVED;
26397
+ console.warn('AG Grid: Since version 11, event renderedRowRemoved is now called ' + Events.EVENT_VIRTUAL_ROW_REMOVED);
26102
26398
  }
26103
26399
  _super.prototype.addEventListener.call(this, eventType, listener);
26104
26400
  };
26105
26401
  RowCtrl.prototype.removeEventListener = function (eventType, listener) {
26106
26402
  if (eventType === 'renderedRowRemoved' || eventType === 'rowRemoved') {
26107
26403
  eventType = Events.EVENT_VIRTUAL_ROW_REMOVED;
26404
+ console.warn('AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called ' + Events.EVENT_VIRTUAL_ROW_REMOVED);
26108
26405
  }
26109
26406
  _super.prototype.removeEventListener.call(this, eventType, listener);
26110
26407
  };
@@ -28264,7 +28561,7 @@ var NavigationService = /** @class */ (function (_super) {
28264
28561
  var userCell = userFunc(params);
28265
28562
  if (exists(userCell)) {
28266
28563
  if (userCell.floating) {
28267
- doOnce(function () { }, 'no floating in userCell');
28564
+ 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');
28268
28565
  userCell.rowPinned = userCell.floating;
28269
28566
  }
28270
28567
  nextPosition = {
@@ -28397,7 +28694,7 @@ var NavigationService = /** @class */ (function (_super) {
28397
28694
  var userCell = userFunc(params);
28398
28695
  if (exists(userCell)) {
28399
28696
  if (userCell.floating) {
28400
- doOnce(function () { }, 'no floating in userCell');
28697
+ 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');
28401
28698
  userCell.rowPinned = userCell.floating;
28402
28699
  }
28403
28700
  nextCell = {
@@ -28952,6 +29249,7 @@ var CellComp = /** @class */ (function (_super) {
28952
29249
  return;
28953
29250
  }
28954
29251
  if (!cellEditor.getGui) {
29252
+ console.warn("AG Grid: cellEditor for column " + this.column.getId() + " is missing getGui() method");
28955
29253
  this.beans.context.destroyBean(cellEditor);
28956
29254
  return;
28957
29255
  }
@@ -28989,7 +29287,10 @@ var CellComp = /** @class */ (function (_super) {
28989
29287
  };
28990
29288
  CellComp.prototype.addPopupCellEditor = function (params, position) {
28991
29289
  var _this = this;
28992
- if (this.beans.gridOptionsWrapper.isFullRowEdit()) ;
29290
+ if (this.beans.gridOptionsWrapper.isFullRowEdit()) {
29291
+ console.warn('AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both ' +
29292
+ '- either turn off fullRowEdit, or stop using popup editors.');
29293
+ }
28993
29294
  var cellEditor = this.cellEditor;
28994
29295
  // if a popup, then we wrap in a popup editor and return the popup
28995
29296
  this.cellEditorPopupWrapper = this.beans.context.createBean(new PopupEditorWrapper(params));
@@ -29173,6 +29474,9 @@ var RowComp = /** @class */ (function (_super) {
29173
29474
  };
29174
29475
  RowComp.prototype.setFullWidthRowComp = function (fullWidthRowComponent) {
29175
29476
  var _this = this;
29477
+ if (this.fullWidthCellRenderer) {
29478
+ console.error('AG Grid - should not be setting fullWidthRowComponent twice');
29479
+ }
29176
29480
  this.fullWidthCellRenderer = fullWidthRowComponent;
29177
29481
  this.addDestroyFunc(function () {
29178
29482
  _this.fullWidthCellRenderer = _this.beans.context.destroyBean(_this.fullWidthCellRenderer);
@@ -29597,6 +29901,7 @@ var MoveColumnFeature = /** @class */ (function () {
29597
29901
  switch (hDirection) {
29598
29902
  case HorizontalDirection.Left: return HorizontalDirection.Right;
29599
29903
  case HorizontalDirection.Right: return HorizontalDirection.Left;
29904
+ default: console.error("AG Grid: Unknown direction " + hDirection);
29600
29905
  }
29601
29906
  }
29602
29907
  else {
@@ -30637,6 +30942,7 @@ var GridApi = /** @class */ (function () {
30637
30942
  }
30638
30943
  var exportMode = this.getExcelExportMode(params);
30639
30944
  if (this.excelCreator.getFactoryMode(exportMode) === ExcelFactoryMode.MULTI_SHEET) {
30945
+ console.warn('AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`');
30640
30946
  return;
30641
30947
  }
30642
30948
  return this.excelCreator.getDataAsExcel(params);
@@ -30648,6 +30954,7 @@ var GridApi = /** @class */ (function () {
30648
30954
  }
30649
30955
  var exportMode = this.getExcelExportMode(params);
30650
30956
  if (this.excelCreator.getFactoryMode(exportMode) === ExcelFactoryMode.MULTI_SHEET) {
30957
+ console.warn('AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`');
30651
30958
  return;
30652
30959
  }
30653
30960
  this.excelCreator.exportDataAsExcel(params);
@@ -30675,6 +30982,7 @@ var GridApi = /** @class */ (function () {
30675
30982
  };
30676
30983
  /** @deprecated AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource() */
30677
30984
  GridApi.prototype.setEnterpriseDatasource = function (datasource) {
30985
+ console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()");
30678
30986
  this.setServerSideDatasource(datasource);
30679
30987
  };
30680
30988
  /**
@@ -30703,6 +31011,9 @@ var GridApi = /** @class */ (function () {
30703
31011
  // should really have an IEnterpriseRowModel interface, so we are not casting to any
30704
31012
  this.serverSideRowModel.setDatasource(datasource);
30705
31013
  }
31014
+ else {
31015
+ console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '" + Constants.ROW_MODEL_TYPE_SERVER_SIDE + "'");
31016
+ }
30706
31017
  };
30707
31018
  /**
30708
31019
  * Updates the `cacheBlockSize` used by `serverSideInfiniteScroll` when requesting data from the server.
@@ -30711,6 +31022,7 @@ var GridApi = /** @class */ (function () {
30711
31022
  * */
30712
31023
  GridApi.prototype.setCacheBlockSize = function (blockSize) {
30713
31024
  if (!this.serverSideRowModel) {
31025
+ console.warn("AG Grid: you can only set cacheBlockSize with gridOptions.rowModelType '" + Constants.ROW_MODEL_TYPE_SERVER_SIDE + "'");
30714
31026
  return;
30715
31027
  }
30716
31028
  this.gridOptionsWrapper.setProperty('cacheBlockSize', blockSize);
@@ -30721,6 +31033,9 @@ var GridApi = /** @class */ (function () {
30721
31033
  if (this.gridOptionsWrapper.isRowModelInfinite()) {
30722
31034
  this.rowModel.setDatasource(datasource);
30723
31035
  }
31036
+ else {
31037
+ console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '" + Constants.ROW_MODEL_TYPE_INFINITE + "'");
31038
+ }
30724
31039
  };
30725
31040
  /** Set new datasource for Viewport Row Model. */
30726
31041
  GridApi.prototype.setViewportDatasource = function (viewportDatasource) {
@@ -30730,12 +31045,16 @@ var GridApi = /** @class */ (function () {
30730
31045
  // the enterprise implement it, rather than casting to 'any' here
30731
31046
  this.rowModel.setViewportDatasource(viewportDatasource);
30732
31047
  }
31048
+ else {
31049
+ console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '" + Constants.ROW_MODEL_TYPE_VIEWPORT + "'");
31050
+ }
30733
31051
  };
30734
31052
  /** Set the row data. */
30735
31053
  GridApi.prototype.setRowData = function (rowData) {
30736
31054
  // immutable service is part of the CSRM module, if missing, no CSRM
30737
31055
  var missingImmutableService = this.immutableService == null;
30738
31056
  if (missingImmutableService) {
31057
+ console.warn('AG Grid: you can only set rowData when using the Client Side Row Model');
30739
31058
  return;
30740
31059
  }
30741
31060
  // if no keys provided provided for rows, then we can tread the operation as Immutable
@@ -30749,26 +31068,32 @@ var GridApi = /** @class */ (function () {
30749
31068
  };
30750
31069
  /** @deprecated AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData() */
30751
31070
  GridApi.prototype.setFloatingTopRowData = function (rows) {
31071
+ console.warn('AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()');
30752
31072
  this.setPinnedTopRowData(rows);
30753
31073
  };
30754
31074
  /** @deprecated AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData() */
30755
31075
  GridApi.prototype.setFloatingBottomRowData = function (rows) {
31076
+ console.warn('AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()');
30756
31077
  this.setPinnedBottomRowData(rows);
30757
31078
  };
30758
31079
  /** @deprecated AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount() */
30759
31080
  GridApi.prototype.getFloatingTopRowCount = function () {
31081
+ console.warn('AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()');
30760
31082
  return this.getPinnedTopRowCount();
30761
31083
  };
30762
31084
  /** @deprecated AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount() */
30763
31085
  GridApi.prototype.getFloatingBottomRowCount = function () {
31086
+ console.warn('AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()');
30764
31087
  return this.getPinnedBottomRowCount();
30765
31088
  };
30766
31089
  /** @deprecated AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow() */
30767
31090
  GridApi.prototype.getFloatingTopRow = function (index) {
31091
+ console.warn('AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()');
30768
31092
  return this.getPinnedTopRow(index);
30769
31093
  };
30770
31094
  /** @deprecated AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow() */
30771
31095
  GridApi.prototype.getFloatingBottomRow = function (index) {
31096
+ console.warn('AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()');
30772
31097
  return this.getPinnedBottomRow(index);
30773
31098
  };
30774
31099
  /** Set the top pinned rows. Call with no rows / undefined to clear top pinned rows. */
@@ -30849,6 +31174,7 @@ var GridApi = /** @class */ (function () {
30849
31174
  if (params === void 0) { params = {}; }
30850
31175
  if (Array.isArray(params)) {
30851
31176
  // the old version of refreshCells() took an array of rowNodes for the first argument
31177
+ console.warn('since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation.');
30852
31178
  return;
30853
31179
  }
30854
31180
  this.rowRenderer.refreshCells(params);
@@ -30902,8 +31228,12 @@ var GridApi = /** @class */ (function () {
30902
31228
  * It will work out the final set of 'to be displayed' rows again (i.e. expand or collapse the group visually).
30903
31229
  */
30904
31230
  GridApi.prototype.onGroupExpandedOrCollapsed = function (deprecated_refreshFromIndex) {
30905
- if (missing(this.clientSideRowModel)) ;
30906
- if (exists(deprecated_refreshFromIndex)) ;
31231
+ if (missing(this.clientSideRowModel)) {
31232
+ console.warn('AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model');
31233
+ }
31234
+ if (exists(deprecated_refreshFromIndex)) {
31235
+ console.warn('AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows');
31236
+ }
30907
31237
  // we don't really want the user calling this if only one rowNode was expanded, instead they should be
30908
31238
  // calling rowNode.setExpanded(boolean) - this way we do a 'keepRenderedRows=false' so that the whole
30909
31239
  // grid gets refreshed again - otherwise the row with the rowNodes that were changed won't get updated,
@@ -30912,6 +31242,7 @@ var GridApi = /** @class */ (function () {
30912
31242
  };
30913
31243
  /** @deprecated AG Grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel() */
30914
31244
  GridApi.prototype.refreshInMemoryRowModel = function (step) {
31245
+ console.warn("AG Grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()");
30915
31246
  this.refreshClientSideRowModel(step);
30916
31247
  };
30917
31248
  /**
@@ -30919,7 +31250,9 @@ var GridApi = /** @class */ (function () {
30919
31250
  * Optionally provide the step you wish the refresh to apply from. Defaults to `everything`.
30920
31251
  */
30921
31252
  GridApi.prototype.refreshClientSideRowModel = function (step) {
30922
- if (missing(this.clientSideRowModel)) ;
31253
+ if (missing(this.clientSideRowModel)) {
31254
+ console.warn('cannot call refreshClientSideRowModel unless using normal row model');
31255
+ }
30923
31256
  var paramsStep = ClientSideRowModelSteps.EVERYTHING;
30924
31257
  var stepsMapped = {
30925
31258
  everything: ClientSideRowModelSteps.EVERYTHING,
@@ -30934,6 +31267,7 @@ var GridApi = /** @class */ (function () {
30934
31267
  paramsStep = stepsMapped[step];
30935
31268
  }
30936
31269
  if (missing(paramsStep)) {
31270
+ console.error("AG Grid: invalid step " + step + ", available steps are " + Object.keys(stepsMapped).join(', '));
30937
31271
  return;
30938
31272
  }
30939
31273
  var animate = !this.gridOptionsWrapper.isSuppressAnimationFrame();
@@ -30979,7 +31313,9 @@ var GridApi = /** @class */ (function () {
30979
31313
  else if (this.serverSideRowModel) {
30980
31314
  this.serverSideRowModel.expandAll(true);
30981
31315
  }
30982
- else ;
31316
+ else {
31317
+ console.warn('AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model');
31318
+ }
30983
31319
  };
30984
31320
  /** Collapse all groups. */
30985
31321
  GridApi.prototype.collapseAll = function () {
@@ -30989,17 +31325,23 @@ var GridApi = /** @class */ (function () {
30989
31325
  else if (this.serverSideRowModel) {
30990
31326
  this.serverSideRowModel.expandAll(false);
30991
31327
  }
30992
- else ;
31328
+ else {
31329
+ console.warn('AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model');
31330
+ }
30993
31331
  };
30994
31332
  /** Gets the tool panel instance corresponding to the supplied `id`. */
30995
31333
  GridApi.prototype.getToolPanelInstance = function (id) {
30996
31334
  if (!this.sideBarComp) {
31335
+ console.warn('AG Grid: toolPanel is only available in AG Grid Enterprise');
30997
31336
  return;
30998
31337
  }
30999
31338
  var comp = this.sideBarComp.getToolPanelInstance(id);
31000
31339
  return unwrapUserComp(comp);
31001
31340
  };
31002
31341
  GridApi.prototype.addVirtualRowListener = function (eventName, rowIndex, callback) {
31342
+ if (typeof eventName !== 'string') {
31343
+ console.warn('AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener.');
31344
+ }
31003
31345
  this.addRenderedRowListener(eventName, rowIndex, callback);
31004
31346
  };
31005
31347
  /**
@@ -31010,6 +31352,9 @@ var GridApi = /** @class */ (function () {
31010
31352
  * listen for this event if your `cellRenderer` needs to do cleanup when the row no longer exists.
31011
31353
  */
31012
31354
  GridApi.prototype.addRenderedRowListener = function (eventName, rowIndex, callback) {
31355
+ if (eventName === 'virtualRowSelected') {
31356
+ console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node.");
31357
+ }
31013
31358
  this.rowRenderer.addRenderedRowListener(eventName, rowIndex, callback);
31014
31359
  };
31015
31360
  /** Pass a quick filter text into the grid for filtering. */
@@ -31018,19 +31363,38 @@ var GridApi = /** @class */ (function () {
31018
31363
  };
31019
31364
  /** @deprecated AG Grid: do not use api for selection, call rowNode.setSelected(value) instead */
31020
31365
  GridApi.prototype.selectIndex = function (index, tryMulti, suppressEvents) {
31366
+ console.warn('AG Grid: do not use api for selection, call rowNode.setSelected(value) instead');
31367
+ if (suppressEvents) {
31368
+ console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');
31369
+ }
31021
31370
  this.selectionService.selectIndex(index, tryMulti);
31022
31371
  };
31023
31372
  /** @deprecated AG Grid: do not use api for selection, call rowNode.setSelected(value) instead. */
31024
31373
  GridApi.prototype.deselectIndex = function (index, suppressEvents) {
31374
+ if (suppressEvents === void 0) { suppressEvents = false; }
31375
+ console.warn('AG Grid: do not use api for selection, call rowNode.setSelected(value) instead');
31376
+ if (suppressEvents) {
31377
+ console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');
31378
+ }
31025
31379
  this.selectionService.deselectIndex(index);
31026
31380
  };
31027
31381
  /** @deprecated AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead. */
31028
31382
  GridApi.prototype.selectNode = function (node, tryMulti, suppressEvents) {
31029
31383
  if (tryMulti === void 0) { tryMulti = false; }
31384
+ if (suppressEvents === void 0) { suppressEvents = false; }
31385
+ console.warn('AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead');
31386
+ if (suppressEvents) {
31387
+ console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');
31388
+ }
31030
31389
  node.setSelectedParams({ newValue: true, clearSelection: !tryMulti });
31031
31390
  };
31032
31391
  /** @deprecated AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead. */
31033
31392
  GridApi.prototype.deselectNode = function (node, suppressEvents) {
31393
+ if (suppressEvents === void 0) { suppressEvents = false; }
31394
+ console.warn('AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead');
31395
+ if (suppressEvents) {
31396
+ console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');
31397
+ }
31034
31398
  node.setSelectedParams({ newValue: false });
31035
31399
  };
31036
31400
  /** Select all rows, regardless of filtering and rows that are not visible due to grouping being enabled and their groups not expanded. */
@@ -31051,7 +31415,10 @@ var GridApi = /** @class */ (function () {
31051
31415
  };
31052
31416
  /** @deprecated recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead */
31053
31417
  GridApi.prototype.recomputeAggregates = function () {
31054
- if (missing(this.clientSideRowModel)) ;
31418
+ if (missing(this.clientSideRowModel)) {
31419
+ console.warn('cannot call recomputeAggregates unless using normal row model');
31420
+ }
31421
+ console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead");
31055
31422
  this.clientSideRowModel.refreshModel({ step: ClientSideRowModelSteps.AGGREGATE });
31056
31423
  };
31057
31424
  /**
@@ -31073,10 +31440,12 @@ var GridApi = /** @class */ (function () {
31073
31440
  this.overlayWrapperComp.hideOverlay();
31074
31441
  };
31075
31442
  GridApi.prototype.isNodeSelected = function (node) {
31443
+ console.warn('AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead');
31076
31444
  return node.isSelected();
31077
31445
  };
31078
31446
  /** @deprecated Use getSelectedNodesById no longer exists, use getSelectedNodes(). */
31079
31447
  GridApi.prototype.getSelectedNodesById = function () {
31448
+ console.error('AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead');
31080
31449
  return null;
31081
31450
  };
31082
31451
  /**
@@ -31105,6 +31474,7 @@ var GridApi = /** @class */ (function () {
31105
31474
  };
31106
31475
  /** @deprecated ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead. */
31107
31476
  GridApi.prototype.ensureColIndexVisible = function (index) {
31477
+ console.warn('AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.');
31108
31478
  };
31109
31479
  /**
31110
31480
  * Ensures the column is visible by scrolling the table if needed.
@@ -31146,7 +31516,9 @@ var GridApi = /** @class */ (function () {
31146
31516
  * but excluding groups the grid created where gaps were missing in the hierarchy.
31147
31517
  */
31148
31518
  GridApi.prototype.forEachLeafNode = function (callback) {
31149
- if (missing(this.clientSideRowModel)) ;
31519
+ if (missing(this.clientSideRowModel)) {
31520
+ console.warn('cannot call forEachNode unless using normal row model');
31521
+ }
31150
31522
  this.clientSideRowModel.forEachLeafNode(callback);
31151
31523
  };
31152
31524
  /**
@@ -31160,12 +31532,16 @@ var GridApi = /** @class */ (function () {
31160
31532
  };
31161
31533
  /** Similar to `forEachNode`, except skips any filtered out data. */
31162
31534
  GridApi.prototype.forEachNodeAfterFilter = function (callback) {
31163
- if (missing(this.clientSideRowModel)) ;
31535
+ if (missing(this.clientSideRowModel)) {
31536
+ console.warn('cannot call forEachNodeAfterFilter unless using normal row model');
31537
+ }
31164
31538
  this.clientSideRowModel.forEachNodeAfterFilter(callback);
31165
31539
  };
31166
31540
  /** Similar to `forEachNodeAfterFilter`, except the callbacks are called in the order the rows are displayed in the grid. */
31167
31541
  GridApi.prototype.forEachNodeAfterFilterAndSort = function (callback) {
31168
- if (missing(this.clientSideRowModel)) ;
31542
+ if (missing(this.clientSideRowModel)) {
31543
+ console.warn('cannot call forEachNodeAfterFilterAndSort unless using normal row model');
31544
+ }
31169
31545
  this.clientSideRowModel.forEachNodeAfterFilterAndSort(callback);
31170
31546
  };
31171
31547
  /**
@@ -31403,10 +31779,12 @@ var GridApi = /** @class */ (function () {
31403
31779
  };
31404
31780
  /** @deprecated use `setProcessPivotResultColDef` instead */
31405
31781
  GridApi.prototype.setProcessSecondaryColDef = function (processSecondaryColDefFunc) {
31782
+ console.warn('AG Grid: since version 28.0.x setProcessSecondaryColDef has been renamed, please use setProcessPivotResultColDef instead');
31406
31783
  this.setProcessPivotResultColDef(processSecondaryColDefFunc);
31407
31784
  };
31408
31785
  /** @deprecated use `setProcessPivotResultColGroupDef` instead */
31409
31786
  GridApi.prototype.setProcessSecondaryColGroupDef = function (processSecondaryColGroupDefFunc) {
31787
+ console.warn('AG Grid: since version 28.0.x setProcessSecondaryColGroupDef has been renamed, please use setProcessPivotResultColGroupDef instead');
31410
31788
  this.setProcessPivotResultColGroupDef(processSecondaryColGroupDefFunc);
31411
31789
  };
31412
31790
  GridApi.prototype.setProcessPivotResultColDef = function (processPivotResultColDefFunc) {
@@ -31462,6 +31840,9 @@ var GridApi = /** @class */ (function () {
31462
31840
  /** Show/hide the entire side bar, including any visible panel and the tab buttons. */
31463
31841
  GridApi.prototype.setSideBarVisible = function (show) {
31464
31842
  if (!this.sideBarComp) {
31843
+ if (show) {
31844
+ console.warn('AG Grid: sideBar is not loaded');
31845
+ }
31465
31846
  return;
31466
31847
  }
31467
31848
  this.sideBarComp.setDisplayed(show);
@@ -31469,6 +31850,7 @@ var GridApi = /** @class */ (function () {
31469
31850
  /** Sets the side bar position relative to the grid. Possible values are `'left'` or `'right'`. */
31470
31851
  GridApi.prototype.setSideBarPosition = function (position) {
31471
31852
  if (!this.sideBarComp) {
31853
+ console.warn('AG Grid: sideBar is not loaded');
31472
31854
  return;
31473
31855
  }
31474
31856
  this.sideBarComp.setSideBarPosition(position);
@@ -31476,6 +31858,7 @@ var GridApi = /** @class */ (function () {
31476
31858
  /** Opens a particular tool panel. Provide the ID of the tool panel to open. */
31477
31859
  GridApi.prototype.openToolPanel = function (key) {
31478
31860
  if (!this.sideBarComp) {
31861
+ console.warn('AG Grid: toolPanel is only available in AG Grid Enterprise');
31479
31862
  return;
31480
31863
  }
31481
31864
  this.sideBarComp.openToolPanel(key);
@@ -31483,6 +31866,7 @@ var GridApi = /** @class */ (function () {
31483
31866
  /** Closes the currently open tool panel (if any). */
31484
31867
  GridApi.prototype.closeToolPanel = function () {
31485
31868
  if (!this.sideBarComp) {
31869
+ console.warn('AG Grid: toolPanel is only available in AG Grid Enterprise');
31486
31870
  return;
31487
31871
  }
31488
31872
  this.sideBarComp.close();
@@ -31508,12 +31892,14 @@ var GridApi = /** @class */ (function () {
31508
31892
  };
31509
31893
  /** @deprecated AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically. */
31510
31894
  GridApi.prototype.doLayout = function () {
31511
- doOnce(function () { return (void 0); }, 'doLayoutDeprecated');
31895
+ 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";
31896
+ doOnce(function () { return console.warn(message); }, 'doLayoutDeprecated');
31512
31897
  };
31513
31898
  /** Tells the grid to recalculate the row heights. */
31514
31899
  GridApi.prototype.resetRowHeights = function () {
31515
31900
  if (exists(this.clientSideRowModel)) {
31516
31901
  if (this.columnModel.isAutoRowHeightActive()) {
31902
+ console.warn('AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.');
31517
31903
  return;
31518
31904
  }
31519
31905
  this.clientSideRowModel.resetRowHeights();
@@ -31600,6 +31986,9 @@ var GridApi = /** @class */ (function () {
31600
31986
  setTimeout(removeAllReferences.bind(window, this, 'Grid API'), 100);
31601
31987
  };
31602
31988
  GridApi.prototype.warnIfDestroyed = function (methodName) {
31989
+ if (this.destroyCalled) {
31990
+ console.warn("AG Grid: Grid API method " + methodName + " was called on a grid that was destroyed.");
31991
+ }
31603
31992
  return this.destroyCalled;
31604
31993
  };
31605
31994
  /** Reset the quick filter cache text on every rowNode. */
@@ -31611,6 +32000,7 @@ var GridApi = /** @class */ (function () {
31611
32000
  };
31612
32001
  /** @deprecated AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead. */
31613
32002
  GridApi.prototype.getRangeSelections = function () {
32003
+ 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.");
31614
32004
  return null;
31615
32005
  };
31616
32006
  /** Returns the list of selected cell ranges. */
@@ -31618,6 +32008,7 @@ var GridApi = /** @class */ (function () {
31618
32008
  if (this.rangeService) {
31619
32009
  return this.rangeService.getCellRanges();
31620
32010
  }
32011
+ console.warn('AG Grid: cell range selection is only available in AG Grid Enterprise');
31621
32012
  return null;
31622
32013
  };
31623
32014
  GridApi.prototype.camelCaseToHumanReadable = function (camelCase) {
@@ -31625,13 +32016,20 @@ var GridApi = /** @class */ (function () {
31625
32016
  };
31626
32017
  /** @deprecated AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection() */
31627
32018
  GridApi.prototype.addRangeSelection = function (deprecatedNoLongerUsed) {
32019
+ 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()');
31628
32020
  };
31629
32021
  /** Adds the provided cell range to the selected ranges. */
31630
32022
  GridApi.prototype.addCellRange = function (params) {
32023
+ if (!this.rangeService) {
32024
+ console.warn('AG Grid: cell range selection is only available in AG Grid Enterprise');
32025
+ }
31631
32026
  this.rangeService.addCellRange(params);
31632
32027
  };
31633
32028
  /** Clears the selected ranges. */
31634
32029
  GridApi.prototype.clearRangeSelection = function () {
32030
+ if (!this.rangeService) {
32031
+ console.warn('AG Grid: cell range selection is only available in AG Grid Enterprise');
32032
+ }
31635
32033
  this.rangeService.removeAllCellRanges();
31636
32034
  };
31637
32035
  /** Reverts the last cell edit. */
@@ -31718,18 +32116,30 @@ var GridApi = /** @class */ (function () {
31718
32116
  };
31719
32117
  /** Copies data to clipboard by following the same rules as pressing Ctrl+C. */
31720
32118
  GridApi.prototype.copyToClipboard = function (params) {
32119
+ if (!this.clipboardService) {
32120
+ console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');
32121
+ }
31721
32122
  this.clipboardService.copyToClipboard(params);
31722
32123
  };
31723
32124
  /** Copies the selected rows to the clipboard. */
31724
32125
  GridApi.prototype.copySelectedRowsToClipboard = function (params) {
32126
+ if (!this.clipboardService) {
32127
+ console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');
32128
+ }
31725
32129
  this.clipboardService.copySelectedRowsToClipboard(params);
31726
32130
  };
31727
32131
  /** Copies the selected ranges to the clipboard. */
31728
32132
  GridApi.prototype.copySelectedRangeToClipboard = function (params) {
32133
+ if (!this.clipboardService) {
32134
+ console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');
32135
+ }
31729
32136
  this.clipboardService.copySelectedRangeToClipboard(params);
31730
32137
  };
31731
32138
  /** Copies the selected range down, similar to `Ctrl + D` in Excel. */
31732
32139
  GridApi.prototype.copySelectedRangeDown = function () {
32140
+ if (!this.clipboardService) {
32141
+ console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');
32142
+ }
31733
32143
  this.clipboardService.copyRangeDown();
31734
32144
  };
31735
32145
  /** Shows the column menu after and positions it relative to the provided button element. Use in conjunction with your own header template. */
@@ -31746,6 +32156,7 @@ var GridApi = /** @class */ (function () {
31746
32156
  column = this.columnModel.getPrimaryColumn(colKey);
31747
32157
  }
31748
32158
  if (!column) {
32159
+ console.error("AG Grid: column '" + colKey + "' not found");
31749
32160
  return;
31750
32161
  }
31751
32162
  this.menuFactory.showMenuAfterMouseEvent(column, mouseEvent);
@@ -31798,6 +32209,7 @@ var GridApi = /** @class */ (function () {
31798
32209
  GridApi.prototype.startEditingCell = function (params) {
31799
32210
  var column = this.columnModel.getGridColumn(params.colKey);
31800
32211
  if (!column) {
32212
+ console.warn("AG Grid: no column found for " + params.colKey);
31801
32213
  return;
31802
32214
  }
31803
32215
  var cellPosition = {
@@ -31836,12 +32248,14 @@ var GridApi = /** @class */ (function () {
31836
32248
  /** Apply transactions to the server side row model. */
31837
32249
  GridApi.prototype.applyServerSideTransaction = function (transaction) {
31838
32250
  if (!this.serverSideTransactionManager) {
32251
+ console.warn('AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.');
31839
32252
  return;
31840
32253
  }
31841
32254
  return this.serverSideTransactionManager.applyTransaction(transaction);
31842
32255
  };
31843
32256
  GridApi.prototype.applyServerSideTransactionAsync = function (transaction, callback) {
31844
32257
  if (!this.serverSideTransactionManager) {
32258
+ console.warn('AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.');
31845
32259
  return;
31846
32260
  }
31847
32261
  return this.serverSideTransactionManager.applyTransactionAsync(transaction, callback);
@@ -31849,12 +32263,14 @@ var GridApi = /** @class */ (function () {
31849
32263
  /** Gets all failed server side loads to retry. */
31850
32264
  GridApi.prototype.retryServerSideLoads = function () {
31851
32265
  if (!this.serverSideRowModel) {
32266
+ console.warn('AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.');
31852
32267
  return;
31853
32268
  }
31854
32269
  this.serverSideRowModel.retryLoads();
31855
32270
  };
31856
32271
  GridApi.prototype.flushServerSideAsyncTransactions = function () {
31857
32272
  if (!this.serverSideTransactionManager) {
32273
+ console.warn('AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.');
31858
32274
  return;
31859
32275
  }
31860
32276
  return this.serverSideTransactionManager.flushAsyncTransactions();
@@ -31862,6 +32278,7 @@ var GridApi = /** @class */ (function () {
31862
32278
  /** Update row data. Pass a transaction object with lists for `add`, `remove` and `update`. */
31863
32279
  GridApi.prototype.applyTransaction = function (rowDataTransaction) {
31864
32280
  if (!this.clientSideRowModel) {
32281
+ console.error('AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1');
31865
32282
  return;
31866
32283
  }
31867
32284
  var res = this.clientSideRowModel.updateRowData(rowDataTransaction);
@@ -31879,12 +32296,14 @@ var GridApi = /** @class */ (function () {
31879
32296
  };
31880
32297
  /** @deprecated AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). */
31881
32298
  GridApi.prototype.updateRowData = function (rowDataTransaction) {
31882
- doOnce(function () { return (void 0); }, 'updateRowData deprecated');
32299
+ 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.';
32300
+ doOnce(function () { return console.warn(message); }, 'updateRowData deprecated');
31883
32301
  return this.applyTransaction(rowDataTransaction);
31884
32302
  };
31885
32303
  /** Same as `applyTransaction` except executes asynchronously for efficiency. */
31886
32304
  GridApi.prototype.applyTransactionAsync = function (rowDataTransaction, callback) {
31887
32305
  if (!this.clientSideRowModel) {
32306
+ console.error('AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.');
31888
32307
  return;
31889
32308
  }
31890
32309
  this.clientSideRowModel.batchUpdateRowData(rowDataTransaction, callback);
@@ -31892,34 +32311,41 @@ var GridApi = /** @class */ (function () {
31892
32311
  /** Executes any remaining asynchronous grid transactions, if any are waiting to be executed. */
31893
32312
  GridApi.prototype.flushAsyncTransactions = function () {
31894
32313
  if (!this.clientSideRowModel) {
32314
+ console.error('AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.');
31895
32315
  return;
31896
32316
  }
31897
32317
  this.clientSideRowModel.flushAsyncTransactions();
31898
32318
  };
31899
32319
  /** @deprecated AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). */
31900
32320
  GridApi.prototype.batchUpdateRowData = function (rowDataTransaction, callback) {
31901
- doOnce(function () { return (void 0); }, 'batchUpdateRowData deprecated');
32321
+ 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.';
32322
+ doOnce(function () { return console.warn(message); }, 'batchUpdateRowData deprecated');
31902
32323
  this.applyTransactionAsync(rowDataTransaction, callback);
31903
32324
  };
31904
32325
  /** @deprecated AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead.*/
31905
32326
  GridApi.prototype.insertItemsAtIndex = function (index, items, skipRefresh) {
32327
+ console.warn('AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead.');
31906
32328
  this.updateRowData({ add: items, addIndex: index, update: null, remove: null });
31907
32329
  };
31908
32330
  /** @deprecated AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead. */
31909
32331
  GridApi.prototype.removeItems = function (rowNodes, skipRefresh) {
32332
+ console.warn('AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.');
31910
32333
  var dataToRemove = rowNodes.map(function (rowNode) { return rowNode.data; });
31911
32334
  this.updateRowData({ add: null, addIndex: null, update: null, remove: dataToRemove });
31912
32335
  };
31913
32336
  /** @deprecated AG Grid: addItems() is deprecated, use updateRowData(transaction) instead. */
31914
32337
  GridApi.prototype.addItems = function (items, skipRefresh) {
32338
+ console.warn('AG Grid: addItems() is deprecated, use updateRowData(transaction) instead.');
31915
32339
  this.updateRowData({ add: items, addIndex: null, update: null, remove: null });
31916
32340
  };
31917
32341
  /** @deprecated AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead */
31918
32342
  GridApi.prototype.refreshVirtualPageCache = function () {
32343
+ console.warn('AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead');
31919
32344
  this.refreshInfiniteCache();
31920
32345
  };
31921
32346
  /** @deprecated AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead */
31922
32347
  GridApi.prototype.refreshInfinitePageCache = function () {
32348
+ console.warn('AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead');
31923
32349
  this.refreshInfiniteCache();
31924
32350
  };
31925
32351
  /**
@@ -31931,13 +32357,18 @@ var GridApi = /** @class */ (function () {
31931
32357
  if (this.infiniteRowModel) {
31932
32358
  this.infiniteRowModel.refreshCache();
31933
32359
  }
32360
+ else {
32361
+ console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.");
32362
+ }
31934
32363
  };
31935
32364
  /** @deprecated AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead */
31936
32365
  GridApi.prototype.purgeVirtualPageCache = function () {
32366
+ console.warn('AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead');
31937
32367
  this.purgeInfinitePageCache();
31938
32368
  };
31939
32369
  /** @deprecated AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead */
31940
32370
  GridApi.prototype.purgeInfinitePageCache = function () {
32371
+ console.warn('AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead');
31941
32372
  this.purgeInfiniteCache();
31942
32373
  };
31943
32374
  /**
@@ -31950,20 +32381,28 @@ var GridApi = /** @class */ (function () {
31950
32381
  if (this.infiniteRowModel) {
31951
32382
  this.infiniteRowModel.purgeCache();
31952
32383
  }
32384
+ else {
32385
+ console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.");
32386
+ }
31953
32387
  };
31954
32388
  /** @deprecated AG Grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.refreshServerSide({purge: true}) */
31955
32389
  GridApi.prototype.purgeEnterpriseCache = function (route) {
32390
+ console.warn("AG Grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.refreshServerSide({purge: true})");
31956
32391
  this.purgeServerSideCache(route);
31957
32392
  };
31958
32393
  /** @deprecated AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead. */
31959
32394
  GridApi.prototype.purgeServerSideCache = function (route) {
31960
32395
  if (route === void 0) { route = []; }
31961
32396
  if (this.serverSideRowModel) {
32397
+ console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead.");
31962
32398
  this.refreshServerSide({
31963
32399
  route: route,
31964
32400
  purge: true
31965
32401
  });
31966
32402
  }
32403
+ else {
32404
+ console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.");
32405
+ }
31967
32406
  };
31968
32407
  /**
31969
32408
  * Refresh a server-side level.
@@ -31972,29 +32411,34 @@ var GridApi = /** @class */ (function () {
31972
32411
  */
31973
32412
  GridApi.prototype.refreshServerSide = function (params) {
31974
32413
  if (!this.serverSideRowModel) {
32414
+ console.warn("AG Grid: api.refreshServerSide is only available when rowModelType='serverSide'.");
31975
32415
  return;
31976
32416
  }
31977
32417
  this.serverSideRowModel.refreshStore(params);
31978
32418
  };
31979
32419
  /** @deprecated use `refreshServerSide` instead */
31980
32420
  GridApi.prototype.refreshServerSideStore = function (params) {
31981
- doOnce(function () { return (void 0); }, 'refreshServerSideStore-renamed');
32421
+ var message = "AG Grid: Grid API refreshServerSideStore() was renamed to refreshServerSide() in v28.0";
32422
+ doOnce(function () { return console.warn(message); }, 'refreshServerSideStore-renamed');
31982
32423
  return this.refreshServerSide(params);
31983
32424
  };
31984
32425
  /** @deprecated use `getServerSideGroupLevelState` instead */
31985
32426
  GridApi.prototype.getServerSideStoreState = function () {
31986
- doOnce(function () { return (void 0); }, 'getServerSideStoreState-renamed');
32427
+ var message = "AG Grid: Grid API getServerSideStoreState() was renamed to getServerSideGroupLevelState() in v28.0";
32428
+ doOnce(function () { return console.warn(message); }, 'getServerSideStoreState-renamed');
31987
32429
  return this.getServerSideGroupLevelState();
31988
32430
  };
31989
32431
  /** Returns info on all server side group levels. */
31990
32432
  GridApi.prototype.getServerSideGroupLevelState = function () {
31991
32433
  if (!this.serverSideRowModel) {
32434
+ console.warn("AG Grid: api.getServerSideGroupLevelState is only available when rowModelType='serverSide'.");
31992
32435
  return [];
31993
32436
  }
31994
32437
  return this.serverSideRowModel.getStoreState();
31995
32438
  };
31996
32439
  /** @deprecated AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead */
31997
32440
  GridApi.prototype.getVirtualRowCount = function () {
32441
+ console.warn('AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead');
31998
32442
  return this.getInfiniteRowCount();
31999
32443
  };
32000
32444
  /** The row count defines how many rows the grid allows scrolling to. */
@@ -32002,9 +32446,13 @@ var GridApi = /** @class */ (function () {
32002
32446
  if (this.infiniteRowModel) {
32003
32447
  return this.infiniteRowModel.getRowCount();
32004
32448
  }
32449
+ else {
32450
+ console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.");
32451
+ }
32005
32452
  };
32006
32453
  /** @deprecated AG Grid: api.isMaxRowFound is deprecated, please use api.isLastRowIndexKnown() */
32007
32454
  GridApi.prototype.isMaxRowFound = function () {
32455
+ console.warn("AG Grid: api.isMaxRowFound is deprecated, please use api.isLastRowIndexKnown()");
32008
32456
  return this.isLastRowIndexKnown();
32009
32457
  };
32010
32458
  /** Returns `true` if grid allows for scrolling past the last row to load more rows, thus providing infinite scroll. */
@@ -32012,13 +32460,18 @@ var GridApi = /** @class */ (function () {
32012
32460
  if (this.infiniteRowModel) {
32013
32461
  return this.infiniteRowModel.isLastRowIndexKnown();
32014
32462
  }
32463
+ else {
32464
+ console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.");
32465
+ }
32015
32466
  };
32016
32467
  /** @deprecated AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead */
32017
32468
  GridApi.prototype.setVirtualRowCount = function (rowCount, maxRowFound) {
32469
+ console.warn('AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead');
32018
32470
  this.setRowCount(rowCount, maxRowFound);
32019
32471
  };
32020
32472
  /** @deprecated AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead */
32021
32473
  GridApi.prototype.setInfiniteRowCount = function (rowCount, maxRowFound) {
32474
+ console.warn('AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead');
32022
32475
  this.setRowCount(rowCount, maxRowFound);
32023
32476
  };
32024
32477
  /**
@@ -32032,13 +32485,18 @@ var GridApi = /** @class */ (function () {
32032
32485
  if (this.infiniteRowModel) {
32033
32486
  this.infiniteRowModel.setRowCount(rowCount, maxRowFound);
32034
32487
  }
32488
+ else {
32489
+ console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.");
32490
+ }
32035
32491
  };
32036
32492
  /** @deprecated AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead */
32037
32493
  GridApi.prototype.getVirtualPageState = function () {
32494
+ console.warn('AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead');
32038
32495
  return this.getCacheBlockState();
32039
32496
  };
32040
32497
  /** @deprecated getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead */
32041
32498
  GridApi.prototype.getInfinitePageState = function () {
32499
+ console.warn('AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead');
32042
32500
  return this.getCacheBlockState();
32043
32501
  };
32044
32502
  /**
@@ -32049,9 +32507,11 @@ var GridApi = /** @class */ (function () {
32049
32507
  };
32050
32508
  /** @deprecated In AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything useful. */
32051
32509
  GridApi.prototype.checkGridSize = function () {
32510
+ console.warn("In AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything useful.");
32052
32511
  };
32053
32512
  /** @deprecated In AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow() */
32054
32513
  GridApi.prototype.getFirstRenderedRow = function () {
32514
+ console.warn('In AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()');
32055
32515
  return this.getFirstDisplayedRow();
32056
32516
  };
32057
32517
  /** Get the index of the first displayed row due to scrolling (includes invisible rendered rows in the buffer). */
@@ -32060,6 +32520,7 @@ var GridApi = /** @class */ (function () {
32060
32520
  };
32061
32521
  /** @deprecated In AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow() */
32062
32522
  GridApi.prototype.getLastRenderedRow = function () {
32523
+ console.warn('in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()');
32063
32524
  return this.getLastDisplayedRow();
32064
32525
  };
32065
32526
  /** Get the index of the last displayed row due to scrolling (includes invisible rendered rows in the buffer). */
@@ -33111,7 +33572,11 @@ var SelectAllFeature = /** @class */ (function (_super) {
33111
33572
  };
33112
33573
  };
33113
33574
  SelectAllFeature.prototype.checkRightRowModelType = function () {
33114
- this.rowModel.getType();
33575
+ var rowModelType = this.rowModel.getType();
33576
+ var rowModelMatches = rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE;
33577
+ if (!rowModelMatches) {
33578
+ console.warn("AG Grid: selectAllCheckbox is only available if using normal row model, you are using " + rowModelType);
33579
+ }
33115
33580
  };
33116
33581
  SelectAllFeature.prototype.onCbSelectAll = function () {
33117
33582
  if (this.processingEventFromCheckbox) {
@@ -33143,12 +33608,15 @@ var SelectAllFeature = /** @class */ (function (_super) {
33143
33608
  }
33144
33609
  if (result) {
33145
33610
  if (this.gridOptionsWrapper.isRowModelServerSide()) {
33611
+ console.warn('AG Grid: headerCheckboxSelection is not supported for Server Side Row Model');
33146
33612
  return false;
33147
33613
  }
33148
33614
  if (this.gridOptionsWrapper.isRowModelInfinite()) {
33615
+ console.warn('AG Grid: headerCheckboxSelection is not supported for Infinite Row Model');
33149
33616
  return false;
33150
33617
  }
33151
33618
  if (this.gridOptionsWrapper.isRowModelViewport()) {
33619
+ console.warn('AG Grid: headerCheckboxSelection is not supported for Viewport Row Model');
33152
33620
  return false;
33153
33621
  }
33154
33622
  // otherwise the row model is compatible, so return true
@@ -35765,6 +36233,9 @@ var AnimationFrameService = /** @class */ (function (_super) {
35765
36233
  // frames. this stops bugs - where some code is asking for a frame to be executed
35766
36234
  // when it should not.
35767
36235
  AnimationFrameService.prototype.verifyAnimationFrameOn = function (methodName) {
36236
+ if (this.useAnimationFrame === false) {
36237
+ console.warn("AG Grid: AnimationFrameService." + methodName + " called but animation frames are off");
36238
+ }
35768
36239
  };
35769
36240
  AnimationFrameService.prototype.createTask = function (task, index, list) {
35770
36241
  this.verifyAnimationFrameOn(list);
@@ -37001,10 +37472,10 @@ var RowRenderer = /** @class */ (function (_super) {
37001
37472
  this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_ROW_CLASS, this.redrawRows.bind(this));
37002
37473
  if (this.gridOptionsWrapper.isGroupRowsSticky()) {
37003
37474
  if (this.rowModel.getType() != Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {
37004
- doOnce(function () { return (void 0); }, 'rowRenderer.stickyWorksWithCsrmOnly');
37475
+ doOnce(function () { return console.warn('AG Grid: The feature Sticky Row Groups only works with the Client Side Row Model'); }, 'rowRenderer.stickyWorksWithCsrmOnly');
37005
37476
  }
37006
37477
  else if (this.gridOptionsWrapper.isTreeData()) {
37007
- doOnce(function () { return (void 0); }, 'rowRenderer.stickyDoesNotWorkWithTreeData');
37478
+ doOnce(function () { return console.warn('AG Grid: The feature Sticky Row Groups does not work with Tree Data.'); }, 'rowRenderer.stickyDoesNotWorkWithTreeData');
37008
37479
  }
37009
37480
  else {
37010
37481
  this.stickyRowFeature = this.createManagedBean(new StickyRowFeature(this.createRowCon.bind(this), this.destroyRowCtrls.bind(this)));
@@ -41148,7 +41619,9 @@ var AgMenuList = /** @class */ (function (_super) {
41148
41619
  if (menuItemOrString === 'separator') {
41149
41620
  _this.addSeparator();
41150
41621
  }
41151
- else if (typeof menuItemOrString === 'string') ;
41622
+ else if (typeof menuItemOrString === 'string') {
41623
+ console.warn("AG Grid: unrecognised menu item " + menuItemOrString);
41624
+ }
41152
41625
  else {
41153
41626
  _this.addItem(menuItemOrString);
41154
41627
  }
@@ -41513,7 +41986,9 @@ var AgMenuItemComponent = /** @class */ (function (_super) {
41513
41986
  else if (typeof this.params.icon === 'string') {
41514
41987
  icon.innerHTML = this.params.icon;
41515
41988
  }
41516
- else ;
41989
+ else {
41990
+ console.warn('AG Grid: menu item icon must be DOM node or string');
41991
+ }
41517
41992
  }
41518
41993
  this.getGui().appendChild(icon);
41519
41994
  };
@@ -42463,6 +42938,7 @@ var PopupService = /** @class */ (function (_super) {
42463
42938
  var eDocument = this.gridOptionsWrapper.getDocument();
42464
42939
  var destroyPositionTracker = new AgPromise(function (resolve) { return resolve(function () { }); });
42465
42940
  if (!eDocument) {
42941
+ console.warn('ag-grid: could not find the document, document is empty');
42466
42942
  return { hideFunc: function () { }, stopAnchoringPromise: destroyPositionTracker };
42467
42943
  }
42468
42944
  var pos = this.popupList.findIndex(function (popup) { return popup.element === eChild; });
@@ -42875,6 +43351,7 @@ var VirtualList = /** @class */ (function (_super) {
42875
43351
  VirtualList.prototype.ensureIndexVisible = function (index) {
42876
43352
  var lastRow = this.model.getRowCount();
42877
43353
  if (typeof index !== 'number' || index < 0 || index >= lastRow) {
43354
+ console.warn('AG Grid: invalid row index for ensureIndexVisible: ' + index);
42878
43355
  return;
42879
43356
  }
42880
43357
  var rowTopPixel = index * this.rowHeight;
@@ -43178,6 +43655,7 @@ var CellNavigationService = /** @class */ (function (_super) {
43178
43655
  break;
43179
43656
  default:
43180
43657
  pointer = null;
43658
+ console.warn('AG Grid: unknown key for navigation ' + key);
43181
43659
  break;
43182
43660
  }
43183
43661
  if (pointer) {
@@ -43572,6 +44050,12 @@ var AlignedGridsService = /** @class */ (function (_super) {
43572
44050
  var groupOpenedEvent = event;
43573
44051
  _this.processGroupOpenedEvent(groupOpenedEvent);
43574
44052
  break;
44053
+ case Events.EVENT_COLUMN_PIVOT_CHANGED:
44054
+ // we cannot support pivoting with aligned grids as the columns will be out of sync as the
44055
+ // grids will have columns created based on the row data of the grid.
44056
+ console.warn('AG Grid: pivoting is not supported with aligned grids. ' +
44057
+ 'You can only use one of these features at a time in a grid.');
44058
+ break;
43575
44059
  }
43576
44060
  });
43577
44061
  };
@@ -43873,11 +44357,13 @@ var SelectionService = /** @class */ (function (_super) {
43873
44357
  // where groups don't actually appear in the selection normally.
43874
44358
  SelectionService.prototype.getBestCostNodeSelection = function () {
43875
44359
  if (this.rowModel.getType() !== Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {
44360
+ console.warn('AG Grid: `getBestCostNodeSelection` is only available when using normal row model');
43876
44361
  return;
43877
44362
  }
43878
44363
  var clientSideRowModel = this.rowModel;
43879
44364
  var topLevelNodes = clientSideRowModel.getTopLevelNodes();
43880
44365
  if (topLevelNodes === null) {
44366
+ console.warn('AG Grid: `selectAll` not available doing `rowModel=virtual`');
43881
44367
  return;
43882
44368
  }
43883
44369
  var result = [];
@@ -43919,6 +44405,7 @@ var SelectionService = /** @class */ (function (_super) {
43919
44405
  var rowModelClientSide = this.rowModel.getType() === Constants.ROW_MODEL_TYPE_CLIENT_SIDE;
43920
44406
  if (justFiltered) {
43921
44407
  if (!rowModelClientSide) {
44408
+ console.error('AG Grid: selecting just filtered only works with In Memory Row Model');
43922
44409
  return;
43923
44410
  }
43924
44411
  var clientSideRowModel = this.rowModel;
@@ -44031,6 +44518,11 @@ var ColumnApi = /** @class */ (function () {
44031
44518
  }
44032
44519
  /** 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. */
44033
44520
  ColumnApi.prototype.sizeColumnsToFit = function (gridWidth) {
44521
+ // AG-3403 validate that gridWidth is provided because this method has the same name as
44522
+ // a method on the grid API that takes no arguments, and it's easy to confuse the two
44523
+ if (typeof gridWidth === "undefined") {
44524
+ console.error('AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)');
44525
+ }
44034
44526
  this.columnModel.sizeColumnsToFit(gridWidth, 'api');
44035
44527
  };
44036
44528
  /** Call this if you want to open or close a column group. */
@@ -44099,6 +44591,7 @@ var ColumnApi = /** @class */ (function () {
44099
44591
  ColumnApi.prototype.moveColumn = function (key, toIndex) {
44100
44592
  if (typeof key === 'number') {
44101
44593
  // moveColumn used to take indexes, so this is advising user who hasn't moved to new method name
44594
+ 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');
44102
44595
  this.columnModel.moveColumnByIndex(key, toIndex, 'api');
44103
44596
  }
44104
44597
  else {
@@ -44129,6 +44622,7 @@ var ColumnApi = /** @class */ (function () {
44129
44622
  ColumnApi.prototype.isPivotMode = function () { return this.columnModel.isPivotMode(); };
44130
44623
  /** @deprecated Use `getPivotResultColumn` instead */
44131
44624
  ColumnApi.prototype.getSecondaryPivotColumn = function (pivotKeys, valueColKey) {
44625
+ console.warn('AG Grid: since version 28.0.x getSecondaryPivotColumn has been renamed, please use getPivotResultColumn instead');
44132
44626
  return this.getPivotResultColumn(pivotKeys, valueColKey);
44133
44627
  };
44134
44628
  /** Returns the pivot result column for the given `pivotKeys` and `valueColId`. Useful to then call operations on the pivot column. */
@@ -44187,18 +44681,21 @@ var ColumnApi = /** @class */ (function () {
44187
44681
  ColumnApi.prototype.autoSizeAllColumns = function (skipHeader) { this.columnModel.autoSizeAllColumns(skipHeader, 'api'); };
44188
44682
  /** @deprecated Use `setPivotResultColumns` instead. */
44189
44683
  ColumnApi.prototype.setSecondaryColumns = function (colDefs) {
44684
+ console.warn('AG Grid: since version 28.0.x setSecondaryColumns has been renamed, please use setPivotResultColumns instead');
44190
44685
  this.setPivotResultColumns(colDefs);
44191
44686
  };
44192
44687
  /** Set the pivot result columns. */
44193
44688
  ColumnApi.prototype.setPivotResultColumns = function (colDefs) { this.columnModel.setSecondaryColumns(colDefs, 'api'); };
44194
44689
  /** @deprecated Use `getPivotResultColumns` instead. */
44195
44690
  ColumnApi.prototype.getSecondaryColumns = function () {
44691
+ console.warn('AG Grid: since version 28.0.x getSecondaryColumns has been renamed, please use getPivotResultColumns instead');
44196
44692
  return this.getPivotResultColumns();
44197
44693
  };
44198
44694
  /** Returns the grid's pivot result columns. */
44199
44695
  ColumnApi.prototype.getPivotResultColumns = function () { return this.columnModel.getSecondaryColumns(); };
44200
44696
  /** @deprecated Use `getColumns` instead. */
44201
44697
  ColumnApi.prototype.getPrimaryColumns = function () {
44698
+ console.warn('AG Grid: since version 28.0.x getPrimaryColumns has been renamed, please use getColumns instead');
44202
44699
  return this.getColumns();
44203
44700
  };
44204
44701
  ColumnApi.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid = function () {
@@ -44217,66 +44714,82 @@ var ColumnApi = /** @class */ (function () {
44217
44714
  // }
44218
44715
  /** @deprecated Use `getColumns` instead */
44219
44716
  ColumnApi.prototype.getAllColumns = function () {
44717
+ console.warn('AG Grid: since version 28.0.x getAllColumns has been renamed, please use getColumns instead');
44220
44718
  return this.getColumns();
44221
44719
  };
44222
44720
  /** @deprecated columnGroupOpened no longer exists, use setColumnGroupOpened */
44223
44721
  ColumnApi.prototype.columnGroupOpened = function (group, newValue) {
44722
+ console.error('AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened');
44224
44723
  this.setColumnGroupOpened(group, newValue);
44225
44724
  };
44226
44725
  /** @deprecated hideColumns is deprecated, use setColumnsVisible */
44227
44726
  ColumnApi.prototype.hideColumns = function (colIds, hide) {
44727
+ console.error('AG Grid: hideColumns is deprecated, use setColumnsVisible');
44228
44728
  this.columnModel.setColumnsVisible(colIds, !hide, 'api');
44229
44729
  };
44230
44730
  /** @deprecated hideColumn is deprecated, use setColumnVisible */
44231
44731
  ColumnApi.prototype.hideColumn = function (colId, hide) {
44732
+ console.error('AG Grid: hideColumn is deprecated, use setColumnVisible');
44232
44733
  this.columnModel.setColumnVisible(colId, !hide, 'api');
44233
44734
  };
44234
44735
  /** @deprecated setState is deprecated, use setColumnState */
44235
44736
  ColumnApi.prototype.setState = function (columnState) {
44737
+ console.error('AG Grid: setState is deprecated, use setColumnState');
44236
44738
  return this.setColumnState(columnState);
44237
44739
  };
44238
44740
  /** @deprecated getState is deprecated, use getColumnState */
44239
44741
  ColumnApi.prototype.getState = function () {
44742
+ console.error('AG Grid: getState is deprecated, use getColumnState');
44240
44743
  return this.getColumnState();
44241
44744
  };
44242
44745
  /** @deprecated resetState is deprecated, use resetColumnState */
44243
44746
  ColumnApi.prototype.resetState = function () {
44747
+ console.error('AG Grid: resetState is deprecated, use resetColumnState');
44244
44748
  this.resetColumnState();
44245
44749
  };
44246
44750
  /** @deprecated getAggregationColumns is deprecated, use getValueColumns */
44247
44751
  ColumnApi.prototype.getAggregationColumns = function () {
44752
+ console.error('AG Grid: getAggregationColumns is deprecated, use getValueColumns');
44248
44753
  return this.columnModel.getValueColumns();
44249
44754
  };
44250
44755
  /** @deprecated removeAggregationColumn is deprecated, use removeValueColumn */
44251
44756
  ColumnApi.prototype.removeAggregationColumn = function (colKey) {
44757
+ console.error('AG Grid: removeAggregationColumn is deprecated, use removeValueColumn');
44252
44758
  this.columnModel.removeValueColumn(colKey, 'api');
44253
44759
  };
44254
44760
  /** @deprecated removeAggregationColumns is deprecated, use removeValueColumns */
44255
44761
  ColumnApi.prototype.removeAggregationColumns = function (colKeys) {
44762
+ console.error('AG Grid: removeAggregationColumns is deprecated, use removeValueColumns');
44256
44763
  this.columnModel.removeValueColumns(colKeys, 'api');
44257
44764
  };
44258
44765
  /** @deprecated addAggregationColumn is deprecated, use addValueColumn */
44259
44766
  ColumnApi.prototype.addAggregationColumn = function (colKey) {
44767
+ console.error('AG Grid: addAggregationColumn is deprecated, use addValueColumn');
44260
44768
  this.columnModel.addValueColumn(colKey, 'api');
44261
44769
  };
44262
44770
  /** @deprecated addAggregationColumns is deprecated, use addValueColumns */
44263
44771
  ColumnApi.prototype.addAggregationColumns = function (colKeys) {
44772
+ console.error('AG Grid: addAggregationColumns is deprecated, use addValueColumns');
44264
44773
  this.columnModel.addValueColumns(colKeys, 'api');
44265
44774
  };
44266
44775
  /** @deprecated setColumnAggFunction is deprecated, use setColumnAggFunc */
44267
44776
  ColumnApi.prototype.setColumnAggFunction = function (column, aggFunc) {
44777
+ console.error('AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc');
44268
44778
  this.columnModel.setColumnAggFunc(column, aggFunc, 'api');
44269
44779
  };
44270
44780
  /** @deprecated getDisplayNameForCol is deprecated, use getDisplayNameForColumn */
44271
44781
  ColumnApi.prototype.getDisplayNameForCol = function (column) {
44782
+ console.error('AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn');
44272
44783
  return this.getDisplayNameForColumn(column, null);
44273
44784
  };
44274
44785
  /** @deprecated setColumnState is deprecated, use applyColumnState. */
44275
44786
  ColumnApi.prototype.setColumnState = function (columnState) {
44787
+ console.error('AG Grid: setColumnState is deprecated, use applyColumnState');
44276
44788
  return this.columnModel.applyColumnState({ state: columnState, applyOrder: true }, 'api');
44277
44789
  };
44278
44790
  /** @deprecated getOriginalColumnGroup is deprecated, use getProvidedColumnGroup. */
44279
44791
  ColumnApi.prototype.getOriginalColumnGroup = function (name) {
44792
+ console.error('AG Grid: getOriginalColumnGroup is deprecated, use getProvidedColumnGroup');
44280
44793
  return this.columnModel.getProvidedColumnGroup(name);
44281
44794
  };
44282
44795
  __decorate$1n([
@@ -44429,6 +44942,7 @@ var ValueService = /** @class */ (function (_super) {
44429
44942
  // need either a field or a newValueHandler for this to work
44430
44943
  if (missing(field) && missing(newValueHandler) && missing(valueSetter)) {
44431
44944
  // we don't tell user about newValueHandler, as that is deprecated
44945
+ console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work");
44432
44946
  return false;
44433
44947
  }
44434
44948
  var params = {
@@ -44605,6 +45119,7 @@ var ValueService = /** @class */ (function (_super) {
44605
45119
  result = String(result);
44606
45120
  if (result === '[object Object]') {
44607
45121
  doOnce(function () {
45122
+ 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');
44608
45123
  }, 'getKeyForNode - warn about [object,object]');
44609
45124
  }
44610
45125
  return result;
@@ -44676,7 +45191,9 @@ var ExpressionService = /** @class */ (function (_super) {
44676
45191
  var expression = expressionOrFunc;
44677
45192
  return this.evaluateExpression(expression, params);
44678
45193
  }
44679
- else ;
45194
+ else {
45195
+ console.error('AG Grid: value should be either a string or a function', expressionOrFunc);
45196
+ }
44680
45197
  };
44681
45198
  ExpressionService.prototype.evaluateExpression = function (expression, params) {
44682
45199
  try {
@@ -44690,9 +45207,13 @@ var ExpressionService = /** @class */ (function (_super) {
44690
45207
  // the expression failed, which can happen, as it's the client that
44691
45208
  // provides the expression. so print a nice message
44692
45209
  // tslint:disable-next-line
45210
+ console.log('Processing of the expression failed');
44693
45211
  // tslint:disable-next-line
45212
+ console.log('Expression = ' + expression);
44694
45213
  // tslint:disable-next-line
45214
+ console.log('Params =', params);
44695
45215
  // tslint:disable-next-line
45216
+ console.log('Exception = ' + e);
44696
45217
  return null;
44697
45218
  }
44698
45219
  };
@@ -44790,6 +45311,7 @@ var TemplateService = /** @class */ (function (_super) {
44790
45311
  };
44791
45312
  TemplateService.prototype.handleHttpResult = function (httpResult, url) {
44792
45313
  if (httpResult.status !== 200 || httpResult.response === null) {
45314
+ console.warn("AG Grid: Unable to get template error " + httpResult.status + " - " + url);
44793
45315
  return;
44794
45316
  }
44795
45317
  // response success, so process it
@@ -44870,7 +45392,10 @@ var Logger = /** @class */ (function () {
44870
45392
  return this.isLoggingFunc();
44871
45393
  };
44872
45394
  Logger.prototype.log = function (message) {
44873
- if (this.isLoggingFunc()) ;
45395
+ if (this.isLoggingFunc()) {
45396
+ // tslint:disable-next-line
45397
+ console.log('AG Grid.' + this.name + ': ' + message);
45398
+ }
44874
45399
  };
44875
45400
  return Logger;
44876
45401
  }());
@@ -45270,6 +45795,7 @@ var SortController = /** @class */ (function (_super) {
45270
45795
  sortingOrder = SortController_1.DEFAULT_SORTING_ORDER;
45271
45796
  }
45272
45797
  if (!Array.isArray(sortingOrder) || sortingOrder.length <= 0) {
45798
+ console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's " + sortingOrder);
45273
45799
  return null;
45274
45800
  }
45275
45801
  var currentIndex = sortingOrder.indexOf(column.getSort());
@@ -45284,6 +45810,7 @@ var SortController = /** @class */ (function (_super) {
45284
45810
  }
45285
45811
  // verify the sort type exists, as the user could provide the sortingOrder, need to make sure it's valid
45286
45812
  if (SortController_1.DEFAULT_SORTING_ORDER.indexOf(result) < 0) {
45813
+ console.warn('AG Grid: invalid sort type ' + result);
45287
45814
  return null;
45288
45815
  }
45289
45816
  return result;
@@ -45612,6 +46139,7 @@ var AutoGroupColService = /** @class */ (function (_super) {
45612
46139
  var doingTreeData = this.gridOptionsWrapper.isTreeData();
45613
46140
  var doingMultiAutoColumn = this.gridOptionsWrapper.isGroupMultiAutoColumn();
45614
46141
  if (doingTreeData && doingMultiAutoColumn) {
46142
+ console.warn('AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data');
45615
46143
  doingMultiAutoColumn = false;
45616
46144
  }
45617
46145
  // if doing groupMultiAutoColumn, then we call the method multiple times, once
@@ -46295,8 +46823,8 @@ var Environment = /** @class */ (function (_super) {
46295
46823
  var theme = themeMatch[0];
46296
46824
  var usingOldTheme = themeMatch[2] === undefined;
46297
46825
  if (usingOldTheme) {
46298
- theme.replace('ag-', 'ag-theme-');
46299
- doOnce(function () { return (void 0); }, 'using-old-theme');
46826
+ var newTheme_1 = theme.replace('ag-', 'ag-theme-');
46827
+ 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');
46300
46828
  }
46301
46829
  return { theme: theme, el: el, themeFamily: theme.replace(/-dark$/, ''), allThemes: allThemes };
46302
46830
  };
@@ -47802,6 +48330,7 @@ var RowCssClassCalculator = /** @class */ (function () {
47802
48330
  var rowClass = this.gridOptionsWrapper.getRowClass();
47803
48331
  if (rowClass) {
47804
48332
  if (typeof rowClass === 'function') {
48333
+ console.warn('AG Grid: rowClass should not be a function, please use getRowClass instead');
47805
48334
  return [];
47806
48335
  }
47807
48336
  process(rowClass);
@@ -48642,6 +49171,7 @@ var __spread$6 = (undefined && undefined.__spread) || function () {
48642
49171
  var Grid = /** @class */ (function () {
48643
49172
  function Grid(eGridDiv, gridOptions, params) {
48644
49173
  if (!gridOptions) {
49174
+ console.error('AG Grid: no gridOptions provided to the grid');
48645
49175
  return;
48646
49176
  }
48647
49177
  this.gridOptions = gridOptions;
@@ -48847,7 +49377,32 @@ var GridCoreCreator = /** @class */ (function () {
48847
49377
  if (exists(rowModelClass)) {
48848
49378
  return rowModelClass;
48849
49379
  }
48850
- if (ModuleRegistry.isPackageBased()) ;
49380
+ if (ModuleRegistry.isPackageBased()) {
49381
+ if ([Constants.ROW_MODEL_TYPE_VIEWPORT, Constants.ROW_MODEL_TYPE_SERVER_SIDE].includes(rowModelType)) {
49382
+ // If package based only the enterprise row models could be missing.
49383
+ 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/");
49384
+ }
49385
+ else {
49386
+ console.error('AG Grid: could not find row model for rowModelType ' + rowModelType);
49387
+ }
49388
+ }
49389
+ else {
49390
+ if (rowModelType === Constants.ROW_MODEL_TYPE_INFINITE) {
49391
+ 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/");
49392
+ }
49393
+ else if (rowModelType === Constants.ROW_MODEL_TYPE_VIEWPORT) {
49394
+ 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/");
49395
+ }
49396
+ else if (rowModelType === Constants.ROW_MODEL_TYPE_SERVER_SIDE) {
49397
+ 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/");
49398
+ }
49399
+ else if (rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {
49400
+ 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/");
49401
+ }
49402
+ else {
49403
+ console.error('AG Grid: could not find row model for rowModelType ' + rowModelType);
49404
+ }
49405
+ }
48851
49406
  };
48852
49407
  return GridCoreCreator;
48853
49408
  }());
@@ -49109,15 +49664,51 @@ var LicenseManager = /** @class */ (function (_super) {
49109
49664
  }
49110
49665
  };
49111
49666
  LicenseManager.prototype.outputInvalidLicenseKey = function () {
49667
+ console.error('*****************************************************************************************************************');
49668
+ console.error('***************************************** AG Grid Enterprise License ********************************************');
49669
+ console.error('********************************************* Invalid License ***************************************************');
49670
+ console.error('* Your license for AG Grid Enterprise is not valid - please contact info@ag-grid.com to obtain a valid license. *');
49671
+ console.error('*****************************************************************************************************************');
49672
+ console.error('*****************************************************************************************************************');
49112
49673
  this.watermarkMessage = "Invalid License";
49113
49674
  };
49114
49675
  LicenseManager.prototype.outputExpiredTrialKey = function (formattedExpiryDate) {
49676
+ console.error('****************************************************************************************************************');
49677
+ console.error('***************************************** AG Grid Enterprise License *******************************************');
49678
+ console.error('***************************************** Trial Period Expired. *******************************************');
49679
+ console.error("* Your license for AG Grid Enterprise expired on " + formattedExpiryDate + ". *");
49680
+ console.error('* Please email info@ag-grid.com to purchase a license. *');
49681
+ console.error('****************************************************************************************************************');
49682
+ console.error('****************************************************************************************************************');
49115
49683
  this.watermarkMessage = "Trial Period Expired";
49116
49684
  };
49117
49685
  LicenseManager.prototype.outputMissingLicenseKey = function () {
49686
+ console.error('****************************************************************************************************************');
49687
+ console.error('***************************************** AG Grid Enterprise License *******************************************');
49688
+ console.error('****************************************** License Key Not Found ***********************************************');
49689
+ console.error('* All AG Grid Enterprise features are unlocked. *');
49690
+ console.error('* This is an evaluation only version, it is not licensed for development projects intended for production. *');
49691
+ console.error('* If you want to hide the watermark, please email info@ag-grid.com for a trial license. *');
49692
+ console.error('****************************************************************************************************************');
49693
+ console.error('****************************************************************************************************************');
49118
49694
  this.watermarkMessage = "For Trial Use Only";
49119
49695
  };
49120
49696
  LicenseManager.prototype.outputIncompatibleVersion = function (formattedExpiryDate, formattedReleaseDate) {
49697
+ console.error('****************************************************************************************************************************');
49698
+ console.error('****************************************************************************************************************************');
49699
+ console.error('* AG Grid Enterprise License *');
49700
+ console.error('* License not compatible with installed version of AG Grid Enterprise. *');
49701
+ console.error('* *');
49702
+ console.error("* Your AG Grid License entitles you to all versions of AG Grid that we release within the time covered by your license *");
49703
+ console.error("* - typically we provide one year licenses which entitles you to all releases / updates of AG Grid within that year. *");
49704
+ console.error("* Your license has an end (expiry) date which stops the license key working with versions of AG Grid released after the *");
49705
+ console.error("* license end date. The license key that you have expires on " + formattedExpiryDate + ", however the version of AG Grid you *");
49706
+ console.error("* are trying to use was released on " + formattedReleaseDate + ". *");
49707
+ console.error('* *');
49708
+ 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 *');
49709
+ console.error('* version of AG Grid. *');
49710
+ console.error('****************************************************************************************************************************');
49711
+ console.error('****************************************************************************************************************************');
49121
49712
  this.watermarkMessage = "License Expired";
49122
49713
  };
49123
49714
  var LicenseManager_1;
@@ -49659,14 +50250,20 @@ class DataSource {
49659
50250
  return indexA - indexB;
49660
50251
  });
49661
50252
  this._dataUnit.metadata.fields.forEach(f => {
49662
- var _a;
50253
+ var _a, _b;
49663
50254
  if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
49664
50255
  const props = new Map();
49665
50256
  const properties = this._dataUnit.getField(f.name).properties;
49666
50257
  for (const value in properties) {
49667
50258
  props.set(value, properties[value]);
49668
50259
  }
49669
- 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 });
50260
+ 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 };
50261
+ columnDefs.push(col);
50262
+ if (f.userInterface === core.UserInterface.SEARCHPLUS && ((_b = f.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD)) {
50263
+ const descriptionCol = this.buildDescriptionColumn(f);
50264
+ columnDefs.push(descriptionCol);
50265
+ f.properties[constants.PRESENTATION_COL_ID_PROP_NAME] = descriptionCol.name;
50266
+ }
49670
50267
  }
49671
50268
  });
49672
50269
  }
@@ -49676,6 +50273,19 @@ class DataSource {
49676
50273
  console.warn(error);
49677
50274
  }
49678
50275
  }
50276
+ buildDescriptionColumn(field) {
50277
+ var _a, _b, _c, _d;
50278
+ const props = new Map();
50279
+ props.set(constants.PRESENTATION_FROM_COL_PROP_NAME, field.name);
50280
+ const descriptionFieldName = `${(_a = field.properties) === null || _a === void 0 ? void 0 : _a.ENTITYNAME}.${(_b = field.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD}`;
50281
+ this._dataUnit.addSourceFieldValue(descriptionFieldName, field.name);
50282
+ return {
50283
+ label: `${(_c = field.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONFIELDLABEL} (${(_d = field.properties) === null || _d === void 0 ? void 0 : _d.DESCRIPTIONENTITY})`,
50284
+ name: descriptionFieldName,
50285
+ userInterface: core.UserInterface.SHORTTEXT,
50286
+ props
50287
+ };
50288
+ }
49679
50289
  }
49680
50290
 
49681
50291
  class EzGridCustomHeader {
@@ -49926,7 +50536,7 @@ const gridTerms = {
49926
50536
  };
49927
50537
 
49928
50538
  const buildEditorMetadata = (descriptor, eGridCell, dataUnit, editionManager) => {
49929
- return Object.assign(Object.assign({}, DataBinder.buildFieldMetadata(descriptor)), { eGridCell, dataUnit, editionManager });
50539
+ return Object.assign(Object.assign({}, searchColumn.buildFieldMetadata(descriptor)), { eGridCell, dataUnit, editionManager });
49930
50540
  };
49931
50541
 
49932
50542
  const MINIMIUM_WIDTH_TEXTAREA = 210;
@@ -50086,6 +50696,21 @@ const buildSwitch = (fieldMetadata) => {
50086
50696
  return combo;
50087
50697
  };
50088
50698
 
50699
+ const buildSearchPlus = ({ name, required, readOnly, dataUnit }) => {
50700
+ const ezSearch = core.HTMLBuilder.parseElement(`<ez-search-plus
50701
+ class="ez-grid grid_editor"
50702
+ mode="slim"
50703
+ suppress-empty-option=${required}
50704
+ enabled=${!readOnly}
50705
+ hide-description-input=${true}
50706
+ />`);
50707
+ const loader = core.ApplicationContext.getContextValue("__EZUI__SEARCH__PLUS__OPTION__LOADER__");
50708
+ ezSearch.optionLoader = (argument) => loader(argument, name, dataUnit);
50709
+ ezSearch.autoFocus = true;
50710
+ ezSearch.valueGetter = () => ezSearch.getValueAsync();
50711
+ return ezSearch;
50712
+ };
50713
+
50089
50714
  const buildSearch = ({ name, required, readOnly, eGridCell, dataUnit }) => {
50090
50715
  var _a;
50091
50716
  const ezSearch = core.HTMLBuilder.parseElement(`<ez-search
@@ -50118,6 +50743,7 @@ uiBuilders.set(core.UserInterface.CHECKBOX, buildSwitch);
50118
50743
  uiBuilders.set(core.UserInterface.OPTIONSELECTOR, buildComboBox);
50119
50744
  uiBuilders.set(core.UserInterface.LONGTEXT, buildTextAreaInput);
50120
50745
  uiBuilders.set(core.UserInterface.SEARCH, buildSearch);
50746
+ uiBuilders.set(core.UserInterface.SEARCHPLUS, buildSearchPlus);
50121
50747
  class EzCellEditor {
50122
50748
  init(params) {
50123
50749
  this._rowData = params.data;
@@ -50181,7 +50807,7 @@ class EzGridCustomCellEditor extends EzCellEditor {
50181
50807
  charPress: params.charPress,
50182
50808
  currentEditor: this._defaultGui,
50183
50809
  name: this._fieldName,
50184
- source: ICustomRender.CustomEditorSource.GRID,
50810
+ source: FormLayout.CustomEditorSource.GRID,
50185
50811
  detailContext: params.customEditorsInfo.detailContext,
50186
50812
  setValue: (value) => this.setValue(value),
50187
50813
  getValue: () => this.getValue(),
@@ -50288,7 +50914,7 @@ class EzGridCustomCellRender extends EzCellRender {
50288
50914
  charPress: '',
50289
50915
  currentRender: super.getGui(),
50290
50916
  name: this._fieldName,
50291
- source: ICustomRender.CustomRenderSource.GRID,
50917
+ source: FormLayout.CustomRenderSource.GRID,
50292
50918
  getValue: () => params.getValue(),
50293
50919
  detailContext: params.customRendersInfo.detailContext,
50294
50920
  renderMetadata: {
@@ -50316,8 +50942,9 @@ class EzGridCustomCellRender extends EzCellRender {
50316
50942
 
50317
50943
  class GridEditionManager {
50318
50944
  constructor(dataUnit, useEnterLikeTab, recordsValidator, editionIsDisabled, customEditors, customRenders, enableContinuousInsert, enableGridInsert, lockerId) {
50945
+ this._inProgressChanges = [];
50319
50946
  this._dataUnit = dataUnit;
50320
- this._recordValidationProcessor = new DataBinder.RecordValidationProcessor(this._dataUnit, {
50947
+ this._recordValidationProcessor = new searchColumn.RecordValidationProcessor(this._dataUnit, {
50321
50948
  getRequiredFields: () => this.getRequiredFields(),
50322
50949
  markAsInvalid: (invalidField, recordId) => { this.pushInvalidCell(invalidField, recordId); },
50323
50950
  getMessageForField: () => null,
@@ -50415,6 +51042,12 @@ class GridEditionManager {
50415
51042
  return this._enableContinuousInsert && (this._dataUnit.records.length - 1) === ((_a = this._lastCellEdited) === null || _a === void 0 ? void 0 : _a.rowIndex);
50416
51043
  }
50417
51044
  async proceedAutoSave() {
51045
+ var _a;
51046
+ //Aguarda outras promises entrarem na fila
51047
+ await new Promise(resolve => setTimeout(resolve, 100));
51048
+ if (this._inProgressChanges.length) {
51049
+ await Promise.all((_a = this._inProgressChanges) === null || _a === void 0 ? void 0 : _a.map(({ promise }) => promise));
51050
+ }
50418
51051
  if (!this._dataUnit.isDirty()) {
50419
51052
  this.saveSuccess();
50420
51053
  return true;
@@ -50485,7 +51118,9 @@ class GridEditionManager {
50485
51118
  }
50486
51119
  configureColumn(col) {
50487
51120
  col.cellEditor = 'ezCellEditor';
50488
- col.editable = params => this.canEdit(params);
51121
+ if (col.editable != false) {
51122
+ col.editable = params => this.canEdit(params);
51123
+ }
50489
51124
  col.suppressKeyboardEvent = (params) => {
50490
51125
  if (params.event.key === KeyCode.ESCAPE && params.editing) {
50491
51126
  return this._dataUnit.isDirty();
@@ -50529,7 +51164,7 @@ class GridEditionManager {
50529
51164
  }
50530
51165
  getFormRequiredFields() {
50531
51166
  const formRequiredFields = [];
50532
- const dataBinders = DataBinder.DataBinder.getDataBindersByDataUnit(this._dataUnit);
51167
+ const dataBinders = searchColumn.DataBinder.getDataBindersByDataUnit(this._dataUnit);
50533
51168
  dataBinders.forEach(dataBinder => {
50534
51169
  formRequiredFields.push(...dataBinder.getFormRequiredFields());
50535
51170
  });
@@ -50669,6 +51304,14 @@ class GridEditionManager {
50669
51304
  return;
50670
51305
  }
50671
51306
  if (value instanceof Promise) {
51307
+ const progressChange = {
51308
+ promise: undefined,
51309
+ resolve: () => { }
51310
+ };
51311
+ progressChange.promise = new Promise((resolve) => {
51312
+ progressChange.resolve = resolve;
51313
+ });
51314
+ this._inProgressChanges.push(progressChange);
50672
51315
  this.handlePromiseValue(event, value);
50673
51316
  return;
50674
51317
  }
@@ -50682,20 +51325,26 @@ class GridEditionManager {
50682
51325
  const resolved = await value;
50683
51326
  return this.updateCellValue(event, resolved);
50684
51327
  }
50685
- updateCellValue(event, newValue) {
50686
- var _a;
51328
+ async updateCellValue(event, newValue) {
51329
+ var _a, _b, _c;
50687
51330
  const fieldName = event.colDef.field;
50688
51331
  const fieldDescriptor = this._dataUnit.getField(fieldName);
50689
51332
  if (newValue == '' && newValue != this._dataUnit.getFieldValue(fieldName) && (fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.userInterface) === core.UserInterface.SEARCH) {
50690
51333
  newValue = this._dataUnit.getFieldValue(fieldName);
50691
51334
  }
51335
+ const newData = { [fieldName]: newValue };
51336
+ const descriptionColName = (_a = fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.properties) === null || _a === void 0 ? void 0 : _a[constants.PRESENTATION_COL_ID_PROP_NAME];
51337
+ if (!core.StringUtils.isEmpty(descriptionColName)) {
51338
+ newData[descriptionColName] = newValue === null || newValue === void 0 ? void 0 : newValue.label;
51339
+ }
50692
51340
  event.node.setData(Object.assign(Object.assign({}, event.data), { [fieldName]: newValue }));
50693
- (_a = this._currentEditLock) === null || _a === void 0 ? void 0 : _a.call(this);
51341
+ (_b = this._currentEditLock) === null || _b === void 0 ? void 0 : _b.call(this);
50694
51342
  if (event.oldValue !== newValue) {
50695
51343
  this._isGridEdition = true;
50696
- this._dataUnit.setFieldValue(fieldName, newValue, [event.data.__record__id__], { suppressCreateNewRecord: true });
51344
+ await this._dataUnit.setFieldValue(fieldName, newValue, [event.data.__record__id__], { suppressCreateNewRecord: true });
50697
51345
  this._lastCellEdited = { rowIndex: event.rowIndex, column: event.column, rowPinned: undefined };
50698
51346
  }
51347
+ (_c = this._inProgressChanges) === null || _c === void 0 ? void 0 : _c.forEach(({ resolve }) => resolve(newValue));
50699
51348
  }
50700
51349
  setCellEditors(customEditors) {
50701
51350
  var _a;
@@ -51484,10 +52133,12 @@ var RangeService = /** @class */ (function (_super) {
51484
52133
  var isSameColumn = columnFrom === columnTo;
51485
52134
  var fromIndex = allColumns.indexOf(columnFrom);
51486
52135
  if (fromIndex < 0) {
52136
+ console.warn("AG Grid: column " + columnFrom.getId() + " is not visible");
51487
52137
  return;
51488
52138
  }
51489
52139
  var toIndex = isSameColumn ? fromIndex : allColumns.indexOf(columnTo);
51490
52140
  if (toIndex < 0) {
52141
+ console.warn("AG Grid: column " + columnTo.getId() + " is not visible");
51491
52142
  return;
51492
52143
  }
51493
52144
  if (isSameColumn) {
@@ -52422,10 +53073,12 @@ var ServerSideRowModel = /** @class */ (function (_super) {
52422
53073
  };
52423
53074
  ServerSideRowModel.prototype.verifyProps = function () {
52424
53075
  if (this.gridOptionsWrapper.getInitialGroupOrderComparator() != null) {
52425
- _.doOnce(function () { return (void 0); }, 'SSRM.InitialGroupOrderComparator');
53076
+ 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.";
53077
+ _.doOnce(function () { return console.warn(message_1); }, 'SSRM.InitialGroupOrderComparator');
52426
53078
  }
52427
53079
  if (this.gridOptionsWrapper.isRowSelection() && this.gridOptionsWrapper.getRowIdFunc() == null) {
52428
- _.doOnce(function () { return (void 0); }, 'SSRM.SelectionNeedsRowNodeIdFunc');
53080
+ var message_2 = "AG Grid: getRowId callback must be provided for Server Side Row Model selection to work correctly.";
53081
+ _.doOnce(function () { return console.warn(message_2); }, 'SSRM.SelectionNeedsRowNodeIdFunc');
52429
53082
  }
52430
53083
  };
52431
53084
  ServerSideRowModel.prototype.setDatasource = function (datasource) {
@@ -52975,6 +53628,11 @@ var BlockUtils = /** @class */ (function (_super) {
52975
53628
  rowNode.key = this.valueService.getValue(rowNode.rowGroupColumn, rowNode);
52976
53629
  if (rowNode.key === null || rowNode.key === undefined) {
52977
53630
  _.doOnce(function () {
53631
+ console.warn("AG Grid: null and undefined values are not allowed for server side row model keys");
53632
+ if (rowNode.rowGroupColumn) {
53633
+ console.warn("column = " + rowNode.rowGroupColumn.getId());
53634
+ }
53635
+ console.warn("data is ", rowNode.data);
52978
53636
  }, 'ServerSideBlock-CannotHaveNullOrUndefinedForKey');
52979
53637
  }
52980
53638
  };
@@ -53091,6 +53749,7 @@ var BlockUtils = /** @class */ (function (_super) {
53091
53749
  var bottomPointer = 0;
53092
53750
  var topPointer = rowNodes.length - 1;
53093
53751
  if (_.missing(topPointer) || _.missing(bottomPointer)) {
53752
+ console.warn("AG Grid: error: topPointer = " + topPointer + ", bottomPointer = " + bottomPointer);
53094
53753
  return undefined;
53095
53754
  }
53096
53755
  while (true) {
@@ -53119,6 +53778,7 @@ var BlockUtils = /** @class */ (function (_super) {
53119
53778
  topPointer = midPointer - 1;
53120
53779
  }
53121
53780
  else {
53781
+ console.warn("AG Grid: error: unable to locate rowIndex = " + displayRowIndex + " in cache");
53122
53782
  return undefined;
53123
53783
  }
53124
53784
  }
@@ -53234,6 +53894,11 @@ var NodeManager = /** @class */ (function () {
53234
53894
  }
53235
53895
  NodeManager.prototype.addRowNode = function (rowNode) {
53236
53896
  var id = rowNode.id;
53897
+ if (this.rowNodes[id]) {
53898
+ 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.");
53899
+ console.warn('first instance', this.rowNodes[id].data);
53900
+ console.warn('second instance', rowNode.data);
53901
+ }
53237
53902
  this.rowNodes[id] = rowNode;
53238
53903
  };
53239
53904
  NodeManager.prototype.removeNode = function (rowNode) {
@@ -54165,7 +54830,8 @@ var InfiniteStore = /** @class */ (function (_super) {
54165
54830
  Object.assign(this.info, info);
54166
54831
  }
54167
54832
  if (!params.rowData) {
54168
- _.doOnce(function () { return (void 0); }, 'InfiniteStore.noData');
54833
+ 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.';
54834
+ _.doOnce(function () { return console.warn(message_1, params); }, 'InfiniteStore.noData');
54169
54835
  }
54170
54836
  var finalRowCount = params.rowCount != null && params.rowCount >= 0 ? params.rowCount : undefined;
54171
54837
  // if we are not active, then we ignore all events, otherwise we could end up getting the
@@ -54924,7 +55590,8 @@ var FullStore = /** @class */ (function (_super) {
54924
55590
  this.nodesAfterFilter = [];
54925
55591
  this.allNodesMap = {};
54926
55592
  if (!params.rowData) {
54927
- _.doOnce(function () { return (void 0); }, 'FullStore.noData');
55593
+ 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.';
55594
+ _.doOnce(function () { return console.warn(message_1, params); }, 'FullStore.noData');
54928
55595
  }
54929
55596
  this.createOrRecycleNodes(nodesToRecycle, params.rowData);
54930
55597
  if (nodesToRecycle) {
@@ -55299,6 +55966,7 @@ var FullStore = /** @class */ (function (_super) {
55299
55966
  });
55300
55967
  rowNode = this.allNodesMap[id];
55301
55968
  if (!rowNode) {
55969
+ console.error("AG Grid: could not find row id=" + id + ", data item was not found for this id");
55302
55970
  return null;
55303
55971
  }
55304
55972
  }
@@ -55306,6 +55974,7 @@ var FullStore = /** @class */ (function (_super) {
55306
55974
  // find rowNode using object references
55307
55975
  rowNode = this.allRowNodes.find(function (currentRowNode) { return currentRowNode.data === data; });
55308
55976
  if (!rowNode) {
55977
+ console.error("AG Grid: could not find data item as object was not found", data);
55309
55978
  return null;
55310
55979
  }
55311
55980
  }
@@ -55453,11 +56122,15 @@ var StoreFactory = /** @class */ (function () {
55453
56122
  return undefined;
55454
56123
  }
55455
56124
  if (ssrmParams.dynamicRowHeight) {
55456
- _.doOnce(function () { return (void 0); }, 'storeFactory.maxBlocksInCache.dynamicRowHeight');
56125
+ var message_1 = 'AG Grid: Server Side Row Model does not support Dynamic Row Height and Cache Purging. ' +
56126
+ 'Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.';
56127
+ _.doOnce(function () { return console.warn(message_1); }, 'storeFactory.maxBlocksInCache.dynamicRowHeight');
55457
56128
  return undefined;
55458
56129
  }
55459
56130
  if (this.columnModel.isAutoRowHeightActive()) {
55460
- _.doOnce(function () { return (void 0); }, 'storeFactory.maxBlocksInCache.autoRowHeightActive');
56131
+ var message_2 = 'AG Grid: Server Side Row Model does not support Auto Row Height and Cache Purging. ' +
56132
+ 'Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.';
56133
+ _.doOnce(function () { return console.warn(message_2); }, 'storeFactory.maxBlocksInCache.autoRowHeightActive');
55461
56134
  return undefined;
55462
56135
  }
55463
56136
  return maxBlocksInCache;
@@ -55685,6 +56358,7 @@ var Downloader = /** @class */ (function () {
55685
56358
  Downloader.download = function (fileName, content) {
55686
56359
  var win = document.defaultView || window;
55687
56360
  if (!win) {
56361
+ console.warn('AG Grid: There is no `window` associated with the current `document`');
55688
56362
  return;
55689
56363
  }
55690
56364
  var element = document.createElement('a');
@@ -55818,6 +56492,7 @@ var CsvSerializingSession = /** @class */ (function (_super) {
55818
56492
  stringValue = value.toString();
55819
56493
  }
55820
56494
  else {
56495
+ console.warn('AG Grid: unknown value type during csv conversion');
55821
56496
  stringValue = '';
55822
56497
  }
55823
56498
  // replace each " with "" (ie two sets of double quotes is how to do double quotes in csv)
@@ -55872,6 +56547,7 @@ var CsvCreator = /** @class */ (function (_super) {
55872
56547
  };
55873
56548
  CsvCreator.prototype.export = function (userParams) {
55874
56549
  if (this.isExportSuppressed()) {
56550
+ console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration.");
55875
56551
  return '';
55876
56552
  }
55877
56553
  var mergedParams = this.getMergedParams(userParams);
@@ -55991,7 +56667,7 @@ var GridSerializer = /** @class */ (function (_super) {
55991
56667
  var shouldSkipLowestGroup = skipLowestSingleChildrenGroup && node.leafGroup;
55992
56668
  var shouldSkipCurrentGroup = node.allChildrenCount === 1 && (skipSingleChildrenGroup || shouldSkipLowestGroup);
55993
56669
  if (skipRowGroups && params.skipGroups) {
55994
- _.doOnce(function () { return (void 0); }, 'gridSerializer-skipGroups');
56670
+ _.doOnce(function () { return console.warn('AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.'); }, 'gridSerializer-skipGroups');
55995
56671
  }
55996
56672
  if ((!isLeafNode && (params.skipRowGroups || shouldSkipCurrentGroup || hideOpenParents)) ||
55997
56673
  (params.onlySelected && !node.isSelected()) ||
@@ -56025,7 +56701,7 @@ var GridSerializer = /** @class */ (function (_super) {
56025
56701
  var appendContent = params.customFooter || params.appendContent;
56026
56702
  if (appendContent) {
56027
56703
  if (params.customFooter) {
56028
- _.doOnce(function () { return (void 0); }, 'gridSerializer-customFooter');
56704
+ _.doOnce(function () { return console.warn('AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.'); }, 'gridSerializer-customFooter');
56029
56705
  }
56030
56706
  gridSerializingSession.addCustomContent(appendContent);
56031
56707
  }
@@ -56037,7 +56713,7 @@ var GridSerializer = /** @class */ (function (_super) {
56037
56713
  var prependContent = params.customHeader || params.prependContent;
56038
56714
  if (prependContent) {
56039
56715
  if (params.customHeader) {
56040
- _.doOnce(function () { return (void 0); }, 'gridSerializer-customHeader');
56716
+ _.doOnce(function () { return console.warn('AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.'); }, 'gridSerializer-customHeader');
56041
56717
  }
56042
56718
  gridSerializingSession.addCustomContent(prependContent);
56043
56719
  }
@@ -56059,7 +56735,7 @@ var GridSerializer = /** @class */ (function (_super) {
56059
56735
  _this.recursivelyAddHeaderGroups(displayedGroups, gridSerializingSession, params.processGroupHeaderCallback);
56060
56736
  }
56061
56737
  else if (params.columnGroups) {
56062
- _.doOnce(function () { return (void 0); }, 'gridSerializer-columnGroups');
56738
+ _.doOnce(function () { return console.warn('AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.'); }, 'gridSerializer-columnGroups');
56063
56739
  }
56064
56740
  return gridSerializingSession;
56065
56741
  };
@@ -56073,7 +56749,7 @@ var GridSerializer = /** @class */ (function (_super) {
56073
56749
  });
56074
56750
  }
56075
56751
  else if (params.skipHeader) {
56076
- _.doOnce(function () { return (void 0); }, 'gridSerializer-skipHeader');
56752
+ _.doOnce(function () { return console.warn('AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.'); }, 'gridSerializer-skipHeader');
56077
56753
  }
56078
56754
  return gridSerializingSession;
56079
56755
  };
@@ -56321,6 +56997,12 @@ var ClipboardService = /** @class */ (function (_super) {
56321
56997
  .then(this.processClipboardData.bind(this))
56322
56998
  .catch(function (e) {
56323
56999
  _.doOnce(function () {
57000
+ console.warn(e);
57001
+ console.warn('AG Grid: Unable to use the Clipboard API (navigator.clipboard.readText()). ' +
57002
+ 'The reason why it could not be used has been logged in the previous line. ' +
57003
+ 'For this reason the grid has defaulted to using a workaround which doesn\'t perform as well. ' +
57004
+ 'Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid ' +
57005
+ 'property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API');
56324
57006
  }, 'clipboardApiError');
56325
57007
  _this.navigatorApiFailed = true;
56326
57008
  _this.pasteFromClipboardLegacy();
@@ -56847,6 +57529,12 @@ var ClipboardService = /** @class */ (function (_super) {
56847
57529
  if (allowNavigator && navigator.clipboard) {
56848
57530
  navigator.clipboard.writeText(data).catch(function (e) {
56849
57531
  _.doOnce(function () {
57532
+ console.warn(e);
57533
+ console.warn('AG Grid: Unable to use the Clipboard API (navigator.clipboard.writeText()). ' +
57534
+ 'The reason why it could not be used has been logged in the previous line. ' +
57535
+ 'For this reason the grid has defaulted to using a workaround which doesn\'t perform as well. ' +
57536
+ 'Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid ' +
57537
+ 'property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.');
56850
57538
  }, 'clipboardApiError');
56851
57539
  _this.copyDataToClipboardLegacy(data);
56852
57540
  });
@@ -56863,7 +57551,12 @@ var ClipboardService = /** @class */ (function (_super) {
56863
57551
  element.value = data || ' '; // has to be non-empty value or execCommand will not do anything
56864
57552
  element.select();
56865
57553
  element.focus({ preventScroll: true });
56866
- eDocument.execCommand('copy');
57554
+ var result = eDocument.execCommand('copy');
57555
+ if (!result) {
57556
+ console.warn('AG Grid: Browser did not allow document.execCommand(\'copy\'). Ensure ' +
57557
+ 'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise ' +
57558
+ 'the browser will prevent it for security reasons.');
57559
+ }
56867
57560
  if (focusedElementBefore != null && focusedElementBefore.focus != null) {
56868
57561
  focusedElementBefore.focus({ preventScroll: true });
56869
57562
  }
@@ -56887,6 +57580,7 @@ var ClipboardService = /** @class */ (function (_super) {
56887
57580
  callbackNow(eTempInput);
56888
57581
  }
56889
57582
  catch (err) {
57583
+ console.warn('AG Grid: Browser does not support document.execCommand(\'copy\') for clipboard operations');
56890
57584
  }
56891
57585
  //It needs 100 otherwise OS X seemed to not always be able to paste... Go figure...
56892
57586
  if (callbackAfter) {
@@ -58159,6 +58853,7 @@ var ToolPanelColumnComp = /** @class */ (function (_super) {
58159
58853
  return false;
58160
58854
  };
58161
58855
  ToolPanelColumnComp.prototype.setExpanded = function (value) {
58856
+ console.warn('AG Grid: can not expand a column item that does not represent a column group header');
58162
58857
  };
58163
58858
  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>";
58164
58859
  __decorate$q([
@@ -58453,7 +59148,10 @@ var PRIMARY_COLS_LIST_PANEL_CLASS = 'ag-column-select-list';
58453
59148
  expandedGroupIds.push(groupId);
58454
59149
  }
58455
59150
  });
58456
- groupIds.filter(function (groupId) { return !_.includes(expandedGroupIds, groupId); });
59151
+ var unrecognisedGroupIds = groupIds.filter(function (groupId) { return !_.includes(expandedGroupIds, groupId); });
59152
+ if (unrecognisedGroupIds.length > 0) {
59153
+ console.warn('AG Grid: unable to find group(s) for supplied groupIds:', unrecognisedGroupIds);
59154
+ }
58457
59155
  };
58458
59156
  PrimaryColsListPanel.prototype.getExpandState = function () {
58459
59157
  var expandedCount = 0;
@@ -58847,6 +59545,7 @@ var __decorate$n = (undefined && undefined.__decorate) || function (decorators,
58847
59545
  this.aggFuncService.getAggFunc(aggFuncOrString) :
58848
59546
  aggFuncOrString;
58849
59547
  if (typeof aggFunc !== 'function') {
59548
+ console.error("AG Grid: unrecognised aggregation function " + aggFuncOrString);
58850
59549
  return null;
58851
59550
  }
58852
59551
  var aggFuncAny = aggFunc;
@@ -59373,6 +60072,9 @@ var __spread$2 = (undefined && undefined.__spread) || function () {
59373
60072
  GroupStage.prototype.insertOneNode = function (childNode, details, isMove) {
59374
60073
  var path = this.getGroupInfo(childNode, details);
59375
60074
  var parentGroup = this.findParentForNode(childNode, path, details);
60075
+ if (!parentGroup.group) {
60076
+ console.warn("AG Grid: duplicate group keys for row data, keys should be unique", [parentGroup.data, childNode.data]);
60077
+ }
59376
60078
  if (this.usingTreeData) {
59377
60079
  this.swapGroupWithUserNode(parentGroup, childNode, isMove);
59378
60080
  }
@@ -59510,7 +60212,7 @@ var __spread$2 = (undefined && undefined.__spread) || function () {
59510
60212
  GroupStage.prototype.getGroupInfoFromCallback = function (rowNode) {
59511
60213
  var keys = this.getDataPath ? this.getDataPath(rowNode.data) : null;
59512
60214
  if (keys === null || keys === undefined || keys.length === 0) {
59513
- _.doOnce(function () { return (void 0); }, 'groupStage.getGroupInfoFromCallback');
60215
+ _.doOnce(function () { return console.warn("AG Grid: getDataPath() should not return an empty path for data", rowNode.data); }, 'groupStage.getGroupInfoFromCallback');
59514
60216
  }
59515
60217
  var groupInfoMapper = function (key) { return ({ key: key, field: null, rowGroupColumn: null }); };
59516
60218
  return keys ? keys.map(groupInfoMapper) : [];
@@ -62235,6 +62937,7 @@ var ToolPanelWrapper = /** @class */ (function (_super) {
62235
62937
  var compDetails = this.userComponentFactory.getToolPanelCompDetails(toolPanelDef, params);
62236
62938
  var componentPromise = compDetails.newAgStackInstance();
62237
62939
  if (componentPromise == null) {
62940
+ console.warn("AG Grid: error processing tool panel component " + id + ". You need to specify either 'toolPanel' or 'toolPanelFramework'");
62238
62941
  return;
62239
62942
  }
62240
62943
  componentPromise.then(this.setToolPanelComponent.bind(this));
@@ -62429,6 +63132,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
62429
63132
  var _this = this;
62430
63133
  defs.forEach(function (def) {
62431
63134
  if (def.id == null) {
63135
+ console.warn("AG Grid: please review all your toolPanel components, it seems like at least one of them doesn't have an id");
62432
63136
  return;
62433
63137
  }
62434
63138
  // helpers, in case user doesn't have the right module loaded
@@ -62474,6 +63178,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
62474
63178
  SideBarComp.prototype.getToolPanelInstance = function (key) {
62475
63179
  var toolPanelWrapper = this.toolPanelWrappers.filter(function (toolPanel) { return toolPanel.getToolPanelId() === key; })[0];
62476
63180
  if (!toolPanelWrapper) {
63181
+ console.warn("AG Grid: unable to lookup Tool Panel as invalid key supplied: " + key);
62477
63182
  return;
62478
63183
  }
62479
63184
  return toolPanelWrapper.getToolPanelInstance();
@@ -62559,6 +63264,7 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
62559
63264
  }
62560
63265
  ToolPanelColDefService.prototype.createColumnTree = function (colDefs) {
62561
63266
  var _this = this;
63267
+ var invalidColIds = [];
62562
63268
  var createDummyColGroup = function (abstractColDef, depth) {
62563
63269
  if (_this.isColGroupDef(abstractColDef)) {
62564
63270
  // creating 'dummy' group which is not associated with grid column group
@@ -62580,6 +63286,9 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
62580
63286
  var colDef = abstractColDef;
62581
63287
  var key = colDef.colId ? colDef.colId : colDef.field;
62582
63288
  var column = _this.columnModel.getPrimaryColumn(key);
63289
+ if (!column) {
63290
+ invalidColIds.push(colDef);
63291
+ }
62583
63292
  return column;
62584
63293
  }
62585
63294
  };
@@ -62591,6 +63300,9 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
62591
63300
  mappedResults.push(result);
62592
63301
  }
62593
63302
  });
63303
+ if (invalidColIds.length > 0) {
63304
+ console.warn('AG Grid: unable to find grid columns for the supplied colDef(s):', invalidColIds);
63305
+ }
62594
63306
  return mappedResults;
62595
63307
  };
62596
63308
  ToolPanelColDefService.prototype.syncLayoutWithGrid = function (syncLayoutCallback) {
@@ -63145,10 +63857,15 @@ var EnterpriseMenu = /** @class */ (function (_super) {
63145
63857
  };
63146
63858
  EnterpriseMenu.prototype.isValidMenuTabItem = function (menuTabName) {
63147
63859
  var isValid = true;
63860
+ var itemsToConsider = EnterpriseMenu.TABS_DEFAULT;
63148
63861
  if (this.restrictTo != null) {
63149
63862
  isValid = this.restrictTo.indexOf(menuTabName) > -1;
63863
+ itemsToConsider = this.restrictTo;
63150
63864
  }
63151
63865
  isValid = isValid && EnterpriseMenu.TABS_DEFAULT.indexOf(menuTabName) > -1;
63866
+ if (!isValid) {
63867
+ console.warn("AG Grid: Trying to render an invalid menu item '" + menuTabName + "'. Check that your 'menuTabs' contains one of [" + itemsToConsider + "]");
63868
+ }
63152
63869
  return isValid;
63153
63870
  };
63154
63871
  EnterpriseMenu.prototype.isNotSuppressed = function (menuTabName) {
@@ -63859,6 +64576,7 @@ var MenuItemMapper = /** @class */ (function (_super) {
63859
64576
  return chartMenuItem;
63860
64577
  }
63861
64578
  else {
64579
+ console.warn("AG Grid: unknown menu item type " + key);
63862
64580
  return null;
63863
64581
  }
63864
64582
  }
@@ -64102,7 +64820,8 @@ class AgGridController {
64102
64820
  }
64103
64821
  showFilterColumn(configs) {
64104
64822
  var _a;
64105
- (_a = this._filterColumn) === null || _a === void 0 ? void 0 : _a.show(configs);
64823
+ const presentationMetadata = this.resolveDescriptionColMetadata(configs.columnName);
64824
+ (_a = this._filterColumn) === null || _a === void 0 ? void 0 : _a.show(Object.assign(Object.assign({}, configs), { fieldDescriptor: presentationMetadata }));
64106
64825
  }
64107
64826
  constructor(_enterprise) {
64108
64827
  this.DEFAULT_ROW_HEIGHT = 30;
@@ -64123,6 +64842,7 @@ class AgGridController {
64123
64842
  this._customFormatters = new Map();
64124
64843
  this._gridShowDom = false;
64125
64844
  this.peddingExecutionsOnGridShow = [];
64845
+ this._lastColsConfig = undefined;
64126
64846
  ModuleRegistry.registerModules([
64127
64847
  EnterpriseCoreModule,
64128
64848
  RangeSelectionModule,
@@ -64134,8 +64854,25 @@ class AgGridController {
64134
64854
  getGridConfig() {
64135
64855
  return this._gridConfig;
64136
64856
  }
64137
- locateColumn(columnName) {
64857
+ locateColumn(columnName, gridElement) {
64138
64858
  this._gridOptions.api.ensureColumnVisible(columnName);
64859
+ requestAnimationFrame(() => {
64860
+ this.highlightColumnHeader(columnName, gridElement);
64861
+ });
64862
+ }
64863
+ highlightColumnHeader(columnName, gridElement) {
64864
+ const headerElement = gridElement.querySelector(`.ag-header-cell[col-id="${columnName}"]`);
64865
+ if (!headerElement)
64866
+ return;
64867
+ headerElement.classList.add("ez-grid__column-highlight-header");
64868
+ headerElement.setAttribute("tabindex", "0");
64869
+ const removeHighlight = (event) => {
64870
+ if (!headerElement.contains(event.target)) {
64871
+ headerElement.classList.remove("ez-grid__column-highlight-header");
64872
+ document.removeEventListener("click", removeHighlight);
64873
+ }
64874
+ };
64875
+ document.addEventListener("click", removeHighlight);
64139
64876
  }
64140
64877
  getSort(_dataUnitName, defaultSorting) {
64141
64878
  const sortedColumns = [];
@@ -64157,10 +64894,15 @@ class AgGridController {
64157
64894
  return;
64158
64895
  }
64159
64896
  return Array.from(this._filteredColumns.entries())
64160
- .map(([column, items]) => {
64897
+ .map(([col, items]) => {
64161
64898
  var _a;
64162
64899
  const checkedOptions = items.filter(option => option.check);
64163
64900
  if (checkedOptions.length > 0) {
64901
+ let column = col;
64902
+ const presentationFrom = this.getCodeColFromDescriptionCol(col);
64903
+ if (!core.StringUtils.isEmpty(presentationFrom)) {
64904
+ column = presentationFrom;
64905
+ }
64164
64906
  const fieldDescriptor = this._dataUnit.getField(column);
64165
64907
  const dataType = (_a = fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.dataType) !== null && _a !== void 0 ? _a : core.DataType.TEXT;
64166
64908
  let placeholders = '';
@@ -64227,6 +64969,7 @@ class AgGridController {
64227
64969
  this._dataUnit.addFilterProvider(this);
64228
64970
  }
64229
64971
  this._gridOptions = {
64972
+ suppressHorizontalScroll: options.suppressHorizontalScroll,
64230
64973
  localeText: gridTerms,
64231
64974
  enableRangeSelection: this._multipleSelection,
64232
64975
  rowSelection: this._multipleSelection ? 'multiple' : 'single',
@@ -64354,6 +65097,23 @@ class AgGridController {
64354
65097
  action: () => this.showFilterColumn({ columnName, columnLabel, leftPosition: this._filterColumnleftPosition, filteredOptions: this._filteredColumns.get(columnName) }),
64355
65098
  };
64356
65099
  }
65100
+ resolveDescriptionColMetadata(columnName) {
65101
+ var _a;
65102
+ const colDef = (_a = this._gridOptions.columnApi.getColumn(columnName)) === null || _a === void 0 ? void 0 : _a.getColDef();
65103
+ const presentationFrom = this.getCodeColFromDescriptionCol(columnName);
65104
+ if (!core.StringUtils.isEmpty(presentationFrom)) {
65105
+ return {
65106
+ label: colDef.headerName,
65107
+ name: columnName,
65108
+ userInterface: core.UserInterface.SHORTTEXT,
65109
+ dataType: core.DataType.TEXT,
65110
+ properties: {
65111
+ [constants.PRESENTATION_FROM_COL_PROP_NAME]: presentationFrom
65112
+ }
65113
+ };
65114
+ }
65115
+ return undefined;
65116
+ }
64357
65117
  buildMenuItemOptionPin(params) {
64358
65118
  const { column, columnApi } = params;
64359
65119
  const isPinned = params.column.isPinned();
@@ -64680,7 +65440,7 @@ class AgGridController {
64680
65440
  }
64681
65441
  syncSelectWithDataUnit() {
64682
65442
  const rowNode = this._gridOptions.api.getRowNode(this._dataUnit.getSelectedRecord().__record__id__);
64683
- if ((rowNode === null || rowNode === void 0 ? void 0 : rowNode.rowIndex) < 0)
65443
+ if (!rowNode || (rowNode === null || rowNode === void 0 ? void 0 : rowNode.rowIndex) < 0)
64684
65444
  return;
64685
65445
  const rowRange = this._gridOptions.api.getCellRanges().find(row => row.startRow.rowIndex === rowNode.rowIndex);
64686
65446
  if ((rowRange === null || rowRange === void 0 ? void 0 : rowRange.columns.length) > 0) {
@@ -64717,7 +65477,9 @@ class AgGridController {
64717
65477
  }
64718
65478
  }
64719
65479
  isColumnEditable(rowIndex, column) {
64720
- if (column.getColDef().headerName === '' || rowIndex === -1)
65480
+ if (column.getColDef().headerName === ''
65481
+ || column.getColDef().headerName === this.CHECK_BOX_COL_ID
65482
+ || rowIndex === -1)
64721
65483
  return false;
64722
65484
  const rowId = this._dataUnit.records[rowIndex][this._idAttribName];
64723
65485
  const rowNode = this._gridOptions.api.getRowNode(rowId);
@@ -64735,7 +65497,7 @@ class AgGridController {
64735
65497
  this._gridOptions.api.setFocusedCell(rowIndex, firstCell);
64736
65498
  }
64737
65499
  setColumnsDef(cols) {
64738
- 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' }));
65500
+ 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' }));
64739
65501
  const newColDefs = this._options.suppressCheckBoxCol ? [] : [checkBoxColumn];
64740
65502
  if (this._statusResolver != undefined) {
64741
65503
  newColDefs.push({
@@ -64763,8 +65525,39 @@ class AgGridController {
64763
65525
  });
64764
65526
  this._colDefs = newColDefs;
64765
65527
  if (this._gridOptions && this._gridOptions.api) {
65528
+ this.setColsDefsWithStateIfNeeded(this._colDefs);
65529
+ }
65530
+ }
65531
+ setColsDefsWithStateIfNeeded(colDefs) {
65532
+ if (!this._lastColsConfig) {
64766
65533
  this._gridOptions.api.setColumnDefs(this._colDefs);
64767
65534
  }
65535
+ /*
65536
+ Caso a definição de colunas esteja sendo atualizada,
65537
+ e existe uma config aplicada, temos que considerar essa
65538
+ config ao adicionar nova definição de colunas.
65539
+ PS: Poderia apenas chamar o setColumnsState, porém,
65540
+ isso impactaria em performance, e o usuário ia perceber
65541
+ a mudança das colunas visualmente na grade, o que traria
65542
+ uma experiencia ruim.
65543
+ */
65544
+ const colDefsWithConfigs = this.getColsDefWithConfigApplied(colDefs, this._lastColsConfig);
65545
+ this._gridOptions.api.setColumnDefs(colDefsWithConfigs);
65546
+ }
65547
+ getColsDefWithConfigApplied(colDefs, colsConfig) {
65548
+ //Cria map de colunas existentes na config e seu índice
65549
+ const orderMap = colsConfig.reduce((map, col, index) => {
65550
+ map[col.name] = index;
65551
+ return map;
65552
+ }, {});
65553
+ //Remove colunas que não existem na config
65554
+ const filteredColsDefs = colDefs.filter((col) => !orderMap.hasOwnProperty(col.colId));
65555
+ //Ordena colunas baseada na config aplicada
65556
+ const sortedColumnDefs = filteredColsDefs.sort((a, b) => {
65557
+ var _a, _b;
65558
+ 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);
65559
+ });
65560
+ return sortedColumnDefs;
64768
65561
  }
64769
65562
  clearRangeSelection() {
64770
65563
  this._gridOptions.api.clearRangeSelection();
@@ -64801,6 +65594,7 @@ class AgGridController {
64801
65594
  if (this._grid === undefined) {
64802
65595
  throw new Error('Erro interno: Grid ainda não inicializado.');
64803
65596
  }
65597
+ this._lastColsConfig = state;
64804
65598
  const colDef = this._gridOptions.columnApi.getColumns();
64805
65599
  let columns = this.getColumnsDef();
64806
65600
  let visibleColumns = [];
@@ -64809,14 +65603,39 @@ class AgGridController {
64809
65603
  const columnsOffset = colDef.length - columns.length;
64810
65604
  this._gridConfig = state;
64811
65605
  let sort = [];
64812
- state.forEach((cfgColumn, index) => {
65606
+ let currentIndex = 0;
65607
+ state.forEach((cfgColumn) => {
65608
+ var _a, _b;
64813
65609
  const colWidth = this.getColumnWidth(cfgColumn);
64814
- this._gridOptions.columnApi.moveColumn(cfgColumn.name, index + columnsOffset);
65610
+ this._gridOptions.columnApi.moveColumn(cfgColumn.name, currentIndex + columnsOffset);
64815
65611
  this._gridOptions.columnApi.setColumnWidth(cfgColumn.name, colWidth);
64816
65612
  visibleColumns.push(cfgColumn.name);
64817
65613
  if (cfgColumn.ascending !== undefined) {
64818
65614
  sort.push({ colId: cfgColumn.name, sort: cfgColumn.ascending !== true ? 'desc' : 'asc', sortIndex: cfgColumn.orderIndex });
64819
65615
  }
65616
+ currentIndex++;
65617
+ const fieldMD = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(cfgColumn.name);
65618
+ /*
65619
+ Migração para o SEARCHPLUS, caso de uso:
65620
+ - Agora existe uma coluna para o campo de descrição do relaciona
65621
+ - Essa col, não existe na config da grade que já foi salva pelo DS
65622
+ - Nesse caso, precisamos inserir a coluna de descrição automaticamente para que
65623
+ os usuários não percam a apresentação do campo de descrição.
65624
+ PS: Caso esteja herdando do HTML5, devemos manter a config como está la
65625
+ */
65626
+ if (this.needToAddDescriptionColumn(cfgColumn, fieldMD, state)) {
65627
+ const descriptionColID = (_b = fieldMD === null || fieldMD === void 0 ? void 0 : fieldMD.properties) === null || _b === void 0 ? void 0 : _b[constants.PRESENTATION_COL_ID_PROP_NAME];
65628
+ if (!descriptionColID)
65629
+ return;
65630
+ const descriptionCol = this._gridOptions.columnApi.getColumn(descriptionColID);
65631
+ const descriptionColDef = descriptionCol === null || descriptionCol === void 0 ? void 0 : descriptionCol.getColDef();
65632
+ const descriptionHeaderName = descriptionColDef === null || descriptionColDef === void 0 ? void 0 : descriptionColDef.headerName;
65633
+ const descriptionColSize = this.getColumnWidthByLabel(descriptionHeaderName);
65634
+ this._gridOptions.columnApi.moveColumn(descriptionColID, currentIndex + columnsOffset);
65635
+ this._gridOptions.columnApi.setColumnWidth(descriptionColID, descriptionColSize);
65636
+ visibleColumns.push(descriptionColID);
65637
+ currentIndex++;
65638
+ }
64820
65639
  });
64821
65640
  let invisibleColumns = columns.filter(column => !visibleColumns.includes(column.name)).map(column => column.name);
64822
65641
  this._gridOptions.columnApi.setColumnsVisible(visibleColumns, true);
@@ -64826,6 +65645,16 @@ class AgGridController {
64826
65645
  defaultState: { sort: null },
64827
65646
  });
64828
65647
  }
65648
+ needToAddDescriptionColumn(cfgColumn, fieldMD, stateConfig) {
65649
+ var _a, _b;
65650
+ if (!fieldMD) {
65651
+ return false;
65652
+ }
65653
+ const configVersion = ((_a = cfgColumn.configVersion) !== null && _a !== void 0 ? _a : 0);
65654
+ const isSearchPlus = (fieldMD === null || fieldMD === void 0 ? void 0 : fieldMD.userInterface) == core.UserInterface.SEARCHPLUS;
65655
+ const descriptionColID = (_b = fieldMD === null || fieldMD === void 0 ? void 0 : fieldMD.properties) === null || _b === void 0 ? void 0 : _b[constants.PRESENTATION_COL_ID_PROP_NAME];
65656
+ return isSearchPlus && configVersion < 1 && stateConfig.find(col => col.name === descriptionColID) != undefined;
65657
+ }
64829
65658
  getColumnsState() {
64830
65659
  if (this._grid === undefined) {
64831
65660
  throw new Error('Erro interno: Grid ainda não inicializado.');
@@ -64885,7 +65714,7 @@ class AgGridController {
64885
65714
  return filterOptions.map(item => item.check).includes(true);
64886
65715
  }
64887
65716
  buildColDef(source) {
64888
- var _a, _b, _c;
65717
+ var _a, _b, _c, _d, _e;
64889
65718
  let tooltip = undefined;
64890
65719
  const propSortable = core.StringUtils.getBooleanValue((_a = source.props) === null || _a === void 0 ? void 0 : _a.get('gridSortable'), true);
64891
65720
  if ((_b = source.props) === null || _b === void 0 ? void 0 : _b.get('gridHeaderTooltip')) {
@@ -64894,6 +65723,7 @@ class AgGridController {
64894
65723
  else if (propSortable === false) {
64895
65724
  tooltip = 'Coluna não pode ser ordenada';
64896
65725
  }
65726
+ const presentationFrom = (_d = source === null || source === void 0 ? void 0 : source.props) === null || _d === void 0 ? void 0 : _d.get(constants.PRESENTATION_FROM_COL_PROP_NAME);
64897
65727
  return this._editionManager.configureColumn({
64898
65728
  headerName: source.label,
64899
65729
  field: source.name,
@@ -64901,12 +65731,17 @@ class AgGridController {
64901
65731
  resizable: true,
64902
65732
  headerComponent: 'ezGridCustomHeader',
64903
65733
  headerComponentParams: {
65734
+ presentationFrom,
64904
65735
  tooltip: tooltip,
64905
65736
  isSortable: propSortable,
64906
65737
  hasFilter: () => this.hasFilterColumn(source.name),
64907
65738
  showColumnFilter: (leftPosition) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name), fromIcon: true }),
64908
65739
  },
64909
65740
  valueFormatter: params => {
65741
+ var _a, _b, _c;
65742
+ if (presentationFrom) {
65743
+ 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 : "";
65744
+ }
64910
65745
  if (params.value === undefined || params.value === null) {
64911
65746
  return "";
64912
65747
  }
@@ -64926,6 +65761,7 @@ class AgGridController {
64926
65761
  return this.getFormatterByColumn(params, source);
64927
65762
  },
64928
65763
  cellStyle: this.getStyleByColumn(source),
65764
+ editable: !((_e = source.props) === null || _e === void 0 ? void 0 : _e.has(constants.PRESENTATION_FROM_COL_PROP_NAME))
64929
65765
  });
64930
65766
  }
64931
65767
  setCustomFormatters(customFormatters) {
@@ -64941,8 +65777,11 @@ class AgGridController {
64941
65777
  };
64942
65778
  }
64943
65779
  getStyleByColumn(source) {
65780
+ var _a;
64944
65781
  let cellStyle = this.getInitCellStyle();
64945
- switch (source === null || source === void 0 ? void 0 : source.userInterface) {
65782
+ const primitiveUIType = (_a = source === null || source === void 0 ? void 0 : source.props) === null || _a === void 0 ? void 0 : _a.get("PRIMITIVETUIYPE");
65783
+ const uitype = source === null || source === void 0 ? void 0 : source.userInterface;
65784
+ switch (primitiveUIType !== null && primitiveUIType !== void 0 ? primitiveUIType : uitype) {
64946
65785
  case core.UserInterface.DECIMALNUMBER:
64947
65786
  case core.UserInterface.INTEGERNUMBER:
64948
65787
  cellStyle['text-align'] = 'right';
@@ -64958,7 +65797,7 @@ class AgGridController {
64958
65797
  return cellStyle;
64959
65798
  }
64960
65799
  getFormatterByColumn(params, source) {
64961
- var _a;
65800
+ var _a, _b, _c, _d;
64962
65801
  if ((source === null || source === void 0 ? void 0 : source.userInterface) === 'OPTIONSELECTOR' && source.options) {
64963
65802
  const prop = source === null || source === void 0 ? void 0 : source.options;
64964
65803
  let options;
@@ -64995,6 +65834,9 @@ class AgGridController {
64995
65834
  return params === null || params === void 0 ? void 0 : params.value;
64996
65835
  }
64997
65836
  }
65837
+ if ((source === null || source === void 0 ? void 0 : source.userInterface) === core.UserInterface.SEARCHPLUS) {
65838
+ 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 : "";
65839
+ }
64998
65840
  if ((source === null || source === void 0 ? void 0 : source.userInterface) === core.UserInterface.DECIMALNUMBER) {
64999
65841
  if (params.value != undefined) {
65000
65842
  const precision = Number(source.props.get('precision')) || 2;
@@ -65168,7 +66010,7 @@ class AgGridController {
65168
66010
  this._gridOptions.api.stopEditing();
65169
66011
  }
65170
66012
  getColumnWidth(cfgColumn) {
65171
- var _a, _b;
66013
+ var _a, _b, _c, _d, _e, _f;
65172
66014
  if (cfgColumn == undefined) {
65173
66015
  return;
65174
66016
  }
@@ -65182,12 +66024,22 @@ class AgGridController {
65182
66024
  return parseWidth + this.DEFAULT_FONT_SIZE_HTML5;
65183
66025
  }
65184
66026
  const field = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(cfgColumn.name);
66027
+ 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;
65185
66028
  if ((field === null || field === void 0 ? void 0 : field.userInterface) === core.UserInterface.SEARCH) {
65186
66029
  return this.DEFAULT_MAX_SIZE;
65187
66030
  }
65188
- 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;
66031
+ return this.getColumnWidthByLabel(label);
66032
+ }
66033
+ getColumnWidthByLabel(label) {
66034
+ const labelSize = ((label === null || label === void 0 ? void 0 : label.length) || 0) * this.DEFAULT_FONT_SIZE + this.DEFAULT_ICON_SIZE;
65189
66035
  return labelSize > this.DEFAULT_MAX_SIZE ? this.DEFAULT_MAX_SIZE : labelSize;
65190
66036
  }
66037
+ getCodeColFromDescriptionCol(descriptionColName) {
66038
+ var _a;
66039
+ const colGrid = this._gridOptions.columnApi.getColumn(descriptionColName);
66040
+ const colDef = colGrid === null || colGrid === void 0 ? void 0 : colGrid.getColDef();
66041
+ return (_a = colDef === null || colDef === void 0 ? void 0 : colDef.headerComponentParams) === null || _a === void 0 ? void 0 : _a.presentationFrom;
66042
+ }
65191
66043
  }
65192
66044
 
65193
66045
  function enableSelectAll(total) {
@@ -65364,7 +66216,7 @@ class InMemoryFilterColumnDataSource {
65364
66216
  }
65365
66217
  }
65366
66218
 
65367
- 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)}}";
66219
+ 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)}}";
65368
66220
 
65369
66221
  const windowInstace = window;
65370
66222
  const matches = (text, filter) => {
@@ -65412,6 +66264,9 @@ const EzGrid = class {
65412
66264
  this.outlineMode = false;
65413
66265
  this.enableRowTableStriped = true;
65414
66266
  this.compact = false;
66267
+ this.useSearchColumn = true;
66268
+ this.suppressHorizontalScroll = false;
66269
+ this.mode = "complete";
65415
66270
  }
65416
66271
  /**
65417
66272
  * Aplica a definição de colunas.
@@ -65465,7 +66320,7 @@ const EzGrid = class {
65465
66320
  * Localiza determinada coluna tornando-a visível.
65466
66321
  */
65467
66322
  async locateColumn(columnName) {
65468
- this._gridController.locateColumn(columnName);
66323
+ this._gridController.locateColumn(columnName, this._element);
65469
66324
  }
65470
66325
  /**
65471
66326
  * Usa um argumento para filtrar as colunas po label
@@ -65568,6 +66423,14 @@ const EzGrid = class {
65568
66423
  this._showPaginationDescription();
65569
66424
  }
65570
66425
  }
66426
+ async observeModeChange(newMode = this.mode) {
66427
+ if (newMode === "simple") {
66428
+ this.canEdit = false;
66429
+ this.multipleSelection = false;
66430
+ this.suppressCheckboxColumn = true;
66431
+ this.compact = true;
66432
+ }
66433
+ }
65571
66434
  onSelectionChange(evt) {
65572
66435
  this._currentPageSelected = evt.detail.selectionHeaderStatus === true;
65573
66436
  if (this.dataUnit) {
@@ -65820,6 +66683,7 @@ const EzGrid = class {
65820
66683
  enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick,
65821
66684
  enableLockManagerLoadingComp: this.enableLockManagerLoadingComp,
65822
66685
  enableRowTableStriped: this.enableRowTableStriped,
66686
+ suppressHorizontalScroll: this.suppressHorizontalScroll
65823
66687
  });
65824
66688
  if (this.config) {
65825
66689
  this.observeConfig(this.config);
@@ -65920,6 +66784,7 @@ const EzGrid = class {
65920
66784
  }
65921
66785
  connectedCallback() {
65922
66786
  var _a;
66787
+ this.observeModeChange();
65923
66788
  (_a = this._gridController) === null || _a === void 0 ? void 0 : _a.registryListeners();
65924
66789
  }
65925
66790
  componentWillRender() {
@@ -65952,6 +66817,9 @@ const EzGrid = class {
65952
66817
  return this.columnfilterDataSource;
65953
66818
  }
65954
66819
  hideHeader() {
66820
+ if (this.mode === "simple") {
66821
+ return true;
66822
+ }
65955
66823
  return !this._hasLeftButtons && !this._paginationInfo;
65956
66824
  }
65957
66825
  resolveLeftHeaderClass() {
@@ -65988,15 +66856,42 @@ const EzGrid = class {
65988
66856
  this.nextPage();
65989
66857
  }
65990
66858
  }, { description: "Avança para a próxima página.", element: this._element });
66859
+ if (this.useSearchColumn) {
66860
+ this._keyboardManager.bind(searchColumn.SHORTCUT_SEARCH_FIELD, async () => {
66861
+ if (!this._container || !this._ezPopoverSearchColumn)
66862
+ return;
66863
+ const container = this._container.getBoundingClientRect();
66864
+ await searchColumn.focusOnFieldSerch(this._columnSearch);
66865
+ this._ezPopoverSearchColumn.showUnder(this._container, { horizontalGap: container.width - (searchColumn.SEARCH_FIELD_FULL_WIDTH), verticalGap: container.height * -1 });
66866
+ }, { description: searchColumn.LABEL_SEARCH_COLUMN, element: this._element });
66867
+ }
65991
66868
  }
65992
66869
  async removeShortcuts() {
65993
- if (this._keyboardManager) {
65994
- this._keyboardManager
65995
- .unbind("ctrl + .")
65996
- .unbind("ctrl + ,")
65997
- .unbind("ctrl + alt + ArrowLeft")
65998
- .unbind("ctrl + alt + ArrowRight");
65999
- }
66870
+ var _a;
66871
+ (_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
66872
+ }
66873
+ renderFieldSearchColumn() {
66874
+ this._columnSearch = searchColumn.buildFieldSearch({
66875
+ value: core.StringUtils.generateUUID(),
66876
+ label: searchColumn.LABEL_SEARCH_COLUMN,
66877
+ }, ({ argument }) => new Promise(accept => {
66878
+ this.filterColumns(argument).then((columns) => {
66879
+ accept(columns
66880
+ .filter(column => !column.hidden)
66881
+ .map(column => ({ label: column.label, value: column.name })));
66882
+ });
66883
+ }), async (option) => {
66884
+ if (option != undefined && option.value != undefined) {
66885
+ await this.locateColumn(option.value);
66886
+ if (this._ezPopoverSearchColumn) {
66887
+ this._ezPopoverSearchColumn.hide();
66888
+ }
66889
+ if (this._container) {
66890
+ requestAnimationFrame(() => this._container.focus());
66891
+ }
66892
+ }
66893
+ });
66894
+ return this._columnSearch;
66000
66895
  }
66001
66896
  render() {
66002
66897
  var _a;
@@ -66006,11 +66901,12 @@ const EzGrid = class {
66006
66901
  'shadow-mode': !this.outlineMode,
66007
66902
  'no-padding': this.compact,
66008
66903
  'header-overlay': !this.hideHeader(),
66009
- }, ref: elem => (this._container = elem) }), index.h("div", { class: {
66904
+ 'no-scroll': this.suppressHorizontalScroll
66905
+ }, ref: elem => (this._container = elem), tabindex: "0" }), index.h("div", { class: {
66010
66906
  'ez-box ez-padding--small grid-header': true,
66011
66907
  'outline-mode': this.outlineMode,
66012
66908
  'shadow-mode': !this.outlineMode && !this.hideHeader(),
66013
- } }, index.h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), index.h("div", { class: "grid-header__position" }, index.h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, index.h("slot", { name: "leftButtons" })), this.getPaginationControl())), index.h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
66909
+ }, tabindex: "0" }, index.h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), index.h("div", { class: "grid-header__position" }, index.h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, index.h("slot", { name: "leftButtons" })), this.getPaginationControl())), index.h("ez-popover", { ref: elem => (this._ezPopoverSearchColumn = elem), overlayType: "none" }, this.renderFieldSearchColumn()), index.h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
66014
66910
  ${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
66015
66911
  ` }, index.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) })), index.h("div", { class: "grid__footer" }, index.h("slot", { name: "footer" }))));
66016
66912
  }
@@ -66019,7 +66915,8 @@ const EzGrid = class {
66019
66915
  static get watchers() { return {
66020
66916
  "config": ["observeConfig"],
66021
66917
  "_paginationInfo": ["updatePaginationTooltip"],
66022
- "paginationCounterMode": ["observePaginationCounterMode"]
66918
+ "paginationCounterMode": ["observePaginationCounterMode"],
66919
+ "mode": ["observeModeChange"]
66023
66920
  }; }
66024
66921
  };
66025
66922
  EzGrid.style = ezGridCss;