@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,565 @@
|
|
|
1
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2
|
+
|
|
3
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4
|
+
|
|
5
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
|
+
|
|
7
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
8
|
+
|
|
9
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10
|
+
|
|
11
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12
|
+
|
|
13
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
14
|
+
|
|
15
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
16
|
+
|
|
17
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
18
|
+
|
|
19
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
20
|
+
|
|
21
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
22
|
+
|
|
23
|
+
var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
|
|
24
|
+
var c = arguments.length,
|
|
25
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
26
|
+
d;
|
|
27
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === 'object' && typeof Reflect.decorate === 'function') r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
28
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
29
|
+
}
|
|
30
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
import { _, Autowired, Bean, BeanStub, Constants, ModuleNames, ModuleRegistry, Optional } from '@ag-grid-community/core';
|
|
34
|
+
|
|
35
|
+
var MenuItemMapper = /*#__PURE__*/function (_BeanStub) {
|
|
36
|
+
_inherits(MenuItemMapper, _BeanStub);
|
|
37
|
+
|
|
38
|
+
var _super = _createSuper(MenuItemMapper);
|
|
39
|
+
|
|
40
|
+
function MenuItemMapper() {
|
|
41
|
+
_classCallCheck(this, MenuItemMapper);
|
|
42
|
+
|
|
43
|
+
return _super.apply(this, arguments);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
_createClass(MenuItemMapper, [{
|
|
47
|
+
key: "mapWithStockItems",
|
|
48
|
+
value: function mapWithStockItems(originalList, column) {
|
|
49
|
+
var _this = this;
|
|
50
|
+
|
|
51
|
+
if (!originalList) {
|
|
52
|
+
return [];
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
var resultList = [];
|
|
56
|
+
originalList.forEach(function (menuItemOrString) {
|
|
57
|
+
var result;
|
|
58
|
+
|
|
59
|
+
if (typeof menuItemOrString === 'string') {
|
|
60
|
+
result = _this.getStockMenuItem(menuItemOrString, column);
|
|
61
|
+
} else {
|
|
62
|
+
result = menuItemOrString;
|
|
63
|
+
} // if no mapping, can happen when module is not loaded but user tries to use module anyway
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
if (!result) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
var resultDef = result;
|
|
71
|
+
var subMenu = resultDef.subMenu;
|
|
72
|
+
|
|
73
|
+
if (subMenu && subMenu instanceof Array) {
|
|
74
|
+
resultDef.subMenu = _this.mapWithStockItems(resultDef.subMenu, column);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (result != null) {
|
|
78
|
+
resultList.push(result);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
return resultList;
|
|
82
|
+
}
|
|
83
|
+
}, {
|
|
84
|
+
key: "getStockMenuItem",
|
|
85
|
+
value: function getStockMenuItem(key, column) {
|
|
86
|
+
var _this2 = this;
|
|
87
|
+
|
|
88
|
+
var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();
|
|
89
|
+
var skipHeaderOnAutoSize = this.gridOptionsWrapper.isSkipHeaderOnAutoSize();
|
|
90
|
+
|
|
91
|
+
switch (key) {
|
|
92
|
+
case 'pinSubMenu':
|
|
93
|
+
return {
|
|
94
|
+
name: localeTextFunc('pinColumn', 'Pin Column'),
|
|
95
|
+
icon: _.createIconNoSpan('menuPin', this.gridOptionsWrapper, null),
|
|
96
|
+
subMenu: ['pinLeft', 'pinRight', 'clearPinned']
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
case 'pinLeft':
|
|
100
|
+
return {
|
|
101
|
+
name: localeTextFunc('pinLeft', 'Pin Left'),
|
|
102
|
+
action: function action() {
|
|
103
|
+
return _this2.columnModel.setColumnPinned(column, Constants.PINNED_LEFT, 'contextMenu');
|
|
104
|
+
},
|
|
105
|
+
checked: !!column && column.isPinnedLeft()
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
case 'pinRight':
|
|
109
|
+
return {
|
|
110
|
+
name: localeTextFunc('pinRight', 'Pin Right'),
|
|
111
|
+
action: function action() {
|
|
112
|
+
return _this2.columnModel.setColumnPinned(column, Constants.PINNED_RIGHT, 'contextMenu');
|
|
113
|
+
},
|
|
114
|
+
checked: !!column && column.isPinnedRight()
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
case 'clearPinned':
|
|
118
|
+
return {
|
|
119
|
+
name: localeTextFunc('noPin', 'No Pin'),
|
|
120
|
+
action: function action() {
|
|
121
|
+
return _this2.columnModel.setColumnPinned(column, null, 'contextMenu');
|
|
122
|
+
},
|
|
123
|
+
checked: !!column && !column.isPinned()
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
case 'valueAggSubMenu':
|
|
127
|
+
if (ModuleRegistry.assertRegistered(ModuleNames.RowGroupingModule, 'Aggregation from Menu')) {
|
|
128
|
+
return {
|
|
129
|
+
name: localeTextFunc('valueAggregation', 'Value Aggregation'),
|
|
130
|
+
icon: _.createIconNoSpan('menuValue', this.gridOptionsWrapper, null),
|
|
131
|
+
subMenu: this.createAggregationSubMenu(column)
|
|
132
|
+
};
|
|
133
|
+
} else {
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
case 'autoSizeThis':
|
|
138
|
+
return {
|
|
139
|
+
name: localeTextFunc('autosizeThiscolumn', 'Autosize This Column'),
|
|
140
|
+
action: function action() {
|
|
141
|
+
return _this2.columnModel.autoSizeColumn(column, skipHeaderOnAutoSize, 'contextMenu');
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
case 'autoSizeAll':
|
|
146
|
+
return {
|
|
147
|
+
name: localeTextFunc('autosizeAllColumns', 'Autosize All Columns'),
|
|
148
|
+
action: function action() {
|
|
149
|
+
return _this2.columnModel.autoSizeAllColumns(skipHeaderOnAutoSize, 'contextMenu');
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
case 'rowGroup':
|
|
154
|
+
return {
|
|
155
|
+
name: localeTextFunc('groupBy', 'Group by') + ' ' + _.escapeString(this.columnModel.getDisplayNameForColumn(column, 'header')),
|
|
156
|
+
action: function action() {
|
|
157
|
+
return _this2.columnModel.addRowGroupColumn(column, 'contextMenu');
|
|
158
|
+
},
|
|
159
|
+
icon: _.createIconNoSpan('menuAddRowGroup', this.gridOptionsWrapper, null)
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
case 'rowUnGroup':
|
|
163
|
+
return {
|
|
164
|
+
name: localeTextFunc('ungroupBy', 'Un-Group by') + ' ' + _.escapeString(this.columnModel.getDisplayNameForColumn(column, 'header')),
|
|
165
|
+
action: function action() {
|
|
166
|
+
return _this2.columnModel.removeRowGroupColumn(column, 'contextMenu');
|
|
167
|
+
},
|
|
168
|
+
icon: _.createIconNoSpan('menuRemoveRowGroup', this.gridOptionsWrapper, null)
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
case 'resetColumns':
|
|
172
|
+
return {
|
|
173
|
+
name: localeTextFunc('resetColumns', 'Reset Columns'),
|
|
174
|
+
action: function action() {
|
|
175
|
+
return _this2.columnModel.resetColumnState('contextMenu');
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
case 'expandAll':
|
|
180
|
+
return {
|
|
181
|
+
name: localeTextFunc('expandAll', 'Expand All'),
|
|
182
|
+
action: function action() {
|
|
183
|
+
return _this2.gridApi.expandAll();
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
case 'contractAll':
|
|
188
|
+
return {
|
|
189
|
+
name: localeTextFunc('collapseAll', 'Collapse All'),
|
|
190
|
+
action: function action() {
|
|
191
|
+
return _this2.gridApi.collapseAll();
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
case 'copy':
|
|
196
|
+
if (ModuleRegistry.assertRegistered(ModuleNames.ClipboardModule, 'Copy from Menu')) {
|
|
197
|
+
return {
|
|
198
|
+
name: localeTextFunc('copy', 'Copy'),
|
|
199
|
+
shortcut: localeTextFunc('ctrlC', 'Ctrl+C'),
|
|
200
|
+
icon: _.createIconNoSpan('clipboardCopy', this.gridOptionsWrapper, null),
|
|
201
|
+
action: function action() {
|
|
202
|
+
return _this2.clipboardService.copyToClipboard();
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
} else {
|
|
206
|
+
return null;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
case 'copyWithHeaders':
|
|
210
|
+
if (ModuleRegistry.assertRegistered(ModuleNames.ClipboardModule, 'Copy with Headers from Menu')) {
|
|
211
|
+
return {
|
|
212
|
+
name: localeTextFunc('copyWithHeaders', 'Copy with Headers'),
|
|
213
|
+
// shortcut: localeTextFunc('ctrlC','Ctrl+C'),
|
|
214
|
+
icon: _.createIconNoSpan('clipboardCopy', this.gridOptionsWrapper, null),
|
|
215
|
+
action: function action() {
|
|
216
|
+
return _this2.clipboardService.copyToClipboard({
|
|
217
|
+
includeHeaders: true
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
} else {
|
|
222
|
+
return null;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
case 'copyWithGroupHeaders':
|
|
226
|
+
if (ModuleRegistry.assertRegistered(ModuleNames.ClipboardModule, 'Copy with Group Headers from Menu')) {
|
|
227
|
+
return {
|
|
228
|
+
name: localeTextFunc('copyWithGroupHeaders', 'Copy with Group Headers'),
|
|
229
|
+
// shortcut: localeTextFunc('ctrlC','Ctrl+C'),
|
|
230
|
+
icon: _.createIconNoSpan('clipboardCopy', this.gridOptionsWrapper, null),
|
|
231
|
+
action: function action() {
|
|
232
|
+
return _this2.clipboardService.copyToClipboard({
|
|
233
|
+
includeHeaders: true,
|
|
234
|
+
includeGroupHeaders: true
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
} else {
|
|
239
|
+
return null;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
case 'paste':
|
|
243
|
+
if (ModuleRegistry.assertRegistered(ModuleNames.ClipboardModule, 'Paste from Clipboard')) {
|
|
244
|
+
return {
|
|
245
|
+
name: localeTextFunc('paste', 'Paste'),
|
|
246
|
+
shortcut: localeTextFunc('ctrlV', 'Ctrl+V'),
|
|
247
|
+
disabled: true,
|
|
248
|
+
icon: _.createIconNoSpan('clipboardPaste', this.gridOptionsWrapper, null),
|
|
249
|
+
action: function action() {
|
|
250
|
+
return _this2.clipboardService.pasteFromClipboard();
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
} else {
|
|
254
|
+
return null;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
case 'export':
|
|
258
|
+
var exportSubMenuItems = [];
|
|
259
|
+
var csvModuleLoaded = ModuleRegistry.isRegistered(ModuleNames.CsvExportModule);
|
|
260
|
+
var excelModuleLoaded = ModuleRegistry.isRegistered(ModuleNames.ExcelExportModule);
|
|
261
|
+
|
|
262
|
+
if (!this.gridOptionsWrapper.isSuppressCsvExport() && csvModuleLoaded) {
|
|
263
|
+
exportSubMenuItems.push('csvExport');
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
if (!this.gridOptionsWrapper.isSuppressExcelExport() && excelModuleLoaded) {
|
|
267
|
+
exportSubMenuItems.push('excelExport');
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
return {
|
|
271
|
+
name: localeTextFunc('export', 'Export'),
|
|
272
|
+
subMenu: exportSubMenuItems,
|
|
273
|
+
icon: _.createIconNoSpan('save', this.gridOptionsWrapper, null)
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
case 'csvExport':
|
|
277
|
+
return {
|
|
278
|
+
name: localeTextFunc('csvExport', 'CSV Export'),
|
|
279
|
+
icon: _.createIconNoSpan('csvExport', this.gridOptionsWrapper, null),
|
|
280
|
+
action: function action() {
|
|
281
|
+
return _this2.gridApi.exportDataAsCsv({});
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
case 'excelExport':
|
|
286
|
+
return {
|
|
287
|
+
name: localeTextFunc('excelExport', 'Excel Export'),
|
|
288
|
+
icon: _.createIconNoSpan('excelExport', this.gridOptionsWrapper, null),
|
|
289
|
+
action: function action() {
|
|
290
|
+
return _this2.gridApi.exportDataAsExcel();
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
case 'separator':
|
|
295
|
+
return 'separator';
|
|
296
|
+
|
|
297
|
+
default:
|
|
298
|
+
var chartMenuItem = this.getChartItems(key);
|
|
299
|
+
|
|
300
|
+
if (chartMenuItem) {
|
|
301
|
+
return chartMenuItem;
|
|
302
|
+
} else {
|
|
303
|
+
console.warn("AG Grid: unknown menu item type ".concat(key));
|
|
304
|
+
return null;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}, {
|
|
310
|
+
key: "getChartItems",
|
|
311
|
+
value: function getChartItems(key) {
|
|
312
|
+
var _this3 = this;
|
|
313
|
+
|
|
314
|
+
var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();
|
|
315
|
+
|
|
316
|
+
var pivotChartMenuItem = function pivotChartMenuItem(localeKey, defaultText, chartType) {
|
|
317
|
+
return {
|
|
318
|
+
name: localeTextFunc(localeKey, defaultText),
|
|
319
|
+
action: function action() {
|
|
320
|
+
return _this3.chartService.createPivotChart({
|
|
321
|
+
chartType: chartType
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
var rangeChartMenuItem = function rangeChartMenuItem(localeKey, defaultText, chartType) {
|
|
328
|
+
return {
|
|
329
|
+
name: localeTextFunc(localeKey, defaultText),
|
|
330
|
+
action: function action() {
|
|
331
|
+
return _this3.chartService.createChartFromCurrentRange(chartType);
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
switch (key) {
|
|
337
|
+
case 'pivotChart':
|
|
338
|
+
return {
|
|
339
|
+
name: localeTextFunc('pivotChart', 'Pivot Chart'),
|
|
340
|
+
subMenu: ['pivotColumnChart', 'pivotBarChart', 'pivotPieChart', 'pivotLineChart', 'pivotXYChart', 'pivotAreaChart'],
|
|
341
|
+
icon: _.createIconNoSpan('chart', this.gridOptionsWrapper, null)
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
case 'chartRange':
|
|
345
|
+
return {
|
|
346
|
+
name: localeTextFunc('chartRange', 'Chart Range'),
|
|
347
|
+
subMenu: ['rangeColumnChart', 'rangeBarChart', 'rangePieChart', 'rangeLineChart', 'rangeXYChart', 'rangeAreaChart', 'rangeHistogramChart', 'rangeCombinationChart'],
|
|
348
|
+
icon: _.createIconNoSpan('chart', this.gridOptionsWrapper, null)
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
case 'pivotColumnChart':
|
|
352
|
+
return {
|
|
353
|
+
name: localeTextFunc('columnChart', 'Column'),
|
|
354
|
+
subMenu: ['pivotGroupedColumn', 'pivotStackedColumn', 'pivotNormalizedColumn']
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
case 'pivotGroupedColumn':
|
|
358
|
+
return pivotChartMenuItem('groupedColumn', 'Grouped‎', 'groupedColumn');
|
|
359
|
+
|
|
360
|
+
case 'pivotStackedColumn':
|
|
361
|
+
return pivotChartMenuItem('stackedColumn', 'Stacked‎', 'stackedColumn');
|
|
362
|
+
|
|
363
|
+
case 'pivotNormalizedColumn':
|
|
364
|
+
return pivotChartMenuItem('normalizedColumn', '100% Stacked‎', 'normalizedColumn');
|
|
365
|
+
|
|
366
|
+
case 'rangeColumnChart':
|
|
367
|
+
return {
|
|
368
|
+
name: localeTextFunc('columnChart', 'Column'),
|
|
369
|
+
subMenu: ['rangeGroupedColumn', 'rangeStackedColumn', 'rangeNormalizedColumn']
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
case 'rangeGroupedColumn':
|
|
373
|
+
return rangeChartMenuItem('groupedColumn', 'Grouped‎', 'groupedColumn');
|
|
374
|
+
|
|
375
|
+
case 'rangeStackedColumn':
|
|
376
|
+
return rangeChartMenuItem('stackedColumn', 'Stacked‎', 'stackedColumn');
|
|
377
|
+
|
|
378
|
+
case 'rangeNormalizedColumn':
|
|
379
|
+
return rangeChartMenuItem('normalizedColumn', '100% Stacked‎', 'normalizedColumn');
|
|
380
|
+
|
|
381
|
+
case 'pivotBarChart':
|
|
382
|
+
return {
|
|
383
|
+
name: localeTextFunc('barChart', 'Bar'),
|
|
384
|
+
subMenu: ['pivotGroupedBar', 'pivotStackedBar', 'pivotNormalizedBar']
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
case 'pivotGroupedBar':
|
|
388
|
+
return pivotChartMenuItem('groupedBar', 'Grouped‎', 'groupedBar');
|
|
389
|
+
|
|
390
|
+
case 'pivotStackedBar':
|
|
391
|
+
return pivotChartMenuItem('stackedBar', 'Stacked‎', 'stackedBar');
|
|
392
|
+
|
|
393
|
+
case 'pivotNormalizedBar':
|
|
394
|
+
return pivotChartMenuItem('normalizedBar', '100% Stacked‎', 'normalizedBar');
|
|
395
|
+
|
|
396
|
+
case 'rangeBarChart':
|
|
397
|
+
return {
|
|
398
|
+
name: localeTextFunc('barChart', 'Bar'),
|
|
399
|
+
subMenu: ['rangeGroupedBar', 'rangeStackedBar', 'rangeNormalizedBar']
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
case 'rangeGroupedBar':
|
|
403
|
+
return rangeChartMenuItem('groupedBar', 'Grouped‎', 'groupedBar');
|
|
404
|
+
|
|
405
|
+
case 'rangeStackedBar':
|
|
406
|
+
return rangeChartMenuItem('stackedBar', 'Stacked‎', 'stackedBar');
|
|
407
|
+
|
|
408
|
+
case 'rangeNormalizedBar':
|
|
409
|
+
return rangeChartMenuItem('normalizedBar', '100% Stacked‎', 'normalizedBar');
|
|
410
|
+
|
|
411
|
+
case 'pivotPieChart':
|
|
412
|
+
return {
|
|
413
|
+
name: localeTextFunc('pieChart', 'Pie'),
|
|
414
|
+
subMenu: ['pivotPie', 'pivotDoughnut']
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
case 'pivotPie':
|
|
418
|
+
return pivotChartMenuItem('pie', 'Pie‎', 'pie');
|
|
419
|
+
|
|
420
|
+
case 'pivotDoughnut':
|
|
421
|
+
return pivotChartMenuItem('doughnut', 'Doughnut‎', 'doughnut');
|
|
422
|
+
|
|
423
|
+
case 'rangePieChart':
|
|
424
|
+
return {
|
|
425
|
+
name: localeTextFunc('pieChart', 'Pie'),
|
|
426
|
+
subMenu: ['rangePie', 'rangeDoughnut']
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
case 'rangePie':
|
|
430
|
+
return rangeChartMenuItem('pie', 'Pie‎', 'pie');
|
|
431
|
+
|
|
432
|
+
case 'rangeDoughnut':
|
|
433
|
+
return rangeChartMenuItem('doughnut', 'Doughnut‎', 'doughnut');
|
|
434
|
+
|
|
435
|
+
case 'pivotLineChart':
|
|
436
|
+
return pivotChartMenuItem('line', 'Line‎', 'line');
|
|
437
|
+
|
|
438
|
+
case 'rangeLineChart':
|
|
439
|
+
return rangeChartMenuItem('line', 'Line‎', 'line');
|
|
440
|
+
|
|
441
|
+
case 'pivotXYChart':
|
|
442
|
+
return {
|
|
443
|
+
name: localeTextFunc('xyChart', 'X Y (Scatter)'),
|
|
444
|
+
subMenu: ['pivotScatter', 'pivotBubble']
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
case 'pivotScatter':
|
|
448
|
+
return pivotChartMenuItem('scatter', 'Scatter‎', 'scatter');
|
|
449
|
+
|
|
450
|
+
case 'pivotBubble':
|
|
451
|
+
return pivotChartMenuItem('bubble', 'Bubble‎', 'bubble');
|
|
452
|
+
|
|
453
|
+
case 'rangeXYChart':
|
|
454
|
+
return {
|
|
455
|
+
name: localeTextFunc('xyChart', 'X Y (Scatter)'),
|
|
456
|
+
subMenu: ['rangeScatter', 'rangeBubble']
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
case 'rangeScatter':
|
|
460
|
+
return rangeChartMenuItem('scatter', 'Scatter‎', 'scatter');
|
|
461
|
+
|
|
462
|
+
case 'rangeBubble':
|
|
463
|
+
return rangeChartMenuItem('bubble', 'Bubble‎', 'bubble');
|
|
464
|
+
|
|
465
|
+
case 'pivotAreaChart':
|
|
466
|
+
return {
|
|
467
|
+
name: localeTextFunc('areaChart', 'Area'),
|
|
468
|
+
subMenu: ['pivotArea', 'pivotStackedArea', 'pivotNormalizedArea']
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
case 'pivotArea':
|
|
472
|
+
return pivotChartMenuItem('area', 'Area‎', 'area');
|
|
473
|
+
|
|
474
|
+
case 'pivotStackedArea':
|
|
475
|
+
return pivotChartMenuItem('stackedArea', 'Stacked‎', 'stackedArea');
|
|
476
|
+
|
|
477
|
+
case 'pivotNormalizedArea':
|
|
478
|
+
return pivotChartMenuItem('normalizedArea', '100% Stacked‎', 'normalizedArea');
|
|
479
|
+
|
|
480
|
+
case 'rangeAreaChart':
|
|
481
|
+
return {
|
|
482
|
+
name: localeTextFunc('areaChart', 'Area'),
|
|
483
|
+
subMenu: ['rangeArea', 'rangeStackedArea', 'rangeNormalizedArea']
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
case 'rangeArea':
|
|
487
|
+
return rangeChartMenuItem('area', 'Area‎', 'area');
|
|
488
|
+
|
|
489
|
+
case 'rangeStackedArea':
|
|
490
|
+
return rangeChartMenuItem('stackedArea', 'Stacked‎', 'stackedArea');
|
|
491
|
+
|
|
492
|
+
case 'rangeNormalizedArea':
|
|
493
|
+
return rangeChartMenuItem('normalizedArea', '100% Stacked‎', 'normalizedArea');
|
|
494
|
+
|
|
495
|
+
case 'rangeHistogramChart':
|
|
496
|
+
return rangeChartMenuItem('histogramChart', 'Histogram‎', 'histogram');
|
|
497
|
+
|
|
498
|
+
case 'rangeColumnLineCombo':
|
|
499
|
+
return rangeChartMenuItem('columnLineCombo', 'Column & Line‎', 'columnLineCombo');
|
|
500
|
+
|
|
501
|
+
case 'rangeAreaColumnCombo':
|
|
502
|
+
return rangeChartMenuItem('AreaColumnCombo', 'Area & Column‎', 'areaColumnCombo');
|
|
503
|
+
|
|
504
|
+
case 'rangeCombinationChart':
|
|
505
|
+
return {
|
|
506
|
+
name: localeTextFunc('combinationChart', 'Combination'),
|
|
507
|
+
subMenu: ['rangeColumnLineCombo', 'rangeAreaColumnCombo']
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
default:
|
|
511
|
+
return null;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}, {
|
|
515
|
+
key: "createAggregationSubMenu",
|
|
516
|
+
value: function createAggregationSubMenu(column) {
|
|
517
|
+
var _this4 = this;
|
|
518
|
+
|
|
519
|
+
var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();
|
|
520
|
+
var columnToUse;
|
|
521
|
+
|
|
522
|
+
if (column.isPrimary()) {
|
|
523
|
+
columnToUse = column;
|
|
524
|
+
} else {
|
|
525
|
+
var pivotValueColumn = column.getColDef().pivotValueColumn;
|
|
526
|
+
columnToUse = _.exists(pivotValueColumn) ? pivotValueColumn : undefined;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
var result = [];
|
|
530
|
+
|
|
531
|
+
if (columnToUse) {
|
|
532
|
+
var columnIsAlreadyAggValue = columnToUse.isValueActive();
|
|
533
|
+
var funcNames = this.aggFuncService.getFuncNames(columnToUse);
|
|
534
|
+
funcNames.forEach(function (funcName) {
|
|
535
|
+
result.push({
|
|
536
|
+
name: localeTextFunc(funcName, funcName),
|
|
537
|
+
action: function action() {
|
|
538
|
+
_this4.columnModel.setColumnAggFunc(columnToUse, funcName, 'contextMenu');
|
|
539
|
+
|
|
540
|
+
_this4.columnModel.addValueColumn(columnToUse, 'contextMenu');
|
|
541
|
+
},
|
|
542
|
+
checked: columnIsAlreadyAggValue && columnToUse.getAggFunc() === funcName
|
|
543
|
+
});
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
return result;
|
|
548
|
+
}
|
|
549
|
+
}]);
|
|
550
|
+
|
|
551
|
+
return MenuItemMapper;
|
|
552
|
+
}(BeanStub);
|
|
553
|
+
|
|
554
|
+
__decorate([Autowired('columnModel')], MenuItemMapper.prototype, 'columnModel', void 0);
|
|
555
|
+
|
|
556
|
+
__decorate([Autowired('gridApi')], MenuItemMapper.prototype, 'gridApi', void 0);
|
|
557
|
+
|
|
558
|
+
__decorate([Optional('clipboardService')], MenuItemMapper.prototype, 'clipboardService', void 0);
|
|
559
|
+
|
|
560
|
+
__decorate([Optional('aggFuncService')], MenuItemMapper.prototype, 'aggFuncService', void 0);
|
|
561
|
+
|
|
562
|
+
__decorate([Optional('chartService')], MenuItemMapper.prototype, 'chartService', void 0);
|
|
563
|
+
|
|
564
|
+
MenuItemMapper = __decorate([Bean('menuItemMapper')], MenuItemMapper);
|
|
565
|
+
export { MenuItemMapper };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ModuleNames } from '@ag-grid-community/core';
|
|
2
|
+
import { EnterpriseMenuFactory } from './menu/enterpriseMenu';
|
|
3
|
+
import { ContextMenuFactory } from './menu/contextMenu';
|
|
4
|
+
import { MenuItemMapper } from './menu/menuItemMapper';
|
|
5
|
+
export declare const MenuModule: {
|
|
6
|
+
moduleName: ModuleNames;
|
|
7
|
+
beans: (typeof EnterpriseMenuFactory | typeof ContextMenuFactory | typeof MenuItemMapper)[];
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ModuleNames } from '@ag-grid-community/core';
|
|
2
|
+
import { EnterpriseMenuFactory } from "./menu/enterpriseMenu";
|
|
3
|
+
import { ContextMenuFactory } from "./menu/contextMenu";
|
|
4
|
+
import { MenuItemMapper } from "./menu/menuItemMapper";
|
|
5
|
+
export var MenuModule = {
|
|
6
|
+
moduleName: ModuleNames.MenuModule,
|
|
7
|
+
beans: [EnterpriseMenuFactory, ContextMenuFactory, MenuItemMapper]
|
|
8
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { RowGroupingModule } from './rowGroupingModule';
|
|
2
|
+
export { RowGroupDropZonePanel } from './rowGrouping/columnDropZones/rowGroupDropZonePanel';
|
|
3
|
+
export { ValuesDropZonePanel } from './rowGrouping/columnDropZones/valueDropZonePanel';
|
|
4
|
+
export { PivotDropZonePanel } from './rowGrouping/columnDropZones/pivotDropZonePanel';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { RowGroupingModule } from "./rowGroupingModule";
|
|
2
|
+
export { RowGroupDropZonePanel } from "./rowGrouping/columnDropZones/rowGroupDropZonePanel";
|
|
3
|
+
export { ValuesDropZonePanel } from "./rowGrouping/columnDropZones/valueDropZonePanel";
|
|
4
|
+
export { PivotDropZonePanel } from "./rowGrouping/columnDropZones/pivotDropZonePanel";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BeanStub, Column, IAggFunc, IAggFuncService } from '@ag-grid-community/core';
|
|
2
|
+
export declare class AggFuncService extends BeanStub implements IAggFuncService {
|
|
3
|
+
private static AGG_SUM;
|
|
4
|
+
private static AGG_FIRST;
|
|
5
|
+
private static AGG_LAST;
|
|
6
|
+
private static AGG_MIN;
|
|
7
|
+
private static AGG_MAX;
|
|
8
|
+
private static AGG_COUNT;
|
|
9
|
+
private static AGG_AVG;
|
|
10
|
+
private aggFuncsMap;
|
|
11
|
+
private initialised;
|
|
12
|
+
private init;
|
|
13
|
+
private initialiseWithDefaultAggregations;
|
|
14
|
+
private isAggFuncPossible;
|
|
15
|
+
getDefaultAggFunc(column: Column): string | null;
|
|
16
|
+
addAggFuncs(aggFuncs?: {
|
|
17
|
+
[key: string]: IAggFunc;
|
|
18
|
+
}): void;
|
|
19
|
+
addAggFunc(key: string, aggFunc: IAggFunc): void;
|
|
20
|
+
getAggFunc(name: string): IAggFunc;
|
|
21
|
+
getFuncNames(column: Column): string[];
|
|
22
|
+
clear(): void;
|
|
23
|
+
}
|