@lemon-fe/kits 1.0.0-21 → 1.0.0-210
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 +5 -0
- package/es/components/Actions/index.d.ts +8 -5
- package/es/components/Actions/index.js +44 -28
- package/es/components/Actions/index.less +5 -4
- package/es/components/Alert/index.d.ts +3 -0
- package/es/components/Alert/index.js +23 -0
- package/es/components/BaseTable/Actions.js +2 -2
- package/es/components/BaseTable/VirtualBody.js +2 -2
- package/es/components/BaseTable/index.js +2 -2
- package/es/components/BaseTable/utils.d.ts +1 -1
- package/es/components/DataGrid/cell-editors/Date.d.ts +15 -5
- package/es/components/DataGrid/cell-editors/Date.js +52 -14
- package/es/components/DataGrid/cell-editors/Number.d.ts +14 -6
- package/es/components/DataGrid/cell-editors/Number.js +94 -34
- package/es/components/DataGrid/cell-editors/Row.d.ts +23 -0
- package/es/components/DataGrid/cell-editors/Row.js +146 -0
- package/es/components/DataGrid/cell-editors/Select.d.ts +29 -3
- package/es/components/DataGrid/cell-editors/Select.js +82 -18
- package/es/components/DataGrid/cell-editors/Text.d.ts +7 -5
- package/es/components/DataGrid/cell-editors/Text.js +55 -9
- package/es/components/DataGrid/cell-editors/Wrapper.d.ts +2 -1
- package/es/components/DataGrid/cell-editors/Wrapper.js +4 -2
- package/es/components/DataGrid/cell-editors/utils.d.ts +9 -0
- package/es/components/DataGrid/cell-editors/utils.js +56 -1
- package/es/components/DataGrid/components/CustomColumnPanel/DragContext.d.ts +4 -0
- package/es/components/DataGrid/components/CustomColumnPanel/DragContext.js +3 -0
- package/es/components/DataGrid/components/CustomColumnPanel/FieldModal.d.ts +10 -0
- package/es/components/DataGrid/components/CustomColumnPanel/FieldModal.js +256 -0
- package/es/components/DataGrid/components/CustomColumnPanel/Item.d.ts +14 -0
- package/es/components/DataGrid/components/CustomColumnPanel/Item.js +200 -0
- package/es/components/DataGrid/components/CustomColumnPanel/index.d.ts +5 -0
- package/es/components/DataGrid/components/CustomColumnPanel/index.js +366 -0
- package/es/components/DataGrid/components/CustomColumnPanel/typings.d.ts +25 -0
- package/es/components/DataGrid/components/Search.d.ts +4 -0
- package/es/components/DataGrid/components/Search.js +186 -0
- package/es/components/DataGrid/components/Selected.d.ts +7 -0
- package/es/components/DataGrid/components/Selected.js +32 -0
- package/es/components/DataGrid/context/GridStore.d.ts +4 -0
- package/es/components/DataGrid/context/GridStore.js +4 -0
- package/es/components/DataGrid/hooks.d.ts +18 -0
- package/es/components/DataGrid/hooks.js +46 -3
- package/es/components/DataGrid/index.d.ts +62 -25
- package/es/components/DataGrid/index.js +1288 -503
- package/es/components/DataGrid/index.less +382 -41
- package/es/components/DataGrid/modules/clipboard/clipboard/clipboardService.d.ts +60 -60
- package/es/components/DataGrid/modules/clipboard/clipboard/clipboardService.js +359 -69
- package/es/components/DataGrid/modules/clipboard/clipboardModule.d.ts +2 -7
- package/es/components/DataGrid/modules/clipboard/clipboardModule.js +4 -2
- package/es/components/DataGrid/modules/clipboard/main.d.ts +1 -0
- package/es/components/DataGrid/modules/clipboard/version.d.ts +1 -0
- package/es/components/DataGrid/modules/clipboard/version.js +2 -0
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnModelItem.d.ts +24 -30
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnModelItem.js +1 -1
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnToolPanel.d.ts +30 -49
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/columnToolPanel.js +7 -7
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/modelItemUtils.d.ts +14 -18
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/modelItemUtils.js +7 -7
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/pivotModePanel.d.ts +7 -7
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/pivotModePanel.js +8 -8
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.d.ts +28 -28
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.js +17 -17
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.d.ts +42 -47
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.js +8 -8
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.d.ts +24 -24
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.js +6 -6
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.d.ts +23 -31
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.js +9 -16
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.d.ts +35 -41
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.js +18 -18
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.d.ts +49 -60
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.js +21 -20
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.d.ts +22 -22
- package/es/components/DataGrid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.js +16 -16
- package/es/components/DataGrid/modules/column-tool-panel/columnsToolPanelModule.d.ts +2 -24
- package/es/components/DataGrid/modules/column-tool-panel/columnsToolPanelModule.js +8 -3
- package/es/components/DataGrid/modules/column-tool-panel/main.d.ts +2 -0
- package/es/components/DataGrid/modules/column-tool-panel/version.d.ts +1 -0
- package/es/components/DataGrid/modules/column-tool-panel/version.js +2 -0
- package/es/components/DataGrid/modules/master-detail/main.d.ts +1 -0
- package/es/components/DataGrid/modules/master-detail/main.js +1 -0
- package/es/components/DataGrid/modules/master-detail/masterDetail/detailCellRenderer.d.ts +14 -0
- package/es/components/DataGrid/modules/master-detail/masterDetail/detailCellRenderer.js +170 -0
- package/es/components/DataGrid/modules/master-detail/masterDetail/detailCellRendererCtrl.d.ts +19 -0
- package/es/components/DataGrid/modules/master-detail/masterDetail/detailCellRendererCtrl.js +245 -0
- package/es/components/DataGrid/modules/master-detail/masterDetailModule.d.ts +2 -0
- package/es/components/DataGrid/modules/master-detail/masterDetailModule.js +18 -0
- package/es/components/DataGrid/modules/master-detail/version.d.ts +1 -0
- package/es/components/DataGrid/modules/master-detail/version.js +2 -0
- package/es/components/DataGrid/modules/menu/menu/chartMenuItemMapper.d.ts +13 -0
- package/es/components/DataGrid/modules/menu/menu/chartMenuItemMapper.js +417 -0
- package/es/components/DataGrid/modules/menu/menu/contextMenu.d.ts +11 -24
- package/es/components/DataGrid/modules/menu/menu/contextMenu.js +32 -25
- package/es/components/DataGrid/modules/menu/menu/enterpriseMenu.d.ts +60 -79
- package/es/components/DataGrid/modules/menu/menu/enterpriseMenu.js +182 -129
- package/es/components/DataGrid/modules/menu/menu/menuItemMapper.d.ts +10 -12
- package/es/components/DataGrid/modules/menu/menu/menuItemMapper.js +81 -249
- package/es/components/DataGrid/modules/menu/menuModule.d.ts +2 -8
- package/es/components/DataGrid/modules/menu/menuModule.js +6 -2
- package/es/components/DataGrid/modules/menu/version.d.ts +1 -0
- package/es/components/DataGrid/modules/menu/version.js +2 -0
- package/es/components/DataGrid/modules/row-grouping/main.d.ts +4 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/aggFuncService.js +1 -1
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/aggregationStage.d.ts +3 -1
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/aggregationStage.js +30 -12
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/batchRemover.d.ts +2 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/batchRemover.js +12 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.d.ts +2 -2
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.js +12 -10
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.js +20 -21
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.js +5 -5
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.js +7 -7
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.js +6 -6
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.js +6 -6
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/filterAggregatesStage.js +2 -2
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/groupFilter/groupFilter.d.ts +39 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/groupFilter/groupFilter.js +395 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/groupFilter/groupFloatingFilter.d.ts +23 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/groupFilter/groupFloatingFilter.js +207 -0
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/groupStage.d.ts +2 -1
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/groupStage.js +66 -20
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/pivotColDefService.js +8 -8
- package/es/components/DataGrid/modules/row-grouping/rowGrouping/pivotStage.js +19 -15
- package/es/components/DataGrid/modules/row-grouping/rowGroupingModule.d.ts +2 -16
- package/es/components/DataGrid/modules/row-grouping/rowGroupingModule.js +14 -2
- package/es/components/DataGrid/modules/row-grouping/version.d.ts +1 -0
- package/es/components/DataGrid/modules/row-grouping/version.js +2 -0
- package/es/components/DataGrid/modules/side-bar/main.d.ts +2 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/common/toolPanelColDefService.d.ts +9 -9
- package/es/components/DataGrid/modules/side-bar/sideBar/common/toolPanelColDefService.js +3 -8
- package/es/components/DataGrid/modules/side-bar/sideBar/horizontalResizeComp.d.ts +17 -17
- package/es/components/DataGrid/modules/side-bar/sideBar/horizontalResizeComp.js +5 -5
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonComp.d.ts +14 -14
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonComp.js +8 -8
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonsComp.d.ts +14 -14
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarButtonsComp.js +6 -6
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarComp.d.ts +26 -27
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarComp.js +82 -45
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarDefParser.d.ts +10 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/sideBarDefParser.js +111 -0
- package/es/components/DataGrid/modules/side-bar/sideBar/toolPanelWrapper.d.ts +15 -15
- package/es/components/DataGrid/modules/side-bar/sideBar/toolPanelWrapper.js +5 -5
- package/es/components/DataGrid/modules/side-bar/sideBarModule.d.ts +2 -19
- package/es/components/DataGrid/modules/side-bar/sideBarModule.js +5 -2
- package/es/components/DataGrid/modules/side-bar/version.d.ts +1 -0
- package/es/components/DataGrid/modules/side-bar/version.js +2 -0
- package/es/components/DataGrid/{Actions.d.ts → renderer/Actions.d.ts} +1 -1
- package/es/components/DataGrid/{Actions.js → renderer/Actions.js} +4 -4
- package/es/components/DataGrid/renderer/CellDeleteRenderer.d.ts +5 -0
- package/es/components/DataGrid/renderer/CellDeleteRenderer.js +64 -0
- package/es/components/DataGrid/renderer/CellIndexRenderer.d.ts +4 -0
- package/es/components/DataGrid/renderer/CellIndexRenderer.js +53 -0
- package/es/components/DataGrid/{CellRenderer.d.ts → renderer/CellRenderer.d.ts} +2 -2
- package/es/components/DataGrid/{CellRenderer.js → renderer/CellRenderer.js} +18 -8
- package/es/components/DataGrid/renderer/DetailCellRenderer.d.ts +9 -0
- package/es/components/DataGrid/renderer/DetailCellRenderer.js +71 -0
- package/es/components/DataGrid/{HeaderRenderer.d.ts → renderer/HeaderRenderer.d.ts} +3 -3
- package/es/components/DataGrid/{HeaderRenderer.js → renderer/HeaderRenderer.js} +35 -15
- package/es/components/DataGrid/typings.d.ts +108 -32
- package/es/components/DataGrid/utils.d.ts +13 -6
- package/es/components/DataGrid/utils.js +115 -28
- package/es/components/Dropdown/index.d.ts +7 -8
- package/es/components/Dropdown/index.js +40 -47
- package/es/components/Dropdown/index.less +2 -10
- package/es/components/DurationPicker/index.d.ts +12 -9
- package/es/components/DurationPicker/index.js +87 -57
- package/es/components/DurationPicker/index.less +3 -52
- package/es/components/EditableTable/EditableCell.d.ts +1 -1
- package/es/components/EditableTable/EditableTableFormItem.d.ts +1 -1
- package/es/components/EditableTable/Table.d.ts +1 -1
- package/es/components/EditableTable/Table.js +7 -7
- package/es/components/EditableTable/typings.d.ts +1 -1
- package/es/components/Filter/index.js +157 -98
- package/es/components/Filter/index.less +1 -5
- package/es/components/Filter/typings.d.ts +36 -2
- package/es/components/FormLayout/index.d.ts +5 -1
- package/es/components/FormLayout/index.js +5 -4
- package/es/components/FormLayout/index.less +18 -8
- package/es/components/GreyPanel/index.d.ts +6 -0
- package/es/components/GreyPanel/index.js +20 -0
- package/es/components/GreyPanel/index.less +11 -0
- package/es/components/Icons/Add.d.ts +6 -0
- package/es/components/Icons/Add.js +42 -0
- package/es/components/Icons/BigTip/index.d.ts +1 -1
- package/es/components/Icons/Calendar.d.ts +1 -1
- package/es/components/Icons/Calendar.js +12 -17
- package/es/components/Icons/Clear.d.ts +3 -0
- package/es/components/Icons/Clear.js +21 -0
- package/es/components/Icons/Clock.d.ts +5 -0
- package/es/components/Icons/Clock.js +30 -0
- package/es/components/Icons/Close.d.ts +1 -1
- package/es/components/Icons/CloseLight.d.ts +5 -0
- package/es/components/Icons/CloseLight.js +34 -0
- package/es/components/Icons/CollapseUp.d.ts +1 -1
- package/es/components/Icons/DarkSearch.d.ts +1 -1
- package/es/components/Icons/Delete.d.ts +3 -0
- package/es/components/Icons/Delete.js +40 -0
- package/es/components/Icons/Down.d.ts +3 -5
- package/es/components/Icons/Down.js +5 -15
- package/es/components/Icons/Drag/drag.svg +7 -0
- package/es/components/Icons/Drag/index.d.ts +3 -0
- package/es/components/Icons/Drag/index.js +34 -0
- package/es/components/Icons/LookUp.d.ts +1 -1
- package/es/components/Icons/More.d.ts +3 -5
- package/es/components/Icons/NewTag.d.ts +3 -0
- package/es/components/Icons/NewTag.js +22 -0
- package/es/components/Icons/Plus/index.d.ts +3 -0
- package/es/components/Icons/Plus/index.js +30 -0
- package/es/components/Icons/Plus/plus.svg +6 -0
- package/es/components/Icons/Question.d.ts +3 -0
- package/es/components/Icons/Question.js +21 -0
- package/es/components/Icons/Reload.d.ts +3 -0
- package/es/components/Icons/Reload.js +21 -0
- package/es/components/Icons/Search.d.ts +3 -5
- package/es/components/Icons/Search.js +7 -17
- package/es/components/Icons/Tip.d.ts +4 -5
- package/es/components/Icons/Tip.js +59 -68
- package/es/components/Icons/index.d.ts +27 -7
- package/es/components/Icons/index.js +29 -9
- package/es/components/InputCompact/index.d.ts +11 -0
- package/es/components/InputCompact/index.js +80 -0
- package/es/components/InputCompact/index.less +33 -0
- package/es/components/InputNumber/index.d.ts +8 -0
- package/es/components/InputNumber/index.js +38 -0
- package/es/components/InputNumber/index.less +58 -0
- package/es/components/Layout/index.d.ts +26 -8
- package/es/components/Layout/index.js +159 -54
- package/es/components/Layout/index.less +58 -33
- package/es/components/Popup/index.d.ts +43 -7
- package/es/components/Popup/index.js +183 -89
- package/es/components/Popup/index.less +23 -1
- package/es/components/Portal/index.d.ts +7 -6
- package/es/components/Portal/index.js +57 -12
- package/es/components/Section/TabBar.d.ts +2 -1
- package/es/components/Section/index.d.ts +6 -2
- package/es/components/Section/index.js +30 -23
- package/es/components/Section/index.less +6 -2
- package/es/components/SelectPanel/index.d.ts +17 -0
- package/es/components/SelectPanel/index.js +70 -0
- package/es/components/SelectPanel/index.less +112 -0
- package/es/components/SelectView/index.d.ts +16 -5
- package/es/components/SelectView/index.js +162 -119
- package/es/components/SelectView/index.less +23 -26
- package/es/components/SiderTree/TreeNodeTitle.js +2 -2
- package/es/components/SiderTree/index.d.ts +4 -2
- package/es/components/SiderTree/index.js +50 -71
- package/es/components/SiderTree/index.less +23 -77
- package/es/components/State/index.d.ts +8 -0
- package/es/components/State/index.js +25 -0
- package/es/components/State/index.less +131 -0
- package/es/components/TabBar/index.d.ts +2 -3
- package/es/components/TabBar/index.js +24 -42
- package/es/components/TabBar/index.less +2 -28
- package/es/components/Table/typings.d.ts +1 -2
- package/es/components/Table/utils.d.ts +1 -1
- package/es/components/TipMark/index.d.ts +8 -0
- package/es/components/{DataGrid/cell-editors/Custom.js → TipMark/index.js} +40 -12
- package/es/components/utils.d.ts +1 -1
- package/es/components/utils.js +2 -2
- package/es/hooks/useBatchOperator/index.d.ts +83 -10
- package/es/hooks/useBatchOperator/index.js +644 -300
- package/es/hooks/useHistoryBlock/index.d.ts +8 -0
- package/es/hooks/useHistoryBlock/index.js +30 -0
- package/es/index.d.ts +20 -4
- package/es/index.js +15 -2
- package/es/index.less +5 -0
- package/es/init.js +82 -24
- package/es/layouts/BasicLayout/components/Main.js +37 -4
- package/es/layouts/BasicLayout/components/MainFramework/components/Menu/index.js +23 -22
- package/es/layouts/BasicLayout/components/MainFramework/index.less +19 -0
- package/es/layouts/BasicLayout/typings.d.ts +3 -3
- package/es/layouts/Breadcrumb/index.d.ts +13 -5
- package/es/layouts/Breadcrumb/index.js +31 -10
- package/es/layouts/Breadcrumb/index.less +5 -1
- package/es/layouts/MicroLayout/index.js +69 -5
- package/es/layouts/MicroLayout/typings.d.ts +5 -3
- package/es/layouts/TabInstance.d.ts +31 -0
- package/es/layouts/TabInstance.js +115 -0
- package/es/layouts/components/RouteTab.d.ts +7 -3
- package/es/layouts/components/RouteTab.js +6 -2
- package/es/layouts/typings.d.ts +0 -2
- package/es/layouts/utils.d.ts +1 -1
- package/es/layouts/utils.js +4 -4
- package/es/styles/empty.png +0 -0
- package/es/styles/overrides.less +203 -59
- package/es/styles/theme.less +21 -1
- package/es/styles/utils.less +18 -18
- package/package.json +28 -12
- package/es/components/DataGrid/GridContext.d.ts +0 -4
- package/es/components/DataGrid/GridContext.js +0 -4
- package/es/components/DataGrid/cell-editors/Custom.d.ts +0 -9
- package/es/components/DataGrid/empty.png +0 -0
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideNodeManager.d.ts +0 -35
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideNodeManager.js +0 -378
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideRowModel.d.ts +0 -99
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/clientSideRowModel.js +0 -1160
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterService.d.ts +0 -7
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterService.js +0 -137
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterStage.d.ts +0 -5
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/filterStage.js +0 -60
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/flattenStage.d.ts +0 -10
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/flattenStage.js +0 -199
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/immutableService.d.ts +0 -13
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/immutableService.js +0 -175
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortService.d.ts +0 -14
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortService.js +0 -330
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortStage.d.ts +0 -7
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortStage.js +0 -75
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModelModule.d.ts +0 -2
- package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModelModule.js +0 -15
- package/es/components/DataGrid/modules/client-side-row-model/index.d.ts +0 -1
- package/es/components/DataGrid/modules/client-side-row-model/index.js +0 -1
- package/es/components/DataGrid/modules/clipboard/index.d.ts +0 -1
- package/es/components/DataGrid/modules/column-tool-panel/index.d.ts +0 -2
- package/es/components/DataGrid/modules/row-grouping/index.d.ts +0 -4
- package/es/components/DataGrid/modules/server-side-row-model/index.d.ts +0 -1
- package/es/components/DataGrid/modules/server-side-row-model/index.js +0 -1
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/blockUtils.d.ts +0 -47
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/blockUtils.js +0 -444
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/infiniteStoreBlock.d.ts +0 -92
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/blocks/infiniteStoreBlock.js +0 -510
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/expandListener.d.ts +0 -9
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/expandListener.js +0 -115
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/filterListener.d.ts +0 -9
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/filterListener.js +0 -114
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/listenerUtils.d.ts +0 -5
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/listenerUtils.js +0 -68
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/sortListener.d.ts +0 -13
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/listeners/sortListener.js +0 -194
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/nodeManager.d.ts +0 -7
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/nodeManager.js +0 -63
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/serverSideRowModel.d.ts +0 -88
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/serverSideRowModel.js +0 -572
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/fullStore.d.ts +0 -108
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/fullStore.js +0 -876
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/infiniteStore.d.ts +0 -102
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/infiniteStore.js +0 -918
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeFactory.d.ts +0 -12
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeFactory.js +0 -141
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeUtils.d.ts +0 -35
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/stores/storeUtils.js +0 -154
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/transactionManager.d.ts +0 -23
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/transactionManager.js +0 -210
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModelModule.d.ts +0 -18
- package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModelModule.js +0 -18
- package/es/components/DataGrid/modules/side-bar/index.d.ts +0 -2
- /package/es/components/DataGrid/modules/clipboard/{index.js → main.js} +0 -0
- /package/es/components/DataGrid/modules/column-tool-panel/{index.js → main.js} +0 -0
- /package/es/components/DataGrid/modules/menu/{index.d.ts → main.d.ts} +0 -0
- /package/es/components/DataGrid/modules/menu/{index.js → main.js} +0 -0
- /package/es/components/DataGrid/modules/row-grouping/{index.js → main.js} +0 -0
- /package/es/components/DataGrid/modules/side-bar/{index.js → main.js} +0 -0
package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortService.js
DELETED
|
@@ -1,330 +0,0 @@
|
|
|
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, PostConstruct, BeanStub } from "@ag-grid-community/core";
|
|
34
|
-
|
|
35
|
-
var SortService = /*#__PURE__*/function (_BeanStub) {
|
|
36
|
-
_inherits(SortService, _BeanStub);
|
|
37
|
-
|
|
38
|
-
var _super = _createSuper(SortService);
|
|
39
|
-
|
|
40
|
-
function SortService() {
|
|
41
|
-
_classCallCheck(this, SortService);
|
|
42
|
-
|
|
43
|
-
return _super.apply(this, arguments);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
_createClass(SortService, [{
|
|
47
|
-
key: "init",
|
|
48
|
-
value: function init() {
|
|
49
|
-
this.postSortFunc = this.gridOptionsWrapper.getPostSortFunc();
|
|
50
|
-
}
|
|
51
|
-
}, {
|
|
52
|
-
key: "sort",
|
|
53
|
-
value: function sort(sortOptions, sortActive, useDeltaSort, rowNodeTransactions, changedPath, sortContainsGroupColumns) {
|
|
54
|
-
var _this = this;
|
|
55
|
-
|
|
56
|
-
var groupMaintainOrder = this.gridOptionsWrapper.isGroupMaintainOrder();
|
|
57
|
-
var groupColumnsPresent = this.columnModel.getAllGridColumns().some(function (c) {
|
|
58
|
-
return c.isRowGroupActive();
|
|
59
|
-
});
|
|
60
|
-
var allDirtyNodes = {};
|
|
61
|
-
|
|
62
|
-
if (useDeltaSort && rowNodeTransactions) {
|
|
63
|
-
allDirtyNodes = this.calculateDirtyNodes(rowNodeTransactions);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
var isPivotMode = this.columnModel.isPivotMode();
|
|
67
|
-
|
|
68
|
-
var callback = function callback(rowNode) {
|
|
69
|
-
// we clear out the 'pull down open parents' first, as the values mix up the sorting
|
|
70
|
-
_this.pullDownGroupDataForHideOpenParents(rowNode.childrenAfterAggFilter, true); // It's pointless to sort rows which aren't being displayed. in pivot mode we don't need to sort the leaf group children.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
var skipSortingPivotLeafs = isPivotMode && rowNode.leafGroup; // Javascript sort is non deterministic when all the array items are equals, ie Comparator always returns 0,
|
|
74
|
-
// so to ensure the array keeps its order, add an additional sorting condition manually, in this case we
|
|
75
|
-
// are going to inspect the original array position. This is what sortedRowNodes is for.
|
|
76
|
-
|
|
77
|
-
var skipSortingGroups = groupMaintainOrder && groupColumnsPresent && !rowNode.leafGroup && !sortContainsGroupColumns;
|
|
78
|
-
|
|
79
|
-
if (!sortActive || skipSortingGroups || skipSortingPivotLeafs) {
|
|
80
|
-
// when 'groupMaintainOrder' is enabled we skip sorting groups unless we are sorting on group columns
|
|
81
|
-
var childrenToBeSorted = rowNode.childrenAfterAggFilter.slice(0);
|
|
82
|
-
|
|
83
|
-
if (groupMaintainOrder && rowNode.childrenAfterSort) {
|
|
84
|
-
var indexedOrders = rowNode.childrenAfterSort.reduce(function (acc, row, idx) {
|
|
85
|
-
acc[row.id] = idx;
|
|
86
|
-
return acc;
|
|
87
|
-
}, {});
|
|
88
|
-
childrenToBeSorted.sort(function (row1, row2) {
|
|
89
|
-
return (indexedOrders[row1.id] || 0) - (indexedOrders[row2.id] || 0);
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
rowNode.childrenAfterSort = childrenToBeSorted;
|
|
94
|
-
} else if (useDeltaSort) {
|
|
95
|
-
rowNode.childrenAfterSort = _this.doDeltaSort(rowNode, allDirtyNodes, changedPath, sortOptions);
|
|
96
|
-
} else {
|
|
97
|
-
rowNode.childrenAfterSort = _this.rowNodeSorter.doFullSort(rowNode.childrenAfterAggFilter, sortOptions);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
if (rowNode.sibling) {
|
|
101
|
-
rowNode.sibling.childrenAfterSort = rowNode.childrenAfterSort;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
_this.updateChildIndexes(rowNode);
|
|
105
|
-
|
|
106
|
-
if (_this.postSortFunc) {
|
|
107
|
-
var params = {
|
|
108
|
-
nodes: rowNode.childrenAfterSort
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
_this.postSortFunc(params);
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
if (changedPath) {
|
|
116
|
-
changedPath.forEachChangedNodeDepthFirst(callback);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
this.updateGroupDataForHideOpenParents(changedPath);
|
|
120
|
-
}
|
|
121
|
-
}, {
|
|
122
|
-
key: "calculateDirtyNodes",
|
|
123
|
-
value: function calculateDirtyNodes(rowNodeTransactions) {
|
|
124
|
-
var dirtyNodes = {};
|
|
125
|
-
|
|
126
|
-
var addNodesFunc = function addNodesFunc(rowNodes) {
|
|
127
|
-
if (rowNodes) {
|
|
128
|
-
rowNodes.forEach(function (rowNode) {
|
|
129
|
-
return dirtyNodes[rowNode.id] = true;
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
}; // all leaf level nodes in the transaction were impacted
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
if (rowNodeTransactions) {
|
|
136
|
-
rowNodeTransactions.forEach(function (tran) {
|
|
137
|
-
addNodesFunc(tran.add);
|
|
138
|
-
addNodesFunc(tran.update);
|
|
139
|
-
addNodesFunc(tran.remove);
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
return dirtyNodes;
|
|
144
|
-
}
|
|
145
|
-
}, {
|
|
146
|
-
key: "doDeltaSort",
|
|
147
|
-
value: function doDeltaSort(rowNode, allTouchedNodes, changedPath, sortOptions) {
|
|
148
|
-
var _this2 = this;
|
|
149
|
-
|
|
150
|
-
var unsortedRows = rowNode.childrenAfterAggFilter;
|
|
151
|
-
var oldSortedRows = rowNode.childrenAfterSort;
|
|
152
|
-
|
|
153
|
-
if (!oldSortedRows) {
|
|
154
|
-
return this.rowNodeSorter.doFullSort(unsortedRows, sortOptions);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
var untouchedRowsMap = {};
|
|
158
|
-
var touchedRows = [];
|
|
159
|
-
unsortedRows.forEach(function (row) {
|
|
160
|
-
if (allTouchedNodes[row.id] || !changedPath.canSkip(row)) {
|
|
161
|
-
touchedRows.push(row);
|
|
162
|
-
} else {
|
|
163
|
-
untouchedRowsMap[row.id] = true;
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
var sortedUntouchedRows = oldSortedRows.filter(function (child) {
|
|
167
|
-
return untouchedRowsMap[child.id];
|
|
168
|
-
});
|
|
169
|
-
|
|
170
|
-
var mapNodeToSortedNode = function mapNodeToSortedNode(rowNode, pos) {
|
|
171
|
-
return {
|
|
172
|
-
currentPos: pos,
|
|
173
|
-
rowNode: rowNode
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
var sortedChangedRows = touchedRows.map(mapNodeToSortedNode).sort(function (a, b) {
|
|
178
|
-
return _this2.rowNodeSorter.compareRowNodes(sortOptions, a, b);
|
|
179
|
-
});
|
|
180
|
-
return this.mergeSortedArrays(sortOptions, sortedChangedRows, sortedUntouchedRows.map(mapNodeToSortedNode)).map(function (_ref) {
|
|
181
|
-
var rowNode = _ref.rowNode;
|
|
182
|
-
return rowNode;
|
|
183
|
-
});
|
|
184
|
-
} // Merge two sorted arrays into each other
|
|
185
|
-
|
|
186
|
-
}, {
|
|
187
|
-
key: "mergeSortedArrays",
|
|
188
|
-
value: function mergeSortedArrays(sortOptions, arr1, arr2) {
|
|
189
|
-
var res = [];
|
|
190
|
-
var i = 0;
|
|
191
|
-
var j = 0; // Traverse both array, adding them in order
|
|
192
|
-
|
|
193
|
-
while (i < arr1.length && j < arr2.length) {
|
|
194
|
-
// Check if current element of first
|
|
195
|
-
// array is smaller than current element
|
|
196
|
-
// of second array. If yes, store first
|
|
197
|
-
// array element and increment first array
|
|
198
|
-
// index. Otherwise do same with second array
|
|
199
|
-
var compareResult = this.rowNodeSorter.compareRowNodes(sortOptions, arr1[i], arr2[j]);
|
|
200
|
-
|
|
201
|
-
if (compareResult < 0) {
|
|
202
|
-
res.push(arr1[i++]);
|
|
203
|
-
} else {
|
|
204
|
-
res.push(arr2[j++]);
|
|
205
|
-
}
|
|
206
|
-
} // add remaining from arr1
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
while (i < arr1.length) {
|
|
210
|
-
res.push(arr1[i++]);
|
|
211
|
-
} // add remaining from arr2
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
while (j < arr2.length) {
|
|
215
|
-
res.push(arr2[j++]);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
return res;
|
|
219
|
-
}
|
|
220
|
-
}, {
|
|
221
|
-
key: "updateChildIndexes",
|
|
222
|
-
value: function updateChildIndexes(rowNode) {
|
|
223
|
-
if (_.missing(rowNode.childrenAfterSort)) {
|
|
224
|
-
return;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
var listToSort = rowNode.childrenAfterSort;
|
|
228
|
-
|
|
229
|
-
for (var i = 0; i < listToSort.length; i++) {
|
|
230
|
-
var child = listToSort[i];
|
|
231
|
-
var firstChild = i === 0;
|
|
232
|
-
var lastChild = i === rowNode.childrenAfterSort.length - 1;
|
|
233
|
-
child.setFirstChild(firstChild);
|
|
234
|
-
child.setLastChild(lastChild);
|
|
235
|
-
child.setChildIndex(i);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}, {
|
|
239
|
-
key: "updateGroupDataForHideOpenParents",
|
|
240
|
-
value: function updateGroupDataForHideOpenParents(changedPath) {
|
|
241
|
-
var _this3 = this;
|
|
242
|
-
|
|
243
|
-
if (!this.gridOptionsWrapper.isGroupHideOpenParents()) {
|
|
244
|
-
return;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
if (this.gridOptionsWrapper.isTreeData()) {
|
|
248
|
-
var msg = "AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).";
|
|
249
|
-
|
|
250
|
-
_.doOnce(function () {
|
|
251
|
-
return console.warn(msg);
|
|
252
|
-
}, 'sortService.hideOpenParentsWithTreeData');
|
|
253
|
-
|
|
254
|
-
return false;
|
|
255
|
-
} // recurse breadth first over group nodes after sort to 'pull down' group data to child groups
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
var callback = function callback(rowNode) {
|
|
259
|
-
_this3.pullDownGroupDataForHideOpenParents(rowNode.childrenAfterSort, false);
|
|
260
|
-
|
|
261
|
-
rowNode.childrenAfterSort.forEach(function (child) {
|
|
262
|
-
if (child.hasChildren()) {
|
|
263
|
-
callback(child);
|
|
264
|
-
}
|
|
265
|
-
});
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
if (changedPath) {
|
|
269
|
-
changedPath.executeFromRootNode(function (rowNode) {
|
|
270
|
-
return callback(rowNode);
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}, {
|
|
275
|
-
key: "pullDownGroupDataForHideOpenParents",
|
|
276
|
-
value: function pullDownGroupDataForHideOpenParents(rowNodes, clearOperation) {
|
|
277
|
-
var _this4 = this;
|
|
278
|
-
|
|
279
|
-
if (!this.gridOptionsWrapper.isGroupHideOpenParents() || _.missing(rowNodes)) {
|
|
280
|
-
return;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
rowNodes.forEach(function (childRowNode) {
|
|
284
|
-
var groupDisplayCols = _this4.columnModel.getGroupDisplayColumns();
|
|
285
|
-
|
|
286
|
-
groupDisplayCols.forEach(function (groupDisplayCol) {
|
|
287
|
-
var showRowGroup = groupDisplayCol.getColDef().showRowGroup;
|
|
288
|
-
|
|
289
|
-
if (typeof showRowGroup !== 'string') {
|
|
290
|
-
console.error('AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup');
|
|
291
|
-
return;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
var displayingGroupKey = showRowGroup;
|
|
295
|
-
|
|
296
|
-
var rowGroupColumn = _this4.columnModel.getPrimaryColumn(displayingGroupKey);
|
|
297
|
-
|
|
298
|
-
var thisRowNodeMatches = rowGroupColumn === childRowNode.rowGroupColumn;
|
|
299
|
-
|
|
300
|
-
if (thisRowNodeMatches) {
|
|
301
|
-
return;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
if (clearOperation) {
|
|
305
|
-
// if doing a clear operation, we clear down the value for every possible group column
|
|
306
|
-
childRowNode.setGroupValue(groupDisplayCol.getId(), undefined);
|
|
307
|
-
} else {
|
|
308
|
-
// if doing a set operation, we set only where the pull down is to occur
|
|
309
|
-
var parentToStealFrom = childRowNode.getFirstChildOfFirstChild(rowGroupColumn);
|
|
310
|
-
|
|
311
|
-
if (parentToStealFrom) {
|
|
312
|
-
childRowNode.setGroupValue(groupDisplayCol.getId(), parentToStealFrom.key);
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
});
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
}]);
|
|
319
|
-
|
|
320
|
-
return SortService;
|
|
321
|
-
}(BeanStub);
|
|
322
|
-
|
|
323
|
-
__decorate([Autowired('columnModel')], SortService.prototype, "columnModel", void 0);
|
|
324
|
-
|
|
325
|
-
__decorate([Autowired('rowNodeSorter')], SortService.prototype, "rowNodeSorter", void 0);
|
|
326
|
-
|
|
327
|
-
__decorate([PostConstruct], SortService.prototype, "init", null);
|
|
328
|
-
|
|
329
|
-
SortService = __decorate([Bean('sortService')], SortService);
|
|
330
|
-
export { SortService };
|
package/es/components/DataGrid/modules/client-side-row-model/clientSideRowModel/sortStage.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
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 SortStage = /*#__PURE__*/function (_BeanStub) {
|
|
36
|
-
_inherits(SortStage, _BeanStub);
|
|
37
|
-
|
|
38
|
-
var _super = _createSuper(SortStage);
|
|
39
|
-
|
|
40
|
-
function SortStage() {
|
|
41
|
-
_classCallCheck(this, SortStage);
|
|
42
|
-
|
|
43
|
-
return _super.apply(this, arguments);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
_createClass(SortStage, [{
|
|
47
|
-
key: "execute",
|
|
48
|
-
value: function execute(params) {
|
|
49
|
-
var _this = this;
|
|
50
|
-
|
|
51
|
-
var sortOptions = this.sortController.getSortOptions();
|
|
52
|
-
var sortActive = _.exists(sortOptions) && sortOptions.length > 0;
|
|
53
|
-
var deltaSort = sortActive && _.exists(params.rowNodeTransactions) // in time we can remove this check, so that delta sort is always
|
|
54
|
-
// on if transactions are present. it's off for now so that we can
|
|
55
|
-
// selectively turn it on and test it with some select users before
|
|
56
|
-
// rolling out to everyone.
|
|
57
|
-
&& this.gridOptionsWrapper.isDeltaSort();
|
|
58
|
-
var sortContainsGroupColumns = sortOptions.some(function (opt) {
|
|
59
|
-
return !!_this.columnModel.getGroupDisplayColumnForGroup(opt.column.getId());
|
|
60
|
-
});
|
|
61
|
-
this.sortService.sort(sortOptions, sortActive, deltaSort, params.rowNodeTransactions, params.changedPath, sortContainsGroupColumns);
|
|
62
|
-
}
|
|
63
|
-
}]);
|
|
64
|
-
|
|
65
|
-
return SortStage;
|
|
66
|
-
}(BeanStub);
|
|
67
|
-
|
|
68
|
-
__decorate([Autowired('sortService')], SortStage.prototype, "sortService", void 0);
|
|
69
|
-
|
|
70
|
-
__decorate([Autowired('sortController')], SortStage.prototype, "sortController", void 0);
|
|
71
|
-
|
|
72
|
-
__decorate([Autowired('columnModel')], SortStage.prototype, "columnModel", void 0);
|
|
73
|
-
|
|
74
|
-
SortStage = __decorate([Bean('sortStage')], SortStage);
|
|
75
|
-
export { SortStage };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ModuleNames } from "@ag-grid-community/core";
|
|
2
|
-
import { ClientSideRowModel } from "./clientSideRowModel/clientSideRowModel";
|
|
3
|
-
import { FilterStage } from "./clientSideRowModel/filterStage";
|
|
4
|
-
import { SortStage } from "./clientSideRowModel/sortStage";
|
|
5
|
-
import { FlattenStage } from "./clientSideRowModel/flattenStage";
|
|
6
|
-
import { SortService } from "./clientSideRowModel/sortService";
|
|
7
|
-
import { FilterService } from "./clientSideRowModel/filterService";
|
|
8
|
-
import { ImmutableService } from "./clientSideRowModel/immutableService";
|
|
9
|
-
export var ClientSideRowModelModule = {
|
|
10
|
-
moduleName: ModuleNames.ClientSideRowModelModule,
|
|
11
|
-
beans: [FilterStage, SortStage, FlattenStage, SortService, FilterService, ImmutableService],
|
|
12
|
-
rowModels: {
|
|
13
|
-
clientSide: ClientSideRowModel
|
|
14
|
-
}
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ClientSideRowModelModule } from "./clientSideRowModelModule";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ClientSideRowModelModule } from "./clientSideRowModelModule";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ClipboardModule } from './clipboardModule';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { RowGroupingModule } from './rowGroupingModule';
|
|
2
|
-
export { RowGroupDropZonePanel } from './rowGrouping/columnDropZones/rowGroupDropZonePanel';
|
|
3
|
-
export { ValuesDropZonePanel } from './rowGrouping/columnDropZones/valueDropZonePanel';
|
|
4
|
-
export { PivotDropZonePanel } from './rowGrouping/columnDropZones/pivotDropZonePanel';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ServerSideRowModelModule } from './serverSideRowModelModule';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ServerSideRowModelModule } from "./serverSideRowModelModule";
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { RowBounds, BeanStub, Column, RowNode, NumberSequence } from '@ag-grid-community/core';
|
|
2
|
-
export declare class BlockUtils extends BeanStub {
|
|
3
|
-
private valueService;
|
|
4
|
-
private columnModel;
|
|
5
|
-
private nodeManager;
|
|
6
|
-
private beans;
|
|
7
|
-
private rowHeight;
|
|
8
|
-
private usingTreeData;
|
|
9
|
-
private usingMasterDetail;
|
|
10
|
-
private postConstruct;
|
|
11
|
-
createRowNode(params: {
|
|
12
|
-
group: boolean;
|
|
13
|
-
leafGroup: boolean;
|
|
14
|
-
level: number;
|
|
15
|
-
parent: RowNode;
|
|
16
|
-
field: string;
|
|
17
|
-
rowGroupColumn: Column;
|
|
18
|
-
rowHeight?: number;
|
|
19
|
-
}): RowNode;
|
|
20
|
-
destroyRowNodes(rowNodes: RowNode[]): void;
|
|
21
|
-
destroyRowNode(rowNode: RowNode, preserveStore?: boolean): void;
|
|
22
|
-
private setTreeGroupInfo;
|
|
23
|
-
private setRowGroupInfo;
|
|
24
|
-
private setMasterDetailInfo;
|
|
25
|
-
updateDataIntoRowNode(rowNode: RowNode, data: any): void;
|
|
26
|
-
setDataIntoRowNode(
|
|
27
|
-
rowNode: RowNode,
|
|
28
|
-
data: any,
|
|
29
|
-
defaultId: string,
|
|
30
|
-
cachedRowHeight: number | undefined,
|
|
31
|
-
): void;
|
|
32
|
-
private setChildCountIntoRowNode;
|
|
33
|
-
private setGroupDataIntoRowNode;
|
|
34
|
-
clearDisplayIndex(rowNode: RowNode): void;
|
|
35
|
-
setDisplayIndex(
|
|
36
|
-
rowNode: RowNode,
|
|
37
|
-
displayIndexSeq: NumberSequence,
|
|
38
|
-
nextRowTop: {
|
|
39
|
-
value: number;
|
|
40
|
-
},
|
|
41
|
-
): void;
|
|
42
|
-
binarySearchForDisplayIndex(displayRowIndex: number, rowNodes: RowNode[]): RowNode | undefined;
|
|
43
|
-
extractRowBounds(rowNode: RowNode, index: number): RowBounds | undefined;
|
|
44
|
-
getIndexAtPixel(rowNode: RowNode, pixel: number): number | null;
|
|
45
|
-
createNodeIdPrefix(parentRowNode: RowNode): string | undefined;
|
|
46
|
-
checkOpenByDefault(rowNode: RowNode): void;
|
|
47
|
-
}
|