@lemon-fe/components 0.1.153 → 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var _excluded = ["tabs", "children"],
|
|
2
|
-
_excluded2 = ["data", "showSearch", "placeholder", "onSelect", "operation", "header", "footer"];
|
|
2
|
+
_excluded2 = ["data", "showSearch", "placeholder", "onSelect", "filterNode", "operation", "header", "footer", "height"];
|
|
3
3
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
4
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
5
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
@@ -7,23 +7,21 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
7
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
9
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
11
|
-
function _iterableToArrayLimit(
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
function
|
|
14
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
16
14
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
17
15
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
18
16
|
import React, { useMemo, useState } from 'react';
|
|
17
|
+
import { PREFIX_CLS } from "../constants";
|
|
18
|
+
import EmptyImage from "../empty-image";
|
|
19
|
+
import Icons from "../icons";
|
|
20
|
+
import { mapChildren, prefixClassName } from "../utils";
|
|
21
|
+
import TreeNodeTitle from "./tree-node-title";
|
|
19
22
|
import { useDebounce } from '@lemon-fe/hooks';
|
|
20
|
-
import Tree from '
|
|
21
|
-
import
|
|
22
|
-
import { PREFIX_CLS } from '../constants';
|
|
23
|
-
import TreeNodeTitle from './TreeNodeTitle';
|
|
24
|
-
import Icons from '../Icons';
|
|
25
|
-
import { mapChildren } from '../utils';
|
|
26
|
-
import empty from './empty.png';
|
|
23
|
+
import { Input, Tabs, Tree } from 'antd';
|
|
24
|
+
import ResizeObserver from 'rc-resize-observer';
|
|
27
25
|
function SiderTreeTabs(props) {
|
|
28
26
|
var tabs = props.tabs,
|
|
29
27
|
children = props.children,
|
|
@@ -32,7 +30,7 @@ function SiderTreeTabs(props) {
|
|
|
32
30
|
return item.key || item.title;
|
|
33
31
|
};
|
|
34
32
|
var prefixCls = "".concat(PREFIX_CLS, "-tree");
|
|
35
|
-
return /*#__PURE__*/React.createElement(Tabs,
|
|
33
|
+
return /*#__PURE__*/React.createElement(Tabs, _extends({
|
|
36
34
|
className: "".concat(prefixCls, "-tabs")
|
|
37
35
|
}, restProps), mapChildren(children, function (child, index) {
|
|
38
36
|
var tab = tabs[index];
|
|
@@ -42,26 +40,36 @@ function SiderTreeTabs(props) {
|
|
|
42
40
|
}, child);
|
|
43
41
|
}));
|
|
44
42
|
}
|
|
43
|
+
var prefix = prefixClassName('tree');
|
|
45
44
|
export default function SiderTree(props) {
|
|
46
45
|
var _props$data = props.data,
|
|
47
46
|
mData = _props$data === void 0 ? [] : _props$data,
|
|
48
47
|
showSearch = props.showSearch,
|
|
49
48
|
placeholder = props.placeholder,
|
|
50
49
|
_onSelect = props.onSelect,
|
|
50
|
+
filterNode = props.filterNode,
|
|
51
51
|
operation = props.operation,
|
|
52
52
|
header = props.header,
|
|
53
53
|
footer = props.footer,
|
|
54
|
+
heightProp = props.height,
|
|
54
55
|
restProps = _objectWithoutProperties(props, _excluded2);
|
|
55
|
-
var prefixCls = "".concat(PREFIX_CLS, "-tree");
|
|
56
56
|
var _useState = useState(''),
|
|
57
57
|
_useState2 = _slicedToArray(_useState, 2),
|
|
58
58
|
keywords = _useState2[0],
|
|
59
59
|
setKeywords = _useState2[1];
|
|
60
|
+
var _useState3 = useState(heightProp !== 'auto' ? heightProp : 0),
|
|
61
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
62
|
+
height = _useState4[0],
|
|
63
|
+
setHeight = _useState4[1];
|
|
60
64
|
var tree = useMemo(function () {
|
|
61
65
|
var list = mData;
|
|
62
66
|
if (keywords) {
|
|
63
67
|
list = list.filter(function (item) {
|
|
64
|
-
|
|
68
|
+
if (filterNode) {
|
|
69
|
+
return filterNode(keywords, item);
|
|
70
|
+
} else {
|
|
71
|
+
return item.title.toString().toLowerCase().includes(keywords.toLowerCase());
|
|
72
|
+
}
|
|
65
73
|
});
|
|
66
74
|
}
|
|
67
75
|
var map = new Map(list.map(function (item) {
|
|
@@ -73,7 +81,7 @@ export default function SiderTree(props) {
|
|
|
73
81
|
title: /*#__PURE__*/React.createElement(TreeNodeTitle, {
|
|
74
82
|
operation: operation,
|
|
75
83
|
node: item,
|
|
76
|
-
prefixCls:
|
|
84
|
+
prefixCls: prefix()
|
|
77
85
|
})
|
|
78
86
|
}];
|
|
79
87
|
}));
|
|
@@ -109,78 +117,46 @@ export default function SiderTree(props) {
|
|
|
109
117
|
prefix: /*#__PURE__*/React.createElement(Icons.Search, null)
|
|
110
118
|
});
|
|
111
119
|
}
|
|
112
|
-
|
|
113
|
-
className:
|
|
114
|
-
},
|
|
115
|
-
className: "".concat(prefixCls, "-header")
|
|
116
|
-
}, mHeader), /*#__PURE__*/React.createElement("div", {
|
|
117
|
-
className: "".concat(prefixCls, "-body")
|
|
118
|
-
}, tree.length <= 0 ? /*#__PURE__*/React.createElement("div", {
|
|
119
|
-
className: "".concat(prefixCls, "-empty")
|
|
120
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
121
|
-
src: empty
|
|
122
|
-
}), /*#__PURE__*/React.createElement("div", null, "\u6682\u65E0\u6570\u636E")) : /*#__PURE__*/React.createElement(Tree, _objectSpread({
|
|
120
|
+
var bodyContent = tree.length <= 0 ? /*#__PURE__*/React.createElement("div", {
|
|
121
|
+
className: prefix('empty')
|
|
122
|
+
}, /*#__PURE__*/React.createElement(EmptyImage, null), /*#__PURE__*/React.createElement("div", null, "\u6682\u65E0\u6570\u636E")) : /*#__PURE__*/React.createElement(Tree, _extends({
|
|
123
123
|
treeData: tree,
|
|
124
|
-
|
|
125
|
-
itemHeight: 40,
|
|
124
|
+
itemHeight: 28,
|
|
126
125
|
showLine: true,
|
|
127
|
-
|
|
126
|
+
height: height,
|
|
127
|
+
onSelect: function onSelect(_, info) {
|
|
128
128
|
if (_onSelect) {
|
|
129
129
|
_onSelect(info.node.data, info);
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
fill: "#c4c4c4",
|
|
156
|
-
d: "M3 6h7v1H3z"
|
|
157
|
-
})));
|
|
158
|
-
}
|
|
159
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
160
|
-
width: "13",
|
|
161
|
-
height: "13",
|
|
162
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
163
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
164
|
-
fill: "none",
|
|
165
|
-
fillRule: "evenodd"
|
|
166
|
-
}, /*#__PURE__*/React.createElement("rect", {
|
|
167
|
-
stroke: "#c4c4c4",
|
|
168
|
-
fill: "#FFF",
|
|
169
|
-
x: ".5",
|
|
170
|
-
y: ".5",
|
|
171
|
-
width: "12",
|
|
172
|
-
height: "12",
|
|
173
|
-
rx: "2"
|
|
174
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
175
|
-
fill: "#c4c4c4",
|
|
176
|
-
d: "M3 6h7v1H3z"
|
|
177
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
178
|
-
fill: "#c4c4c4",
|
|
179
|
-
d: "M7 3v7H6V3z"
|
|
180
|
-
})));
|
|
132
|
+
blockNode: true,
|
|
133
|
+
switcherIcon: function switcherIcon() {
|
|
134
|
+
return /*#__PURE__*/React.createElement(Icons.Down, {
|
|
135
|
+
style: {
|
|
136
|
+
fontSize: 14,
|
|
137
|
+
color: 'rgba(51, 51, 51, 0.7)',
|
|
138
|
+
verticalAlign: '-0.125em'
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}, restProps));
|
|
143
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
144
|
+
className: prefix('wrapper')
|
|
145
|
+
}, !!mHeader && /*#__PURE__*/React.createElement("div", {
|
|
146
|
+
className: prefix('header')
|
|
147
|
+
}, mHeader), heightProp === 'auto' ? /*#__PURE__*/React.createElement(ResizeObserver, {
|
|
148
|
+
onResize: function onResize(e) {
|
|
149
|
+
return setHeight(e.height);
|
|
150
|
+
}
|
|
151
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
152
|
+
className: prefix('body'),
|
|
153
|
+
style: {
|
|
154
|
+
flex: 1
|
|
181
155
|
}
|
|
182
|
-
},
|
|
183
|
-
className:
|
|
156
|
+
}, bodyContent)) : /*#__PURE__*/React.createElement("div", {
|
|
157
|
+
className: prefix('body')
|
|
158
|
+
}, bodyContent), !!footer && /*#__PURE__*/React.createElement("div", {
|
|
159
|
+
className: prefix('footer')
|
|
184
160
|
}, footer));
|
|
185
161
|
}
|
|
186
162
|
SiderTree.Tabs = SiderTreeTabs;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
@indentWidth: 24px;
|
|
2
|
+
@treeNodeHeight: 28px;
|
|
3
|
+
|
|
4
|
+
.@{prefixCls}-tree {
|
|
5
|
+
&-wrapper {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
height: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&-menu-popover {
|
|
13
|
+
.@{ant-prefix}-popover-arrow {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.@{ant-prefix}-popover-inner {
|
|
18
|
+
border-radius: 10px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.@{ant-prefix}-popover-inner-content {
|
|
22
|
+
min-width: 140px;
|
|
23
|
+
padding: 8px 0;
|
|
24
|
+
|
|
25
|
+
& > div > ul {
|
|
26
|
+
margin: 0;
|
|
27
|
+
padding: 0;
|
|
28
|
+
|
|
29
|
+
& > li {
|
|
30
|
+
padding: 0 16px;
|
|
31
|
+
color: #333;
|
|
32
|
+
line-height: 36px;
|
|
33
|
+
list-style: none;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
transition: background-color 0.2s;
|
|
36
|
+
|
|
37
|
+
&:hover {
|
|
38
|
+
background-color: #eee;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&-tabs {
|
|
46
|
+
.fullTabs();
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&-body {
|
|
50
|
+
min-height: 0;
|
|
51
|
+
overflow: auto;
|
|
52
|
+
.scrollBar();
|
|
53
|
+
|
|
54
|
+
.@{ant-prefix}-tree {
|
|
55
|
+
&-node-content-wrapper {
|
|
56
|
+
min-width: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-title {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex: 1;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: space-between;
|
|
64
|
+
border-radius: 4px;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
transition: background-color 0.2s;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&-title-content {
|
|
72
|
+
display: block;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
text-overflow: ellipsis;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&-title-operators {
|
|
79
|
+
&-item {
|
|
80
|
+
width: 20px;
|
|
81
|
+
height: 20px;
|
|
82
|
+
margin-left: 4px;
|
|
83
|
+
line-height: 1;
|
|
84
|
+
text-align: center;
|
|
85
|
+
border-radius: 4px;
|
|
86
|
+
|
|
87
|
+
& svg {
|
|
88
|
+
vertical-align: middle;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&-active,
|
|
92
|
+
&:hover {
|
|
93
|
+
background: #d7d7d7;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&-header + &-body {
|
|
99
|
+
margin-top: 12px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&-header + .@{ant-prefix}-tabs {
|
|
103
|
+
margin-top: 8px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&-footer {
|
|
107
|
+
margin-top: @padding-md;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&-empty {
|
|
111
|
+
width: 72px;
|
|
112
|
+
margin: 0 auto;
|
|
113
|
+
padding-top: 75px;
|
|
114
|
+
text-align: center;
|
|
115
|
+
|
|
116
|
+
img {
|
|
117
|
+
display: block;
|
|
118
|
+
width: 72px;
|
|
119
|
+
height: 72px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
div {
|
|
123
|
+
margin-top: 8px;
|
|
124
|
+
color: rgba(51, 51, 51, 0.5);
|
|
125
|
+
font-size: 14px;
|
|
126
|
+
line-height: 22px;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.@{prefixCls}-layout-left {
|
|
132
|
+
.@{prefixCls}-tree-wrapper {
|
|
133
|
+
padding: @padding-md;
|
|
134
|
+
|
|
135
|
+
.@{prefixCls}-tree-header {
|
|
136
|
+
margin-right: @padding-md;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.@{prefixCls}-tree-tabs {
|
|
141
|
+
padding: @padding-md;
|
|
142
|
+
|
|
143
|
+
.@{prefixCls}-tree-wrapper .@{prefixCls}-tree-header {
|
|
144
|
+
margin-right: 0;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.@{ant-prefix}-tabs-tabpane > .@{prefixCls}-tree-wrapper {
|
|
149
|
+
padding: 0;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
function
|
|
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 _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
|
+
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); }
|
|
2
5
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
6
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
7
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
6
|
-
function _iterableToArrayLimit(
|
|
8
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
7
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
-
import { Popover } from 'antd';
|
|
9
11
|
import React, { useEffect, useRef, useState } from 'react';
|
|
12
|
+
import { Popover } from 'antd';
|
|
10
13
|
import classNames from 'classnames';
|
|
11
14
|
export default function TreeNodeTitle(props) {
|
|
12
15
|
var _operation$others;
|
|
@@ -30,12 +33,12 @@ export default function TreeNodeTitle(props) {
|
|
|
30
33
|
});
|
|
31
34
|
};
|
|
32
35
|
var title = (_trigger$current = trigger.current) === null || _trigger$current === void 0 ? void 0 : _trigger$current.parentNode;
|
|
33
|
-
(_title = title) === null || _title === void 0
|
|
34
|
-
(_title2 = title) === null || _title2 === void 0
|
|
36
|
+
(_title = title) === null || _title === void 0 || _title.addEventListener('mouseenter', handler);
|
|
37
|
+
(_title2 = title) === null || _title2 === void 0 || _title2.addEventListener('mouseleave', handler);
|
|
35
38
|
return function () {
|
|
36
39
|
var _title3, _title4;
|
|
37
|
-
(_title3 = title) === null || _title3 === void 0
|
|
38
|
-
(_title4 = title) === null || _title4 === void 0
|
|
40
|
+
(_title3 = title) === null || _title3 === void 0 || _title3.removeEventListener('mouseenter', handler);
|
|
41
|
+
(_title4 = title) === null || _title4 === void 0 || _title4.removeEventListener('mouseleave', handler);
|
|
39
42
|
title = null;
|
|
40
43
|
};
|
|
41
44
|
}, []);
|
|
@@ -60,7 +63,7 @@ export default function TreeNodeTitle(props) {
|
|
|
60
63
|
}, others || operation.onAdd ? /*#__PURE__*/React.createElement(Popover, {
|
|
61
64
|
overlayClassName: "".concat(prefixCls, "-menu-popover"),
|
|
62
65
|
placement: "bottomLeft",
|
|
63
|
-
|
|
66
|
+
open: visible,
|
|
64
67
|
trigger: "click",
|
|
65
68
|
content: /*#__PURE__*/React.createElement("div", {
|
|
66
69
|
onClick: function onClick() {
|
|
@@ -71,7 +74,7 @@ export default function TreeNodeTitle(props) {
|
|
|
71
74
|
return operation.onAdd(item);
|
|
72
75
|
}
|
|
73
76
|
}, "\u65B0\u589E")) : null, others),
|
|
74
|
-
|
|
77
|
+
onOpenChange: setVisible
|
|
75
78
|
}, /*#__PURE__*/React.createElement("div", {
|
|
76
79
|
className: classNames("".concat(prefixCls, "-title-operators-item"), _defineProperty({}, "".concat(prefixCls, "-title-operators-item-active"), visible)),
|
|
77
80
|
onClick: function onClick() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { TreeNodeProps } from 'rc-tree';
|
|
2
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import type { DataNode } from 'antd/es/tree';
|
|
3
3
|
|
|
4
|
-
export interface TreeData<T> extends Pick<
|
|
4
|
+
export interface TreeData<T = string | number> extends Pick<DataNode, 'icon'> {
|
|
5
5
|
key: T;
|
|
6
6
|
title: string | number;
|
|
7
7
|
parent?: T;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface Props {
|
|
3
|
+
shape?: 'default' | 'order' | 'text';
|
|
4
|
+
type?: 'default' | 'success' | 'warning' | 'error' | 'disabled' | 'processing';
|
|
5
|
+
children?: string;
|
|
6
|
+
}
|
|
7
|
+
export default function State(props: Props): JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var _excluded = ["shape", "type", "children"];
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { prefixClassName } from "../utils";
|
|
7
|
+
import classNames from 'classnames';
|
|
8
|
+
var prefix = prefixClassName('state');
|
|
9
|
+
export default function State(props) {
|
|
10
|
+
var _props$shape = props.shape,
|
|
11
|
+
shape = _props$shape === void 0 ? 'default' : _props$shape,
|
|
12
|
+
_props$type = props.type,
|
|
13
|
+
type = _props$type === void 0 ? 'default' : _props$type,
|
|
14
|
+
_props$children = props.children,
|
|
15
|
+
children = _props$children === void 0 ? '' : _props$children,
|
|
16
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
17
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
18
|
+
className: classNames(prefix(), prefix("shape-".concat(shape)), prefix("type-".concat(type)))
|
|
19
|
+
}, restProps), /*#__PURE__*/React.createElement("span", null, children));
|
|
20
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
@color-success: #2ca471;
|
|
2
|
+
@color-warning: #e37319;
|
|
3
|
+
@color-error: #d54a42;
|
|
4
|
+
@color-processing: #16c0ff;
|
|
5
|
+
@color-disabled: rgba(51, 51, 51, 0.5);
|
|
6
|
+
|
|
7
|
+
.@{prefixCls}-state {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
height: 22px;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
|
|
13
|
+
&-shape {
|
|
14
|
+
&-default {
|
|
15
|
+
position: relative;
|
|
16
|
+
padding-left: 12px;
|
|
17
|
+
|
|
18
|
+
&::before {
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: 50%;
|
|
21
|
+
left: 0;
|
|
22
|
+
display: block;
|
|
23
|
+
width: 4px;
|
|
24
|
+
height: 4px;
|
|
25
|
+
margin-top: -2px;
|
|
26
|
+
border-radius: 2px;
|
|
27
|
+
content: '';
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&-order {
|
|
32
|
+
position: relative;
|
|
33
|
+
padding: 0 5px;
|
|
34
|
+
|
|
35
|
+
& > span {
|
|
36
|
+
z-index: 2;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&::before {
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 5px;
|
|
42
|
+
right: 0;
|
|
43
|
+
left: 0;
|
|
44
|
+
z-index: 1;
|
|
45
|
+
display: block;
|
|
46
|
+
height: 13px;
|
|
47
|
+
content: '';
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.defaultShapeColor(@color) {
|
|
53
|
+
color: @color;
|
|
54
|
+
|
|
55
|
+
&::before {
|
|
56
|
+
background-color: @color;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.orderShapeColor(@color) {
|
|
61
|
+
color: @color;
|
|
62
|
+
|
|
63
|
+
&::before {
|
|
64
|
+
background-color: fade(@color, 5);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&-type-default&-shape-default {
|
|
69
|
+
&::before {
|
|
70
|
+
background-color: #c0c0c0;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&-type-success&-shape-default {
|
|
75
|
+
.defaultShapeColor(@color-success);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&-type-processing&-shape-default {
|
|
79
|
+
.defaultShapeColor(@color-processing);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&-type-warning&-shape-default {
|
|
83
|
+
.defaultShapeColor(@color-warning);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&-type-error&-shape-default {
|
|
87
|
+
.defaultShapeColor(@color-error);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&-type-disabled&-shape-default {
|
|
91
|
+
.defaultShapeColor(@color-disabled);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&-type-default&-shape-order {
|
|
95
|
+
&::before {
|
|
96
|
+
background-color: #fafafa;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&-type-success&-shape-order {
|
|
101
|
+
.orderShapeColor(@color-success);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&-type-warning&-shape-order {
|
|
105
|
+
.orderShapeColor(@color-warning);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&-type-error&-shape-order {
|
|
109
|
+
.orderShapeColor(@color-error);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&-type-disabled&-shape-order {
|
|
113
|
+
.orderShapeColor(@color-disabled);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&-type-success&-shape-text {
|
|
117
|
+
color: @color-success;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&-type-warning&-shape-text {
|
|
121
|
+
color: @color-warning;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&-type-error&-shape-text {
|
|
125
|
+
color: @color-error;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&-type-disabled&-shape-text {
|
|
129
|
+
color: @color-disabled;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@import '~antd/dist/antd.variable.less';
|
|
2
|
+
|
|
3
|
+
@import './utils.less';
|
|
4
|
+
@import './overrides.less';
|
|
5
|
+
@import './theme.less';
|
|
6
|
+
|
|
7
|
+
@import '../base-table/index.less';
|
|
8
|
+
@import '../editable-table/index.less';
|
|
9
|
+
@import '../actions/index.less';
|
|
10
|
+
@import '../layout/index.less';
|
|
11
|
+
@import '../section/index.less';
|
|
12
|
+
@import '../filter/index.less';
|
|
13
|
+
@import '../duration-picker/index.less';
|
|
14
|
+
@import '../color-picker/index.less';
|
|
15
|
+
@import '../popup/index.less';
|
|
16
|
+
@import '../sider-tree/index.less';
|
|
17
|
+
@import '../form-layout/index.less';
|
|
18
|
+
@import '../page-loading/index.less';
|
|
19
|
+
@import '../tab-bar/index.less';
|
|
20
|
+
@import '../symbol-icon/index.less';
|
|
21
|
+
@import '../dropdown/index.less';
|
|
22
|
+
@import '../select-view/index.less';
|
|
23
|
+
@import '../data-grid/index.less';
|
|
24
|
+
@import '../state/index.less';
|
|
25
|
+
@import '../grey-panel/index.less';
|
|
26
|
+
@import '../input-number/index.less';
|
|
27
|
+
@import '..//input-compact/index.less';
|
|
28
|
+
@import '../select-panel/index.less';
|