@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,460 @@
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 { DragSourceType, Component, Autowired, Events, TouchListener, DragAndDropService, PostConstruct, Column, RefSelector, Optional, VirtualList, KeyCode, _ } from "@ag-grid-community/core";
34
+ export var DropZoneColumnComp = /*#__PURE__*/function (_Component) {
35
+ _inherits(DropZoneColumnComp, _Component);
36
+
37
+ var _super = _createSuper(DropZoneColumnComp);
38
+
39
+ function DropZoneColumnComp(column, dragSourceDropTarget, ghost, dropZonePurpose, horizontal) {
40
+ var _this;
41
+
42
+ _classCallCheck(this, DropZoneColumnComp);
43
+
44
+ _this = _super.call(this);
45
+ _this.column = column;
46
+ _this.dragSourceDropTarget = dragSourceDropTarget;
47
+ _this.ghost = ghost;
48
+ _this.dropZonePurpose = dropZonePurpose;
49
+ _this.horizontal = horizontal;
50
+ _this.popupShowing = false;
51
+ return _this;
52
+ }
53
+
54
+ _createClass(DropZoneColumnComp, [{
55
+ key: "init",
56
+ value: function init() {
57
+ var _this2 = this;
58
+
59
+ this.setTemplate(DropZoneColumnComp.TEMPLATE);
60
+ var eGui = this.getGui();
61
+ var isFunctionsReadOnly = this.gridOptionsWrapper.isFunctionsReadOnly();
62
+ this.addElementClasses(eGui);
63
+ this.addElementClasses(this.eDragHandle, 'drag-handle');
64
+ this.addElementClasses(this.eText, 'text');
65
+ this.addElementClasses(this.eButton, 'button');
66
+ this.eDragHandle.appendChild(_.createIconNoSpan('columnDrag', this.gridOptionsWrapper));
67
+ this.eButton.appendChild(_.createIconNoSpan('cancel', this.gridOptionsWrapper));
68
+ this.setupSort();
69
+ this.displayName = this.columnModel.getDisplayNameForColumn(this.column, 'columnDrop');
70
+ this.setupComponents();
71
+
72
+ if (!this.ghost && !isFunctionsReadOnly) {
73
+ this.addDragSource();
74
+ }
75
+
76
+ this.setupAria();
77
+ this.addManagedListener(this.column, Column.EVENT_SORT_CHANGED, function () {
78
+ _this2.setupAria();
79
+ });
80
+ this.setupTooltip();
81
+ }
82
+ }, {
83
+ key: "setupAria",
84
+ value: function setupAria() {
85
+ var translate = this.gridOptionsWrapper.getLocaleTextFunc();
86
+
87
+ var _this$getColumnAndAgg = this.getColumnAndAggFuncName(),
88
+ name = _this$getColumnAndAgg.name,
89
+ aggFuncName = _this$getColumnAndAgg.aggFuncName;
90
+
91
+ var aggSeparator = translate('ariaDropZoneColumnComponentAggFuncSeperator', ' of ');
92
+ var sortDirection = {
93
+ asc: translate('ariaDropZoneColumnComponentSortAscending', 'ascending'),
94
+ desc: translate('ariaDropZoneColumnComponentSortDescending', 'descending')
95
+ };
96
+ var columnSort = this.column.getSort();
97
+ var isSortSuppressed = this.gridOptionsWrapper.isRowGroupPanelSuppressSort();
98
+ var ariaInstructions = [[aggFuncName && "".concat(aggFuncName).concat(aggSeparator), name, this.isGroupingZone() && !isSortSuppressed && columnSort && ", ".concat(sortDirection[columnSort])].filter(function (part) {
99
+ return !!part;
100
+ }).join('')];
101
+ var isFunctionsReadOnly = this.gridOptionsWrapper.isFunctionsReadOnly();
102
+
103
+ if (this.isAggregationZone() && !isFunctionsReadOnly) {
104
+ var aggregationMenuAria = translate('ariaDropZoneColumnValueItemDescription', 'Press ENTER to change the aggregation type');
105
+ ariaInstructions.push(aggregationMenuAria);
106
+ }
107
+
108
+ if (this.isGroupingZone() && this.column.getColDef().sortable && !isSortSuppressed) {
109
+ var sortProgressAria = translate('ariaDropZoneColumnGroupItemDescription', 'Press ENTER to sort');
110
+ ariaInstructions.push(sortProgressAria);
111
+ }
112
+
113
+ var deleteAria = translate('ariaDropZoneColumnComponentDescription', 'Press DELETE to remove');
114
+ ariaInstructions.push(deleteAria);
115
+
116
+ _.setAriaLabel(this.getGui(), ariaInstructions.join('. '));
117
+ }
118
+ }, {
119
+ key: "setupTooltip",
120
+ value: function setupTooltip() {
121
+ var _this3 = this;
122
+
123
+ var refresh = function refresh() {
124
+ var newTooltipText = _this3.column.getColDef().headerTooltip;
125
+
126
+ _this3.setTooltip(newTooltipText);
127
+ };
128
+
129
+ refresh();
130
+ this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, refresh);
131
+ }
132
+ }, {
133
+ key: "setupSort",
134
+ value: function setupSort() {
135
+ var _this4 = this;
136
+
137
+ var canSort = this.column.getColDef().sortable;
138
+ var isGroupingZone = this.isGroupingZone();
139
+
140
+ if (!canSort || !isGroupingZone) {
141
+ return;
142
+ }
143
+
144
+ if (!this.gridOptionsWrapper.isRowGroupPanelSuppressSort()) {
145
+ this.eSortIndicator.setupSort(this.column, true);
146
+
147
+ var performSort = function performSort(event) {
148
+ event.preventDefault();
149
+
150
+ var sortUsingCtrl = _this4.gridOptionsWrapper.isMultiSortKeyCtrl();
151
+
152
+ var multiSort = sortUsingCtrl ? event.ctrlKey || event.metaKey : event.shiftKey;
153
+
154
+ _this4.sortController.progressSort(_this4.column, multiSort, 'uiColumnSorted');
155
+ };
156
+
157
+ this.addGuiEventListener('click', performSort);
158
+ this.addGuiEventListener('keydown', function (e) {
159
+ var isEnter = e.key === KeyCode.ENTER;
160
+
161
+ if (isEnter && _this4.isGroupingZone()) {
162
+ performSort(e);
163
+ }
164
+ });
165
+ }
166
+ }
167
+ }, {
168
+ key: "addDragSource",
169
+ value: function addDragSource() {
170
+ var _this5 = this;
171
+
172
+ var dragSource = {
173
+ type: DragSourceType.ToolPanel,
174
+ eElement: this.eDragHandle,
175
+ defaultIconName: DragAndDropService.ICON_HIDE,
176
+ getDragItem: function getDragItem() {
177
+ return _this5.createDragItem();
178
+ },
179
+ dragItemName: this.displayName,
180
+ dragSourceDropTarget: this.dragSourceDropTarget
181
+ };
182
+ this.dragAndDropService.addDragSource(dragSource, true);
183
+ this.addDestroyFunc(function () {
184
+ return _this5.dragAndDropService.removeDragSource(dragSource);
185
+ });
186
+ }
187
+ }, {
188
+ key: "createDragItem",
189
+ value: function createDragItem() {
190
+ var visibleState = {};
191
+ visibleState[this.column.getId()] = this.column.isVisible();
192
+ return {
193
+ columns: [this.column],
194
+ visibleState: visibleState
195
+ };
196
+ }
197
+ }, {
198
+ key: "setupComponents",
199
+ value: function setupComponents() {
200
+ this.setTextValue();
201
+ this.setupRemove();
202
+
203
+ if (this.ghost) {
204
+ this.addCssClass('ag-column-drop-cell-ghost');
205
+ }
206
+
207
+ if (this.isAggregationZone() && !this.gridOptionsWrapper.isFunctionsReadOnly()) {
208
+ this.addGuiEventListener('click', this.onShowAggFuncSelection.bind(this));
209
+ }
210
+ }
211
+ }, {
212
+ key: "setupRemove",
213
+ value: function setupRemove() {
214
+ var _this6 = this;
215
+
216
+ _.setDisplayed(this.eButton, !this.gridOptionsWrapper.isFunctionsReadOnly());
217
+
218
+ var agEvent = {
219
+ type: DropZoneColumnComp.EVENT_COLUMN_REMOVE
220
+ };
221
+ this.addGuiEventListener('keydown', function (e) {
222
+ var isEnter = e.key === KeyCode.ENTER;
223
+ var isDelete = e.key === KeyCode.DELETE;
224
+
225
+ if (isDelete) {
226
+ e.preventDefault();
227
+
228
+ _this6.dispatchEvent(agEvent);
229
+ }
230
+
231
+ if (isEnter && _this6.isAggregationZone() && !_this6.gridOptionsWrapper.isFunctionsReadOnly()) {
232
+ e.preventDefault();
233
+
234
+ _this6.onShowAggFuncSelection();
235
+ }
236
+ });
237
+ this.addManagedListener(this.eButton, 'click', function (mouseEvent) {
238
+ _this6.dispatchEvent(agEvent);
239
+
240
+ mouseEvent.stopPropagation();
241
+ });
242
+ var touchListener = new TouchListener(this.eButton);
243
+ this.addManagedListener(touchListener, TouchListener.EVENT_TAP, function () {
244
+ _this6.dispatchEvent(agEvent);
245
+ });
246
+ this.addDestroyFunc(touchListener.destroy.bind(touchListener));
247
+ }
248
+ }, {
249
+ key: "getColumnAndAggFuncName",
250
+ value: function getColumnAndAggFuncName() {
251
+ var name = this.displayName;
252
+ var aggFuncName = '';
253
+
254
+ if (this.isAggregationZone()) {
255
+ var aggFunc = this.column.getAggFunc(); // if aggFunc is a string, we can use it, but if it's a function, then we swap with 'func'
256
+
257
+ var aggFuncString = typeof aggFunc === 'string' ? aggFunc : 'agg';
258
+ var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();
259
+ aggFuncName = localeTextFunc(aggFuncString, aggFuncString);
260
+ }
261
+
262
+ return {
263
+ name: name,
264
+ aggFuncName: aggFuncName
265
+ };
266
+ }
267
+ }, {
268
+ key: "setTextValue",
269
+ value: function setTextValue() {
270
+ var _this$getColumnAndAgg2 = this.getColumnAndAggFuncName(),
271
+ name = _this$getColumnAndAgg2.name,
272
+ aggFuncName = _this$getColumnAndAgg2.aggFuncName;
273
+
274
+ var displayValue = this.isAggregationZone() ? "".concat(aggFuncName, "(").concat(name, ")") : name;
275
+
276
+ var displayValueSanitised = _.escapeString(displayValue);
277
+
278
+ this.eText.innerHTML = displayValueSanitised;
279
+ }
280
+ }, {
281
+ key: "onShowAggFuncSelection",
282
+ value: function onShowAggFuncSelection() {
283
+ var _this7 = this;
284
+
285
+ if (this.popupShowing) {
286
+ return;
287
+ }
288
+
289
+ this.popupShowing = true;
290
+ var virtualList = new VirtualList('select-agg-func');
291
+ var rows = this.aggFuncService.getFuncNames(this.column);
292
+ var eGui = this.getGui();
293
+ var virtualListGui = virtualList.getGui();
294
+ virtualList.setModel({
295
+ getRow: function getRow(index) {
296
+ return rows[index];
297
+ },
298
+ getRowCount: function getRowCount() {
299
+ return rows.length;
300
+ }
301
+ });
302
+ this.getContext().createBean(virtualList);
303
+
304
+ var ePopup = _.loadTemplate(
305
+ /* html*/
306
+ "<div class=\"ag-select-agg-func-popup\"></div>");
307
+
308
+ ePopup.style.top = '0px';
309
+ ePopup.style.left = '0px';
310
+ ePopup.appendChild(virtualListGui); // ePopup.style.height = this.gridOptionsWrapper.getAggFuncPopupHeight() + 'px';
311
+
312
+ ePopup.style.width = "".concat(eGui.clientWidth, "px");
313
+
314
+ var popupHiddenFunc = function popupHiddenFunc() {
315
+ _this7.destroyBean(virtualList);
316
+
317
+ _this7.popupShowing = false;
318
+ eGui.focus();
319
+ };
320
+
321
+ var translate = this.gridOptionsWrapper.getLocaleTextFunc();
322
+ var addPopupRes = this.popupService.addPopup({
323
+ modal: true,
324
+ eChild: ePopup,
325
+ closeOnEsc: true,
326
+ closedCallback: popupHiddenFunc,
327
+ ariaLabel: translate('ariaLabelAggregationFunction', 'Aggregation Function')
328
+ });
329
+
330
+ if (addPopupRes) {
331
+ virtualList.setComponentCreator(this.createAggSelect.bind(this, addPopupRes.hideFunc));
332
+ }
333
+
334
+ virtualList.addGuiEventListener('keydown', function (e) {
335
+ if (e.key === KeyCode.ENTER || e.key === KeyCode.SPACE) {
336
+ var row = virtualList.getLastFocusedRow();
337
+
338
+ if (row == null) {
339
+ return;
340
+ }
341
+
342
+ var comp = virtualList.getComponentAt(row);
343
+
344
+ if (comp) {
345
+ comp.selectItem();
346
+ }
347
+ }
348
+ });
349
+ this.popupService.positionPopupUnderComponent({
350
+ type: 'aggFuncSelect',
351
+ eventSource: eGui,
352
+ ePopup: ePopup,
353
+ keepWithinBounds: true,
354
+ column: this.column
355
+ });
356
+ virtualList.refresh();
357
+ var rowToFocus = rows.findIndex(function (r) {
358
+ return r === _this7.column.getAggFunc();
359
+ });
360
+
361
+ if (rowToFocus === -1) {
362
+ rowToFocus = 0;
363
+ }
364
+
365
+ virtualList.focusRow(rowToFocus);
366
+ }
367
+ }, {
368
+ key: "createAggSelect",
369
+ value: function createAggSelect(hidePopup, value) {
370
+ var _this8 = this;
371
+
372
+ var itemSelected = function itemSelected() {
373
+ hidePopup();
374
+
375
+ if (_this8.gridOptionsWrapper.isFunctionsPassive()) {
376
+ var event = {
377
+ type: Events.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST,
378
+ columns: [_this8.column],
379
+ aggFunc: value
380
+ };
381
+
382
+ _this8.eventService.dispatchEvent(event);
383
+ } else {
384
+ _this8.columnModel.setColumnAggFunc(_this8.column, value, "toolPanelDragAndDrop");
385
+ }
386
+ };
387
+
388
+ var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();
389
+ var aggFuncString = value.toString();
390
+ var aggFuncStringTranslated = localeTextFunc(aggFuncString, aggFuncString);
391
+ var comp = new AggItemComp(itemSelected, aggFuncStringTranslated);
392
+ return comp;
393
+ }
394
+ }, {
395
+ key: "addElementClasses",
396
+ value: function addElementClasses(el, suffix) {
397
+ suffix = suffix ? "-".concat(suffix) : '';
398
+ var direction = this.horizontal ? 'horizontal' : 'vertical';
399
+ el.classList.add("ag-column-drop-cell".concat(suffix), "ag-column-drop-".concat(direction, "-cell").concat(suffix));
400
+ }
401
+ }, {
402
+ key: "isAggregationZone",
403
+ value: function isAggregationZone() {
404
+ return this.dropZonePurpose === 'aggregation';
405
+ }
406
+ }, {
407
+ key: "isGroupingZone",
408
+ value: function isGroupingZone() {
409
+ return this.dropZonePurpose === 'rowGroup';
410
+ }
411
+ }]);
412
+
413
+ return DropZoneColumnComp;
414
+ }(Component);
415
+ DropZoneColumnComp.EVENT_COLUMN_REMOVE = 'columnRemove';
416
+ DropZoneColumnComp.TEMPLATE = "<span role=\"option\" tabindex=\"0\">\n <span ref=\"eDragHandle\" class=\"ag-drag-handle ag-column-drop-cell-drag-handle\" role=\"presentation\"></span>\n <span ref=\"eText\" class=\"ag-column-drop-cell-text\" aria-hidden=\"true\"></span>\n <ag-sort-indicator ref=\"eSortIndicator\"></ag-sort-indicator>\n <span ref=\"eButton\" class=\"ag-column-drop-cell-button\" role=\"presentation\"></span>\n </span>";
417
+
418
+ __decorate([Autowired('dragAndDropService')], DropZoneColumnComp.prototype, "dragAndDropService", void 0);
419
+
420
+ __decorate([Autowired('columnModel')], DropZoneColumnComp.prototype, "columnModel", void 0);
421
+
422
+ __decorate([Autowired('popupService')], DropZoneColumnComp.prototype, "popupService", void 0);
423
+
424
+ __decorate([Optional('aggFuncService')], DropZoneColumnComp.prototype, "aggFuncService", void 0);
425
+
426
+ __decorate([Autowired('sortController')], DropZoneColumnComp.prototype, "sortController", void 0);
427
+
428
+ __decorate([RefSelector('eText')], DropZoneColumnComp.prototype, "eText", void 0);
429
+
430
+ __decorate([RefSelector('eDragHandle')], DropZoneColumnComp.prototype, "eDragHandle", void 0);
431
+
432
+ __decorate([RefSelector('eButton')], DropZoneColumnComp.prototype, "eButton", void 0);
433
+
434
+ __decorate([RefSelector('eSortIndicator')], DropZoneColumnComp.prototype, "eSortIndicator", void 0);
435
+
436
+ __decorate([PostConstruct], DropZoneColumnComp.prototype, "init", null);
437
+
438
+ var AggItemComp = /*#__PURE__*/function (_Component2) {
439
+ _inherits(AggItemComp, _Component2);
440
+
441
+ var _super2 = _createSuper(AggItemComp);
442
+
443
+ function AggItemComp(itemSelected, value) {
444
+ var _this9;
445
+
446
+ _classCallCheck(this, AggItemComp);
447
+
448
+ _this9 = _super2.call(this,
449
+ /* html */
450
+ "<div class=\"ag-select-agg-func-item\"/>");
451
+ _this9.selectItem = itemSelected;
452
+ _this9.getGui().innerText = value;
453
+
454
+ _this9.addGuiEventListener('click', _this9.selectItem);
455
+
456
+ return _this9;
457
+ }
458
+
459
+ return _createClass(AggItemComp);
460
+ }(Component);
@@ -0,0 +1,11 @@
1
+ import { Component } from "@ag-grid-community/core";
2
+ export declare class GridHeaderDropZones extends Component {
3
+ private columnModel;
4
+ private rowGroupComp;
5
+ private pivotComp;
6
+ constructor();
7
+ private postConstruct;
8
+ private createNorthPanel;
9
+ private onDropPanelVisible;
10
+ private onRowGroupChanged;
11
+ }
@@ -0,0 +1,108 @@
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, Component, Constants, Events, PostConstruct, _ } from "@ag-grid-community/core";
34
+ import { RowGroupDropZonePanel } from "./rowGroupDropZonePanel";
35
+ import { PivotDropZonePanel } from "./pivotDropZonePanel";
36
+ export var GridHeaderDropZones = /*#__PURE__*/function (_Component) {
37
+ _inherits(GridHeaderDropZones, _Component);
38
+
39
+ var _super = _createSuper(GridHeaderDropZones);
40
+
41
+ function GridHeaderDropZones() {
42
+ _classCallCheck(this, GridHeaderDropZones);
43
+
44
+ return _super.call(this);
45
+ }
46
+
47
+ _createClass(GridHeaderDropZones, [{
48
+ key: "postConstruct",
49
+ value: function postConstruct() {
50
+ this.setGui(this.createNorthPanel());
51
+ this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.onRowGroupChanged.bind(this));
52
+ this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.onRowGroupChanged.bind(this));
53
+ this.addManagedListener(this.gridOptionsWrapper, 'rowGroupPanelShow', this.onRowGroupChanged.bind(this));
54
+ this.onRowGroupChanged();
55
+ }
56
+ }, {
57
+ key: "createNorthPanel",
58
+ value: function createNorthPanel() {
59
+ var topPanelGui = document.createElement('div');
60
+ var dropPanelVisibleListener = this.onDropPanelVisible.bind(this);
61
+ topPanelGui.classList.add('ag-column-drop-wrapper');
62
+
63
+ _.setAriaRole(topPanelGui, 'presentation');
64
+
65
+ this.rowGroupComp = new RowGroupDropZonePanel(true);
66
+ this.createManagedBean(this.rowGroupComp);
67
+ this.pivotComp = new PivotDropZonePanel(true);
68
+ this.createManagedBean(this.pivotComp);
69
+ topPanelGui.appendChild(this.rowGroupComp.getGui());
70
+ topPanelGui.appendChild(this.pivotComp.getGui());
71
+ this.addManagedListener(this.rowGroupComp, Component.EVENT_DISPLAYED_CHANGED, dropPanelVisibleListener);
72
+ this.addManagedListener(this.pivotComp, Component.EVENT_DISPLAYED_CHANGED, dropPanelVisibleListener);
73
+ this.onDropPanelVisible();
74
+ return topPanelGui;
75
+ }
76
+ }, {
77
+ key: "onDropPanelVisible",
78
+ value: function onDropPanelVisible() {
79
+ var bothDisplayed = this.rowGroupComp.isDisplayed() && this.pivotComp.isDisplayed();
80
+ this.rowGroupComp.addOrRemoveCssClass('ag-column-drop-horizontal-half-width', bothDisplayed);
81
+ this.pivotComp.addOrRemoveCssClass('ag-column-drop-horizontal-half-width', bothDisplayed);
82
+ }
83
+ }, {
84
+ key: "onRowGroupChanged",
85
+ value: function onRowGroupChanged() {
86
+ if (!this.rowGroupComp) {
87
+ return;
88
+ }
89
+
90
+ var rowGroupPanelShow = this.gridOptionsWrapper.getRowGroupPanelShow();
91
+
92
+ if (rowGroupPanelShow === Constants.ALWAYS) {
93
+ this.rowGroupComp.setDisplayed(true);
94
+ } else if (rowGroupPanelShow === Constants.ONLY_WHEN_GROUPING) {
95
+ var grouping = !this.columnModel.isRowGroupEmpty();
96
+ this.rowGroupComp.setDisplayed(grouping);
97
+ } else {
98
+ this.rowGroupComp.setDisplayed(false);
99
+ }
100
+ }
101
+ }]);
102
+
103
+ return GridHeaderDropZones;
104
+ }(Component);
105
+
106
+ __decorate([Autowired('columnModel')], GridHeaderDropZones.prototype, "columnModel", void 0);
107
+
108
+ __decorate([PostConstruct], GridHeaderDropZones.prototype, "postConstruct", null);
@@ -0,0 +1,17 @@
1
+ import { Column, ITooltipParams, WithoutGridCommon } from "@ag-grid-community/core";
2
+ import { BaseDropZonePanel } from "./baseDropZonePanel";
3
+ export declare class PivotDropZonePanel extends BaseDropZonePanel {
4
+ private columnModel;
5
+ private loggerFactory;
6
+ private dragAndDropService;
7
+ constructor(horizontal: boolean);
8
+ private passBeansUp;
9
+ protected getAriaLabel(): string;
10
+ getTooltipParams(): WithoutGridCommon<ITooltipParams>;
11
+ private refresh;
12
+ private checkVisibility;
13
+ protected isColumnDroppable(column: Column): boolean;
14
+ protected updateColumns(columns: Column[]): void;
15
+ protected getIconName(): string;
16
+ protected getExistingColumns(): Column[];
17
+ }