@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
package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.js
ADDED
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
2
|
+
|
|
3
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
|
+
|
|
5
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
|
+
|
|
7
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
|
+
|
|
9
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
10
|
+
|
|
11
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12
|
+
|
|
13
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
14
|
+
|
|
15
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16
|
+
|
|
17
|
+
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); } }
|
|
18
|
+
|
|
19
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
20
|
+
|
|
21
|
+
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); }
|
|
22
|
+
|
|
23
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
24
|
+
|
|
25
|
+
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); }; }
|
|
26
|
+
|
|
27
|
+
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); }
|
|
28
|
+
|
|
29
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
30
|
+
|
|
31
|
+
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; } }
|
|
32
|
+
|
|
33
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
34
|
+
|
|
35
|
+
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); }
|
|
36
|
+
|
|
37
|
+
var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
|
|
38
|
+
var c = arguments.length,
|
|
39
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
40
|
+
d;
|
|
41
|
+
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--) {
|
|
42
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
43
|
+
}
|
|
44
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
import { AgMenuItemComponent, AgMenuList, Autowired, Column, Component, PostConstruct, ProvidedColumnGroup, _ } from '@ag-grid-community/core';
|
|
48
|
+
export var ToolPanelContextMenu = /*#__PURE__*/function (_Component) {
|
|
49
|
+
_inherits(ToolPanelContextMenu, _Component);
|
|
50
|
+
|
|
51
|
+
var _super = _createSuper(ToolPanelContextMenu);
|
|
52
|
+
|
|
53
|
+
function ToolPanelContextMenu(column, mouseEvent, parentEl) {
|
|
54
|
+
var _this;
|
|
55
|
+
|
|
56
|
+
_classCallCheck(this, ToolPanelContextMenu);
|
|
57
|
+
|
|
58
|
+
_this = _super.call(this,
|
|
59
|
+
/* html */
|
|
60
|
+
"<div class=\"ag-menu\"></div>");
|
|
61
|
+
_this.column = column;
|
|
62
|
+
_this.mouseEvent = mouseEvent;
|
|
63
|
+
_this.parentEl = parentEl;
|
|
64
|
+
_this.displayName = null;
|
|
65
|
+
return _this;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
_createClass(ToolPanelContextMenu, [{
|
|
69
|
+
key: "postConstruct",
|
|
70
|
+
value: function postConstruct() {
|
|
71
|
+
this.initializeProperties(this.column);
|
|
72
|
+
this.buildMenuItemMap();
|
|
73
|
+
|
|
74
|
+
if (this.column instanceof Column) {
|
|
75
|
+
this.displayName = this.columnModel.getDisplayNameForColumn(this.column, 'columnToolPanel');
|
|
76
|
+
} else {
|
|
77
|
+
this.displayName = this.columnModel.getDisplayNameForProvidedColumnGroup(null, this.column, 'columnToolPanel');
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (this.isActive()) {
|
|
81
|
+
this.mouseEvent.preventDefault();
|
|
82
|
+
this.displayContextMenu();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}, {
|
|
86
|
+
key: "initializeProperties",
|
|
87
|
+
value: function initializeProperties(column) {
|
|
88
|
+
if (column instanceof ProvidedColumnGroup) {
|
|
89
|
+
this.columns = column.getLeafColumns();
|
|
90
|
+
} else {
|
|
91
|
+
this.columns = [column];
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
this.allowGrouping = this.columns.some(function (col) {
|
|
95
|
+
return col.isPrimary() && col.isAllowRowGroup();
|
|
96
|
+
});
|
|
97
|
+
this.allowValues = this.columns.some(function (col) {
|
|
98
|
+
return col.isPrimary() && col.isAllowValue();
|
|
99
|
+
});
|
|
100
|
+
this.allowPivoting = this.columnModel.isPivotMode() && this.columns.some(function (col) {
|
|
101
|
+
return col.isPrimary() && col.isAllowPivot();
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}, {
|
|
105
|
+
key: "buildMenuItemMap",
|
|
106
|
+
value: function buildMenuItemMap() {
|
|
107
|
+
var _this2 = this;
|
|
108
|
+
|
|
109
|
+
var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();
|
|
110
|
+
this.menuItemMap = new Map();
|
|
111
|
+
this.menuItemMap.set('rowGroup', {
|
|
112
|
+
allowedFunction: function allowedFunction(col) {
|
|
113
|
+
return col.isPrimary() && col.isAllowRowGroup();
|
|
114
|
+
},
|
|
115
|
+
activeFunction: function activeFunction(col) {
|
|
116
|
+
return col.isRowGroupActive();
|
|
117
|
+
},
|
|
118
|
+
activateLabel: function activateLabel() {
|
|
119
|
+
return "".concat(localeTextFunc('groupBy', 'Group by'), " ").concat(_this2.displayName);
|
|
120
|
+
},
|
|
121
|
+
deactivateLabel: function deactivateLabel() {
|
|
122
|
+
return "".concat(localeTextFunc('ungroupBy', 'Un-Group by'), " ").concat(_this2.displayName);
|
|
123
|
+
},
|
|
124
|
+
activateFunction: function activateFunction() {
|
|
125
|
+
var groupedColumns = _this2.columnModel.getRowGroupColumns();
|
|
126
|
+
|
|
127
|
+
_this2.columnModel.setRowGroupColumns(_this2.addColumnsToList(groupedColumns), 'toolPanelUi');
|
|
128
|
+
},
|
|
129
|
+
deActivateFunction: function deActivateFunction() {
|
|
130
|
+
var groupedColumns = _this2.columnModel.getRowGroupColumns();
|
|
131
|
+
|
|
132
|
+
_this2.columnModel.setRowGroupColumns(_this2.removeColumnsFromList(groupedColumns), 'toolPanelUi');
|
|
133
|
+
},
|
|
134
|
+
addIcon: 'menuAddRowGroup',
|
|
135
|
+
removeIcon: 'menuRemoveRowGroup'
|
|
136
|
+
});
|
|
137
|
+
this.menuItemMap.set('value', {
|
|
138
|
+
allowedFunction: function allowedFunction(col) {
|
|
139
|
+
return col.isPrimary() && col.isAllowValue();
|
|
140
|
+
},
|
|
141
|
+
activeFunction: function activeFunction(col) {
|
|
142
|
+
return col.isValueActive();
|
|
143
|
+
},
|
|
144
|
+
activateLabel: function activateLabel() {
|
|
145
|
+
return localeTextFunc('addToValues', "Add ".concat(_this2.displayName, " to values"), [_this2.displayName]);
|
|
146
|
+
},
|
|
147
|
+
deactivateLabel: function deactivateLabel() {
|
|
148
|
+
return localeTextFunc('removeFromValues', "Remove ".concat(_this2.displayName, " from values"), [_this2.displayName]);
|
|
149
|
+
},
|
|
150
|
+
activateFunction: function activateFunction() {
|
|
151
|
+
var valueColumns = _this2.columnModel.getValueColumns();
|
|
152
|
+
|
|
153
|
+
_this2.columnModel.setValueColumns(_this2.addColumnsToList(valueColumns), 'toolPanelUi');
|
|
154
|
+
},
|
|
155
|
+
deActivateFunction: function deActivateFunction() {
|
|
156
|
+
var valueColumns = _this2.columnModel.getValueColumns();
|
|
157
|
+
|
|
158
|
+
_this2.columnModel.setValueColumns(_this2.removeColumnsFromList(valueColumns), 'toolPanelUi');
|
|
159
|
+
},
|
|
160
|
+
addIcon: 'valuePanel',
|
|
161
|
+
removeIcon: 'valuePanel'
|
|
162
|
+
});
|
|
163
|
+
this.menuItemMap.set('pivot', {
|
|
164
|
+
allowedFunction: function allowedFunction(col) {
|
|
165
|
+
return _this2.columnModel.isPivotMode() && col.isPrimary() && col.isAllowPivot();
|
|
166
|
+
},
|
|
167
|
+
activeFunction: function activeFunction(col) {
|
|
168
|
+
return col.isPivotActive();
|
|
169
|
+
},
|
|
170
|
+
activateLabel: function activateLabel() {
|
|
171
|
+
return localeTextFunc('addToLabels', "Add ".concat(_this2.displayName, " to labels"), [_this2.displayName]);
|
|
172
|
+
},
|
|
173
|
+
deactivateLabel: function deactivateLabel() {
|
|
174
|
+
return localeTextFunc('removeFromLabels', "Remove ".concat(_this2.displayName, " from labels"), [_this2.displayName]);
|
|
175
|
+
},
|
|
176
|
+
activateFunction: function activateFunction() {
|
|
177
|
+
var pivotColumns = _this2.columnModel.getPivotColumns();
|
|
178
|
+
|
|
179
|
+
_this2.columnModel.setPivotColumns(_this2.addColumnsToList(pivotColumns), 'toolPanelUi');
|
|
180
|
+
},
|
|
181
|
+
deActivateFunction: function deActivateFunction() {
|
|
182
|
+
var pivotColumns = _this2.columnModel.getPivotColumns();
|
|
183
|
+
|
|
184
|
+
_this2.columnModel.setPivotColumns(_this2.removeColumnsFromList(pivotColumns), 'toolPanelUi');
|
|
185
|
+
},
|
|
186
|
+
addIcon: 'pivotPanel',
|
|
187
|
+
removeIcon: 'pivotPanel'
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}, {
|
|
191
|
+
key: "addColumnsToList",
|
|
192
|
+
value: function addColumnsToList(columnList) {
|
|
193
|
+
return _toConsumableArray(columnList).concat(this.columns.filter(function (col) {
|
|
194
|
+
return columnList.indexOf(col) === -1;
|
|
195
|
+
}));
|
|
196
|
+
}
|
|
197
|
+
}, {
|
|
198
|
+
key: "removeColumnsFromList",
|
|
199
|
+
value: function removeColumnsFromList(columnList) {
|
|
200
|
+
var _this3 = this;
|
|
201
|
+
|
|
202
|
+
return columnList.filter(function (col) {
|
|
203
|
+
return _this3.columns.indexOf(col) === -1;
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
}, {
|
|
207
|
+
key: "displayContextMenu",
|
|
208
|
+
value: function displayContextMenu() {
|
|
209
|
+
var _this4 = this;
|
|
210
|
+
|
|
211
|
+
var eGui = this.getGui();
|
|
212
|
+
var menuList = this.createBean(new AgMenuList());
|
|
213
|
+
var menuItemsMapped = this.getMappedMenuItems();
|
|
214
|
+
var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();
|
|
215
|
+
|
|
216
|
+
var hideFunc = function hideFunc() {};
|
|
217
|
+
|
|
218
|
+
eGui.appendChild(menuList.getGui());
|
|
219
|
+
menuList.addMenuItems(menuItemsMapped);
|
|
220
|
+
menuList.addManagedListener(menuList, AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED, function () {
|
|
221
|
+
_this4.parentEl.focus();
|
|
222
|
+
|
|
223
|
+
hideFunc();
|
|
224
|
+
});
|
|
225
|
+
var addPopupRes = this.popupService.addPopup({
|
|
226
|
+
modal: true,
|
|
227
|
+
eChild: eGui,
|
|
228
|
+
closeOnEsc: true,
|
|
229
|
+
afterGuiAttached: function afterGuiAttached() {
|
|
230
|
+
return _this4.focusService.focusInto(menuList.getGui());
|
|
231
|
+
},
|
|
232
|
+
ariaLabel: localeTextFunc('ariaLabelContextMenu', 'Context Menu'),
|
|
233
|
+
closedCallback: function closedCallback(e) {
|
|
234
|
+
if (e instanceof KeyboardEvent) {
|
|
235
|
+
_this4.parentEl.focus();
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
_this4.destroyBean(menuList);
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
if (addPopupRes) {
|
|
243
|
+
hideFunc = addPopupRes.hideFunc;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
this.popupService.positionPopupUnderMouseEvent({
|
|
247
|
+
type: 'columnContextMenu',
|
|
248
|
+
mouseEvent: this.mouseEvent,
|
|
249
|
+
ePopup: eGui
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
}, {
|
|
253
|
+
key: "isActive",
|
|
254
|
+
value: function isActive() {
|
|
255
|
+
return this.allowGrouping || this.allowValues || this.allowPivoting;
|
|
256
|
+
}
|
|
257
|
+
}, {
|
|
258
|
+
key: "getMappedMenuItems",
|
|
259
|
+
value: function getMappedMenuItems() {
|
|
260
|
+
var _this5 = this;
|
|
261
|
+
|
|
262
|
+
var ret = [];
|
|
263
|
+
|
|
264
|
+
var _iterator = _createForOfIteratorHelper(this.menuItemMap.values()),
|
|
265
|
+
_step;
|
|
266
|
+
|
|
267
|
+
try {
|
|
268
|
+
var _loop = function _loop() {
|
|
269
|
+
var val = _step.value;
|
|
270
|
+
|
|
271
|
+
var isInactive = _this5.columns.some(function (col) {
|
|
272
|
+
return val.allowedFunction(col) && !val.activeFunction(col);
|
|
273
|
+
});
|
|
274
|
+
|
|
275
|
+
var isActive = _this5.columns.some(function (col) {
|
|
276
|
+
return val.allowedFunction(col) && val.activeFunction(col);
|
|
277
|
+
});
|
|
278
|
+
|
|
279
|
+
if (isInactive) {
|
|
280
|
+
ret.push({
|
|
281
|
+
name: val.activateLabel(_this5.displayName),
|
|
282
|
+
icon: _.createIconNoSpan(val.addIcon, _this5.gridOptionsWrapper, null),
|
|
283
|
+
action: function action() {
|
|
284
|
+
return val.activateFunction();
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
if (isActive) {
|
|
290
|
+
ret.push({
|
|
291
|
+
name: val.deactivateLabel(_this5.displayName),
|
|
292
|
+
icon: _.createIconNoSpan(val.removeIcon, _this5.gridOptionsWrapper, null),
|
|
293
|
+
action: function action() {
|
|
294
|
+
return val.deActivateFunction();
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
301
|
+
_loop();
|
|
302
|
+
}
|
|
303
|
+
} catch (err) {
|
|
304
|
+
_iterator.e(err);
|
|
305
|
+
} finally {
|
|
306
|
+
_iterator.f();
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
return ret;
|
|
310
|
+
}
|
|
311
|
+
}]);
|
|
312
|
+
|
|
313
|
+
return ToolPanelContextMenu;
|
|
314
|
+
}(Component);
|
|
315
|
+
|
|
316
|
+
__decorate([Autowired('columnModel')], ToolPanelContextMenu.prototype, 'columnModel', void 0);
|
|
317
|
+
|
|
318
|
+
__decorate([Autowired('popupService')], ToolPanelContextMenu.prototype, 'popupService', void 0);
|
|
319
|
+
|
|
320
|
+
__decorate([Autowired('focusService')], ToolPanelContextMenu.prototype, 'focusService', void 0);
|
|
321
|
+
|
|
322
|
+
__decorate([PostConstruct], ToolPanelContextMenu.prototype, 'postConstruct', null);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ModuleNames } from '@ag-grid-community/core';
|
|
2
|
+
import { PrimaryColsHeaderPanel } from './columnToolPanel/primaryColsHeaderPanel';
|
|
3
|
+
import { PrimaryColsListPanel } from './columnToolPanel/primaryColsListPanel';
|
|
4
|
+
import { ColumnToolPanel } from './columnToolPanel/columnToolPanel';
|
|
5
|
+
import { PrimaryColsPanel } from './columnToolPanel/primaryColsPanel';
|
|
6
|
+
import { ModelItemUtils } from './columnToolPanel/modelItemUtils';
|
|
7
|
+
export declare const ColumnsToolPanelModule: {
|
|
8
|
+
moduleName: ModuleNames;
|
|
9
|
+
beans: (typeof ModelItemUtils)[];
|
|
10
|
+
agStackComponents: ({
|
|
11
|
+
componentName: string;
|
|
12
|
+
componentClass: typeof PrimaryColsHeaderPanel;
|
|
13
|
+
} | {
|
|
14
|
+
componentName: string;
|
|
15
|
+
componentClass: typeof PrimaryColsListPanel;
|
|
16
|
+
} | {
|
|
17
|
+
componentName: string;
|
|
18
|
+
componentClass: typeof PrimaryColsPanel;
|
|
19
|
+
})[];
|
|
20
|
+
userComponents: {
|
|
21
|
+
componentName: string;
|
|
22
|
+
componentClass: typeof ColumnToolPanel;
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ModuleNames } from '@ag-grid-community/core';
|
|
2
|
+
import { PrimaryColsHeaderPanel } from "./columnToolPanel/primaryColsHeaderPanel";
|
|
3
|
+
import { PrimaryColsListPanel } from "./columnToolPanel/primaryColsListPanel";
|
|
4
|
+
import { ColumnToolPanel } from "./columnToolPanel/columnToolPanel";
|
|
5
|
+
import { PrimaryColsPanel } from "./columnToolPanel/primaryColsPanel";
|
|
6
|
+
import { ModelItemUtils } from "./columnToolPanel/modelItemUtils";
|
|
7
|
+
export var ColumnsToolPanelModule = {
|
|
8
|
+
moduleName: ModuleNames.ColumnToolPanelModule,
|
|
9
|
+
beans: [ModelItemUtils],
|
|
10
|
+
agStackComponents: [{
|
|
11
|
+
componentName: 'AgPrimaryColsHeader',
|
|
12
|
+
componentClass: PrimaryColsHeaderPanel
|
|
13
|
+
}, {
|
|
14
|
+
componentName: 'AgPrimaryColsList',
|
|
15
|
+
componentClass: PrimaryColsListPanel
|
|
16
|
+
}, {
|
|
17
|
+
componentName: 'AgPrimaryCols',
|
|
18
|
+
componentClass: PrimaryColsPanel
|
|
19
|
+
}],
|
|
20
|
+
userComponents: [{
|
|
21
|
+
componentName: 'agColumnsToolPanel',
|
|
22
|
+
componentClass: ColumnToolPanel
|
|
23
|
+
}]
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MenuModule } from './menuModule';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MenuModule } from "./menuModule";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BeanStub, Column, IContextMenuFactory, RowNode } from '@ag-grid-community/core';
|
|
2
|
+
export declare class ContextMenuFactory extends BeanStub implements IContextMenuFactory {
|
|
3
|
+
private popupService;
|
|
4
|
+
private rangeService;
|
|
5
|
+
private ctrlsService;
|
|
6
|
+
private columnModel;
|
|
7
|
+
private activeMenu;
|
|
8
|
+
hideActiveMenu(): void;
|
|
9
|
+
private getMenuItems;
|
|
10
|
+
onContextMenu(
|
|
11
|
+
mouseEvent: MouseEvent | null,
|
|
12
|
+
touchEvent: TouchEvent | null,
|
|
13
|
+
rowNode: RowNode | null,
|
|
14
|
+
column: Column | null,
|
|
15
|
+
value: any,
|
|
16
|
+
anchorToElement: HTMLElement,
|
|
17
|
+
): void;
|
|
18
|
+
private blockMiddleClickScrollsIfNeeded;
|
|
19
|
+
showMenu(
|
|
20
|
+
node: RowNode | null,
|
|
21
|
+
column: Column | null,
|
|
22
|
+
value: any,
|
|
23
|
+
mouseEvent: MouseEvent | Touch,
|
|
24
|
+
anchorToElement: HTMLElement,
|
|
25
|
+
): boolean;
|
|
26
|
+
}
|