@lemon-fe/kits 1.0.0-21 → 1.0.0-211
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 +1299 -504
- 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 +59 -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 +109 -32
- package/es/components/DataGrid/utils.d.ts +13 -6
- package/es/components/DataGrid/utils.js +116 -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,18 +1,18 @@
|
|
|
1
|
-
import { AgEvent, Component, ToolPanelDef } from
|
|
1
|
+
import { AgEvent, Component, ToolPanelDef } from "@ag-grid-community/core";
|
|
2
2
|
export interface SideBarButtonClickedEvent extends AgEvent {
|
|
3
|
-
|
|
3
|
+
toolPanelId: string;
|
|
4
4
|
}
|
|
5
5
|
export declare class SideBarButtonsComp extends Component {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
static EVENT_SIDE_BAR_BUTTON_CLICKED: string;
|
|
7
|
+
private static readonly TEMPLATE;
|
|
8
|
+
private buttonComps;
|
|
9
|
+
private focusService;
|
|
10
|
+
private columnModel;
|
|
11
|
+
constructor();
|
|
12
|
+
private postConstruct;
|
|
13
|
+
private handleKeyDown;
|
|
14
|
+
setToolPanelDefs(toolPanelDefs: ToolPanelDef[]): void;
|
|
15
|
+
setActiveButton(id: string | undefined): void;
|
|
16
|
+
private addButtonComp;
|
|
17
|
+
clearButtons(): void;
|
|
18
18
|
}
|
|
@@ -24,13 +24,13 @@ var __decorate = this && this.__decorate || function (decorators, target, key, d
|
|
|
24
24
|
var c = arguments.length,
|
|
25
25
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
26
26
|
d;
|
|
27
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) ===
|
|
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
28
|
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
29
29
|
}
|
|
30
30
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
import { Autowired, Component, PostConstruct, PreDestroy, _, KeyCode } from
|
|
33
|
+
import { Autowired, Component, PostConstruct, PreDestroy, _, KeyCode } from "@ag-grid-community/core";
|
|
34
34
|
import { SideBarButtonComp } from "./sideBarButtonComp";
|
|
35
35
|
export var SideBarButtonsComp = /*#__PURE__*/function (_Component) {
|
|
36
36
|
_inherits(SideBarButtonsComp, _Component);
|
|
@@ -106,10 +106,10 @@ export var SideBarButtonsComp = /*#__PURE__*/function (_Component) {
|
|
|
106
106
|
SideBarButtonsComp.EVENT_SIDE_BAR_BUTTON_CLICKED = 'sideBarButtonClicked';
|
|
107
107
|
SideBarButtonsComp.TEMPLATE = "<div class=\"ag-side-buttons\" role=\"tablist\"></div>";
|
|
108
108
|
|
|
109
|
-
__decorate([Autowired('focusService')], SideBarButtonsComp.prototype,
|
|
109
|
+
__decorate([Autowired('focusService')], SideBarButtonsComp.prototype, "focusService", void 0);
|
|
110
110
|
|
|
111
|
-
__decorate([Autowired('columnModel')], SideBarButtonsComp.prototype,
|
|
111
|
+
__decorate([Autowired('columnModel')], SideBarButtonsComp.prototype, "columnModel", void 0);
|
|
112
112
|
|
|
113
|
-
__decorate([PostConstruct], SideBarButtonsComp.prototype,
|
|
113
|
+
__decorate([PostConstruct], SideBarButtonsComp.prototype, "postConstruct", null);
|
|
114
114
|
|
|
115
|
-
__decorate([PreDestroy], SideBarButtonsComp.prototype,
|
|
115
|
+
__decorate([PreDestroy], SideBarButtonsComp.prototype, "clearButtons", null);
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import { Component,
|
|
2
|
-
export interface IToolPanelChildComp extends IComponent<any> {
|
|
3
|
-
refresh(): void;
|
|
4
|
-
}
|
|
1
|
+
import { Component, ISideBar, IToolPanel, SideBarDef } from "@ag-grid-community/core";
|
|
5
2
|
export declare class SideBarComp extends Component implements ISideBar {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
3
|
+
private gridApi;
|
|
4
|
+
private focusService;
|
|
5
|
+
private sideBarButtonsComp;
|
|
6
|
+
private toolPanelWrappers;
|
|
7
|
+
private sideBar;
|
|
8
|
+
private static readonly TEMPLATE;
|
|
9
|
+
constructor();
|
|
10
|
+
private postConstruct;
|
|
11
|
+
protected onTabKeyDown(e: KeyboardEvent): void;
|
|
12
|
+
protected handleKeyDown(e: KeyboardEvent): void;
|
|
13
|
+
private onToolPanelButtonClicked;
|
|
14
|
+
private clearDownUi;
|
|
15
|
+
private setSideBarDef;
|
|
16
|
+
getDef(): SideBarDef | undefined;
|
|
17
|
+
setSideBarPosition(position?: 'left' | 'right'): this;
|
|
18
|
+
private setupToolPanels;
|
|
19
|
+
refresh(): void;
|
|
20
|
+
openToolPanel(key: string | undefined, source?: 'sideBarButtonClicked' | 'sideBarInitializing' | 'api'): void;
|
|
21
|
+
getToolPanelInstance(key: string): IToolPanel | undefined;
|
|
22
|
+
private raiseToolPanelVisibleEvent;
|
|
23
|
+
close(source?: 'sideBarButtonClicked' | 'sideBarInitializing' | 'api'): void;
|
|
24
|
+
isToolPanelShowing(): boolean;
|
|
25
|
+
openedItem(): string | null;
|
|
26
|
+
private destroyToolPanelWrappers;
|
|
27
|
+
protected destroy(): void;
|
|
29
28
|
}
|
|
@@ -28,14 +28,15 @@ var __decorate = this && this.__decorate || function (decorators, target, key, d
|
|
|
28
28
|
var c = arguments.length,
|
|
29
29
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
30
30
|
d;
|
|
31
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) ===
|
|
31
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
32
32
|
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
33
33
|
}
|
|
34
34
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
import { _, Component, Events, ModuleNames, ModuleRegistry, PostConstruct, RefSelector, Autowired, ManagedFocusFeature, KeyCode } from
|
|
37
|
+
import { _, Component, Events, ModuleNames, ModuleRegistry, PostConstruct, RefSelector, Autowired, ManagedFocusFeature, KeyCode } from "@ag-grid-community/core";
|
|
38
38
|
import { SideBarButtonsComp } from "./sideBarButtonsComp";
|
|
39
|
+
import { SideBarDefParser } from "./sideBarDefParser";
|
|
39
40
|
import { ToolPanelWrapper } from "./toolPanelWrapper";
|
|
40
41
|
export var SideBarComp = /*#__PURE__*/function (_Component) {
|
|
41
42
|
_inherits(SideBarComp, _Component);
|
|
@@ -59,7 +60,7 @@ export var SideBarComp = /*#__PURE__*/function (_Component) {
|
|
|
59
60
|
|
|
60
61
|
this.sideBarButtonsComp.addEventListener(SideBarButtonsComp.EVENT_SIDE_BAR_BUTTON_CLICKED, this.onToolPanelButtonClicked.bind(this));
|
|
61
62
|
this.setSideBarDef();
|
|
62
|
-
this.
|
|
63
|
+
this.addManagedPropertyListener('sideBar', function () {
|
|
63
64
|
_this2.clearDownUi();
|
|
64
65
|
|
|
65
66
|
_this2.setSideBarDef();
|
|
@@ -81,9 +82,10 @@ export var SideBarComp = /*#__PURE__*/function (_Component) {
|
|
|
81
82
|
sideBarButtonsComp = this.sideBarButtonsComp;
|
|
82
83
|
var eGui = this.getGui();
|
|
83
84
|
var sideBarGui = sideBarButtonsComp.getGui();
|
|
84
|
-
var eDocument = this.
|
|
85
|
+
var eDocument = this.gridOptionsService.getDocument();
|
|
85
86
|
var activeElement = eDocument.activeElement;
|
|
86
87
|
var openPanel = eGui.querySelector('.ag-tool-panel-wrapper:not(.ag-hidden)');
|
|
88
|
+
var target = e.target;
|
|
87
89
|
|
|
88
90
|
if (!openPanel) {
|
|
89
91
|
return;
|
|
@@ -93,27 +95,36 @@ export var SideBarComp = /*#__PURE__*/function (_Component) {
|
|
|
93
95
|
if (focusService.focusInto(openPanel, e.shiftKey)) {
|
|
94
96
|
e.preventDefault();
|
|
95
97
|
}
|
|
96
|
-
} else {
|
|
97
|
-
if (!focusService.isFocusUnderManagedComponent(openPanel) && e.shiftKey) {
|
|
98
|
-
var firstFocusableEl = focusService.findFocusableElements(openPanel)[0];
|
|
99
98
|
|
|
100
|
-
|
|
99
|
+
return;
|
|
100
|
+
} // only handle backwards focus to target the sideBar buttons
|
|
101
101
|
|
|
102
|
-
if (_eDocument.activeElement === firstFocusableEl) {
|
|
103
|
-
var selectedButton = sideBarGui.querySelector('.ag-selected button');
|
|
104
102
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
103
|
+
if (!e.shiftKey) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
var nextEl = null;
|
|
108
|
+
|
|
109
|
+
if (openPanel.contains(activeElement)) {
|
|
110
|
+
nextEl = this.focusService.findNextFocusableElement(openPanel, undefined, true);
|
|
111
|
+
} else if (focusService.isTargetUnderManagedComponent(openPanel, target) && e.shiftKey) {
|
|
112
|
+
nextEl = this.focusService.findFocusableElementBeforeTabGuard(openPanel, target);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (!nextEl) {
|
|
116
|
+
nextEl = sideBarGui.querySelector('.ag-selected button');
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (nextEl) {
|
|
120
|
+
e.preventDefault();
|
|
121
|
+
nextEl.focus();
|
|
111
122
|
}
|
|
112
123
|
}
|
|
113
124
|
}, {
|
|
114
125
|
key: "handleKeyDown",
|
|
115
126
|
value: function handleKeyDown(e) {
|
|
116
|
-
var eDocument = this.
|
|
127
|
+
var eDocument = this.gridOptionsService.getDocument();
|
|
117
128
|
|
|
118
129
|
if (!this.sideBarButtonsComp.getGui().contains(eDocument.activeElement)) {
|
|
119
130
|
return;
|
|
@@ -157,9 +168,9 @@ export var SideBarComp = /*#__PURE__*/function (_Component) {
|
|
|
157
168
|
var openedItem = this.openedItem(); // if item was already open, we close it
|
|
158
169
|
|
|
159
170
|
if (openedItem === id) {
|
|
160
|
-
this.openToolPanel(undefined); // passing undefined closes
|
|
171
|
+
this.openToolPanel(undefined, 'sideBarButtonClicked'); // passing undefined closes
|
|
161
172
|
} else {
|
|
162
|
-
this.openToolPanel(id);
|
|
173
|
+
this.openToolPanel(id, 'sideBarButtonClicked');
|
|
163
174
|
}
|
|
164
175
|
}
|
|
165
176
|
}, {
|
|
@@ -173,24 +184,27 @@ export var SideBarComp = /*#__PURE__*/function (_Component) {
|
|
|
173
184
|
value: function setSideBarDef() {
|
|
174
185
|
// initially hide side bar
|
|
175
186
|
this.setDisplayed(false);
|
|
176
|
-
var
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
if (
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
if (!sideBar.hiddenByDefault) {
|
|
191
|
-
this.openToolPanel(sideBar.defaultToolPanel);
|
|
187
|
+
var sideBarRaw = this.gridOptionsService.get('sideBar');
|
|
188
|
+
this.sideBar = SideBarDefParser.parse(sideBarRaw);
|
|
189
|
+
|
|
190
|
+
if (!!this.sideBar && !!this.sideBar.toolPanels) {
|
|
191
|
+
var shouldDisplaySideBar = !this.sideBar.hiddenByDefault;
|
|
192
|
+
this.setDisplayed(shouldDisplaySideBar);
|
|
193
|
+
var toolPanelDefs = this.sideBar.toolPanels;
|
|
194
|
+
this.sideBarButtonsComp.setToolPanelDefs(toolPanelDefs);
|
|
195
|
+
this.setupToolPanels(toolPanelDefs);
|
|
196
|
+
this.setSideBarPosition(this.sideBar.position);
|
|
197
|
+
|
|
198
|
+
if (!this.sideBar.hiddenByDefault) {
|
|
199
|
+
this.openToolPanel(this.sideBar.defaultToolPanel, 'sideBarInitializing');
|
|
200
|
+
}
|
|
192
201
|
}
|
|
193
202
|
}
|
|
203
|
+
}, {
|
|
204
|
+
key: "getDef",
|
|
205
|
+
value: function getDef() {
|
|
206
|
+
return this.sideBar;
|
|
207
|
+
}
|
|
194
208
|
}, {
|
|
195
209
|
key: "setSideBarPosition",
|
|
196
210
|
value: function setSideBarPosition(position) {
|
|
@@ -220,7 +234,7 @@ export var SideBarComp = /*#__PURE__*/function (_Component) {
|
|
|
220
234
|
|
|
221
235
|
|
|
222
236
|
if (def.toolPanel === 'agColumnsToolPanel') {
|
|
223
|
-
var moduleMissing = !ModuleRegistry.assertRegistered(ModuleNames.
|
|
237
|
+
var moduleMissing = !ModuleRegistry.assertRegistered(ModuleNames.ColumnsToolPanelModule, 'Column Tool Panel');
|
|
224
238
|
|
|
225
239
|
if (moduleMissing) {
|
|
226
240
|
return;
|
|
@@ -257,6 +271,7 @@ export var SideBarComp = /*#__PURE__*/function (_Component) {
|
|
|
257
271
|
}, {
|
|
258
272
|
key: "openToolPanel",
|
|
259
273
|
value: function openToolPanel(key) {
|
|
274
|
+
var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'api';
|
|
260
275
|
var currentlyOpenedKey = this.openedItem();
|
|
261
276
|
|
|
262
277
|
if (currentlyOpenedKey === key) {
|
|
@@ -272,7 +287,7 @@ export var SideBarComp = /*#__PURE__*/function (_Component) {
|
|
|
272
287
|
|
|
273
288
|
if (openToolPanelChanged) {
|
|
274
289
|
this.sideBarButtonsComp.setActiveButton(key);
|
|
275
|
-
this.raiseToolPanelVisibleEvent(key);
|
|
290
|
+
this.raiseToolPanelVisibleEvent(key, currentlyOpenedKey !== null && currentlyOpenedKey !== void 0 ? currentlyOpenedKey : undefined, source);
|
|
276
291
|
}
|
|
277
292
|
}
|
|
278
293
|
}, {
|
|
@@ -291,17 +306,39 @@ export var SideBarComp = /*#__PURE__*/function (_Component) {
|
|
|
291
306
|
}
|
|
292
307
|
}, {
|
|
293
308
|
key: "raiseToolPanelVisibleEvent",
|
|
294
|
-
value: function raiseToolPanelVisibleEvent(key) {
|
|
295
|
-
|
|
309
|
+
value: function raiseToolPanelVisibleEvent(key, previousKey, source) {
|
|
310
|
+
// To be removed in v30
|
|
311
|
+
var oldEvent = {
|
|
296
312
|
type: Events.EVENT_TOOL_PANEL_VISIBLE_CHANGED,
|
|
297
313
|
source: key
|
|
298
314
|
};
|
|
299
|
-
this.eventService.dispatchEvent(
|
|
315
|
+
this.eventService.dispatchEvent(oldEvent);
|
|
316
|
+
|
|
317
|
+
if (previousKey) {
|
|
318
|
+
var event = {
|
|
319
|
+
type: Events.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED,
|
|
320
|
+
source: source,
|
|
321
|
+
key: previousKey,
|
|
322
|
+
visible: false
|
|
323
|
+
};
|
|
324
|
+
this.eventService.dispatchEvent(event);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
if (key) {
|
|
328
|
+
var _event = {
|
|
329
|
+
type: Events.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED,
|
|
330
|
+
source: source,
|
|
331
|
+
key: key,
|
|
332
|
+
visible: true
|
|
333
|
+
};
|
|
334
|
+
this.eventService.dispatchEvent(_event);
|
|
335
|
+
}
|
|
300
336
|
}
|
|
301
337
|
}, {
|
|
302
338
|
key: "close",
|
|
303
339
|
value: function close() {
|
|
304
|
-
|
|
340
|
+
var source = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'api';
|
|
341
|
+
this.openToolPanel(undefined, source);
|
|
305
342
|
}
|
|
306
343
|
}, {
|
|
307
344
|
key: "isToolPanelShowing",
|
|
@@ -344,10 +381,10 @@ export var SideBarComp = /*#__PURE__*/function (_Component) {
|
|
|
344
381
|
}(Component);
|
|
345
382
|
SideBarComp.TEMPLATE = "<div class=\"ag-side-bar ag-unselectable\">\n <ag-side-bar-buttons ref=\"sideBarButtons\"></ag-side-bar-buttons>\n </div>";
|
|
346
383
|
|
|
347
|
-
__decorate([Autowired('gridApi')], SideBarComp.prototype,
|
|
384
|
+
__decorate([Autowired('gridApi')], SideBarComp.prototype, "gridApi", void 0);
|
|
348
385
|
|
|
349
|
-
__decorate([Autowired('focusService')], SideBarComp.prototype,
|
|
386
|
+
__decorate([Autowired('focusService')], SideBarComp.prototype, "focusService", void 0);
|
|
350
387
|
|
|
351
|
-
__decorate([RefSelector('sideBarButtons')], SideBarComp.prototype,
|
|
388
|
+
__decorate([RefSelector('sideBarButtons')], SideBarComp.prototype, "sideBarButtonsComp", void 0);
|
|
352
389
|
|
|
353
|
-
__decorate([PostConstruct], SideBarComp.prototype,
|
|
390
|
+
__decorate([PostConstruct], SideBarComp.prototype, "postConstruct", null);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SideBarDef, ToolPanelDef } from "@ag-grid-community/core";
|
|
2
|
+
export declare class SideBarDefParser {
|
|
3
|
+
static readonly DEFAULT_COLUMN_COMP: ToolPanelDef;
|
|
4
|
+
static readonly DEFAULT_FILTER_COMP: ToolPanelDef;
|
|
5
|
+
static readonly DEFAULT_BY_KEY: {
|
|
6
|
+
[p: string]: ToolPanelDef;
|
|
7
|
+
};
|
|
8
|
+
static parse(toParse: SideBarDef | string | string[] | boolean | null | undefined): SideBarDef | undefined;
|
|
9
|
+
static parseComponents(from?: (ToolPanelDef | string)[]): ToolPanelDef[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
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
|
+
export var SideBarDefParser = /*#__PURE__*/function () {
|
|
8
|
+
function SideBarDefParser() {
|
|
9
|
+
_classCallCheck(this, SideBarDefParser);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
_createClass(SideBarDefParser, null, [{
|
|
13
|
+
key: "parse",
|
|
14
|
+
value: function parse(toParse) {
|
|
15
|
+
if (!toParse) {
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (toParse === true) {
|
|
20
|
+
return {
|
|
21
|
+
toolPanels: [SideBarDefParser.DEFAULT_COLUMN_COMP, SideBarDefParser.DEFAULT_FILTER_COMP],
|
|
22
|
+
defaultToolPanel: 'columns'
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (typeof toParse === 'string') {
|
|
27
|
+
return SideBarDefParser.parse([toParse]);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if (Array.isArray(toParse)) {
|
|
31
|
+
var comps = [];
|
|
32
|
+
toParse.forEach(function (key) {
|
|
33
|
+
var lookupResult = SideBarDefParser.DEFAULT_BY_KEY[key];
|
|
34
|
+
|
|
35
|
+
if (!lookupResult) {
|
|
36
|
+
console.warn("AG Grid: the key ".concat(key, " is not a valid key for specifying a tool panel, valid keys are: ").concat(Object.keys(SideBarDefParser.DEFAULT_BY_KEY).join(',')));
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
comps.push(lookupResult);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
if (comps.length === 0) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return {
|
|
48
|
+
toolPanels: comps,
|
|
49
|
+
defaultToolPanel: comps[0].id
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
var result = {
|
|
54
|
+
toolPanels: SideBarDefParser.parseComponents(toParse.toolPanels),
|
|
55
|
+
defaultToolPanel: toParse.defaultToolPanel,
|
|
56
|
+
hiddenByDefault: toParse.hiddenByDefault,
|
|
57
|
+
position: toParse.position
|
|
58
|
+
};
|
|
59
|
+
return result;
|
|
60
|
+
}
|
|
61
|
+
}, {
|
|
62
|
+
key: "parseComponents",
|
|
63
|
+
value: function parseComponents(from) {
|
|
64
|
+
var result = [];
|
|
65
|
+
|
|
66
|
+
if (!from) {
|
|
67
|
+
return result;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
from.forEach(function (it) {
|
|
71
|
+
var toAdd = null;
|
|
72
|
+
|
|
73
|
+
if (typeof it === 'string') {
|
|
74
|
+
var lookupResult = SideBarDefParser.DEFAULT_BY_KEY[it];
|
|
75
|
+
|
|
76
|
+
if (!lookupResult) {
|
|
77
|
+
console.warn("AG Grid: the key ".concat(it, " is not a valid key for specifying a tool panel, valid keys are: ").concat(Object.keys(SideBarDefParser.DEFAULT_BY_KEY).join(',')));
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
toAdd = lookupResult;
|
|
82
|
+
} else {
|
|
83
|
+
toAdd = it;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
result.push(toAdd);
|
|
87
|
+
});
|
|
88
|
+
return result;
|
|
89
|
+
}
|
|
90
|
+
}]);
|
|
91
|
+
|
|
92
|
+
return SideBarDefParser;
|
|
93
|
+
}();
|
|
94
|
+
SideBarDefParser.DEFAULT_COLUMN_COMP = {
|
|
95
|
+
id: 'columns',
|
|
96
|
+
labelDefault: 'Columns',
|
|
97
|
+
labelKey: 'columns',
|
|
98
|
+
iconKey: 'columns',
|
|
99
|
+
toolPanel: 'agColumnsToolPanel'
|
|
100
|
+
};
|
|
101
|
+
SideBarDefParser.DEFAULT_FILTER_COMP = {
|
|
102
|
+
id: 'filters',
|
|
103
|
+
labelDefault: 'Filters',
|
|
104
|
+
labelKey: 'filters',
|
|
105
|
+
iconKey: 'filter',
|
|
106
|
+
toolPanel: 'agFiltersToolPanel'
|
|
107
|
+
};
|
|
108
|
+
SideBarDefParser.DEFAULT_BY_KEY = {
|
|
109
|
+
columns: SideBarDefParser.DEFAULT_COLUMN_COMP,
|
|
110
|
+
filters: SideBarDefParser.DEFAULT_FILTER_COMP
|
|
111
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Component, IToolPanelComp, ToolPanelDef } from
|
|
1
|
+
import { Component, IToolPanelComp, ToolPanelDef } from "@ag-grid-community/core";
|
|
2
2
|
export declare class ToolPanelWrapper extends Component {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
private userComponentFactory;
|
|
4
|
+
private static TEMPLATE;
|
|
5
|
+
private toolPanelCompInstance;
|
|
6
|
+
private toolPanelId;
|
|
7
|
+
private resizeBar;
|
|
8
|
+
private width;
|
|
9
|
+
constructor();
|
|
10
|
+
private setupResize;
|
|
11
|
+
getToolPanelId(): string;
|
|
12
|
+
setToolPanelDef(toolPanelDef: ToolPanelDef): void;
|
|
13
|
+
private setToolPanelComponent;
|
|
14
|
+
getToolPanelInstance(): IToolPanelComp;
|
|
15
|
+
setResizerSizerSide(side: 'right' | 'left'): void;
|
|
16
|
+
refresh(): void;
|
|
17
17
|
}
|
|
@@ -24,13 +24,13 @@ var __decorate = this && this.__decorate || function (decorators, target, key, d
|
|
|
24
24
|
var c = arguments.length,
|
|
25
25
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
26
26
|
d;
|
|
27
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) ===
|
|
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
28
|
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
29
29
|
}
|
|
30
30
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
import { Autowired, Component, PostConstruct } from
|
|
33
|
+
import { Autowired, Component, PostConstruct } from "@ag-grid-community/core";
|
|
34
34
|
import { HorizontalResizeComp } from "./horizontalResizeComp";
|
|
35
35
|
export var ToolPanelWrapper = /*#__PURE__*/function (_Component) {
|
|
36
36
|
_inherits(ToolPanelWrapper, _Component);
|
|
@@ -107,7 +107,7 @@ export var ToolPanelWrapper = /*#__PURE__*/function (_Component) {
|
|
|
107
107
|
}, {
|
|
108
108
|
key: "setResizerSizerSide",
|
|
109
109
|
value: function setResizerSizerSide(side) {
|
|
110
|
-
var isRtl = this.
|
|
110
|
+
var isRtl = this.gridOptionsService.is('enableRtl');
|
|
111
111
|
var isLeft = side === 'left';
|
|
112
112
|
var inverted = isRtl ? isLeft : !isLeft;
|
|
113
113
|
this.resizeBar.setInverted(inverted);
|
|
@@ -123,6 +123,6 @@ export var ToolPanelWrapper = /*#__PURE__*/function (_Component) {
|
|
|
123
123
|
}(Component);
|
|
124
124
|
ToolPanelWrapper.TEMPLATE = "<div class=\"ag-tool-panel-wrapper\"/>";
|
|
125
125
|
|
|
126
|
-
__decorate([Autowired(
|
|
126
|
+
__decorate([Autowired("userComponentFactory")], ToolPanelWrapper.prototype, "userComponentFactory", void 0);
|
|
127
127
|
|
|
128
|
-
__decorate([PostConstruct], ToolPanelWrapper.prototype,
|
|
128
|
+
__decorate([PostConstruct], ToolPanelWrapper.prototype, "setupResize", null);
|
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { SideBarComp } from './sideBar/sideBarComp';
|
|
4
|
-
import { SideBarButtonsComp } from './sideBar/sideBarButtonsComp';
|
|
5
|
-
import { ToolPanelColDefService } from './sideBar/common/toolPanelColDefService';
|
|
6
|
-
export declare const SideBarModule: {
|
|
7
|
-
moduleName: ModuleNames;
|
|
8
|
-
beans: (typeof ToolPanelColDefService)[];
|
|
9
|
-
agStackComponents: ({
|
|
10
|
-
componentName: string;
|
|
11
|
-
componentClass: typeof HorizontalResizeComp;
|
|
12
|
-
} | {
|
|
13
|
-
componentName: string;
|
|
14
|
-
componentClass: typeof SideBarComp;
|
|
15
|
-
} | {
|
|
16
|
-
componentName: string;
|
|
17
|
-
componentClass: typeof SideBarButtonsComp;
|
|
18
|
-
})[];
|
|
19
|
-
};
|
|
1
|
+
import { Module } from "@ag-grid-community/core";
|
|
2
|
+
export declare const SideBarModule: Module;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { ModuleNames } from
|
|
1
|
+
import { ModuleNames } from "@ag-grid-community/core";
|
|
2
2
|
import { HorizontalResizeComp } from "./sideBar/horizontalResizeComp";
|
|
3
3
|
import { SideBarComp } from "./sideBar/sideBarComp";
|
|
4
4
|
import { SideBarButtonsComp } from "./sideBar/sideBarButtonsComp";
|
|
5
5
|
import { ToolPanelColDefService } from "./sideBar/common/toolPanelColDefService";
|
|
6
|
+
import { VERSION } from "./version";
|
|
6
7
|
export var SideBarModule = {
|
|
8
|
+
version: VERSION,
|
|
7
9
|
moduleName: ModuleNames.SideBarModule,
|
|
8
10
|
beans: [ToolPanelColDefService],
|
|
9
11
|
agStackComponents: [{
|
|
@@ -15,5 +17,6 @@ export var SideBarModule = {
|
|
|
15
17
|
}, {
|
|
16
18
|
componentName: 'AgSideBarButtons',
|
|
17
19
|
componentClass: SideBarButtonsComp
|
|
18
|
-
}]
|
|
20
|
+
}],
|
|
21
|
+
dependantModules: []
|
|
19
22
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VERSION = "29.2.0";
|
|
@@ -14,8 +14,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
14
14
|
|
|
15
15
|
import React, { useEffect, useRef, useState } from 'react';
|
|
16
16
|
import classNames from 'classnames';
|
|
17
|
-
import Icons from "
|
|
18
|
-
import { prefixClassName } from "
|
|
17
|
+
import Icons from "../../Icons";
|
|
18
|
+
import { prefixClassName } from "../../utils";
|
|
19
19
|
import { Popover } from 'antd';
|
|
20
20
|
var prefix = prefixClassName('grid-operator');
|
|
21
21
|
|
|
@@ -33,8 +33,8 @@ function ActionItem(props) {
|
|
|
33
33
|
visible = _useState2[0],
|
|
34
34
|
setVisible = _useState2[1];
|
|
35
35
|
|
|
36
|
-
var dropDown = item.dropDown ? item.dropDown.filter(function (
|
|
37
|
-
return
|
|
36
|
+
var dropDown = item.dropDown ? item.dropDown.filter(function (sub) {
|
|
37
|
+
return sub !== null;
|
|
38
38
|
}) : [];
|
|
39
39
|
var node = /*#__PURE__*/React.createElement("div", {
|
|
40
40
|
className: classNames(prefix('item'), _defineProperty({}, prefix("item-disabled"), item.disabled)),
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ICellRendererParams } from '@ag-grid-community/core';
|
|
3
|
+
export default function CellDeleteRender<TData>(props: ICellRendererParams<TData> & {
|
|
4
|
+
enable?: (data: ICellRendererParams<TData>) => boolean | Promise<boolean>;
|
|
5
|
+
}): JSX.Element | null;
|