@lemon-fe/kits 1.0.0-21 → 1.0.0-210

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 (351) hide show
  1. package/README.md +5 -0
  2. package/es/components/Actions/index.d.ts +8 -5
  3. package/es/components/Actions/index.js +44 -28
  4. package/es/components/Actions/index.less +5 -4
  5. package/es/components/Alert/index.d.ts +3 -0
  6. package/es/components/Alert/index.js +23 -0
  7. package/es/components/BaseTable/Actions.js +2 -2
  8. package/es/components/BaseTable/VirtualBody.js +2 -2
  9. package/es/components/BaseTable/index.js +2 -2
  10. package/es/components/BaseTable/utils.d.ts +1 -1
  11. package/es/components/DataGrid/cell-editors/Date.d.ts +15 -5
  12. package/es/components/DataGrid/cell-editors/Date.js +52 -14
  13. package/es/components/DataGrid/cell-editors/Number.d.ts +14 -6
  14. package/es/components/DataGrid/cell-editors/Number.js +94 -34
  15. package/es/components/DataGrid/cell-editors/Row.d.ts +23 -0
  16. package/es/components/DataGrid/cell-editors/Row.js +146 -0
  17. package/es/components/DataGrid/cell-editors/Select.d.ts +29 -3
  18. package/es/components/DataGrid/cell-editors/Select.js +82 -18
  19. package/es/components/DataGrid/cell-editors/Text.d.ts +7 -5
  20. package/es/components/DataGrid/cell-editors/Text.js +55 -9
  21. package/es/components/DataGrid/cell-editors/Wrapper.d.ts +2 -1
  22. package/es/components/DataGrid/cell-editors/Wrapper.js +4 -2
  23. package/es/components/DataGrid/cell-editors/utils.d.ts +9 -0
  24. package/es/components/DataGrid/cell-editors/utils.js +56 -1
  25. package/es/components/DataGrid/components/CustomColumnPanel/DragContext.d.ts +4 -0
  26. package/es/components/DataGrid/components/CustomColumnPanel/DragContext.js +3 -0
  27. package/es/components/DataGrid/components/CustomColumnPanel/FieldModal.d.ts +10 -0
  28. package/es/components/DataGrid/components/CustomColumnPanel/FieldModal.js +256 -0
  29. package/es/components/DataGrid/components/CustomColumnPanel/Item.d.ts +14 -0
  30. package/es/components/DataGrid/components/CustomColumnPanel/Item.js +200 -0
  31. package/es/components/DataGrid/components/CustomColumnPanel/index.d.ts +5 -0
  32. package/es/components/DataGrid/components/CustomColumnPanel/index.js +366 -0
  33. package/es/components/DataGrid/components/CustomColumnPanel/typings.d.ts +25 -0
  34. package/es/components/DataGrid/components/Search.d.ts +4 -0
  35. package/es/components/DataGrid/components/Search.js +186 -0
  36. package/es/components/DataGrid/components/Selected.d.ts +7 -0
  37. package/es/components/DataGrid/components/Selected.js +32 -0
  38. package/es/components/DataGrid/context/GridStore.d.ts +4 -0
  39. package/es/components/DataGrid/context/GridStore.js +4 -0
  40. package/es/components/DataGrid/hooks.d.ts +18 -0
  41. package/es/components/DataGrid/hooks.js +46 -3
  42. package/es/components/DataGrid/index.d.ts +62 -25
  43. package/es/components/DataGrid/index.js +1288 -503
  44. package/es/components/DataGrid/index.less +382 -41
  45. package/es/components/DataGrid/modules/clipboard/clipboard/clipboardService.d.ts +60 -60
  46. package/es/components/DataGrid/modules/clipboard/clipboard/clipboardService.js +359 -69
  47. package/es/components/DataGrid/modules/clipboard/clipboardModule.d.ts +2 -7
  48. package/es/components/DataGrid/modules/clipboard/clipboardModule.js +4 -2
  49. package/es/components/DataGrid/modules/clipboard/main.d.ts +1 -0
  50. package/es/components/DataGrid/modules/clipboard/version.d.ts +1 -0
  51. package/es/components/DataGrid/modules/clipboard/version.js +2 -0
  52. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnModelItem.d.ts +24 -30
  53. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnModelItem.js +1 -1
  54. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnToolPanel.d.ts +30 -49
  55. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnToolPanel.js +7 -7
  56. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/modelItemUtils.d.ts +14 -18
  57. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/modelItemUtils.js +7 -7
  58. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/pivotModePanel.d.ts +7 -7
  59. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/pivotModePanel.js +8 -8
  60. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.d.ts +28 -28
  61. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.js +17 -17
  62. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.d.ts +42 -47
  63. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.js +8 -8
  64. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.d.ts +24 -24
  65. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.js +6 -6
  66. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.d.ts +23 -31
  67. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.js +9 -16
  68. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.d.ts +35 -41
  69. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.js +18 -18
  70. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.d.ts +49 -60
  71. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.js +21 -20
  72. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.d.ts +22 -22
  73. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.js +16 -16
  74. package/es/components/DataGrid/modules/column-tool-panel/columnsToolPanelModule.d.ts +2 -24
  75. package/es/components/DataGrid/modules/column-tool-panel/columnsToolPanelModule.js +8 -3
  76. package/es/components/DataGrid/modules/column-tool-panel/main.d.ts +2 -0
  77. package/es/components/DataGrid/modules/column-tool-panel/version.d.ts +1 -0
  78. package/es/components/DataGrid/modules/column-tool-panel/version.js +2 -0
  79. package/es/components/DataGrid/modules/master-detail/main.d.ts +1 -0
  80. package/es/components/DataGrid/modules/master-detail/main.js +1 -0
  81. package/es/components/DataGrid/modules/master-detail/masterDetail/detailCellRenderer.d.ts +14 -0
  82. package/es/components/DataGrid/modules/master-detail/masterDetail/detailCellRenderer.js +170 -0
  83. package/es/components/DataGrid/modules/master-detail/masterDetail/detailCellRendererCtrl.d.ts +19 -0
  84. package/es/components/DataGrid/modules/master-detail/masterDetail/detailCellRendererCtrl.js +245 -0
  85. package/es/components/DataGrid/modules/master-detail/masterDetailModule.d.ts +2 -0
  86. package/es/components/DataGrid/modules/master-detail/masterDetailModule.js +18 -0
  87. package/es/components/DataGrid/modules/master-detail/version.d.ts +1 -0
  88. package/es/components/DataGrid/modules/master-detail/version.js +2 -0
  89. package/es/components/DataGrid/modules/menu/menu/chartMenuItemMapper.d.ts +13 -0
  90. package/es/components/DataGrid/modules/menu/menu/chartMenuItemMapper.js +417 -0
  91. package/es/components/DataGrid/modules/menu/menu/contextMenu.d.ts +11 -24
  92. package/es/components/DataGrid/modules/menu/menu/contextMenu.js +32 -25
  93. package/es/components/DataGrid/modules/menu/menu/enterpriseMenu.d.ts +60 -79
  94. package/es/components/DataGrid/modules/menu/menu/enterpriseMenu.js +182 -129
  95. package/es/components/DataGrid/modules/menu/menu/menuItemMapper.d.ts +10 -12
  96. package/es/components/DataGrid/modules/menu/menu/menuItemMapper.js +81 -249
  97. package/es/components/DataGrid/modules/menu/menuModule.d.ts +2 -8
  98. package/es/components/DataGrid/modules/menu/menuModule.js +6 -2
  99. package/es/components/DataGrid/modules/menu/version.d.ts +1 -0
  100. package/es/components/DataGrid/modules/menu/version.js +2 -0
  101. package/es/components/DataGrid/modules/row-grouping/main.d.ts +4 -0
  102. package/es/components/DataGrid/modules/row-grouping/rowGrouping/aggFuncService.js +1 -1
  103. package/es/components/DataGrid/modules/row-grouping/rowGrouping/aggregationStage.d.ts +3 -1
  104. package/es/components/DataGrid/modules/row-grouping/rowGrouping/aggregationStage.js +30 -12
  105. package/es/components/DataGrid/modules/row-grouping/rowGrouping/batchRemover.d.ts +2 -0
  106. package/es/components/DataGrid/modules/row-grouping/rowGrouping/batchRemover.js +12 -0
  107. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.d.ts +2 -2
  108. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.js +12 -10
  109. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.js +20 -21
  110. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.js +5 -5
  111. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.js +7 -7
  112. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.js +6 -6
  113. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.js +6 -6
  114. package/es/components/DataGrid/modules/row-grouping/rowGrouping/filterAggregatesStage.js +2 -2
  115. package/es/components/DataGrid/modules/row-grouping/rowGrouping/groupFilter/groupFilter.d.ts +39 -0
  116. package/es/components/DataGrid/modules/row-grouping/rowGrouping/groupFilter/groupFilter.js +395 -0
  117. package/es/components/DataGrid/modules/row-grouping/rowGrouping/groupFilter/groupFloatingFilter.d.ts +23 -0
  118. package/es/components/DataGrid/modules/row-grouping/rowGrouping/groupFilter/groupFloatingFilter.js +207 -0
  119. package/es/components/DataGrid/modules/row-grouping/rowGrouping/groupStage.d.ts +2 -1
  120. package/es/components/DataGrid/modules/row-grouping/rowGrouping/groupStage.js +66 -20
  121. package/es/components/DataGrid/modules/row-grouping/rowGrouping/pivotColDefService.js +8 -8
  122. package/es/components/DataGrid/modules/row-grouping/rowGrouping/pivotStage.js +19 -15
  123. package/es/components/DataGrid/modules/row-grouping/rowGroupingModule.d.ts +2 -16
  124. package/es/components/DataGrid/modules/row-grouping/rowGroupingModule.js +14 -2
  125. package/es/components/DataGrid/modules/row-grouping/version.d.ts +1 -0
  126. package/es/components/DataGrid/modules/row-grouping/version.js +2 -0
  127. package/es/components/DataGrid/modules/side-bar/main.d.ts +2 -0
  128. package/es/components/DataGrid/modules/side-bar/sideBar/common/toolPanelColDefService.d.ts +9 -9
  129. package/es/components/DataGrid/modules/side-bar/sideBar/common/toolPanelColDefService.js +3 -8
  130. package/es/components/DataGrid/modules/side-bar/sideBar/horizontalResizeComp.d.ts +17 -17
  131. package/es/components/DataGrid/modules/side-bar/sideBar/horizontalResizeComp.js +5 -5
  132. package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonComp.d.ts +14 -14
  133. package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonComp.js +8 -8
  134. package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonsComp.d.ts +14 -14
  135. package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonsComp.js +6 -6
  136. package/es/components/DataGrid/modules/side-bar/sideBar/sideBarComp.d.ts +26 -27
  137. package/es/components/DataGrid/modules/side-bar/sideBar/sideBarComp.js +82 -45
  138. package/es/components/DataGrid/modules/side-bar/sideBar/sideBarDefParser.d.ts +10 -0
  139. package/es/components/DataGrid/modules/side-bar/sideBar/sideBarDefParser.js +111 -0
  140. package/es/components/DataGrid/modules/side-bar/sideBar/toolPanelWrapper.d.ts +15 -15
  141. package/es/components/DataGrid/modules/side-bar/sideBar/toolPanelWrapper.js +5 -5
  142. package/es/components/DataGrid/modules/side-bar/sideBarModule.d.ts +2 -19
  143. package/es/components/DataGrid/modules/side-bar/sideBarModule.js +5 -2
  144. package/es/components/DataGrid/modules/side-bar/version.d.ts +1 -0
  145. package/es/components/DataGrid/modules/side-bar/version.js +2 -0
  146. package/es/components/DataGrid/{Actions.d.ts → renderer/Actions.d.ts} +1 -1
  147. package/es/components/DataGrid/{Actions.js → renderer/Actions.js} +4 -4
  148. package/es/components/DataGrid/renderer/CellDeleteRenderer.d.ts +5 -0
  149. package/es/components/DataGrid/renderer/CellDeleteRenderer.js +64 -0
  150. package/es/components/DataGrid/renderer/CellIndexRenderer.d.ts +4 -0
  151. package/es/components/DataGrid/renderer/CellIndexRenderer.js +53 -0
  152. package/es/components/DataGrid/{CellRenderer.d.ts → renderer/CellRenderer.d.ts} +2 -2
  153. package/es/components/DataGrid/{CellRenderer.js → renderer/CellRenderer.js} +18 -8
  154. package/es/components/DataGrid/renderer/DetailCellRenderer.d.ts +9 -0
  155. package/es/components/DataGrid/renderer/DetailCellRenderer.js +71 -0
  156. package/es/components/DataGrid/{HeaderRenderer.d.ts → renderer/HeaderRenderer.d.ts} +3 -3
  157. package/es/components/DataGrid/{HeaderRenderer.js → renderer/HeaderRenderer.js} +35 -15
  158. package/es/components/DataGrid/typings.d.ts +108 -32
  159. package/es/components/DataGrid/utils.d.ts +13 -6
  160. package/es/components/DataGrid/utils.js +115 -28
  161. package/es/components/Dropdown/index.d.ts +7 -8
  162. package/es/components/Dropdown/index.js +40 -47
  163. package/es/components/Dropdown/index.less +2 -10
  164. package/es/components/DurationPicker/index.d.ts +12 -9
  165. package/es/components/DurationPicker/index.js +87 -57
  166. package/es/components/DurationPicker/index.less +3 -52
  167. package/es/components/EditableTable/EditableCell.d.ts +1 -1
  168. package/es/components/EditableTable/EditableTableFormItem.d.ts +1 -1
  169. package/es/components/EditableTable/Table.d.ts +1 -1
  170. package/es/components/EditableTable/Table.js +7 -7
  171. package/es/components/EditableTable/typings.d.ts +1 -1
  172. package/es/components/Filter/index.js +157 -98
  173. package/es/components/Filter/index.less +1 -5
  174. package/es/components/Filter/typings.d.ts +36 -2
  175. package/es/components/FormLayout/index.d.ts +5 -1
  176. package/es/components/FormLayout/index.js +5 -4
  177. package/es/components/FormLayout/index.less +18 -8
  178. package/es/components/GreyPanel/index.d.ts +6 -0
  179. package/es/components/GreyPanel/index.js +20 -0
  180. package/es/components/GreyPanel/index.less +11 -0
  181. package/es/components/Icons/Add.d.ts +6 -0
  182. package/es/components/Icons/Add.js +42 -0
  183. package/es/components/Icons/BigTip/index.d.ts +1 -1
  184. package/es/components/Icons/Calendar.d.ts +1 -1
  185. package/es/components/Icons/Calendar.js +12 -17
  186. package/es/components/Icons/Clear.d.ts +3 -0
  187. package/es/components/Icons/Clear.js +21 -0
  188. package/es/components/Icons/Clock.d.ts +5 -0
  189. package/es/components/Icons/Clock.js +30 -0
  190. package/es/components/Icons/Close.d.ts +1 -1
  191. package/es/components/Icons/CloseLight.d.ts +5 -0
  192. package/es/components/Icons/CloseLight.js +34 -0
  193. package/es/components/Icons/CollapseUp.d.ts +1 -1
  194. package/es/components/Icons/DarkSearch.d.ts +1 -1
  195. package/es/components/Icons/Delete.d.ts +3 -0
  196. package/es/components/Icons/Delete.js +40 -0
  197. package/es/components/Icons/Down.d.ts +3 -5
  198. package/es/components/Icons/Down.js +5 -15
  199. package/es/components/Icons/Drag/drag.svg +7 -0
  200. package/es/components/Icons/Drag/index.d.ts +3 -0
  201. package/es/components/Icons/Drag/index.js +34 -0
  202. package/es/components/Icons/LookUp.d.ts +1 -1
  203. package/es/components/Icons/More.d.ts +3 -5
  204. package/es/components/Icons/NewTag.d.ts +3 -0
  205. package/es/components/Icons/NewTag.js +22 -0
  206. package/es/components/Icons/Plus/index.d.ts +3 -0
  207. package/es/components/Icons/Plus/index.js +30 -0
  208. package/es/components/Icons/Plus/plus.svg +6 -0
  209. package/es/components/Icons/Question.d.ts +3 -0
  210. package/es/components/Icons/Question.js +21 -0
  211. package/es/components/Icons/Reload.d.ts +3 -0
  212. package/es/components/Icons/Reload.js +21 -0
  213. package/es/components/Icons/Search.d.ts +3 -5
  214. package/es/components/Icons/Search.js +7 -17
  215. package/es/components/Icons/Tip.d.ts +4 -5
  216. package/es/components/Icons/Tip.js +59 -68
  217. package/es/components/Icons/index.d.ts +27 -7
  218. package/es/components/Icons/index.js +29 -9
  219. package/es/components/InputCompact/index.d.ts +11 -0
  220. package/es/components/InputCompact/index.js +80 -0
  221. package/es/components/InputCompact/index.less +33 -0
  222. package/es/components/InputNumber/index.d.ts +8 -0
  223. package/es/components/InputNumber/index.js +38 -0
  224. package/es/components/InputNumber/index.less +58 -0
  225. package/es/components/Layout/index.d.ts +26 -8
  226. package/es/components/Layout/index.js +159 -54
  227. package/es/components/Layout/index.less +58 -33
  228. package/es/components/Popup/index.d.ts +43 -7
  229. package/es/components/Popup/index.js +183 -89
  230. package/es/components/Popup/index.less +23 -1
  231. package/es/components/Portal/index.d.ts +7 -6
  232. package/es/components/Portal/index.js +57 -12
  233. package/es/components/Section/TabBar.d.ts +2 -1
  234. package/es/components/Section/index.d.ts +6 -2
  235. package/es/components/Section/index.js +30 -23
  236. package/es/components/Section/index.less +6 -2
  237. package/es/components/SelectPanel/index.d.ts +17 -0
  238. package/es/components/SelectPanel/index.js +70 -0
  239. package/es/components/SelectPanel/index.less +112 -0
  240. package/es/components/SelectView/index.d.ts +16 -5
  241. package/es/components/SelectView/index.js +162 -119
  242. package/es/components/SelectView/index.less +23 -26
  243. package/es/components/SiderTree/TreeNodeTitle.js +2 -2
  244. package/es/components/SiderTree/index.d.ts +4 -2
  245. package/es/components/SiderTree/index.js +50 -71
  246. package/es/components/SiderTree/index.less +23 -77
  247. package/es/components/State/index.d.ts +8 -0
  248. package/es/components/State/index.js +25 -0
  249. package/es/components/State/index.less +131 -0
  250. package/es/components/TabBar/index.d.ts +2 -3
  251. package/es/components/TabBar/index.js +24 -42
  252. package/es/components/TabBar/index.less +2 -28
  253. package/es/components/Table/typings.d.ts +1 -2
  254. package/es/components/Table/utils.d.ts +1 -1
  255. package/es/components/TipMark/index.d.ts +8 -0
  256. package/es/components/{DataGrid/cell-editors/Custom.js → TipMark/index.js} +40 -12
  257. package/es/components/utils.d.ts +1 -1
  258. package/es/components/utils.js +2 -2
  259. package/es/hooks/useBatchOperator/index.d.ts +83 -10
  260. package/es/hooks/useBatchOperator/index.js +644 -300
  261. package/es/hooks/useHistoryBlock/index.d.ts +8 -0
  262. package/es/hooks/useHistoryBlock/index.js +30 -0
  263. package/es/index.d.ts +20 -4
  264. package/es/index.js +15 -2
  265. package/es/index.less +5 -0
  266. package/es/init.js +82 -24
  267. package/es/layouts/BasicLayout/components/Main.js +37 -4
  268. package/es/layouts/BasicLayout/components/MainFramework/components/Menu/index.js +23 -22
  269. package/es/layouts/BasicLayout/components/MainFramework/index.less +19 -0
  270. package/es/layouts/BasicLayout/typings.d.ts +3 -3
  271. package/es/layouts/Breadcrumb/index.d.ts +13 -5
  272. package/es/layouts/Breadcrumb/index.js +31 -10
  273. package/es/layouts/Breadcrumb/index.less +5 -1
  274. package/es/layouts/MicroLayout/index.js +69 -5
  275. package/es/layouts/MicroLayout/typings.d.ts +5 -3
  276. package/es/layouts/TabInstance.d.ts +31 -0
  277. package/es/layouts/TabInstance.js +115 -0
  278. package/es/layouts/components/RouteTab.d.ts +7 -3
  279. package/es/layouts/components/RouteTab.js +6 -2
  280. package/es/layouts/typings.d.ts +0 -2
  281. package/es/layouts/utils.d.ts +1 -1
  282. package/es/layouts/utils.js +4 -4
  283. package/es/styles/empty.png +0 -0
  284. package/es/styles/overrides.less +203 -59
  285. package/es/styles/theme.less +21 -1
  286. package/es/styles/utils.less +18 -18
  287. package/package.json +28 -12
  288. package/es/components/DataGrid/GridContext.d.ts +0 -4
  289. package/es/components/DataGrid/GridContext.js +0 -4
  290. package/es/components/DataGrid/cell-editors/Custom.d.ts +0 -9
  291. package/es/components/DataGrid/empty.png +0 -0
  292. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideNodeManager.d.ts +0 -35
  293. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideNodeManager.js +0 -378
  294. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideRowModel.d.ts +0 -99
  295. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideRowModel.js +0 -1160
  296. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterService.d.ts +0 -7
  297. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterService.js +0 -137
  298. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterStage.d.ts +0 -5
  299. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterStage.js +0 -60
  300. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/flattenStage.d.ts +0 -10
  301. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/flattenStage.js +0 -199
  302. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/immutableService.d.ts +0 -13
  303. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/immutableService.js +0 -175
  304. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortService.d.ts +0 -14
  305. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortService.js +0 -330
  306. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortStage.d.ts +0 -7
  307. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortStage.js +0 -75
  308. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModelModule.d.ts +0 -2
  309. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModelModule.js +0 -15
  310. package/es/components/DataGrid/modules/client-side-row-model/index.d.ts +0 -1
  311. package/es/components/DataGrid/modules/client-side-row-model/index.js +0 -1
  312. package/es/components/DataGrid/modules/clipboard/index.d.ts +0 -1
  313. package/es/components/DataGrid/modules/column-tool-panel/index.d.ts +0 -2
  314. package/es/components/DataGrid/modules/row-grouping/index.d.ts +0 -4
  315. package/es/components/DataGrid/modules/server-side-row-model/index.d.ts +0 -1
  316. package/es/components/DataGrid/modules/server-side-row-model/index.js +0 -1
  317. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/blockUtils.d.ts +0 -47
  318. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/blockUtils.js +0 -444
  319. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/infiniteStoreBlock.d.ts +0 -92
  320. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/infiniteStoreBlock.js +0 -510
  321. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/expandListener.d.ts +0 -9
  322. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/expandListener.js +0 -115
  323. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/filterListener.d.ts +0 -9
  324. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/filterListener.js +0 -114
  325. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/listenerUtils.d.ts +0 -5
  326. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/listenerUtils.js +0 -68
  327. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/sortListener.d.ts +0 -13
  328. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/sortListener.js +0 -194
  329. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/nodeManager.d.ts +0 -7
  330. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/nodeManager.js +0 -63
  331. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/serverSideRowModel.d.ts +0 -88
  332. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/serverSideRowModel.js +0 -572
  333. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/fullStore.d.ts +0 -108
  334. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/fullStore.js +0 -876
  335. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/infiniteStore.d.ts +0 -102
  336. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/infiniteStore.js +0 -918
  337. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeFactory.d.ts +0 -12
  338. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeFactory.js +0 -141
  339. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeUtils.d.ts +0 -35
  340. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeUtils.js +0 -154
  341. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/transactionManager.d.ts +0 -23
  342. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/transactionManager.js +0 -210
  343. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModelModule.d.ts +0 -18
  344. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModelModule.js +0 -18
  345. package/es/components/DataGrid/modules/side-bar/index.d.ts +0 -2
  346. /package/es/components/DataGrid/modules/clipboard/{index.js → main.js} +0 -0
  347. /package/es/components/DataGrid/modules/column-tool-panel/{index.js → main.js} +0 -0
  348. /package/es/components/DataGrid/modules/menu/{index.d.ts → main.d.ts} +0 -0
  349. /package/es/components/DataGrid/modules/menu/{index.js → main.js} +0 -0
  350. /package/es/components/DataGrid/modules/row-grouping/{index.js → main.js} +0 -0
  351. /package/es/components/DataGrid/modules/side-bar/{index.js → main.js} +0 -0
@@ -1,510 +0,0 @@
1
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
2
-
3
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
-
5
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
6
-
7
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8
-
9
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
10
-
11
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
12
-
13
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
14
-
15
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
16
-
17
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
18
-
19
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
20
-
21
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
22
-
23
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
24
-
25
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
26
-
27
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
28
-
29
- var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
30
- var c = arguments.length,
31
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
32
- d;
33
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === 'object' && typeof Reflect.decorate === 'function') r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
34
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
35
- }
36
- return c > 3 && r && Object.defineProperty(target, key, r), r;
37
- };
38
-
39
- var __param = this && this.__param || function (paramIndex, decorator) {
40
- return function (target, key) {
41
- decorator(target, key, paramIndex);
42
- };
43
- };
44
-
45
- import { Autowired, NumberSequence, PostConstruct, PreDestroy, Qualifier, RowNodeBlock } from '@ag-grid-community/core';
46
- export var InfiniteStoreBlock = /*#__PURE__*/function (_RowNodeBlock) {
47
- _inherits(InfiniteStoreBlock, _RowNodeBlock);
48
-
49
- var _super = _createSuper(InfiniteStoreBlock);
50
-
51
- function InfiniteStoreBlock(blockNumber, parentRowNode, ssrmParams, storeParams, parentStore) {
52
- var _this;
53
-
54
- _classCallCheck(this, InfiniteStoreBlock);
55
-
56
- _this = _super.call(this, blockNumber);
57
- _this.ssrmParams = ssrmParams;
58
- _this.storeParams = storeParams;
59
- _this.parentRowNode = parentRowNode; // we don't need to calculate these now, as the inputs don't change,
60
- // however it makes the code easier to read if we work them out up front
61
-
62
- _this.startRow = blockNumber * storeParams.cacheBlockSize;
63
- _this.parentStore = parentStore;
64
- _this.level = parentRowNode.level + 1;
65
- _this.groupLevel = ssrmParams.rowGroupCols ? _this.level < ssrmParams.rowGroupCols.length : undefined;
66
- _this.leafGroup = ssrmParams.rowGroupCols ? _this.level === ssrmParams.rowGroupCols.length - 1 : false;
67
- return _this;
68
- }
69
-
70
- _createClass(InfiniteStoreBlock, [{
71
- key: "postConstruct",
72
- value: function postConstruct() {
73
- this.usingTreeData = this.gridOptionsWrapper.isTreeData();
74
-
75
- if (!this.usingTreeData && this.groupLevel) {
76
- var groupColVo = this.ssrmParams.rowGroupCols[this.level];
77
- this.groupField = groupColVo.field;
78
- this.rowGroupColumn = this.columnModel.getRowGroupColumns()[this.level];
79
- }
80
-
81
- this.nodeIdPrefix = this.blockUtils.createNodeIdPrefix(this.parentRowNode);
82
- this.setData([]);
83
- }
84
- }, {
85
- key: "isDisplayIndexInBlock",
86
- value: function isDisplayIndexInBlock(displayIndex) {
87
- return displayIndex >= this.displayIndexStart && displayIndex < this.displayIndexEnd;
88
- }
89
- }, {
90
- key: "isBlockBefore",
91
- value: function isBlockBefore(displayIndex) {
92
- return displayIndex >= this.displayIndexEnd;
93
- }
94
- }, {
95
- key: "getDisplayIndexStart",
96
- value: function getDisplayIndexStart() {
97
- return this.displayIndexStart;
98
- }
99
- }, {
100
- key: "getDisplayIndexEnd",
101
- value: function getDisplayIndexEnd() {
102
- return this.displayIndexEnd;
103
- }
104
- }, {
105
- key: "getBlockHeightPx",
106
- value: function getBlockHeightPx() {
107
- return this.blockHeightPx;
108
- }
109
- }, {
110
- key: "getBlockTopPx",
111
- value: function getBlockTopPx() {
112
- return this.blockTopPx;
113
- }
114
- }, {
115
- key: "isGroupLevel",
116
- value: function isGroupLevel() {
117
- return this.groupLevel;
118
- }
119
- }, {
120
- key: "getGroupField",
121
- value: function getGroupField() {
122
- return this.groupField;
123
- }
124
- }, {
125
- key: "prefixId",
126
- value: function prefixId(id) {
127
- if (this.nodeIdPrefix != null) {
128
- return this.nodeIdPrefix + '-' + id;
129
- } else {
130
- return id.toString();
131
- }
132
- }
133
- }, {
134
- key: "getBlockStateJson",
135
- value: function getBlockStateJson() {
136
- return {
137
- id: this.prefixId(this.getId()),
138
- state: {
139
- blockNumber: this.getId(),
140
- startRow: this.startRow,
141
- endRow: this.startRow + this.storeParams.cacheBlockSize,
142
- pageStatus: this.getState()
143
- }
144
- };
145
- }
146
- }, {
147
- key: "isAnyNodeOpen",
148
- value: function isAnyNodeOpen() {
149
- var openNodeCount = this.rowNodes.filter(function (node) {
150
- return node.expanded;
151
- }).length;
152
- return openNodeCount > 0;
153
- } // this method is repeated, see forEachRowNode, why?
154
-
155
- }, {
156
- key: "forEachNode",
157
- value: function forEachNode(callback) {
158
- var sequence = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new NumberSequence();
159
- var includeChildren = arguments.length > 2 ? arguments[2] : undefined;
160
- var filterAndSort = arguments.length > 3 ? arguments[3] : undefined;
161
- this.rowNodes.forEach(function (rowNode) {
162
- callback(rowNode, sequence.next()); // this will only every happen for server side row model, as infinite
163
- // row model doesn't have groups
164
-
165
- if (includeChildren && rowNode.childStore) {
166
- var childStore = rowNode.childStore;
167
-
168
- if (filterAndSort) {
169
- childStore.forEachNodeDeepAfterFilterAndSort(callback, sequence);
170
- } else {
171
- childStore.forEachNodeDeep(callback, sequence);
172
- }
173
- }
174
- });
175
- }
176
- }, {
177
- key: "forEachNodeDeep",
178
- value: function forEachNodeDeep(callback, sequence) {
179
- this.forEachNode(callback, sequence, true, false);
180
- }
181
- }, {
182
- key: "forEachNodeAfterFilterAndSort",
183
- value: function forEachNodeAfterFilterAndSort(callback, sequence) {
184
- this.forEachNode(callback, sequence, true, true);
185
- }
186
- }, {
187
- key: "forEachNodeShallow",
188
- value: function forEachNodeShallow(callback, sequence) {
189
- this.forEachNode(callback, sequence, false, false);
190
- }
191
- }, {
192
- key: "getLastAccessed",
193
- value: function getLastAccessed() {
194
- return this.lastAccessed;
195
- }
196
- }, {
197
- key: "getRowUsingLocalIndex",
198
- value: function getRowUsingLocalIndex(rowIndex) {
199
- return this.rowNodes[rowIndex - this.startRow];
200
- }
201
- }, {
202
- key: "touchLastAccessed",
203
- value: function touchLastAccessed() {
204
- this.lastAccessed = this.ssrmParams.lastAccessedSequence.next();
205
- }
206
- }, {
207
- key: "processServerFail",
208
- value: function processServerFail() {
209
- this.parentStore.onBlockLoadFailed(this);
210
- }
211
- }, {
212
- key: "retryLoads",
213
- value: function retryLoads() {
214
- if (this.getState() === RowNodeBlock.STATE_FAILED) {
215
- this.setStateWaitingToLoad();
216
- this.rowNodeBlockLoader.checkBlockToLoad();
217
- this.setData();
218
- }
219
-
220
- this.forEachNodeShallow(function (node) {
221
- if (node.childStore) {
222
- node.childStore.retryLoads();
223
- }
224
- });
225
- }
226
- }, {
227
- key: "processServerResult",
228
- value: function processServerResult(params) {
229
- this.parentStore.onBlockLoaded(this, params);
230
- }
231
- }, {
232
- key: "setData",
233
- value: function setData() {
234
- var _this2 = this;
235
-
236
- var rows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
237
- var failedLoad = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
238
- this.destroyRowNodes();
239
- var storeRowCount = this.parentStore.getRowCount();
240
- var startRow = this.getId() * this.storeParams.cacheBlockSize;
241
- var endRow = Math.min(startRow + this.storeParams.cacheBlockSize, storeRowCount);
242
- var rowsToCreate = endRow - startRow; // when using autoHeight, we default the row heights to a height to fill the old height of the block.
243
- // we only ever do this to autoHeight, as we could be setting invalid heights (especially if different
244
- // number of rows in the block due to a filter, less rows would mean bigger rows), and autoHeight is
245
- // the only pattern that will automatically correct this. we check for visible autoHeight cols,
246
- // to omit the case where all autoHeight cols are hidden.
247
-
248
- var showingAutoHeightCols = this.columnModel.getAllDisplayedAutoHeightCols().length > 0;
249
- var cachedBlockHeight = showingAutoHeightCols ? this.parentStore.getCachedBlockHeight(this.getId()) : undefined;
250
- var cachedRowHeight = cachedBlockHeight ? Math.round(cachedBlockHeight / rowsToCreate) : undefined;
251
-
252
- var _loop = function _loop(i) {
253
- var dataLoadedForThisRow = i < rows.length;
254
-
255
- var getNodeWithData = function getNodeWithData(existingNode) {
256
- // if there's not an existing node to reuse, create a fresh node
257
- var rowNode = existingNode !== null && existingNode !== void 0 ? existingNode : _this2.blockUtils.createRowNode({
258
- field: _this2.groupField,
259
- group: _this2.groupLevel,
260
- leafGroup: _this2.leafGroup,
261
- level: _this2.level,
262
- parent: _this2.parentRowNode,
263
- rowGroupColumn: _this2.rowGroupColumn,
264
- rowHeight: cachedRowHeight
265
- });
266
-
267
- if (dataLoadedForThisRow) {
268
- var data = rows[i];
269
-
270
- if (!!existingNode) {
271
- _this2.blockUtils.updateDataIntoRowNode(rowNode, data);
272
- } else {
273
- var defaultId = _this2.prefixId(_this2.startRow + i);
274
-
275
- _this2.blockUtils.setDataIntoRowNode(rowNode, data, defaultId, cachedRowHeight);
276
-
277
- _this2.blockUtils.checkOpenByDefault(rowNode);
278
- }
279
-
280
- _this2.parentStore.removeDuplicateNode(rowNode.id);
281
-
282
- _this2.nodeManager.addRowNode(rowNode);
283
-
284
- _this2.allNodesMap[rowNode.id] = rowNode;
285
- }
286
-
287
- if (failedLoad) {
288
- rowNode.failedLoad = true;
289
- }
290
-
291
- return rowNode;
292
- };
293
-
294
- var getRowIdFunc = _this2.gridOptionsWrapper.getRowIdFunc();
295
-
296
- var row = void 0;
297
-
298
- if (getRowIdFunc && dataLoadedForThisRow) {
299
- var data = rows[i];
300
-
301
- var parentKeys = _this2.parentRowNode.getGroupKeys();
302
-
303
- var id = getRowIdFunc({
304
- data: data,
305
- level: _this2.level,
306
- parentKeys: parentKeys.length > 0 ? parentKeys : undefined
307
- });
308
-
309
- var cachedRow = _this2.parentStore.retrieveNodeFromCache(id);
310
-
311
- row = getNodeWithData(cachedRow);
312
- }
313
-
314
- if (!row) {
315
- row = getNodeWithData();
316
- }
317
-
318
- _this2.rowNodes.push(row);
319
- };
320
-
321
- for (var i = 0; i < rowsToCreate; i++) {
322
- _loop(i);
323
- }
324
- } // to safeguard the grid against duplicate nodes, when a row is loaded, we check
325
- // for another row in the same cache. if another row does exist, we delete it.
326
- // this covers for when user refreshes the store (which typically happens after a
327
- // data change) and the same row ends up coming back in a different block, and the
328
- // new block finishes refreshing before the old block has finished refreshing.
329
-
330
- }, {
331
- key: "removeDuplicateNode",
332
- value: function removeDuplicateNode(id) {
333
- // we don't remove duplicates if this block is loaded, as that's a duplicate ID.
334
- // we are only interested in removing rows in blocks that are in the middle of a refresh,
335
- // ie two blocks, A and B, both are refreshed (as in the same cache) but A comes back
336
- // first and some rows have moved from B to A, we must remove the old rows from B.
337
- // however if B is not also getting refreshed (ie it's loaded) this is a bug
338
- // we need to tell the application about, as they provided duplicate ID's (done in Node Manager)
339
- if (this.getState() == RowNodeBlock.STATE_LOADED) {
340
- return;
341
- }
342
-
343
- var rowNode = this.allNodesMap[id];
344
-
345
- if (!rowNode) {
346
- return;
347
- }
348
-
349
- this.blockUtils.destroyRowNode(rowNode);
350
- var index = this.rowNodes.indexOf(rowNode);
351
- var stubRowNode = this.blockUtils.createRowNode({
352
- field: this.groupField,
353
- group: this.groupLevel,
354
- leafGroup: this.leafGroup,
355
- level: this.level,
356
- parent: this.parentRowNode,
357
- rowGroupColumn: this.rowGroupColumn
358
- });
359
- this.rowNodes[index] = stubRowNode;
360
- }
361
- }, {
362
- key: "refresh",
363
- value: function refresh() {
364
- if (this.getState() !== RowNodeBlock.STATE_WAITING_TO_LOAD) {
365
- this.setStateWaitingToLoad();
366
- }
367
- }
368
- }, {
369
- key: "destroyRowNodes",
370
- value: function destroyRowNodes() {
371
- var _this3 = this;
372
-
373
- var _a;
374
-
375
- (_a = this.rowNodes) === null || _a === void 0 ? void 0 : _a.forEach(function (row) {
376
- var isStoreCachingNode = _this3.parentStore.isNodeCached(row.id);
377
-
378
- _this3.blockUtils.destroyRowNode(row, isStoreCachingNode);
379
- });
380
- this.rowNodes = [];
381
- this.allNodesMap = {};
382
- }
383
- }, {
384
- key: "setBeans",
385
- value: function setBeans(loggerFactory) {
386
- this.logger = loggerFactory.create('ServerSideBlock');
387
- }
388
- }, {
389
- key: "getRowUsingDisplayIndex",
390
- value: function getRowUsingDisplayIndex(displayRowIndex) {
391
- this.touchLastAccessed();
392
- var res = this.blockUtils.binarySearchForDisplayIndex(displayRowIndex, this.rowNodes);
393
- return res;
394
- }
395
- }, {
396
- key: "loadFromDatasource",
397
- value: function loadFromDatasource() {
398
- this.storeUtils.loadFromDatasource({
399
- startRow: this.startRow,
400
- endRow: this.startRow + this.storeParams.cacheBlockSize,
401
- parentBlock: this,
402
- parentNode: this.parentRowNode,
403
- storeParams: this.ssrmParams,
404
- successCallback: this.pageLoaded.bind(this, this.getVersion()),
405
- success: this.success.bind(this, this.getVersion()),
406
- failCallback: this.pageLoadFailed.bind(this, this.getVersion()),
407
- fail: this.pageLoadFailed.bind(this, this.getVersion())
408
- });
409
- }
410
- }, {
411
- key: "isPixelInRange",
412
- value: function isPixelInRange(pixel) {
413
- return pixel >= this.blockTopPx && pixel < this.blockTopPx + this.blockHeightPx;
414
- }
415
- }, {
416
- key: "getRowBounds",
417
- value: function getRowBounds(index) {
418
- this.touchLastAccessed();
419
- var res;
420
-
421
- var _iterator = _createForOfIteratorHelper(this.rowNodes),
422
- _step;
423
-
424
- try {
425
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
426
- var rowNode = _step.value;
427
- res = this.blockUtils.extractRowBounds(rowNode, index);
428
-
429
- if (res != null) {
430
- break;
431
- }
432
- }
433
- } catch (err) {
434
- _iterator.e(err);
435
- } finally {
436
- _iterator.f();
437
- }
438
-
439
- return res;
440
- }
441
- }, {
442
- key: "getRowIndexAtPixel",
443
- value: function getRowIndexAtPixel(pixel) {
444
- this.touchLastAccessed();
445
- var res = null;
446
-
447
- var _iterator2 = _createForOfIteratorHelper(this.rowNodes),
448
- _step2;
449
-
450
- try {
451
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
452
- var rowNode = _step2.value;
453
- res = this.blockUtils.getIndexAtPixel(rowNode, pixel);
454
-
455
- if (res != null) {
456
- break;
457
- }
458
- }
459
- } catch (err) {
460
- _iterator2.e(err);
461
- } finally {
462
- _iterator2.f();
463
- }
464
-
465
- return res;
466
- }
467
- }, {
468
- key: "clearDisplayIndexes",
469
- value: function clearDisplayIndexes() {
470
- var _this4 = this;
471
-
472
- this.displayIndexEnd = undefined;
473
- this.displayIndexStart = undefined;
474
- this.rowNodes.forEach(function (rowNode) {
475
- return _this4.blockUtils.clearDisplayIndex(rowNode);
476
- });
477
- }
478
- }, {
479
- key: "setDisplayIndexes",
480
- value: function setDisplayIndexes(displayIndexSeq, nextRowTop) {
481
- var _this5 = this;
482
-
483
- this.displayIndexStart = displayIndexSeq.peek();
484
- this.blockTopPx = nextRowTop.value;
485
- this.rowNodes.forEach(function (rowNode) {
486
- return _this5.blockUtils.setDisplayIndex(rowNode, displayIndexSeq, nextRowTop);
487
- });
488
- this.displayIndexEnd = displayIndexSeq.peek();
489
- this.blockHeightPx = nextRowTop.value - this.blockTopPx;
490
- }
491
- }]);
492
-
493
- return InfiniteStoreBlock;
494
- }(RowNodeBlock);
495
-
496
- __decorate([Autowired('columnModel')], InfiniteStoreBlock.prototype, 'columnModel', void 0);
497
-
498
- __decorate([Autowired('ssrmStoreUtils')], InfiniteStoreBlock.prototype, 'storeUtils', void 0);
499
-
500
- __decorate([Autowired('ssrmBlockUtils')], InfiniteStoreBlock.prototype, 'blockUtils', void 0);
501
-
502
- __decorate([Autowired('ssrmNodeManager')], InfiniteStoreBlock.prototype, 'nodeManager', void 0);
503
-
504
- __decorate([Autowired('rowNodeBlockLoader')], InfiniteStoreBlock.prototype, 'rowNodeBlockLoader', void 0);
505
-
506
- __decorate([PostConstruct], InfiniteStoreBlock.prototype, 'postConstruct', null);
507
-
508
- __decorate([PreDestroy], InfiniteStoreBlock.prototype, 'destroyRowNodes', null);
509
-
510
- __decorate([__param(0, Qualifier('loggerFactory'))], InfiniteStoreBlock.prototype, 'setBeans', null);
@@ -1,9 +0,0 @@
1
- import { BeanStub } from '@ag-grid-community/core';
2
- export declare class ExpandListener extends BeanStub {
3
- private serverSideRowModel;
4
- private storeFactory;
5
- private beans;
6
- private postConstruct;
7
- private onRowGroupOpened;
8
- private createDetailNode;
9
- }
@@ -1,115 +0,0 @@
1
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2
-
3
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
4
-
5
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
6
-
7
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
8
-
9
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
10
-
11
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
-
13
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
14
-
15
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
16
-
17
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
18
-
19
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
20
-
21
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
22
-
23
- var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
24
- var c = arguments.length,
25
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
26
- d;
27
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === 'object' && typeof Reflect.decorate === 'function') r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
28
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
29
- }
30
- return c > 3 && r && Object.defineProperty(target, key, r), r;
31
- };
32
-
33
- import { _, Autowired, BeanStub, Events, PostConstruct, RowNode, Bean } from '@ag-grid-community/core';
34
-
35
- var ExpandListener = /*#__PURE__*/function (_BeanStub) {
36
- _inherits(ExpandListener, _BeanStub);
37
-
38
- var _super = _createSuper(ExpandListener);
39
-
40
- function ExpandListener() {
41
- _classCallCheck(this, ExpandListener);
42
-
43
- return _super.apply(this, arguments);
44
- }
45
-
46
- _createClass(ExpandListener, [{
47
- key: "postConstruct",
48
- value: function postConstruct() {
49
- // only want to be active if SSRM active, otherwise would be interfering with other row models
50
- if (!this.gridOptionsWrapper.isRowModelServerSide()) {
51
- return;
52
- }
53
-
54
- this.addManagedListener(this.eventService, Events.EVENT_ROW_GROUP_OPENED, this.onRowGroupOpened.bind(this));
55
- }
56
- }, {
57
- key: "onRowGroupOpened",
58
- value: function onRowGroupOpened(event) {
59
- var rowNode = event.node;
60
-
61
- if (rowNode.expanded) {
62
- if (rowNode.master) {
63
- this.createDetailNode(rowNode);
64
- } else if (_.missing(rowNode.childStore)) {
65
- var storeParams = this.serverSideRowModel.getParams();
66
- rowNode.childStore = this.createBean(this.storeFactory.createStore(storeParams, rowNode));
67
- }
68
- } else if (this.gridOptionsWrapper.isPurgeClosedRowNodes() && _.exists(rowNode.childStore)) {
69
- rowNode.childStore = this.destroyBean(rowNode.childStore);
70
- }
71
-
72
- var storeUpdatedEvent = {
73
- type: Events.EVENT_STORE_UPDATED
74
- };
75
- this.eventService.dispatchEvent(storeUpdatedEvent);
76
- }
77
- }, {
78
- key: "createDetailNode",
79
- value: function createDetailNode(masterNode) {
80
- if (_.exists(masterNode.detailNode)) {
81
- return masterNode.detailNode;
82
- }
83
-
84
- var detailNode = new RowNode(this.beans);
85
- detailNode.detail = true;
86
- detailNode.selectable = false;
87
- detailNode.parent = masterNode;
88
-
89
- if (_.exists(masterNode.id)) {
90
- detailNode.id = 'detail_' + masterNode.id;
91
- }
92
-
93
- detailNode.data = masterNode.data;
94
- detailNode.level = masterNode.level + 1;
95
- var defaultDetailRowHeight = 200;
96
- var rowHeight = this.gridOptionsWrapper.getRowHeightForNode(detailNode).height;
97
- detailNode.rowHeight = rowHeight ? rowHeight : defaultDetailRowHeight;
98
- masterNode.detailNode = detailNode;
99
- return detailNode;
100
- }
101
- }]);
102
-
103
- return ExpandListener;
104
- }(BeanStub);
105
-
106
- __decorate([Autowired('rowModel')], ExpandListener.prototype, 'serverSideRowModel', void 0);
107
-
108
- __decorate([Autowired('ssrmStoreFactory')], ExpandListener.prototype, 'storeFactory', void 0);
109
-
110
- __decorate([Autowired('beans')], ExpandListener.prototype, 'beans', void 0);
111
-
112
- __decorate([PostConstruct], ExpandListener.prototype, 'postConstruct', null);
113
-
114
- ExpandListener = __decorate([Bean('ssrmExpandListener')], ExpandListener);
115
- export { ExpandListener };
@@ -1,9 +0,0 @@
1
- import { BeanStub } from '@ag-grid-community/core';
2
- export declare class FilterListener extends BeanStub {
3
- private serverSideRowModel;
4
- private filterManager;
5
- private listenerUtils;
6
- private postConstruct;
7
- private onFilterChanged;
8
- private findChangedColumns;
9
- }