@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,615 @@
|
|
|
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 _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
|
+
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; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
9
|
+
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); }
|
|
10
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
11
|
+
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."); }
|
|
12
|
+
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; } }
|
|
13
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
15
|
+
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."); }
|
|
16
|
+
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); }
|
|
17
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
18
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
19
|
+
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; }
|
|
20
|
+
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); }
|
|
21
|
+
import React, { useEffect, useMemo, useState, useContext } from 'react';
|
|
22
|
+
import { ComponentConfigureContext } from "../component-configure";
|
|
23
|
+
import Dropdown from "../dropdown";
|
|
24
|
+
import DurationPicker from "../duration-picker";
|
|
25
|
+
import FormLayout from "../form-layout";
|
|
26
|
+
import Icons from "../icons";
|
|
27
|
+
import InputNumber from "../input-number";
|
|
28
|
+
import TabBar from "../tab-bar";
|
|
29
|
+
import { prefixClassName } from "../utils";
|
|
30
|
+
import { useDebounce, useRequest } from '@lemon-fe/hooks';
|
|
31
|
+
import { Button, Checkbox, Form, Input, Popover, Space, Modal, message, Select, Empty } from 'antd';
|
|
32
|
+
import classNames from 'classnames';
|
|
33
|
+
import ResizeObserver from 'rc-resize-observer';
|
|
34
|
+
var components = [{
|
|
35
|
+
type: 'input',
|
|
36
|
+
render: function render(item) {
|
|
37
|
+
return /*#__PURE__*/React.createElement(Input, _extends({
|
|
38
|
+
allowClear: true,
|
|
39
|
+
maxLength: 125
|
|
40
|
+
}, item.extraProps));
|
|
41
|
+
}
|
|
42
|
+
}, {
|
|
43
|
+
type: 'input-number',
|
|
44
|
+
render: function render(item) {
|
|
45
|
+
return /*#__PURE__*/React.createElement(InputNumber, _extends({
|
|
46
|
+
style: {
|
|
47
|
+
width: '100%'
|
|
48
|
+
}
|
|
49
|
+
}, item.extraProps));
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
type: 'select',
|
|
53
|
+
render: function render(item) {
|
|
54
|
+
return /*#__PURE__*/React.createElement(Select, item.extraProps);
|
|
55
|
+
}
|
|
56
|
+
}, {
|
|
57
|
+
type: 'range-picker',
|
|
58
|
+
colSpan: 2,
|
|
59
|
+
render: function render(item) {
|
|
60
|
+
return /*#__PURE__*/React.createElement(DurationPicker, _extends({
|
|
61
|
+
types: [{
|
|
62
|
+
label: '日期',
|
|
63
|
+
value: 'date'
|
|
64
|
+
}]
|
|
65
|
+
}, item.extraProps));
|
|
66
|
+
}
|
|
67
|
+
}];
|
|
68
|
+
var getStorageData = function getData(storageKey) {
|
|
69
|
+
var data = localStorage.getItem("filter-storage-".concat(storageKey));
|
|
70
|
+
if (data) {
|
|
71
|
+
return JSON.parse(data);
|
|
72
|
+
}
|
|
73
|
+
return null;
|
|
74
|
+
};
|
|
75
|
+
var setStorageData = function setData(storageKey, data, action) {
|
|
76
|
+
localStorage.setItem("filter-storage-".concat(storageKey), JSON.stringify(data));
|
|
77
|
+
};
|
|
78
|
+
var DEFAULT_TAB_TITLE = '默认';
|
|
79
|
+
function setComponents(items) {
|
|
80
|
+
var compMap = new Map(components.map(function (item) {
|
|
81
|
+
return [item.type, item];
|
|
82
|
+
}));
|
|
83
|
+
items.forEach(function (item) {
|
|
84
|
+
compMap.set(item.type, item);
|
|
85
|
+
});
|
|
86
|
+
components = _toConsumableArray(compMap.values());
|
|
87
|
+
}
|
|
88
|
+
function setStorage(getData, setData) {
|
|
89
|
+
getStorageData = getData;
|
|
90
|
+
setStorageData = setData;
|
|
91
|
+
}
|
|
92
|
+
var defaultData = [];
|
|
93
|
+
function Filter(props) {
|
|
94
|
+
var _props$data = props.data,
|
|
95
|
+
data = _props$data === void 0 ? defaultData : _props$data,
|
|
96
|
+
defaultValueProp = props.defaultValue,
|
|
97
|
+
onChange = props.onChange,
|
|
98
|
+
value = props.value,
|
|
99
|
+
defaultActiveKeys = props.defaultActiveKeys,
|
|
100
|
+
storageKey = props.storageKey,
|
|
101
|
+
onValuesChange = props.onValuesChange,
|
|
102
|
+
style = props.style,
|
|
103
|
+
simple = props.simple,
|
|
104
|
+
_props$defaultCollaps = props.defaultCollapsed,
|
|
105
|
+
defaultCollapsed = _props$defaultCollaps === void 0 ? true : _props$defaultCollaps,
|
|
106
|
+
autoPlaceholder = props.autoPlaceholder,
|
|
107
|
+
_props$preserveFields = props.preserveFields,
|
|
108
|
+
preserveFields = _props$preserveFields === void 0 ? true : _props$preserveFields,
|
|
109
|
+
legacyReset = props.legacyReset,
|
|
110
|
+
componentOptions = props.componentOptions;
|
|
111
|
+
var prefix = prefixClassName('filter');
|
|
112
|
+
var emptyValue = useMemo(function () {
|
|
113
|
+
return Object.fromEntries(data.map(function (item) {
|
|
114
|
+
return [item.key, undefined];
|
|
115
|
+
}));
|
|
116
|
+
}, [data]);
|
|
117
|
+
var defaultValue = useMemo(function () {
|
|
118
|
+
return defaultValueProp || value;
|
|
119
|
+
}, []);
|
|
120
|
+
var defaultKeys = useMemo(function () {
|
|
121
|
+
if (defaultActiveKeys) {
|
|
122
|
+
return new Set(defaultActiveKeys);
|
|
123
|
+
}
|
|
124
|
+
return null;
|
|
125
|
+
}, []);
|
|
126
|
+
var compMap = useMemo(function () {
|
|
127
|
+
var result = new Map(components.map(function (item) {
|
|
128
|
+
return [item.type, item];
|
|
129
|
+
}));
|
|
130
|
+
if (componentOptions) {
|
|
131
|
+
componentOptions.forEach(function (item) {
|
|
132
|
+
result.set(item.type, item);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
return result;
|
|
136
|
+
}, [componentOptions]);
|
|
137
|
+
var _useState = useState(defaultKeys),
|
|
138
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
139
|
+
activeKeys = _useState2[0],
|
|
140
|
+
setActiveKeys = _useState2[1];
|
|
141
|
+
var _useState3 = useState(''),
|
|
142
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
143
|
+
keywords = _useState4[0],
|
|
144
|
+
setKeywords = _useState4[1];
|
|
145
|
+
var _useState5 = useState([{
|
|
146
|
+
title: DEFAULT_TAB_TITLE,
|
|
147
|
+
value: defaultValue || value
|
|
148
|
+
}]),
|
|
149
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
150
|
+
tabs = _useState6[0],
|
|
151
|
+
setTabs = _useState6[1];
|
|
152
|
+
var _useState7 = useState(0),
|
|
153
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
154
|
+
active = _useState8[0],
|
|
155
|
+
setActive = _useState8[1];
|
|
156
|
+
var _useState9 = useState(false),
|
|
157
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
158
|
+
showModal = _useState10[0],
|
|
159
|
+
setShowModal = _useState10[1];
|
|
160
|
+
var _Form$useForm = Form.useForm(),
|
|
161
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
162
|
+
modalForm = _Form$useForm2[0];
|
|
163
|
+
var _Form$useForm3 = Form.useForm(),
|
|
164
|
+
_Form$useForm4 = _slicedToArray(_Form$useForm3, 1),
|
|
165
|
+
form = _Form$useForm4[0];
|
|
166
|
+
var _useState11 = useState(0),
|
|
167
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
168
|
+
width = _useState12[0],
|
|
169
|
+
setWidth = _useState12[1];
|
|
170
|
+
var _useState13 = useState(defaultCollapsed),
|
|
171
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
172
|
+
collapsed = _useState14[0],
|
|
173
|
+
setCollapsed = _useState14[1];
|
|
174
|
+
useRequest(function () {
|
|
175
|
+
if (!storageKey) {
|
|
176
|
+
return null;
|
|
177
|
+
}
|
|
178
|
+
return getStorageData(storageKey);
|
|
179
|
+
}, {
|
|
180
|
+
manual: false,
|
|
181
|
+
onSuccess: function onSuccess(res) {
|
|
182
|
+
if (res !== null) {
|
|
183
|
+
setTabs(function (prev) {
|
|
184
|
+
return [prev[0]].concat(_toConsumableArray(res));
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
useEffect(function () {
|
|
190
|
+
if (value) {
|
|
191
|
+
form.setFieldsValue(value);
|
|
192
|
+
}
|
|
193
|
+
}, [value]);
|
|
194
|
+
var handleChangeKeywords = useDebounce(setKeywords, 300);
|
|
195
|
+
var toggleModal = function toggleModal() {
|
|
196
|
+
setShowModal(function (prev) {
|
|
197
|
+
return !prev;
|
|
198
|
+
});
|
|
199
|
+
};
|
|
200
|
+
var handleValuesChange = function handleValuesChange(changedValues, allValues) {
|
|
201
|
+
onValuesChange === null || onValuesChange === void 0 || onValuesChange(changedValues, allValues, form);
|
|
202
|
+
};
|
|
203
|
+
var handleSave = function handleSave(_ref) {
|
|
204
|
+
var title = _ref.name;
|
|
205
|
+
var index = tabs.findIndex(function (item) {
|
|
206
|
+
return item.title === title;
|
|
207
|
+
});
|
|
208
|
+
var next = _toConsumableArray(tabs);
|
|
209
|
+
var tab = {
|
|
210
|
+
title: title,
|
|
211
|
+
value: form.getFieldsValue()
|
|
212
|
+
};
|
|
213
|
+
if (index >= 0) {
|
|
214
|
+
next[index] = _objectSpread(_objectSpread({}, next[index]), tab);
|
|
215
|
+
} else {
|
|
216
|
+
index = next.length;
|
|
217
|
+
next.push(tab);
|
|
218
|
+
}
|
|
219
|
+
if (!!storageKey) {
|
|
220
|
+
setStorageData(storageKey, next.slice(1), {
|
|
221
|
+
type: 'set',
|
|
222
|
+
target: next[index]
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
setTabs(next);
|
|
226
|
+
setActive(index);
|
|
227
|
+
setShowModal(false);
|
|
228
|
+
};
|
|
229
|
+
var handleOk = /*#__PURE__*/function () {
|
|
230
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
231
|
+
var values;
|
|
232
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
233
|
+
while (1) switch (_context.prev = _context.next) {
|
|
234
|
+
case 0:
|
|
235
|
+
_context.prev = 0;
|
|
236
|
+
_context.next = 3;
|
|
237
|
+
return modalForm.validateFields();
|
|
238
|
+
case 3:
|
|
239
|
+
values = _context.sent;
|
|
240
|
+
handleSave(values);
|
|
241
|
+
_context.next = 9;
|
|
242
|
+
break;
|
|
243
|
+
case 7:
|
|
244
|
+
_context.prev = 7;
|
|
245
|
+
_context.t0 = _context["catch"](0);
|
|
246
|
+
case 9:
|
|
247
|
+
case "end":
|
|
248
|
+
return _context.stop();
|
|
249
|
+
}
|
|
250
|
+
}, _callee, null, [[0, 7]]);
|
|
251
|
+
}));
|
|
252
|
+
return function handleOk() {
|
|
253
|
+
return _ref2.apply(this, arguments);
|
|
254
|
+
};
|
|
255
|
+
}();
|
|
256
|
+
var handleAddTab = function handleAddTab() {
|
|
257
|
+
if (tabs.length > 6) {
|
|
258
|
+
message.warning('查询方案总数不可超过6个');
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
modalForm.setFieldsValue({
|
|
262
|
+
name: active === 0 ? '' : tabs[active].title
|
|
263
|
+
});
|
|
264
|
+
toggleModal();
|
|
265
|
+
};
|
|
266
|
+
var handleDelete = function handleDelete() {
|
|
267
|
+
if (active === 0) {
|
|
268
|
+
message.warning('不允许删除默认');
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
var tab = tabs[active];
|
|
272
|
+
Modal.confirm({
|
|
273
|
+
title: '提示',
|
|
274
|
+
content: "\u786E\u8BA4\u5220\u9664".concat(tab.title, "\uFF1F"),
|
|
275
|
+
maskClosable: true,
|
|
276
|
+
width: 300,
|
|
277
|
+
onOk: function onOk() {
|
|
278
|
+
var index = active - 1;
|
|
279
|
+
var next = _toConsumableArray(tabs);
|
|
280
|
+
form.setFieldsValue(next[index].value);
|
|
281
|
+
next.splice(active, 1);
|
|
282
|
+
if (!!storageKey) {
|
|
283
|
+
setStorageData(storageKey, next.slice(1), {
|
|
284
|
+
type: 'delete',
|
|
285
|
+
target: tab
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
setTabs(next);
|
|
289
|
+
setActive(index);
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
};
|
|
293
|
+
var handleFinish = function handleFinish(val, type) {
|
|
294
|
+
if (onChange) {
|
|
295
|
+
onChange(preserveFields ? _objectSpread(_objectSpread({}, value), val) : val, type);
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
var handleReset = function handleReset() {
|
|
299
|
+
if (legacyReset) {
|
|
300
|
+
form.resetFields();
|
|
301
|
+
} else {
|
|
302
|
+
form.setFieldsValue(_objectSpread(_objectSpread({}, emptyValue), defaultValue));
|
|
303
|
+
}
|
|
304
|
+
handleFinish(form.getFieldsValue(), 'reset');
|
|
305
|
+
};
|
|
306
|
+
var handleTabChange = function handleTabChange(index) {
|
|
307
|
+
if (index !== active) {
|
|
308
|
+
setActive(index);
|
|
309
|
+
var result = _objectSpread(_objectSpread({}, emptyValue), tabs[index].value);
|
|
310
|
+
form.setFieldsValue(result);
|
|
311
|
+
handleFinish(form.getFieldsValue(), 'reset');
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
var handleActiveKey = function handleActiveKey(key, flag) {
|
|
315
|
+
setActiveKeys(function (prev) {
|
|
316
|
+
var next = new Set(prev === null ? data.map(function (item) {
|
|
317
|
+
return item.key;
|
|
318
|
+
}) : prev);
|
|
319
|
+
if (flag) {
|
|
320
|
+
next.add(key);
|
|
321
|
+
} else {
|
|
322
|
+
next.delete(key);
|
|
323
|
+
}
|
|
324
|
+
return next;
|
|
325
|
+
});
|
|
326
|
+
};
|
|
327
|
+
var isFieldHidden = function isFieldHidden(field) {
|
|
328
|
+
if (field.hidden || activeKeys !== null && !activeKeys.has(field.key)) {
|
|
329
|
+
return true;
|
|
330
|
+
}
|
|
331
|
+
return false;
|
|
332
|
+
};
|
|
333
|
+
var items = useMemo(function () {
|
|
334
|
+
if (keywords) {
|
|
335
|
+
return data.filter(function (item) {
|
|
336
|
+
return item.label ? item.label.includes(keywords) : true;
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
return data;
|
|
340
|
+
}, [keywords, data]);
|
|
341
|
+
var _useMemo = useMemo(function () {
|
|
342
|
+
var getSet = function getSet(fields) {
|
|
343
|
+
return new Set(fields.map(function (item) {
|
|
344
|
+
return item.key;
|
|
345
|
+
}));
|
|
346
|
+
};
|
|
347
|
+
var result = data.filter(function (item) {
|
|
348
|
+
return !isFieldHidden(item);
|
|
349
|
+
});
|
|
350
|
+
if (!width) {
|
|
351
|
+
return [getSet(result), false];
|
|
352
|
+
}
|
|
353
|
+
var getWidth = function getWidth(span) {
|
|
354
|
+
var colMinWidth = 293.5 * span;
|
|
355
|
+
var colMaxWidth = 337.6 * span;
|
|
356
|
+
var wid = width * span / 4;
|
|
357
|
+
if (wid < colMinWidth) {
|
|
358
|
+
wid = colMinWidth;
|
|
359
|
+
} else if (wid > colMaxWidth) {
|
|
360
|
+
wid = colMaxWidth;
|
|
361
|
+
}
|
|
362
|
+
return wid;
|
|
363
|
+
};
|
|
364
|
+
var getColWidth = function getColWidth(item) {
|
|
365
|
+
if (item.renderFormItem) {
|
|
366
|
+
return getWidth(item.colSpan || 1);
|
|
367
|
+
}
|
|
368
|
+
if (!item.type) {
|
|
369
|
+
return 0;
|
|
370
|
+
}
|
|
371
|
+
var target = compMap.get(item.type);
|
|
372
|
+
if (!target) {
|
|
373
|
+
return 0;
|
|
374
|
+
}
|
|
375
|
+
return getWidth(item.colSpan || target.colSpan || 1);
|
|
376
|
+
};
|
|
377
|
+
var btnsVisible = false;
|
|
378
|
+
var end = result.length;
|
|
379
|
+
var space = width;
|
|
380
|
+
var row = 0;
|
|
381
|
+
var btnWidth = getWidth(1);
|
|
382
|
+
for (var i = 0; i < result.length; i++) {
|
|
383
|
+
var item = result[i];
|
|
384
|
+
var itemWidth = getColWidth(item);
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* 0.1为容许误差
|
|
388
|
+
*/
|
|
389
|
+
if (space < itemWidth - 0.1) {
|
|
390
|
+
row += 1;
|
|
391
|
+
if (space < width) {
|
|
392
|
+
if (itemWidth > width) {
|
|
393
|
+
row += 1;
|
|
394
|
+
space = width;
|
|
395
|
+
} else {
|
|
396
|
+
space = width - itemWidth;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
} else {
|
|
400
|
+
space -= itemWidth;
|
|
401
|
+
}
|
|
402
|
+
if (btnWidth > space && row === 1 || row === 2) {
|
|
403
|
+
btnsVisible = true;
|
|
404
|
+
end = i;
|
|
405
|
+
break;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
if (!collapsed) {
|
|
409
|
+
return [getSet(result), btnsVisible];
|
|
410
|
+
}
|
|
411
|
+
return [getSet(result.slice(0, end)), btnsVisible];
|
|
412
|
+
}, [data, width, collapsed, activeKeys, compMap]),
|
|
413
|
+
_useMemo2 = _slicedToArray(_useMemo, 2),
|
|
414
|
+
cols = _useMemo2[0],
|
|
415
|
+
showCollapse = _useMemo2[1];
|
|
416
|
+
return /*#__PURE__*/React.createElement(ResizeObserver, {
|
|
417
|
+
onResize: function onResize(size) {
|
|
418
|
+
if (size.width) {
|
|
419
|
+
setWidth(size.width + 16);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
423
|
+
className: classNames(prefix(), _defineProperty({}, prefix('simple'), simple)),
|
|
424
|
+
style: style
|
|
425
|
+
}, /*#__PURE__*/React.createElement(Modal, {
|
|
426
|
+
destroyOnClose: true,
|
|
427
|
+
open: showModal,
|
|
428
|
+
onCancel: toggleModal,
|
|
429
|
+
onOk: handleOk,
|
|
430
|
+
title: "\u4FDD\u5B58\u65B9\u6848",
|
|
431
|
+
width: 300
|
|
432
|
+
}, /*#__PURE__*/React.createElement(Form, {
|
|
433
|
+
form: modalForm,
|
|
434
|
+
onFinish: handleSave,
|
|
435
|
+
initialValues: {
|
|
436
|
+
name: tabs[active].title
|
|
437
|
+
}
|
|
438
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
439
|
+
label: "\u65B9\u6848\u540D\u79F0",
|
|
440
|
+
name: "name",
|
|
441
|
+
rules: [{
|
|
442
|
+
required: true
|
|
443
|
+
}]
|
|
444
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
445
|
+
maxLength: 8,
|
|
446
|
+
autoFocus: true
|
|
447
|
+
})))), /*#__PURE__*/React.createElement(Form, {
|
|
448
|
+
initialValues: defaultValue,
|
|
449
|
+
onFinish: function onFinish(val) {
|
|
450
|
+
return handleFinish(val, 'submit');
|
|
451
|
+
},
|
|
452
|
+
form: form,
|
|
453
|
+
onValuesChange: handleValuesChange
|
|
454
|
+
}, !simple && /*#__PURE__*/React.createElement(TabBar, {
|
|
455
|
+
tabs: tabs,
|
|
456
|
+
activeKey: tabs[active].title,
|
|
457
|
+
onTabClick: function onTabClick(_, index) {
|
|
458
|
+
return handleTabChange(index);
|
|
459
|
+
},
|
|
460
|
+
className: prefix('tab-bar')
|
|
461
|
+
}), /*#__PURE__*/React.createElement(FormLayout, {
|
|
462
|
+
direction: "row",
|
|
463
|
+
style: !width ? {
|
|
464
|
+
maxHeight: 72,
|
|
465
|
+
overflow: 'hidden'
|
|
466
|
+
} : undefined
|
|
467
|
+
}, data.map(function (item) {
|
|
468
|
+
if (!preserveFields && isFieldHidden(item)) {
|
|
469
|
+
return null;
|
|
470
|
+
}
|
|
471
|
+
var className = classNames(prefix('form-item'), {
|
|
472
|
+
hidden: !cols.has(item.key) ? true : false
|
|
473
|
+
});
|
|
474
|
+
if (item.renderFormItem) {
|
|
475
|
+
return /*#__PURE__*/React.createElement(FormLayout.Col, {
|
|
476
|
+
key: item.key,
|
|
477
|
+
className: className,
|
|
478
|
+
span: (item.colSpan || 1) * 6
|
|
479
|
+
}, item.renderFormItem(form));
|
|
480
|
+
}
|
|
481
|
+
if (!item.type) {
|
|
482
|
+
return null;
|
|
483
|
+
}
|
|
484
|
+
var target = compMap.get(item.type);
|
|
485
|
+
if (target === undefined) {
|
|
486
|
+
return null;
|
|
487
|
+
}
|
|
488
|
+
var renderTarget = item;
|
|
489
|
+
if (autoPlaceholder && item.label !== undefined && item.type !== undefined) {
|
|
490
|
+
renderTarget = _objectSpread(_objectSpread({}, item), {}, {
|
|
491
|
+
extraProps: _objectSpread({
|
|
492
|
+
placeholder: "\u8BF7".concat(item.type.includes('select') ? '选择' : '输入').concat(item.label)
|
|
493
|
+
}, item.extraProps)
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
return /*#__PURE__*/React.createElement(FormLayout.Col, {
|
|
497
|
+
key: item.key,
|
|
498
|
+
className: className,
|
|
499
|
+
span: (item.colSpan || target.colSpan || 1) * 6
|
|
500
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
501
|
+
name: item.key,
|
|
502
|
+
label: item.hideLabel ? undefined : item.label,
|
|
503
|
+
initialValue: item.initialValue
|
|
504
|
+
}, target.render(renderTarget)));
|
|
505
|
+
}), /*#__PURE__*/React.createElement(FormLayout.Col, {
|
|
506
|
+
className: prefix('btns')
|
|
507
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
508
|
+
className: prefix('submit')
|
|
509
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
510
|
+
type: "primary",
|
|
511
|
+
htmlType: "submit"
|
|
512
|
+
}, "\u67E5\u8BE2")), /*#__PURE__*/React.createElement(Space, null, simple ? /*#__PURE__*/React.createElement(Button, {
|
|
513
|
+
onClick: handleReset
|
|
514
|
+
}, "\u91CD\u7F6E") : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Dropdown, {
|
|
515
|
+
actions: [{
|
|
516
|
+
text: '重置',
|
|
517
|
+
onClick: handleReset
|
|
518
|
+
}, {
|
|
519
|
+
text: '保存方案',
|
|
520
|
+
onClick: handleAddTab
|
|
521
|
+
}, {
|
|
522
|
+
text: '删除方案',
|
|
523
|
+
onClick: handleDelete
|
|
524
|
+
}]
|
|
525
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
526
|
+
icon: /*#__PURE__*/React.createElement(Icons.More, null)
|
|
527
|
+
})), /*#__PURE__*/React.createElement(Popover, {
|
|
528
|
+
trigger: "click",
|
|
529
|
+
overlayClassName: prefix('popover'),
|
|
530
|
+
destroyTooltipOnHide: true,
|
|
531
|
+
content: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Input, {
|
|
532
|
+
placeholder: "\u641C\u7D22\u9009\u9879",
|
|
533
|
+
allowClear: true,
|
|
534
|
+
className: prefix('items-search'),
|
|
535
|
+
prefix: /*#__PURE__*/React.createElement(Icons.Search, null),
|
|
536
|
+
onChange: function onChange(e) {
|
|
537
|
+
return handleChangeKeywords(e.currentTarget.value);
|
|
538
|
+
}
|
|
539
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
540
|
+
className: prefix('items')
|
|
541
|
+
}, items.length > 0 ? items.map(function (item) {
|
|
542
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
543
|
+
key: item.key,
|
|
544
|
+
className: prefix('item')
|
|
545
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
546
|
+
checked: activeKeys === null || activeKeys.has(item.key),
|
|
547
|
+
onChange: function onChange(e) {
|
|
548
|
+
handleActiveKey(item.key, e.target.checked);
|
|
549
|
+
}
|
|
550
|
+
}, item.label));
|
|
551
|
+
}) : /*#__PURE__*/React.createElement(Empty, {
|
|
552
|
+
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
553
|
+
}))),
|
|
554
|
+
placement: "bottomRight"
|
|
555
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
556
|
+
className: prefix('btn'),
|
|
557
|
+
onClick: function onClick() {
|
|
558
|
+
setKeywords('');
|
|
559
|
+
},
|
|
560
|
+
icon: /*#__PURE__*/React.createElement(Icons.LookUp, null)
|
|
561
|
+
}))), /*#__PURE__*/React.createElement(Button, {
|
|
562
|
+
style: {
|
|
563
|
+
visibility: showCollapse ? 'visible' : 'hidden'
|
|
564
|
+
},
|
|
565
|
+
onClick: function onClick() {
|
|
566
|
+
return setCollapsed(function (prev) {
|
|
567
|
+
return !prev;
|
|
568
|
+
});
|
|
569
|
+
},
|
|
570
|
+
type: "link",
|
|
571
|
+
className: prefix('collapse')
|
|
572
|
+
}, collapsed ? '高级搜索' : '收起搜索', /*#__PURE__*/React.createElement("svg", {
|
|
573
|
+
width: "10",
|
|
574
|
+
height: "10",
|
|
575
|
+
viewBox: "0 0 10 10",
|
|
576
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
577
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
578
|
+
style: collapsed ? {
|
|
579
|
+
transform: 'rotate(180deg)'
|
|
580
|
+
} : undefined
|
|
581
|
+
}, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("path", {
|
|
582
|
+
id: "filter-down",
|
|
583
|
+
d: "M0 0h10v10H0z"
|
|
584
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
585
|
+
transform: "matrix(1 0 0 -1 0 10)",
|
|
586
|
+
fill: "none",
|
|
587
|
+
fillRule: "evenodd"
|
|
588
|
+
}, /*#__PURE__*/React.createElement("mask", {
|
|
589
|
+
id: "filter-down-mask",
|
|
590
|
+
fill: "#fff"
|
|
591
|
+
}, /*#__PURE__*/React.createElement("use", {
|
|
592
|
+
xlinkHref: "#filter-down",
|
|
593
|
+
transform: "rotate(-90 5 5)"
|
|
594
|
+
})), /*#__PURE__*/React.createElement("use", {
|
|
595
|
+
fillOpacity: "0",
|
|
596
|
+
fill: "#C4C4C4",
|
|
597
|
+
transform: "rotate(-90 5 5)",
|
|
598
|
+
xlinkHref: "#filter-down"
|
|
599
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
600
|
+
d: "M2.172 1.757 5 4.586l2.828-2.829M2.172 5.757 5 8.586l2.828-2.829",
|
|
601
|
+
stroke: "currentColor",
|
|
602
|
+
strokeLinecap: "round",
|
|
603
|
+
strokeLinejoin: "round",
|
|
604
|
+
strokeDasharray: "0,0",
|
|
605
|
+
mask: "url(#filter-down-mask)"
|
|
606
|
+
}))))))))));
|
|
607
|
+
}
|
|
608
|
+
function FilterWrapper(props) {
|
|
609
|
+
var contextProps = useContext(ComponentConfigureContext).Filter;
|
|
610
|
+
return /*#__PURE__*/React.createElement(Filter, _extends({}, contextProps, props));
|
|
611
|
+
}
|
|
612
|
+
FilterWrapper.setComponents = setComponents;
|
|
613
|
+
FilterWrapper.setStorage = setStorage;
|
|
614
|
+
FilterWrapper.defaultProps = {};
|
|
615
|
+
export default FilterWrapper;
|
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
&-reset {
|
|
29
|
+
padding: 0 4px;
|
|
30
|
+
}
|
|
31
|
+
|
|
28
32
|
&-collapse {
|
|
29
33
|
padding: 4px 0;
|
|
30
34
|
font-size: 12px;
|
|
@@ -43,7 +47,7 @@
|
|
|
43
47
|
|
|
44
48
|
&-submit {
|
|
45
49
|
box-sizing: border-box;
|
|
46
|
-
width:
|
|
50
|
+
width: 94px;
|
|
47
51
|
padding-right: 8px;
|
|
48
52
|
text-align: right;
|
|
49
53
|
}
|
|
@@ -72,7 +76,3 @@
|
|
|
72
76
|
overflow: hidden;
|
|
73
77
|
}
|
|
74
78
|
}
|
|
75
|
-
|
|
76
|
-
.@{prefixCls}-section-body > .@{prefixCls}-filter:not(.@{prefixCls}-filter-simple):first-child {
|
|
77
|
-
margin-top: -@space-v;
|
|
78
|
-
}
|