@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
|
@@ -1,114 +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, Events, PostConstruct } from '@ag-grid-community/core';
|
|
34
|
-
|
|
35
|
-
var FilterListener = /*#__PURE__*/function (_BeanStub) {
|
|
36
|
-
_inherits(FilterListener, _BeanStub);
|
|
37
|
-
|
|
38
|
-
var _super = _createSuper(FilterListener);
|
|
39
|
-
|
|
40
|
-
function FilterListener() {
|
|
41
|
-
_classCallCheck(this, FilterListener);
|
|
42
|
-
|
|
43
|
-
return _super.apply(this, arguments);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
_createClass(FilterListener, [{
|
|
47
|
-
key: "postConstruct",
|
|
48
|
-
value: function postConstruct() {
|
|
49
|
-
// only want to be active if SSRM active, otherwise would be interfering with other row models
|
|
50
|
-
if (!this.gridOptionsWrapper.isRowModelServerSide()) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
this.addManagedListener(this.eventService, Events.EVENT_FILTER_CHANGED, this.onFilterChanged.bind(this));
|
|
55
|
-
}
|
|
56
|
-
}, {
|
|
57
|
-
key: "onFilterChanged",
|
|
58
|
-
value: function onFilterChanged() {
|
|
59
|
-
var storeParams = this.serverSideRowModel.getParams();
|
|
60
|
-
|
|
61
|
-
if (!storeParams) {
|
|
62
|
-
return;
|
|
63
|
-
} // params is undefined if no datasource set
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
var newModel = this.filterManager.getFilterModel();
|
|
67
|
-
var oldModel = storeParams ? storeParams.filterModel : {};
|
|
68
|
-
var changedColumns = this.findChangedColumns(newModel, oldModel);
|
|
69
|
-
var valueColChanged = this.listenerUtils.isSortingWithValueColumn(changedColumns);
|
|
70
|
-
var secondaryColChanged = this.listenerUtils.isSortingWithSecondaryColumn(changedColumns);
|
|
71
|
-
var params = {
|
|
72
|
-
valueColChanged: valueColChanged,
|
|
73
|
-
secondaryColChanged: secondaryColChanged,
|
|
74
|
-
changedColumns: changedColumns
|
|
75
|
-
};
|
|
76
|
-
this.serverSideRowModel.refreshAfterFilter(newModel, params);
|
|
77
|
-
}
|
|
78
|
-
}, {
|
|
79
|
-
key: "findChangedColumns",
|
|
80
|
-
value: function findChangedColumns(oldModel, newModel) {
|
|
81
|
-
var allColKeysMap = {};
|
|
82
|
-
Object.keys(oldModel).forEach(function (key) {
|
|
83
|
-
return allColKeysMap[key] = true;
|
|
84
|
-
});
|
|
85
|
-
Object.keys(newModel).forEach(function (key) {
|
|
86
|
-
return allColKeysMap[key] = true;
|
|
87
|
-
});
|
|
88
|
-
var res = [];
|
|
89
|
-
Object.keys(allColKeysMap).forEach(function (key) {
|
|
90
|
-
var oldJson = JSON.stringify(oldModel[key]);
|
|
91
|
-
var newJson = JSON.stringify(newModel[key]);
|
|
92
|
-
var filterChanged = oldJson != newJson;
|
|
93
|
-
|
|
94
|
-
if (filterChanged) {
|
|
95
|
-
res.push(key);
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
return res;
|
|
99
|
-
}
|
|
100
|
-
}]);
|
|
101
|
-
|
|
102
|
-
return FilterListener;
|
|
103
|
-
}(BeanStub);
|
|
104
|
-
|
|
105
|
-
__decorate([Autowired('rowModel')], FilterListener.prototype, 'serverSideRowModel', void 0);
|
|
106
|
-
|
|
107
|
-
__decorate([Autowired('filterManager')], FilterListener.prototype, 'filterManager', void 0);
|
|
108
|
-
|
|
109
|
-
__decorate([Autowired('ssrmListenerUtils')], FilterListener.prototype, 'listenerUtils', void 0);
|
|
110
|
-
|
|
111
|
-
__decorate([PostConstruct], FilterListener.prototype, 'postConstruct', null);
|
|
112
|
-
|
|
113
|
-
FilterListener = __decorate([Bean('ssrmFilterListener')], FilterListener);
|
|
114
|
-
export { FilterListener };
|
|
@@ -1,68 +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 _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); }
|
|
8
|
-
|
|
9
|
-
var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
|
|
10
|
-
var c = arguments.length,
|
|
11
|
-
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
12
|
-
d;
|
|
13
|
-
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--) {
|
|
14
|
-
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
15
|
-
}
|
|
16
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
import { Autowired, Bean } from '@ag-grid-community/core';
|
|
20
|
-
|
|
21
|
-
var ListenerUtils = /*#__PURE__*/function () {
|
|
22
|
-
function ListenerUtils() {
|
|
23
|
-
_classCallCheck(this, ListenerUtils);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
_createClass(ListenerUtils, [{
|
|
27
|
-
key: "isSortingWithValueColumn",
|
|
28
|
-
value: function isSortingWithValueColumn(changedColumnsInSort) {
|
|
29
|
-
var valueColIds = this.columnModel.getValueColumns().map(function (col) {
|
|
30
|
-
return col.getColId();
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
for (var i = 0; i < changedColumnsInSort.length; i++) {
|
|
34
|
-
if (valueColIds.indexOf(changedColumnsInSort[i]) > -1) {
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return false;
|
|
40
|
-
}
|
|
41
|
-
}, {
|
|
42
|
-
key: "isSortingWithSecondaryColumn",
|
|
43
|
-
value: function isSortingWithSecondaryColumn(changedColumnsInSort) {
|
|
44
|
-
if (!this.columnModel.getSecondaryColumns()) {
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
var secondaryColIds = this.columnModel.getSecondaryColumns().map(function (col) {
|
|
49
|
-
return col.getColId();
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
for (var i = 0; i < changedColumnsInSort.length; i++) {
|
|
53
|
-
if (secondaryColIds.indexOf(changedColumnsInSort[i]) > -1) {
|
|
54
|
-
return true;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
}]);
|
|
61
|
-
|
|
62
|
-
return ListenerUtils;
|
|
63
|
-
}();
|
|
64
|
-
|
|
65
|
-
__decorate([Autowired('columnModel')], ListenerUtils.prototype, 'columnModel', void 0);
|
|
66
|
-
|
|
67
|
-
ListenerUtils = __decorate([Bean('ssrmListenerUtils')], ListenerUtils);
|
|
68
|
-
export { ListenerUtils };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BeanStub, SortModelItem } from '@ag-grid-community/core';
|
|
2
|
-
export declare class SortListener extends BeanStub {
|
|
3
|
-
private sortController;
|
|
4
|
-
private columnModel;
|
|
5
|
-
private serverSideRowModel;
|
|
6
|
-
private listenerUtils;
|
|
7
|
-
private postConstruct;
|
|
8
|
-
extractSortModel(): SortModelItem[];
|
|
9
|
-
private removeMultiColumnPrefixOnColumnIds;
|
|
10
|
-
private replaceAutoGroupColumnWithActualRowGroupColumns;
|
|
11
|
-
private onSortChanged;
|
|
12
|
-
private findChangedColumnsInSort;
|
|
13
|
-
}
|
|
@@ -1,194 +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, Constants, Events, PostConstruct } from '@ag-grid-community/core';
|
|
34
|
-
|
|
35
|
-
var SortListener = /*#__PURE__*/function (_BeanStub) {
|
|
36
|
-
_inherits(SortListener, _BeanStub);
|
|
37
|
-
|
|
38
|
-
var _super = _createSuper(SortListener);
|
|
39
|
-
|
|
40
|
-
function SortListener() {
|
|
41
|
-
_classCallCheck(this, SortListener);
|
|
42
|
-
|
|
43
|
-
return _super.apply(this, arguments);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
_createClass(SortListener, [{
|
|
47
|
-
key: "postConstruct",
|
|
48
|
-
value: function postConstruct() {
|
|
49
|
-
// only want to be active if SSRM active, otherwise would be interfering with other row models
|
|
50
|
-
if (!this.gridOptionsWrapper.isRowModelServerSide()) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
this.addManagedListener(this.eventService, Events.EVENT_SORT_CHANGED, this.onSortChanged.bind(this));
|
|
55
|
-
}
|
|
56
|
-
}, {
|
|
57
|
-
key: "extractSortModel",
|
|
58
|
-
value: function extractSortModel() {
|
|
59
|
-
var sortModel = this.sortController.getSortModel(); // when using tree data we just return the sort model with the 'ag-Grid-AutoColumn' as is, i.e not broken out
|
|
60
|
-
// into it's constitute group columns as they are not defined up front and can vary per node.
|
|
61
|
-
|
|
62
|
-
if (this.gridOptionsWrapper.isTreeData()) {
|
|
63
|
-
return sortModel;
|
|
64
|
-
} // it autoCol is active, we don't want to send this to the server. instead we want to
|
|
65
|
-
// send the
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
this.replaceAutoGroupColumnWithActualRowGroupColumns(sortModel);
|
|
69
|
-
this.removeMultiColumnPrefixOnColumnIds(sortModel);
|
|
70
|
-
return sortModel;
|
|
71
|
-
}
|
|
72
|
-
}, {
|
|
73
|
-
key: "removeMultiColumnPrefixOnColumnIds",
|
|
74
|
-
value: function removeMultiColumnPrefixOnColumnIds(sortModel) {
|
|
75
|
-
if (this.gridOptionsWrapper.isGroupMultiAutoColumn()) {
|
|
76
|
-
var multiColumnPrefix = Constants.GROUP_AUTO_COLUMN_ID + '-';
|
|
77
|
-
|
|
78
|
-
for (var i = 0; i < sortModel.length; ++i) {
|
|
79
|
-
if (sortModel[i].colId.indexOf(multiColumnPrefix) > -1) {
|
|
80
|
-
sortModel[i].colId = sortModel[i].colId.substr(multiColumnPrefix.length);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}, {
|
|
86
|
-
key: "replaceAutoGroupColumnWithActualRowGroupColumns",
|
|
87
|
-
value: function replaceAutoGroupColumnWithActualRowGroupColumns(sortModel) {
|
|
88
|
-
// find index of auto group column in sort model
|
|
89
|
-
var autoGroupSortModel = sortModel.find(function (sm) {
|
|
90
|
-
return sm.colId == Constants.GROUP_AUTO_COLUMN_ID;
|
|
91
|
-
}); // replace auto column with individual group columns
|
|
92
|
-
|
|
93
|
-
if (autoGroupSortModel) {
|
|
94
|
-
// remove auto group column
|
|
95
|
-
var autoGroupIndex = sortModel.indexOf(autoGroupSortModel);
|
|
96
|
-
|
|
97
|
-
_.removeFromArray(sortModel, autoGroupSortModel);
|
|
98
|
-
|
|
99
|
-
var isNotInSortModel = function isNotInSortModel(col) {
|
|
100
|
-
return sortModel.filter(function (sm) {
|
|
101
|
-
return sm.colId === col.getColId();
|
|
102
|
-
}).length == 0;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
var mapColumnToSortModel = function mapColumnToSortModel(col) {
|
|
106
|
-
return {
|
|
107
|
-
colId: col.getId(),
|
|
108
|
-
sort: autoGroupSortModel.sort
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
var newModels = this.columnModel.getRowGroupColumns().filter(isNotInSortModel).map(mapColumnToSortModel);
|
|
113
|
-
|
|
114
|
-
_.insertArrayIntoArray(sortModel, newModels, autoGroupIndex);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}, {
|
|
118
|
-
key: "onSortChanged",
|
|
119
|
-
value: function onSortChanged() {
|
|
120
|
-
var storeParams = this.serverSideRowModel.getParams();
|
|
121
|
-
|
|
122
|
-
if (!storeParams) {
|
|
123
|
-
return;
|
|
124
|
-
} // params is undefined if no datasource set
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
var newSortModel = this.extractSortModel();
|
|
128
|
-
var oldSortModel = storeParams.sortModel;
|
|
129
|
-
var changedColumns = this.findChangedColumnsInSort(newSortModel, oldSortModel);
|
|
130
|
-
var valueColChanged = this.listenerUtils.isSortingWithValueColumn(changedColumns);
|
|
131
|
-
var secondaryColChanged = this.listenerUtils.isSortingWithSecondaryColumn(changedColumns);
|
|
132
|
-
var params = {
|
|
133
|
-
valueColChanged: valueColChanged,
|
|
134
|
-
secondaryColChanged: secondaryColChanged,
|
|
135
|
-
changedColumns: changedColumns
|
|
136
|
-
};
|
|
137
|
-
this.serverSideRowModel.refreshAfterSort(newSortModel, params);
|
|
138
|
-
} // returns back all the cols that were effected by the sorting. eg if we were sorting by col A,
|
|
139
|
-
// and now we are sorting by col B, the list of impacted cols should be A and B. so if a cache
|
|
140
|
-
// is impacted by sorting on A or B then it needs to be refreshed. this includes where the cache
|
|
141
|
-
// was previously sorted by A and then the A sort now needs to be cleared.
|
|
142
|
-
|
|
143
|
-
}, {
|
|
144
|
-
key: "findChangedColumnsInSort",
|
|
145
|
-
value: function findChangedColumnsInSort(newSortModel, oldSortModel) {
|
|
146
|
-
var allColsInBothSorts = [];
|
|
147
|
-
[newSortModel, oldSortModel].forEach(function (sortModel) {
|
|
148
|
-
if (sortModel) {
|
|
149
|
-
var ids = sortModel.map(function (sm) {
|
|
150
|
-
return sm.colId;
|
|
151
|
-
});
|
|
152
|
-
allColsInBothSorts = allColsInBothSorts.concat(ids);
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
var differentSorts = function differentSorts(oldSortItem, newSortItem) {
|
|
157
|
-
var oldSort = oldSortItem ? oldSortItem.sort : null;
|
|
158
|
-
var newSort = newSortItem ? newSortItem.sort : null;
|
|
159
|
-
return oldSort !== newSort;
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
var differentIndexes = function differentIndexes(oldSortItem, newSortItem) {
|
|
163
|
-
var oldIndex = oldSortItem ? oldSortModel.indexOf(oldSortItem) : -1;
|
|
164
|
-
var newIndex = newSortItem ? newSortModel.indexOf(newSortItem) : -1;
|
|
165
|
-
return oldIndex !== newIndex;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
return allColsInBothSorts.filter(function (colId) {
|
|
169
|
-
var oldSortItem = oldSortModel.find(function (sm) {
|
|
170
|
-
return sm.colId === colId;
|
|
171
|
-
});
|
|
172
|
-
var newSortItem = newSortModel.find(function (sm) {
|
|
173
|
-
return sm.colId === colId;
|
|
174
|
-
});
|
|
175
|
-
return differentSorts(oldSortItem, newSortItem) || differentIndexes(oldSortItem, newSortItem);
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
}]);
|
|
179
|
-
|
|
180
|
-
return SortListener;
|
|
181
|
-
}(BeanStub);
|
|
182
|
-
|
|
183
|
-
__decorate([Autowired('sortController')], SortListener.prototype, 'sortController', void 0);
|
|
184
|
-
|
|
185
|
-
__decorate([Autowired('columnModel')], SortListener.prototype, 'columnModel', void 0);
|
|
186
|
-
|
|
187
|
-
__decorate([Autowired('rowModel')], SortListener.prototype, 'serverSideRowModel', void 0);
|
|
188
|
-
|
|
189
|
-
__decorate([Autowired('ssrmListenerUtils')], SortListener.prototype, 'listenerUtils', void 0);
|
|
190
|
-
|
|
191
|
-
__decorate([PostConstruct], SortListener.prototype, 'postConstruct', null);
|
|
192
|
-
|
|
193
|
-
SortListener = __decorate([Bean('ssrmSortService')], SortListener);
|
|
194
|
-
export { SortListener };
|
package/es/components/DataGrid/modules/server-side-row-model/serverSideRowModel/nodeManager.js
DELETED
|
@@ -1,63 +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 _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); }
|
|
8
|
-
|
|
9
|
-
var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
|
|
10
|
-
var c = arguments.length,
|
|
11
|
-
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
12
|
-
d;
|
|
13
|
-
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--) {
|
|
14
|
-
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
15
|
-
}
|
|
16
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
import { Bean, PreDestroy } from '@ag-grid-community/core';
|
|
20
|
-
|
|
21
|
-
var NodeManager = /*#__PURE__*/function () {
|
|
22
|
-
function NodeManager() {
|
|
23
|
-
_classCallCheck(this, NodeManager);
|
|
24
|
-
|
|
25
|
-
this.rowNodes = {};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
_createClass(NodeManager, [{
|
|
29
|
-
key: "addRowNode",
|
|
30
|
-
value: function addRowNode(rowNode) {
|
|
31
|
-
var id = rowNode.id;
|
|
32
|
-
|
|
33
|
-
if (this.rowNodes[id]) {
|
|
34
|
-
console.warn("AG Grid: Duplicate node id ".concat(rowNode.id, ". Row ID's are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values."));
|
|
35
|
-
console.warn('first instance', this.rowNodes[id].data);
|
|
36
|
-
console.warn('second instance', rowNode.data);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
this.rowNodes[id] = rowNode;
|
|
40
|
-
}
|
|
41
|
-
}, {
|
|
42
|
-
key: "removeNode",
|
|
43
|
-
value: function removeNode(rowNode) {
|
|
44
|
-
var id = rowNode.id;
|
|
45
|
-
|
|
46
|
-
if (this.rowNodes[id]) {
|
|
47
|
-
this.rowNodes[id] = undefined;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}, {
|
|
51
|
-
key: "clear",
|
|
52
|
-
value: function clear() {
|
|
53
|
-
this.rowNodes = {};
|
|
54
|
-
}
|
|
55
|
-
}]);
|
|
56
|
-
|
|
57
|
-
return NodeManager;
|
|
58
|
-
}();
|
|
59
|
-
|
|
60
|
-
__decorate([PreDestroy], NodeManager.prototype, 'clear', null);
|
|
61
|
-
|
|
62
|
-
NodeManager = __decorate([Bean('ssrmNodeManager')], NodeManager);
|
|
63
|
-
export { NodeManager };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BeanStub,
|
|
3
|
-
Column,
|
|
4
|
-
ColumnVO,
|
|
5
|
-
IServerSideDatasource,
|
|
6
|
-
IServerSideRowModel,
|
|
7
|
-
IServerSideStore,
|
|
8
|
-
NumberSequence,
|
|
9
|
-
RowBounds,
|
|
10
|
-
RowNode,
|
|
11
|
-
StoreRefreshAfterParams,
|
|
12
|
-
RefreshServerSideParams,
|
|
13
|
-
ServerSideGroupLevelState,
|
|
14
|
-
SortModelItem,
|
|
15
|
-
} from '@ag-grid-community/core';
|
|
16
|
-
export interface SSRMParams {
|
|
17
|
-
sortModel: SortModelItem[];
|
|
18
|
-
filterModel: any;
|
|
19
|
-
lastAccessedSequence: NumberSequence;
|
|
20
|
-
dynamicRowHeight: boolean;
|
|
21
|
-
rowGroupCols: ColumnVO[];
|
|
22
|
-
valueCols: ColumnVO[];
|
|
23
|
-
pivotCols: ColumnVO[];
|
|
24
|
-
pivotMode: boolean;
|
|
25
|
-
datasource?: IServerSideDatasource;
|
|
26
|
-
}
|
|
27
|
-
export declare class ServerSideRowModel extends BeanStub implements IServerSideRowModel {
|
|
28
|
-
private columnModel;
|
|
29
|
-
private filterManager;
|
|
30
|
-
private sortController;
|
|
31
|
-
private rowRenderer;
|
|
32
|
-
private sortListener;
|
|
33
|
-
private nodeManager;
|
|
34
|
-
private storeFactory;
|
|
35
|
-
private beans;
|
|
36
|
-
private onRowHeightChanged_debounced;
|
|
37
|
-
private rootNode;
|
|
38
|
-
private datasource;
|
|
39
|
-
private storeParams;
|
|
40
|
-
private pauseStoreUpdateListening;
|
|
41
|
-
private started;
|
|
42
|
-
ensureRowHeightsValid(): boolean;
|
|
43
|
-
start(): void;
|
|
44
|
-
private destroyDatasource;
|
|
45
|
-
private addEventListeners;
|
|
46
|
-
private verifyProps;
|
|
47
|
-
setDatasource(datasource: IServerSideDatasource): void;
|
|
48
|
-
isLastRowIndexKnown(): boolean;
|
|
49
|
-
private onColumnEverything;
|
|
50
|
-
private destroyRootStore;
|
|
51
|
-
refreshAfterSort(newSortModel: SortModelItem[], params: StoreRefreshAfterParams): void;
|
|
52
|
-
resetRootStore(): void;
|
|
53
|
-
columnsToValueObjects(columns: Column[]): ColumnVO[];
|
|
54
|
-
private createStoreParams;
|
|
55
|
-
getParams(): SSRMParams;
|
|
56
|
-
private dispatchModelUpdated;
|
|
57
|
-
private onStoreUpdated;
|
|
58
|
-
/** This method is debounced. It is used for row auto-height. If we don't debounce,
|
|
59
|
-
* then the Row Models will end up recalculating each row position
|
|
60
|
-
* for each row height change and result in the Row Renderer laying out rows.
|
|
61
|
-
* This is particularly bad if using print layout, and showing eg 1,000 rows,
|
|
62
|
-
* each row will change it's height, causing Row Model to update 1,000 times.
|
|
63
|
-
*/
|
|
64
|
-
onRowHeightChangedDebounced(): void;
|
|
65
|
-
onRowHeightChanged(): void;
|
|
66
|
-
updateRowIndexesAndBounds(): void;
|
|
67
|
-
retryLoads(): void;
|
|
68
|
-
getRow(index: number): RowNode | undefined;
|
|
69
|
-
expandAll(value: boolean): void;
|
|
70
|
-
refreshAfterFilter(newFilterModel: any, params: StoreRefreshAfterParams): void;
|
|
71
|
-
getRootStore(): IServerSideStore | undefined;
|
|
72
|
-
getRowCount(): number;
|
|
73
|
-
getTopLevelRowCount(): number;
|
|
74
|
-
getTopLevelRowDisplayedIndex(topLevelIndex: number): number;
|
|
75
|
-
getRowBounds(index: number): RowBounds;
|
|
76
|
-
getRowIndexAtPixel(pixel: number): number;
|
|
77
|
-
isEmpty(): boolean;
|
|
78
|
-
isRowsToRender(): boolean;
|
|
79
|
-
getType(): string;
|
|
80
|
-
forEachNode(callback: (rowNode: RowNode, index: number) => void): void;
|
|
81
|
-
forEachNodeAfterFilterAndSort(callback: (node: RowNode, index: number) => void): void;
|
|
82
|
-
executeOnStore(route: string[], callback: (cache: IServerSideStore) => void): void;
|
|
83
|
-
refreshStore(params?: RefreshServerSideParams): void;
|
|
84
|
-
getStoreState(): ServerSideGroupLevelState[];
|
|
85
|
-
getNodesInRangeForSelection(firstInRange: RowNode, lastInRange: RowNode): RowNode[];
|
|
86
|
-
getRowNode(id: string): RowNode | undefined;
|
|
87
|
-
isRowPresent(rowNode: RowNode): boolean;
|
|
88
|
-
}
|