@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.
- package/es/{Actions → actions}/index.d.ts +8 -5
- package/es/{Actions → actions}/index.js +56 -39
- package/es/{Actions → actions}/index.less +5 -5
- package/es/alert/index.d.ts +3 -0
- package/es/alert/index.js +18 -0
- package/es/{BaseTable/Actions.js → base-table/actions.js} +13 -10
- package/es/{BaseTable → base-table}/index.d.ts +0 -1
- package/es/{BaseTable → base-table}/index.js +48 -22
- package/es/{BaseTable/ResizeHeaderCell.js → base-table/resize-header-cell.js} +3 -3
- package/es/{BaseTable → base-table}/utils.d.ts +1 -1
- package/es/{BaseTable/VirtualBody.js → base-table/virtual-body.js} +12 -13
- package/es/{ColorPicker → color-picker}/index.js +7 -7
- package/es/{ColorPicker → color-picker}/index.less +1 -1
- package/es/component-configure/index.d.ts +12 -0
- package/es/component-configure/index.js +4 -0
- package/es/data-grid/cell-editors/date.d.ts +19 -0
- package/es/data-grid/cell-editors/date.js +92 -0
- package/es/data-grid/cell-editors/number.d.ts +32 -0
- package/es/data-grid/cell-editors/number.js +120 -0
- package/es/data-grid/cell-editors/row.d.ts +23 -0
- package/es/data-grid/cell-editors/row.js +119 -0
- package/es/data-grid/cell-editors/select.d.ts +33 -0
- package/es/data-grid/cell-editors/select.js +102 -0
- package/es/data-grid/cell-editors/text.d.ts +10 -0
- package/es/data-grid/cell-editors/text.js +81 -0
- package/es/data-grid/cell-editors/utils.d.ts +10 -0
- package/es/data-grid/cell-editors/utils.js +45 -0
- package/es/data-grid/cell-editors/wrapper.d.ts +5 -0
- package/es/data-grid/cell-editors/wrapper.js +8 -0
- package/es/data-grid/components/custom-panel/drag-context.d.ts +4 -0
- package/es/data-grid/components/custom-panel/drag-context.js +3 -0
- package/es/data-grid/components/custom-panel/field-modal.d.ts +10 -0
- package/es/data-grid/components/custom-panel/field-modal.js +223 -0
- package/es/data-grid/components/custom-panel/index.d.ts +5 -0
- package/es/data-grid/components/custom-panel/index.js +321 -0
- package/es/data-grid/components/custom-panel/item.d.ts +14 -0
- package/es/data-grid/components/custom-panel/item.js +181 -0
- package/es/data-grid/components/custom-panel/typings.d.ts +25 -0
- package/es/data-grid/components/search.d.ts +4 -0
- package/es/data-grid/components/search.js +159 -0
- package/es/data-grid/components/selected.d.ts +7 -0
- package/es/data-grid/components/selected.js +24 -0
- package/es/data-grid/context/grid-store.d.ts +4 -0
- package/es/data-grid/context/grid-store.js +4 -0
- package/es/data-grid/hooks.d.ts +20 -0
- package/es/data-grid/hooks.js +71 -0
- package/es/data-grid/index.d.ts +102 -0
- package/es/data-grid/index.js +1684 -0
- package/es/data-grid/index.less +659 -0
- package/es/data-grid/modules/clipboard/clipboard/clipboardService.d.ts +62 -0
- package/es/data-grid/modules/clipboard/clipboard/clipboardService.js +1007 -0
- package/es/data-grid/modules/clipboard/clipboardModule.d.ts +2 -0
- package/es/data-grid/modules/clipboard/clipboardModule.js +10 -0
- package/es/data-grid/modules/clipboard/main.d.ts +1 -0
- package/es/data-grid/modules/clipboard/main.js +1 -0
- package/es/data-grid/modules/clipboard/version.d.ts +1 -0
- package/es/data-grid/modules/clipboard/version.js +2 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnModelItem.d.ts +26 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnModelItem.js +94 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnToolPanel.d.ts +32 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnToolPanel.js +272 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/modelItemUtils.d.ts +16 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/modelItemUtils.js +209 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/pivotModePanel.d.ts +9 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/pivotModePanel.js +68 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.d.ts +32 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.js +150 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.d.ts +44 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.js +455 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.d.ts +26 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.js +224 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.d.ts +24 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.js +123 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.d.ts +37 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.js +314 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.d.ts +51 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.js +406 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.d.ts +24 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.js +264 -0
- package/es/data-grid/modules/column-tool-panel/columnsToolPanelModule.d.ts +2 -0
- package/es/data-grid/modules/column-tool-panel/columnsToolPanelModule.js +29 -0
- package/es/data-grid/modules/column-tool-panel/main.d.ts +2 -0
- package/es/data-grid/modules/column-tool-panel/main.js +3 -0
- package/es/data-grid/modules/column-tool-panel/version.d.ts +1 -0
- package/es/data-grid/modules/column-tool-panel/version.js +2 -0
- package/es/data-grid/modules/master-detail/main.d.ts +1 -0
- package/es/data-grid/modules/master-detail/main.js +1 -0
- package/es/data-grid/modules/master-detail/masterDetail/detailCellRenderer.d.ts +14 -0
- package/es/data-grid/modules/master-detail/masterDetail/detailCellRenderer.js +144 -0
- package/es/data-grid/modules/master-detail/masterDetail/detailCellRendererCtrl.d.ts +19 -0
- package/es/data-grid/modules/master-detail/masterDetail/detailCellRendererCtrl.js +203 -0
- package/es/data-grid/modules/master-detail/masterDetailModule.d.ts +2 -0
- package/es/data-grid/modules/master-detail/masterDetailModule.js +18 -0
- package/es/data-grid/modules/master-detail/version.d.ts +1 -0
- package/es/data-grid/modules/master-detail/version.js +2 -0
- package/es/data-grid/modules/menu/main.d.ts +1 -0
- package/es/data-grid/modules/menu/main.js +1 -0
- package/es/data-grid/modules/menu/menu/chartMenuItemMapper.d.ts +13 -0
- package/es/data-grid/modules/menu/menu/chartMenuItemMapper.js +351 -0
- package/es/data-grid/modules/menu/menu/contextMenu.d.ts +13 -0
- package/es/data-grid/modules/menu/menu/contextMenu.js +267 -0
- package/es/data-grid/modules/menu/menu/enterpriseMenu.d.ts +66 -0
- package/es/data-grid/modules/menu/menu/enterpriseMenu.js +592 -0
- package/es/data-grid/modules/menu/menu/menuItemMapper.d.ts +13 -0
- package/es/data-grid/modules/menu/menu/menuItemMapper.js +328 -0
- package/es/data-grid/modules/menu/menuModule.d.ts +2 -0
- package/es/data-grid/modules/menu/menuModule.js +12 -0
- package/es/data-grid/modules/menu/version.d.ts +1 -0
- package/es/data-grid/modules/menu/version.js +2 -0
- package/es/data-grid/modules/row-grouping/main.d.ts +4 -0
- package/es/data-grid/modules/row-grouping/main.js +4 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/aggFuncService.d.ts +23 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/aggFuncService.js +250 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/aggregationStage.d.ts +22 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/aggregationStage.js +285 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/batchRemover.d.ts +12 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/batchRemover.js +77 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.d.ts +75 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.js +516 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.d.ts +40 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.js +367 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.d.ts +11 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.js +85 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.d.ts +17 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.js +139 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.d.ts +15 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.js +105 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.d.ts +15 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.js +105 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/filterAggregatesStage.d.ts +9 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/filterAggregatesStage.js +136 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFilter.d.ts +39 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFilter.js +319 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFloatingFilter.d.ts +23 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFloatingFilter.js +163 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/groupStage.d.ts +48 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/groupStage.js +740 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/pivotColDefService.d.ts +24 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/pivotColDefService.js +396 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/pivotStage.d.ts +19 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/pivotStage.js +182 -0
- package/es/data-grid/modules/row-grouping/rowGroupingModule.d.ts +2 -0
- package/es/data-grid/modules/row-grouping/rowGroupingModule.js +28 -0
- package/es/data-grid/modules/row-grouping/version.d.ts +1 -0
- package/es/data-grid/modules/row-grouping/version.js +2 -0
- package/es/data-grid/modules/side-bar/main.d.ts +2 -0
- package/es/data-grid/modules/side-bar/main.js +2 -0
- package/es/data-grid/modules/side-bar/sideBar/common/toolPanelColDefService.d.ts +11 -0
- package/es/data-grid/modules/side-bar/sideBar/common/toolPanelColDefService.js +216 -0
- package/es/data-grid/modules/side-bar/sideBar/horizontalResizeComp.d.ts +19 -0
- package/es/data-grid/modules/side-bar/sideBar/horizontalResizeComp.js +108 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarButtonComp.d.ts +16 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarButtonComp.js +84 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarButtonsComp.d.ts +18 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarButtonsComp.js +89 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarComp.d.ts +28 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarComp.js +325 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarDefParser.d.ts +10 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarDefParser.js +95 -0
- package/es/data-grid/modules/side-bar/sideBar/toolPanelWrapper.d.ts +17 -0
- package/es/data-grid/modules/side-bar/sideBar/toolPanelWrapper.js +103 -0
- package/es/data-grid/modules/side-bar/sideBarModule.d.ts +2 -0
- package/es/data-grid/modules/side-bar/sideBarModule.js +22 -0
- package/es/data-grid/modules/side-bar/version.d.ts +1 -0
- package/es/data-grid/modules/side-bar/version.js +2 -0
- package/es/data-grid/renderer/actions-renderer.d.ts +3 -0
- package/es/data-grid/renderer/actions-renderer.js +50 -0
- package/es/data-grid/renderer/actions.d.ts +11 -0
- package/es/data-grid/renderer/actions.js +72 -0
- package/es/data-grid/renderer/cell-delete-renderer.d.ts +5 -0
- package/es/data-grid/renderer/cell-delete-renderer.js +49 -0
- package/es/data-grid/renderer/cell-index-renderer.d.ts +4 -0
- package/es/data-grid/renderer/cell-index-renderer.js +43 -0
- package/es/data-grid/renderer/cell-renderer.d.ts +4 -0
- package/es/data-grid/renderer/cell-renderer.js +58 -0
- package/es/data-grid/renderer/detali-cell-renderer.d.ts +9 -0
- package/es/data-grid/renderer/detali-cell-renderer.js +59 -0
- package/es/data-grid/renderer/header-renderer.d.ts +6 -0
- package/es/data-grid/renderer/header-renderer.js +98 -0
- package/es/data-grid/typings.d.ts +226 -0
- package/es/data-grid/typings.js +1 -0
- package/es/data-grid/utils.d.ts +51 -0
- package/es/data-grid/utils.js +293 -0
- package/es/dropdown/index.d.ts +14 -0
- package/es/dropdown/index.js +42 -0
- package/es/dropdown/index.less +5 -0
- package/es/{DurationPicker → duration-picker}/index.d.ts +12 -9
- package/es/duration-picker/index.js +204 -0
- package/es/duration-picker/index.less +12 -0
- package/es/{EditableTable/EditableCell.d.ts → editable-table/editable-cell.d.ts} +1 -1
- package/es/editable-table/editable-cell.js +41 -0
- package/es/{EditableTable/EditableTableFormItem.d.ts → editable-table/editable-table-form-item.d.ts} +1 -1
- package/es/{EditableTable/EditableTableFormItem.js → editable-table/editable-table-form-item.js} +3 -5
- package/es/{EditableTable → editable-table}/index.d.ts +3 -3
- package/es/editable-table/index.js +8 -0
- package/es/{EditableTable/Table.d.ts → editable-table/table.d.ts} +1 -1
- package/es/{EditableTable/Table.js → editable-table/table.js} +27 -22
- package/es/{EditableTable → editable-table}/typings.d.ts +2 -2
- package/es/editable-table/util.js +311 -0
- package/es/empty-image/index.d.ts +2 -0
- package/es/empty-image/index.js +78 -0
- package/es/{Filter → filter}/index.d.ts +3 -3
- package/es/filter/index.js +615 -0
- package/es/{Filter → filter}/index.less +5 -5
- package/es/filter/typings.d.ts +70 -0
- package/es/{FormLayout → form-layout}/index.d.ts +5 -0
- package/es/form-layout/index.js +48 -0
- package/es/{FormLayout → form-layout}/index.less +21 -8
- package/es/grey-panel/index.d.ts +6 -0
- package/es/grey-panel/index.js +15 -0
- package/es/grey-panel/index.less +11 -0
- package/es/icons/add.d.ts +6 -0
- package/es/icons/add.js +39 -0
- package/es/{Icons/BigTip → icons/big-tip}/index.d.ts +1 -1
- package/es/{Icons/BigTip → icons/big-tip}/index.js +6 -8
- package/es/{Icons/Down.d.ts → icons/calendar.d.ts} +1 -1
- package/es/icons/calendar.js +35 -0
- package/es/icons/clear.d.ts +3 -0
- package/es/icons/clear.js +18 -0
- package/es/icons/clock.d.ts +5 -0
- package/es/icons/clock.js +27 -0
- package/es/icons/close-light.d.ts +5 -0
- package/es/icons/close-light.js +31 -0
- package/es/{Icons/Close.d.ts → icons/close.d.ts} +1 -1
- package/es/icons/close.js +22 -0
- package/es/{Icons/CollapseUp.d.ts → icons/collapse-up.d.ts} +1 -1
- package/es/icons/collapse-up.js +24 -0
- package/es/{Icons/Search.d.ts → icons/dark-search.d.ts} +1 -1
- package/es/{Icons/DarkSearch.js → icons/dark-search.js} +3 -5
- package/es/icons/delete.d.ts +3 -0
- package/es/icons/delete.js +37 -0
- package/es/icons/down.d.ts +3 -0
- package/es/icons/down.js +18 -0
- package/es/icons/drag/drag.svg +7 -0
- package/es/icons/drag/index.d.ts +3 -0
- package/es/icons/drag/index.js +31 -0
- package/es/{Icons/Empty.d.ts → icons/empty.d.ts} +1 -0
- package/es/icons/index.d.ts +45 -0
- package/es/icons/index.js +45 -0
- package/es/{Icons/LookUp.d.ts → icons/look-up.d.ts} +1 -1
- package/es/{Icons/LookUp.js → icons/look-up.js} +3 -5
- package/es/icons/more.d.ts +3 -0
- package/es/icons/more.js +37 -0
- package/es/icons/new-tag.d.ts +3 -0
- package/es/icons/new-tag.js +19 -0
- package/es/icons/plus/index.d.ts +3 -0
- package/es/icons/plus/index.js +27 -0
- package/es/icons/plus/plus.svg +6 -0
- package/es/icons/question.d.ts +3 -0
- package/es/icons/question.js +18 -0
- package/es/icons/reload.d.ts +3 -0
- package/es/icons/reload.js +18 -0
- package/es/icons/search.d.ts +3 -0
- package/es/icons/search.js +18 -0
- package/es/icons/tip.d.ts +5 -0
- package/es/{Icons/Tip.js → icons/tip.js} +64 -75
- package/es/index.d.ts +43 -32
- package/es/index.js +36 -28
- package/es/input-compact/index.d.ts +11 -0
- package/es/input-compact/index.js +63 -0
- package/es/input-compact/index.less +33 -0
- package/es/input-number/index.d.ts +8 -0
- package/es/input-number/index.js +35 -0
- package/es/input-number/index.less +58 -0
- package/es/{Layout → layout}/index.d.ts +26 -8
- package/es/layout/index.js +253 -0
- package/es/{Layout → layout}/index.less +43 -25
- package/es/{PageLoading → page-loading}/index.d.ts +2 -1
- package/es/{PageLoading → page-loading}/index.js +5 -3
- package/es/popup/index.d.ts +80 -0
- package/es/popup/index.js +260 -0
- package/es/popup/index.less +34 -0
- package/es/portal/index.d.ts +18 -0
- package/es/{Portal → portal}/index.js +48 -14
- package/es/{Section → section}/index.d.ts +10 -2
- package/es/section/index.js +99 -0
- package/es/{Section → section}/index.less +22 -6
- package/es/{Section/TabBar.d.ts → section/tab-bar.d.ts} +2 -1
- package/es/{Section/TabBar.js → section/tab-bar.js} +6 -3
- package/es/select-panel/index.d.ts +17 -0
- package/es/select-panel/index.js +63 -0
- package/es/select-panel/index.less +112 -0
- package/es/select-view/index.d.ts +63 -0
- package/es/select-view/index.js +269 -0
- package/es/select-view/index.less +57 -0
- package/es/{SiderTree → sider-tree}/index.d.ts +6 -12
- package/es/{SiderTree → sider-tree}/index.js +58 -82
- package/es/sider-tree/index.less +151 -0
- package/es/{SiderTree/TreeNodeTitle.js → sider-tree/tree-node-title.js} +13 -10
- package/es/{SiderTree → sider-tree}/typings.d.ts +2 -2
- package/es/state/index.d.ts +8 -0
- package/es/state/index.js +20 -0
- package/es/state/index.less +131 -0
- package/es/styles/empty.png +0 -0
- package/es/styles/index.less +28 -0
- package/es/styles/overrides.less +347 -0
- package/es/styles/theme.less +29 -0
- package/es/{utils.less → styles/utils.less} +18 -18
- package/es/symbol-icon/index.js +30 -0
- package/es/{TabBar → tab-bar}/index.d.ts +2 -3
- package/es/tab-bar/index.js +31 -0
- package/es/tab-bar/index.less +5 -0
- package/es/table/index.js +201 -0
- package/es/{Table → table}/typings.d.ts +2 -3
- package/es/{Table → table}/utils.d.ts +1 -1
- package/es/tip-mark/index.d.ts +8 -0
- package/es/tip-mark/index.js +44 -0
- package/es/utils.d.ts +2 -1
- package/es/utils.js +10 -2
- package/package.json +43 -21
- package/README.md +0 -11
- package/es/Dropdown/index.d.ts +0 -15
- package/es/Dropdown/index.js +0 -45
- package/es/Dropdown/index.less +0 -13
- package/es/DurationPicker/index.js +0 -174
- package/es/DurationPicker/index.less +0 -61
- package/es/EditableTable/EditableCell.js +0 -41
- package/es/EditableTable/index.js +0 -8
- package/es/EditableTable/util.js +0 -311
- package/es/Filter/index.js +0 -555
- package/es/Filter/typings.d.ts +0 -37
- package/es/FormHorizontal/index.d.ts +0 -6
- package/es/FormHorizontal/index.js +0 -30
- package/es/FormHorizontal/index.less +0 -14
- package/es/FormInline/index.d.ts +0 -15
- package/es/FormInline/index.js +0 -74
- package/es/FormInline/index.less +0 -26
- package/es/FormLayout/index.js +0 -36
- package/es/FormTable/index.d.ts +0 -6
- package/es/FormTable/index.js +0 -125
- package/es/FormTable/index.less +0 -11
- package/es/FormTable/typings.d.ts +0 -38
- package/es/Icons/Calendar.d.ts +0 -5
- package/es/Icons/Calendar.js +0 -42
- package/es/Icons/Close.js +0 -24
- package/es/Icons/CollapseUp.js +0 -26
- package/es/Icons/DarkSearch.d.ts +0 -5
- package/es/Icons/Down.js +0 -30
- package/es/Icons/More.d.ts +0 -5
- package/es/Icons/More.js +0 -39
- package/es/Icons/Search.js +0 -30
- package/es/Icons/Tip.d.ts +0 -6
- package/es/Icons/index.d.ts +0 -24
- package/es/Icons/index.js +0 -25
- package/es/InputMaxLength/index.d.ts +0 -14
- package/es/InputMaxLength/index.js +0 -72
- package/es/InputMaxLength/index.less +0 -8
- package/es/Layout/index.js +0 -184
- package/es/MainFramework/components/DropMenu/index.d.ts +0 -11
- package/es/MainFramework/components/DropMenu/index.js +0 -93
- package/es/MainFramework/components/DropMenu/index.less +0 -59
- package/es/MainFramework/components/Menu/index.d.ts +0 -10
- package/es/MainFramework/components/Menu/index.js +0 -603
- package/es/MainFramework/components/Menu/index.less +0 -445
- package/es/MainFramework/components/RefreshButton/index.d.ts +0 -6
- package/es/MainFramework/components/RefreshButton/index.js +0 -63
- package/es/MainFramework/components/RefreshButton/index.less +0 -30
- package/es/MainFramework/components/TabBar/index.d.ts +0 -10
- package/es/MainFramework/components/TabBar/index.js +0 -101
- package/es/MainFramework/components/TabBar/index.less +0 -155
- package/es/MainFramework/components/WaterMark/index.d.ts +0 -6
- package/es/MainFramework/components/WaterMark/index.js +0 -65
- package/es/MainFramework/index.d.ts +0 -28
- package/es/MainFramework/index.js +0 -78
- package/es/MainFramework/index.less +0 -97
- package/es/MainFramework/typings.d.ts +0 -10
- package/es/Popup/index.d.ts +0 -39
- package/es/Popup/index.js +0 -180
- package/es/Popup/index.less +0 -12
- package/es/Portal/index.d.ts +0 -17
- package/es/Section/index.js +0 -90
- package/es/SelectView/index.d.ts +0 -56
- package/es/SelectView/index.js +0 -227
- package/es/SelectView/index.less +0 -60
- package/es/SiderTree/index.less +0 -222
- package/es/SymbolIcon/index.js +0 -27
- package/es/TabBar/index.js +0 -42
- package/es/TabBar/index.less +0 -31
- package/es/Table/index.js +0 -205
- package/es/TipMark/index.d.ts +0 -10
- package/es/TipMark/index.js +0 -35
- package/es/TipMark/index.less +0 -6
- package/es/index.less +0 -26
- package/es/init.d.ts +0 -3
- package/es/init.js +0 -134
- package/es/overrides.less +0 -183
- package/es/theme.less +0 -9
- /package/es/{BaseTable/Actions.d.ts → base-table/actions.d.ts} +0 -0
- /package/es/{BaseTable/BaseTableContext.d.ts → base-table/base-table-context.d.ts} +0 -0
- /package/es/{BaseTable/BaseTableContext.js → base-table/base-table-context.js} +0 -0
- /package/es/{BaseTable → base-table}/empty.png +0 -0
- /package/es/{BaseTable → base-table}/index.less +0 -0
- /package/es/{BaseTable/ResizeHeaderCell.d.ts → base-table/resize-header-cell.d.ts} +0 -0
- /package/es/{BaseTable → base-table}/typings.d.ts +0 -0
- /package/es/{BaseTable → base-table}/utils.js +0 -0
- /package/es/{BaseTable/VirtualBody.d.ts → base-table/virtual-body.d.ts} +0 -0
- /package/es/{ColorPicker → color-picker}/index.d.ts +0 -0
- /package/es/{EditableTable → editable-table}/index.less +0 -0
- /package/es/{EditableTable → editable-table}/util.d.ts +0 -0
- /package/es/{Icons/BigTip → icons/big-tip}/error.png +0 -0
- /package/es/{Icons/BigTip → icons/big-tip}/info.png +0 -0
- /package/es/{Icons/BigTip → icons/big-tip}/success.png +0 -0
- /package/es/{Icons/BigTip → icons/big-tip}/warning.png +0 -0
- /package/es/{Icons/Empty.js → icons/empty.js} +0 -0
- /package/es/{PageLoading → page-loading}/index.less +0 -0
- /package/es/{SiderTree → sider-tree}/empty.png +0 -0
- /package/es/{SiderTree/TreeNodeTitle.d.ts → sider-tree/tree-node-title.d.ts} +0 -0
- /package/es/{SymbolIcon → symbol-icon}/index.d.ts +0 -0
- /package/es/{SymbolIcon → symbol-icon}/index.less +0 -0
- /package/es/{Table → table}/index.d.ts +0 -0
- /package/es/{Table → table}/utils.js +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ModuleNames } from "@ag-grid-community/core";
|
|
2
|
+
import { CsvExportModule } from "@ag-grid-community/csv-export";
|
|
3
|
+
import { ClipboardService } from "./clipboard/clipboardService";
|
|
4
|
+
import { VERSION } from "./version";
|
|
5
|
+
export var ClipboardModule = {
|
|
6
|
+
version: VERSION,
|
|
7
|
+
moduleName: ModuleNames.ClipboardModule,
|
|
8
|
+
beans: [ClipboardService],
|
|
9
|
+
dependantModules: [CsvExportModule]
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ClipboardModule } from "./clipboardModule";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ClipboardModule } from "./clipboardModule";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VERSION = "29.2.0";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Column, IEventEmitter, ProvidedColumnGroup } from "@ag-grid-community/core";
|
|
2
|
+
export declare class ColumnModelItem implements IEventEmitter {
|
|
3
|
+
private eventService;
|
|
4
|
+
static EVENT_EXPANDED_CHANGED: string;
|
|
5
|
+
private readonly group;
|
|
6
|
+
private readonly displayName;
|
|
7
|
+
private readonly columnGroup;
|
|
8
|
+
private readonly column;
|
|
9
|
+
private readonly dept;
|
|
10
|
+
private readonly children;
|
|
11
|
+
private expanded;
|
|
12
|
+
private passesFilter;
|
|
13
|
+
constructor(displayName: string | null, columnOrGroup: Column | ProvidedColumnGroup, dept: number, group?: boolean, expanded?: boolean);
|
|
14
|
+
isGroup(): boolean;
|
|
15
|
+
getDisplayName(): string | null;
|
|
16
|
+
getColumnGroup(): ProvidedColumnGroup;
|
|
17
|
+
getColumn(): Column;
|
|
18
|
+
getDept(): number;
|
|
19
|
+
isExpanded(): boolean;
|
|
20
|
+
getChildren(): ColumnModelItem[];
|
|
21
|
+
isPassesFilter(): boolean;
|
|
22
|
+
setExpanded(expanded: boolean): void;
|
|
23
|
+
setPassesFilter(passesFilter: boolean): void;
|
|
24
|
+
addEventListener(eventType: string, listener: Function): void;
|
|
25
|
+
removeEventListener(eventType: string, listener: Function): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
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); }
|
|
7
|
+
import { EventService } from "@ag-grid-community/core";
|
|
8
|
+
export var ColumnModelItem = /*#__PURE__*/function () {
|
|
9
|
+
function ColumnModelItem(displayName, columnOrGroup, dept) {
|
|
10
|
+
var group = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
11
|
+
var expanded = arguments.length > 4 ? arguments[4] : undefined;
|
|
12
|
+
_classCallCheck(this, ColumnModelItem);
|
|
13
|
+
this.eventService = new EventService();
|
|
14
|
+
this.displayName = displayName;
|
|
15
|
+
this.dept = dept;
|
|
16
|
+
this.group = group;
|
|
17
|
+
if (group) {
|
|
18
|
+
this.columnGroup = columnOrGroup;
|
|
19
|
+
this.expanded = expanded;
|
|
20
|
+
this.children = [];
|
|
21
|
+
} else {
|
|
22
|
+
this.column = columnOrGroup;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
_createClass(ColumnModelItem, [{
|
|
26
|
+
key: "isGroup",
|
|
27
|
+
value: function isGroup() {
|
|
28
|
+
return this.group;
|
|
29
|
+
}
|
|
30
|
+
}, {
|
|
31
|
+
key: "getDisplayName",
|
|
32
|
+
value: function getDisplayName() {
|
|
33
|
+
return this.displayName;
|
|
34
|
+
}
|
|
35
|
+
}, {
|
|
36
|
+
key: "getColumnGroup",
|
|
37
|
+
value: function getColumnGroup() {
|
|
38
|
+
return this.columnGroup;
|
|
39
|
+
}
|
|
40
|
+
}, {
|
|
41
|
+
key: "getColumn",
|
|
42
|
+
value: function getColumn() {
|
|
43
|
+
return this.column;
|
|
44
|
+
}
|
|
45
|
+
}, {
|
|
46
|
+
key: "getDept",
|
|
47
|
+
value: function getDept() {
|
|
48
|
+
return this.dept;
|
|
49
|
+
}
|
|
50
|
+
}, {
|
|
51
|
+
key: "isExpanded",
|
|
52
|
+
value: function isExpanded() {
|
|
53
|
+
return !!this.expanded;
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
key: "getChildren",
|
|
57
|
+
value: function getChildren() {
|
|
58
|
+
return this.children;
|
|
59
|
+
}
|
|
60
|
+
}, {
|
|
61
|
+
key: "isPassesFilter",
|
|
62
|
+
value: function isPassesFilter() {
|
|
63
|
+
return this.passesFilter;
|
|
64
|
+
}
|
|
65
|
+
}, {
|
|
66
|
+
key: "setExpanded",
|
|
67
|
+
value: function setExpanded(expanded) {
|
|
68
|
+
if (expanded === this.expanded) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
this.expanded = expanded;
|
|
72
|
+
this.eventService.dispatchEvent({
|
|
73
|
+
type: ColumnModelItem.EVENT_EXPANDED_CHANGED
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}, {
|
|
77
|
+
key: "setPassesFilter",
|
|
78
|
+
value: function setPassesFilter(passesFilter) {
|
|
79
|
+
this.passesFilter = passesFilter;
|
|
80
|
+
}
|
|
81
|
+
}, {
|
|
82
|
+
key: "addEventListener",
|
|
83
|
+
value: function addEventListener(eventType, listener) {
|
|
84
|
+
this.eventService.addEventListener(eventType, listener);
|
|
85
|
+
}
|
|
86
|
+
}, {
|
|
87
|
+
key: "removeEventListener",
|
|
88
|
+
value: function removeEventListener(eventType, listener) {
|
|
89
|
+
this.eventService.removeEventListener(eventType, listener);
|
|
90
|
+
}
|
|
91
|
+
}]);
|
|
92
|
+
return ColumnModelItem;
|
|
93
|
+
}();
|
|
94
|
+
ColumnModelItem.EVENT_EXPANDED_CHANGED = 'expandedChanged';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ColDef, ColGroupDef, Component, IColumnToolPanel, IToolPanelComp, ToolPanelColumnCompParams } from "@ag-grid-community/core";
|
|
2
|
+
export declare class ColumnToolPanel extends Component implements IColumnToolPanel, IToolPanelComp {
|
|
3
|
+
private static TEMPLATE;
|
|
4
|
+
private gridApi;
|
|
5
|
+
private columnApi;
|
|
6
|
+
private initialised;
|
|
7
|
+
private params;
|
|
8
|
+
private childDestroyFuncs;
|
|
9
|
+
private pivotModePanel;
|
|
10
|
+
private primaryColsPanel;
|
|
11
|
+
private rowGroupDropZonePanel;
|
|
12
|
+
private valuesDropZonePanel;
|
|
13
|
+
private pivotDropZonePanel;
|
|
14
|
+
constructor();
|
|
15
|
+
setVisible(visible: boolean): void;
|
|
16
|
+
init(params: ToolPanelColumnCompParams): void;
|
|
17
|
+
setPivotModeSectionVisible(visible: boolean): void;
|
|
18
|
+
setRowGroupsSectionVisible(visible: boolean): void;
|
|
19
|
+
setValuesSectionVisible(visible: boolean): void;
|
|
20
|
+
setPivotSectionVisible(visible: boolean): void;
|
|
21
|
+
private setResizers;
|
|
22
|
+
private setLastVisible;
|
|
23
|
+
private resetChildrenHeight;
|
|
24
|
+
private isRowGroupingModuleLoaded;
|
|
25
|
+
expandColumnGroups(groupIds?: string[]): void;
|
|
26
|
+
collapseColumnGroups(groupIds?: string[]): void;
|
|
27
|
+
setColumnLayout(colDefs: (ColDef | ColGroupDef)[]): void;
|
|
28
|
+
syncLayoutWithGrid(): void;
|
|
29
|
+
destroyChildren(): void;
|
|
30
|
+
refresh(): void;
|
|
31
|
+
destroy(): void;
|
|
32
|
+
}
|
|
@@ -0,0 +1,272 @@
|
|
|
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 { _, Autowired, Component, Events, ModuleNames, ModuleRegistry } from "@ag-grid-community/core";
|
|
24
|
+
import { PivotModePanel } from "./pivotModePanel";
|
|
25
|
+
import { PivotDropZonePanel, RowGroupDropZonePanel, ValuesDropZonePanel } from "../../row-grouping/main";
|
|
26
|
+
import { PrimaryColsPanel } from "./primaryColsPanel";
|
|
27
|
+
export var ColumnToolPanel = /*#__PURE__*/function (_Component) {
|
|
28
|
+
_inherits(ColumnToolPanel, _Component);
|
|
29
|
+
var _super = _createSuper(ColumnToolPanel);
|
|
30
|
+
function ColumnToolPanel() {
|
|
31
|
+
var _this;
|
|
32
|
+
_classCallCheck(this, ColumnToolPanel);
|
|
33
|
+
_this = _super.call(this, ColumnToolPanel.TEMPLATE);
|
|
34
|
+
_this.initialised = false;
|
|
35
|
+
_this.childDestroyFuncs = [];
|
|
36
|
+
return _this;
|
|
37
|
+
}
|
|
38
|
+
// lazy initialise the panel
|
|
39
|
+
_createClass(ColumnToolPanel, [{
|
|
40
|
+
key: "setVisible",
|
|
41
|
+
value: function setVisible(visible) {
|
|
42
|
+
_get(_getPrototypeOf(ColumnToolPanel.prototype), "setDisplayed", this).call(this, visible);
|
|
43
|
+
if (visible && !this.initialised) {
|
|
44
|
+
this.init(this.params);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}, {
|
|
48
|
+
key: "init",
|
|
49
|
+
value: function init(params) {
|
|
50
|
+
var _this2 = this;
|
|
51
|
+
var defaultParams = {
|
|
52
|
+
suppressColumnMove: false,
|
|
53
|
+
suppressColumnSelectAll: false,
|
|
54
|
+
suppressColumnFilter: false,
|
|
55
|
+
suppressColumnExpandAll: false,
|
|
56
|
+
contractColumnSelection: false,
|
|
57
|
+
suppressPivotMode: false,
|
|
58
|
+
suppressRowGroups: false,
|
|
59
|
+
suppressValues: false,
|
|
60
|
+
suppressPivots: false,
|
|
61
|
+
suppressSyncLayoutWithGrid: false,
|
|
62
|
+
api: this.gridApi,
|
|
63
|
+
columnApi: this.columnApi
|
|
64
|
+
};
|
|
65
|
+
this.params = Object.assign(Object.assign(Object.assign({}, defaultParams), params), {
|
|
66
|
+
context: this.gridOptionsService.context
|
|
67
|
+
});
|
|
68
|
+
if (this.isRowGroupingModuleLoaded() && !this.params.suppressPivotMode) {
|
|
69
|
+
// DO NOT CHANGE TO createManagedBean
|
|
70
|
+
this.pivotModePanel = this.createBean(new PivotModePanel());
|
|
71
|
+
this.childDestroyFuncs.push(function () {
|
|
72
|
+
return _this2.destroyBean(_this2.pivotModePanel);
|
|
73
|
+
});
|
|
74
|
+
this.appendChild(this.pivotModePanel);
|
|
75
|
+
}
|
|
76
|
+
// DO NOT CHANGE TO createManagedBean
|
|
77
|
+
this.primaryColsPanel = this.createBean(new PrimaryColsPanel());
|
|
78
|
+
this.childDestroyFuncs.push(function () {
|
|
79
|
+
return _this2.destroyBean(_this2.primaryColsPanel);
|
|
80
|
+
});
|
|
81
|
+
this.primaryColsPanel.init(true, this.params, "toolPanelUi");
|
|
82
|
+
this.primaryColsPanel.addCssClass('ag-column-panel-column-select');
|
|
83
|
+
this.appendChild(this.primaryColsPanel);
|
|
84
|
+
if (this.isRowGroupingModuleLoaded()) {
|
|
85
|
+
if (!this.params.suppressRowGroups) {
|
|
86
|
+
// DO NOT CHANGE TO createManagedBean
|
|
87
|
+
this.rowGroupDropZonePanel = this.createBean(new RowGroupDropZonePanel(false));
|
|
88
|
+
this.childDestroyFuncs.push(function () {
|
|
89
|
+
return _this2.destroyBean(_this2.rowGroupDropZonePanel);
|
|
90
|
+
});
|
|
91
|
+
this.appendChild(this.rowGroupDropZonePanel);
|
|
92
|
+
}
|
|
93
|
+
if (!this.params.suppressValues) {
|
|
94
|
+
// DO NOT CHANGE TO createManagedBean
|
|
95
|
+
this.valuesDropZonePanel = this.createBean(new ValuesDropZonePanel(false));
|
|
96
|
+
this.childDestroyFuncs.push(function () {
|
|
97
|
+
return _this2.destroyBean(_this2.valuesDropZonePanel);
|
|
98
|
+
});
|
|
99
|
+
this.appendChild(this.valuesDropZonePanel);
|
|
100
|
+
}
|
|
101
|
+
if (!this.params.suppressPivots) {
|
|
102
|
+
// DO NOT CHANGE TO createManagedBean
|
|
103
|
+
this.pivotDropZonePanel = this.createBean(new PivotDropZonePanel(false));
|
|
104
|
+
this.childDestroyFuncs.push(function () {
|
|
105
|
+
return _this2.destroyBean(_this2.pivotDropZonePanel);
|
|
106
|
+
});
|
|
107
|
+
this.appendChild(this.pivotDropZonePanel);
|
|
108
|
+
}
|
|
109
|
+
this.setLastVisible();
|
|
110
|
+
var pivotModeListener = this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, function () {
|
|
111
|
+
_this2.resetChildrenHeight();
|
|
112
|
+
_this2.setLastVisible();
|
|
113
|
+
});
|
|
114
|
+
this.childDestroyFuncs.push(function () {
|
|
115
|
+
return pivotModeListener();
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
this.initialised = true;
|
|
119
|
+
}
|
|
120
|
+
}, {
|
|
121
|
+
key: "setPivotModeSectionVisible",
|
|
122
|
+
value: function setPivotModeSectionVisible(visible) {
|
|
123
|
+
var _this3 = this;
|
|
124
|
+
if (!this.isRowGroupingModuleLoaded()) {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
if (this.pivotModePanel) {
|
|
128
|
+
this.pivotModePanel.setDisplayed(visible);
|
|
129
|
+
} else if (visible) {
|
|
130
|
+
this.pivotModePanel = this.createBean(new PivotModePanel());
|
|
131
|
+
// ensure pivot mode panel is positioned at the top of the columns tool panel
|
|
132
|
+
this.getGui().insertBefore(this.pivotModePanel.getGui(), this.getGui().firstChild);
|
|
133
|
+
this.childDestroyFuncs.push(function () {
|
|
134
|
+
return _this3.destroyBean(_this3.pivotModePanel);
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
this.setLastVisible();
|
|
138
|
+
}
|
|
139
|
+
}, {
|
|
140
|
+
key: "setRowGroupsSectionVisible",
|
|
141
|
+
value: function setRowGroupsSectionVisible(visible) {
|
|
142
|
+
if (!this.isRowGroupingModuleLoaded()) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
if (this.rowGroupDropZonePanel) {
|
|
146
|
+
this.rowGroupDropZonePanel.setDisplayed(visible);
|
|
147
|
+
} else if (visible) {
|
|
148
|
+
this.rowGroupDropZonePanel = this.createManagedBean(new RowGroupDropZonePanel(false));
|
|
149
|
+
this.appendChild(this.rowGroupDropZonePanel);
|
|
150
|
+
}
|
|
151
|
+
this.setLastVisible();
|
|
152
|
+
}
|
|
153
|
+
}, {
|
|
154
|
+
key: "setValuesSectionVisible",
|
|
155
|
+
value: function setValuesSectionVisible(visible) {
|
|
156
|
+
if (!this.isRowGroupingModuleLoaded()) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
if (this.valuesDropZonePanel) {
|
|
160
|
+
this.valuesDropZonePanel.setDisplayed(visible);
|
|
161
|
+
} else if (visible) {
|
|
162
|
+
this.valuesDropZonePanel = this.createManagedBean(new ValuesDropZonePanel(false));
|
|
163
|
+
this.appendChild(this.valuesDropZonePanel);
|
|
164
|
+
}
|
|
165
|
+
this.setLastVisible();
|
|
166
|
+
}
|
|
167
|
+
}, {
|
|
168
|
+
key: "setPivotSectionVisible",
|
|
169
|
+
value: function setPivotSectionVisible(visible) {
|
|
170
|
+
if (!this.isRowGroupingModuleLoaded()) {
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
if (this.pivotDropZonePanel) {
|
|
174
|
+
this.pivotDropZonePanel.setDisplayed(visible);
|
|
175
|
+
} else if (visible) {
|
|
176
|
+
this.pivotDropZonePanel = this.createManagedBean(new PivotDropZonePanel(false));
|
|
177
|
+
this.appendChild(this.pivotDropZonePanel);
|
|
178
|
+
this.pivotDropZonePanel.setDisplayed(visible);
|
|
179
|
+
}
|
|
180
|
+
this.setLastVisible();
|
|
181
|
+
}
|
|
182
|
+
}, {
|
|
183
|
+
key: "setResizers",
|
|
184
|
+
value: function setResizers() {
|
|
185
|
+
[this.primaryColsPanel, this.rowGroupDropZonePanel, this.valuesDropZonePanel, this.pivotDropZonePanel].forEach(function (panel) {
|
|
186
|
+
if (!panel) {
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
var eGui = panel.getGui();
|
|
190
|
+
panel.toggleResizable(!eGui.classList.contains('ag-last-column-drop') && !eGui.classList.contains('ag-hidden'));
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
}, {
|
|
194
|
+
key: "setLastVisible",
|
|
195
|
+
value: function setLastVisible() {
|
|
196
|
+
var eGui = this.getGui();
|
|
197
|
+
var columnDrops = Array.prototype.slice.call(eGui.querySelectorAll('.ag-column-drop'));
|
|
198
|
+
columnDrops.forEach(function (columnDrop) {
|
|
199
|
+
return columnDrop.classList.remove('ag-last-column-drop');
|
|
200
|
+
});
|
|
201
|
+
var columnDropEls = eGui.querySelectorAll('.ag-column-drop:not(.ag-hidden)');
|
|
202
|
+
var lastVisible = _.last(columnDropEls);
|
|
203
|
+
if (lastVisible) {
|
|
204
|
+
lastVisible.classList.add('ag-last-column-drop');
|
|
205
|
+
}
|
|
206
|
+
this.setResizers();
|
|
207
|
+
}
|
|
208
|
+
}, {
|
|
209
|
+
key: "resetChildrenHeight",
|
|
210
|
+
value: function resetChildrenHeight() {
|
|
211
|
+
var eGui = this.getGui();
|
|
212
|
+
var children = eGui.children;
|
|
213
|
+
for (var i = 0; i < children.length; i++) {
|
|
214
|
+
var child = children[i];
|
|
215
|
+
child.style.removeProperty('height');
|
|
216
|
+
child.style.removeProperty('flex');
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}, {
|
|
220
|
+
key: "isRowGroupingModuleLoaded",
|
|
221
|
+
value: function isRowGroupingModuleLoaded() {
|
|
222
|
+
return ModuleRegistry.assertRegistered(ModuleNames.RowGroupingModule, 'Row Grouping');
|
|
223
|
+
}
|
|
224
|
+
}, {
|
|
225
|
+
key: "expandColumnGroups",
|
|
226
|
+
value: function expandColumnGroups(groupIds) {
|
|
227
|
+
this.primaryColsPanel.expandGroups(groupIds);
|
|
228
|
+
}
|
|
229
|
+
}, {
|
|
230
|
+
key: "collapseColumnGroups",
|
|
231
|
+
value: function collapseColumnGroups(groupIds) {
|
|
232
|
+
this.primaryColsPanel.collapseGroups(groupIds);
|
|
233
|
+
}
|
|
234
|
+
}, {
|
|
235
|
+
key: "setColumnLayout",
|
|
236
|
+
value: function setColumnLayout(colDefs) {
|
|
237
|
+
this.primaryColsPanel.setColumnLayout(colDefs);
|
|
238
|
+
}
|
|
239
|
+
}, {
|
|
240
|
+
key: "syncLayoutWithGrid",
|
|
241
|
+
value: function syncLayoutWithGrid() {
|
|
242
|
+
this.primaryColsPanel.syncLayoutWithGrid();
|
|
243
|
+
}
|
|
244
|
+
}, {
|
|
245
|
+
key: "destroyChildren",
|
|
246
|
+
value: function destroyChildren() {
|
|
247
|
+
this.childDestroyFuncs.forEach(function (func) {
|
|
248
|
+
return func();
|
|
249
|
+
});
|
|
250
|
+
this.childDestroyFuncs.length = 0;
|
|
251
|
+
_.clearElement(this.getGui());
|
|
252
|
+
}
|
|
253
|
+
}, {
|
|
254
|
+
key: "refresh",
|
|
255
|
+
value: function refresh() {
|
|
256
|
+
this.destroyChildren();
|
|
257
|
+
this.init(this.params);
|
|
258
|
+
}
|
|
259
|
+
// this is a user component, and IComponent has "public destroy()" as part of the interface.
|
|
260
|
+
// so this must be public.
|
|
261
|
+
}, {
|
|
262
|
+
key: "destroy",
|
|
263
|
+
value: function destroy() {
|
|
264
|
+
this.destroyChildren();
|
|
265
|
+
_get(_getPrototypeOf(ColumnToolPanel.prototype), "destroy", this).call(this);
|
|
266
|
+
}
|
|
267
|
+
}]);
|
|
268
|
+
return ColumnToolPanel;
|
|
269
|
+
}(Component);
|
|
270
|
+
ColumnToolPanel.TEMPLATE = "<div class=\"ag-column-panel\"></div>";
|
|
271
|
+
__decorate([Autowired("gridApi")], ColumnToolPanel.prototype, "gridApi", void 0);
|
|
272
|
+
__decorate([Autowired("columnApi")], ColumnToolPanel.prototype, "columnApi", void 0);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ColumnModelItem } from "./columnModelItem";
|
|
2
|
+
import { ColumnModel, ColumnEventType, IAggFuncService, Column } from "@ag-grid-community/core";
|
|
3
|
+
export declare class ModelItemUtils {
|
|
4
|
+
aggFuncService: IAggFuncService;
|
|
5
|
+
columnModel: ColumnModel;
|
|
6
|
+
private gridOptionsService;
|
|
7
|
+
private eventService;
|
|
8
|
+
selectAllChildren(colTree: ColumnModelItem[], selectAllChecked: boolean, eventType: ColumnEventType): void;
|
|
9
|
+
setColumn(col: Column, selectAllChecked: boolean, eventType: ColumnEventType): void;
|
|
10
|
+
setAllColumns(cols: Column[], selectAllChecked: boolean, eventType: ColumnEventType): void;
|
|
11
|
+
private extractAllLeafColumns;
|
|
12
|
+
private setAllVisible;
|
|
13
|
+
private setAllPivot;
|
|
14
|
+
private setAllPivotPassive;
|
|
15
|
+
private setAllPivotActive;
|
|
16
|
+
}
|