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

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 +1299 -504
  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 +59 -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 +109 -32
  159. package/es/components/DataGrid/utils.d.ts +13 -6
  160. package/es/components/DataGrid/utils.js +116 -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,12 +0,0 @@
1
- import { IServerSideStore, RowNode } from '@ag-grid-community/core';
2
- import { SSRMParams } from '../serverSideRowModel';
3
- export declare class StoreFactory {
4
- private gridOptionsWrapper;
5
- private columnModel;
6
- createStore(ssrmParams: SSRMParams, parentNode: RowNode): IServerSideStore;
7
- private getStoreParams;
8
- private getMaxBlocksInCache;
9
- private getBlockSize;
10
- private getLevelSpecificParams;
11
- private isInfiniteScroll;
12
- }
@@ -1,141 +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 _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); }
8
-
9
- var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
10
- var c = arguments.length,
11
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
12
- d;
13
- 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--) {
14
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
15
- }
16
- return c > 3 && r && Object.defineProperty(target, key, r), r;
17
- };
18
-
19
- import { _, Autowired, Bean } from '@ag-grid-community/core';
20
- import { InfiniteStore } from "./infiniteStore";
21
- import { FullStore } from "./fullStore";
22
-
23
- var StoreFactory = /*#__PURE__*/function () {
24
- function StoreFactory() {
25
- _classCallCheck(this, StoreFactory);
26
- }
27
-
28
- _createClass(StoreFactory, [{
29
- key: "createStore",
30
- value: function createStore(ssrmParams, parentNode) {
31
- var storeParams = this.getStoreParams(ssrmParams, parentNode);
32
- var CacheClass = storeParams.infiniteScroll ? InfiniteStore : FullStore;
33
- return new CacheClass(ssrmParams, storeParams, parentNode);
34
- }
35
- }, {
36
- key: "getStoreParams",
37
- value: function getStoreParams(ssrmParams, parentNode) {
38
- var userStoreParams = this.getLevelSpecificParams(parentNode); // if user provided overrideParams, we take infiniteScroll from there if it exists
39
-
40
- var infiniteScroll = this.isInfiniteScroll(userStoreParams);
41
- var cacheBlockSize = this.getBlockSize(infiniteScroll, userStoreParams);
42
- var maxBlocksInCache = this.getMaxBlocksInCache(infiniteScroll, ssrmParams, userStoreParams);
43
- var storeParams = {
44
- infiniteScroll: infiniteScroll,
45
- cacheBlockSize: cacheBlockSize,
46
- maxBlocksInCache: maxBlocksInCache
47
- };
48
- return storeParams;
49
- }
50
- }, {
51
- key: "getMaxBlocksInCache",
52
- value: function getMaxBlocksInCache(infiniteScroll, ssrmParams, userStoreParams) {
53
- if (!infiniteScroll) {
54
- return undefined;
55
- }
56
-
57
- var maxBlocksInCache = userStoreParams && userStoreParams.maxBlocksInCache != null ? userStoreParams.maxBlocksInCache : this.gridOptionsWrapper.getMaxBlocksInCache();
58
- var maxBlocksActive = maxBlocksInCache != null && maxBlocksInCache >= 0;
59
-
60
- if (!maxBlocksActive) {
61
- return undefined;
62
- }
63
-
64
- if (ssrmParams.dynamicRowHeight) {
65
- var message = 'AG Grid: Server Side Row Model does not support Dynamic Row Height and Cache Purging. ' + 'Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.';
66
-
67
- _.doOnce(function () {
68
- return console.warn(message);
69
- }, 'storeFactory.maxBlocksInCache.dynamicRowHeight');
70
-
71
- return undefined;
72
- }
73
-
74
- if (this.columnModel.isAutoRowHeightActive()) {
75
- var _message = 'AG Grid: Server Side Row Model does not support Auto Row Height and Cache Purging. ' + 'Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.';
76
-
77
- _.doOnce(function () {
78
- return console.warn(_message);
79
- }, 'storeFactory.maxBlocksInCache.autoRowHeightActive');
80
-
81
- return undefined;
82
- }
83
-
84
- return maxBlocksInCache;
85
- }
86
- }, {
87
- key: "getBlockSize",
88
- value: function getBlockSize(infiniteScroll, userStoreParams) {
89
- if (!infiniteScroll) {
90
- return undefined;
91
- }
92
-
93
- var blockSize = userStoreParams && userStoreParams.cacheBlockSize != null ? userStoreParams.cacheBlockSize : this.gridOptionsWrapper.getCacheBlockSize();
94
-
95
- if (blockSize != null && blockSize > 0) {
96
- return blockSize;
97
- } else {
98
- return 100;
99
- }
100
- }
101
- }, {
102
- key: "getLevelSpecificParams",
103
- value: function getLevelSpecificParams(parentNode) {
104
- var callback = this.gridOptionsWrapper.getServerSideGroupLevelParamsFunc();
105
-
106
- if (!callback) {
107
- return undefined;
108
- }
109
-
110
- var params = {
111
- level: parentNode.level + 1,
112
- parentRowNode: parentNode.level >= 0 ? parentNode : undefined,
113
- rowGroupColumns: this.columnModel.getRowGroupColumns(),
114
- pivotColumns: this.columnModel.getPivotColumns(),
115
- pivotMode: this.columnModel.isPivotMode()
116
- };
117
- var res = callback(params);
118
-
119
- if (res.storeType != null) {
120
- res.infiniteScroll = res.storeType === 'partial';
121
- }
122
-
123
- return res;
124
- }
125
- }, {
126
- key: "isInfiniteScroll",
127
- value: function isInfiniteScroll(storeParams) {
128
- var res = storeParams && storeParams.infiniteScroll != null ? storeParams.infiniteScroll : this.gridOptionsWrapper.isServerSideInfiniteScroll();
129
- return res;
130
- }
131
- }]);
132
-
133
- return StoreFactory;
134
- }();
135
-
136
- __decorate([Autowired('gridOptionsWrapper')], StoreFactory.prototype, 'gridOptionsWrapper', void 0);
137
-
138
- __decorate([Autowired('columnModel')], StoreFactory.prototype, 'columnModel', void 0);
139
-
140
- StoreFactory = __decorate([Bean('ssrmStoreFactory')], StoreFactory);
141
- export { StoreFactory };
@@ -1,35 +0,0 @@
1
- import {
2
- IServerSideStore,
3
- BeanStub,
4
- StoreRefreshAfterParams,
5
- RowNode,
6
- ColumnVO,
7
- RowNodeBlock,
8
- } from '@ag-grid-community/core';
9
- import { SSRMParams } from '../serverSideRowModel';
10
- export declare class StoreUtils extends BeanStub {
11
- private columnApi;
12
- private columnModel;
13
- private gridApi;
14
- loadFromDatasource(p: {
15
- storeParams: SSRMParams;
16
- parentNode: RowNode;
17
- parentBlock: RowNodeBlock;
18
- successCallback: () => void;
19
- failCallback: () => void;
20
- success: () => void;
21
- fail: () => void;
22
- startRow?: number;
23
- endRow?: number;
24
- }): void;
25
- getChildStore(
26
- keys: string[],
27
- currentCache: IServerSideStore,
28
- findNodeFunc: (key: string) => RowNode,
29
- ): IServerSideStore | null;
30
- isServerRefreshNeeded(
31
- parentRowNode: RowNode,
32
- rowGroupCols: ColumnVO[],
33
- params: StoreRefreshAfterParams,
34
- ): boolean;
35
- }
@@ -1,154 +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, Bean, BeanStub } from '@ag-grid-community/core';
34
-
35
- var StoreUtils = /*#__PURE__*/function (_BeanStub) {
36
- _inherits(StoreUtils, _BeanStub);
37
-
38
- var _super = _createSuper(StoreUtils);
39
-
40
- function StoreUtils() {
41
- _classCallCheck(this, StoreUtils);
42
-
43
- return _super.apply(this, arguments);
44
- }
45
-
46
- _createClass(StoreUtils, [{
47
- key: "loadFromDatasource",
48
- value: function loadFromDatasource(p) {
49
- var storeParams = p.storeParams,
50
- parentBlock = p.parentBlock,
51
- parentNode = p.parentNode;
52
- var groupKeys = parentNode.getGroupKeys();
53
-
54
- if (!storeParams.datasource) {
55
- return;
56
- }
57
-
58
- var request = {
59
- startRow: p.startRow,
60
- endRow: p.endRow,
61
- rowGroupCols: storeParams.rowGroupCols,
62
- valueCols: storeParams.valueCols,
63
- pivotCols: storeParams.pivotCols,
64
- pivotMode: storeParams.pivotMode,
65
- groupKeys: groupKeys,
66
- filterModel: storeParams.filterModel,
67
- sortModel: storeParams.sortModel
68
- };
69
- var getRowsParams = {
70
- successCallback: p.successCallback,
71
- success: p.success,
72
- failCallback: p.failCallback,
73
- fail: p.fail,
74
- request: request,
75
- parentNode: p.parentNode,
76
- api: this.gridApi,
77
- columnApi: this.columnApi,
78
- context: this.gridOptionsWrapper.getContext()
79
- };
80
- window.setTimeout(function () {
81
- if (!storeParams.datasource || !parentBlock.isAlive()) {
82
- // failCallback() is important, to reduce the 'RowNodeBlockLoader.activeBlockLoadsCount' count
83
- p.failCallback();
84
- return;
85
- }
86
-
87
- storeParams.datasource.getRows(getRowsParams);
88
- }, 0);
89
- }
90
- }, {
91
- key: "getChildStore",
92
- value: function getChildStore(keys, currentCache, findNodeFunc) {
93
- if (_.missingOrEmpty(keys)) {
94
- return currentCache;
95
- }
96
-
97
- var nextKey = keys[0];
98
- var nextNode = findNodeFunc(nextKey);
99
-
100
- if (nextNode) {
101
- var keyListForNextLevel = keys.slice(1, keys.length);
102
- var nextStore = nextNode.childStore;
103
- return nextStore ? nextStore.getChildStore(keyListForNextLevel) : null;
104
- }
105
-
106
- return null;
107
- }
108
- }, {
109
- key: "isServerRefreshNeeded",
110
- value: function isServerRefreshNeeded(parentRowNode, rowGroupCols, params) {
111
- if (params.valueColChanged || params.secondaryColChanged) {
112
- return true;
113
- }
114
-
115
- var level = parentRowNode.level + 1;
116
- var grouping = level < rowGroupCols.length;
117
- var leafNodes = !grouping;
118
-
119
- if (leafNodes) {
120
- return true;
121
- }
122
-
123
- var colIdThisGroup = rowGroupCols[level].id;
124
- var actionOnThisGroup = params.changedColumns.indexOf(colIdThisGroup) > -1;
125
-
126
- if (actionOnThisGroup) {
127
- return true;
128
- }
129
-
130
- var allCols = this.columnModel.getAllGridColumns();
131
- var affectedGroupCols = allCols // find all impacted cols which also a group display column
132
- .filter(function (col) {
133
- return col.getColDef().showRowGroup && params.changedColumns.includes(col.getId());
134
- }).map(function (col) {
135
- return col.getColDef().showRowGroup;
136
- }) // if displaying all groups, or displaying the effected col for this group, refresh
137
- .some(function (group) {
138
- return group === true || group === colIdThisGroup;
139
- });
140
- return affectedGroupCols;
141
- }
142
- }]);
143
-
144
- return StoreUtils;
145
- }(BeanStub);
146
-
147
- __decorate([Autowired('columnApi')], StoreUtils.prototype, 'columnApi', void 0);
148
-
149
- __decorate([Autowired('columnModel')], StoreUtils.prototype, 'columnModel', void 0);
150
-
151
- __decorate([Autowired('gridApi')], StoreUtils.prototype, 'gridApi', void 0);
152
-
153
- StoreUtils = __decorate([Bean('ssrmStoreUtils')], StoreUtils);
154
- export { StoreUtils };
@@ -1,23 +0,0 @@
1
- import {
2
- BeanStub,
3
- IServerSideTransactionManager,
4
- ServerSideTransaction,
5
- ServerSideTransactionResult,
6
- } from '@ag-grid-community/core';
7
- export declare class TransactionManager extends BeanStub implements IServerSideTransactionManager {
8
- private rowNodeBlockLoader;
9
- private valueCache;
10
- private serverSideRowModel;
11
- private rowRenderer;
12
- private asyncTransactionsTimeout;
13
- private asyncTransactions;
14
- private postConstruct;
15
- applyTransactionAsync(
16
- transaction: ServerSideTransaction,
17
- callback?: (res: ServerSideTransactionResult) => void,
18
- ): void;
19
- private scheduleExecuteAsync;
20
- private executeAsyncTransactions;
21
- flushAsyncTransactions(): void;
22
- applyTransaction(transaction: ServerSideTransaction): ServerSideTransactionResult | undefined;
23
- }
@@ -1,210 +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, Bean, BeanStub, Events, PostConstruct, ServerSideTransactionResultStatus } from '@ag-grid-community/core';
34
-
35
- var TransactionManager = /*#__PURE__*/function (_BeanStub) {
36
- _inherits(TransactionManager, _BeanStub);
37
-
38
- var _super = _createSuper(TransactionManager);
39
-
40
- function TransactionManager() {
41
- var _this;
42
-
43
- _classCallCheck(this, TransactionManager);
44
-
45
- _this = _super.apply(this, arguments);
46
- _this.asyncTransactions = [];
47
- return _this;
48
- }
49
-
50
- _createClass(TransactionManager, [{
51
- key: "postConstruct",
52
- value: function postConstruct() {
53
- // only want to be active if SSRM active, otherwise would be interfering with other row models
54
- if (!this.gridOptionsWrapper.isRowModelServerSide()) {
55
- return;
56
- }
57
- }
58
- }, {
59
- key: "applyTransactionAsync",
60
- value: function applyTransactionAsync(transaction, callback) {
61
- if (this.asyncTransactionsTimeout == null) {
62
- this.scheduleExecuteAsync();
63
- }
64
-
65
- this.asyncTransactions.push({
66
- transaction: transaction,
67
- callback: callback
68
- });
69
- }
70
- }, {
71
- key: "scheduleExecuteAsync",
72
- value: function scheduleExecuteAsync() {
73
- var _this2 = this;
74
-
75
- var waitMillis = this.gridOptionsWrapper.getAsyncTransactionWaitMillis();
76
- this.asyncTransactionsTimeout = window.setTimeout(function () {
77
- _this2.executeAsyncTransactions();
78
- }, waitMillis);
79
- }
80
- }, {
81
- key: "executeAsyncTransactions",
82
- value: function executeAsyncTransactions() {
83
- var _this3 = this;
84
-
85
- if (!this.asyncTransactions) {
86
- return;
87
- }
88
-
89
- var resultFuncs = [];
90
- var resultsForEvent = [];
91
- var transactionsToRetry = [];
92
- var atLeastOneTransactionApplied = false;
93
- this.asyncTransactions.forEach(function (txWrapper) {
94
- var result;
95
-
96
- _this3.serverSideRowModel.executeOnStore(txWrapper.transaction.route, function (cache) {
97
- result = cache.applyTransaction(txWrapper.transaction);
98
- });
99
-
100
- if (result == undefined) {
101
- result = {
102
- status: ServerSideTransactionResultStatus.StoreNotFound
103
- };
104
- }
105
-
106
- resultsForEvent.push(result);
107
- var retryTransaction = result.status == ServerSideTransactionResultStatus.StoreLoading;
108
-
109
- if (retryTransaction) {
110
- transactionsToRetry.push(txWrapper);
111
- return;
112
- }
113
-
114
- if (txWrapper.callback) {
115
- resultFuncs.push(function () {
116
- return txWrapper.callback(result);
117
- });
118
- }
119
-
120
- if (result.status === ServerSideTransactionResultStatus.Applied) {
121
- atLeastOneTransactionApplied = true;
122
- }
123
- }); // do callbacks in next VM turn so it's async
124
-
125
- if (resultFuncs.length > 0) {
126
- window.setTimeout(function () {
127
- resultFuncs.forEach(function (func) {
128
- return func();
129
- });
130
- }, 0);
131
- }
132
-
133
- this.asyncTransactionsTimeout = undefined; // this will be empty list if nothing to retry
134
-
135
- this.asyncTransactions = transactionsToRetry;
136
-
137
- if (atLeastOneTransactionApplied) {
138
- this.valueCache.onDataChanged();
139
- this.eventService.dispatchEvent({
140
- type: Events.EVENT_STORE_UPDATED
141
- });
142
- }
143
-
144
- if (resultsForEvent.length > 0) {
145
- var event = {
146
- type: Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED,
147
- results: resultsForEvent
148
- };
149
- this.eventService.dispatchEvent(event);
150
- }
151
- }
152
- }, {
153
- key: "flushAsyncTransactions",
154
- value: function flushAsyncTransactions() {
155
- // the timeout could be missing, if we are flushing due to row data loaded
156
- if (this.asyncTransactionsTimeout != null) {
157
- clearTimeout(this.asyncTransactionsTimeout);
158
- }
159
-
160
- this.executeAsyncTransactions();
161
- }
162
- }, {
163
- key: "applyTransaction",
164
- value: function applyTransaction(transaction) {
165
- var _this4 = this;
166
-
167
- var res;
168
- this.serverSideRowModel.executeOnStore(transaction.route, function (store) {
169
- res = store.applyTransaction(transaction);
170
- });
171
-
172
- if (res) {
173
- this.valueCache.onDataChanged();
174
- this.eventService.dispatchEvent({
175
- type: Events.EVENT_STORE_UPDATED
176
- });
177
-
178
- if (res.update && res.update.length) {
179
- // this set timeout is necessary to queue behind the listener for EVENT_STORE_UPDATED in ssrm which recalculates the rowIndexes
180
- // if the rowIndex isn't calculated first the binarySearchForDisplayIndex will not be able to find the required rows
181
- setTimeout(function () {
182
- // refresh the full width rows
183
- _this4.rowRenderer.refreshFullWidthRows(res.update);
184
- }, 0);
185
- }
186
-
187
- return res;
188
- } else {
189
- return {
190
- status: ServerSideTransactionResultStatus.StoreNotFound
191
- };
192
- }
193
- }
194
- }]);
195
-
196
- return TransactionManager;
197
- }(BeanStub);
198
-
199
- __decorate([Autowired('rowNodeBlockLoader')], TransactionManager.prototype, 'rowNodeBlockLoader', void 0);
200
-
201
- __decorate([Autowired('valueCache')], TransactionManager.prototype, 'valueCache', void 0);
202
-
203
- __decorate([Autowired('rowModel')], TransactionManager.prototype, 'serverSideRowModel', void 0);
204
-
205
- __decorate([Autowired('rowRenderer')], TransactionManager.prototype, 'rowRenderer', void 0);
206
-
207
- __decorate([PostConstruct], TransactionManager.prototype, 'postConstruct', null);
208
-
209
- TransactionManager = __decorate([Bean('ssrmTransactionManager')], TransactionManager);
210
- export { TransactionManager };
@@ -1,18 +0,0 @@
1
- import { ModuleNames } from '@ag-grid-community/core';
2
- import { ServerSideRowModel } from './serverSideRowModel/serverSideRowModel';
3
- import { StoreUtils } from './serverSideRowModel/stores/storeUtils';
4
- import { BlockUtils } from './serverSideRowModel/blocks/blockUtils';
5
- import { NodeManager } from './serverSideRowModel/nodeManager';
6
- import { TransactionManager } from './serverSideRowModel/transactionManager';
7
- import { ExpandListener } from './serverSideRowModel/listeners/expandListener';
8
- import { SortListener } from './serverSideRowModel/listeners/sortListener';
9
- import { FilterListener } from './serverSideRowModel/listeners/filterListener';
10
- import { StoreFactory } from './serverSideRowModel/stores/storeFactory';
11
- import { ListenerUtils } from './serverSideRowModel/listeners/listenerUtils';
12
- export declare const ServerSideRowModelModule: {
13
- moduleName: ModuleNames;
14
- rowModels: {
15
- serverSide: typeof ServerSideRowModel;
16
- };
17
- beans: (typeof ExpandListener | typeof SortListener | typeof StoreUtils | typeof BlockUtils | typeof NodeManager | typeof TransactionManager | typeof FilterListener | typeof StoreFactory | typeof ListenerUtils)[];
18
- };
@@ -1,18 +0,0 @@
1
- import { ModuleNames } from '@ag-grid-community/core';
2
- import { ServerSideRowModel } from "./serverSideRowModel/serverSideRowModel";
3
- import { StoreUtils } from "./serverSideRowModel/stores/storeUtils";
4
- import { BlockUtils } from "./serverSideRowModel/blocks/blockUtils";
5
- import { NodeManager } from "./serverSideRowModel/nodeManager";
6
- import { TransactionManager } from "./serverSideRowModel/transactionManager";
7
- import { ExpandListener } from "./serverSideRowModel/listeners/expandListener";
8
- import { SortListener } from "./serverSideRowModel/listeners/sortListener";
9
- import { FilterListener } from "./serverSideRowModel/listeners/filterListener";
10
- import { StoreFactory } from "./serverSideRowModel/stores/storeFactory";
11
- import { ListenerUtils } from "./serverSideRowModel/listeners/listenerUtils";
12
- export var ServerSideRowModelModule = {
13
- moduleName: ModuleNames.ServerSideRowModelModule,
14
- rowModels: {
15
- serverSide: ServerSideRowModel
16
- },
17
- beans: [ExpandListener, SortListener, StoreUtils, BlockUtils, NodeManager, TransactionManager, FilterListener, StoreFactory, ListenerUtils]
18
- };
@@ -1,2 +0,0 @@
1
- export { SideBarModule } from './sideBarModule';
2
- export { ToolPanelColDefService } from './sideBar/common/toolPanelColDefService';