amis-ui 2.7.2 → 2.8.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/esm/_virtual/index.js +1 -1
- package/esm/_virtual/react-is.development.js +1 -1
- package/esm/_virtual/react-is.production.min.js +1 -1
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.js +1 -1
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.js +5 -2
- package/esm/components/BaiduMapPicker.js +1 -1
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +23 -13
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +12 -12
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.d.ts +40 -40
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.js +28 -15
- package/esm/components/ConfirmBox.js +9 -6
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +40 -40
- package/esm/components/DatePicker.js +6 -4
- package/esm/components/DateRangePicker.d.ts +40 -40
- package/esm/components/DateRangePicker.js +7 -5
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.js +1 -1
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.js +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/InputTable.js +28 -15
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.d.ts +40 -40
- package/esm/components/LocationPicker.js +1 -1
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +40 -40
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.d.ts +15 -11
- package/esm/components/NumberInput.js +9 -9
- package/esm/components/Pagination.js +1 -1
- package/esm/components/Picker.js +4 -4
- package/esm/components/PickerColumn.js +4 -4
- package/esm/components/PickerContainer.js +1 -1
- package/esm/components/PopOverContainer.d.ts +18 -0
- package/esm/components/PopOverContainer.js +42 -9
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +4 -4
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.js +1 -1
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.d.ts +40 -40
- package/esm/components/ResultBox.js +3 -3
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.d.ts +82 -40
- package/esm/components/SearchBox.js +10 -7
- package/esm/components/Select.d.ts +195 -193
- package/esm/components/Select.js +19 -9
- package/esm/components/Selection.js +3 -3
- package/esm/components/SparkLine.js +4 -4
- package/esm/components/Spinner.js +29 -33
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.js +1 -1
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.d.ts +41 -40
- package/esm/components/Tabs.js +15 -10
- package/esm/components/TabsTransfer.js +1 -1
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.js +1 -1
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +3 -2
- package/esm/components/Tinymce.js +1 -1
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.js +3 -3
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.js +1 -1
- package/esm/components/TransferDropDown.d.ts +44 -40
- package/esm/components/TransferDropDown.js +3 -3
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.d.ts +82 -40
- package/esm/components/Tree.js +45 -28
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.js +1 -1
- package/esm/components/UserTabSelect.js +32 -13
- package/esm/components/WithRemoteConfig.js +1 -1
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.js +4 -4
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.js +1 -1
- package/esm/components/calendar/MonthsView.js +3 -3
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.js +1 -1
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/Formula.js +1 -1
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.js +1 -1
- package/esm/components/condition-builder/GroupOrItem.js +1 -1
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.js +1 -1
- package/esm/components/condition-builder/Value.js +2 -2
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.js +5 -4
- package/esm/components/formula/Editor.js +3 -3
- package/esm/components/formula/FuncList.js +4 -4
- package/esm/components/formula/Picker.js +3 -3
- package/esm/components/formula/VariableList.js +3 -2
- package/esm/components/formula/plugin.js +3 -2
- package/esm/components/icons.js +4 -4
- package/esm/components/json-schema/Array.js +4 -4
- package/esm/components/json-schema/Item.js +1 -1
- package/esm/components/json-schema/Object.js +30 -10
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.js +5 -5
- package/esm/components/menu/SubMenu.js +5 -6
- package/esm/components/menu/index.d.ts +6 -9
- package/esm/components/menu/index.js +59 -43
- package/esm/components/schema-editor/Array.js +3 -3
- package/esm/components/schema-editor/Common.d.ts +10 -0
- package/esm/components/schema-editor/Common.js +16 -6
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.d.ts +2 -1
- package/esm/components/schema-editor/Object.js +10 -6
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.d.ts +46 -41
- package/esm/components/schema-editor/index.js +6 -4
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.js +3 -3
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.js +1 -1
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/index.js +19 -19
- package/esm/components/virtual-list/AutoSizer.js +1 -1
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/hooks/use-set-state.js +3 -3
- package/esm/hooks/use-sub-form.js +1 -1
- package/esm/hooks/use-touch.js +3 -3
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +56 -32
- package/esm/icons/alert-danger.svg.js +1 -1
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +1 -1
- package/esm/icons/alert-warning.svg.js +1 -1
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check.svg.js +1 -1
- package/esm/icons/clock.svg.js +1 -1
- package/esm/icons/close-small.svg.js +1 -1
- package/esm/icons/close.svg.js +1 -1
- package/esm/icons/cloud-upload.svg.js +1 -1
- package/esm/icons/column-filter.svg.js +1 -1
- package/esm/icons/columns.svg.js +1 -1
- package/esm/icons/compress-alt.svg.js +1 -1
- package/esm/icons/copy.svg.js +1 -1
- package/esm/icons/date.svg.js +1 -1
- package/esm/icons/department.svg.js +1 -1
- package/esm/icons/desk-empty.svg.js +1 -1
- package/esm/icons/dot.svg.js +1 -1
- package/esm/icons/down-arrow-bold.svg.js +1 -1
- package/esm/icons/down.svg.js +1 -1
- package/esm/icons/download.svg.js +1 -1
- package/esm/icons/drag-bar.svg.js +1 -1
- package/esm/icons/drag.svg.js +1 -1
- package/esm/icons/edit.svg.js +1 -1
- package/esm/icons/ellipsis-v.svg.js +1 -1
- package/esm/icons/enter.svg.js +1 -1
- package/esm/icons/exchange.svg.js +1 -1
- package/esm/icons/expand-alt.svg.js +1 -1
- package/esm/icons/fail.svg.js +1 -1
- package/esm/icons/file.svg.js +1 -1
- package/esm/icons/filter.svg.js +1 -1
- package/esm/icons/folder.svg.js +1 -1
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +1 -1
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +1 -1
- package/esm/icons/pause.svg.js +1 -1
- package/esm/icons/pencil.svg.js +1 -1
- package/esm/icons/play.svg.js +1 -1
- package/esm/icons/plus-cicle.svg.js +1 -1
- package/esm/icons/plus-fine.svg.js +1 -1
- package/esm/icons/plus.svg.js +1 -1
- package/esm/icons/post.svg.js +1 -1
- package/esm/icons/question-mark.svg.js +1 -1
- package/esm/icons/question.svg.js +1 -1
- package/esm/icons/redo.svg.js +1 -1
- package/esm/icons/refresh.svg.js +1 -1
- package/esm/icons/reload.svg.js +1 -1
- package/esm/icons/remove.svg.js +1 -1
- package/esm/icons/retry.svg.js +1 -1
- package/esm/icons/right-arrow-bold.svg.js +1 -1
- package/esm/icons/right-arrow.svg.js +1 -1
- package/esm/icons/right-double-arrow.svg.js +1 -1
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +1 -1
- package/esm/icons/rotate-right.svg.js +1 -1
- package/esm/icons/scale-origin.svg.js +1 -1
- package/esm/icons/schedule.svg.js +1 -1
- package/esm/icons/search.svg.js +1 -1
- package/esm/icons/setting.svg.js +1 -1
- package/esm/icons/slider-handle-icon.svg.js +1 -1
- package/esm/icons/sort-asc.svg.js +1 -1
- package/esm/icons/sort-default.svg.js +1 -1
- package/esm/icons/sort-desc.svg.js +1 -1
- package/esm/icons/star.svg.js +1 -1
- package/esm/icons/status-close.svg.js +1 -1
- package/esm/icons/steps-finsh.svg.js +1 -1
- package/esm/icons/success.svg.js +1 -1
- package/esm/icons/transparent.svg.js +1 -1
- package/esm/icons/trash.svg.js +1 -1
- package/esm/icons/tree-down.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/upload.svg.js +1 -1
- package/esm/icons/user-remove.svg.js +1 -1
- package/esm/icons/view.svg.js +1 -1
- package/esm/icons/volume.svg.js +1 -1
- package/esm/icons/warning-mark.svg.js +1 -1
- package/esm/icons/warning.svg.js +1 -1
- package/esm/icons/window-restore.svg.js +1 -1
- package/esm/icons/zoom-in.svg.js +1 -1
- package/esm/icons/zoom-out.svg.js +1 -1
- package/esm/index.js +1 -1
- package/esm/locale/de-DE.js +1 -1
- package/esm/locale/en-US.js +1 -1
- package/esm/locale/zh-CN.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +2 -4
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +2 -4
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/esm/node_modules/rc-overflow/es/Item.js +3 -3
- package/esm/node_modules/rc-overflow/es/Overflow.js +3 -3
- package/esm/node_modules/rc-overflow/es/RawItem.js +1 -1
- package/esm/node_modules/rc-overflow/es/hooks/useBatchFrameState.js +1 -1
- package/esm/node_modules/rc-overflow/es/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/Collection.js +4 -5
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -7
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/index.js +38 -37
- package/esm/node_modules/rc-resize-observer/es/index.js +13 -11
- package/esm/node_modules/rc-resize-observer/es/utils/observerUtil.js +6 -12
- package/esm/node_modules/rc-util/es/Children/toArray.js +1 -1
- package/esm/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/esm/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useState.js +1 -1
- package/esm/node_modules/rc-util/es/raf.js +1 -1
- package/esm/node_modules/rc-util/es/ref.js +1 -1
- package/esm/node_modules/rc-util/es/warning.js +1 -1
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/esm/node_modules/rc-util/node_modules/react-is/index.js +1 -1
- package/esm/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/lib/_virtual/index.js +1 -1
- package/lib/_virtual/react-is.development.js +1 -1
- package/lib/_virtual/react-is.production.min.js +1 -1
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.d.ts +10 -10
- package/lib/components/Alert2.js +1 -1
- package/lib/components/AnchorNav.d.ts +10 -10
- package/lib/components/AnchorNav.js +1 -1
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +40 -40
- package/lib/components/AssociatedSelection.js +1 -1
- package/lib/components/Avatar.d.ts +10 -10
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.js +5 -2
- package/lib/components/BaiduMapPicker.js +1 -1
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.d.ts +10 -10
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.d.ts +10 -10
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +22 -12
- package/lib/components/ChainedSelection.d.ts +40 -40
- package/lib/components/ChainedSelection.js +1 -1
- package/lib/components/Checkbox.d.ts +10 -10
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CityArea.js +11 -11
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.d.ts +10 -10
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/Combo.js +27 -14
- package/lib/components/ConfirmBox.d.ts +40 -40
- package/lib/components/ConfirmBox.js +8 -5
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +40 -40
- package/lib/components/DatePicker.js +5 -3
- package/lib/components/DateRangePicker.d.ts +40 -40
- package/lib/components/DateRangePicker.js +6 -4
- package/lib/components/DndContainer.js +1 -1
- package/lib/components/Drawer.d.ts +10 -10
- package/lib/components/Drawer.js +1 -1
- package/lib/components/Editor.d.ts +40 -40
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.d.ts +40 -40
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/InputTable.js +27 -14
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +40 -40
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.d.ts +40 -40
- package/lib/components/LocationPicker.js +1 -1
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Modal.d.ts +40 -40
- package/lib/components/Modal.js +1 -1
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +40 -40
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +15 -11
- package/lib/components/NumberInput.js +8 -8
- package/lib/components/Pagination.js +1 -1
- package/lib/components/Picker.js +3 -3
- package/lib/components/PickerColumn.js +3 -3
- package/lib/components/PickerContainer.js +1 -1
- package/lib/components/PopOverContainer.d.ts +18 -0
- package/lib/components/PopOverContainer.js +41 -8
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +10 -10
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.js +4 -4
- package/lib/components/Radios.d.ts +10 -10
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.js +1 -1
- package/lib/components/Rating.d.ts +10 -10
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +40 -40
- package/lib/components/ResultBox.js +2 -2
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.d.ts +40 -40
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +1 -1
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.d.ts +82 -40
- package/lib/components/SearchBox.js +9 -6
- package/lib/components/Select.d.ts +195 -193
- package/lib/components/Select.js +18 -8
- package/lib/components/Selection.d.ts +40 -40
- package/lib/components/Selection.js +2 -2
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +3 -3
- package/lib/components/Spinner.d.ts +10 -10
- package/lib/components/Spinner.js +29 -33
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +10 -10
- package/lib/components/Switch.js +1 -1
- package/lib/components/TableSelection.d.ts +40 -40
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +41 -40
- package/lib/components/Tabs.js +15 -10
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +1 -1
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +10 -10
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +1 -1
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +3 -2
- package/lib/components/Tinymce.js +1 -1
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.js +2 -2
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +40 -40
- package/lib/components/Transfer.js +1 -1
- package/lib/components/TransferDropDown.d.ts +44 -40
- package/lib/components/TransferDropDown.js +3 -3
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +1 -1
- package/lib/components/Tree.d.ts +82 -40
- package/lib/components/Tree.js +44 -27
- package/lib/components/TreeSelection.d.ts +40 -40
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.d.ts +40 -40
- package/lib/components/UserSelect.js +1 -1
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +31 -12
- package/lib/components/WithRemoteConfig.js +1 -1
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.js +3 -3
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.js +1 -1
- package/lib/components/calendar/MonthsView.js +2 -2
- package/lib/components/calendar/QuartersView.js +1 -1
- package/lib/components/calendar/TimeView.js +1 -1
- package/lib/components/calendar/YearsView.js +1 -1
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.js +1 -1
- package/lib/components/condition-builder/Formula.js +1 -1
- package/lib/components/condition-builder/Func.js +1 -1
- package/lib/components/condition-builder/Group.js +1 -1
- package/lib/components/condition-builder/GroupOrItem.js +1 -1
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.js +1 -1
- package/lib/components/condition-builder/Value.js +2 -2
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.js +4 -3
- package/lib/components/formula/Editor.d.ts +40 -40
- package/lib/components/formula/Editor.js +2 -2
- package/lib/components/formula/FuncList.js +3 -3
- package/lib/components/formula/Picker.d.ts +40 -40
- package/lib/components/formula/Picker.js +2 -2
- package/lib/components/formula/VariableList.js +3 -2
- package/lib/components/formula/plugin.js +3 -2
- package/lib/components/icons.js +3 -3
- package/lib/components/json-schema/Array.js +3 -3
- package/lib/components/json-schema/Item.js +1 -1
- package/lib/components/json-schema/Object.js +29 -9
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.js +5 -5
- package/lib/components/menu/SubMenu.js +4 -5
- package/lib/components/menu/index.d.ts +16 -19
- package/lib/components/menu/index.js +56 -41
- package/lib/components/schema-editor/Array.js +3 -3
- package/lib/components/schema-editor/Common.d.ts +10 -0
- package/lib/components/schema-editor/Common.js +16 -5
- package/lib/components/schema-editor/Item.js +1 -1
- package/lib/components/schema-editor/Object.d.ts +2 -1
- package/lib/components/schema-editor/Object.js +10 -6
- package/lib/components/schema-editor/SchemaVariableList.js +1 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/lib/components/schema-editor/index.d.ts +46 -41
- package/lib/components/schema-editor/index.js +6 -4
- package/lib/components/table/Cell.d.ts +40 -40
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.js +2 -2
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.js +1 -1
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/index.d.ts +40 -40
- package/lib/components/table/index.js +18 -18
- package/lib/components/virtual-list/AutoSizer.js +1 -1
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/hooks/use-set-state.js +2 -2
- package/lib/hooks/use-sub-form.js +1 -1
- package/lib/hooks/use-touch.js +2 -2
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +55 -31
- package/lib/icons/alert-danger.svg.js +1 -1
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +1 -1
- package/lib/icons/alert-warning.svg.js +1 -1
- package/lib/icons/back.svg.js +1 -1
- package/lib/icons/calendar.svg.js +1 -1
- package/lib/icons/caret.svg.js +1 -1
- package/lib/icons/check.svg.js +1 -1
- package/lib/icons/clock.svg.js +1 -1
- package/lib/icons/close-small.svg.js +1 -1
- package/lib/icons/close.svg.js +1 -1
- package/lib/icons/cloud-upload.svg.js +1 -1
- package/lib/icons/column-filter.svg.js +1 -1
- package/lib/icons/columns.svg.js +1 -1
- package/lib/icons/compress-alt.svg.js +1 -1
- package/lib/icons/copy.svg.js +1 -1
- package/lib/icons/date.svg.js +1 -1
- package/lib/icons/department.svg.js +1 -1
- package/lib/icons/desk-empty.svg.js +1 -1
- package/lib/icons/dot.svg.js +1 -1
- package/lib/icons/down-arrow-bold.svg.js +1 -1
- package/lib/icons/down.svg.js +1 -1
- package/lib/icons/download.svg.js +1 -1
- package/lib/icons/drag-bar.svg.js +1 -1
- package/lib/icons/drag.svg.js +1 -1
- package/lib/icons/edit.svg.js +1 -1
- package/lib/icons/ellipsis-v.svg.js +1 -1
- package/lib/icons/enter.svg.js +1 -1
- package/lib/icons/exchange.svg.js +1 -1
- package/lib/icons/expand-alt.svg.js +1 -1
- package/lib/icons/fail.svg.js +1 -1
- package/lib/icons/file.svg.js +1 -1
- package/lib/icons/filter.svg.js +1 -1
- package/lib/icons/folder.svg.js +1 -1
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/image.svg.js +1 -1
- package/lib/icons/info-circle.svg.js +1 -1
- package/lib/icons/info.svg.js +1 -1
- package/lib/icons/input-clear.svg.js +1 -1
- package/lib/icons/invisible.svg.js +1 -1
- package/lib/icons/left-arrow.svg.js +1 -1
- package/lib/icons/loading-outline.svg.js +1 -1
- package/lib/icons/location.svg.js +1 -1
- package/lib/icons/menu.svg.js +1 -1
- package/lib/icons/minus.svg.js +1 -1
- package/lib/icons/move.svg.js +1 -1
- package/lib/icons/mute.svg.js +1 -1
- package/lib/icons/new-edit.svg.js +1 -1
- package/lib/icons/pause.svg.js +1 -1
- package/lib/icons/pencil.svg.js +1 -1
- package/lib/icons/play.svg.js +1 -1
- package/lib/icons/plus-cicle.svg.js +1 -1
- package/lib/icons/plus-fine.svg.js +1 -1
- package/lib/icons/plus.svg.js +1 -1
- package/lib/icons/post.svg.js +1 -1
- package/lib/icons/question-mark.svg.js +1 -1
- package/lib/icons/question.svg.js +1 -1
- package/lib/icons/redo.svg.js +1 -1
- package/lib/icons/refresh.svg.js +1 -1
- package/lib/icons/reload.svg.js +1 -1
- package/lib/icons/remove.svg.js +1 -1
- package/lib/icons/retry.svg.js +1 -1
- package/lib/icons/right-arrow-bold.svg.js +1 -1
- package/lib/icons/right-arrow.svg.js +1 -1
- package/lib/icons/right-double-arrow.svg.js +1 -1
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +1 -1
- package/lib/icons/rotate-right.svg.js +1 -1
- package/lib/icons/scale-origin.svg.js +1 -1
- package/lib/icons/schedule.svg.js +1 -1
- package/lib/icons/search.svg.js +1 -1
- package/lib/icons/setting.svg.js +1 -1
- package/lib/icons/slider-handle-icon.svg.js +1 -1
- package/lib/icons/sort-asc.svg.js +1 -1
- package/lib/icons/sort-default.svg.js +1 -1
- package/lib/icons/sort-desc.svg.js +1 -1
- package/lib/icons/star.svg.js +1 -1
- package/lib/icons/status-close.svg.js +1 -1
- package/lib/icons/steps-finsh.svg.js +1 -1
- package/lib/icons/success.svg.js +1 -1
- package/lib/icons/transparent.svg.js +1 -1
- package/lib/icons/trash.svg.js +1 -1
- package/lib/icons/tree-down.svg.js +1 -1
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/upload.svg.js +1 -1
- package/lib/icons/user-remove.svg.js +1 -1
- package/lib/icons/view.svg.js +1 -1
- package/lib/icons/volume.svg.js +1 -1
- package/lib/icons/warning-mark.svg.js +1 -1
- package/lib/icons/warning.svg.js +1 -1
- package/lib/icons/window-restore.svg.js +1 -1
- package/lib/icons/zoom-in.svg.js +1 -1
- package/lib/icons/zoom-out.svg.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +2 -4
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +2 -4
- package/lib/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/lib/node_modules/rc-overflow/es/Item.js +1 -1
- package/lib/node_modules/rc-overflow/es/Overflow.js +1 -1
- package/lib/node_modules/rc-overflow/es/RawItem.js +1 -1
- package/lib/node_modules/rc-overflow/es/hooks/useBatchFrameState.js +1 -1
- package/lib/node_modules/rc-overflow/es/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/Collection.js +4 -5
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -7
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/index.js +38 -37
- package/lib/node_modules/rc-resize-observer/es/index.js +11 -9
- package/lib/node_modules/rc-resize-observer/es/utils/observerUtil.js +6 -12
- package/lib/node_modules/rc-util/es/Children/toArray.js +1 -1
- package/lib/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/lib/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useState.js +1 -1
- package/lib/node_modules/rc-util/es/raf.js +1 -1
- package/lib/node_modules/rc-util/es/ref.js +1 -1
- package/lib/node_modules/rc-util/es/warning.js +1 -1
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/lib/node_modules/rc-util/node_modules/react-is/index.js +1 -1
- package/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
- package/lib/packages/amis-ui/scss/helper.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/ang.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/antd.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/cxd.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/dark.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +903 -429
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +917 -435
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +903 -429
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +903 -429
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +903 -429
- package/package.json +4 -4
- package/scss/_components.scss +464 -6
- package/scss/_properties.scss +3 -199
- package/scss/base/_normalize.scss +11 -0
- package/scss/components/_button.scss +8 -17
- package/scss/components/_formula.scss +13 -0
- package/scss/components/_menu.scss +93 -75
- package/scss/components/_result-box.scss +83 -17
- package/scss/components/_table.scss +0 -5
- package/scss/components/_tabs.scss +4 -0
- package/scss/components/form/_chained-select.scss +5 -0
- package/scss/components/form/_checks.scss +0 -4
- package/scss/components/form/_date-range.scss +73 -11
- package/scss/components/form/_date.scss +93 -23
- package/scss/components/form/_form.scss +0 -1
- package/scss/components/form/_input-group.scss +11 -0
- package/scss/components/form/_location.scss +16 -16
- package/scss/components/form/_nested-select.scss +6 -2
- package/scss/components/form/_number.scss +12 -3
- package/scss/components/form/_select.scss +119 -52
- package/scss/components/form/_selection.scss +62 -40
- package/scss/components/form/_tag.scss +0 -4
- package/scss/components/form/_text.scss +13 -3
- package/scss/components/form/_tree.scss +22 -2
- package/scss/components/react-datetime.scss +8 -2
- package/scss/themes/_antd-variables.scss +20 -6
|
@@ -39,6 +39,7 @@ export interface SearchBoxProps extends ThemeProps, LocaleProps {
|
|
|
39
39
|
onBlur?: () => void;
|
|
40
40
|
/** 历史记录配置 */
|
|
41
41
|
history?: SearchHistoryOptions;
|
|
42
|
+
clearAndSubmit?: boolean;
|
|
42
43
|
}
|
|
43
44
|
export interface SearchBoxState {
|
|
44
45
|
isFocused: boolean;
|
|
@@ -54,6 +55,7 @@ export declare class SearchBox extends React.Component<SearchBoxProps, SearchBox
|
|
|
54
55
|
clearable: boolean;
|
|
55
56
|
searchImediately: boolean;
|
|
56
57
|
history: Required<SearchHistoryOptions>;
|
|
58
|
+
clearAndSubmit: boolean;
|
|
57
59
|
};
|
|
58
60
|
state: {
|
|
59
61
|
isHistoryOpened: boolean;
|
|
@@ -89,12 +91,13 @@ export declare class SearchBox extends React.Component<SearchBoxProps, SearchBox
|
|
|
89
91
|
render(): JSX.Element;
|
|
90
92
|
}
|
|
91
93
|
declare const _default: {
|
|
92
|
-
new (props: Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
94
|
+
new (props: Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
93
95
|
mini: boolean;
|
|
94
96
|
enhance: boolean;
|
|
95
97
|
clearable: boolean;
|
|
96
98
|
searchImediately: boolean;
|
|
97
99
|
history: Required<SearchHistoryOptions>;
|
|
100
|
+
clearAndSubmit: boolean;
|
|
98
101
|
}, never>> & {
|
|
99
102
|
locale?: string | undefined;
|
|
100
103
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -104,23 +107,25 @@ declare const _default: {
|
|
|
104
107
|
getWrappedInstance(): any;
|
|
105
108
|
render(): JSX.Element;
|
|
106
109
|
context: any;
|
|
107
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
110
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
108
111
|
mini: boolean;
|
|
109
112
|
enhance: boolean;
|
|
110
113
|
clearable: boolean;
|
|
111
114
|
searchImediately: boolean;
|
|
112
115
|
history: Required<SearchHistoryOptions>;
|
|
116
|
+
clearAndSubmit: boolean;
|
|
113
117
|
}, never>> & {
|
|
114
118
|
locale?: string | undefined;
|
|
115
119
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
116
120
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
117
121
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
118
|
-
readonly props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
122
|
+
readonly props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
119
123
|
mini: boolean;
|
|
120
124
|
enhance: boolean;
|
|
121
125
|
clearable: boolean;
|
|
122
126
|
searchImediately: boolean;
|
|
123
127
|
history: Required<SearchHistoryOptions>;
|
|
128
|
+
clearAndSubmit: boolean;
|
|
124
129
|
}, never>> & {
|
|
125
130
|
locale?: string | undefined;
|
|
126
131
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -132,76 +137,83 @@ declare const _default: {
|
|
|
132
137
|
[key: string]: React.ReactInstance;
|
|
133
138
|
};
|
|
134
139
|
componentDidMount?(): void;
|
|
135
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
140
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
136
141
|
mini: boolean;
|
|
137
142
|
enhance: boolean;
|
|
138
143
|
clearable: boolean;
|
|
139
144
|
searchImediately: boolean;
|
|
140
145
|
history: Required<SearchHistoryOptions>;
|
|
146
|
+
clearAndSubmit: boolean;
|
|
141
147
|
}, never>> & {
|
|
142
148
|
locale?: string | undefined;
|
|
143
149
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
144
150
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
145
151
|
componentWillUnmount?(): void;
|
|
146
152
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
147
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
153
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
148
154
|
mini: boolean;
|
|
149
155
|
enhance: boolean;
|
|
150
156
|
clearable: boolean;
|
|
151
157
|
searchImediately: boolean;
|
|
152
158
|
history: Required<SearchHistoryOptions>;
|
|
159
|
+
clearAndSubmit: boolean;
|
|
153
160
|
}, never>> & {
|
|
154
161
|
locale?: string | undefined;
|
|
155
162
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
156
163
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
157
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
164
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
158
165
|
mini: boolean;
|
|
159
166
|
enhance: boolean;
|
|
160
167
|
clearable: boolean;
|
|
161
168
|
searchImediately: boolean;
|
|
162
169
|
history: Required<SearchHistoryOptions>;
|
|
170
|
+
clearAndSubmit: boolean;
|
|
163
171
|
}, never>> & {
|
|
164
172
|
locale?: string | undefined;
|
|
165
173
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
166
174
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
167
175
|
componentWillMount?(): void;
|
|
168
176
|
UNSAFE_componentWillMount?(): void;
|
|
169
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
177
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
170
178
|
mini: boolean;
|
|
171
179
|
enhance: boolean;
|
|
172
180
|
clearable: boolean;
|
|
173
181
|
searchImediately: boolean;
|
|
174
182
|
history: Required<SearchHistoryOptions>;
|
|
183
|
+
clearAndSubmit: boolean;
|
|
175
184
|
}, never>> & {
|
|
176
185
|
locale?: string | undefined;
|
|
177
186
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
178
187
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
179
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
188
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
180
189
|
mini: boolean;
|
|
181
190
|
enhance: boolean;
|
|
182
191
|
clearable: boolean;
|
|
183
192
|
searchImediately: boolean;
|
|
184
193
|
history: Required<SearchHistoryOptions>;
|
|
194
|
+
clearAndSubmit: boolean;
|
|
185
195
|
}, never>> & {
|
|
186
196
|
locale?: string | undefined;
|
|
187
197
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
188
198
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
189
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
199
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
190
200
|
mini: boolean;
|
|
191
201
|
enhance: boolean;
|
|
192
202
|
clearable: boolean;
|
|
193
203
|
searchImediately: boolean;
|
|
194
204
|
history: Required<SearchHistoryOptions>;
|
|
205
|
+
clearAndSubmit: boolean;
|
|
195
206
|
}, never>> & {
|
|
196
207
|
locale?: string | undefined;
|
|
197
208
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
198
209
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
199
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
210
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
200
211
|
mini: boolean;
|
|
201
212
|
enhance: boolean;
|
|
202
213
|
clearable: boolean;
|
|
203
214
|
searchImediately: boolean;
|
|
204
215
|
history: Required<SearchHistoryOptions>;
|
|
216
|
+
clearAndSubmit: boolean;
|
|
205
217
|
}, never>> & {
|
|
206
218
|
locale?: string | undefined;
|
|
207
219
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -210,12 +222,13 @@ declare const _default: {
|
|
|
210
222
|
displayName: string;
|
|
211
223
|
contextType: React.Context<string>;
|
|
212
224
|
ComposedComponent: React.ComponentType<{
|
|
213
|
-
new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
225
|
+
new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
214
226
|
mini: boolean;
|
|
215
227
|
enhance: boolean;
|
|
216
228
|
clearable: boolean;
|
|
217
229
|
searchImediately: boolean;
|
|
218
230
|
history: Required<SearchHistoryOptions>;
|
|
231
|
+
clearAndSubmit: boolean;
|
|
219
232
|
}, never>> & {
|
|
220
233
|
locale?: string | undefined;
|
|
221
234
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -225,23 +238,25 @@ declare const _default: {
|
|
|
225
238
|
getWrappedInstance(): any;
|
|
226
239
|
render(): JSX.Element;
|
|
227
240
|
context: any;
|
|
228
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
241
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
229
242
|
mini: boolean;
|
|
230
243
|
enhance: boolean;
|
|
231
244
|
clearable: boolean;
|
|
232
245
|
searchImediately: boolean;
|
|
233
246
|
history: Required<SearchHistoryOptions>;
|
|
247
|
+
clearAndSubmit: boolean;
|
|
234
248
|
}, never>> & {
|
|
235
249
|
locale?: string | undefined;
|
|
236
250
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
237
251
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
238
252
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
239
|
-
readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
253
|
+
readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
240
254
|
mini: boolean;
|
|
241
255
|
enhance: boolean;
|
|
242
256
|
clearable: boolean;
|
|
243
257
|
searchImediately: boolean;
|
|
244
258
|
history: Required<SearchHistoryOptions>;
|
|
259
|
+
clearAndSubmit: boolean;
|
|
245
260
|
}, never>> & {
|
|
246
261
|
locale?: string | undefined;
|
|
247
262
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -253,76 +268,83 @@ declare const _default: {
|
|
|
253
268
|
[key: string]: React.ReactInstance;
|
|
254
269
|
};
|
|
255
270
|
componentDidMount?(): void;
|
|
256
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
271
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
257
272
|
mini: boolean;
|
|
258
273
|
enhance: boolean;
|
|
259
274
|
clearable: boolean;
|
|
260
275
|
searchImediately: boolean;
|
|
261
276
|
history: Required<SearchHistoryOptions>;
|
|
277
|
+
clearAndSubmit: boolean;
|
|
262
278
|
}, never>> & {
|
|
263
279
|
locale?: string | undefined;
|
|
264
280
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
265
281
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
266
282
|
componentWillUnmount?(): void;
|
|
267
283
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
268
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
284
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
269
285
|
mini: boolean;
|
|
270
286
|
enhance: boolean;
|
|
271
287
|
clearable: boolean;
|
|
272
288
|
searchImediately: boolean;
|
|
273
289
|
history: Required<SearchHistoryOptions>;
|
|
290
|
+
clearAndSubmit: boolean;
|
|
274
291
|
}, never>> & {
|
|
275
292
|
locale?: string | undefined;
|
|
276
293
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
277
294
|
}>, prevState: Readonly<{}>): any;
|
|
278
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
295
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
279
296
|
mini: boolean;
|
|
280
297
|
enhance: boolean;
|
|
281
298
|
clearable: boolean;
|
|
282
299
|
searchImediately: boolean;
|
|
283
300
|
history: Required<SearchHistoryOptions>;
|
|
301
|
+
clearAndSubmit: boolean;
|
|
284
302
|
}, never>> & {
|
|
285
303
|
locale?: string | undefined;
|
|
286
304
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
287
305
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
288
306
|
componentWillMount?(): void;
|
|
289
307
|
UNSAFE_componentWillMount?(): void;
|
|
290
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
308
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
291
309
|
mini: boolean;
|
|
292
310
|
enhance: boolean;
|
|
293
311
|
clearable: boolean;
|
|
294
312
|
searchImediately: boolean;
|
|
295
313
|
history: Required<SearchHistoryOptions>;
|
|
314
|
+
clearAndSubmit: boolean;
|
|
296
315
|
}, never>> & {
|
|
297
316
|
locale?: string | undefined;
|
|
298
317
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
299
318
|
}>, nextContext: any): void;
|
|
300
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
319
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
301
320
|
mini: boolean;
|
|
302
321
|
enhance: boolean;
|
|
303
322
|
clearable: boolean;
|
|
304
323
|
searchImediately: boolean;
|
|
305
324
|
history: Required<SearchHistoryOptions>;
|
|
325
|
+
clearAndSubmit: boolean;
|
|
306
326
|
}, never>> & {
|
|
307
327
|
locale?: string | undefined;
|
|
308
328
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
309
329
|
}>, nextContext: any): void;
|
|
310
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
330
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
311
331
|
mini: boolean;
|
|
312
332
|
enhance: boolean;
|
|
313
333
|
clearable: boolean;
|
|
314
334
|
searchImediately: boolean;
|
|
315
335
|
history: Required<SearchHistoryOptions>;
|
|
336
|
+
clearAndSubmit: boolean;
|
|
316
337
|
}, never>> & {
|
|
317
338
|
locale?: string | undefined;
|
|
318
339
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
319
340
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
320
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
341
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
321
342
|
mini: boolean;
|
|
322
343
|
enhance: boolean;
|
|
323
344
|
clearable: boolean;
|
|
324
345
|
searchImediately: boolean;
|
|
325
346
|
history: Required<SearchHistoryOptions>;
|
|
347
|
+
clearAndSubmit: boolean;
|
|
326
348
|
}, never>> & {
|
|
327
349
|
locale?: string | undefined;
|
|
328
350
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -335,12 +357,13 @@ declare const _default: {
|
|
|
335
357
|
ComposedComponent: typeof SearchBox;
|
|
336
358
|
}>;
|
|
337
359
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
338
|
-
new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
360
|
+
new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
339
361
|
mini: boolean;
|
|
340
362
|
enhance: boolean;
|
|
341
363
|
clearable: boolean;
|
|
342
364
|
searchImediately: boolean;
|
|
343
365
|
history: Required<SearchHistoryOptions>;
|
|
366
|
+
clearAndSubmit: boolean;
|
|
344
367
|
}, never>> & {
|
|
345
368
|
locale?: string | undefined;
|
|
346
369
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -350,23 +373,25 @@ declare const _default: {
|
|
|
350
373
|
getWrappedInstance(): any;
|
|
351
374
|
render(): JSX.Element;
|
|
352
375
|
context: any;
|
|
353
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
376
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
354
377
|
mini: boolean;
|
|
355
378
|
enhance: boolean;
|
|
356
379
|
clearable: boolean;
|
|
357
380
|
searchImediately: boolean;
|
|
358
381
|
history: Required<SearchHistoryOptions>;
|
|
382
|
+
clearAndSubmit: boolean;
|
|
359
383
|
}, never>> & {
|
|
360
384
|
locale?: string | undefined;
|
|
361
385
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
362
386
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
363
387
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
364
|
-
readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
388
|
+
readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
365
389
|
mini: boolean;
|
|
366
390
|
enhance: boolean;
|
|
367
391
|
clearable: boolean;
|
|
368
392
|
searchImediately: boolean;
|
|
369
393
|
history: Required<SearchHistoryOptions>;
|
|
394
|
+
clearAndSubmit: boolean;
|
|
370
395
|
}, never>> & {
|
|
371
396
|
locale?: string | undefined;
|
|
372
397
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -378,76 +403,83 @@ declare const _default: {
|
|
|
378
403
|
[key: string]: React.ReactInstance;
|
|
379
404
|
};
|
|
380
405
|
componentDidMount?(): void;
|
|
381
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
406
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
382
407
|
mini: boolean;
|
|
383
408
|
enhance: boolean;
|
|
384
409
|
clearable: boolean;
|
|
385
410
|
searchImediately: boolean;
|
|
386
411
|
history: Required<SearchHistoryOptions>;
|
|
412
|
+
clearAndSubmit: boolean;
|
|
387
413
|
}, never>> & {
|
|
388
414
|
locale?: string | undefined;
|
|
389
415
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
390
416
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
391
417
|
componentWillUnmount?(): void;
|
|
392
418
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
393
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
419
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
394
420
|
mini: boolean;
|
|
395
421
|
enhance: boolean;
|
|
396
422
|
clearable: boolean;
|
|
397
423
|
searchImediately: boolean;
|
|
398
424
|
history: Required<SearchHistoryOptions>;
|
|
425
|
+
clearAndSubmit: boolean;
|
|
399
426
|
}, never>> & {
|
|
400
427
|
locale?: string | undefined;
|
|
401
428
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
402
429
|
}>, prevState: Readonly<{}>): any;
|
|
403
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
430
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
404
431
|
mini: boolean;
|
|
405
432
|
enhance: boolean;
|
|
406
433
|
clearable: boolean;
|
|
407
434
|
searchImediately: boolean;
|
|
408
435
|
history: Required<SearchHistoryOptions>;
|
|
436
|
+
clearAndSubmit: boolean;
|
|
409
437
|
}, never>> & {
|
|
410
438
|
locale?: string | undefined;
|
|
411
439
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
412
440
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
413
441
|
componentWillMount?(): void;
|
|
414
442
|
UNSAFE_componentWillMount?(): void;
|
|
415
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
443
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
416
444
|
mini: boolean;
|
|
417
445
|
enhance: boolean;
|
|
418
446
|
clearable: boolean;
|
|
419
447
|
searchImediately: boolean;
|
|
420
448
|
history: Required<SearchHistoryOptions>;
|
|
449
|
+
clearAndSubmit: boolean;
|
|
421
450
|
}, never>> & {
|
|
422
451
|
locale?: string | undefined;
|
|
423
452
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
424
453
|
}>, nextContext: any): void;
|
|
425
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
454
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
426
455
|
mini: boolean;
|
|
427
456
|
enhance: boolean;
|
|
428
457
|
clearable: boolean;
|
|
429
458
|
searchImediately: boolean;
|
|
430
459
|
history: Required<SearchHistoryOptions>;
|
|
460
|
+
clearAndSubmit: boolean;
|
|
431
461
|
}, never>> & {
|
|
432
462
|
locale?: string | undefined;
|
|
433
463
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
434
464
|
}>, nextContext: any): void;
|
|
435
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
465
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
436
466
|
mini: boolean;
|
|
437
467
|
enhance: boolean;
|
|
438
468
|
clearable: boolean;
|
|
439
469
|
searchImediately: boolean;
|
|
440
470
|
history: Required<SearchHistoryOptions>;
|
|
471
|
+
clearAndSubmit: boolean;
|
|
441
472
|
}, never>> & {
|
|
442
473
|
locale?: string | undefined;
|
|
443
474
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
444
475
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
445
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
476
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
446
477
|
mini: boolean;
|
|
447
478
|
enhance: boolean;
|
|
448
479
|
clearable: boolean;
|
|
449
480
|
searchImediately: boolean;
|
|
450
481
|
history: Required<SearchHistoryOptions>;
|
|
482
|
+
clearAndSubmit: boolean;
|
|
451
483
|
}, never>> & {
|
|
452
484
|
locale?: string | undefined;
|
|
453
485
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -460,12 +492,13 @@ declare const _default: {
|
|
|
460
492
|
ComposedComponent: typeof SearchBox;
|
|
461
493
|
}, {}> & {
|
|
462
494
|
ComposedComponent: {
|
|
463
|
-
new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
495
|
+
new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
464
496
|
mini: boolean;
|
|
465
497
|
enhance: boolean;
|
|
466
498
|
clearable: boolean;
|
|
467
499
|
searchImediately: boolean;
|
|
468
500
|
history: Required<SearchHistoryOptions>;
|
|
501
|
+
clearAndSubmit: boolean;
|
|
469
502
|
}, never>> & {
|
|
470
503
|
locale?: string | undefined;
|
|
471
504
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -475,23 +508,25 @@ declare const _default: {
|
|
|
475
508
|
getWrappedInstance(): any;
|
|
476
509
|
render(): JSX.Element;
|
|
477
510
|
context: any;
|
|
478
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
511
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
479
512
|
mini: boolean;
|
|
480
513
|
enhance: boolean;
|
|
481
514
|
clearable: boolean;
|
|
482
515
|
searchImediately: boolean;
|
|
483
516
|
history: Required<SearchHistoryOptions>;
|
|
517
|
+
clearAndSubmit: boolean;
|
|
484
518
|
}, never>> & {
|
|
485
519
|
locale?: string | undefined;
|
|
486
520
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
487
521
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
488
522
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
489
|
-
readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
523
|
+
readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
490
524
|
mini: boolean;
|
|
491
525
|
enhance: boolean;
|
|
492
526
|
clearable: boolean;
|
|
493
527
|
searchImediately: boolean;
|
|
494
528
|
history: Required<SearchHistoryOptions>;
|
|
529
|
+
clearAndSubmit: boolean;
|
|
495
530
|
}, never>> & {
|
|
496
531
|
locale?: string | undefined;
|
|
497
532
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -503,76 +538,83 @@ declare const _default: {
|
|
|
503
538
|
[key: string]: React.ReactInstance;
|
|
504
539
|
};
|
|
505
540
|
componentDidMount?(): void;
|
|
506
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
541
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
507
542
|
mini: boolean;
|
|
508
543
|
enhance: boolean;
|
|
509
544
|
clearable: boolean;
|
|
510
545
|
searchImediately: boolean;
|
|
511
546
|
history: Required<SearchHistoryOptions>;
|
|
547
|
+
clearAndSubmit: boolean;
|
|
512
548
|
}, never>> & {
|
|
513
549
|
locale?: string | undefined;
|
|
514
550
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
515
551
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
516
552
|
componentWillUnmount?(): void;
|
|
517
553
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
518
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
554
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
519
555
|
mini: boolean;
|
|
520
556
|
enhance: boolean;
|
|
521
557
|
clearable: boolean;
|
|
522
558
|
searchImediately: boolean;
|
|
523
559
|
history: Required<SearchHistoryOptions>;
|
|
560
|
+
clearAndSubmit: boolean;
|
|
524
561
|
}, never>> & {
|
|
525
562
|
locale?: string | undefined;
|
|
526
563
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
527
564
|
}>, prevState: Readonly<{}>): any;
|
|
528
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
565
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
529
566
|
mini: boolean;
|
|
530
567
|
enhance: boolean;
|
|
531
568
|
clearable: boolean;
|
|
532
569
|
searchImediately: boolean;
|
|
533
570
|
history: Required<SearchHistoryOptions>;
|
|
571
|
+
clearAndSubmit: boolean;
|
|
534
572
|
}, never>> & {
|
|
535
573
|
locale?: string | undefined;
|
|
536
574
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
537
575
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
538
576
|
componentWillMount?(): void;
|
|
539
577
|
UNSAFE_componentWillMount?(): void;
|
|
540
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
578
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
541
579
|
mini: boolean;
|
|
542
580
|
enhance: boolean;
|
|
543
581
|
clearable: boolean;
|
|
544
582
|
searchImediately: boolean;
|
|
545
583
|
history: Required<SearchHistoryOptions>;
|
|
584
|
+
clearAndSubmit: boolean;
|
|
546
585
|
}, never>> & {
|
|
547
586
|
locale?: string | undefined;
|
|
548
587
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
549
588
|
}>, nextContext: any): void;
|
|
550
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
589
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
551
590
|
mini: boolean;
|
|
552
591
|
enhance: boolean;
|
|
553
592
|
clearable: boolean;
|
|
554
593
|
searchImediately: boolean;
|
|
555
594
|
history: Required<SearchHistoryOptions>;
|
|
595
|
+
clearAndSubmit: boolean;
|
|
556
596
|
}, never>> & {
|
|
557
597
|
locale?: string | undefined;
|
|
558
598
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
559
599
|
}>, nextContext: any): void;
|
|
560
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
600
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
561
601
|
mini: boolean;
|
|
562
602
|
enhance: boolean;
|
|
563
603
|
clearable: boolean;
|
|
564
604
|
searchImediately: boolean;
|
|
565
605
|
history: Required<SearchHistoryOptions>;
|
|
606
|
+
clearAndSubmit: boolean;
|
|
566
607
|
}, never>> & {
|
|
567
608
|
locale?: string | undefined;
|
|
568
609
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
569
610
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
570
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "
|
|
611
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
|
|
571
612
|
mini: boolean;
|
|
572
613
|
enhance: boolean;
|
|
573
614
|
clearable: boolean;
|
|
574
615
|
searchImediately: boolean;
|
|
575
616
|
history: Required<SearchHistoryOptions>;
|
|
617
|
+
clearAndSubmit: boolean;
|
|
576
618
|
}, never>> & {
|
|
577
619
|
locale?: string | undefined;
|
|
578
620
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|