@lemon-fe/kits 0.1.136 → 1.0.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -5
- package/es/app.d.ts +1 -0
- package/es/app.js +3 -0
- package/es/components/Actions/index.d.ts +26 -0
- package/es/components/Actions/index.js +169 -0
- package/es/components/Actions/index.less +67 -0
- package/es/components/BaseTable/Actions.d.ts +9 -0
- package/es/components/BaseTable/Actions.js +136 -0
- package/es/components/BaseTable/BaseTableContext.d.ts +7 -0
- package/es/components/BaseTable/BaseTableContext.js +7 -0
- package/es/components/BaseTable/ResizeHeaderCell.d.ts +8 -0
- package/es/components/BaseTable/ResizeHeaderCell.js +130 -0
- package/es/components/BaseTable/VirtualBody.d.ts +8 -0
- package/es/components/BaseTable/VirtualBody.js +163 -0
- package/es/components/BaseTable/empty.png +0 -0
- package/es/components/BaseTable/index.d.ts +9 -0
- package/es/components/BaseTable/index.js +482 -0
- package/es/components/BaseTable/index.less +189 -0
- package/es/components/BaseTable/typings.d.ts +48 -0
- package/es/components/BaseTable/utils.d.ts +4 -0
- package/es/components/BaseTable/utils.js +26 -0
- package/es/components/ColorPicker/index.d.ts +13 -0
- package/es/components/ColorPicker/index.js +114 -0
- package/es/components/ColorPicker/index.less +47 -0
- package/es/components/DataGrid/Actions.d.ts +9 -0
- package/es/components/DataGrid/Actions.js +119 -0
- package/es/components/DataGrid/CellRenderer.d.ts +4 -0
- package/es/components/DataGrid/CellRenderer.js +68 -0
- package/es/components/DataGrid/GridContext.d.ts +4 -0
- package/es/components/DataGrid/GridContext.js +4 -0
- package/es/components/DataGrid/HeaderRenderer.d.ts +6 -0
- package/es/components/DataGrid/HeaderRenderer.js +93 -0
- package/es/components/DataGrid/cell-editors/Custom.d.ts +9 -0
- package/es/components/DataGrid/cell-editors/Custom.js +105 -0
- package/es/components/DataGrid/cell-editors/Date.d.ts +8 -0
- package/es/components/DataGrid/cell-editors/Date.js +78 -0
- package/es/components/DataGrid/cell-editors/Number.d.ts +9 -0
- package/es/components/DataGrid/cell-editors/Number.js +86 -0
- package/es/components/DataGrid/cell-editors/Select.d.ts +7 -0
- package/es/components/DataGrid/cell-editors/Select.js +70 -0
- package/es/components/DataGrid/cell-editors/Text.d.ts +5 -0
- package/es/components/DataGrid/cell-editors/Text.js +60 -0
- package/es/components/DataGrid/cell-editors/Wrapper.d.ts +4 -0
- package/es/components/DataGrid/cell-editors/Wrapper.js +7 -0
- package/es/components/DataGrid/cell-editors/utils.d.ts +1 -0
- package/es/components/DataGrid/cell-editors/utils.js +2 -0
- package/es/components/DataGrid/empty.png +0 -0
- package/es/components/DataGrid/hooks.d.ts +2 -0
- package/es/components/DataGrid/hooks.js +45 -0
- package/es/components/DataGrid/index.d.ts +77 -0
- package/es/components/DataGrid/index.js +1051 -0
- package/es/components/DataGrid/index.less +304 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideNodeManager.d.ts +57 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideNodeManager.js +378 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideRowModel.d.ts +120 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideRowModel.js +1160 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterService.d.ts +7 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterService.js +137 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterStage.d.ts +5 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterStage.js +60 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/flattenStage.d.ts +10 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/flattenStage.js +199 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/immutableService.d.ts +13 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/immutableService.js +175 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortService.d.ts +21 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortService.js +330 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortStage.d.ts +7 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortStage.js +75 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModelModule.d.ts +15 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModelModule.js +15 -0
- package/es/components/DataGrid/modules/client-side-row-model/index.d.ts +1 -0
- package/es/components/DataGrid/modules/client-side-row-model/index.js +1 -0
- package/es/components/DataGrid/modules/clipboard/clipboard/clipboardService.d.ts +62 -0
- package/es/components/DataGrid/modules/clipboard/clipboard/clipboardService.js +923 -0
- package/es/components/DataGrid/modules/clipboard/clipboardModule.d.ts +7 -0
- package/es/components/DataGrid/modules/clipboard/clipboardModule.js +8 -0
- package/es/components/DataGrid/modules/clipboard/index.d.ts +1 -0
- package/es/components/DataGrid/modules/clipboard/index.js +1 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnModelItem.d.ts +32 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnModelItem.js +100 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnToolPanel.d.ts +51 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnToolPanel.js +320 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/modelItemUtils.d.ts +20 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/modelItemUtils.js +247 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/pivotModePanel.d.ts +9 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/pivotModePanel.js +93 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.d.ts +32 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.js +186 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.d.ts +49 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.js +546 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.d.ts +26 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.js +264 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.d.ts +32 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.js +151 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.d.ts +43 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.js +369 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.d.ts +62 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.js +475 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.d.ts +24 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.js +322 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnsToolPanelModule.d.ts +24 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnsToolPanelModule.js +24 -0
- package/es/components/DataGrid/modules/column-tool-panel/index.d.ts +2 -0
- package/es/components/DataGrid/modules/column-tool-panel/index.js +3 -0
- package/es/components/DataGrid/modules/menu/index.d.ts +1 -0
- package/es/components/DataGrid/modules/menu/index.js +1 -0
- package/es/components/DataGrid/modules/menu/menu/contextMenu.d.ts +26 -0
- package/es/components/DataGrid/modules/menu/menu/contextMenu.js +329 -0
- package/es/components/DataGrid/modules/menu/menu/enterpriseMenu.d.ts +85 -0
- package/es/components/DataGrid/modules/menu/menu/enterpriseMenu.js +639 -0
- package/es/components/DataGrid/modules/menu/menu/menuItemMapper.d.ts +15 -0
- package/es/components/DataGrid/modules/menu/menu/menuItemMapper.js +565 -0
- package/es/components/DataGrid/modules/menu/menuModule.d.ts +8 -0
- package/es/components/DataGrid/modules/menu/menuModule.js +8 -0
- package/es/components/DataGrid/modules/row-grouping/index.d.ts +4 -0
- package/es/components/DataGrid/modules/row-grouping/index.js +4 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/aggFuncService.d.ts +23 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/aggFuncService.js +303 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/aggregationStage.d.ts +20 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/aggregationStage.js +326 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/batchRemover.d.ts +10 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/batchRemover.js +71 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.d.ts +75 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.js +618 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.d.ts +40 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.js +460 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.d.ts +11 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.js +108 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.d.ts +17 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.js +170 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.d.ts +15 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.js +133 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.d.ts +15 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.js +133 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/filterAggregatesStage.d.ts +9 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/filterAggregatesStage.js +175 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/groupStage.d.ts +47 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/groupStage.js +814 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/pivotColDefService.d.ts +24 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/pivotColDefService.js +478 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/pivotStage.d.ts +19 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/pivotStage.js +219 -0
- package/es/components/DataGrid/modules/row-grouping/rowGroupingModule.d.ts +16 -0
- package/es/components/DataGrid/modules/row-grouping/rowGroupingModule.js +16 -0
- package/es/components/DataGrid/modules/server-side-row-model/index.d.ts +1 -0
- package/es/components/DataGrid/modules/server-side-row-model/index.js +1 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/blockUtils.d.ts +47 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/blockUtils.js +444 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/infiniteStoreBlock.d.ts +92 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/infiniteStoreBlock.js +510 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/expandListener.d.ts +9 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/expandListener.js +115 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/filterListener.d.ts +9 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/filterListener.js +114 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/listenerUtils.d.ts +5 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/listenerUtils.js +68 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/sortListener.d.ts +13 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/sortListener.js +194 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/nodeManager.d.ts +7 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/nodeManager.js +63 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/serverSideRowModel.d.ts +88 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/serverSideRowModel.js +572 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/fullStore.d.ts +108 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/fullStore.js +876 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/infiniteStore.d.ts +102 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/infiniteStore.js +918 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeFactory.d.ts +12 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeFactory.js +141 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeUtils.d.ts +35 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeUtils.js +154 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/transactionManager.d.ts +23 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/transactionManager.js +210 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModelModule.d.ts +18 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModelModule.js +18 -0
- package/es/components/DataGrid/modules/side-bar/index.d.ts +2 -0
- package/es/components/DataGrid/modules/side-bar/index.js +2 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/common/toolPanelColDefService.d.ts +11 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/common/toolPanelColDefService.js +280 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/horizontalResizeComp.d.ts +19 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/horizontalResizeComp.js +132 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonComp.d.ts +16 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonComp.js +108 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonsComp.d.ts +18 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonsComp.js +115 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarComp.d.ts +29 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarComp.js +353 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/toolPanelWrapper.d.ts +17 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/toolPanelWrapper.js +128 -0
- package/es/components/DataGrid/modules/side-bar/sideBarModule.d.ts +19 -0
- package/es/components/DataGrid/modules/side-bar/sideBarModule.js +19 -0
- package/es/components/DataGrid/typings.d.ts +138 -0
- package/es/components/DataGrid/typings.js +1 -0
- package/es/components/DataGrid/utils.d.ts +43 -0
- package/es/components/DataGrid/utils.js +242 -0
- package/es/components/Dropdown/index.d.ts +15 -0
- package/es/components/Dropdown/index.js +55 -0
- package/es/components/Dropdown/index.less +13 -0
- package/es/components/DurationPicker/index.d.ts +26 -0
- package/es/components/DurationPicker/index.js +204 -0
- package/es/components/DurationPicker/index.less +61 -0
- package/es/components/EditableTable/EditableCell.d.ts +12 -0
- package/es/components/EditableTable/EditableCell.js +41 -0
- package/es/components/EditableTable/EditableTableFormItem.d.ts +6 -0
- package/es/components/EditableTable/EditableTableFormItem.js +47 -0
- package/es/components/EditableTable/Table.d.ts +6 -0
- package/es/components/EditableTable/Table.js +362 -0
- package/es/components/EditableTable/index.d.ts +9 -0
- package/es/components/EditableTable/index.js +8 -0
- package/es/components/EditableTable/index.less +29 -0
- package/es/components/EditableTable/typings.d.ts +90 -0
- package/es/components/EditableTable/util.d.ts +25 -0
- package/es/components/EditableTable/util.js +399 -0
- package/es/components/Filter/index.d.ts +15 -0
- package/es/components/Filter/index.js +644 -0
- package/es/components/Filter/index.less +82 -0
- package/es/components/Filter/typings.d.ts +35 -0
- package/es/components/FormLayout/index.d.ts +32 -0
- package/es/components/FormLayout/index.js +41 -0
- package/es/components/FormLayout/index.less +109 -0
- package/es/components/Icons/BigTip/error.png +0 -0
- package/es/components/Icons/BigTip/index.d.ts +6 -0
- package/es/components/Icons/BigTip/index.js +46 -0
- package/es/components/Icons/BigTip/info.png +0 -0
- package/es/components/Icons/BigTip/success.png +0 -0
- package/es/components/Icons/BigTip/warning.png +0 -0
- package/es/components/Icons/Calendar.d.ts +5 -0
- package/es/components/Icons/Calendar.js +43 -0
- package/es/components/Icons/Close.d.ts +5 -0
- package/es/components/Icons/Close.js +25 -0
- package/es/components/Icons/CollapseUp.d.ts +5 -0
- package/es/components/Icons/CollapseUp.js +27 -0
- package/es/components/Icons/DarkSearch.d.ts +5 -0
- package/es/components/Icons/DarkSearch.js +34 -0
- package/es/components/Icons/Down.d.ts +5 -0
- package/es/components/Icons/Down.js +31 -0
- package/es/components/Icons/Empty.d.ts +3 -0
- package/es/components/Icons/Empty.js +267 -0
- package/es/components/Icons/LookUp.d.ts +5 -0
- package/es/components/Icons/LookUp.js +70 -0
- package/es/components/Icons/More.d.ts +5 -0
- package/es/components/Icons/More.js +40 -0
- package/es/components/Icons/Search.d.ts +5 -0
- package/es/components/Icons/Search.js +31 -0
- package/es/components/Icons/Tip.d.ts +6 -0
- package/es/components/Icons/Tip.js +165 -0
- package/es/components/Icons/index.d.ts +25 -0
- package/es/components/Icons/index.js +25 -0
- package/es/components/Layout/index.d.ts +41 -0
- package/es/components/Layout/index.js +173 -0
- package/es/components/Layout/index.less +136 -0
- package/es/components/PageLoading/index.d.ts +5 -0
- package/es/components/PageLoading/index.js +15 -0
- package/es/components/PageLoading/index.less +8 -0
- package/es/components/Popup/index.d.ts +39 -0
- package/es/components/Popup/index.js +223 -0
- package/es/components/Popup/index.less +12 -0
- package/es/components/Portal/index.d.ts +17 -0
- package/es/components/Portal/index.js +141 -0
- package/es/components/Section/TabBar.d.ts +12 -0
- package/es/components/Section/TabBar.js +51 -0
- package/es/components/Section/index.d.ts +54 -0
- package/es/components/Section/index.js +96 -0
- package/es/components/Section/index.less +130 -0
- package/es/components/SelectView/index.d.ts +47 -0
- package/es/components/SelectView/index.js +244 -0
- package/es/components/SelectView/index.less +60 -0
- package/es/components/SiderTree/TreeNodeTitle.d.ts +9 -0
- package/es/components/SiderTree/TreeNodeTitle.js +107 -0
- package/es/components/SiderTree/empty.png +0 -0
- package/es/components/SiderTree/index.d.ts +37 -0
- package/es/components/SiderTree/index.js +217 -0
- package/es/components/SiderTree/index.less +222 -0
- package/es/components/SiderTree/typings.d.ts +19 -0
- package/es/components/SymbolIcon/index.d.ts +8 -0
- package/es/components/SymbolIcon/index.js +32 -0
- package/es/components/SymbolIcon/index.less +7 -0
- package/es/components/TabBar/index.d.ts +14 -0
- package/es/components/TabBar/index.js +52 -0
- package/es/components/TabBar/index.less +31 -0
- package/es/components/Table/index.d.ts +3 -0
- package/es/components/Table/index.js +242 -0
- package/es/components/Table/typings.d.ts +25 -0
- package/es/components/Table/utils.d.ts +2 -0
- package/es/components/Table/utils.js +3 -0
- package/es/components/utils.d.ts +3 -0
- package/es/components/utils.js +20 -0
- package/es/constants.d.ts +1 -0
- package/es/constants.js +1 -0
- package/es/{useBatchOperator → hooks/useBatchOperator}/index.d.ts +2 -2
- package/es/{useBatchOperator → hooks/useBatchOperator}/index.js +120 -57
- package/es/{usePageTrack → hooks/usePageTrack}/index.d.ts +0 -0
- package/es/{usePageTrack → hooks/usePageTrack}/index.js +0 -0
- package/es/index.d.ts +33 -6
- package/es/index.js +30 -6
- package/es/index.less +25 -1
- package/es/init.d.ts +3 -0
- package/es/init.js +153 -0
- package/es/layouts/BasicLayout/components/Main.d.ts +10 -0
- package/es/layouts/BasicLayout/components/Main.js +390 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/DropMenu/index.d.ts +11 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/DropMenu/index.js +104 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/DropMenu/index.less +59 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/Menu/index.d.ts +10 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/Menu/index.js +667 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/Menu/index.less +445 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/RefreshButton/index.d.ts +6 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/RefreshButton/index.js +72 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/RefreshButton/index.less +30 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/TabBar/index.d.ts +10 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/TabBar/index.js +116 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/TabBar/index.less +155 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/WaterMark/index.d.ts +6 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/WaterMark/index.js +70 -0
- package/es/layouts/BasicLayout/components/MainFramework/index.d.ts +28 -0
- package/es/layouts/BasicLayout/components/MainFramework/index.js +78 -0
- package/es/layouts/BasicLayout/components/MainFramework/index.less +97 -0
- package/es/layouts/BasicLayout/components/MainFramework/typings.d.ts +10 -0
- package/es/layouts/BasicLayout/index.d.ts +3 -0
- package/es/layouts/BasicLayout/index.js +98 -0
- package/es/layouts/BasicLayout/typings.d.ts +82 -0
- package/es/layouts/BlankLayout/index.d.ts +5 -0
- package/es/layouts/BlankLayout/index.js +5 -0
- package/es/layouts/Breadcrumb/index.d.ts +6 -0
- package/es/layouts/Breadcrumb/index.js +75 -0
- package/es/layouts/MicroLayout/index.d.ts +10 -0
- package/es/layouts/MicroLayout/index.js +105 -0
- package/es/layouts/MicroLayout/typings.d.ts +25 -0
- package/es/layouts/components/CachableRoute.d.ts +2 -0
- package/es/layouts/components/CachableRoute.js +38 -0
- package/es/layouts/components/RouteTab.d.ts +20 -0
- package/es/layouts/components/RouteTab.js +40 -0
- package/es/layouts/components/Switch.d.ts +2 -0
- package/es/layouts/components/Switch.js +63 -0
- package/es/layouts/index.d.ts +4 -0
- package/es/layouts/index.js +4 -0
- package/es/layouts/typings.d.ts +29 -0
- package/es/layouts/utils.d.ts +23 -0
- package/es/layouts/utils.js +175 -0
- package/es/styles/overrides.less +191 -0
- package/es/styles/theme.less +9 -0
- package/es/styles/utils.less +110 -0
- package/package.json +75 -22
- package/es/subject.d.ts +0 -12
- package/es/subject.js +0 -30
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ModuleNames } from '@ag-grid-community/core';
|
|
2
|
+
import { ClipboardService } from './clipboard/clipboardService';
|
|
3
|
+
export declare const ClipboardModule: {
|
|
4
|
+
moduleName: ModuleNames;
|
|
5
|
+
beans: (typeof ClipboardService)[];
|
|
6
|
+
dependantModules: import("@ag-grid-community/core").Module[];
|
|
7
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ModuleNames } from '@ag-grid-community/core';
|
|
2
|
+
import { CsvExportModule } from '@ag-grid-community/csv-export';
|
|
3
|
+
import { ClipboardService } from "./clipboard/clipboardService";
|
|
4
|
+
export var ClipboardModule = {
|
|
5
|
+
moduleName: ModuleNames.ClipboardModule,
|
|
6
|
+
beans: [ClipboardService],
|
|
7
|
+
dependantModules: [CsvExportModule]
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ClipboardModule } from './clipboardModule';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ClipboardModule } from "./clipboardModule";
|
|
@@ -0,0 +1,32 @@
|
|
|
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(
|
|
14
|
+
displayName: string | null,
|
|
15
|
+
columnOrGroup: Column | ProvidedColumnGroup,
|
|
16
|
+
dept: number,
|
|
17
|
+
group?: boolean,
|
|
18
|
+
expanded?: boolean,
|
|
19
|
+
);
|
|
20
|
+
isGroup(): boolean;
|
|
21
|
+
getDisplayName(): string | null;
|
|
22
|
+
getColumnGroup(): ProvidedColumnGroup;
|
|
23
|
+
getColumn(): Column;
|
|
24
|
+
getDept(): number;
|
|
25
|
+
isExpanded(): boolean;
|
|
26
|
+
getChildren(): ColumnModelItem[];
|
|
27
|
+
isPassesFilter(): boolean;
|
|
28
|
+
setExpanded(expanded: boolean): void;
|
|
29
|
+
setPassesFilter(passesFilter: boolean): void;
|
|
30
|
+
addEventListener(eventType: string, listener: Function): void;
|
|
31
|
+
removeEventListener(eventType: string, listener: Function): void;
|
|
32
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2
|
+
|
|
3
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4
|
+
|
|
5
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
|
+
|
|
7
|
+
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
|
+
|
|
13
|
+
_classCallCheck(this, ColumnModelItem);
|
|
14
|
+
|
|
15
|
+
this.eventService = new EventService();
|
|
16
|
+
this.displayName = displayName;
|
|
17
|
+
this.dept = dept;
|
|
18
|
+
this.group = group;
|
|
19
|
+
|
|
20
|
+
if (group) {
|
|
21
|
+
this.columnGroup = columnOrGroup;
|
|
22
|
+
this.expanded = expanded;
|
|
23
|
+
this.children = [];
|
|
24
|
+
} else {
|
|
25
|
+
this.column = columnOrGroup;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
_createClass(ColumnModelItem, [{
|
|
30
|
+
key: "isGroup",
|
|
31
|
+
value: function isGroup() {
|
|
32
|
+
return this.group;
|
|
33
|
+
}
|
|
34
|
+
}, {
|
|
35
|
+
key: "getDisplayName",
|
|
36
|
+
value: function getDisplayName() {
|
|
37
|
+
return this.displayName;
|
|
38
|
+
}
|
|
39
|
+
}, {
|
|
40
|
+
key: "getColumnGroup",
|
|
41
|
+
value: function getColumnGroup() {
|
|
42
|
+
return this.columnGroup;
|
|
43
|
+
}
|
|
44
|
+
}, {
|
|
45
|
+
key: "getColumn",
|
|
46
|
+
value: function getColumn() {
|
|
47
|
+
return this.column;
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
key: "getDept",
|
|
51
|
+
value: function getDept() {
|
|
52
|
+
return this.dept;
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
key: "isExpanded",
|
|
56
|
+
value: function isExpanded() {
|
|
57
|
+
return !!this.expanded;
|
|
58
|
+
}
|
|
59
|
+
}, {
|
|
60
|
+
key: "getChildren",
|
|
61
|
+
value: function getChildren() {
|
|
62
|
+
return this.children;
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
key: "isPassesFilter",
|
|
66
|
+
value: function isPassesFilter() {
|
|
67
|
+
return this.passesFilter;
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
key: "setExpanded",
|
|
71
|
+
value: function setExpanded(expanded) {
|
|
72
|
+
if (expanded === this.expanded) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
this.expanded = expanded;
|
|
77
|
+
this.eventService.dispatchEvent({
|
|
78
|
+
type: ColumnModelItem.EVENT_EXPANDED_CHANGED
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}, {
|
|
82
|
+
key: "setPassesFilter",
|
|
83
|
+
value: function setPassesFilter(passesFilter) {
|
|
84
|
+
this.passesFilter = passesFilter;
|
|
85
|
+
}
|
|
86
|
+
}, {
|
|
87
|
+
key: "addEventListener",
|
|
88
|
+
value: function addEventListener(eventType, listener) {
|
|
89
|
+
this.eventService.addEventListener(eventType, listener);
|
|
90
|
+
}
|
|
91
|
+
}, {
|
|
92
|
+
key: "removeEventListener",
|
|
93
|
+
value: function removeEventListener(eventType, listener) {
|
|
94
|
+
this.eventService.removeEventListener(eventType, listener);
|
|
95
|
+
}
|
|
96
|
+
}]);
|
|
97
|
+
|
|
98
|
+
return ColumnModelItem;
|
|
99
|
+
}();
|
|
100
|
+
ColumnModelItem.EVENT_EXPANDED_CHANGED = 'expandedChanged';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ColDef,
|
|
3
|
+
ColGroupDef,
|
|
4
|
+
Component,
|
|
5
|
+
IColumnToolPanel,
|
|
6
|
+
IToolPanelComp,
|
|
7
|
+
IToolPanelParams,
|
|
8
|
+
} from '@ag-grid-community/core';
|
|
9
|
+
export interface ToolPanelColumnCompParams extends IToolPanelParams {
|
|
10
|
+
suppressColumnMove: boolean;
|
|
11
|
+
suppressRowGroups: boolean;
|
|
12
|
+
suppressValues: boolean;
|
|
13
|
+
suppressPivots: boolean;
|
|
14
|
+
suppressPivotMode: boolean;
|
|
15
|
+
suppressColumnFilter: boolean;
|
|
16
|
+
suppressColumnSelectAll: boolean;
|
|
17
|
+
suppressColumnExpandAll: boolean;
|
|
18
|
+
contractColumnSelection: boolean;
|
|
19
|
+
suppressSyncLayoutWithGrid: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare class ColumnToolPanel extends Component implements IColumnToolPanel, IToolPanelComp {
|
|
22
|
+
private static TEMPLATE;
|
|
23
|
+
private gridApi;
|
|
24
|
+
private columnApi;
|
|
25
|
+
private initialised;
|
|
26
|
+
private params;
|
|
27
|
+
private childDestroyFuncs;
|
|
28
|
+
private pivotModePanel;
|
|
29
|
+
private primaryColsPanel;
|
|
30
|
+
private rowGroupDropZonePanel;
|
|
31
|
+
private valuesDropZonePanel;
|
|
32
|
+
private pivotDropZonePanel;
|
|
33
|
+
constructor();
|
|
34
|
+
setVisible(visible: boolean): void;
|
|
35
|
+
init(params: ToolPanelColumnCompParams): void;
|
|
36
|
+
setPivotModeSectionVisible(visible: boolean): void;
|
|
37
|
+
setRowGroupsSectionVisible(visible: boolean): void;
|
|
38
|
+
setValuesSectionVisible(visible: boolean): void;
|
|
39
|
+
setPivotSectionVisible(visible: boolean): void;
|
|
40
|
+
private setResizers;
|
|
41
|
+
private setLastVisible;
|
|
42
|
+
private resetChildrenHeight;
|
|
43
|
+
private isRowGroupingModuleLoaded;
|
|
44
|
+
expandColumnGroups(groupIds?: string[]): void;
|
|
45
|
+
collapseColumnGroups(groupIds?: string[]): void;
|
|
46
|
+
setColumnLayout(colDefs: (ColDef | ColGroupDef)[]): void;
|
|
47
|
+
syncLayoutWithGrid(): void;
|
|
48
|
+
destroyChildren(): void;
|
|
49
|
+
refresh(): void;
|
|
50
|
+
destroy(): void;
|
|
51
|
+
}
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2
|
+
|
|
3
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4
|
+
|
|
5
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
|
+
|
|
7
|
+
function _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); }
|
|
8
|
+
|
|
9
|
+
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
10
|
+
|
|
11
|
+
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); }
|
|
12
|
+
|
|
13
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
14
|
+
|
|
15
|
+
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); }; }
|
|
16
|
+
|
|
17
|
+
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); }
|
|
18
|
+
|
|
19
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
20
|
+
|
|
21
|
+
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; } }
|
|
22
|
+
|
|
23
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
|
+
|
|
25
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
26
|
+
|
|
27
|
+
var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
|
|
28
|
+
var c = arguments.length,
|
|
29
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
30
|
+
d;
|
|
31
|
+
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--) {
|
|
32
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
33
|
+
}
|
|
34
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
import { _, Autowired, Component, Events, ModuleNames, ModuleRegistry } from '@ag-grid-community/core';
|
|
38
|
+
import { PivotModePanel } from "./pivotModePanel";
|
|
39
|
+
import { PivotDropZonePanel, RowGroupDropZonePanel, ValuesDropZonePanel } from "../../row-grouping";
|
|
40
|
+
import { PrimaryColsPanel } from "./primaryColsPanel";
|
|
41
|
+
export var ColumnToolPanel = /*#__PURE__*/function (_Component) {
|
|
42
|
+
_inherits(ColumnToolPanel, _Component);
|
|
43
|
+
|
|
44
|
+
var _super = _createSuper(ColumnToolPanel);
|
|
45
|
+
|
|
46
|
+
function ColumnToolPanel() {
|
|
47
|
+
var _this;
|
|
48
|
+
|
|
49
|
+
_classCallCheck(this, ColumnToolPanel);
|
|
50
|
+
|
|
51
|
+
_this = _super.call(this, ColumnToolPanel.TEMPLATE);
|
|
52
|
+
_this.initialised = false;
|
|
53
|
+
_this.childDestroyFuncs = [];
|
|
54
|
+
return _this;
|
|
55
|
+
} // lazy initialise the panel
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
_createClass(ColumnToolPanel, [{
|
|
59
|
+
key: "setVisible",
|
|
60
|
+
value: function setVisible(visible) {
|
|
61
|
+
_get(_getPrototypeOf(ColumnToolPanel.prototype), "setDisplayed", this).call(this, visible);
|
|
62
|
+
|
|
63
|
+
if (visible && !this.initialised) {
|
|
64
|
+
this.init(this.params);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}, {
|
|
68
|
+
key: "init",
|
|
69
|
+
value: function init(params) {
|
|
70
|
+
var _this2 = this;
|
|
71
|
+
|
|
72
|
+
var defaultParams = {
|
|
73
|
+
suppressColumnMove: false,
|
|
74
|
+
suppressColumnSelectAll: false,
|
|
75
|
+
suppressColumnFilter: false,
|
|
76
|
+
suppressColumnExpandAll: false,
|
|
77
|
+
contractColumnSelection: false,
|
|
78
|
+
suppressPivotMode: false,
|
|
79
|
+
suppressRowGroups: false,
|
|
80
|
+
suppressValues: false,
|
|
81
|
+
suppressPivots: false,
|
|
82
|
+
suppressSyncLayoutWithGrid: false,
|
|
83
|
+
api: this.gridApi,
|
|
84
|
+
columnApi: this.columnApi
|
|
85
|
+
};
|
|
86
|
+
this.params = Object.assign(Object.assign(Object.assign({}, defaultParams), params), {
|
|
87
|
+
context: this.gridOptionsWrapper.getContext()
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
if (this.isRowGroupingModuleLoaded() && !this.params.suppressPivotMode) {
|
|
91
|
+
// DO NOT CHANGE TO createManagedBean
|
|
92
|
+
this.pivotModePanel = this.createBean(new PivotModePanel());
|
|
93
|
+
this.childDestroyFuncs.push(function () {
|
|
94
|
+
return _this2.destroyBean(_this2.pivotModePanel);
|
|
95
|
+
});
|
|
96
|
+
this.appendChild(this.pivotModePanel);
|
|
97
|
+
} // DO NOT CHANGE TO createManagedBean
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
this.primaryColsPanel = this.createBean(new PrimaryColsPanel());
|
|
101
|
+
this.childDestroyFuncs.push(function () {
|
|
102
|
+
return _this2.destroyBean(_this2.primaryColsPanel);
|
|
103
|
+
});
|
|
104
|
+
this.primaryColsPanel.init(true, this.params, 'toolPanelUi');
|
|
105
|
+
this.primaryColsPanel.addCssClass('ag-column-panel-column-select');
|
|
106
|
+
this.appendChild(this.primaryColsPanel);
|
|
107
|
+
|
|
108
|
+
if (this.isRowGroupingModuleLoaded()) {
|
|
109
|
+
if (!this.params.suppressRowGroups) {
|
|
110
|
+
// DO NOT CHANGE TO createManagedBean
|
|
111
|
+
this.rowGroupDropZonePanel = this.createBean(new RowGroupDropZonePanel(false));
|
|
112
|
+
this.childDestroyFuncs.push(function () {
|
|
113
|
+
return _this2.destroyBean(_this2.rowGroupDropZonePanel);
|
|
114
|
+
});
|
|
115
|
+
this.appendChild(this.rowGroupDropZonePanel);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (!this.params.suppressValues) {
|
|
119
|
+
// DO NOT CHANGE TO createManagedBean
|
|
120
|
+
this.valuesDropZonePanel = this.createBean(new ValuesDropZonePanel(false));
|
|
121
|
+
this.childDestroyFuncs.push(function () {
|
|
122
|
+
return _this2.destroyBean(_this2.valuesDropZonePanel);
|
|
123
|
+
});
|
|
124
|
+
this.appendChild(this.valuesDropZonePanel);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (!this.params.suppressPivots) {
|
|
128
|
+
// DO NOT CHANGE TO createManagedBean
|
|
129
|
+
this.pivotDropZonePanel = this.createBean(new PivotDropZonePanel(false));
|
|
130
|
+
this.childDestroyFuncs.push(function () {
|
|
131
|
+
return _this2.destroyBean(_this2.pivotDropZonePanel);
|
|
132
|
+
});
|
|
133
|
+
this.appendChild(this.pivotDropZonePanel);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
this.setLastVisible();
|
|
137
|
+
var pivotModeListener = this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, function () {
|
|
138
|
+
_this2.resetChildrenHeight();
|
|
139
|
+
|
|
140
|
+
_this2.setLastVisible();
|
|
141
|
+
});
|
|
142
|
+
this.childDestroyFuncs.push(function () {
|
|
143
|
+
return pivotModeListener();
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
this.initialised = true;
|
|
148
|
+
}
|
|
149
|
+
}, {
|
|
150
|
+
key: "setPivotModeSectionVisible",
|
|
151
|
+
value: function setPivotModeSectionVisible(visible) {
|
|
152
|
+
var _this3 = this;
|
|
153
|
+
|
|
154
|
+
if (!this.isRowGroupingModuleLoaded()) {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (this.pivotModePanel) {
|
|
159
|
+
this.pivotModePanel.setDisplayed(visible);
|
|
160
|
+
} else if (visible) {
|
|
161
|
+
this.pivotModePanel = this.createBean(new PivotModePanel()); // ensure pivot mode panel is positioned at the top of the columns tool panel
|
|
162
|
+
|
|
163
|
+
this.getGui().insertBefore(this.pivotModePanel.getGui(), this.getGui().firstChild);
|
|
164
|
+
this.childDestroyFuncs.push(function () {
|
|
165
|
+
return _this3.destroyBean(_this3.pivotModePanel);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
this.setLastVisible();
|
|
170
|
+
}
|
|
171
|
+
}, {
|
|
172
|
+
key: "setRowGroupsSectionVisible",
|
|
173
|
+
value: function setRowGroupsSectionVisible(visible) {
|
|
174
|
+
if (!this.isRowGroupingModuleLoaded()) {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (this.rowGroupDropZonePanel) {
|
|
179
|
+
this.rowGroupDropZonePanel.setDisplayed(visible);
|
|
180
|
+
} else if (visible) {
|
|
181
|
+
this.rowGroupDropZonePanel = this.createManagedBean(new RowGroupDropZonePanel(false));
|
|
182
|
+
this.appendChild(this.rowGroupDropZonePanel);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
this.setLastVisible();
|
|
186
|
+
}
|
|
187
|
+
}, {
|
|
188
|
+
key: "setValuesSectionVisible",
|
|
189
|
+
value: function setValuesSectionVisible(visible) {
|
|
190
|
+
if (!this.isRowGroupingModuleLoaded()) {
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (this.valuesDropZonePanel) {
|
|
195
|
+
this.valuesDropZonePanel.setDisplayed(visible);
|
|
196
|
+
} else if (visible) {
|
|
197
|
+
this.valuesDropZonePanel = this.createManagedBean(new ValuesDropZonePanel(false));
|
|
198
|
+
this.appendChild(this.valuesDropZonePanel);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
this.setLastVisible();
|
|
202
|
+
}
|
|
203
|
+
}, {
|
|
204
|
+
key: "setPivotSectionVisible",
|
|
205
|
+
value: function setPivotSectionVisible(visible) {
|
|
206
|
+
if (!this.isRowGroupingModuleLoaded()) {
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
if (this.pivotDropZonePanel) {
|
|
211
|
+
this.pivotDropZonePanel.setDisplayed(visible);
|
|
212
|
+
} else if (visible) {
|
|
213
|
+
this.pivotDropZonePanel = this.createManagedBean(new PivotDropZonePanel(false));
|
|
214
|
+
this.appendChild(this.pivotDropZonePanel);
|
|
215
|
+
this.pivotDropZonePanel.setDisplayed(visible);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
this.setLastVisible();
|
|
219
|
+
}
|
|
220
|
+
}, {
|
|
221
|
+
key: "setResizers",
|
|
222
|
+
value: function setResizers() {
|
|
223
|
+
[this.primaryColsPanel, this.rowGroupDropZonePanel, this.valuesDropZonePanel, this.pivotDropZonePanel].forEach(function (panel) {
|
|
224
|
+
if (!panel) {
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
var eGui = panel.getGui();
|
|
229
|
+
panel.toggleResizable(!eGui.classList.contains('ag-last-column-drop') && !eGui.classList.contains('ag-hidden'));
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
}, {
|
|
233
|
+
key: "setLastVisible",
|
|
234
|
+
value: function setLastVisible() {
|
|
235
|
+
var eGui = this.getGui();
|
|
236
|
+
var columnDrops = Array.prototype.slice.call(eGui.querySelectorAll('.ag-column-drop'));
|
|
237
|
+
columnDrops.forEach(function (columnDrop) {
|
|
238
|
+
return columnDrop.classList.remove('ag-last-column-drop');
|
|
239
|
+
});
|
|
240
|
+
var columnDropEls = eGui.querySelectorAll('.ag-column-drop:not(.ag-hidden)');
|
|
241
|
+
|
|
242
|
+
var lastVisible = _.last(columnDropEls);
|
|
243
|
+
|
|
244
|
+
if (lastVisible) {
|
|
245
|
+
lastVisible.classList.add('ag-last-column-drop');
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
this.setResizers();
|
|
249
|
+
}
|
|
250
|
+
}, {
|
|
251
|
+
key: "resetChildrenHeight",
|
|
252
|
+
value: function resetChildrenHeight() {
|
|
253
|
+
var eGui = this.getGui();
|
|
254
|
+
var children = eGui.children;
|
|
255
|
+
|
|
256
|
+
for (var i = 0; i < children.length; i++) {
|
|
257
|
+
var child = children[i];
|
|
258
|
+
child.style.removeProperty('height');
|
|
259
|
+
child.style.removeProperty('flex');
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}, {
|
|
263
|
+
key: "isRowGroupingModuleLoaded",
|
|
264
|
+
value: function isRowGroupingModuleLoaded() {
|
|
265
|
+
return ModuleRegistry.assertRegistered(ModuleNames.RowGroupingModule, 'Row Grouping');
|
|
266
|
+
}
|
|
267
|
+
}, {
|
|
268
|
+
key: "expandColumnGroups",
|
|
269
|
+
value: function expandColumnGroups(groupIds) {
|
|
270
|
+
this.primaryColsPanel.expandGroups(groupIds);
|
|
271
|
+
}
|
|
272
|
+
}, {
|
|
273
|
+
key: "collapseColumnGroups",
|
|
274
|
+
value: function collapseColumnGroups(groupIds) {
|
|
275
|
+
this.primaryColsPanel.collapseGroups(groupIds);
|
|
276
|
+
}
|
|
277
|
+
}, {
|
|
278
|
+
key: "setColumnLayout",
|
|
279
|
+
value: function setColumnLayout(colDefs) {
|
|
280
|
+
this.primaryColsPanel.setColumnLayout(colDefs);
|
|
281
|
+
}
|
|
282
|
+
}, {
|
|
283
|
+
key: "syncLayoutWithGrid",
|
|
284
|
+
value: function syncLayoutWithGrid() {
|
|
285
|
+
this.primaryColsPanel.syncLayoutWithGrid();
|
|
286
|
+
}
|
|
287
|
+
}, {
|
|
288
|
+
key: "destroyChildren",
|
|
289
|
+
value: function destroyChildren() {
|
|
290
|
+
this.childDestroyFuncs.forEach(function (func) {
|
|
291
|
+
return func();
|
|
292
|
+
});
|
|
293
|
+
this.childDestroyFuncs.length = 0;
|
|
294
|
+
|
|
295
|
+
_.clearElement(this.getGui());
|
|
296
|
+
}
|
|
297
|
+
}, {
|
|
298
|
+
key: "refresh",
|
|
299
|
+
value: function refresh() {
|
|
300
|
+
this.destroyChildren();
|
|
301
|
+
this.init(this.params);
|
|
302
|
+
} // this is a user component, and IComponent has "public destroy()" as part of the interface.
|
|
303
|
+
// so this must be public.
|
|
304
|
+
|
|
305
|
+
}, {
|
|
306
|
+
key: "destroy",
|
|
307
|
+
value: function destroy() {
|
|
308
|
+
this.destroyChildren();
|
|
309
|
+
|
|
310
|
+
_get(_getPrototypeOf(ColumnToolPanel.prototype), "destroy", this).call(this);
|
|
311
|
+
}
|
|
312
|
+
}]);
|
|
313
|
+
|
|
314
|
+
return ColumnToolPanel;
|
|
315
|
+
}(Component);
|
|
316
|
+
ColumnToolPanel.TEMPLATE = "<div class=\"ag-column-panel\"></div>";
|
|
317
|
+
|
|
318
|
+
__decorate([Autowired('gridApi')], ColumnToolPanel.prototype, 'gridApi', void 0);
|
|
319
|
+
|
|
320
|
+
__decorate([Autowired('columnApi')], ColumnToolPanel.prototype, 'columnApi', void 0);
|
|
@@ -0,0 +1,20 @@
|
|
|
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 gridOptionsWrapper;
|
|
7
|
+
private eventService;
|
|
8
|
+
selectAllChildren(
|
|
9
|
+
colTree: ColumnModelItem[],
|
|
10
|
+
selectAllChecked: boolean,
|
|
11
|
+
eventType: ColumnEventType,
|
|
12
|
+
): void;
|
|
13
|
+
setColumn(col: Column, selectAllChecked: boolean, eventType: ColumnEventType): void;
|
|
14
|
+
setAllColumns(cols: Column[], selectAllChecked: boolean, eventType: ColumnEventType): void;
|
|
15
|
+
private extractAllLeafColumns;
|
|
16
|
+
private setAllVisible;
|
|
17
|
+
private setAllPivot;
|
|
18
|
+
private setAllPivotPassive;
|
|
19
|
+
private setAllPivotActive;
|
|
20
|
+
}
|