@lemon-fe/components 0.1.154 → 1.1.0-alpha.1

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 (411) hide show
  1. package/es/{Actions → actions}/index.d.ts +8 -5
  2. package/es/{Actions → actions}/index.js +56 -39
  3. package/es/{Actions → actions}/index.less +5 -5
  4. package/es/alert/index.d.ts +3 -0
  5. package/es/alert/index.js +18 -0
  6. package/es/{BaseTable/Actions.js → base-table/actions.js} +13 -10
  7. package/es/{BaseTable → base-table}/index.d.ts +0 -1
  8. package/es/{BaseTable → base-table}/index.js +48 -22
  9. package/es/{BaseTable/ResizeHeaderCell.js → base-table/resize-header-cell.js} +3 -3
  10. package/es/{BaseTable → base-table}/utils.d.ts +1 -1
  11. package/es/{BaseTable/VirtualBody.js → base-table/virtual-body.js} +12 -13
  12. package/es/{ColorPicker → color-picker}/index.js +7 -7
  13. package/es/{ColorPicker → color-picker}/index.less +1 -1
  14. package/es/component-configure/index.d.ts +12 -0
  15. package/es/component-configure/index.js +4 -0
  16. package/es/data-grid/cell-editors/date.d.ts +19 -0
  17. package/es/data-grid/cell-editors/date.js +92 -0
  18. package/es/data-grid/cell-editors/number.d.ts +32 -0
  19. package/es/data-grid/cell-editors/number.js +120 -0
  20. package/es/data-grid/cell-editors/row.d.ts +23 -0
  21. package/es/data-grid/cell-editors/row.js +119 -0
  22. package/es/data-grid/cell-editors/select.d.ts +33 -0
  23. package/es/data-grid/cell-editors/select.js +102 -0
  24. package/es/data-grid/cell-editors/text.d.ts +10 -0
  25. package/es/data-grid/cell-editors/text.js +81 -0
  26. package/es/data-grid/cell-editors/utils.d.ts +10 -0
  27. package/es/data-grid/cell-editors/utils.js +45 -0
  28. package/es/data-grid/cell-editors/wrapper.d.ts +5 -0
  29. package/es/data-grid/cell-editors/wrapper.js +8 -0
  30. package/es/data-grid/components/custom-panel/drag-context.d.ts +4 -0
  31. package/es/data-grid/components/custom-panel/drag-context.js +3 -0
  32. package/es/data-grid/components/custom-panel/field-modal.d.ts +10 -0
  33. package/es/data-grid/components/custom-panel/field-modal.js +223 -0
  34. package/es/data-grid/components/custom-panel/index.d.ts +5 -0
  35. package/es/data-grid/components/custom-panel/index.js +321 -0
  36. package/es/data-grid/components/custom-panel/item.d.ts +14 -0
  37. package/es/data-grid/components/custom-panel/item.js +181 -0
  38. package/es/data-grid/components/custom-panel/typings.d.ts +25 -0
  39. package/es/data-grid/components/search.d.ts +4 -0
  40. package/es/data-grid/components/search.js +159 -0
  41. package/es/data-grid/components/selected.d.ts +7 -0
  42. package/es/data-grid/components/selected.js +24 -0
  43. package/es/data-grid/context/grid-store.d.ts +4 -0
  44. package/es/data-grid/context/grid-store.js +4 -0
  45. package/es/data-grid/hooks.d.ts +20 -0
  46. package/es/data-grid/hooks.js +71 -0
  47. package/es/data-grid/index.d.ts +102 -0
  48. package/es/data-grid/index.js +1684 -0
  49. package/es/data-grid/index.less +659 -0
  50. package/es/data-grid/modules/clipboard/clipboard/clipboardService.d.ts +62 -0
  51. package/es/data-grid/modules/clipboard/clipboard/clipboardService.js +1007 -0
  52. package/es/data-grid/modules/clipboard/clipboardModule.d.ts +2 -0
  53. package/es/data-grid/modules/clipboard/clipboardModule.js +10 -0
  54. package/es/data-grid/modules/clipboard/main.d.ts +1 -0
  55. package/es/data-grid/modules/clipboard/main.js +1 -0
  56. package/es/data-grid/modules/clipboard/version.d.ts +1 -0
  57. package/es/data-grid/modules/clipboard/version.js +2 -0
  58. package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnModelItem.d.ts +26 -0
  59. package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnModelItem.js +94 -0
  60. package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnToolPanel.d.ts +32 -0
  61. package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnToolPanel.js +272 -0
  62. package/es/data-grid/modules/column-tool-panel/columnToolPanel/modelItemUtils.d.ts +16 -0
  63. package/es/data-grid/modules/column-tool-panel/columnToolPanel/modelItemUtils.js +209 -0
  64. package/es/data-grid/modules/column-tool-panel/columnToolPanel/pivotModePanel.d.ts +9 -0
  65. package/es/data-grid/modules/column-tool-panel/columnToolPanel/pivotModePanel.js +68 -0
  66. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.d.ts +32 -0
  67. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.js +150 -0
  68. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.d.ts +44 -0
  69. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.js +455 -0
  70. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.d.ts +26 -0
  71. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.js +224 -0
  72. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.d.ts +24 -0
  73. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.js +123 -0
  74. package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.d.ts +37 -0
  75. package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.js +314 -0
  76. package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.d.ts +51 -0
  77. package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.js +406 -0
  78. package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.d.ts +24 -0
  79. package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.js +264 -0
  80. package/es/data-grid/modules/column-tool-panel/columnsToolPanelModule.d.ts +2 -0
  81. package/es/data-grid/modules/column-tool-panel/columnsToolPanelModule.js +29 -0
  82. package/es/data-grid/modules/column-tool-panel/main.d.ts +2 -0
  83. package/es/data-grid/modules/column-tool-panel/main.js +3 -0
  84. package/es/data-grid/modules/column-tool-panel/version.d.ts +1 -0
  85. package/es/data-grid/modules/column-tool-panel/version.js +2 -0
  86. package/es/data-grid/modules/master-detail/main.d.ts +1 -0
  87. package/es/data-grid/modules/master-detail/main.js +1 -0
  88. package/es/data-grid/modules/master-detail/masterDetail/detailCellRenderer.d.ts +14 -0
  89. package/es/data-grid/modules/master-detail/masterDetail/detailCellRenderer.js +144 -0
  90. package/es/data-grid/modules/master-detail/masterDetail/detailCellRendererCtrl.d.ts +19 -0
  91. package/es/data-grid/modules/master-detail/masterDetail/detailCellRendererCtrl.js +203 -0
  92. package/es/data-grid/modules/master-detail/masterDetailModule.d.ts +2 -0
  93. package/es/data-grid/modules/master-detail/masterDetailModule.js +18 -0
  94. package/es/data-grid/modules/master-detail/version.d.ts +1 -0
  95. package/es/data-grid/modules/master-detail/version.js +2 -0
  96. package/es/data-grid/modules/menu/main.d.ts +1 -0
  97. package/es/data-grid/modules/menu/main.js +1 -0
  98. package/es/data-grid/modules/menu/menu/chartMenuItemMapper.d.ts +13 -0
  99. package/es/data-grid/modules/menu/menu/chartMenuItemMapper.js +351 -0
  100. package/es/data-grid/modules/menu/menu/contextMenu.d.ts +13 -0
  101. package/es/data-grid/modules/menu/menu/contextMenu.js +267 -0
  102. package/es/data-grid/modules/menu/menu/enterpriseMenu.d.ts +66 -0
  103. package/es/data-grid/modules/menu/menu/enterpriseMenu.js +592 -0
  104. package/es/data-grid/modules/menu/menu/menuItemMapper.d.ts +13 -0
  105. package/es/data-grid/modules/menu/menu/menuItemMapper.js +328 -0
  106. package/es/data-grid/modules/menu/menuModule.d.ts +2 -0
  107. package/es/data-grid/modules/menu/menuModule.js +12 -0
  108. package/es/data-grid/modules/menu/version.d.ts +1 -0
  109. package/es/data-grid/modules/menu/version.js +2 -0
  110. package/es/data-grid/modules/row-grouping/main.d.ts +4 -0
  111. package/es/data-grid/modules/row-grouping/main.js +4 -0
  112. package/es/data-grid/modules/row-grouping/rowGrouping/aggFuncService.d.ts +23 -0
  113. package/es/data-grid/modules/row-grouping/rowGrouping/aggFuncService.js +250 -0
  114. package/es/data-grid/modules/row-grouping/rowGrouping/aggregationStage.d.ts +22 -0
  115. package/es/data-grid/modules/row-grouping/rowGrouping/aggregationStage.js +285 -0
  116. package/es/data-grid/modules/row-grouping/rowGrouping/batchRemover.d.ts +12 -0
  117. package/es/data-grid/modules/row-grouping/rowGrouping/batchRemover.js +77 -0
  118. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.d.ts +75 -0
  119. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.js +516 -0
  120. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.d.ts +40 -0
  121. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.js +367 -0
  122. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.d.ts +11 -0
  123. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.js +85 -0
  124. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.d.ts +17 -0
  125. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.js +139 -0
  126. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.d.ts +15 -0
  127. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.js +105 -0
  128. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.d.ts +15 -0
  129. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.js +105 -0
  130. package/es/data-grid/modules/row-grouping/rowGrouping/filterAggregatesStage.d.ts +9 -0
  131. package/es/data-grid/modules/row-grouping/rowGrouping/filterAggregatesStage.js +136 -0
  132. package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFilter.d.ts +39 -0
  133. package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFilter.js +319 -0
  134. package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFloatingFilter.d.ts +23 -0
  135. package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFloatingFilter.js +163 -0
  136. package/es/data-grid/modules/row-grouping/rowGrouping/groupStage.d.ts +48 -0
  137. package/es/data-grid/modules/row-grouping/rowGrouping/groupStage.js +740 -0
  138. package/es/data-grid/modules/row-grouping/rowGrouping/pivotColDefService.d.ts +24 -0
  139. package/es/data-grid/modules/row-grouping/rowGrouping/pivotColDefService.js +396 -0
  140. package/es/data-grid/modules/row-grouping/rowGrouping/pivotStage.d.ts +19 -0
  141. package/es/data-grid/modules/row-grouping/rowGrouping/pivotStage.js +182 -0
  142. package/es/data-grid/modules/row-grouping/rowGroupingModule.d.ts +2 -0
  143. package/es/data-grid/modules/row-grouping/rowGroupingModule.js +28 -0
  144. package/es/data-grid/modules/row-grouping/version.d.ts +1 -0
  145. package/es/data-grid/modules/row-grouping/version.js +2 -0
  146. package/es/data-grid/modules/side-bar/main.d.ts +2 -0
  147. package/es/data-grid/modules/side-bar/main.js +2 -0
  148. package/es/data-grid/modules/side-bar/sideBar/common/toolPanelColDefService.d.ts +11 -0
  149. package/es/data-grid/modules/side-bar/sideBar/common/toolPanelColDefService.js +216 -0
  150. package/es/data-grid/modules/side-bar/sideBar/horizontalResizeComp.d.ts +19 -0
  151. package/es/data-grid/modules/side-bar/sideBar/horizontalResizeComp.js +108 -0
  152. package/es/data-grid/modules/side-bar/sideBar/sideBarButtonComp.d.ts +16 -0
  153. package/es/data-grid/modules/side-bar/sideBar/sideBarButtonComp.js +84 -0
  154. package/es/data-grid/modules/side-bar/sideBar/sideBarButtonsComp.d.ts +18 -0
  155. package/es/data-grid/modules/side-bar/sideBar/sideBarButtonsComp.js +89 -0
  156. package/es/data-grid/modules/side-bar/sideBar/sideBarComp.d.ts +28 -0
  157. package/es/data-grid/modules/side-bar/sideBar/sideBarComp.js +325 -0
  158. package/es/data-grid/modules/side-bar/sideBar/sideBarDefParser.d.ts +10 -0
  159. package/es/data-grid/modules/side-bar/sideBar/sideBarDefParser.js +95 -0
  160. package/es/data-grid/modules/side-bar/sideBar/toolPanelWrapper.d.ts +17 -0
  161. package/es/data-grid/modules/side-bar/sideBar/toolPanelWrapper.js +103 -0
  162. package/es/data-grid/modules/side-bar/sideBarModule.d.ts +2 -0
  163. package/es/data-grid/modules/side-bar/sideBarModule.js +22 -0
  164. package/es/data-grid/modules/side-bar/version.d.ts +1 -0
  165. package/es/data-grid/modules/side-bar/version.js +2 -0
  166. package/es/data-grid/renderer/actions-renderer.d.ts +3 -0
  167. package/es/data-grid/renderer/actions-renderer.js +50 -0
  168. package/es/data-grid/renderer/actions.d.ts +11 -0
  169. package/es/data-grid/renderer/actions.js +72 -0
  170. package/es/data-grid/renderer/cell-delete-renderer.d.ts +5 -0
  171. package/es/data-grid/renderer/cell-delete-renderer.js +49 -0
  172. package/es/data-grid/renderer/cell-index-renderer.d.ts +4 -0
  173. package/es/data-grid/renderer/cell-index-renderer.js +43 -0
  174. package/es/data-grid/renderer/cell-renderer.d.ts +4 -0
  175. package/es/data-grid/renderer/cell-renderer.js +58 -0
  176. package/es/data-grid/renderer/detali-cell-renderer.d.ts +9 -0
  177. package/es/data-grid/renderer/detali-cell-renderer.js +59 -0
  178. package/es/data-grid/renderer/header-renderer.d.ts +6 -0
  179. package/es/data-grid/renderer/header-renderer.js +98 -0
  180. package/es/data-grid/typings.d.ts +226 -0
  181. package/es/data-grid/typings.js +1 -0
  182. package/es/data-grid/utils.d.ts +51 -0
  183. package/es/data-grid/utils.js +293 -0
  184. package/es/dropdown/index.d.ts +14 -0
  185. package/es/dropdown/index.js +42 -0
  186. package/es/dropdown/index.less +5 -0
  187. package/es/{DurationPicker → duration-picker}/index.d.ts +12 -9
  188. package/es/duration-picker/index.js +204 -0
  189. package/es/duration-picker/index.less +12 -0
  190. package/es/{EditableTable/EditableCell.d.ts → editable-table/editable-cell.d.ts} +1 -1
  191. package/es/editable-table/editable-cell.js +41 -0
  192. package/es/{EditableTable/EditableTableFormItem.d.ts → editable-table/editable-table-form-item.d.ts} +1 -1
  193. package/es/{EditableTable/EditableTableFormItem.js → editable-table/editable-table-form-item.js} +3 -5
  194. package/es/{EditableTable → editable-table}/index.d.ts +3 -3
  195. package/es/editable-table/index.js +8 -0
  196. package/es/{EditableTable/Table.d.ts → editable-table/table.d.ts} +1 -1
  197. package/es/{EditableTable/Table.js → editable-table/table.js} +27 -22
  198. package/es/{EditableTable → editable-table}/typings.d.ts +2 -2
  199. package/es/editable-table/util.js +311 -0
  200. package/es/empty-image/index.d.ts +2 -0
  201. package/es/empty-image/index.js +78 -0
  202. package/es/{Filter → filter}/index.d.ts +3 -3
  203. package/es/filter/index.js +615 -0
  204. package/es/{Filter → filter}/index.less +5 -5
  205. package/es/filter/typings.d.ts +70 -0
  206. package/es/{FormLayout → form-layout}/index.d.ts +5 -0
  207. package/es/form-layout/index.js +48 -0
  208. package/es/{FormLayout → form-layout}/index.less +21 -8
  209. package/es/grey-panel/index.d.ts +6 -0
  210. package/es/grey-panel/index.js +15 -0
  211. package/es/grey-panel/index.less +11 -0
  212. package/es/icons/add.d.ts +6 -0
  213. package/es/icons/add.js +39 -0
  214. package/es/{Icons/BigTip → icons/big-tip}/index.d.ts +1 -1
  215. package/es/{Icons/BigTip → icons/big-tip}/index.js +6 -8
  216. package/es/{Icons/Down.d.ts → icons/calendar.d.ts} +1 -1
  217. package/es/icons/calendar.js +35 -0
  218. package/es/icons/clear.d.ts +3 -0
  219. package/es/icons/clear.js +18 -0
  220. package/es/icons/clock.d.ts +5 -0
  221. package/es/icons/clock.js +27 -0
  222. package/es/icons/close-light.d.ts +5 -0
  223. package/es/icons/close-light.js +31 -0
  224. package/es/{Icons/Close.d.ts → icons/close.d.ts} +1 -1
  225. package/es/icons/close.js +22 -0
  226. package/es/{Icons/CollapseUp.d.ts → icons/collapse-up.d.ts} +1 -1
  227. package/es/icons/collapse-up.js +24 -0
  228. package/es/{Icons/Search.d.ts → icons/dark-search.d.ts} +1 -1
  229. package/es/{Icons/DarkSearch.js → icons/dark-search.js} +3 -5
  230. package/es/icons/delete.d.ts +3 -0
  231. package/es/icons/delete.js +37 -0
  232. package/es/icons/down.d.ts +3 -0
  233. package/es/icons/down.js +18 -0
  234. package/es/icons/drag/drag.svg +7 -0
  235. package/es/icons/drag/index.d.ts +3 -0
  236. package/es/icons/drag/index.js +31 -0
  237. package/es/{Icons/Empty.d.ts → icons/empty.d.ts} +1 -0
  238. package/es/icons/index.d.ts +45 -0
  239. package/es/icons/index.js +45 -0
  240. package/es/{Icons/LookUp.d.ts → icons/look-up.d.ts} +1 -1
  241. package/es/{Icons/LookUp.js → icons/look-up.js} +3 -5
  242. package/es/icons/more.d.ts +3 -0
  243. package/es/icons/more.js +37 -0
  244. package/es/icons/new-tag.d.ts +3 -0
  245. package/es/icons/new-tag.js +19 -0
  246. package/es/icons/plus/index.d.ts +3 -0
  247. package/es/icons/plus/index.js +27 -0
  248. package/es/icons/plus/plus.svg +6 -0
  249. package/es/icons/question.d.ts +3 -0
  250. package/es/icons/question.js +18 -0
  251. package/es/icons/reload.d.ts +3 -0
  252. package/es/icons/reload.js +18 -0
  253. package/es/icons/search.d.ts +3 -0
  254. package/es/icons/search.js +18 -0
  255. package/es/icons/tip.d.ts +5 -0
  256. package/es/{Icons/Tip.js → icons/tip.js} +64 -75
  257. package/es/index.d.ts +43 -32
  258. package/es/index.js +36 -28
  259. package/es/input-compact/index.d.ts +11 -0
  260. package/es/input-compact/index.js +63 -0
  261. package/es/input-compact/index.less +33 -0
  262. package/es/input-number/index.d.ts +8 -0
  263. package/es/input-number/index.js +35 -0
  264. package/es/input-number/index.less +58 -0
  265. package/es/{Layout → layout}/index.d.ts +26 -8
  266. package/es/layout/index.js +253 -0
  267. package/es/{Layout → layout}/index.less +43 -25
  268. package/es/{PageLoading → page-loading}/index.d.ts +2 -1
  269. package/es/{PageLoading → page-loading}/index.js +5 -3
  270. package/es/popup/index.d.ts +80 -0
  271. package/es/popup/index.js +260 -0
  272. package/es/popup/index.less +34 -0
  273. package/es/portal/index.d.ts +18 -0
  274. package/es/{Portal → portal}/index.js +48 -14
  275. package/es/{Section → section}/index.d.ts +10 -2
  276. package/es/section/index.js +99 -0
  277. package/es/{Section → section}/index.less +22 -6
  278. package/es/{Section/TabBar.d.ts → section/tab-bar.d.ts} +2 -1
  279. package/es/{Section/TabBar.js → section/tab-bar.js} +6 -3
  280. package/es/select-panel/index.d.ts +17 -0
  281. package/es/select-panel/index.js +63 -0
  282. package/es/select-panel/index.less +112 -0
  283. package/es/select-view/index.d.ts +63 -0
  284. package/es/select-view/index.js +269 -0
  285. package/es/select-view/index.less +57 -0
  286. package/es/{SiderTree → sider-tree}/index.d.ts +6 -12
  287. package/es/{SiderTree → sider-tree}/index.js +58 -82
  288. package/es/sider-tree/index.less +151 -0
  289. package/es/{SiderTree/TreeNodeTitle.js → sider-tree/tree-node-title.js} +13 -10
  290. package/es/{SiderTree → sider-tree}/typings.d.ts +2 -2
  291. package/es/state/index.d.ts +8 -0
  292. package/es/state/index.js +20 -0
  293. package/es/state/index.less +131 -0
  294. package/es/styles/empty.png +0 -0
  295. package/es/styles/index.less +28 -0
  296. package/es/styles/overrides.less +347 -0
  297. package/es/styles/theme.less +29 -0
  298. package/es/{utils.less → styles/utils.less} +18 -18
  299. package/es/symbol-icon/index.js +30 -0
  300. package/es/{TabBar → tab-bar}/index.d.ts +2 -3
  301. package/es/tab-bar/index.js +31 -0
  302. package/es/tab-bar/index.less +5 -0
  303. package/es/table/index.js +201 -0
  304. package/es/{Table → table}/typings.d.ts +2 -3
  305. package/es/{Table → table}/utils.d.ts +1 -1
  306. package/es/tip-mark/index.d.ts +8 -0
  307. package/es/tip-mark/index.js +44 -0
  308. package/es/utils.d.ts +2 -1
  309. package/es/utils.js +10 -2
  310. package/package.json +43 -21
  311. package/README.md +0 -11
  312. package/es/Dropdown/index.d.ts +0 -15
  313. package/es/Dropdown/index.js +0 -45
  314. package/es/Dropdown/index.less +0 -13
  315. package/es/DurationPicker/index.js +0 -174
  316. package/es/DurationPicker/index.less +0 -61
  317. package/es/EditableTable/EditableCell.js +0 -41
  318. package/es/EditableTable/index.js +0 -8
  319. package/es/EditableTable/util.js +0 -311
  320. package/es/Filter/index.js +0 -555
  321. package/es/Filter/typings.d.ts +0 -37
  322. package/es/FormHorizontal/index.d.ts +0 -6
  323. package/es/FormHorizontal/index.js +0 -30
  324. package/es/FormHorizontal/index.less +0 -14
  325. package/es/FormInline/index.d.ts +0 -15
  326. package/es/FormInline/index.js +0 -74
  327. package/es/FormInline/index.less +0 -26
  328. package/es/FormLayout/index.js +0 -36
  329. package/es/FormTable/index.d.ts +0 -6
  330. package/es/FormTable/index.js +0 -125
  331. package/es/FormTable/index.less +0 -11
  332. package/es/FormTable/typings.d.ts +0 -38
  333. package/es/Icons/Calendar.d.ts +0 -5
  334. package/es/Icons/Calendar.js +0 -42
  335. package/es/Icons/Close.js +0 -24
  336. package/es/Icons/CollapseUp.js +0 -26
  337. package/es/Icons/DarkSearch.d.ts +0 -5
  338. package/es/Icons/Down.js +0 -30
  339. package/es/Icons/More.d.ts +0 -5
  340. package/es/Icons/More.js +0 -39
  341. package/es/Icons/Search.js +0 -30
  342. package/es/Icons/Tip.d.ts +0 -6
  343. package/es/Icons/index.d.ts +0 -24
  344. package/es/Icons/index.js +0 -25
  345. package/es/InputMaxLength/index.d.ts +0 -14
  346. package/es/InputMaxLength/index.js +0 -72
  347. package/es/InputMaxLength/index.less +0 -8
  348. package/es/Layout/index.js +0 -184
  349. package/es/MainFramework/components/DropMenu/index.d.ts +0 -11
  350. package/es/MainFramework/components/DropMenu/index.js +0 -93
  351. package/es/MainFramework/components/DropMenu/index.less +0 -59
  352. package/es/MainFramework/components/Menu/index.d.ts +0 -10
  353. package/es/MainFramework/components/Menu/index.js +0 -603
  354. package/es/MainFramework/components/Menu/index.less +0 -445
  355. package/es/MainFramework/components/RefreshButton/index.d.ts +0 -6
  356. package/es/MainFramework/components/RefreshButton/index.js +0 -63
  357. package/es/MainFramework/components/RefreshButton/index.less +0 -30
  358. package/es/MainFramework/components/TabBar/index.d.ts +0 -10
  359. package/es/MainFramework/components/TabBar/index.js +0 -101
  360. package/es/MainFramework/components/TabBar/index.less +0 -155
  361. package/es/MainFramework/components/WaterMark/index.d.ts +0 -6
  362. package/es/MainFramework/components/WaterMark/index.js +0 -65
  363. package/es/MainFramework/index.d.ts +0 -28
  364. package/es/MainFramework/index.js +0 -78
  365. package/es/MainFramework/index.less +0 -97
  366. package/es/MainFramework/typings.d.ts +0 -10
  367. package/es/Popup/index.d.ts +0 -39
  368. package/es/Popup/index.js +0 -180
  369. package/es/Popup/index.less +0 -12
  370. package/es/Portal/index.d.ts +0 -17
  371. package/es/Section/index.js +0 -90
  372. package/es/SelectView/index.d.ts +0 -56
  373. package/es/SelectView/index.js +0 -227
  374. package/es/SelectView/index.less +0 -60
  375. package/es/SiderTree/index.less +0 -222
  376. package/es/SymbolIcon/index.js +0 -27
  377. package/es/TabBar/index.js +0 -42
  378. package/es/TabBar/index.less +0 -31
  379. package/es/Table/index.js +0 -205
  380. package/es/TipMark/index.d.ts +0 -10
  381. package/es/TipMark/index.js +0 -35
  382. package/es/TipMark/index.less +0 -6
  383. package/es/index.less +0 -26
  384. package/es/init.d.ts +0 -3
  385. package/es/init.js +0 -134
  386. package/es/overrides.less +0 -183
  387. package/es/theme.less +0 -9
  388. /package/es/{BaseTable/Actions.d.ts → base-table/actions.d.ts} +0 -0
  389. /package/es/{BaseTable/BaseTableContext.d.ts → base-table/base-table-context.d.ts} +0 -0
  390. /package/es/{BaseTable/BaseTableContext.js → base-table/base-table-context.js} +0 -0
  391. /package/es/{BaseTable → base-table}/empty.png +0 -0
  392. /package/es/{BaseTable → base-table}/index.less +0 -0
  393. /package/es/{BaseTable/ResizeHeaderCell.d.ts → base-table/resize-header-cell.d.ts} +0 -0
  394. /package/es/{BaseTable → base-table}/typings.d.ts +0 -0
  395. /package/es/{BaseTable → base-table}/utils.js +0 -0
  396. /package/es/{BaseTable/VirtualBody.d.ts → base-table/virtual-body.d.ts} +0 -0
  397. /package/es/{ColorPicker → color-picker}/index.d.ts +0 -0
  398. /package/es/{EditableTable → editable-table}/index.less +0 -0
  399. /package/es/{EditableTable → editable-table}/util.d.ts +0 -0
  400. /package/es/{Icons/BigTip → icons/big-tip}/error.png +0 -0
  401. /package/es/{Icons/BigTip → icons/big-tip}/info.png +0 -0
  402. /package/es/{Icons/BigTip → icons/big-tip}/success.png +0 -0
  403. /package/es/{Icons/BigTip → icons/big-tip}/warning.png +0 -0
  404. /package/es/{Icons/Empty.js → icons/empty.js} +0 -0
  405. /package/es/{PageLoading → page-loading}/index.less +0 -0
  406. /package/es/{SiderTree → sider-tree}/empty.png +0 -0
  407. /package/es/{SiderTree/TreeNodeTitle.d.ts → sider-tree/tree-node-title.d.ts} +0 -0
  408. /package/es/{SymbolIcon → symbol-icon}/index.d.ts +0 -0
  409. /package/es/{SymbolIcon → symbol-icon}/index.less +0 -0
  410. /package/es/{Table → table}/index.d.ts +0 -0
  411. /package/es/{Table → table}/utils.js +0 -0
@@ -0,0 +1,314 @@
1
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2
+ 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, _toPropertyKey(descriptor.key), descriptor); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
+ function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
7
+ function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
8
+ 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); }
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
+ 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); }; }
11
+ 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); }
12
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
13
+ 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; } }
14
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
15
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
16
+ var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
17
+ var c = arguments.length,
18
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
19
+ d;
20
+ 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--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ import { _, AgCheckbox, Autowired, Column, Component, CssClassApplier, DragAndDropService, DragSourceType, Events, KeyCode, PostConstruct, RefSelector } from "@ag-grid-community/core";
24
+ import { ToolPanelContextMenu } from "./toolPanelContextMenu";
25
+ export var ToolPanelColumnComp = /*#__PURE__*/function (_Component) {
26
+ _inherits(ToolPanelColumnComp, _Component);
27
+ var _super = _createSuper(ToolPanelColumnComp);
28
+ function ToolPanelColumnComp(column, columnDept, allowDragging, groupsExist, focusWrapper) {
29
+ var _this;
30
+ _classCallCheck(this, ToolPanelColumnComp);
31
+ _this = _super.call(this);
32
+ _this.column = column;
33
+ _this.columnDept = columnDept;
34
+ _this.allowDragging = allowDragging;
35
+ _this.groupsExist = groupsExist;
36
+ _this.focusWrapper = focusWrapper;
37
+ _this.processingColumnStateChange = false;
38
+ return _this;
39
+ }
40
+ _createClass(ToolPanelColumnComp, [{
41
+ key: "init",
42
+ value: function init() {
43
+ var _this2 = this;
44
+ this.setTemplate(ToolPanelColumnComp.TEMPLATE);
45
+ this.eDragHandle = _.createIconNoSpan('columnDrag', this.gridOptionsService);
46
+ this.eDragHandle.classList.add('ag-drag-handle', 'ag-column-select-column-drag-handle');
47
+ var checkboxGui = this.cbSelect.getGui();
48
+ var checkboxInput = this.cbSelect.getInputElement();
49
+ checkboxGui.insertAdjacentElement('afterend', this.eDragHandle);
50
+ checkboxInput.setAttribute('tabindex', '-1');
51
+ this.displayName = this.columnModel.getDisplayNameForColumn(this.column, 'columnToolPanel');
52
+ var displayNameSanitised = _.escapeString(this.displayName);
53
+ this.eLabel.innerHTML = displayNameSanitised;
54
+ // if grouping, we add an extra level of indent, to cater for expand/contract icons we need to indent for
55
+ var indent = this.columnDept;
56
+ if (this.groupsExist) {
57
+ this.addCssClass('ag-column-select-add-group-indent');
58
+ }
59
+ this.addCssClass("ag-column-select-indent-".concat(indent));
60
+ this.setupDragging();
61
+ this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.onColumnStateChanged.bind(this));
62
+ this.addManagedListener(this.column, Column.EVENT_VALUE_CHANGED, this.onColumnStateChanged.bind(this));
63
+ this.addManagedListener(this.column, Column.EVENT_PIVOT_CHANGED, this.onColumnStateChanged.bind(this));
64
+ this.addManagedListener(this.column, Column.EVENT_ROW_GROUP_CHANGED, this.onColumnStateChanged.bind(this));
65
+ this.addManagedListener(this.column, Column.EVENT_VISIBLE_CHANGED, this.onColumnStateChanged.bind(this));
66
+ this.addManagedListener(this.focusWrapper, 'keydown', this.handleKeyDown.bind(this));
67
+ this.addManagedListener(this.focusWrapper, 'contextmenu', this.onContextMenu.bind(this));
68
+ this.addManagedPropertyListener('functionsReadOnly', this.onColumnStateChanged.bind(this));
69
+ this.addManagedListener(this.cbSelect, AgCheckbox.EVENT_CHANGED, this.onCheckboxChanged.bind(this));
70
+ this.addManagedListener(this.eLabel, 'click', this.onLabelClicked.bind(this));
71
+ this.onColumnStateChanged();
72
+ this.refreshAriaLabel();
73
+ this.setupTooltip();
74
+ var classes = CssClassApplier.getToolPanelClassesFromColDef(this.column.getColDef(), this.gridOptionsService, this.column, null);
75
+ classes.forEach(function (c) {
76
+ return _this2.addOrRemoveCssClass(c, true);
77
+ });
78
+ }
79
+ }, {
80
+ key: "getColumn",
81
+ value: function getColumn() {
82
+ return this.column;
83
+ }
84
+ }, {
85
+ key: "setupTooltip",
86
+ value: function setupTooltip() {
87
+ var _this3 = this;
88
+ var refresh = function refresh() {
89
+ var newTooltipText = _this3.column.getColDef().headerTooltip;
90
+ _this3.setTooltip(newTooltipText);
91
+ };
92
+ refresh();
93
+ this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, refresh);
94
+ }
95
+ }, {
96
+ key: "getTooltipParams",
97
+ value: function getTooltipParams() {
98
+ var res = _get(_getPrototypeOf(ToolPanelColumnComp.prototype), "getTooltipParams", this).call(this);
99
+ res.location = 'columnToolPanelColumn';
100
+ res.colDef = this.column.getColDef();
101
+ return res;
102
+ }
103
+ }, {
104
+ key: "onContextMenu",
105
+ value: function onContextMenu(e) {
106
+ var _this4 = this;
107
+ var column = this.column,
108
+ gridOptionsService = this.gridOptionsService;
109
+ if (gridOptionsService.is('functionsReadOnly')) {
110
+ return;
111
+ }
112
+ var contextMenu = this.createBean(new ToolPanelContextMenu(column, e, this.focusWrapper));
113
+ this.addDestroyFunc(function () {
114
+ if (contextMenu.isAlive()) {
115
+ _this4.destroyBean(contextMenu);
116
+ }
117
+ });
118
+ }
119
+ }, {
120
+ key: "handleKeyDown",
121
+ value: function handleKeyDown(e) {
122
+ if (e.key === KeyCode.SPACE) {
123
+ e.preventDefault();
124
+ if (this.isSelectable()) {
125
+ this.onSelectAllChanged(!this.isSelected());
126
+ }
127
+ }
128
+ }
129
+ }, {
130
+ key: "onLabelClicked",
131
+ value: function onLabelClicked() {
132
+ if (this.gridOptionsService.is('functionsReadOnly')) {
133
+ return;
134
+ }
135
+ var nextState = !this.cbSelect.getValue();
136
+ this.onChangeCommon(nextState);
137
+ }
138
+ }, {
139
+ key: "onCheckboxChanged",
140
+ value: function onCheckboxChanged(event) {
141
+ this.onChangeCommon(event.selected);
142
+ }
143
+ }, {
144
+ key: "onChangeCommon",
145
+ value: function onChangeCommon(nextState) {
146
+ // ignore lock visible columns
147
+ if (this.cbSelect.isReadOnly()) {
148
+ return;
149
+ }
150
+ this.refreshAriaLabel();
151
+ // only want to action if the user clicked the checkbox, not if we are setting the checkbox because
152
+ // of a change in the model
153
+ if (this.processingColumnStateChange) {
154
+ return;
155
+ }
156
+ this.modelItemUtils.setColumn(this.column, nextState, 'toolPanelUi');
157
+ }
158
+ }, {
159
+ key: "refreshAriaLabel",
160
+ value: function refreshAriaLabel() {
161
+ var translate = this.localeService.getLocaleTextFunc();
162
+ var columnLabel = translate('ariaColumn', 'Column');
163
+ var state = this.cbSelect.getValue() ? translate('ariaVisible', 'visible') : translate('ariaHidden', 'hidden');
164
+ var visibilityLabel = translate('ariaToggleVisibility', 'Press SPACE to toggle visibility');
165
+ _.setAriaLabel(this.focusWrapper, "".concat(this.displayName, " ").concat(columnLabel));
166
+ this.cbSelect.setInputAriaLabel("".concat(visibilityLabel, " (").concat(state, ")"));
167
+ _.setAriaDescribedBy(this.focusWrapper, this.cbSelect.getInputElement().id);
168
+ }
169
+ }, {
170
+ key: "setupDragging",
171
+ value: function setupDragging() {
172
+ var _this5 = this;
173
+ if (!this.allowDragging) {
174
+ _.setDisplayed(this.eDragHandle, false);
175
+ return;
176
+ }
177
+ var hideColumnOnExit = !this.gridOptionsService.is('suppressDragLeaveHidesColumns');
178
+ var dragSource = {
179
+ type: DragSourceType.ToolPanel,
180
+ eElement: this.eDragHandle,
181
+ dragItemName: this.displayName,
182
+ defaultIconName: hideColumnOnExit ? DragAndDropService.ICON_HIDE : DragAndDropService.ICON_NOT_ALLOWED,
183
+ getDragItem: function getDragItem() {
184
+ return _this5.createDragItem();
185
+ },
186
+ onDragStarted: function onDragStarted() {
187
+ var event = {
188
+ type: Events.EVENT_COLUMN_PANEL_ITEM_DRAG_START,
189
+ column: _this5.column
190
+ };
191
+ _this5.eventService.dispatchEvent(event);
192
+ },
193
+ onDragStopped: function onDragStopped() {
194
+ var event = {
195
+ type: Events.EVENT_COLUMN_PANEL_ITEM_DRAG_END
196
+ };
197
+ _this5.eventService.dispatchEvent(event);
198
+ },
199
+ onGridEnter: function onGridEnter() {
200
+ if (hideColumnOnExit) {
201
+ // when dragged into the grid, mimic what happens when checkbox is enabled
202
+ // this handles the behaviour for pivot which is different to just hiding a column.
203
+ _this5.onChangeCommon(true);
204
+ }
205
+ },
206
+ onGridExit: function onGridExit() {
207
+ if (hideColumnOnExit) {
208
+ // when dragged outside of the grid, mimic what happens when checkbox is disabled
209
+ // this handles the behaviour for pivot which is different to just hiding a column.
210
+ _this5.onChangeCommon(false);
211
+ }
212
+ }
213
+ };
214
+ this.dragAndDropService.addDragSource(dragSource, true);
215
+ this.addDestroyFunc(function () {
216
+ return _this5.dragAndDropService.removeDragSource(dragSource);
217
+ });
218
+ }
219
+ }, {
220
+ key: "createDragItem",
221
+ value: function createDragItem() {
222
+ var visibleState = {};
223
+ visibleState[this.column.getId()] = this.column.isVisible();
224
+ return {
225
+ columns: [this.column],
226
+ visibleState: visibleState
227
+ };
228
+ }
229
+ }, {
230
+ key: "onColumnStateChanged",
231
+ value: function onColumnStateChanged() {
232
+ this.processingColumnStateChange = true;
233
+ var isPivotMode = this.columnModel.isPivotMode();
234
+ if (isPivotMode) {
235
+ // if reducing, checkbox means column is one of pivot, value or group
236
+ var anyFunctionActive = this.column.isAnyFunctionActive();
237
+ this.cbSelect.setValue(anyFunctionActive);
238
+ } else {
239
+ // if not reducing, the checkbox tells us if column is visible or not
240
+ this.cbSelect.setValue(this.column.isVisible());
241
+ }
242
+ var canBeToggled = true;
243
+ var canBeDragged = true;
244
+ if (isPivotMode) {
245
+ // when in pivot mode, the item should be read only if:
246
+ // a) gui is not allowed make any changes
247
+ var functionsReadOnly = this.gridOptionsService.is('functionsReadOnly');
248
+ // b) column is not allow any functions on it
249
+ var noFunctionsAllowed = !this.column.isAnyFunctionAllowed();
250
+ canBeToggled = !functionsReadOnly && !noFunctionsAllowed;
251
+ canBeDragged = canBeToggled;
252
+ } else {
253
+ var _this$column$getColDe = this.column.getColDef(),
254
+ enableRowGroup = _this$column$getColDe.enableRowGroup,
255
+ enableValue = _this$column$getColDe.enableValue,
256
+ lockPosition = _this$column$getColDe.lockPosition,
257
+ suppressMovable = _this$column$getColDe.suppressMovable,
258
+ lockVisible = _this$column$getColDe.lockVisible;
259
+ var forceDraggable = !!enableRowGroup || !!enableValue;
260
+ var disableDraggable = !!lockPosition || !!suppressMovable;
261
+ canBeToggled = !lockVisible;
262
+ canBeDragged = forceDraggable || !disableDraggable;
263
+ }
264
+ this.cbSelect.setReadOnly(!canBeToggled);
265
+ this.eDragHandle.classList.toggle('ag-column-select-column-readonly', !canBeDragged);
266
+ this.addOrRemoveCssClass('ag-column-select-column-readonly', !canBeDragged && !canBeToggled);
267
+ var checkboxPassive = isPivotMode && this.gridOptionsService.is('functionsPassive');
268
+ this.cbSelect.setPassive(checkboxPassive);
269
+ this.processingColumnStateChange = false;
270
+ }
271
+ }, {
272
+ key: "getDisplayName",
273
+ value: function getDisplayName() {
274
+ return this.displayName;
275
+ }
276
+ }, {
277
+ key: "onSelectAllChanged",
278
+ value: function onSelectAllChanged(value) {
279
+ if (value !== this.cbSelect.getValue()) {
280
+ if (!this.cbSelect.isReadOnly()) {
281
+ this.cbSelect.toggle();
282
+ }
283
+ }
284
+ }
285
+ }, {
286
+ key: "isSelected",
287
+ value: function isSelected() {
288
+ return this.cbSelect.getValue();
289
+ }
290
+ }, {
291
+ key: "isSelectable",
292
+ value: function isSelectable() {
293
+ return !this.cbSelect.isReadOnly();
294
+ }
295
+ }, {
296
+ key: "isExpandable",
297
+ value: function isExpandable() {
298
+ return false;
299
+ }
300
+ }, {
301
+ key: "setExpanded",
302
+ value: function setExpanded(value) {
303
+ console.warn('AG Grid: can not expand a column item that does not represent a column group header');
304
+ }
305
+ }]);
306
+ return ToolPanelColumnComp;
307
+ }(Component);
308
+ ToolPanelColumnComp.TEMPLATE = "<div class=\"ag-column-select-column\" aria-hidden=\"true\">\n <ag-checkbox ref=\"cbSelect\" class=\"ag-column-select-checkbox\"></ag-checkbox>\n <span class=\"ag-column-select-column-label\" ref=\"eLabel\"></span>\n </div>";
309
+ __decorate([Autowired('columnModel')], ToolPanelColumnComp.prototype, "columnModel", void 0);
310
+ __decorate([Autowired('dragAndDropService')], ToolPanelColumnComp.prototype, "dragAndDropService", void 0);
311
+ __decorate([Autowired('modelItemUtils')], ToolPanelColumnComp.prototype, "modelItemUtils", void 0);
312
+ __decorate([RefSelector('eLabel')], ToolPanelColumnComp.prototype, "eLabel", void 0);
313
+ __decorate([RefSelector('cbSelect')], ToolPanelColumnComp.prototype, "cbSelect", void 0);
314
+ __decorate([PostConstruct], ToolPanelColumnComp.prototype, "init", null);
@@ -0,0 +1,51 @@
1
+ import { Column, ColumnEventType, Component, ITooltipParams, WithoutGridCommon } from "@ag-grid-community/core";
2
+ import { ColumnModelItem } from "./columnModelItem";
3
+ export declare class ToolPanelColumnGroupComp extends Component {
4
+ private readonly modelItem;
5
+ private readonly allowDragging;
6
+ private readonly eventType;
7
+ private readonly focusWrapper;
8
+ private static TEMPLATE;
9
+ private columnModel;
10
+ private dragAndDropService;
11
+ private modelItemUtils;
12
+ private cbSelect;
13
+ private eLabel;
14
+ private eGroupOpenedIcon;
15
+ private eGroupClosedIcon;
16
+ private eColumnGroupIcons;
17
+ private eDragHandle;
18
+ private readonly columnGroup;
19
+ private readonly columnDept;
20
+ private displayName;
21
+ private processingColumnStateChange;
22
+ constructor(modelItem: ColumnModelItem, allowDragging: boolean, eventType: ColumnEventType, focusWrapper: HTMLElement);
23
+ init(): void;
24
+ getColumns(): Column[];
25
+ private setupTooltip;
26
+ getTooltipParams(): WithoutGridCommon<ITooltipParams>;
27
+ private handleKeyDown;
28
+ private onContextMenu;
29
+ private addVisibilityListenersToAllChildren;
30
+ private setupDragging;
31
+ private createDragItem;
32
+ private setupExpandContract;
33
+ private onLabelClicked;
34
+ private onCheckboxChanged;
35
+ private getVisibleLeafColumns;
36
+ private onChangeCommon;
37
+ private refreshAriaLabel;
38
+ onColumnStateChanged(): void;
39
+ private workOutSelectedValue;
40
+ private workOutReadOnlyValue;
41
+ private isColumnChecked;
42
+ private onExpandOrContractClicked;
43
+ private onExpandChanged;
44
+ private setOpenClosedIcons;
45
+ private refreshAriaExpanded;
46
+ getDisplayName(): string | null;
47
+ onSelectAllChanged(value: boolean): void;
48
+ isSelected(): boolean | undefined;
49
+ isSelectable(): boolean;
50
+ setSelected(selected: boolean): void;
51
+ }