@lemon-fe/components 0.1.154 → 1.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/{Actions → actions}/index.d.ts +8 -5
- package/es/{Actions → actions}/index.js +56 -39
- package/es/{Actions → actions}/index.less +5 -5
- package/es/alert/index.d.ts +3 -0
- package/es/alert/index.js +18 -0
- package/es/{BaseTable/Actions.js → base-table/actions.js} +13 -10
- package/es/{BaseTable → base-table}/index.d.ts +0 -1
- package/es/{BaseTable → base-table}/index.js +48 -22
- package/es/{BaseTable/ResizeHeaderCell.js → base-table/resize-header-cell.js} +3 -3
- package/es/{BaseTable → base-table}/utils.d.ts +1 -1
- package/es/{BaseTable/VirtualBody.js → base-table/virtual-body.js} +12 -13
- package/es/{ColorPicker → color-picker}/index.js +7 -7
- package/es/{ColorPicker → color-picker}/index.less +1 -1
- package/es/component-configure/index.d.ts +12 -0
- package/es/component-configure/index.js +4 -0
- package/es/data-grid/cell-editors/date.d.ts +19 -0
- package/es/data-grid/cell-editors/date.js +92 -0
- package/es/data-grid/cell-editors/number.d.ts +32 -0
- package/es/data-grid/cell-editors/number.js +120 -0
- package/es/data-grid/cell-editors/row.d.ts +23 -0
- package/es/data-grid/cell-editors/row.js +119 -0
- package/es/data-grid/cell-editors/select.d.ts +33 -0
- package/es/data-grid/cell-editors/select.js +102 -0
- package/es/data-grid/cell-editors/text.d.ts +10 -0
- package/es/data-grid/cell-editors/text.js +81 -0
- package/es/data-grid/cell-editors/utils.d.ts +10 -0
- package/es/data-grid/cell-editors/utils.js +45 -0
- package/es/data-grid/cell-editors/wrapper.d.ts +5 -0
- package/es/data-grid/cell-editors/wrapper.js +8 -0
- package/es/data-grid/components/custom-panel/drag-context.d.ts +4 -0
- package/es/data-grid/components/custom-panel/drag-context.js +3 -0
- package/es/data-grid/components/custom-panel/field-modal.d.ts +10 -0
- package/es/data-grid/components/custom-panel/field-modal.js +223 -0
- package/es/data-grid/components/custom-panel/index.d.ts +5 -0
- package/es/data-grid/components/custom-panel/index.js +321 -0
- package/es/data-grid/components/custom-panel/item.d.ts +14 -0
- package/es/data-grid/components/custom-panel/item.js +181 -0
- package/es/data-grid/components/custom-panel/typings.d.ts +25 -0
- package/es/data-grid/components/search.d.ts +4 -0
- package/es/data-grid/components/search.js +159 -0
- package/es/data-grid/components/selected.d.ts +7 -0
- package/es/data-grid/components/selected.js +24 -0
- package/es/data-grid/context/grid-store.d.ts +4 -0
- package/es/data-grid/context/grid-store.js +4 -0
- package/es/data-grid/hooks.d.ts +20 -0
- package/es/data-grid/hooks.js +71 -0
- package/es/data-grid/index.d.ts +102 -0
- package/es/data-grid/index.js +1684 -0
- package/es/data-grid/index.less +659 -0
- package/es/data-grid/modules/clipboard/clipboard/clipboardService.d.ts +62 -0
- package/es/data-grid/modules/clipboard/clipboard/clipboardService.js +1007 -0
- package/es/data-grid/modules/clipboard/clipboardModule.d.ts +2 -0
- package/es/data-grid/modules/clipboard/clipboardModule.js +10 -0
- package/es/data-grid/modules/clipboard/main.d.ts +1 -0
- package/es/data-grid/modules/clipboard/main.js +1 -0
- package/es/data-grid/modules/clipboard/version.d.ts +1 -0
- package/es/data-grid/modules/clipboard/version.js +2 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnModelItem.d.ts +26 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnModelItem.js +94 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnToolPanel.d.ts +32 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnToolPanel.js +272 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/modelItemUtils.d.ts +16 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/modelItemUtils.js +209 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/pivotModePanel.d.ts +9 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/pivotModePanel.js +68 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.d.ts +32 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.js +150 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.d.ts +44 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.js +455 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.d.ts +26 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.js +224 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.d.ts +24 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.js +123 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.d.ts +37 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.js +314 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.d.ts +51 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.js +406 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.d.ts +24 -0
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.js +264 -0
- package/es/data-grid/modules/column-tool-panel/columnsToolPanelModule.d.ts +2 -0
- package/es/data-grid/modules/column-tool-panel/columnsToolPanelModule.js +29 -0
- package/es/data-grid/modules/column-tool-panel/main.d.ts +2 -0
- package/es/data-grid/modules/column-tool-panel/main.js +3 -0
- package/es/data-grid/modules/column-tool-panel/version.d.ts +1 -0
- package/es/data-grid/modules/column-tool-panel/version.js +2 -0
- package/es/data-grid/modules/master-detail/main.d.ts +1 -0
- package/es/data-grid/modules/master-detail/main.js +1 -0
- package/es/data-grid/modules/master-detail/masterDetail/detailCellRenderer.d.ts +14 -0
- package/es/data-grid/modules/master-detail/masterDetail/detailCellRenderer.js +144 -0
- package/es/data-grid/modules/master-detail/masterDetail/detailCellRendererCtrl.d.ts +19 -0
- package/es/data-grid/modules/master-detail/masterDetail/detailCellRendererCtrl.js +203 -0
- package/es/data-grid/modules/master-detail/masterDetailModule.d.ts +2 -0
- package/es/data-grid/modules/master-detail/masterDetailModule.js +18 -0
- package/es/data-grid/modules/master-detail/version.d.ts +1 -0
- package/es/data-grid/modules/master-detail/version.js +2 -0
- package/es/data-grid/modules/menu/main.d.ts +1 -0
- package/es/data-grid/modules/menu/main.js +1 -0
- package/es/data-grid/modules/menu/menu/chartMenuItemMapper.d.ts +13 -0
- package/es/data-grid/modules/menu/menu/chartMenuItemMapper.js +351 -0
- package/es/data-grid/modules/menu/menu/contextMenu.d.ts +13 -0
- package/es/data-grid/modules/menu/menu/contextMenu.js +267 -0
- package/es/data-grid/modules/menu/menu/enterpriseMenu.d.ts +66 -0
- package/es/data-grid/modules/menu/menu/enterpriseMenu.js +592 -0
- package/es/data-grid/modules/menu/menu/menuItemMapper.d.ts +13 -0
- package/es/data-grid/modules/menu/menu/menuItemMapper.js +328 -0
- package/es/data-grid/modules/menu/menuModule.d.ts +2 -0
- package/es/data-grid/modules/menu/menuModule.js +12 -0
- package/es/data-grid/modules/menu/version.d.ts +1 -0
- package/es/data-grid/modules/menu/version.js +2 -0
- package/es/data-grid/modules/row-grouping/main.d.ts +4 -0
- package/es/data-grid/modules/row-grouping/main.js +4 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/aggFuncService.d.ts +23 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/aggFuncService.js +250 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/aggregationStage.d.ts +22 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/aggregationStage.js +285 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/batchRemover.d.ts +12 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/batchRemover.js +77 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.d.ts +75 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.js +516 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.d.ts +40 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.js +367 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.d.ts +11 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.js +85 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.d.ts +17 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.js +139 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.d.ts +15 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.js +105 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.d.ts +15 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.js +105 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/filterAggregatesStage.d.ts +9 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/filterAggregatesStage.js +136 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFilter.d.ts +39 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFilter.js +319 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFloatingFilter.d.ts +23 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFloatingFilter.js +163 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/groupStage.d.ts +48 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/groupStage.js +740 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/pivotColDefService.d.ts +24 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/pivotColDefService.js +396 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/pivotStage.d.ts +19 -0
- package/es/data-grid/modules/row-grouping/rowGrouping/pivotStage.js +182 -0
- package/es/data-grid/modules/row-grouping/rowGroupingModule.d.ts +2 -0
- package/es/data-grid/modules/row-grouping/rowGroupingModule.js +28 -0
- package/es/data-grid/modules/row-grouping/version.d.ts +1 -0
- package/es/data-grid/modules/row-grouping/version.js +2 -0
- package/es/data-grid/modules/side-bar/main.d.ts +2 -0
- package/es/data-grid/modules/side-bar/main.js +2 -0
- package/es/data-grid/modules/side-bar/sideBar/common/toolPanelColDefService.d.ts +11 -0
- package/es/data-grid/modules/side-bar/sideBar/common/toolPanelColDefService.js +216 -0
- package/es/data-grid/modules/side-bar/sideBar/horizontalResizeComp.d.ts +19 -0
- package/es/data-grid/modules/side-bar/sideBar/horizontalResizeComp.js +108 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarButtonComp.d.ts +16 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarButtonComp.js +84 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarButtonsComp.d.ts +18 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarButtonsComp.js +89 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarComp.d.ts +28 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarComp.js +325 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarDefParser.d.ts +10 -0
- package/es/data-grid/modules/side-bar/sideBar/sideBarDefParser.js +95 -0
- package/es/data-grid/modules/side-bar/sideBar/toolPanelWrapper.d.ts +17 -0
- package/es/data-grid/modules/side-bar/sideBar/toolPanelWrapper.js +103 -0
- package/es/data-grid/modules/side-bar/sideBarModule.d.ts +2 -0
- package/es/data-grid/modules/side-bar/sideBarModule.js +22 -0
- package/es/data-grid/modules/side-bar/version.d.ts +1 -0
- package/es/data-grid/modules/side-bar/version.js +2 -0
- package/es/data-grid/renderer/actions-renderer.d.ts +3 -0
- package/es/data-grid/renderer/actions-renderer.js +50 -0
- package/es/data-grid/renderer/actions.d.ts +11 -0
- package/es/data-grid/renderer/actions.js +72 -0
- package/es/data-grid/renderer/cell-delete-renderer.d.ts +5 -0
- package/es/data-grid/renderer/cell-delete-renderer.js +49 -0
- package/es/data-grid/renderer/cell-index-renderer.d.ts +4 -0
- package/es/data-grid/renderer/cell-index-renderer.js +43 -0
- package/es/data-grid/renderer/cell-renderer.d.ts +4 -0
- package/es/data-grid/renderer/cell-renderer.js +58 -0
- package/es/data-grid/renderer/detali-cell-renderer.d.ts +9 -0
- package/es/data-grid/renderer/detali-cell-renderer.js +59 -0
- package/es/data-grid/renderer/header-renderer.d.ts +6 -0
- package/es/data-grid/renderer/header-renderer.js +98 -0
- package/es/data-grid/typings.d.ts +226 -0
- package/es/data-grid/typings.js +1 -0
- package/es/data-grid/utils.d.ts +51 -0
- package/es/data-grid/utils.js +293 -0
- package/es/dropdown/index.d.ts +14 -0
- package/es/dropdown/index.js +42 -0
- package/es/dropdown/index.less +5 -0
- package/es/{DurationPicker → duration-picker}/index.d.ts +12 -9
- package/es/duration-picker/index.js +204 -0
- package/es/duration-picker/index.less +12 -0
- package/es/{EditableTable/EditableCell.d.ts → editable-table/editable-cell.d.ts} +1 -1
- package/es/editable-table/editable-cell.js +41 -0
- package/es/{EditableTable/EditableTableFormItem.d.ts → editable-table/editable-table-form-item.d.ts} +1 -1
- package/es/{EditableTable/EditableTableFormItem.js → editable-table/editable-table-form-item.js} +3 -5
- package/es/{EditableTable → editable-table}/index.d.ts +3 -3
- package/es/editable-table/index.js +8 -0
- package/es/{EditableTable/Table.d.ts → editable-table/table.d.ts} +1 -1
- package/es/{EditableTable/Table.js → editable-table/table.js} +27 -22
- package/es/{EditableTable → editable-table}/typings.d.ts +2 -2
- package/es/editable-table/util.js +311 -0
- package/es/empty-image/index.d.ts +2 -0
- package/es/empty-image/index.js +78 -0
- package/es/{Filter → filter}/index.d.ts +3 -3
- package/es/filter/index.js +615 -0
- package/es/{Filter → filter}/index.less +5 -5
- package/es/filter/typings.d.ts +70 -0
- package/es/{FormLayout → form-layout}/index.d.ts +5 -0
- package/es/form-layout/index.js +48 -0
- package/es/{FormLayout → form-layout}/index.less +21 -8
- package/es/grey-panel/index.d.ts +6 -0
- package/es/grey-panel/index.js +15 -0
- package/es/grey-panel/index.less +11 -0
- package/es/icons/add.d.ts +6 -0
- package/es/icons/add.js +39 -0
- package/es/{Icons/BigTip → icons/big-tip}/index.d.ts +1 -1
- package/es/{Icons/BigTip → icons/big-tip}/index.js +6 -8
- package/es/{Icons/Down.d.ts → icons/calendar.d.ts} +1 -1
- package/es/icons/calendar.js +35 -0
- package/es/icons/clear.d.ts +3 -0
- package/es/icons/clear.js +18 -0
- package/es/icons/clock.d.ts +5 -0
- package/es/icons/clock.js +27 -0
- package/es/icons/close-light.d.ts +5 -0
- package/es/icons/close-light.js +31 -0
- package/es/{Icons/Close.d.ts → icons/close.d.ts} +1 -1
- package/es/icons/close.js +22 -0
- package/es/{Icons/CollapseUp.d.ts → icons/collapse-up.d.ts} +1 -1
- package/es/icons/collapse-up.js +24 -0
- package/es/{Icons/Search.d.ts → icons/dark-search.d.ts} +1 -1
- package/es/{Icons/DarkSearch.js → icons/dark-search.js} +3 -5
- package/es/icons/delete.d.ts +3 -0
- package/es/icons/delete.js +37 -0
- package/es/icons/down.d.ts +3 -0
- package/es/icons/down.js +18 -0
- package/es/icons/drag/drag.svg +7 -0
- package/es/icons/drag/index.d.ts +3 -0
- package/es/icons/drag/index.js +31 -0
- package/es/{Icons/Empty.d.ts → icons/empty.d.ts} +1 -0
- package/es/icons/index.d.ts +45 -0
- package/es/icons/index.js +45 -0
- package/es/{Icons/LookUp.d.ts → icons/look-up.d.ts} +1 -1
- package/es/{Icons/LookUp.js → icons/look-up.js} +3 -5
- package/es/icons/more.d.ts +3 -0
- package/es/icons/more.js +37 -0
- package/es/icons/new-tag.d.ts +3 -0
- package/es/icons/new-tag.js +19 -0
- package/es/icons/plus/index.d.ts +3 -0
- package/es/icons/plus/index.js +27 -0
- package/es/icons/plus/plus.svg +6 -0
- package/es/icons/question.d.ts +3 -0
- package/es/icons/question.js +18 -0
- package/es/icons/reload.d.ts +3 -0
- package/es/icons/reload.js +18 -0
- package/es/icons/search.d.ts +3 -0
- package/es/icons/search.js +18 -0
- package/es/icons/tip.d.ts +5 -0
- package/es/{Icons/Tip.js → icons/tip.js} +64 -75
- package/es/index.d.ts +43 -32
- package/es/index.js +36 -28
- package/es/input-compact/index.d.ts +11 -0
- package/es/input-compact/index.js +63 -0
- package/es/input-compact/index.less +33 -0
- package/es/input-number/index.d.ts +8 -0
- package/es/input-number/index.js +35 -0
- package/es/input-number/index.less +58 -0
- package/es/{Layout → layout}/index.d.ts +26 -8
- package/es/layout/index.js +253 -0
- package/es/{Layout → layout}/index.less +43 -25
- package/es/{PageLoading → page-loading}/index.d.ts +2 -1
- package/es/{PageLoading → page-loading}/index.js +5 -3
- package/es/popup/index.d.ts +80 -0
- package/es/popup/index.js +260 -0
- package/es/popup/index.less +34 -0
- package/es/portal/index.d.ts +18 -0
- package/es/{Portal → portal}/index.js +48 -14
- package/es/{Section → section}/index.d.ts +10 -2
- package/es/section/index.js +99 -0
- package/es/{Section → section}/index.less +22 -6
- package/es/{Section/TabBar.d.ts → section/tab-bar.d.ts} +2 -1
- package/es/{Section/TabBar.js → section/tab-bar.js} +6 -3
- package/es/select-panel/index.d.ts +17 -0
- package/es/select-panel/index.js +63 -0
- package/es/select-panel/index.less +112 -0
- package/es/select-view/index.d.ts +63 -0
- package/es/select-view/index.js +269 -0
- package/es/select-view/index.less +57 -0
- package/es/{SiderTree → sider-tree}/index.d.ts +6 -12
- package/es/{SiderTree → sider-tree}/index.js +58 -82
- package/es/sider-tree/index.less +151 -0
- package/es/{SiderTree/TreeNodeTitle.js → sider-tree/tree-node-title.js} +13 -10
- package/es/{SiderTree → sider-tree}/typings.d.ts +2 -2
- package/es/state/index.d.ts +8 -0
- package/es/state/index.js +20 -0
- package/es/state/index.less +131 -0
- package/es/styles/empty.png +0 -0
- package/es/styles/index.less +28 -0
- package/es/styles/overrides.less +347 -0
- package/es/styles/theme.less +29 -0
- package/es/{utils.less → styles/utils.less} +18 -18
- package/es/symbol-icon/index.js +30 -0
- package/es/{TabBar → tab-bar}/index.d.ts +2 -3
- package/es/tab-bar/index.js +31 -0
- package/es/tab-bar/index.less +5 -0
- package/es/table/index.js +201 -0
- package/es/{Table → table}/typings.d.ts +2 -3
- package/es/{Table → table}/utils.d.ts +1 -1
- package/es/tip-mark/index.d.ts +8 -0
- package/es/tip-mark/index.js +44 -0
- package/es/utils.d.ts +2 -1
- package/es/utils.js +10 -2
- package/package.json +50 -21
- package/README.md +0 -11
- package/es/Dropdown/index.d.ts +0 -15
- package/es/Dropdown/index.js +0 -45
- package/es/Dropdown/index.less +0 -13
- package/es/DurationPicker/index.js +0 -174
- package/es/DurationPicker/index.less +0 -61
- package/es/EditableTable/EditableCell.js +0 -41
- package/es/EditableTable/index.js +0 -8
- package/es/EditableTable/util.js +0 -311
- package/es/Filter/index.js +0 -555
- package/es/Filter/typings.d.ts +0 -37
- package/es/FormHorizontal/index.d.ts +0 -6
- package/es/FormHorizontal/index.js +0 -30
- package/es/FormHorizontal/index.less +0 -14
- package/es/FormInline/index.d.ts +0 -15
- package/es/FormInline/index.js +0 -74
- package/es/FormInline/index.less +0 -26
- package/es/FormLayout/index.js +0 -36
- package/es/FormTable/index.d.ts +0 -6
- package/es/FormTable/index.js +0 -125
- package/es/FormTable/index.less +0 -11
- package/es/FormTable/typings.d.ts +0 -38
- package/es/Icons/Calendar.d.ts +0 -5
- package/es/Icons/Calendar.js +0 -42
- package/es/Icons/Close.js +0 -24
- package/es/Icons/CollapseUp.js +0 -26
- package/es/Icons/DarkSearch.d.ts +0 -5
- package/es/Icons/Down.js +0 -30
- package/es/Icons/More.d.ts +0 -5
- package/es/Icons/More.js +0 -39
- package/es/Icons/Search.js +0 -30
- package/es/Icons/Tip.d.ts +0 -6
- package/es/Icons/index.d.ts +0 -24
- package/es/Icons/index.js +0 -25
- package/es/InputMaxLength/index.d.ts +0 -14
- package/es/InputMaxLength/index.js +0 -72
- package/es/InputMaxLength/index.less +0 -8
- package/es/Layout/index.js +0 -184
- package/es/MainFramework/components/DropMenu/index.d.ts +0 -11
- package/es/MainFramework/components/DropMenu/index.js +0 -93
- package/es/MainFramework/components/DropMenu/index.less +0 -59
- package/es/MainFramework/components/Menu/index.d.ts +0 -10
- package/es/MainFramework/components/Menu/index.js +0 -603
- package/es/MainFramework/components/Menu/index.less +0 -445
- package/es/MainFramework/components/RefreshButton/index.d.ts +0 -6
- package/es/MainFramework/components/RefreshButton/index.js +0 -63
- package/es/MainFramework/components/RefreshButton/index.less +0 -30
- package/es/MainFramework/components/TabBar/index.d.ts +0 -10
- package/es/MainFramework/components/TabBar/index.js +0 -101
- package/es/MainFramework/components/TabBar/index.less +0 -155
- package/es/MainFramework/components/WaterMark/index.d.ts +0 -6
- package/es/MainFramework/components/WaterMark/index.js +0 -65
- package/es/MainFramework/index.d.ts +0 -28
- package/es/MainFramework/index.js +0 -78
- package/es/MainFramework/index.less +0 -97
- package/es/MainFramework/typings.d.ts +0 -10
- package/es/Popup/index.d.ts +0 -39
- package/es/Popup/index.js +0 -180
- package/es/Popup/index.less +0 -12
- package/es/Portal/index.d.ts +0 -17
- package/es/Section/index.js +0 -90
- package/es/SelectView/index.d.ts +0 -56
- package/es/SelectView/index.js +0 -227
- package/es/SelectView/index.less +0 -60
- package/es/SiderTree/index.less +0 -222
- package/es/SymbolIcon/index.js +0 -27
- package/es/TabBar/index.js +0 -42
- package/es/TabBar/index.less +0 -31
- package/es/Table/index.js +0 -205
- package/es/TipMark/index.d.ts +0 -10
- package/es/TipMark/index.js +0 -35
- package/es/TipMark/index.less +0 -6
- package/es/index.less +0 -26
- package/es/init.d.ts +0 -3
- package/es/init.js +0 -134
- package/es/overrides.less +0 -183
- package/es/theme.less +0 -9
- /package/es/{BaseTable/Actions.d.ts → base-table/actions.d.ts} +0 -0
- /package/es/{BaseTable/BaseTableContext.d.ts → base-table/base-table-context.d.ts} +0 -0
- /package/es/{BaseTable/BaseTableContext.js → base-table/base-table-context.js} +0 -0
- /package/es/{BaseTable → base-table}/empty.png +0 -0
- /package/es/{BaseTable → base-table}/index.less +0 -0
- /package/es/{BaseTable/ResizeHeaderCell.d.ts → base-table/resize-header-cell.d.ts} +0 -0
- /package/es/{BaseTable → base-table}/typings.d.ts +0 -0
- /package/es/{BaseTable → base-table}/utils.js +0 -0
- /package/es/{BaseTable/VirtualBody.d.ts → base-table/virtual-body.d.ts} +0 -0
- /package/es/{ColorPicker → color-picker}/index.d.ts +0 -0
- /package/es/{EditableTable → editable-table}/index.less +0 -0
- /package/es/{EditableTable → editable-table}/util.d.ts +0 -0
- /package/es/{Icons/BigTip → icons/big-tip}/error.png +0 -0
- /package/es/{Icons/BigTip → icons/big-tip}/info.png +0 -0
- /package/es/{Icons/BigTip → icons/big-tip}/success.png +0 -0
- /package/es/{Icons/BigTip → icons/big-tip}/warning.png +0 -0
- /package/es/{Icons/Empty.js → icons/empty.js} +0 -0
- /package/es/{PageLoading → page-loading}/index.less +0 -0
- /package/es/{SiderTree → sider-tree}/empty.png +0 -0
- /package/es/{SiderTree/TreeNodeTitle.d.ts → sider-tree/tree-node-title.d.ts} +0 -0
- /package/es/{SymbolIcon → symbol-icon}/index.d.ts +0 -0
- /package/es/{SymbolIcon → symbol-icon}/index.less +0 -0
- /package/es/{Table → table}/index.d.ts +0 -0
- /package/es/{Table → table}/utils.js +0 -0
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2
|
+
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, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
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); }
|
|
7
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
8
|
+
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); }; }
|
|
9
|
+
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); }
|
|
10
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11
|
+
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; } }
|
|
12
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
13
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
14
|
+
var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length,
|
|
16
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
17
|
+
d;
|
|
18
|
+
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--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
19
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20
|
+
};
|
|
21
|
+
import { Bean, BeanStub, Autowired, _ } from "@ag-grid-community/core";
|
|
22
|
+
var AggregationStage = /*#__PURE__*/function (_BeanStub) {
|
|
23
|
+
_inherits(AggregationStage, _BeanStub);
|
|
24
|
+
var _super = _createSuper(AggregationStage);
|
|
25
|
+
function AggregationStage() {
|
|
26
|
+
_classCallCheck(this, AggregationStage);
|
|
27
|
+
return _super.apply(this, arguments);
|
|
28
|
+
}
|
|
29
|
+
_createClass(AggregationStage, [{
|
|
30
|
+
key: "execute",
|
|
31
|
+
value:
|
|
32
|
+
// it's possible to recompute the aggregate without doing the other parts
|
|
33
|
+
// + api.refreshClientSideRowModel('aggregate')
|
|
34
|
+
function execute(params) {
|
|
35
|
+
// if changed path is active, it means we came from a) change detection or b) transaction update.
|
|
36
|
+
// for both of these, if no value columns are present, it means there is nothing to aggregate now
|
|
37
|
+
// and there is no cleanup to be done (as value columns don't change between transactions or change
|
|
38
|
+
// detections). if no value columns and no changed path, means we have to go through all nodes in
|
|
39
|
+
// case we need to clean up agg data from before.
|
|
40
|
+
var noValueColumns = _.missingOrEmpty(this.columnModel.getValueColumns());
|
|
41
|
+
var noUserAgg = !this.getGroupRowAggFunc();
|
|
42
|
+
var changedPathActive = params.changedPath && params.changedPath.isActive();
|
|
43
|
+
if (noValueColumns && noUserAgg && changedPathActive) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
var aggDetails = this.createAggDetails(params);
|
|
47
|
+
this.recursivelyCreateAggData(aggDetails);
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
key: "getGroupRowAggFunc",
|
|
51
|
+
value: function getGroupRowAggFunc() {
|
|
52
|
+
var getGroupRowAgg = this.gridOptionsService.getCallback('getGroupRowAgg');
|
|
53
|
+
if (getGroupRowAgg) {
|
|
54
|
+
return getGroupRowAgg;
|
|
55
|
+
}
|
|
56
|
+
// this is the deprecated way, so provide a proxy to make it compatible
|
|
57
|
+
var groupRowAggNodes = this.gridOptionsService.get('groupRowAggNodes');
|
|
58
|
+
if (groupRowAggNodes) {
|
|
59
|
+
return function (params) {
|
|
60
|
+
return groupRowAggNodes(params.nodes);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
key: "createAggDetails",
|
|
66
|
+
value: function createAggDetails(params) {
|
|
67
|
+
var pivotActive = this.columnModel.isPivotActive();
|
|
68
|
+
var measureColumns = this.columnModel.getValueColumns();
|
|
69
|
+
var pivotColumns = pivotActive ? this.columnModel.getPivotColumns() : [];
|
|
70
|
+
var aggDetails = {
|
|
71
|
+
changedPath: params.changedPath,
|
|
72
|
+
valueColumns: measureColumns,
|
|
73
|
+
pivotColumns: pivotColumns
|
|
74
|
+
};
|
|
75
|
+
return aggDetails;
|
|
76
|
+
}
|
|
77
|
+
}, {
|
|
78
|
+
key: "isSuppressAggFilteredOnly",
|
|
79
|
+
value: function isSuppressAggFilteredOnly() {
|
|
80
|
+
var isGroupAggFiltering = this.gridOptionsService.getGroupAggFiltering() !== undefined;
|
|
81
|
+
return isGroupAggFiltering || this.gridOptionsService.is('suppressAggFilteredOnly');
|
|
82
|
+
}
|
|
83
|
+
}, {
|
|
84
|
+
key: "recursivelyCreateAggData",
|
|
85
|
+
value: function recursivelyCreateAggData(aggDetails) {
|
|
86
|
+
var _this = this;
|
|
87
|
+
// update prop, in case changed since last time
|
|
88
|
+
this.filteredOnly = !this.isSuppressAggFilteredOnly();
|
|
89
|
+
var callback = function callback(rowNode) {
|
|
90
|
+
var hasNoChildren = !rowNode.hasChildren();
|
|
91
|
+
if (hasNoChildren) {
|
|
92
|
+
// this check is needed for TreeData, in case the node is no longer a child,
|
|
93
|
+
// but it was a child previously.
|
|
94
|
+
if (rowNode.aggData) {
|
|
95
|
+
rowNode.setAggData(null);
|
|
96
|
+
}
|
|
97
|
+
// never agg data for leaf nodes
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
//Optionally prevent the aggregation at the root Node
|
|
101
|
+
//https://ag-grid.atlassian.net/browse/AG-388
|
|
102
|
+
var isRootNode = rowNode.level === -1;
|
|
103
|
+
if (isRootNode) {
|
|
104
|
+
var notPivoting = !_this.columnModel.isPivotMode();
|
|
105
|
+
var suppressAggAtRootLevel = _this.gridOptionsService.is('suppressAggAtRootLevel');
|
|
106
|
+
if (suppressAggAtRootLevel && notPivoting) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
_this.aggregateRowNode(rowNode, aggDetails);
|
|
111
|
+
};
|
|
112
|
+
aggDetails.changedPath.forEachChangedNodeDepthFirst(callback, true);
|
|
113
|
+
}
|
|
114
|
+
}, {
|
|
115
|
+
key: "aggregateRowNode",
|
|
116
|
+
value: function aggregateRowNode(rowNode, aggDetails) {
|
|
117
|
+
var measureColumnsMissing = aggDetails.valueColumns.length === 0;
|
|
118
|
+
var pivotColumnsMissing = aggDetails.pivotColumns.length === 0;
|
|
119
|
+
var userFunc = this.getGroupRowAggFunc();
|
|
120
|
+
var aggResult;
|
|
121
|
+
if (userFunc) {
|
|
122
|
+
var params = {
|
|
123
|
+
nodes: rowNode.childrenAfterFilter
|
|
124
|
+
};
|
|
125
|
+
aggResult = userFunc(params);
|
|
126
|
+
} else if (measureColumnsMissing) {
|
|
127
|
+
aggResult = null;
|
|
128
|
+
} else if (pivotColumnsMissing) {
|
|
129
|
+
aggResult = this.aggregateRowNodeUsingValuesOnly(rowNode, aggDetails);
|
|
130
|
+
} else {
|
|
131
|
+
aggResult = this.aggregateRowNodeUsingValuesAndPivot(rowNode);
|
|
132
|
+
}
|
|
133
|
+
rowNode.setAggData(aggResult);
|
|
134
|
+
// if we are grouping, then it's possible there is a sibling footer
|
|
135
|
+
// to the group, so update the data here also if there is one
|
|
136
|
+
if (rowNode.sibling) {
|
|
137
|
+
rowNode.sibling.setAggData(aggResult);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}, {
|
|
141
|
+
key: "aggregateRowNodeUsingValuesAndPivot",
|
|
142
|
+
value: function aggregateRowNodeUsingValuesAndPivot(rowNode) {
|
|
143
|
+
var _this2 = this;
|
|
144
|
+
var result = {};
|
|
145
|
+
var pivotColumnDefs = this.pivotStage.getPivotColumnDefs();
|
|
146
|
+
// Step 1: process value columns
|
|
147
|
+
pivotColumnDefs.filter(function (v) {
|
|
148
|
+
return !_.exists(v.pivotTotalColumnIds);
|
|
149
|
+
}) // only process pivot value columns
|
|
150
|
+
.forEach(function (valueColDef) {
|
|
151
|
+
var keys = valueColDef.pivotKeys || [];
|
|
152
|
+
var values;
|
|
153
|
+
var valueColumn = valueColDef.pivotValueColumn;
|
|
154
|
+
var colId = valueColDef.colId;
|
|
155
|
+
if (rowNode.leafGroup) {
|
|
156
|
+
// lowest level group, get the values from the mapped set
|
|
157
|
+
values = _this2.getValuesFromMappedSet(rowNode.childrenMapped, keys, valueColumn);
|
|
158
|
+
} else {
|
|
159
|
+
// value columns and pivot columns, non-leaf group
|
|
160
|
+
values = _this2.getValuesPivotNonLeaf(rowNode, colId);
|
|
161
|
+
}
|
|
162
|
+
result[colId] = _this2.aggregateValues(values, valueColumn.getAggFunc(), valueColumn, rowNode);
|
|
163
|
+
});
|
|
164
|
+
// Step 2: process total columns
|
|
165
|
+
pivotColumnDefs.filter(function (v) {
|
|
166
|
+
return _.exists(v.pivotTotalColumnIds);
|
|
167
|
+
}) // only process pivot total columns
|
|
168
|
+
.forEach(function (totalColDef) {
|
|
169
|
+
var aggResults = [];
|
|
170
|
+
var pivotValueColumn = totalColDef.pivotValueColumn,
|
|
171
|
+
pivotTotalColumnIds = totalColDef.pivotTotalColumnIds,
|
|
172
|
+
colId = totalColDef.colId;
|
|
173
|
+
//retrieve results for colIds associated with this pivot total column
|
|
174
|
+
if (!pivotTotalColumnIds || !pivotTotalColumnIds.length) {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
pivotTotalColumnIds.forEach(function (currentColId) {
|
|
178
|
+
aggResults.push(result[currentColId]);
|
|
179
|
+
});
|
|
180
|
+
result[colId] = _this2.aggregateValues(aggResults, pivotValueColumn.getAggFunc(), pivotValueColumn, rowNode);
|
|
181
|
+
});
|
|
182
|
+
return result;
|
|
183
|
+
}
|
|
184
|
+
}, {
|
|
185
|
+
key: "aggregateRowNodeUsingValuesOnly",
|
|
186
|
+
value: function aggregateRowNodeUsingValuesOnly(rowNode, aggDetails) {
|
|
187
|
+
var _this3 = this;
|
|
188
|
+
var result = {};
|
|
189
|
+
var changedValueColumns = aggDetails.changedPath.isActive() ? aggDetails.changedPath.getValueColumnsForNode(rowNode, aggDetails.valueColumns) : aggDetails.valueColumns;
|
|
190
|
+
var notChangedValueColumns = aggDetails.changedPath.isActive() ? aggDetails.changedPath.getNotValueColumnsForNode(rowNode, aggDetails.valueColumns) : null;
|
|
191
|
+
var values2d = this.getValuesNormal(rowNode, changedValueColumns);
|
|
192
|
+
var oldValues = rowNode.aggData;
|
|
193
|
+
changedValueColumns.forEach(function (valueColumn, index) {
|
|
194
|
+
result[valueColumn.getId()] = _this3.aggregateValues(values2d[index], valueColumn.getAggFunc(), valueColumn, rowNode);
|
|
195
|
+
});
|
|
196
|
+
if (notChangedValueColumns && oldValues) {
|
|
197
|
+
notChangedValueColumns.forEach(function (valueColumn) {
|
|
198
|
+
result[valueColumn.getId()] = oldValues[valueColumn.getId()];
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
return result;
|
|
202
|
+
}
|
|
203
|
+
}, {
|
|
204
|
+
key: "getValuesPivotNonLeaf",
|
|
205
|
+
value: function getValuesPivotNonLeaf(rowNode, colId) {
|
|
206
|
+
var values = [];
|
|
207
|
+
rowNode.childrenAfterFilter.forEach(function (node) {
|
|
208
|
+
var value = node.aggData[colId];
|
|
209
|
+
values.push(value);
|
|
210
|
+
});
|
|
211
|
+
return values;
|
|
212
|
+
}
|
|
213
|
+
}, {
|
|
214
|
+
key: "getValuesFromMappedSet",
|
|
215
|
+
value: function getValuesFromMappedSet(mappedSet, keys, valueColumn) {
|
|
216
|
+
var _this4 = this;
|
|
217
|
+
var mapPointer = mappedSet;
|
|
218
|
+
keys.forEach(function (key) {
|
|
219
|
+
return mapPointer = mapPointer ? mapPointer[key] : null;
|
|
220
|
+
});
|
|
221
|
+
if (!mapPointer) {
|
|
222
|
+
return [];
|
|
223
|
+
}
|
|
224
|
+
var values = [];
|
|
225
|
+
mapPointer.forEach(function (rowNode) {
|
|
226
|
+
var value = _this4.valueService.getValue(valueColumn, rowNode);
|
|
227
|
+
values.push(value);
|
|
228
|
+
});
|
|
229
|
+
return values;
|
|
230
|
+
}
|
|
231
|
+
}, {
|
|
232
|
+
key: "getValuesNormal",
|
|
233
|
+
value: function getValuesNormal(rowNode, valueColumns) {
|
|
234
|
+
// create 2d array, of all values for all valueColumns
|
|
235
|
+
var values = [];
|
|
236
|
+
valueColumns.forEach(function () {
|
|
237
|
+
return values.push([]);
|
|
238
|
+
});
|
|
239
|
+
var valueColumnCount = valueColumns.length;
|
|
240
|
+
var nodeList = this.filteredOnly ? rowNode.childrenAfterFilter : rowNode.childrenAfterGroup;
|
|
241
|
+
var rowCount = nodeList.length;
|
|
242
|
+
for (var i = 0; i < rowCount; i++) {
|
|
243
|
+
var childNode = nodeList[i];
|
|
244
|
+
for (var j = 0; j < valueColumnCount; j++) {
|
|
245
|
+
var valueColumn = valueColumns[j];
|
|
246
|
+
// if the row is a group, then it will only have an agg result value,
|
|
247
|
+
// which means valueGetter is never used.
|
|
248
|
+
var value = this.valueService.getValue(valueColumn, childNode);
|
|
249
|
+
values[j].push(value);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
return values;
|
|
253
|
+
}
|
|
254
|
+
}, {
|
|
255
|
+
key: "aggregateValues",
|
|
256
|
+
value: function aggregateValues(values, aggFuncOrString, column, rowNode) {
|
|
257
|
+
var aggFunc = typeof aggFuncOrString === 'string' ? this.aggFuncService.getAggFunc(aggFuncOrString) : aggFuncOrString;
|
|
258
|
+
if (typeof aggFunc !== 'function') {
|
|
259
|
+
console.error("AG Grid: unrecognised aggregation function ".concat(aggFuncOrString));
|
|
260
|
+
return null;
|
|
261
|
+
}
|
|
262
|
+
var aggFuncAny = aggFunc;
|
|
263
|
+
var params = {
|
|
264
|
+
values: values,
|
|
265
|
+
column: column,
|
|
266
|
+
colDef: column ? column.getColDef() : undefined,
|
|
267
|
+
rowNode: rowNode,
|
|
268
|
+
data: rowNode ? rowNode.data : undefined,
|
|
269
|
+
api: this.gridApi,
|
|
270
|
+
columnApi: this.columnApi,
|
|
271
|
+
context: this.gridOptionsService.context
|
|
272
|
+
}; // the "as any" is needed to allow the deprecation warning messages
|
|
273
|
+
return aggFuncAny(params);
|
|
274
|
+
}
|
|
275
|
+
}]);
|
|
276
|
+
return AggregationStage;
|
|
277
|
+
}(BeanStub);
|
|
278
|
+
__decorate([Autowired('columnModel')], AggregationStage.prototype, "columnModel", void 0);
|
|
279
|
+
__decorate([Autowired('valueService')], AggregationStage.prototype, "valueService", void 0);
|
|
280
|
+
__decorate([Autowired('pivotStage')], AggregationStage.prototype, "pivotStage", void 0);
|
|
281
|
+
__decorate([Autowired('aggFuncService')], AggregationStage.prototype, "aggFuncService", void 0);
|
|
282
|
+
__decorate([Autowired('gridApi')], AggregationStage.prototype, "gridApi", void 0);
|
|
283
|
+
__decorate([Autowired('columnApi')], AggregationStage.prototype, "columnApi", void 0);
|
|
284
|
+
AggregationStage = __decorate([Bean('aggregationStage')], AggregationStage);
|
|
285
|
+
export { AggregationStage };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RowNode } from "@ag-grid-community/core";
|
|
2
|
+
export declare class BatchRemover {
|
|
3
|
+
private allSets;
|
|
4
|
+
private allParents;
|
|
5
|
+
removeFromChildrenAfterGroup(parent: RowNode, child: RowNode): void;
|
|
6
|
+
isRemoveFromAllLeafChildren(parent: RowNode, child: RowNode): boolean;
|
|
7
|
+
preventRemoveFromAllLeafChildren(parent: RowNode, child: RowNode): void;
|
|
8
|
+
removeFromAllLeafChildren(parent: RowNode, child: RowNode): void;
|
|
9
|
+
private getSet;
|
|
10
|
+
getAllParents(): RowNode[];
|
|
11
|
+
flush(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
export var BatchRemover = /*#__PURE__*/function () {
|
|
8
|
+
function BatchRemover() {
|
|
9
|
+
_classCallCheck(this, BatchRemover);
|
|
10
|
+
this.allSets = {};
|
|
11
|
+
this.allParents = [];
|
|
12
|
+
}
|
|
13
|
+
_createClass(BatchRemover, [{
|
|
14
|
+
key: "removeFromChildrenAfterGroup",
|
|
15
|
+
value: function removeFromChildrenAfterGroup(parent, child) {
|
|
16
|
+
var set = this.getSet(parent);
|
|
17
|
+
set.removeFromChildrenAfterGroup[child.id] = true;
|
|
18
|
+
}
|
|
19
|
+
}, {
|
|
20
|
+
key: "isRemoveFromAllLeafChildren",
|
|
21
|
+
value: function isRemoveFromAllLeafChildren(parent, child) {
|
|
22
|
+
var set = this.getSet(parent);
|
|
23
|
+
return !!set.removeFromAllLeafChildren[child.id];
|
|
24
|
+
}
|
|
25
|
+
}, {
|
|
26
|
+
key: "preventRemoveFromAllLeafChildren",
|
|
27
|
+
value: function preventRemoveFromAllLeafChildren(parent, child) {
|
|
28
|
+
var set = this.getSet(parent);
|
|
29
|
+
delete set.removeFromAllLeafChildren[child.id];
|
|
30
|
+
}
|
|
31
|
+
}, {
|
|
32
|
+
key: "removeFromAllLeafChildren",
|
|
33
|
+
value: function removeFromAllLeafChildren(parent, child) {
|
|
34
|
+
var set = this.getSet(parent);
|
|
35
|
+
set.removeFromAllLeafChildren[child.id] = true;
|
|
36
|
+
}
|
|
37
|
+
}, {
|
|
38
|
+
key: "getSet",
|
|
39
|
+
value: function getSet(parent) {
|
|
40
|
+
if (!this.allSets[parent.id]) {
|
|
41
|
+
this.allSets[parent.id] = {
|
|
42
|
+
removeFromAllLeafChildren: {},
|
|
43
|
+
removeFromChildrenAfterGroup: {}
|
|
44
|
+
};
|
|
45
|
+
this.allParents.push(parent);
|
|
46
|
+
}
|
|
47
|
+
return this.allSets[parent.id];
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
key: "getAllParents",
|
|
51
|
+
value: function getAllParents() {
|
|
52
|
+
return this.allParents;
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
key: "flush",
|
|
56
|
+
value: function flush() {
|
|
57
|
+
var _this = this;
|
|
58
|
+
this.allParents.forEach(function (parent) {
|
|
59
|
+
var nodeDetails = _this.allSets[parent.id];
|
|
60
|
+
parent.childrenAfterGroup = parent.childrenAfterGroup.filter(function (child) {
|
|
61
|
+
return !nodeDetails.removeFromChildrenAfterGroup[child.id];
|
|
62
|
+
});
|
|
63
|
+
parent.allLeafChildren = parent.allLeafChildren.filter(function (child) {
|
|
64
|
+
return !nodeDetails.removeFromAllLeafChildren[child.id];
|
|
65
|
+
});
|
|
66
|
+
parent.updateHasChildren();
|
|
67
|
+
if (parent.sibling) {
|
|
68
|
+
parent.sibling.childrenAfterGroup = parent.childrenAfterGroup;
|
|
69
|
+
parent.sibling.allLeafChildren = parent.allLeafChildren;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
this.allSets = {};
|
|
73
|
+
this.allParents.length = 0;
|
|
74
|
+
}
|
|
75
|
+
}]);
|
|
76
|
+
return BatchRemover;
|
|
77
|
+
}();
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Column, ColumnEventType, Component, Context, DragAndDropService, EventService, GridOptionsService, LoggerFactory } from "@ag-grid-community/core";
|
|
2
|
+
export interface BaseDropZonePanelParams {
|
|
3
|
+
dragAndDropIcon: string;
|
|
4
|
+
emptyMessage: string;
|
|
5
|
+
title: string;
|
|
6
|
+
icon: HTMLElement;
|
|
7
|
+
}
|
|
8
|
+
export interface BaseDropZonePanelBeans {
|
|
9
|
+
gridOptionsService: GridOptionsService;
|
|
10
|
+
eventService: EventService;
|
|
11
|
+
context: Context;
|
|
12
|
+
loggerFactory: LoggerFactory;
|
|
13
|
+
dragAndDropService: DragAndDropService;
|
|
14
|
+
}
|
|
15
|
+
export declare type TDropZone = 'rowGroup' | 'pivot' | 'aggregation';
|
|
16
|
+
export declare abstract class BaseDropZonePanel extends Component {
|
|
17
|
+
private horizontal;
|
|
18
|
+
private dropZonePurpose;
|
|
19
|
+
private colModel;
|
|
20
|
+
private static STATE_NOT_DRAGGING;
|
|
21
|
+
private static STATE_NEW_COLUMNS_IN;
|
|
22
|
+
private static STATE_REARRANGE_COLUMNS;
|
|
23
|
+
private state;
|
|
24
|
+
private dropTarget;
|
|
25
|
+
private potentialDndColumns;
|
|
26
|
+
private guiDestroyFunctions;
|
|
27
|
+
private params;
|
|
28
|
+
private beans;
|
|
29
|
+
private childColumnComponents;
|
|
30
|
+
private insertIndex;
|
|
31
|
+
private eColumnDropList;
|
|
32
|
+
private positionableFeature;
|
|
33
|
+
private resizeEnabled;
|
|
34
|
+
protected abstract isColumnDroppable(column: Column): boolean;
|
|
35
|
+
protected abstract updateColumns(columns: Column[]): void;
|
|
36
|
+
protected abstract getExistingColumns(): Column[];
|
|
37
|
+
protected abstract getIconName(): string;
|
|
38
|
+
protected abstract getAriaLabel(): string;
|
|
39
|
+
private readonly focusService;
|
|
40
|
+
constructor(horizontal: boolean, dropZonePurpose: TDropZone);
|
|
41
|
+
isHorizontal(): boolean;
|
|
42
|
+
toggleResizable(resizable: boolean): void;
|
|
43
|
+
setBeans(beans: BaseDropZonePanelBeans): void;
|
|
44
|
+
protected destroy(): void;
|
|
45
|
+
private destroyGui;
|
|
46
|
+
init(params: BaseDropZonePanelParams): void;
|
|
47
|
+
private handleKeyDown;
|
|
48
|
+
private addElementClasses;
|
|
49
|
+
private setupDropTarget;
|
|
50
|
+
private isInterestedIn;
|
|
51
|
+
private checkInsertIndex;
|
|
52
|
+
private getNewInsertIndex;
|
|
53
|
+
private checkDragStartedBySelf;
|
|
54
|
+
private onDragging;
|
|
55
|
+
private onDragEnter;
|
|
56
|
+
setColumnsVisible(columns: Column[] | null | undefined, visible: boolean, source?: ColumnEventType): void;
|
|
57
|
+
protected isPotentialDndColumns(): boolean;
|
|
58
|
+
private isRowGroupPanel;
|
|
59
|
+
private onDragLeave;
|
|
60
|
+
private onDragStop;
|
|
61
|
+
private removeColumns;
|
|
62
|
+
private addColumns;
|
|
63
|
+
private rearrangeColumns;
|
|
64
|
+
refreshGui(): void;
|
|
65
|
+
private getFocusedItem;
|
|
66
|
+
private restoreFocus;
|
|
67
|
+
private getNonGhostColumns;
|
|
68
|
+
private addColumnsToGui;
|
|
69
|
+
private addAriaLabelsToComponents;
|
|
70
|
+
private createColumnComponent;
|
|
71
|
+
private addIconAndTitleToGui;
|
|
72
|
+
private isExistingColumnsEmpty;
|
|
73
|
+
private addEmptyMessageToGui;
|
|
74
|
+
private addArrow;
|
|
75
|
+
}
|