@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/toolPanelColumnGroupComp.js
ADDED
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2
|
+
|
|
3
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4
|
+
|
|
5
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
|
+
|
|
7
|
+
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
|
8
|
+
|
|
9
|
+
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
10
|
+
|
|
11
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
12
|
+
|
|
13
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
14
|
+
|
|
15
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
16
|
+
|
|
17
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
18
|
+
|
|
19
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
20
|
+
|
|
21
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
22
|
+
|
|
23
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
|
+
|
|
25
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
26
|
+
|
|
27
|
+
var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
|
|
28
|
+
var c = arguments.length,
|
|
29
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
30
|
+
d;
|
|
31
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === 'object' && typeof Reflect.decorate === 'function') r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
32
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
33
|
+
}
|
|
34
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
import { _, AgCheckbox, Autowired, Column, Component, CssClassApplier, DragAndDropService, DragSourceType, Events, KeyCode, PostConstruct, RefSelector, TouchListener } from '@ag-grid-community/core';
|
|
38
|
+
import { ColumnModelItem } from "./columnModelItem";
|
|
39
|
+
import { ToolPanelContextMenu } from "./toolPanelContextMenu";
|
|
40
|
+
export var ToolPanelColumnGroupComp = /*#__PURE__*/function (_Component) {
|
|
41
|
+
_inherits(ToolPanelColumnGroupComp, _Component);
|
|
42
|
+
|
|
43
|
+
var _super = _createSuper(ToolPanelColumnGroupComp);
|
|
44
|
+
|
|
45
|
+
function ToolPanelColumnGroupComp(modelItem, allowDragging, eventType, focusWrapper) {
|
|
46
|
+
var _this;
|
|
47
|
+
|
|
48
|
+
_classCallCheck(this, ToolPanelColumnGroupComp);
|
|
49
|
+
|
|
50
|
+
_this = _super.call(this);
|
|
51
|
+
_this.modelItem = modelItem;
|
|
52
|
+
_this.allowDragging = allowDragging;
|
|
53
|
+
_this.eventType = eventType;
|
|
54
|
+
_this.focusWrapper = focusWrapper;
|
|
55
|
+
_this.processingColumnStateChange = false;
|
|
56
|
+
_this.modelItem = modelItem;
|
|
57
|
+
_this.columnGroup = modelItem.getColumnGroup();
|
|
58
|
+
_this.columnDept = modelItem.getDept();
|
|
59
|
+
_this.allowDragging = allowDragging;
|
|
60
|
+
return _this;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
_createClass(ToolPanelColumnGroupComp, [{
|
|
64
|
+
key: "init",
|
|
65
|
+
value: function init() {
|
|
66
|
+
var _this2 = this;
|
|
67
|
+
|
|
68
|
+
this.setTemplate(ToolPanelColumnGroupComp.TEMPLATE);
|
|
69
|
+
this.eDragHandle = _.createIconNoSpan('columnDrag', this.gridOptionsWrapper);
|
|
70
|
+
this.eDragHandle.classList.add('ag-drag-handle', 'ag-column-select-column-group-drag-handle');
|
|
71
|
+
var checkboxGui = this.cbSelect.getGui();
|
|
72
|
+
var checkboxInput = this.cbSelect.getInputElement();
|
|
73
|
+
checkboxGui.insertAdjacentElement('afterend', this.eDragHandle);
|
|
74
|
+
checkboxInput.setAttribute('tabindex', '-1');
|
|
75
|
+
this.displayName = this.columnModel.getDisplayNameForProvidedColumnGroup(null, this.columnGroup, this.eventType);
|
|
76
|
+
|
|
77
|
+
if (_.missing(this.displayName)) {
|
|
78
|
+
this.displayName = '>>';
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
this.eLabel.innerHTML = this.displayName ? this.displayName : '';
|
|
82
|
+
this.setupExpandContract();
|
|
83
|
+
this.addCssClass('ag-column-select-indent-' + this.columnDept);
|
|
84
|
+
this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.onColumnStateChanged.bind(this));
|
|
85
|
+
this.addManagedListener(this.eLabel, 'click', this.onLabelClicked.bind(this));
|
|
86
|
+
this.addManagedListener(this.cbSelect, AgCheckbox.EVENT_CHANGED, this.onCheckboxChanged.bind(this));
|
|
87
|
+
this.addManagedListener(this.modelItem, ColumnModelItem.EVENT_EXPANDED_CHANGED, this.onExpandChanged.bind(this));
|
|
88
|
+
this.addManagedListener(this.focusWrapper, 'keydown', this.handleKeyDown.bind(this));
|
|
89
|
+
this.addManagedListener(this.focusWrapper, 'contextmenu', this.onContextMenu.bind(this));
|
|
90
|
+
this.setOpenClosedIcons();
|
|
91
|
+
this.setupDragging();
|
|
92
|
+
this.onColumnStateChanged();
|
|
93
|
+
this.addVisibilityListenersToAllChildren();
|
|
94
|
+
this.refreshAriaExpanded();
|
|
95
|
+
this.refreshAriaLabel();
|
|
96
|
+
this.setupTooltip();
|
|
97
|
+
var classes = CssClassApplier.getToolPanelClassesFromColDef(this.columnGroup.getColGroupDef(), this.gridOptionsWrapper, null, this.columnGroup);
|
|
98
|
+
classes.forEach(function (c) {
|
|
99
|
+
return _this2.addOrRemoveCssClass(c, true);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}, {
|
|
103
|
+
key: "getColumns",
|
|
104
|
+
value: function getColumns() {
|
|
105
|
+
return this.columnGroup.getLeafColumns();
|
|
106
|
+
}
|
|
107
|
+
}, {
|
|
108
|
+
key: "setupTooltip",
|
|
109
|
+
value: function setupTooltip() {
|
|
110
|
+
var _this3 = this;
|
|
111
|
+
|
|
112
|
+
var colGroupDef = this.columnGroup.getColGroupDef();
|
|
113
|
+
|
|
114
|
+
if (!colGroupDef) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
var refresh = function refresh() {
|
|
119
|
+
var newTooltipText = colGroupDef.headerTooltip;
|
|
120
|
+
|
|
121
|
+
_this3.setTooltip(newTooltipText);
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
refresh();
|
|
125
|
+
this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, refresh);
|
|
126
|
+
}
|
|
127
|
+
}, {
|
|
128
|
+
key: "getTooltipParams",
|
|
129
|
+
value: function getTooltipParams() {
|
|
130
|
+
var res = _get(_getPrototypeOf(ToolPanelColumnGroupComp.prototype), "getTooltipParams", this).call(this);
|
|
131
|
+
|
|
132
|
+
res.location = 'columnToolPanelColumnGroup';
|
|
133
|
+
return res;
|
|
134
|
+
}
|
|
135
|
+
}, {
|
|
136
|
+
key: "handleKeyDown",
|
|
137
|
+
value: function handleKeyDown(e) {
|
|
138
|
+
switch (e.key) {
|
|
139
|
+
case KeyCode.LEFT:
|
|
140
|
+
e.preventDefault();
|
|
141
|
+
this.modelItem.setExpanded(false);
|
|
142
|
+
break;
|
|
143
|
+
|
|
144
|
+
case KeyCode.RIGHT:
|
|
145
|
+
e.preventDefault();
|
|
146
|
+
this.modelItem.setExpanded(true);
|
|
147
|
+
break;
|
|
148
|
+
|
|
149
|
+
case KeyCode.SPACE:
|
|
150
|
+
e.preventDefault();
|
|
151
|
+
|
|
152
|
+
if (this.isSelectable()) {
|
|
153
|
+
this.onSelectAllChanged(!this.isSelected());
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}, {
|
|
160
|
+
key: "onContextMenu",
|
|
161
|
+
value: function onContextMenu(e) {
|
|
162
|
+
var _this4 = this;
|
|
163
|
+
|
|
164
|
+
var columnGroup = this.columnGroup,
|
|
165
|
+
gridOptionsWrapper = this.gridOptionsWrapper;
|
|
166
|
+
|
|
167
|
+
if (gridOptionsWrapper.isFunctionsReadOnly()) {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
var contextMenu = this.createBean(new ToolPanelContextMenu(columnGroup, e, this.focusWrapper));
|
|
172
|
+
this.addDestroyFunc(function () {
|
|
173
|
+
if (contextMenu.isAlive()) {
|
|
174
|
+
_this4.destroyBean(contextMenu);
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
}, {
|
|
179
|
+
key: "addVisibilityListenersToAllChildren",
|
|
180
|
+
value: function addVisibilityListenersToAllChildren() {
|
|
181
|
+
var _this5 = this;
|
|
182
|
+
|
|
183
|
+
this.columnGroup.getLeafColumns().forEach(function (column) {
|
|
184
|
+
_this5.addManagedListener(column, Column.EVENT_VISIBLE_CHANGED, _this5.onColumnStateChanged.bind(_this5));
|
|
185
|
+
|
|
186
|
+
_this5.addManagedListener(column, Column.EVENT_VALUE_CHANGED, _this5.onColumnStateChanged.bind(_this5));
|
|
187
|
+
|
|
188
|
+
_this5.addManagedListener(column, Column.EVENT_PIVOT_CHANGED, _this5.onColumnStateChanged.bind(_this5));
|
|
189
|
+
|
|
190
|
+
_this5.addManagedListener(column, Column.EVENT_ROW_GROUP_CHANGED, _this5.onColumnStateChanged.bind(_this5));
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
}, {
|
|
194
|
+
key: "setupDragging",
|
|
195
|
+
value: function setupDragging() {
|
|
196
|
+
var _this6 = this;
|
|
197
|
+
|
|
198
|
+
if (!this.allowDragging) {
|
|
199
|
+
_.setDisplayed(this.eDragHandle, false);
|
|
200
|
+
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
var hideColumnOnExit = !this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns();
|
|
205
|
+
var dragSource = {
|
|
206
|
+
type: DragSourceType.ToolPanel,
|
|
207
|
+
eElement: this.eDragHandle,
|
|
208
|
+
dragItemName: this.displayName,
|
|
209
|
+
defaultIconName: hideColumnOnExit ? DragAndDropService.ICON_HIDE : DragAndDropService.ICON_NOT_ALLOWED,
|
|
210
|
+
getDragItem: function getDragItem() {
|
|
211
|
+
return _this6.createDragItem();
|
|
212
|
+
},
|
|
213
|
+
onDragStarted: function onDragStarted() {
|
|
214
|
+
var event = {
|
|
215
|
+
type: Events.EVENT_COLUMN_PANEL_ITEM_DRAG_START,
|
|
216
|
+
column: _this6.columnGroup
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
_this6.eventService.dispatchEvent(event);
|
|
220
|
+
},
|
|
221
|
+
onDragStopped: function onDragStopped() {
|
|
222
|
+
var event = {
|
|
223
|
+
type: Events.EVENT_COLUMN_PANEL_ITEM_DRAG_END
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
_this6.eventService.dispatchEvent(event);
|
|
227
|
+
},
|
|
228
|
+
onGridEnter: function onGridEnter() {
|
|
229
|
+
if (hideColumnOnExit) {
|
|
230
|
+
// when dragged into the grid, mimic what happens when checkbox is enabled
|
|
231
|
+
// this handles the behaviour for pivot which is different to just hiding a column.
|
|
232
|
+
_this6.onChangeCommon(true);
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
onGridExit: function onGridExit() {
|
|
236
|
+
if (hideColumnOnExit) {
|
|
237
|
+
// when dragged outside of the grid, mimic what happens when checkbox is disabled
|
|
238
|
+
// this handles the behaviour for pivot which is different to just hiding a column.
|
|
239
|
+
_this6.onChangeCommon(false);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
this.dragAndDropService.addDragSource(dragSource, true);
|
|
244
|
+
this.addDestroyFunc(function () {
|
|
245
|
+
return _this6.dragAndDropService.removeDragSource(dragSource);
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
}, {
|
|
249
|
+
key: "createDragItem",
|
|
250
|
+
value: function createDragItem() {
|
|
251
|
+
var visibleState = {};
|
|
252
|
+
this.columnGroup.getLeafColumns().forEach(function (col) {
|
|
253
|
+
visibleState[col.getId()] = col.isVisible();
|
|
254
|
+
});
|
|
255
|
+
return {
|
|
256
|
+
columns: this.columnGroup.getLeafColumns(),
|
|
257
|
+
visibleState: visibleState
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
}, {
|
|
261
|
+
key: "setupExpandContract",
|
|
262
|
+
value: function setupExpandContract() {
|
|
263
|
+
this.eGroupClosedIcon.appendChild(_.createIcon('columnSelectClosed', this.gridOptionsWrapper, null));
|
|
264
|
+
this.eGroupOpenedIcon.appendChild(_.createIcon('columnSelectOpen', this.gridOptionsWrapper, null));
|
|
265
|
+
this.addManagedListener(this.eGroupClosedIcon, 'click', this.onExpandOrContractClicked.bind(this));
|
|
266
|
+
this.addManagedListener(this.eGroupOpenedIcon, 'click', this.onExpandOrContractClicked.bind(this));
|
|
267
|
+
var touchListener = new TouchListener(this.eColumnGroupIcons, true);
|
|
268
|
+
this.addManagedListener(touchListener, TouchListener.EVENT_TAP, this.onExpandOrContractClicked.bind(this));
|
|
269
|
+
this.addDestroyFunc(touchListener.destroy.bind(touchListener));
|
|
270
|
+
}
|
|
271
|
+
}, {
|
|
272
|
+
key: "onLabelClicked",
|
|
273
|
+
value: function onLabelClicked() {
|
|
274
|
+
var nextState = !this.cbSelect.getValue();
|
|
275
|
+
this.onChangeCommon(nextState);
|
|
276
|
+
}
|
|
277
|
+
}, {
|
|
278
|
+
key: "onCheckboxChanged",
|
|
279
|
+
value: function onCheckboxChanged(event) {
|
|
280
|
+
this.onChangeCommon(event.selected);
|
|
281
|
+
}
|
|
282
|
+
}, {
|
|
283
|
+
key: "getVisibleLeafColumns",
|
|
284
|
+
value: function getVisibleLeafColumns() {
|
|
285
|
+
var childColumns = [];
|
|
286
|
+
|
|
287
|
+
var extractCols = function extractCols(children) {
|
|
288
|
+
children.forEach(function (child) {
|
|
289
|
+
if (!child.isPassesFilter()) {
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
if (child.isGroup()) {
|
|
294
|
+
extractCols(child.getChildren());
|
|
295
|
+
} else {
|
|
296
|
+
childColumns.push(child.getColumn());
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
extractCols(this.modelItem.getChildren());
|
|
302
|
+
return childColumns;
|
|
303
|
+
}
|
|
304
|
+
}, {
|
|
305
|
+
key: "onChangeCommon",
|
|
306
|
+
value: function onChangeCommon(nextState) {
|
|
307
|
+
this.refreshAriaLabel();
|
|
308
|
+
|
|
309
|
+
if (this.processingColumnStateChange) {
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
this.modelItemUtils.selectAllChildren(this.modelItem.getChildren(), nextState, this.eventType);
|
|
314
|
+
}
|
|
315
|
+
}, {
|
|
316
|
+
key: "refreshAriaLabel",
|
|
317
|
+
value: function refreshAriaLabel() {
|
|
318
|
+
var translate = this.gridOptionsWrapper.getLocaleTextFunc();
|
|
319
|
+
var columnLabel = translate('ariaColumnGroup', 'Column Group');
|
|
320
|
+
var state = this.cbSelect.getValue() ? translate('ariaVisible', 'visible') : translate('ariaHidden', 'hidden');
|
|
321
|
+
var visibilityLabel = translate('ariaToggleVisibility', 'Press SPACE to toggle visibility');
|
|
322
|
+
|
|
323
|
+
_.setAriaLabel(this.focusWrapper, "".concat(this.displayName, " ").concat(columnLabel));
|
|
324
|
+
|
|
325
|
+
this.cbSelect.setInputAriaLabel("".concat(visibilityLabel, " (").concat(state, ")"));
|
|
326
|
+
|
|
327
|
+
_.setAriaDescribedBy(this.focusWrapper, this.cbSelect.getInputElement().id);
|
|
328
|
+
}
|
|
329
|
+
}, {
|
|
330
|
+
key: "onColumnStateChanged",
|
|
331
|
+
value: function onColumnStateChanged() {
|
|
332
|
+
var selectedValue = this.workOutSelectedValue();
|
|
333
|
+
var readOnlyValue = this.workOutReadOnlyValue();
|
|
334
|
+
this.processingColumnStateChange = true;
|
|
335
|
+
this.cbSelect.setValue(selectedValue);
|
|
336
|
+
this.cbSelect.setReadOnly(readOnlyValue);
|
|
337
|
+
this.addOrRemoveCssClass('ag-column-select-column-group-readonly', readOnlyValue);
|
|
338
|
+
this.processingColumnStateChange = false;
|
|
339
|
+
}
|
|
340
|
+
}, {
|
|
341
|
+
key: "workOutSelectedValue",
|
|
342
|
+
value: function workOutSelectedValue() {
|
|
343
|
+
var _this7 = this;
|
|
344
|
+
|
|
345
|
+
var pivotMode = this.columnModel.isPivotMode();
|
|
346
|
+
var visibleLeafColumns = this.getVisibleLeafColumns();
|
|
347
|
+
var checkedCount = 0;
|
|
348
|
+
var uncheckedCount = 0;
|
|
349
|
+
visibleLeafColumns.forEach(function (column) {
|
|
350
|
+
if (!pivotMode && column.getColDef().lockVisible) {
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
if (_this7.isColumnChecked(column, pivotMode)) {
|
|
355
|
+
checkedCount++;
|
|
356
|
+
} else {
|
|
357
|
+
uncheckedCount++;
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
|
|
361
|
+
if (checkedCount > 0 && uncheckedCount > 0) {
|
|
362
|
+
return undefined;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
return checkedCount > 0;
|
|
366
|
+
}
|
|
367
|
+
}, {
|
|
368
|
+
key: "workOutReadOnlyValue",
|
|
369
|
+
value: function workOutReadOnlyValue() {
|
|
370
|
+
var pivotMode = this.columnModel.isPivotMode();
|
|
371
|
+
var colsThatCanAction = 0;
|
|
372
|
+
this.columnGroup.getLeafColumns().forEach(function (col) {
|
|
373
|
+
if (pivotMode) {
|
|
374
|
+
if (col.isAnyFunctionAllowed()) {
|
|
375
|
+
colsThatCanAction++;
|
|
376
|
+
}
|
|
377
|
+
} else {
|
|
378
|
+
if (!col.getColDef().lockVisible) {
|
|
379
|
+
colsThatCanAction++;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
return colsThatCanAction === 0;
|
|
384
|
+
}
|
|
385
|
+
}, {
|
|
386
|
+
key: "isColumnChecked",
|
|
387
|
+
value: function isColumnChecked(column, pivotMode) {
|
|
388
|
+
if (pivotMode) {
|
|
389
|
+
var pivoted = column.isPivotActive();
|
|
390
|
+
var grouped = column.isRowGroupActive();
|
|
391
|
+
var aggregated = column.isValueActive();
|
|
392
|
+
return pivoted || grouped || aggregated;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
return column.isVisible();
|
|
396
|
+
}
|
|
397
|
+
}, {
|
|
398
|
+
key: "onExpandOrContractClicked",
|
|
399
|
+
value: function onExpandOrContractClicked() {
|
|
400
|
+
var oldState = this.modelItem.isExpanded();
|
|
401
|
+
this.modelItem.setExpanded(!oldState);
|
|
402
|
+
}
|
|
403
|
+
}, {
|
|
404
|
+
key: "onExpandChanged",
|
|
405
|
+
value: function onExpandChanged() {
|
|
406
|
+
this.setOpenClosedIcons();
|
|
407
|
+
this.refreshAriaExpanded();
|
|
408
|
+
}
|
|
409
|
+
}, {
|
|
410
|
+
key: "setOpenClosedIcons",
|
|
411
|
+
value: function setOpenClosedIcons() {
|
|
412
|
+
var folderOpen = this.modelItem.isExpanded();
|
|
413
|
+
|
|
414
|
+
_.setDisplayed(this.eGroupClosedIcon, !folderOpen);
|
|
415
|
+
|
|
416
|
+
_.setDisplayed(this.eGroupOpenedIcon, folderOpen);
|
|
417
|
+
}
|
|
418
|
+
}, {
|
|
419
|
+
key: "refreshAriaExpanded",
|
|
420
|
+
value: function refreshAriaExpanded() {
|
|
421
|
+
_.setAriaExpanded(this.focusWrapper, this.modelItem.isExpanded());
|
|
422
|
+
}
|
|
423
|
+
}, {
|
|
424
|
+
key: "getDisplayName",
|
|
425
|
+
value: function getDisplayName() {
|
|
426
|
+
return this.displayName;
|
|
427
|
+
}
|
|
428
|
+
}, {
|
|
429
|
+
key: "onSelectAllChanged",
|
|
430
|
+
value: function onSelectAllChanged(value) {
|
|
431
|
+
var cbValue = this.cbSelect.getValue();
|
|
432
|
+
var readOnly = this.cbSelect.isReadOnly();
|
|
433
|
+
|
|
434
|
+
if (!readOnly && (value && !cbValue || !value && cbValue)) {
|
|
435
|
+
this.cbSelect.toggle();
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}, {
|
|
439
|
+
key: "isSelected",
|
|
440
|
+
value: function isSelected() {
|
|
441
|
+
return this.cbSelect.getValue();
|
|
442
|
+
}
|
|
443
|
+
}, {
|
|
444
|
+
key: "isSelectable",
|
|
445
|
+
value: function isSelectable() {
|
|
446
|
+
return !this.cbSelect.isReadOnly();
|
|
447
|
+
}
|
|
448
|
+
}, {
|
|
449
|
+
key: "setSelected",
|
|
450
|
+
value: function setSelected(selected) {
|
|
451
|
+
this.cbSelect.setValue(selected, true);
|
|
452
|
+
}
|
|
453
|
+
}]);
|
|
454
|
+
|
|
455
|
+
return ToolPanelColumnGroupComp;
|
|
456
|
+
}(Component);
|
|
457
|
+
ToolPanelColumnGroupComp.TEMPLATE = "<div class=\"ag-column-select-column-group\" aria-hidden=\"true\">\n <span class=\"ag-column-group-icons\" ref=\"eColumnGroupIcons\" >\n <span class=\"ag-column-group-closed-icon\" ref=\"eGroupClosedIcon\"></span>\n <span class=\"ag-column-group-opened-icon\" ref=\"eGroupOpenedIcon\"></span>\n </span>\n <ag-checkbox ref=\"cbSelect\" class=\"ag-column-select-checkbox\"></ag-checkbox>\n <span class=\"ag-column-select-column-label\" ref=\"eLabel\"></span>\n </div>";
|
|
458
|
+
|
|
459
|
+
__decorate([Autowired('columnModel')], ToolPanelColumnGroupComp.prototype, 'columnModel', void 0);
|
|
460
|
+
|
|
461
|
+
__decorate([Autowired('dragAndDropService')], ToolPanelColumnGroupComp.prototype, 'dragAndDropService', void 0);
|
|
462
|
+
|
|
463
|
+
__decorate([Autowired('modelItemUtils')], ToolPanelColumnGroupComp.prototype, 'modelItemUtils', void 0);
|
|
464
|
+
|
|
465
|
+
__decorate([RefSelector('cbSelect')], ToolPanelColumnGroupComp.prototype, 'cbSelect', void 0);
|
|
466
|
+
|
|
467
|
+
__decorate([RefSelector('eLabel')], ToolPanelColumnGroupComp.prototype, 'eLabel', void 0);
|
|
468
|
+
|
|
469
|
+
__decorate([RefSelector('eGroupOpenedIcon')], ToolPanelColumnGroupComp.prototype, 'eGroupOpenedIcon', void 0);
|
|
470
|
+
|
|
471
|
+
__decorate([RefSelector('eGroupClosedIcon')], ToolPanelColumnGroupComp.prototype, 'eGroupClosedIcon', void 0);
|
|
472
|
+
|
|
473
|
+
__decorate([RefSelector('eColumnGroupIcons')], ToolPanelColumnGroupComp.prototype, 'eColumnGroupIcons', void 0);
|
|
474
|
+
|
|
475
|
+
__decorate([PostConstruct], ToolPanelColumnGroupComp.prototype, 'init', null);
|
package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Column, Component, ProvidedColumnGroup } from '@ag-grid-community/core';
|
|
2
|
+
export declare class ToolPanelContextMenu extends Component {
|
|
3
|
+
private readonly column;
|
|
4
|
+
private readonly mouseEvent;
|
|
5
|
+
private readonly parentEl;
|
|
6
|
+
private columns;
|
|
7
|
+
private allowGrouping;
|
|
8
|
+
private allowValues;
|
|
9
|
+
private allowPivoting;
|
|
10
|
+
private menuItemMap;
|
|
11
|
+
private displayName;
|
|
12
|
+
private readonly columnModel;
|
|
13
|
+
private readonly popupService;
|
|
14
|
+
private readonly focusService;
|
|
15
|
+
constructor(column: Column | ProvidedColumnGroup, mouseEvent: MouseEvent, parentEl: HTMLElement);
|
|
16
|
+
private postConstruct;
|
|
17
|
+
private initializeProperties;
|
|
18
|
+
private buildMenuItemMap;
|
|
19
|
+
private addColumnsToList;
|
|
20
|
+
private removeColumnsFromList;
|
|
21
|
+
private displayContextMenu;
|
|
22
|
+
private isActive;
|
|
23
|
+
private getMappedMenuItems;
|
|
24
|
+
}
|