@lemon-fe/kits 0.1.136 → 1.0.0-0

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 (344) hide show
  1. package/README.md +27 -5
  2. package/es/app.d.ts +1 -0
  3. package/es/app.js +3 -0
  4. package/es/components/Actions/index.d.ts +26 -0
  5. package/es/components/Actions/index.js +169 -0
  6. package/es/components/Actions/index.less +67 -0
  7. package/es/components/BaseTable/Actions.d.ts +9 -0
  8. package/es/components/BaseTable/Actions.js +136 -0
  9. package/es/components/BaseTable/BaseTableContext.d.ts +7 -0
  10. package/es/components/BaseTable/BaseTableContext.js +7 -0
  11. package/es/components/BaseTable/ResizeHeaderCell.d.ts +8 -0
  12. package/es/components/BaseTable/ResizeHeaderCell.js +130 -0
  13. package/es/components/BaseTable/VirtualBody.d.ts +8 -0
  14. package/es/components/BaseTable/VirtualBody.js +163 -0
  15. package/es/components/BaseTable/empty.png +0 -0
  16. package/es/components/BaseTable/index.d.ts +9 -0
  17. package/es/components/BaseTable/index.js +482 -0
  18. package/es/components/BaseTable/index.less +189 -0
  19. package/es/components/BaseTable/typings.d.ts +48 -0
  20. package/es/components/BaseTable/utils.d.ts +4 -0
  21. package/es/components/BaseTable/utils.js +26 -0
  22. package/es/components/ColorPicker/index.d.ts +13 -0
  23. package/es/components/ColorPicker/index.js +114 -0
  24. package/es/components/ColorPicker/index.less +47 -0
  25. package/es/components/DataGrid/Actions.d.ts +9 -0
  26. package/es/components/DataGrid/Actions.js +119 -0
  27. package/es/components/DataGrid/CellRenderer.d.ts +4 -0
  28. package/es/components/DataGrid/CellRenderer.js +68 -0
  29. package/es/components/DataGrid/GridContext.d.ts +4 -0
  30. package/es/components/DataGrid/GridContext.js +4 -0
  31. package/es/components/DataGrid/HeaderRenderer.d.ts +6 -0
  32. package/es/components/DataGrid/HeaderRenderer.js +93 -0
  33. package/es/components/DataGrid/cell-editors/Custom.d.ts +9 -0
  34. package/es/components/DataGrid/cell-editors/Custom.js +105 -0
  35. package/es/components/DataGrid/cell-editors/Date.d.ts +8 -0
  36. package/es/components/DataGrid/cell-editors/Date.js +78 -0
  37. package/es/components/DataGrid/cell-editors/Number.d.ts +9 -0
  38. package/es/components/DataGrid/cell-editors/Number.js +86 -0
  39. package/es/components/DataGrid/cell-editors/Select.d.ts +7 -0
  40. package/es/components/DataGrid/cell-editors/Select.js +70 -0
  41. package/es/components/DataGrid/cell-editors/Text.d.ts +5 -0
  42. package/es/components/DataGrid/cell-editors/Text.js +60 -0
  43. package/es/components/DataGrid/cell-editors/Wrapper.d.ts +4 -0
  44. package/es/components/DataGrid/cell-editors/Wrapper.js +7 -0
  45. package/es/components/DataGrid/cell-editors/utils.d.ts +1 -0
  46. package/es/components/DataGrid/cell-editors/utils.js +2 -0
  47. package/es/components/DataGrid/empty.png +0 -0
  48. package/es/components/DataGrid/hooks.d.ts +2 -0
  49. package/es/components/DataGrid/hooks.js +45 -0
  50. package/es/components/DataGrid/index.d.ts +77 -0
  51. package/es/components/DataGrid/index.js +1051 -0
  52. package/es/components/DataGrid/index.less +304 -0
  53. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideNodeManager.d.ts +57 -0
  54. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideNodeManager.js +378 -0
  55. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideRowModel.d.ts +120 -0
  56. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideRowModel.js +1160 -0
  57. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterService.d.ts +7 -0
  58. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterService.js +137 -0
  59. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterStage.d.ts +5 -0
  60. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterStage.js +60 -0
  61. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/flattenStage.d.ts +10 -0
  62. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/flattenStage.js +199 -0
  63. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/immutableService.d.ts +13 -0
  64. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/immutableService.js +175 -0
  65. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortService.d.ts +21 -0
  66. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortService.js +330 -0
  67. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortStage.d.ts +7 -0
  68. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortStage.js +75 -0
  69. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModelModule.d.ts +15 -0
  70. package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModelModule.js +15 -0
  71. package/es/components/DataGrid/modules/client-side-row-model/index.d.ts +1 -0
  72. package/es/components/DataGrid/modules/client-side-row-model/index.js +1 -0
  73. package/es/components/DataGrid/modules/clipboard/clipboard/clipboardService.d.ts +62 -0
  74. package/es/components/DataGrid/modules/clipboard/clipboard/clipboardService.js +923 -0
  75. package/es/components/DataGrid/modules/clipboard/clipboardModule.d.ts +7 -0
  76. package/es/components/DataGrid/modules/clipboard/clipboardModule.js +8 -0
  77. package/es/components/DataGrid/modules/clipboard/index.d.ts +1 -0
  78. package/es/components/DataGrid/modules/clipboard/index.js +1 -0
  79. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnModelItem.d.ts +32 -0
  80. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnModelItem.js +100 -0
  81. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnToolPanel.d.ts +51 -0
  82. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnToolPanel.js +320 -0
  83. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/modelItemUtils.d.ts +20 -0
  84. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/modelItemUtils.js +247 -0
  85. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/pivotModePanel.d.ts +9 -0
  86. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/pivotModePanel.js +93 -0
  87. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.d.ts +32 -0
  88. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.js +186 -0
  89. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.d.ts +49 -0
  90. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.js +546 -0
  91. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.d.ts +26 -0
  92. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.js +264 -0
  93. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.d.ts +32 -0
  94. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.js +151 -0
  95. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.d.ts +43 -0
  96. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.js +369 -0
  97. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.d.ts +62 -0
  98. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.js +475 -0
  99. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.d.ts +24 -0
  100. package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.js +322 -0
  101. package/es/components/DataGrid/modules/column-tool-panel/columnsToolPanelModule.d.ts +24 -0
  102. package/es/components/DataGrid/modules/column-tool-panel/columnsToolPanelModule.js +24 -0
  103. package/es/components/DataGrid/modules/column-tool-panel/index.d.ts +2 -0
  104. package/es/components/DataGrid/modules/column-tool-panel/index.js +3 -0
  105. package/es/components/DataGrid/modules/menu/index.d.ts +1 -0
  106. package/es/components/DataGrid/modules/menu/index.js +1 -0
  107. package/es/components/DataGrid/modules/menu/menu/contextMenu.d.ts +26 -0
  108. package/es/components/DataGrid/modules/menu/menu/contextMenu.js +329 -0
  109. package/es/components/DataGrid/modules/menu/menu/enterpriseMenu.d.ts +85 -0
  110. package/es/components/DataGrid/modules/menu/menu/enterpriseMenu.js +639 -0
  111. package/es/components/DataGrid/modules/menu/menu/menuItemMapper.d.ts +15 -0
  112. package/es/components/DataGrid/modules/menu/menu/menuItemMapper.js +565 -0
  113. package/es/components/DataGrid/modules/menu/menuModule.d.ts +8 -0
  114. package/es/components/DataGrid/modules/menu/menuModule.js +8 -0
  115. package/es/components/DataGrid/modules/row-grouping/index.d.ts +4 -0
  116. package/es/components/DataGrid/modules/row-grouping/index.js +4 -0
  117. package/es/components/DataGrid/modules/row-grouping/rowGrouping/aggFuncService.d.ts +23 -0
  118. package/es/components/DataGrid/modules/row-grouping/rowGrouping/aggFuncService.js +303 -0
  119. package/es/components/DataGrid/modules/row-grouping/rowGrouping/aggregationStage.d.ts +20 -0
  120. package/es/components/DataGrid/modules/row-grouping/rowGrouping/aggregationStage.js +326 -0
  121. package/es/components/DataGrid/modules/row-grouping/rowGrouping/batchRemover.d.ts +10 -0
  122. package/es/components/DataGrid/modules/row-grouping/rowGrouping/batchRemover.js +71 -0
  123. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.d.ts +75 -0
  124. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.js +618 -0
  125. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.d.ts +40 -0
  126. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.js +460 -0
  127. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.d.ts +11 -0
  128. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.js +108 -0
  129. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.d.ts +17 -0
  130. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.js +170 -0
  131. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.d.ts +15 -0
  132. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.js +133 -0
  133. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.d.ts +15 -0
  134. package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.js +133 -0
  135. package/es/components/DataGrid/modules/row-grouping/rowGrouping/filterAggregatesStage.d.ts +9 -0
  136. package/es/components/DataGrid/modules/row-grouping/rowGrouping/filterAggregatesStage.js +175 -0
  137. package/es/components/DataGrid/modules/row-grouping/rowGrouping/groupStage.d.ts +47 -0
  138. package/es/components/DataGrid/modules/row-grouping/rowGrouping/groupStage.js +814 -0
  139. package/es/components/DataGrid/modules/row-grouping/rowGrouping/pivotColDefService.d.ts +24 -0
  140. package/es/components/DataGrid/modules/row-grouping/rowGrouping/pivotColDefService.js +478 -0
  141. package/es/components/DataGrid/modules/row-grouping/rowGrouping/pivotStage.d.ts +19 -0
  142. package/es/components/DataGrid/modules/row-grouping/rowGrouping/pivotStage.js +219 -0
  143. package/es/components/DataGrid/modules/row-grouping/rowGroupingModule.d.ts +16 -0
  144. package/es/components/DataGrid/modules/row-grouping/rowGroupingModule.js +16 -0
  145. package/es/components/DataGrid/modules/server-side-row-model/index.d.ts +1 -0
  146. package/es/components/DataGrid/modules/server-side-row-model/index.js +1 -0
  147. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/blockUtils.d.ts +47 -0
  148. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/blockUtils.js +444 -0
  149. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/infiniteStoreBlock.d.ts +92 -0
  150. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/infiniteStoreBlock.js +510 -0
  151. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/expandListener.d.ts +9 -0
  152. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/expandListener.js +115 -0
  153. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/filterListener.d.ts +9 -0
  154. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/filterListener.js +114 -0
  155. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/listenerUtils.d.ts +5 -0
  156. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/listenerUtils.js +68 -0
  157. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/sortListener.d.ts +13 -0
  158. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/sortListener.js +194 -0
  159. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/nodeManager.d.ts +7 -0
  160. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/nodeManager.js +63 -0
  161. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/serverSideRowModel.d.ts +88 -0
  162. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/serverSideRowModel.js +572 -0
  163. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/fullStore.d.ts +108 -0
  164. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/fullStore.js +876 -0
  165. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/infiniteStore.d.ts +102 -0
  166. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/infiniteStore.js +918 -0
  167. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeFactory.d.ts +12 -0
  168. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeFactory.js +141 -0
  169. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeUtils.d.ts +35 -0
  170. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeUtils.js +154 -0
  171. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/transactionManager.d.ts +23 -0
  172. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/transactionManager.js +210 -0
  173. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModelModule.d.ts +18 -0
  174. package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModelModule.js +18 -0
  175. package/es/components/DataGrid/modules/side-bar/index.d.ts +2 -0
  176. package/es/components/DataGrid/modules/side-bar/index.js +2 -0
  177. package/es/components/DataGrid/modules/side-bar/sideBar/common/toolPanelColDefService.d.ts +11 -0
  178. package/es/components/DataGrid/modules/side-bar/sideBar/common/toolPanelColDefService.js +280 -0
  179. package/es/components/DataGrid/modules/side-bar/sideBar/horizontalResizeComp.d.ts +19 -0
  180. package/es/components/DataGrid/modules/side-bar/sideBar/horizontalResizeComp.js +132 -0
  181. package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonComp.d.ts +16 -0
  182. package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonComp.js +108 -0
  183. package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonsComp.d.ts +18 -0
  184. package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonsComp.js +115 -0
  185. package/es/components/DataGrid/modules/side-bar/sideBar/sideBarComp.d.ts +29 -0
  186. package/es/components/DataGrid/modules/side-bar/sideBar/sideBarComp.js +353 -0
  187. package/es/components/DataGrid/modules/side-bar/sideBar/toolPanelWrapper.d.ts +17 -0
  188. package/es/components/DataGrid/modules/side-bar/sideBar/toolPanelWrapper.js +128 -0
  189. package/es/components/DataGrid/modules/side-bar/sideBarModule.d.ts +19 -0
  190. package/es/components/DataGrid/modules/side-bar/sideBarModule.js +19 -0
  191. package/es/components/DataGrid/typings.d.ts +138 -0
  192. package/es/components/DataGrid/typings.js +1 -0
  193. package/es/components/DataGrid/utils.d.ts +43 -0
  194. package/es/components/DataGrid/utils.js +242 -0
  195. package/es/components/Dropdown/index.d.ts +15 -0
  196. package/es/components/Dropdown/index.js +55 -0
  197. package/es/components/Dropdown/index.less +13 -0
  198. package/es/components/DurationPicker/index.d.ts +26 -0
  199. package/es/components/DurationPicker/index.js +204 -0
  200. package/es/components/DurationPicker/index.less +61 -0
  201. package/es/components/EditableTable/EditableCell.d.ts +12 -0
  202. package/es/components/EditableTable/EditableCell.js +41 -0
  203. package/es/components/EditableTable/EditableTableFormItem.d.ts +6 -0
  204. package/es/components/EditableTable/EditableTableFormItem.js +47 -0
  205. package/es/components/EditableTable/Table.d.ts +6 -0
  206. package/es/components/EditableTable/Table.js +362 -0
  207. package/es/components/EditableTable/index.d.ts +9 -0
  208. package/es/components/EditableTable/index.js +8 -0
  209. package/es/components/EditableTable/index.less +29 -0
  210. package/es/components/EditableTable/typings.d.ts +90 -0
  211. package/es/components/EditableTable/util.d.ts +25 -0
  212. package/es/components/EditableTable/util.js +399 -0
  213. package/es/components/Filter/index.d.ts +15 -0
  214. package/es/components/Filter/index.js +644 -0
  215. package/es/components/Filter/index.less +82 -0
  216. package/es/components/Filter/typings.d.ts +35 -0
  217. package/es/components/FormLayout/index.d.ts +32 -0
  218. package/es/components/FormLayout/index.js +41 -0
  219. package/es/components/FormLayout/index.less +109 -0
  220. package/es/components/Icons/BigTip/error.png +0 -0
  221. package/es/components/Icons/BigTip/index.d.ts +6 -0
  222. package/es/components/Icons/BigTip/index.js +46 -0
  223. package/es/components/Icons/BigTip/info.png +0 -0
  224. package/es/components/Icons/BigTip/success.png +0 -0
  225. package/es/components/Icons/BigTip/warning.png +0 -0
  226. package/es/components/Icons/Calendar.d.ts +5 -0
  227. package/es/components/Icons/Calendar.js +43 -0
  228. package/es/components/Icons/Close.d.ts +5 -0
  229. package/es/components/Icons/Close.js +25 -0
  230. package/es/components/Icons/CollapseUp.d.ts +5 -0
  231. package/es/components/Icons/CollapseUp.js +27 -0
  232. package/es/components/Icons/DarkSearch.d.ts +5 -0
  233. package/es/components/Icons/DarkSearch.js +34 -0
  234. package/es/components/Icons/Down.d.ts +5 -0
  235. package/es/components/Icons/Down.js +31 -0
  236. package/es/components/Icons/Empty.d.ts +3 -0
  237. package/es/components/Icons/Empty.js +267 -0
  238. package/es/components/Icons/LookUp.d.ts +5 -0
  239. package/es/components/Icons/LookUp.js +70 -0
  240. package/es/components/Icons/More.d.ts +5 -0
  241. package/es/components/Icons/More.js +40 -0
  242. package/es/components/Icons/Search.d.ts +5 -0
  243. package/es/components/Icons/Search.js +31 -0
  244. package/es/components/Icons/Tip.d.ts +6 -0
  245. package/es/components/Icons/Tip.js +165 -0
  246. package/es/components/Icons/index.d.ts +25 -0
  247. package/es/components/Icons/index.js +25 -0
  248. package/es/components/Layout/index.d.ts +41 -0
  249. package/es/components/Layout/index.js +173 -0
  250. package/es/components/Layout/index.less +136 -0
  251. package/es/components/PageLoading/index.d.ts +5 -0
  252. package/es/components/PageLoading/index.js +15 -0
  253. package/es/components/PageLoading/index.less +8 -0
  254. package/es/components/Popup/index.d.ts +39 -0
  255. package/es/components/Popup/index.js +223 -0
  256. package/es/components/Popup/index.less +12 -0
  257. package/es/components/Portal/index.d.ts +17 -0
  258. package/es/components/Portal/index.js +141 -0
  259. package/es/components/Section/TabBar.d.ts +12 -0
  260. package/es/components/Section/TabBar.js +51 -0
  261. package/es/components/Section/index.d.ts +54 -0
  262. package/es/components/Section/index.js +96 -0
  263. package/es/components/Section/index.less +130 -0
  264. package/es/components/SelectView/index.d.ts +47 -0
  265. package/es/components/SelectView/index.js +244 -0
  266. package/es/components/SelectView/index.less +60 -0
  267. package/es/components/SiderTree/TreeNodeTitle.d.ts +9 -0
  268. package/es/components/SiderTree/TreeNodeTitle.js +107 -0
  269. package/es/components/SiderTree/empty.png +0 -0
  270. package/es/components/SiderTree/index.d.ts +37 -0
  271. package/es/components/SiderTree/index.js +217 -0
  272. package/es/components/SiderTree/index.less +222 -0
  273. package/es/components/SiderTree/typings.d.ts +19 -0
  274. package/es/components/SymbolIcon/index.d.ts +8 -0
  275. package/es/components/SymbolIcon/index.js +32 -0
  276. package/es/components/SymbolIcon/index.less +7 -0
  277. package/es/components/TabBar/index.d.ts +14 -0
  278. package/es/components/TabBar/index.js +52 -0
  279. package/es/components/TabBar/index.less +31 -0
  280. package/es/components/Table/index.d.ts +3 -0
  281. package/es/components/Table/index.js +242 -0
  282. package/es/components/Table/typings.d.ts +25 -0
  283. package/es/components/Table/utils.d.ts +2 -0
  284. package/es/components/Table/utils.js +3 -0
  285. package/es/components/utils.d.ts +3 -0
  286. package/es/components/utils.js +20 -0
  287. package/es/constants.d.ts +1 -0
  288. package/es/constants.js +1 -0
  289. package/es/{useBatchOperator → hooks/useBatchOperator}/index.d.ts +2 -2
  290. package/es/{useBatchOperator → hooks/useBatchOperator}/index.js +120 -57
  291. package/es/{usePageTrack → hooks/usePageTrack}/index.d.ts +0 -0
  292. package/es/{usePageTrack → hooks/usePageTrack}/index.js +0 -0
  293. package/es/index.d.ts +33 -6
  294. package/es/index.js +30 -6
  295. package/es/index.less +25 -1
  296. package/es/init.d.ts +3 -0
  297. package/es/init.js +153 -0
  298. package/es/layouts/BasicLayout/components/Main.d.ts +10 -0
  299. package/es/layouts/BasicLayout/components/Main.js +390 -0
  300. package/es/layouts/BasicLayout/components/MainFramework/components/DropMenu/index.d.ts +11 -0
  301. package/es/layouts/BasicLayout/components/MainFramework/components/DropMenu/index.js +104 -0
  302. package/es/layouts/BasicLayout/components/MainFramework/components/DropMenu/index.less +59 -0
  303. package/es/layouts/BasicLayout/components/MainFramework/components/Menu/index.d.ts +10 -0
  304. package/es/layouts/BasicLayout/components/MainFramework/components/Menu/index.js +667 -0
  305. package/es/layouts/BasicLayout/components/MainFramework/components/Menu/index.less +445 -0
  306. package/es/layouts/BasicLayout/components/MainFramework/components/RefreshButton/index.d.ts +6 -0
  307. package/es/layouts/BasicLayout/components/MainFramework/components/RefreshButton/index.js +72 -0
  308. package/es/layouts/BasicLayout/components/MainFramework/components/RefreshButton/index.less +30 -0
  309. package/es/layouts/BasicLayout/components/MainFramework/components/TabBar/index.d.ts +10 -0
  310. package/es/layouts/BasicLayout/components/MainFramework/components/TabBar/index.js +116 -0
  311. package/es/layouts/BasicLayout/components/MainFramework/components/TabBar/index.less +155 -0
  312. package/es/layouts/BasicLayout/components/MainFramework/components/WaterMark/index.d.ts +6 -0
  313. package/es/layouts/BasicLayout/components/MainFramework/components/WaterMark/index.js +70 -0
  314. package/es/layouts/BasicLayout/components/MainFramework/index.d.ts +28 -0
  315. package/es/layouts/BasicLayout/components/MainFramework/index.js +78 -0
  316. package/es/layouts/BasicLayout/components/MainFramework/index.less +97 -0
  317. package/es/layouts/BasicLayout/components/MainFramework/typings.d.ts +10 -0
  318. package/es/layouts/BasicLayout/index.d.ts +3 -0
  319. package/es/layouts/BasicLayout/index.js +98 -0
  320. package/es/layouts/BasicLayout/typings.d.ts +82 -0
  321. package/es/layouts/BlankLayout/index.d.ts +5 -0
  322. package/es/layouts/BlankLayout/index.js +5 -0
  323. package/es/layouts/Breadcrumb/index.d.ts +6 -0
  324. package/es/layouts/Breadcrumb/index.js +75 -0
  325. package/es/layouts/MicroLayout/index.d.ts +10 -0
  326. package/es/layouts/MicroLayout/index.js +105 -0
  327. package/es/layouts/MicroLayout/typings.d.ts +25 -0
  328. package/es/layouts/components/CachableRoute.d.ts +2 -0
  329. package/es/layouts/components/CachableRoute.js +38 -0
  330. package/es/layouts/components/RouteTab.d.ts +20 -0
  331. package/es/layouts/components/RouteTab.js +40 -0
  332. package/es/layouts/components/Switch.d.ts +2 -0
  333. package/es/layouts/components/Switch.js +63 -0
  334. package/es/layouts/index.d.ts +4 -0
  335. package/es/layouts/index.js +4 -0
  336. package/es/layouts/typings.d.ts +29 -0
  337. package/es/layouts/utils.d.ts +23 -0
  338. package/es/layouts/utils.js +175 -0
  339. package/es/styles/overrides.less +191 -0
  340. package/es/styles/theme.less +9 -0
  341. package/es/styles/utils.less +110 -0
  342. package/package.json +75 -22
  343. package/es/subject.d.ts +0 -12
  344. package/es/subject.js +0 -30
@@ -0,0 +1,565 @@
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, Constants, ModuleNames, ModuleRegistry, Optional } from '@ag-grid-community/core';
34
+
35
+ var MenuItemMapper = /*#__PURE__*/function (_BeanStub) {
36
+ _inherits(MenuItemMapper, _BeanStub);
37
+
38
+ var _super = _createSuper(MenuItemMapper);
39
+
40
+ function MenuItemMapper() {
41
+ _classCallCheck(this, MenuItemMapper);
42
+
43
+ return _super.apply(this, arguments);
44
+ }
45
+
46
+ _createClass(MenuItemMapper, [{
47
+ key: "mapWithStockItems",
48
+ value: function mapWithStockItems(originalList, column) {
49
+ var _this = this;
50
+
51
+ if (!originalList) {
52
+ return [];
53
+ }
54
+
55
+ var resultList = [];
56
+ originalList.forEach(function (menuItemOrString) {
57
+ var result;
58
+
59
+ if (typeof menuItemOrString === 'string') {
60
+ result = _this.getStockMenuItem(menuItemOrString, column);
61
+ } else {
62
+ result = menuItemOrString;
63
+ } // if no mapping, can happen when module is not loaded but user tries to use module anyway
64
+
65
+
66
+ if (!result) {
67
+ return;
68
+ }
69
+
70
+ var resultDef = result;
71
+ var subMenu = resultDef.subMenu;
72
+
73
+ if (subMenu && subMenu instanceof Array) {
74
+ resultDef.subMenu = _this.mapWithStockItems(resultDef.subMenu, column);
75
+ }
76
+
77
+ if (result != null) {
78
+ resultList.push(result);
79
+ }
80
+ });
81
+ return resultList;
82
+ }
83
+ }, {
84
+ key: "getStockMenuItem",
85
+ value: function getStockMenuItem(key, column) {
86
+ var _this2 = this;
87
+
88
+ var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();
89
+ var skipHeaderOnAutoSize = this.gridOptionsWrapper.isSkipHeaderOnAutoSize();
90
+
91
+ switch (key) {
92
+ case 'pinSubMenu':
93
+ return {
94
+ name: localeTextFunc('pinColumn', 'Pin Column'),
95
+ icon: _.createIconNoSpan('menuPin', this.gridOptionsWrapper, null),
96
+ subMenu: ['pinLeft', 'pinRight', 'clearPinned']
97
+ };
98
+
99
+ case 'pinLeft':
100
+ return {
101
+ name: localeTextFunc('pinLeft', 'Pin Left'),
102
+ action: function action() {
103
+ return _this2.columnModel.setColumnPinned(column, Constants.PINNED_LEFT, 'contextMenu');
104
+ },
105
+ checked: !!column && column.isPinnedLeft()
106
+ };
107
+
108
+ case 'pinRight':
109
+ return {
110
+ name: localeTextFunc('pinRight', 'Pin Right'),
111
+ action: function action() {
112
+ return _this2.columnModel.setColumnPinned(column, Constants.PINNED_RIGHT, 'contextMenu');
113
+ },
114
+ checked: !!column && column.isPinnedRight()
115
+ };
116
+
117
+ case 'clearPinned':
118
+ return {
119
+ name: localeTextFunc('noPin', 'No Pin'),
120
+ action: function action() {
121
+ return _this2.columnModel.setColumnPinned(column, null, 'contextMenu');
122
+ },
123
+ checked: !!column && !column.isPinned()
124
+ };
125
+
126
+ case 'valueAggSubMenu':
127
+ if (ModuleRegistry.assertRegistered(ModuleNames.RowGroupingModule, 'Aggregation from Menu')) {
128
+ return {
129
+ name: localeTextFunc('valueAggregation', 'Value Aggregation'),
130
+ icon: _.createIconNoSpan('menuValue', this.gridOptionsWrapper, null),
131
+ subMenu: this.createAggregationSubMenu(column)
132
+ };
133
+ } else {
134
+ return null;
135
+ }
136
+
137
+ case 'autoSizeThis':
138
+ return {
139
+ name: localeTextFunc('autosizeThiscolumn', 'Autosize This Column'),
140
+ action: function action() {
141
+ return _this2.columnModel.autoSizeColumn(column, skipHeaderOnAutoSize, 'contextMenu');
142
+ }
143
+ };
144
+
145
+ case 'autoSizeAll':
146
+ return {
147
+ name: localeTextFunc('autosizeAllColumns', 'Autosize All Columns'),
148
+ action: function action() {
149
+ return _this2.columnModel.autoSizeAllColumns(skipHeaderOnAutoSize, 'contextMenu');
150
+ }
151
+ };
152
+
153
+ case 'rowGroup':
154
+ return {
155
+ name: localeTextFunc('groupBy', 'Group by') + ' ' + _.escapeString(this.columnModel.getDisplayNameForColumn(column, 'header')),
156
+ action: function action() {
157
+ return _this2.columnModel.addRowGroupColumn(column, 'contextMenu');
158
+ },
159
+ icon: _.createIconNoSpan('menuAddRowGroup', this.gridOptionsWrapper, null)
160
+ };
161
+
162
+ case 'rowUnGroup':
163
+ return {
164
+ name: localeTextFunc('ungroupBy', 'Un-Group by') + ' ' + _.escapeString(this.columnModel.getDisplayNameForColumn(column, 'header')),
165
+ action: function action() {
166
+ return _this2.columnModel.removeRowGroupColumn(column, 'contextMenu');
167
+ },
168
+ icon: _.createIconNoSpan('menuRemoveRowGroup', this.gridOptionsWrapper, null)
169
+ };
170
+
171
+ case 'resetColumns':
172
+ return {
173
+ name: localeTextFunc('resetColumns', 'Reset Columns'),
174
+ action: function action() {
175
+ return _this2.columnModel.resetColumnState('contextMenu');
176
+ }
177
+ };
178
+
179
+ case 'expandAll':
180
+ return {
181
+ name: localeTextFunc('expandAll', 'Expand All'),
182
+ action: function action() {
183
+ return _this2.gridApi.expandAll();
184
+ }
185
+ };
186
+
187
+ case 'contractAll':
188
+ return {
189
+ name: localeTextFunc('collapseAll', 'Collapse All'),
190
+ action: function action() {
191
+ return _this2.gridApi.collapseAll();
192
+ }
193
+ };
194
+
195
+ case 'copy':
196
+ if (ModuleRegistry.assertRegistered(ModuleNames.ClipboardModule, 'Copy from Menu')) {
197
+ return {
198
+ name: localeTextFunc('copy', 'Copy'),
199
+ shortcut: localeTextFunc('ctrlC', 'Ctrl+C'),
200
+ icon: _.createIconNoSpan('clipboardCopy', this.gridOptionsWrapper, null),
201
+ action: function action() {
202
+ return _this2.clipboardService.copyToClipboard();
203
+ }
204
+ };
205
+ } else {
206
+ return null;
207
+ }
208
+
209
+ case 'copyWithHeaders':
210
+ if (ModuleRegistry.assertRegistered(ModuleNames.ClipboardModule, 'Copy with Headers from Menu')) {
211
+ return {
212
+ name: localeTextFunc('copyWithHeaders', 'Copy with Headers'),
213
+ // shortcut: localeTextFunc('ctrlC','Ctrl+C'),
214
+ icon: _.createIconNoSpan('clipboardCopy', this.gridOptionsWrapper, null),
215
+ action: function action() {
216
+ return _this2.clipboardService.copyToClipboard({
217
+ includeHeaders: true
218
+ });
219
+ }
220
+ };
221
+ } else {
222
+ return null;
223
+ }
224
+
225
+ case 'copyWithGroupHeaders':
226
+ if (ModuleRegistry.assertRegistered(ModuleNames.ClipboardModule, 'Copy with Group Headers from Menu')) {
227
+ return {
228
+ name: localeTextFunc('copyWithGroupHeaders', 'Copy with Group Headers'),
229
+ // shortcut: localeTextFunc('ctrlC','Ctrl+C'),
230
+ icon: _.createIconNoSpan('clipboardCopy', this.gridOptionsWrapper, null),
231
+ action: function action() {
232
+ return _this2.clipboardService.copyToClipboard({
233
+ includeHeaders: true,
234
+ includeGroupHeaders: true
235
+ });
236
+ }
237
+ };
238
+ } else {
239
+ return null;
240
+ }
241
+
242
+ case 'paste':
243
+ if (ModuleRegistry.assertRegistered(ModuleNames.ClipboardModule, 'Paste from Clipboard')) {
244
+ return {
245
+ name: localeTextFunc('paste', 'Paste'),
246
+ shortcut: localeTextFunc('ctrlV', 'Ctrl+V'),
247
+ disabled: true,
248
+ icon: _.createIconNoSpan('clipboardPaste', this.gridOptionsWrapper, null),
249
+ action: function action() {
250
+ return _this2.clipboardService.pasteFromClipboard();
251
+ }
252
+ };
253
+ } else {
254
+ return null;
255
+ }
256
+
257
+ case 'export':
258
+ var exportSubMenuItems = [];
259
+ var csvModuleLoaded = ModuleRegistry.isRegistered(ModuleNames.CsvExportModule);
260
+ var excelModuleLoaded = ModuleRegistry.isRegistered(ModuleNames.ExcelExportModule);
261
+
262
+ if (!this.gridOptionsWrapper.isSuppressCsvExport() && csvModuleLoaded) {
263
+ exportSubMenuItems.push('csvExport');
264
+ }
265
+
266
+ if (!this.gridOptionsWrapper.isSuppressExcelExport() && excelModuleLoaded) {
267
+ exportSubMenuItems.push('excelExport');
268
+ }
269
+
270
+ return {
271
+ name: localeTextFunc('export', 'Export'),
272
+ subMenu: exportSubMenuItems,
273
+ icon: _.createIconNoSpan('save', this.gridOptionsWrapper, null)
274
+ };
275
+
276
+ case 'csvExport':
277
+ return {
278
+ name: localeTextFunc('csvExport', 'CSV Export'),
279
+ icon: _.createIconNoSpan('csvExport', this.gridOptionsWrapper, null),
280
+ action: function action() {
281
+ return _this2.gridApi.exportDataAsCsv({});
282
+ }
283
+ };
284
+
285
+ case 'excelExport':
286
+ return {
287
+ name: localeTextFunc('excelExport', 'Excel Export'),
288
+ icon: _.createIconNoSpan('excelExport', this.gridOptionsWrapper, null),
289
+ action: function action() {
290
+ return _this2.gridApi.exportDataAsExcel();
291
+ }
292
+ };
293
+
294
+ case 'separator':
295
+ return 'separator';
296
+
297
+ default:
298
+ var chartMenuItem = this.getChartItems(key);
299
+
300
+ if (chartMenuItem) {
301
+ return chartMenuItem;
302
+ } else {
303
+ console.warn("AG Grid: unknown menu item type ".concat(key));
304
+ return null;
305
+ }
306
+
307
+ }
308
+ }
309
+ }, {
310
+ key: "getChartItems",
311
+ value: function getChartItems(key) {
312
+ var _this3 = this;
313
+
314
+ var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();
315
+
316
+ var pivotChartMenuItem = function pivotChartMenuItem(localeKey, defaultText, chartType) {
317
+ return {
318
+ name: localeTextFunc(localeKey, defaultText),
319
+ action: function action() {
320
+ return _this3.chartService.createPivotChart({
321
+ chartType: chartType
322
+ });
323
+ }
324
+ };
325
+ };
326
+
327
+ var rangeChartMenuItem = function rangeChartMenuItem(localeKey, defaultText, chartType) {
328
+ return {
329
+ name: localeTextFunc(localeKey, defaultText),
330
+ action: function action() {
331
+ return _this3.chartService.createChartFromCurrentRange(chartType);
332
+ }
333
+ };
334
+ };
335
+
336
+ switch (key) {
337
+ case 'pivotChart':
338
+ return {
339
+ name: localeTextFunc('pivotChart', 'Pivot Chart'),
340
+ subMenu: ['pivotColumnChart', 'pivotBarChart', 'pivotPieChart', 'pivotLineChart', 'pivotXYChart', 'pivotAreaChart'],
341
+ icon: _.createIconNoSpan('chart', this.gridOptionsWrapper, null)
342
+ };
343
+
344
+ case 'chartRange':
345
+ return {
346
+ name: localeTextFunc('chartRange', 'Chart Range'),
347
+ subMenu: ['rangeColumnChart', 'rangeBarChart', 'rangePieChart', 'rangeLineChart', 'rangeXYChart', 'rangeAreaChart', 'rangeHistogramChart', 'rangeCombinationChart'],
348
+ icon: _.createIconNoSpan('chart', this.gridOptionsWrapper, null)
349
+ };
350
+
351
+ case 'pivotColumnChart':
352
+ return {
353
+ name: localeTextFunc('columnChart', 'Column'),
354
+ subMenu: ['pivotGroupedColumn', 'pivotStackedColumn', 'pivotNormalizedColumn']
355
+ };
356
+
357
+ case 'pivotGroupedColumn':
358
+ return pivotChartMenuItem('groupedColumn', 'Grouped&lrm;', 'groupedColumn');
359
+
360
+ case 'pivotStackedColumn':
361
+ return pivotChartMenuItem('stackedColumn', 'Stacked&lrm;', 'stackedColumn');
362
+
363
+ case 'pivotNormalizedColumn':
364
+ return pivotChartMenuItem('normalizedColumn', '100% Stacked&lrm;', 'normalizedColumn');
365
+
366
+ case 'rangeColumnChart':
367
+ return {
368
+ name: localeTextFunc('columnChart', 'Column'),
369
+ subMenu: ['rangeGroupedColumn', 'rangeStackedColumn', 'rangeNormalizedColumn']
370
+ };
371
+
372
+ case 'rangeGroupedColumn':
373
+ return rangeChartMenuItem('groupedColumn', 'Grouped&lrm;', 'groupedColumn');
374
+
375
+ case 'rangeStackedColumn':
376
+ return rangeChartMenuItem('stackedColumn', 'Stacked&lrm;', 'stackedColumn');
377
+
378
+ case 'rangeNormalizedColumn':
379
+ return rangeChartMenuItem('normalizedColumn', '100% Stacked&lrm;', 'normalizedColumn');
380
+
381
+ case 'pivotBarChart':
382
+ return {
383
+ name: localeTextFunc('barChart', 'Bar'),
384
+ subMenu: ['pivotGroupedBar', 'pivotStackedBar', 'pivotNormalizedBar']
385
+ };
386
+
387
+ case 'pivotGroupedBar':
388
+ return pivotChartMenuItem('groupedBar', 'Grouped&lrm;', 'groupedBar');
389
+
390
+ case 'pivotStackedBar':
391
+ return pivotChartMenuItem('stackedBar', 'Stacked&lrm;', 'stackedBar');
392
+
393
+ case 'pivotNormalizedBar':
394
+ return pivotChartMenuItem('normalizedBar', '100% Stacked&lrm;', 'normalizedBar');
395
+
396
+ case 'rangeBarChart':
397
+ return {
398
+ name: localeTextFunc('barChart', 'Bar'),
399
+ subMenu: ['rangeGroupedBar', 'rangeStackedBar', 'rangeNormalizedBar']
400
+ };
401
+
402
+ case 'rangeGroupedBar':
403
+ return rangeChartMenuItem('groupedBar', 'Grouped&lrm;', 'groupedBar');
404
+
405
+ case 'rangeStackedBar':
406
+ return rangeChartMenuItem('stackedBar', 'Stacked&lrm;', 'stackedBar');
407
+
408
+ case 'rangeNormalizedBar':
409
+ return rangeChartMenuItem('normalizedBar', '100% Stacked&lrm;', 'normalizedBar');
410
+
411
+ case 'pivotPieChart':
412
+ return {
413
+ name: localeTextFunc('pieChart', 'Pie'),
414
+ subMenu: ['pivotPie', 'pivotDoughnut']
415
+ };
416
+
417
+ case 'pivotPie':
418
+ return pivotChartMenuItem('pie', 'Pie&lrm;', 'pie');
419
+
420
+ case 'pivotDoughnut':
421
+ return pivotChartMenuItem('doughnut', 'Doughnut&lrm;', 'doughnut');
422
+
423
+ case 'rangePieChart':
424
+ return {
425
+ name: localeTextFunc('pieChart', 'Pie'),
426
+ subMenu: ['rangePie', 'rangeDoughnut']
427
+ };
428
+
429
+ case 'rangePie':
430
+ return rangeChartMenuItem('pie', 'Pie&lrm;', 'pie');
431
+
432
+ case 'rangeDoughnut':
433
+ return rangeChartMenuItem('doughnut', 'Doughnut&lrm;', 'doughnut');
434
+
435
+ case 'pivotLineChart':
436
+ return pivotChartMenuItem('line', 'Line&lrm;', 'line');
437
+
438
+ case 'rangeLineChart':
439
+ return rangeChartMenuItem('line', 'Line&lrm;', 'line');
440
+
441
+ case 'pivotXYChart':
442
+ return {
443
+ name: localeTextFunc('xyChart', 'X Y (Scatter)'),
444
+ subMenu: ['pivotScatter', 'pivotBubble']
445
+ };
446
+
447
+ case 'pivotScatter':
448
+ return pivotChartMenuItem('scatter', 'Scatter&lrm;', 'scatter');
449
+
450
+ case 'pivotBubble':
451
+ return pivotChartMenuItem('bubble', 'Bubble&lrm;', 'bubble');
452
+
453
+ case 'rangeXYChart':
454
+ return {
455
+ name: localeTextFunc('xyChart', 'X Y (Scatter)'),
456
+ subMenu: ['rangeScatter', 'rangeBubble']
457
+ };
458
+
459
+ case 'rangeScatter':
460
+ return rangeChartMenuItem('scatter', 'Scatter&lrm;', 'scatter');
461
+
462
+ case 'rangeBubble':
463
+ return rangeChartMenuItem('bubble', 'Bubble&lrm;', 'bubble');
464
+
465
+ case 'pivotAreaChart':
466
+ return {
467
+ name: localeTextFunc('areaChart', 'Area'),
468
+ subMenu: ['pivotArea', 'pivotStackedArea', 'pivotNormalizedArea']
469
+ };
470
+
471
+ case 'pivotArea':
472
+ return pivotChartMenuItem('area', 'Area&lrm;', 'area');
473
+
474
+ case 'pivotStackedArea':
475
+ return pivotChartMenuItem('stackedArea', 'Stacked&lrm;', 'stackedArea');
476
+
477
+ case 'pivotNormalizedArea':
478
+ return pivotChartMenuItem('normalizedArea', '100% Stacked&lrm;', 'normalizedArea');
479
+
480
+ case 'rangeAreaChart':
481
+ return {
482
+ name: localeTextFunc('areaChart', 'Area'),
483
+ subMenu: ['rangeArea', 'rangeStackedArea', 'rangeNormalizedArea']
484
+ };
485
+
486
+ case 'rangeArea':
487
+ return rangeChartMenuItem('area', 'Area&lrm;', 'area');
488
+
489
+ case 'rangeStackedArea':
490
+ return rangeChartMenuItem('stackedArea', 'Stacked&lrm;', 'stackedArea');
491
+
492
+ case 'rangeNormalizedArea':
493
+ return rangeChartMenuItem('normalizedArea', '100% Stacked&lrm;', 'normalizedArea');
494
+
495
+ case 'rangeHistogramChart':
496
+ return rangeChartMenuItem('histogramChart', 'Histogram&lrm;', 'histogram');
497
+
498
+ case 'rangeColumnLineCombo':
499
+ return rangeChartMenuItem('columnLineCombo', 'Column & Line&lrm;', 'columnLineCombo');
500
+
501
+ case 'rangeAreaColumnCombo':
502
+ return rangeChartMenuItem('AreaColumnCombo', 'Area & Column&lrm;', 'areaColumnCombo');
503
+
504
+ case 'rangeCombinationChart':
505
+ return {
506
+ name: localeTextFunc('combinationChart', 'Combination'),
507
+ subMenu: ['rangeColumnLineCombo', 'rangeAreaColumnCombo']
508
+ };
509
+
510
+ default:
511
+ return null;
512
+ }
513
+ }
514
+ }, {
515
+ key: "createAggregationSubMenu",
516
+ value: function createAggregationSubMenu(column) {
517
+ var _this4 = this;
518
+
519
+ var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();
520
+ var columnToUse;
521
+
522
+ if (column.isPrimary()) {
523
+ columnToUse = column;
524
+ } else {
525
+ var pivotValueColumn = column.getColDef().pivotValueColumn;
526
+ columnToUse = _.exists(pivotValueColumn) ? pivotValueColumn : undefined;
527
+ }
528
+
529
+ var result = [];
530
+
531
+ if (columnToUse) {
532
+ var columnIsAlreadyAggValue = columnToUse.isValueActive();
533
+ var funcNames = this.aggFuncService.getFuncNames(columnToUse);
534
+ funcNames.forEach(function (funcName) {
535
+ result.push({
536
+ name: localeTextFunc(funcName, funcName),
537
+ action: function action() {
538
+ _this4.columnModel.setColumnAggFunc(columnToUse, funcName, 'contextMenu');
539
+
540
+ _this4.columnModel.addValueColumn(columnToUse, 'contextMenu');
541
+ },
542
+ checked: columnIsAlreadyAggValue && columnToUse.getAggFunc() === funcName
543
+ });
544
+ });
545
+ }
546
+
547
+ return result;
548
+ }
549
+ }]);
550
+
551
+ return MenuItemMapper;
552
+ }(BeanStub);
553
+
554
+ __decorate([Autowired('columnModel')], MenuItemMapper.prototype, 'columnModel', void 0);
555
+
556
+ __decorate([Autowired('gridApi')], MenuItemMapper.prototype, 'gridApi', void 0);
557
+
558
+ __decorate([Optional('clipboardService')], MenuItemMapper.prototype, 'clipboardService', void 0);
559
+
560
+ __decorate([Optional('aggFuncService')], MenuItemMapper.prototype, 'aggFuncService', void 0);
561
+
562
+ __decorate([Optional('chartService')], MenuItemMapper.prototype, 'chartService', void 0);
563
+
564
+ MenuItemMapper = __decorate([Bean('menuItemMapper')], MenuItemMapper);
565
+ export { MenuItemMapper };
@@ -0,0 +1,8 @@
1
+ import { ModuleNames } from '@ag-grid-community/core';
2
+ import { EnterpriseMenuFactory } from './menu/enterpriseMenu';
3
+ import { ContextMenuFactory } from './menu/contextMenu';
4
+ import { MenuItemMapper } from './menu/menuItemMapper';
5
+ export declare const MenuModule: {
6
+ moduleName: ModuleNames;
7
+ beans: (typeof EnterpriseMenuFactory | typeof ContextMenuFactory | typeof MenuItemMapper)[];
8
+ };
@@ -0,0 +1,8 @@
1
+ import { ModuleNames } from '@ag-grid-community/core';
2
+ import { EnterpriseMenuFactory } from "./menu/enterpriseMenu";
3
+ import { ContextMenuFactory } from "./menu/contextMenu";
4
+ import { MenuItemMapper } from "./menu/menuItemMapper";
5
+ export var MenuModule = {
6
+ moduleName: ModuleNames.MenuModule,
7
+ beans: [EnterpriseMenuFactory, ContextMenuFactory, MenuItemMapper]
8
+ };
@@ -0,0 +1,4 @@
1
+ export { RowGroupingModule } from './rowGroupingModule';
2
+ export { RowGroupDropZonePanel } from './rowGrouping/columnDropZones/rowGroupDropZonePanel';
3
+ export { ValuesDropZonePanel } from './rowGrouping/columnDropZones/valueDropZonePanel';
4
+ export { PivotDropZonePanel } from './rowGrouping/columnDropZones/pivotDropZonePanel';
@@ -0,0 +1,4 @@
1
+ export { RowGroupingModule } from "./rowGroupingModule";
2
+ export { RowGroupDropZonePanel } from "./rowGrouping/columnDropZones/rowGroupDropZonePanel";
3
+ export { ValuesDropZonePanel } from "./rowGrouping/columnDropZones/valueDropZonePanel";
4
+ export { PivotDropZonePanel } from "./rowGrouping/columnDropZones/pivotDropZonePanel";
@@ -0,0 +1,23 @@
1
+ import { BeanStub, Column, IAggFunc, IAggFuncService } from '@ag-grid-community/core';
2
+ export declare class AggFuncService extends BeanStub implements IAggFuncService {
3
+ private static AGG_SUM;
4
+ private static AGG_FIRST;
5
+ private static AGG_LAST;
6
+ private static AGG_MIN;
7
+ private static AGG_MAX;
8
+ private static AGG_COUNT;
9
+ private static AGG_AVG;
10
+ private aggFuncsMap;
11
+ private initialised;
12
+ private init;
13
+ private initialiseWithDefaultAggregations;
14
+ private isAggFuncPossible;
15
+ getDefaultAggFunc(column: Column): string | null;
16
+ addAggFuncs(aggFuncs?: {
17
+ [key: string]: IAggFunc;
18
+ }): void;
19
+ addAggFunc(key: string, aggFunc: IAggFunc): void;
20
+ getAggFunc(name: string): IAggFunc;
21
+ getFuncNames(column: Column): string[];
22
+ clear(): void;
23
+ }