@lemon-fe/kits 0.1.136 → 1.0.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -5
- package/es/app.d.ts +1 -0
- package/es/app.js +3 -0
- package/es/components/Actions/index.d.ts +26 -0
- package/es/components/Actions/index.js +169 -0
- package/es/components/Actions/index.less +67 -0
- package/es/components/BaseTable/Actions.d.ts +9 -0
- package/es/components/BaseTable/Actions.js +136 -0
- package/es/components/BaseTable/BaseTableContext.d.ts +7 -0
- package/es/components/BaseTable/BaseTableContext.js +7 -0
- package/es/components/BaseTable/ResizeHeaderCell.d.ts +8 -0
- package/es/components/BaseTable/ResizeHeaderCell.js +130 -0
- package/es/components/BaseTable/VirtualBody.d.ts +8 -0
- package/es/components/BaseTable/VirtualBody.js +163 -0
- package/es/components/BaseTable/empty.png +0 -0
- package/es/components/BaseTable/index.d.ts +9 -0
- package/es/components/BaseTable/index.js +482 -0
- package/es/components/BaseTable/index.less +189 -0
- package/es/components/BaseTable/typings.d.ts +48 -0
- package/es/components/BaseTable/utils.d.ts +4 -0
- package/es/components/BaseTable/utils.js +26 -0
- package/es/components/ColorPicker/index.d.ts +13 -0
- package/es/components/ColorPicker/index.js +114 -0
- package/es/components/ColorPicker/index.less +47 -0
- package/es/components/DataGrid/Actions.d.ts +9 -0
- package/es/components/DataGrid/Actions.js +119 -0
- package/es/components/DataGrid/CellRenderer.d.ts +4 -0
- package/es/components/DataGrid/CellRenderer.js +68 -0
- package/es/components/DataGrid/GridContext.d.ts +4 -0
- package/es/components/DataGrid/GridContext.js +4 -0
- package/es/components/DataGrid/HeaderRenderer.d.ts +6 -0
- package/es/components/DataGrid/HeaderRenderer.js +93 -0
- package/es/components/DataGrid/cell-editors/Custom.d.ts +9 -0
- package/es/components/DataGrid/cell-editors/Custom.js +105 -0
- package/es/components/DataGrid/cell-editors/Date.d.ts +8 -0
- package/es/components/DataGrid/cell-editors/Date.js +78 -0
- package/es/components/DataGrid/cell-editors/Number.d.ts +9 -0
- package/es/components/DataGrid/cell-editors/Number.js +86 -0
- package/es/components/DataGrid/cell-editors/Select.d.ts +7 -0
- package/es/components/DataGrid/cell-editors/Select.js +70 -0
- package/es/components/DataGrid/cell-editors/Text.d.ts +5 -0
- package/es/components/DataGrid/cell-editors/Text.js +60 -0
- package/es/components/DataGrid/cell-editors/Wrapper.d.ts +4 -0
- package/es/components/DataGrid/cell-editors/Wrapper.js +7 -0
- package/es/components/DataGrid/cell-editors/utils.d.ts +1 -0
- package/es/components/DataGrid/cell-editors/utils.js +2 -0
- package/es/components/DataGrid/empty.png +0 -0
- package/es/components/DataGrid/hooks.d.ts +2 -0
- package/es/components/DataGrid/hooks.js +45 -0
- package/es/components/DataGrid/index.d.ts +77 -0
- package/es/components/DataGrid/index.js +1051 -0
- package/es/components/DataGrid/index.less +304 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideNodeManager.d.ts +57 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideNodeManager.js +378 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideRowModel.d.ts +120 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideRowModel.js +1160 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterService.d.ts +7 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterService.js +137 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterStage.d.ts +5 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterStage.js +60 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/flattenStage.d.ts +10 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/flattenStage.js +199 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/immutableService.d.ts +13 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/immutableService.js +175 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortService.d.ts +21 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortService.js +330 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortStage.d.ts +7 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortStage.js +75 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModelModule.d.ts +15 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModelModule.js +15 -0
- package/es/components/DataGrid/modules/client-side-row-model/index.d.ts +1 -0
- package/es/components/DataGrid/modules/client-side-row-model/index.js +1 -0
- package/es/components/DataGrid/modules/clipboard/clipboard/clipboardService.d.ts +62 -0
- package/es/components/DataGrid/modules/clipboard/clipboard/clipboardService.js +923 -0
- package/es/components/DataGrid/modules/clipboard/clipboardModule.d.ts +7 -0
- package/es/components/DataGrid/modules/clipboard/clipboardModule.js +8 -0
- package/es/components/DataGrid/modules/clipboard/index.d.ts +1 -0
- package/es/components/DataGrid/modules/clipboard/index.js +1 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnModelItem.d.ts +32 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnModelItem.js +100 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnToolPanel.d.ts +51 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnToolPanel.js +320 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/modelItemUtils.d.ts +20 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/modelItemUtils.js +247 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/pivotModePanel.d.ts +9 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/pivotModePanel.js +93 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.d.ts +32 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.js +186 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.d.ts +49 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.js +546 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.d.ts +26 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.js +264 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.d.ts +32 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.js +151 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.d.ts +43 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.js +369 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.d.ts +62 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.js +475 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.d.ts +24 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.js +322 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnsToolPanelModule.d.ts +24 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnsToolPanelModule.js +24 -0
- package/es/components/DataGrid/modules/column-tool-panel/index.d.ts +2 -0
- package/es/components/DataGrid/modules/column-tool-panel/index.js +3 -0
- package/es/components/DataGrid/modules/menu/index.d.ts +1 -0
- package/es/components/DataGrid/modules/menu/index.js +1 -0
- package/es/components/DataGrid/modules/menu/menu/contextMenu.d.ts +26 -0
- package/es/components/DataGrid/modules/menu/menu/contextMenu.js +329 -0
- package/es/components/DataGrid/modules/menu/menu/enterpriseMenu.d.ts +85 -0
- package/es/components/DataGrid/modules/menu/menu/enterpriseMenu.js +639 -0
- package/es/components/DataGrid/modules/menu/menu/menuItemMapper.d.ts +15 -0
- package/es/components/DataGrid/modules/menu/menu/menuItemMapper.js +565 -0
- package/es/components/DataGrid/modules/menu/menuModule.d.ts +8 -0
- package/es/components/DataGrid/modules/menu/menuModule.js +8 -0
- package/es/components/DataGrid/modules/row-grouping/index.d.ts +4 -0
- package/es/components/DataGrid/modules/row-grouping/index.js +4 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/aggFuncService.d.ts +23 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/aggFuncService.js +303 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/aggregationStage.d.ts +20 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/aggregationStage.js +326 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/batchRemover.d.ts +10 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/batchRemover.js +71 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.d.ts +75 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.js +618 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.d.ts +40 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.js +460 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.d.ts +11 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.js +108 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.d.ts +17 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.js +170 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.d.ts +15 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.js +133 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.d.ts +15 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.js +133 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/filterAggregatesStage.d.ts +9 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/filterAggregatesStage.js +175 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/groupStage.d.ts +47 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/groupStage.js +814 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/pivotColDefService.d.ts +24 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/pivotColDefService.js +478 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/pivotStage.d.ts +19 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/pivotStage.js +219 -0
- package/es/components/DataGrid/modules/row-grouping/rowGroupingModule.d.ts +16 -0
- package/es/components/DataGrid/modules/row-grouping/rowGroupingModule.js +16 -0
- package/es/components/DataGrid/modules/server-side-row-model/index.d.ts +1 -0
- package/es/components/DataGrid/modules/server-side-row-model/index.js +1 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/blockUtils.d.ts +47 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/blockUtils.js +444 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/infiniteStoreBlock.d.ts +92 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/infiniteStoreBlock.js +510 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/expandListener.d.ts +9 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/expandListener.js +115 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/filterListener.d.ts +9 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/filterListener.js +114 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/listenerUtils.d.ts +5 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/listenerUtils.js +68 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/sortListener.d.ts +13 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/sortListener.js +194 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/nodeManager.d.ts +7 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/nodeManager.js +63 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/serverSideRowModel.d.ts +88 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/serverSideRowModel.js +572 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/fullStore.d.ts +108 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/fullStore.js +876 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/infiniteStore.d.ts +102 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/infiniteStore.js +918 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeFactory.d.ts +12 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeFactory.js +141 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeUtils.d.ts +35 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeUtils.js +154 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/transactionManager.d.ts +23 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/transactionManager.js +210 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModelModule.d.ts +18 -0
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModelModule.js +18 -0
- package/es/components/DataGrid/modules/side-bar/index.d.ts +2 -0
- package/es/components/DataGrid/modules/side-bar/index.js +2 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/common/toolPanelColDefService.d.ts +11 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/common/toolPanelColDefService.js +280 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/horizontalResizeComp.d.ts +19 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/horizontalResizeComp.js +132 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonComp.d.ts +16 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonComp.js +108 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonsComp.d.ts +18 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonsComp.js +115 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarComp.d.ts +29 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarComp.js +353 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/toolPanelWrapper.d.ts +17 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/toolPanelWrapper.js +128 -0
- package/es/components/DataGrid/modules/side-bar/sideBarModule.d.ts +19 -0
- package/es/components/DataGrid/modules/side-bar/sideBarModule.js +19 -0
- package/es/components/DataGrid/typings.d.ts +138 -0
- package/es/components/DataGrid/typings.js +1 -0
- package/es/components/DataGrid/utils.d.ts +43 -0
- package/es/components/DataGrid/utils.js +242 -0
- package/es/components/Dropdown/index.d.ts +15 -0
- package/es/components/Dropdown/index.js +55 -0
- package/es/components/Dropdown/index.less +13 -0
- package/es/components/DurationPicker/index.d.ts +26 -0
- package/es/components/DurationPicker/index.js +204 -0
- package/es/components/DurationPicker/index.less +61 -0
- package/es/components/EditableTable/EditableCell.d.ts +12 -0
- package/es/components/EditableTable/EditableCell.js +41 -0
- package/es/components/EditableTable/EditableTableFormItem.d.ts +6 -0
- package/es/components/EditableTable/EditableTableFormItem.js +47 -0
- package/es/components/EditableTable/Table.d.ts +6 -0
- package/es/components/EditableTable/Table.js +362 -0
- package/es/components/EditableTable/index.d.ts +9 -0
- package/es/components/EditableTable/index.js +8 -0
- package/es/components/EditableTable/index.less +29 -0
- package/es/components/EditableTable/typings.d.ts +90 -0
- package/es/components/EditableTable/util.d.ts +25 -0
- package/es/components/EditableTable/util.js +399 -0
- package/es/components/Filter/index.d.ts +15 -0
- package/es/components/Filter/index.js +644 -0
- package/es/components/Filter/index.less +82 -0
- package/es/components/Filter/typings.d.ts +35 -0
- package/es/components/FormLayout/index.d.ts +32 -0
- package/es/components/FormLayout/index.js +41 -0
- package/es/components/FormLayout/index.less +109 -0
- package/es/components/Icons/BigTip/error.png +0 -0
- package/es/components/Icons/BigTip/index.d.ts +6 -0
- package/es/components/Icons/BigTip/index.js +46 -0
- package/es/components/Icons/BigTip/info.png +0 -0
- package/es/components/Icons/BigTip/success.png +0 -0
- package/es/components/Icons/BigTip/warning.png +0 -0
- package/es/components/Icons/Calendar.d.ts +5 -0
- package/es/components/Icons/Calendar.js +43 -0
- package/es/components/Icons/Close.d.ts +5 -0
- package/es/components/Icons/Close.js +25 -0
- package/es/components/Icons/CollapseUp.d.ts +5 -0
- package/es/components/Icons/CollapseUp.js +27 -0
- package/es/components/Icons/DarkSearch.d.ts +5 -0
- package/es/components/Icons/DarkSearch.js +34 -0
- package/es/components/Icons/Down.d.ts +5 -0
- package/es/components/Icons/Down.js +31 -0
- package/es/components/Icons/Empty.d.ts +3 -0
- package/es/components/Icons/Empty.js +267 -0
- package/es/components/Icons/LookUp.d.ts +5 -0
- package/es/components/Icons/LookUp.js +70 -0
- package/es/components/Icons/More.d.ts +5 -0
- package/es/components/Icons/More.js +40 -0
- package/es/components/Icons/Search.d.ts +5 -0
- package/es/components/Icons/Search.js +31 -0
- package/es/components/Icons/Tip.d.ts +6 -0
- package/es/components/Icons/Tip.js +165 -0
- package/es/components/Icons/index.d.ts +25 -0
- package/es/components/Icons/index.js +25 -0
- package/es/components/Layout/index.d.ts +41 -0
- package/es/components/Layout/index.js +173 -0
- package/es/components/Layout/index.less +136 -0
- package/es/components/PageLoading/index.d.ts +5 -0
- package/es/components/PageLoading/index.js +15 -0
- package/es/components/PageLoading/index.less +8 -0
- package/es/components/Popup/index.d.ts +39 -0
- package/es/components/Popup/index.js +223 -0
- package/es/components/Popup/index.less +12 -0
- package/es/components/Portal/index.d.ts +17 -0
- package/es/components/Portal/index.js +141 -0
- package/es/components/Section/TabBar.d.ts +12 -0
- package/es/components/Section/TabBar.js +51 -0
- package/es/components/Section/index.d.ts +54 -0
- package/es/components/Section/index.js +96 -0
- package/es/components/Section/index.less +130 -0
- package/es/components/SelectView/index.d.ts +47 -0
- package/es/components/SelectView/index.js +244 -0
- package/es/components/SelectView/index.less +60 -0
- package/es/components/SiderTree/TreeNodeTitle.d.ts +9 -0
- package/es/components/SiderTree/TreeNodeTitle.js +107 -0
- package/es/components/SiderTree/empty.png +0 -0
- package/es/components/SiderTree/index.d.ts +37 -0
- package/es/components/SiderTree/index.js +217 -0
- package/es/components/SiderTree/index.less +222 -0
- package/es/components/SiderTree/typings.d.ts +19 -0
- package/es/components/SymbolIcon/index.d.ts +8 -0
- package/es/components/SymbolIcon/index.js +32 -0
- package/es/components/SymbolIcon/index.less +7 -0
- package/es/components/TabBar/index.d.ts +14 -0
- package/es/components/TabBar/index.js +52 -0
- package/es/components/TabBar/index.less +31 -0
- package/es/components/Table/index.d.ts +3 -0
- package/es/components/Table/index.js +242 -0
- package/es/components/Table/typings.d.ts +25 -0
- package/es/components/Table/utils.d.ts +2 -0
- package/es/components/Table/utils.js +3 -0
- package/es/components/utils.d.ts +3 -0
- package/es/components/utils.js +20 -0
- package/es/constants.d.ts +1 -0
- package/es/constants.js +1 -0
- package/es/{useBatchOperator → hooks/useBatchOperator}/index.d.ts +2 -2
- package/es/{useBatchOperator → hooks/useBatchOperator}/index.js +120 -57
- package/es/{usePageTrack → hooks/usePageTrack}/index.d.ts +0 -0
- package/es/{usePageTrack → hooks/usePageTrack}/index.js +0 -0
- package/es/index.d.ts +33 -6
- package/es/index.js +30 -6
- package/es/index.less +25 -1
- package/es/init.d.ts +3 -0
- package/es/init.js +153 -0
- package/es/layouts/BasicLayout/components/Main.d.ts +10 -0
- package/es/layouts/BasicLayout/components/Main.js +390 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/DropMenu/index.d.ts +11 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/DropMenu/index.js +104 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/DropMenu/index.less +59 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/Menu/index.d.ts +10 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/Menu/index.js +667 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/Menu/index.less +445 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/RefreshButton/index.d.ts +6 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/RefreshButton/index.js +72 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/RefreshButton/index.less +30 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/TabBar/index.d.ts +10 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/TabBar/index.js +116 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/TabBar/index.less +155 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/WaterMark/index.d.ts +6 -0
- package/es/layouts/BasicLayout/components/MainFramework/components/WaterMark/index.js +70 -0
- package/es/layouts/BasicLayout/components/MainFramework/index.d.ts +28 -0
- package/es/layouts/BasicLayout/components/MainFramework/index.js +78 -0
- package/es/layouts/BasicLayout/components/MainFramework/index.less +97 -0
- package/es/layouts/BasicLayout/components/MainFramework/typings.d.ts +10 -0
- package/es/layouts/BasicLayout/index.d.ts +3 -0
- package/es/layouts/BasicLayout/index.js +98 -0
- package/es/layouts/BasicLayout/typings.d.ts +82 -0
- package/es/layouts/BlankLayout/index.d.ts +5 -0
- package/es/layouts/BlankLayout/index.js +5 -0
- package/es/layouts/Breadcrumb/index.d.ts +6 -0
- package/es/layouts/Breadcrumb/index.js +75 -0
- package/es/layouts/MicroLayout/index.d.ts +10 -0
- package/es/layouts/MicroLayout/index.js +105 -0
- package/es/layouts/MicroLayout/typings.d.ts +25 -0
- package/es/layouts/components/CachableRoute.d.ts +2 -0
- package/es/layouts/components/CachableRoute.js +38 -0
- package/es/layouts/components/RouteTab.d.ts +20 -0
- package/es/layouts/components/RouteTab.js +40 -0
- package/es/layouts/components/Switch.d.ts +2 -0
- package/es/layouts/components/Switch.js +63 -0
- package/es/layouts/index.d.ts +4 -0
- package/es/layouts/index.js +4 -0
- package/es/layouts/typings.d.ts +29 -0
- package/es/layouts/utils.d.ts +23 -0
- package/es/layouts/utils.js +175 -0
- package/es/styles/overrides.less +191 -0
- package/es/styles/theme.less +9 -0
- package/es/styles/utils.less +110 -0
- package/package.json +75 -22
- package/es/subject.d.ts +0 -12
- package/es/subject.js +0 -30
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2
|
+
|
|
3
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4
|
+
|
|
5
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
|
+
|
|
7
|
+
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
|
8
|
+
|
|
9
|
+
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
10
|
+
|
|
11
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
12
|
+
|
|
13
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
14
|
+
|
|
15
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
16
|
+
|
|
17
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
18
|
+
|
|
19
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
20
|
+
|
|
21
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
22
|
+
|
|
23
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
|
+
|
|
25
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
26
|
+
|
|
27
|
+
var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
|
|
28
|
+
var c = arguments.length,
|
|
29
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
30
|
+
d;
|
|
31
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
32
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
33
|
+
}
|
|
34
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
import { _, Autowired, DragAndDropService, Events, PostConstruct } from "@ag-grid-community/core";
|
|
38
|
+
import { BaseDropZonePanel } from "./baseDropZonePanel";
|
|
39
|
+
export var PivotDropZonePanel = /*#__PURE__*/function (_BaseDropZonePanel) {
|
|
40
|
+
_inherits(PivotDropZonePanel, _BaseDropZonePanel);
|
|
41
|
+
|
|
42
|
+
var _super = _createSuper(PivotDropZonePanel);
|
|
43
|
+
|
|
44
|
+
function PivotDropZonePanel(horizontal) {
|
|
45
|
+
_classCallCheck(this, PivotDropZonePanel);
|
|
46
|
+
|
|
47
|
+
return _super.call(this, horizontal, 'pivot');
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
_createClass(PivotDropZonePanel, [{
|
|
51
|
+
key: "passBeansUp",
|
|
52
|
+
value: function passBeansUp() {
|
|
53
|
+
_get(_getPrototypeOf(PivotDropZonePanel.prototype), "setBeans", this).call(this, {
|
|
54
|
+
gridOptionsWrapper: this.gridOptionsWrapper,
|
|
55
|
+
eventService: this.eventService,
|
|
56
|
+
context: this.getContext(),
|
|
57
|
+
loggerFactory: this.loggerFactory,
|
|
58
|
+
dragAndDropService: this.dragAndDropService
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();
|
|
62
|
+
var emptyMessage = localeTextFunc('pivotColumnsEmptyMessage', 'Drag here to set column labels');
|
|
63
|
+
var title = localeTextFunc('pivots', 'Column Labels');
|
|
64
|
+
|
|
65
|
+
_get(_getPrototypeOf(PivotDropZonePanel.prototype), "init", this).call(this, {
|
|
66
|
+
dragAndDropIcon: DragAndDropService.ICON_GROUP,
|
|
67
|
+
icon: _.createIconNoSpan('pivotPanel', this.gridOptionsWrapper, null),
|
|
68
|
+
emptyMessage: emptyMessage,
|
|
69
|
+
title: title
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.refresh.bind(this));
|
|
73
|
+
this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_CHANGED, this.refresh.bind(this));
|
|
74
|
+
this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.checkVisibility.bind(this));
|
|
75
|
+
this.refresh();
|
|
76
|
+
}
|
|
77
|
+
}, {
|
|
78
|
+
key: "getAriaLabel",
|
|
79
|
+
value: function getAriaLabel() {
|
|
80
|
+
var translate = this.gridOptionsWrapper.getLocaleTextFunc();
|
|
81
|
+
var label = translate('ariaPivotDropZonePanelLabel', 'Column Labels');
|
|
82
|
+
return label;
|
|
83
|
+
}
|
|
84
|
+
}, {
|
|
85
|
+
key: "getTooltipParams",
|
|
86
|
+
value: function getTooltipParams() {
|
|
87
|
+
var res = _get(_getPrototypeOf(PivotDropZonePanel.prototype), "getTooltipParams", this).call(this);
|
|
88
|
+
|
|
89
|
+
res.location = 'pivotColumnsList';
|
|
90
|
+
return res;
|
|
91
|
+
}
|
|
92
|
+
}, {
|
|
93
|
+
key: "refresh",
|
|
94
|
+
value: function refresh() {
|
|
95
|
+
this.checkVisibility();
|
|
96
|
+
this.refreshGui();
|
|
97
|
+
}
|
|
98
|
+
}, {
|
|
99
|
+
key: "checkVisibility",
|
|
100
|
+
value: function checkVisibility() {
|
|
101
|
+
var pivotMode = this.columnModel.isPivotMode();
|
|
102
|
+
|
|
103
|
+
if (this.isHorizontal()) {
|
|
104
|
+
// what we do for horizontal (ie the pivot panel at the top) depends
|
|
105
|
+
// on the user property as well as pivotMode.
|
|
106
|
+
switch (this.gridOptionsWrapper.getPivotPanelShow()) {
|
|
107
|
+
case 'always':
|
|
108
|
+
this.setDisplayed(pivotMode);
|
|
109
|
+
break;
|
|
110
|
+
|
|
111
|
+
case 'onlyWhenPivoting':
|
|
112
|
+
var pivotActive = this.columnModel.isPivotActive();
|
|
113
|
+
this.setDisplayed(pivotMode && pivotActive);
|
|
114
|
+
break;
|
|
115
|
+
|
|
116
|
+
default:
|
|
117
|
+
// never show it
|
|
118
|
+
this.setDisplayed(false);
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
} else {
|
|
122
|
+
// in toolPanel, the pivot panel is always shown when pivot mode is on
|
|
123
|
+
this.setDisplayed(pivotMode);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}, {
|
|
127
|
+
key: "isColumnDroppable",
|
|
128
|
+
value: function isColumnDroppable(column) {
|
|
129
|
+
// we never allow grouping of secondary columns
|
|
130
|
+
if (this.gridOptionsWrapper.isFunctionsReadOnly() || !column.isPrimary()) {
|
|
131
|
+
return false;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return column.isAllowPivot() && !column.isPivotActive();
|
|
135
|
+
}
|
|
136
|
+
}, {
|
|
137
|
+
key: "updateColumns",
|
|
138
|
+
value: function updateColumns(columns) {
|
|
139
|
+
if (this.gridOptionsWrapper.isFunctionsPassive()) {
|
|
140
|
+
var event = {
|
|
141
|
+
type: Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,
|
|
142
|
+
columns: columns
|
|
143
|
+
};
|
|
144
|
+
this.eventService.dispatchEvent(event);
|
|
145
|
+
} else {
|
|
146
|
+
this.columnModel.setPivotColumns(columns, "toolPanelUi");
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}, {
|
|
150
|
+
key: "getIconName",
|
|
151
|
+
value: function getIconName() {
|
|
152
|
+
return this.isPotentialDndColumns() ? DragAndDropService.ICON_PIVOT : DragAndDropService.ICON_NOT_ALLOWED;
|
|
153
|
+
}
|
|
154
|
+
}, {
|
|
155
|
+
key: "getExistingColumns",
|
|
156
|
+
value: function getExistingColumns() {
|
|
157
|
+
return this.columnModel.getPivotColumns();
|
|
158
|
+
}
|
|
159
|
+
}]);
|
|
160
|
+
|
|
161
|
+
return PivotDropZonePanel;
|
|
162
|
+
}(BaseDropZonePanel);
|
|
163
|
+
|
|
164
|
+
__decorate([Autowired('columnModel')], PivotDropZonePanel.prototype, "columnModel", void 0);
|
|
165
|
+
|
|
166
|
+
__decorate([Autowired('loggerFactory')], PivotDropZonePanel.prototype, "loggerFactory", void 0);
|
|
167
|
+
|
|
168
|
+
__decorate([Autowired('dragAndDropService')], PivotDropZonePanel.prototype, "dragAndDropService", void 0);
|
|
169
|
+
|
|
170
|
+
__decorate([PostConstruct], PivotDropZonePanel.prototype, "passBeansUp", null);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Column, ITooltipParams, WithoutGridCommon } from "@ag-grid-community/core";
|
|
2
|
+
import { BaseDropZonePanel } from "./baseDropZonePanel";
|
|
3
|
+
export declare class RowGroupDropZonePanel extends BaseDropZonePanel {
|
|
4
|
+
private columnModel;
|
|
5
|
+
private loggerFactory;
|
|
6
|
+
private dragAndDropService;
|
|
7
|
+
constructor(horizontal: boolean);
|
|
8
|
+
private passBeansUp;
|
|
9
|
+
protected getAriaLabel(): string;
|
|
10
|
+
getTooltipParams(): WithoutGridCommon<ITooltipParams>;
|
|
11
|
+
protected isColumnDroppable(column: Column): boolean;
|
|
12
|
+
protected updateColumns(columns: Column[]): void;
|
|
13
|
+
protected getIconName(): string;
|
|
14
|
+
protected getExistingColumns(): Column[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2
|
+
|
|
3
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4
|
+
|
|
5
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
|
+
|
|
7
|
+
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
|
8
|
+
|
|
9
|
+
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
10
|
+
|
|
11
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
12
|
+
|
|
13
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
14
|
+
|
|
15
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
16
|
+
|
|
17
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
18
|
+
|
|
19
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
20
|
+
|
|
21
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
22
|
+
|
|
23
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
|
+
|
|
25
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
26
|
+
|
|
27
|
+
var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
|
|
28
|
+
var c = arguments.length,
|
|
29
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
30
|
+
d;
|
|
31
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
32
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
33
|
+
}
|
|
34
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
import { _, Autowired, DragAndDropService, Events, PostConstruct } from "@ag-grid-community/core";
|
|
38
|
+
import { BaseDropZonePanel } from "./baseDropZonePanel";
|
|
39
|
+
export var RowGroupDropZonePanel = /*#__PURE__*/function (_BaseDropZonePanel) {
|
|
40
|
+
_inherits(RowGroupDropZonePanel, _BaseDropZonePanel);
|
|
41
|
+
|
|
42
|
+
var _super = _createSuper(RowGroupDropZonePanel);
|
|
43
|
+
|
|
44
|
+
function RowGroupDropZonePanel(horizontal) {
|
|
45
|
+
_classCallCheck(this, RowGroupDropZonePanel);
|
|
46
|
+
|
|
47
|
+
return _super.call(this, horizontal, 'rowGroup');
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
_createClass(RowGroupDropZonePanel, [{
|
|
51
|
+
key: "passBeansUp",
|
|
52
|
+
value: function passBeansUp() {
|
|
53
|
+
_get(_getPrototypeOf(RowGroupDropZonePanel.prototype), "setBeans", this).call(this, {
|
|
54
|
+
gridOptionsWrapper: this.gridOptionsWrapper,
|
|
55
|
+
eventService: this.eventService,
|
|
56
|
+
context: this.getContext(),
|
|
57
|
+
loggerFactory: this.loggerFactory,
|
|
58
|
+
dragAndDropService: this.dragAndDropService
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();
|
|
62
|
+
var emptyMessage = localeTextFunc('rowGroupColumnsEmptyMessage', 'Drag here to set row groups');
|
|
63
|
+
var title = localeTextFunc('groups', 'Row Groups');
|
|
64
|
+
|
|
65
|
+
_get(_getPrototypeOf(RowGroupDropZonePanel.prototype), "init", this).call(this, {
|
|
66
|
+
dragAndDropIcon: DragAndDropService.ICON_GROUP,
|
|
67
|
+
icon: _.createIconNoSpan('rowGroupPanel', this.gridOptionsWrapper, null),
|
|
68
|
+
emptyMessage: emptyMessage,
|
|
69
|
+
title: title
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.refreshGui.bind(this));
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
key: "getAriaLabel",
|
|
76
|
+
value: function getAriaLabel() {
|
|
77
|
+
var translate = this.gridOptionsWrapper.getLocaleTextFunc();
|
|
78
|
+
var label = translate('ariaRowGroupDropZonePanelLabel', 'Row Groups');
|
|
79
|
+
return label;
|
|
80
|
+
}
|
|
81
|
+
}, {
|
|
82
|
+
key: "getTooltipParams",
|
|
83
|
+
value: function getTooltipParams() {
|
|
84
|
+
var res = _get(_getPrototypeOf(RowGroupDropZonePanel.prototype), "getTooltipParams", this).call(this);
|
|
85
|
+
|
|
86
|
+
res.location = 'rowGroupColumnsList';
|
|
87
|
+
return res;
|
|
88
|
+
}
|
|
89
|
+
}, {
|
|
90
|
+
key: "isColumnDroppable",
|
|
91
|
+
value: function isColumnDroppable(column) {
|
|
92
|
+
// we never allow grouping of secondary columns
|
|
93
|
+
if (this.gridOptionsWrapper.isFunctionsReadOnly() || !column.isPrimary()) {
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return column.isAllowRowGroup() && !column.isRowGroupActive();
|
|
98
|
+
}
|
|
99
|
+
}, {
|
|
100
|
+
key: "updateColumns",
|
|
101
|
+
value: function updateColumns(columns) {
|
|
102
|
+
if (this.gridOptionsWrapper.isFunctionsPassive()) {
|
|
103
|
+
var event = {
|
|
104
|
+
type: Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,
|
|
105
|
+
columns: columns
|
|
106
|
+
};
|
|
107
|
+
this.eventService.dispatchEvent(event);
|
|
108
|
+
} else {
|
|
109
|
+
this.columnModel.setRowGroupColumns(columns, "toolPanelUi");
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}, {
|
|
113
|
+
key: "getIconName",
|
|
114
|
+
value: function getIconName() {
|
|
115
|
+
return this.isPotentialDndColumns() ? DragAndDropService.ICON_GROUP : DragAndDropService.ICON_NOT_ALLOWED;
|
|
116
|
+
}
|
|
117
|
+
}, {
|
|
118
|
+
key: "getExistingColumns",
|
|
119
|
+
value: function getExistingColumns() {
|
|
120
|
+
return this.columnModel.getRowGroupColumns();
|
|
121
|
+
}
|
|
122
|
+
}]);
|
|
123
|
+
|
|
124
|
+
return RowGroupDropZonePanel;
|
|
125
|
+
}(BaseDropZonePanel);
|
|
126
|
+
|
|
127
|
+
__decorate([Autowired('columnModel')], RowGroupDropZonePanel.prototype, "columnModel", void 0);
|
|
128
|
+
|
|
129
|
+
__decorate([Autowired('loggerFactory')], RowGroupDropZonePanel.prototype, "loggerFactory", void 0);
|
|
130
|
+
|
|
131
|
+
__decorate([Autowired('dragAndDropService')], RowGroupDropZonePanel.prototype, "dragAndDropService", void 0);
|
|
132
|
+
|
|
133
|
+
__decorate([PostConstruct], RowGroupDropZonePanel.prototype, "passBeansUp", null);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Column, ITooltipParams, WithoutGridCommon } from "@ag-grid-community/core";
|
|
2
|
+
import { BaseDropZonePanel } from "./baseDropZonePanel";
|
|
3
|
+
export declare class ValuesDropZonePanel extends BaseDropZonePanel {
|
|
4
|
+
private columnModel;
|
|
5
|
+
private loggerFactory;
|
|
6
|
+
private dragAndDropService;
|
|
7
|
+
constructor(horizontal: boolean);
|
|
8
|
+
private passBeansUp;
|
|
9
|
+
protected getAriaLabel(): string;
|
|
10
|
+
getTooltipParams(): WithoutGridCommon<ITooltipParams>;
|
|
11
|
+
protected getIconName(): string;
|
|
12
|
+
protected isColumnDroppable(column: Column): boolean;
|
|
13
|
+
protected updateColumns(columns: Column[]): void;
|
|
14
|
+
protected getExistingColumns(): Column[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2
|
+
|
|
3
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4
|
+
|
|
5
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
|
+
|
|
7
|
+
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
|
8
|
+
|
|
9
|
+
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
10
|
+
|
|
11
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
12
|
+
|
|
13
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
14
|
+
|
|
15
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
16
|
+
|
|
17
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
18
|
+
|
|
19
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
20
|
+
|
|
21
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
22
|
+
|
|
23
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
|
+
|
|
25
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
26
|
+
|
|
27
|
+
var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
|
|
28
|
+
var c = arguments.length,
|
|
29
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
30
|
+
d;
|
|
31
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
32
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
33
|
+
}
|
|
34
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
import { _, Autowired, DragAndDropService, Events, PostConstruct } from "@ag-grid-community/core";
|
|
38
|
+
import { BaseDropZonePanel } from "./baseDropZonePanel";
|
|
39
|
+
export var ValuesDropZonePanel = /*#__PURE__*/function (_BaseDropZonePanel) {
|
|
40
|
+
_inherits(ValuesDropZonePanel, _BaseDropZonePanel);
|
|
41
|
+
|
|
42
|
+
var _super = _createSuper(ValuesDropZonePanel);
|
|
43
|
+
|
|
44
|
+
function ValuesDropZonePanel(horizontal) {
|
|
45
|
+
_classCallCheck(this, ValuesDropZonePanel);
|
|
46
|
+
|
|
47
|
+
return _super.call(this, horizontal, 'aggregation');
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
_createClass(ValuesDropZonePanel, [{
|
|
51
|
+
key: "passBeansUp",
|
|
52
|
+
value: function passBeansUp() {
|
|
53
|
+
_get(_getPrototypeOf(ValuesDropZonePanel.prototype), "setBeans", this).call(this, {
|
|
54
|
+
gridOptionsWrapper: this.gridOptionsWrapper,
|
|
55
|
+
eventService: this.eventService,
|
|
56
|
+
context: this.getContext(),
|
|
57
|
+
loggerFactory: this.loggerFactory,
|
|
58
|
+
dragAndDropService: this.dragAndDropService
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();
|
|
62
|
+
var emptyMessage = localeTextFunc('valueColumnsEmptyMessage', 'Drag here to aggregate');
|
|
63
|
+
var title = localeTextFunc('values', 'Values');
|
|
64
|
+
|
|
65
|
+
_get(_getPrototypeOf(ValuesDropZonePanel.prototype), "init", this).call(this, {
|
|
66
|
+
dragAndDropIcon: DragAndDropService.ICON_AGGREGATE,
|
|
67
|
+
icon: _.createIconNoSpan('valuePanel', this.gridOptionsWrapper, null),
|
|
68
|
+
emptyMessage: emptyMessage,
|
|
69
|
+
title: title
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
this.addManagedListener(this.eventService, Events.EVENT_COLUMN_VALUE_CHANGED, this.refreshGui.bind(this));
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
key: "getAriaLabel",
|
|
76
|
+
value: function getAriaLabel() {
|
|
77
|
+
var translate = this.gridOptionsWrapper.getLocaleTextFunc();
|
|
78
|
+
var label = translate('ariaValuesDropZonePanelLabel', 'Values');
|
|
79
|
+
return label;
|
|
80
|
+
}
|
|
81
|
+
}, {
|
|
82
|
+
key: "getTooltipParams",
|
|
83
|
+
value: function getTooltipParams() {
|
|
84
|
+
var res = _get(_getPrototypeOf(ValuesDropZonePanel.prototype), "getTooltipParams", this).call(this);
|
|
85
|
+
|
|
86
|
+
res.location = 'valueColumnsList';
|
|
87
|
+
return res;
|
|
88
|
+
}
|
|
89
|
+
}, {
|
|
90
|
+
key: "getIconName",
|
|
91
|
+
value: function getIconName() {
|
|
92
|
+
return this.isPotentialDndColumns() ? DragAndDropService.ICON_AGGREGATE : DragAndDropService.ICON_NOT_ALLOWED;
|
|
93
|
+
}
|
|
94
|
+
}, {
|
|
95
|
+
key: "isColumnDroppable",
|
|
96
|
+
value: function isColumnDroppable(column) {
|
|
97
|
+
// we never allow grouping of secondary columns
|
|
98
|
+
if (this.gridOptionsWrapper.isFunctionsReadOnly() || !column.isPrimary()) {
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return column.isAllowValue() && !column.isValueActive();
|
|
103
|
+
}
|
|
104
|
+
}, {
|
|
105
|
+
key: "updateColumns",
|
|
106
|
+
value: function updateColumns(columns) {
|
|
107
|
+
if (this.gridOptionsWrapper.isFunctionsPassive()) {
|
|
108
|
+
var event = {
|
|
109
|
+
type: Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,
|
|
110
|
+
columns: columns
|
|
111
|
+
};
|
|
112
|
+
this.eventService.dispatchEvent(event);
|
|
113
|
+
} else {
|
|
114
|
+
this.columnModel.setValueColumns(columns, "toolPanelUi");
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}, {
|
|
118
|
+
key: "getExistingColumns",
|
|
119
|
+
value: function getExistingColumns() {
|
|
120
|
+
return this.columnModel.getValueColumns();
|
|
121
|
+
}
|
|
122
|
+
}]);
|
|
123
|
+
|
|
124
|
+
return ValuesDropZonePanel;
|
|
125
|
+
}(BaseDropZonePanel);
|
|
126
|
+
|
|
127
|
+
__decorate([Autowired('columnModel')], ValuesDropZonePanel.prototype, "columnModel", void 0);
|
|
128
|
+
|
|
129
|
+
__decorate([Autowired('loggerFactory')], ValuesDropZonePanel.prototype, "loggerFactory", void 0);
|
|
130
|
+
|
|
131
|
+
__decorate([Autowired('dragAndDropService')], ValuesDropZonePanel.prototype, "dragAndDropService", void 0);
|
|
132
|
+
|
|
133
|
+
__decorate([PostConstruct], ValuesDropZonePanel.prototype, "passBeansUp", null);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IRowNodeStage, StageExecuteParams, BeanStub } from "@ag-grid-community/core";
|
|
2
|
+
export declare class FilterAggregatesStage extends BeanStub implements IRowNodeStage {
|
|
3
|
+
private filterManager;
|
|
4
|
+
private columnModel;
|
|
5
|
+
execute(params: StageExecuteParams): void;
|
|
6
|
+
private setAllChildrenCountTreeData;
|
|
7
|
+
private setAllChildrenCountGridGrouping;
|
|
8
|
+
private setAllChildrenCount;
|
|
9
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2
|
+
|
|
3
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4
|
+
|
|
5
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
|
+
|
|
7
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
8
|
+
|
|
9
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10
|
+
|
|
11
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12
|
+
|
|
13
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
14
|
+
|
|
15
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
16
|
+
|
|
17
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
18
|
+
|
|
19
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
20
|
+
|
|
21
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
22
|
+
|
|
23
|
+
var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
|
|
24
|
+
var c = arguments.length,
|
|
25
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
26
|
+
d;
|
|
27
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
28
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
29
|
+
}
|
|
30
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
import { Autowired, Bean, BeanStub } from "@ag-grid-community/core";
|
|
34
|
+
|
|
35
|
+
var FilterAggregatesStage = /*#__PURE__*/function (_BeanStub) {
|
|
36
|
+
_inherits(FilterAggregatesStage, _BeanStub);
|
|
37
|
+
|
|
38
|
+
var _super = _createSuper(FilterAggregatesStage);
|
|
39
|
+
|
|
40
|
+
function FilterAggregatesStage() {
|
|
41
|
+
_classCallCheck(this, FilterAggregatesStage);
|
|
42
|
+
|
|
43
|
+
return _super.apply(this, arguments);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
_createClass(FilterAggregatesStage, [{
|
|
47
|
+
key: "execute",
|
|
48
|
+
value: function execute(params) {
|
|
49
|
+
var _this = this;
|
|
50
|
+
|
|
51
|
+
var isPivotMode = this.columnModel.isPivotMode();
|
|
52
|
+
var isAggFilterActive = this.filterManager.isAggregateFilterPresent(); // This is the default filter for applying only to leaf nodes, realistically this should not apply as primary agg columns,
|
|
53
|
+
// should not be applied by the filterManager if getGroupAggFiltering is missing. Predicate will apply filters to leaf level.
|
|
54
|
+
|
|
55
|
+
var defaultPrimaryColumnPredicate = function defaultPrimaryColumnPredicate(params) {
|
|
56
|
+
return !params.node.group;
|
|
57
|
+
}; // Default secondary column predicate, selecting only leaf level groups.
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
var defaultSecondaryColumnPredicate = function defaultSecondaryColumnPredicate(params) {
|
|
61
|
+
return params.node.leafGroup;
|
|
62
|
+
}; // The predicate to determine whether filters should apply to this row. Either defined by the user in groupAggFiltering or a default depending
|
|
63
|
+
// on current pivot mode status.
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
var applyFilterToNode = this.gridOptionsWrapper.getGroupAggFiltering() || (isPivotMode ? defaultSecondaryColumnPredicate : defaultPrimaryColumnPredicate);
|
|
67
|
+
var changedPath = params.changedPath;
|
|
68
|
+
|
|
69
|
+
var preserveChildren = function preserveChildren(node) {
|
|
70
|
+
var recursive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
71
|
+
|
|
72
|
+
if (node.childrenAfterFilter) {
|
|
73
|
+
node.childrenAfterAggFilter = node.childrenAfterFilter;
|
|
74
|
+
|
|
75
|
+
if (recursive) {
|
|
76
|
+
node.childrenAfterAggFilter.forEach(function (child) {
|
|
77
|
+
return preserveChildren(child, recursive);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
_this.setAllChildrenCount(node);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (node.sibling) {
|
|
85
|
+
node.sibling.childrenAfterAggFilter = node.childrenAfterAggFilter;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
var filterChildren = function filterChildren(node) {
|
|
90
|
+
var _a;
|
|
91
|
+
|
|
92
|
+
node.childrenAfterAggFilter = ((_a = node.childrenAfterFilter) === null || _a === void 0 ? void 0 : _a.filter(function (child) {
|
|
93
|
+
var _a;
|
|
94
|
+
|
|
95
|
+
var shouldFilterRow = applyFilterToNode({
|
|
96
|
+
node: child
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
if (shouldFilterRow) {
|
|
100
|
+
var doesNodePassFilter = _this.filterManager.doesRowPassAggregateFilters({
|
|
101
|
+
rowNode: child
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
if (doesNodePassFilter) {
|
|
105
|
+
// Node has passed, so preserve children
|
|
106
|
+
preserveChildren(child, true);
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
var hasChildPassed = (_a = child.childrenAfterAggFilter) === null || _a === void 0 ? void 0 : _a.length;
|
|
112
|
+
return hasChildPassed;
|
|
113
|
+
})) || null;
|
|
114
|
+
|
|
115
|
+
_this.setAllChildrenCount(node);
|
|
116
|
+
|
|
117
|
+
if (node.sibling) {
|
|
118
|
+
node.sibling.childrenAfterAggFilter = node.childrenAfterAggFilter;
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
changedPath.forEachChangedNodeDepthFirst(isAggFilterActive ? filterChildren : preserveChildren, true);
|
|
123
|
+
}
|
|
124
|
+
}, {
|
|
125
|
+
key: "setAllChildrenCountTreeData",
|
|
126
|
+
value: function setAllChildrenCountTreeData(rowNode) {
|
|
127
|
+
// for tree data, we include all children, groups and leafs
|
|
128
|
+
var allChildrenCount = 0;
|
|
129
|
+
rowNode.childrenAfterAggFilter.forEach(function (child) {
|
|
130
|
+
// include child itself
|
|
131
|
+
allChildrenCount++; // include children of children
|
|
132
|
+
|
|
133
|
+
allChildrenCount += child.allChildrenCount;
|
|
134
|
+
});
|
|
135
|
+
rowNode.setAllChildrenCount(allChildrenCount);
|
|
136
|
+
}
|
|
137
|
+
}, {
|
|
138
|
+
key: "setAllChildrenCountGridGrouping",
|
|
139
|
+
value: function setAllChildrenCountGridGrouping(rowNode) {
|
|
140
|
+
// for grid data, we only count the leafs
|
|
141
|
+
var allChildrenCount = 0;
|
|
142
|
+
rowNode.childrenAfterAggFilter.forEach(function (child) {
|
|
143
|
+
if (child.group) {
|
|
144
|
+
allChildrenCount += child.allChildrenCount;
|
|
145
|
+
} else {
|
|
146
|
+
allChildrenCount++;
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
rowNode.setAllChildrenCount(allChildrenCount);
|
|
150
|
+
}
|
|
151
|
+
}, {
|
|
152
|
+
key: "setAllChildrenCount",
|
|
153
|
+
value: function setAllChildrenCount(rowNode) {
|
|
154
|
+
if (!rowNode.hasChildren()) {
|
|
155
|
+
rowNode.setAllChildrenCount(null);
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (this.gridOptionsWrapper.isTreeData()) {
|
|
160
|
+
this.setAllChildrenCountTreeData(rowNode);
|
|
161
|
+
} else {
|
|
162
|
+
this.setAllChildrenCountGridGrouping(rowNode);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}]);
|
|
166
|
+
|
|
167
|
+
return FilterAggregatesStage;
|
|
168
|
+
}(BeanStub);
|
|
169
|
+
|
|
170
|
+
__decorate([Autowired('filterManager')], FilterAggregatesStage.prototype, "filterManager", void 0);
|
|
171
|
+
|
|
172
|
+
__decorate([Autowired('columnModel')], FilterAggregatesStage.prototype, "columnModel", void 0);
|
|
173
|
+
|
|
174
|
+
FilterAggregatesStage = __decorate([Bean('filterAggregatesStage')], FilterAggregatesStage);
|
|
175
|
+
export { FilterAggregatesStage };
|