amis-ui 2.3.2-beta.1 → 2.4.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/components/404.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.js +2 -2
- 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.d.ts +2 -2
- package/esm/components/Avatar.js +4 -4
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.d.ts +1 -1
- package/esm/components/BaiduMapPicker.js +5 -5
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.js +3 -3
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +22 -14
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +1 -1
- 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.js +1 -1
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.js +1 -1
- package/esm/components/DateRangePicker.js +3 -7
- 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/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.js +1 -1
- 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/MultilineText.d.ts +462 -0
- package/esm/components/MultilineText.js +85 -0
- package/esm/components/NumberInput.d.ts +34 -11
- package/esm/components/NumberInput.js +88 -34
- package/esm/components/Pagination.js +1 -1
- package/esm/components/Picker.js +1 -1
- package/esm/components/PickerColumn.js +1 -1
- package/esm/components/PickerContainer.js +1 -1
- package/esm/components/PopOverContainer.js +1 -1
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +1 -1
- 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.js +1 -1
- package/esm/components/ResultList.js +17 -15
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.js +10 -8
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.js +1 -1
- package/esm/components/Select.js +1 -1
- package/esm/components/Selection.js +7 -5
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.js +1 -1
- 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.js +3 -1
- 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 +2 -2
- package/esm/components/Tinymce.d.ts +1 -0
- package/esm/components/Tinymce.js +5 -3
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.js +1 -1
- 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.js +1 -1
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.js +1 -1
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.js +3 -1
- package/esm/components/UserTabSelect.js +3 -1
- package/esm/components/WithRemoteConfig.js +1 -1
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.js +2 -6
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.js +1 -1
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.js +2 -2
- 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.d.ts +9 -1
- package/esm/components/condition-builder/Group.js +57 -13
- package/esm/components/condition-builder/GroupOrItem.d.ts +1 -0
- package/esm/components/condition-builder/GroupOrItem.js +7 -5
- 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 +1 -1
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.js +3 -3
- package/esm/components/formula/Editor.js +1 -1
- package/esm/components/formula/FuncList.js +1 -1
- package/esm/components/formula/Picker.js +3 -3
- package/esm/components/formula/VariableList.js +1 -1
- package/esm/components/formula/plugin.js +1 -1
- package/esm/components/icons.d.ts +2 -1
- package/esm/components/icons.js +2 -1
- package/esm/components/index.d.ts +12 -7
- package/esm/components/json-schema/Array.js +1 -1
- package/esm/components/json-schema/Item.js +1 -1
- package/esm/components/json-schema/Object.js +1 -1
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/schema-editor/Array.js +1 -1
- package/esm/components/schema-editor/Common.js +1 -1
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.js +1 -1
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.js +1 -1
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.js +1 -1
- 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 +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.d.ts +3 -3
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-touch.js +1 -1
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +1 -1
- package/esm/icons/alert-danger.svg.js +1 -3
- package/esm/icons/alert-info.svg.js +1 -3
- package/esm/icons/alert-success.svg.js +1 -3
- package/esm/icons/alert-warning.svg.js +1 -3
- package/esm/icons/back.svg.js +1 -3
- package/esm/icons/calendar.svg.js +1 -3
- package/esm/icons/caret.svg.js +1 -3
- package/esm/icons/check-circle.svg.js +1 -3
- package/esm/icons/check.svg.js +1 -3
- package/esm/icons/clock.svg.js +1 -3
- package/esm/icons/close-small.svg.js +1 -3
- package/esm/icons/close.svg.js +1 -3
- package/esm/icons/cloud-upload.svg.js +1 -3
- package/esm/icons/column-filter.svg.js +1 -3
- package/esm/icons/columns.svg.js +1 -3
- package/esm/icons/compress-alt.svg.js +1 -3
- package/esm/icons/copy.svg.js +1 -3
- package/esm/icons/date.svg.js +1 -3
- package/esm/icons/department.svg.js +1 -3
- package/esm/icons/desk-empty.svg.js +1 -3
- package/esm/icons/dot.svg.js +1 -3
- package/esm/icons/down-arrow-bold.svg.js +1 -3
- package/esm/icons/down.svg.js +1 -3
- package/esm/icons/download.svg.js +1 -3
- package/esm/icons/drag-bar.svg.js +1 -3
- package/esm/icons/drag.svg.js +1 -3
- package/esm/icons/edit.svg.js +1 -3
- package/esm/icons/ellipsis-v.svg.js +1 -3
- package/esm/icons/enter.svg.js +1 -3
- package/esm/icons/exchange.svg.js +1 -3
- package/esm/icons/expand-alt.svg.js +1 -3
- package/esm/icons/fail.svg.js +1 -3
- package/esm/icons/file.svg.js +1 -3
- package/esm/icons/filter.svg.js +1 -3
- package/esm/icons/folder.svg.js +1 -3
- package/esm/icons/function.svg.js +1 -3
- package/esm/icons/home.svg.js +1 -3
- package/esm/icons/image.svg.js +1 -3
- package/esm/icons/info-circle.svg.js +1 -3
- package/esm/icons/info.svg.js +1 -3
- package/esm/icons/input-clear.svg.js +1 -3
- package/esm/icons/invisible.svg.js +1 -3
- package/esm/icons/left-arrow.svg.js +1 -3
- package/esm/icons/loading-outline.svg.js +1 -3
- package/esm/icons/location.svg.js +1 -3
- package/esm/icons/menu.svg.js +1 -3
- package/esm/icons/minus.svg.js +1 -3
- package/esm/icons/move.svg.js +1 -3
- package/esm/icons/mute.svg.js +1 -3
- package/esm/icons/new-edit.svg.js +1 -3
- package/esm/icons/pause.svg.js +1 -3
- package/esm/icons/pencil.svg.js +1 -3
- package/esm/icons/play.svg.js +1 -3
- package/esm/icons/plus-cicle.svg.js +1 -3
- package/esm/icons/plus-fine.svg.js +1 -3
- package/esm/icons/plus.svg.js +1 -3
- package/esm/icons/post.svg.js +1 -3
- package/esm/icons/question-mark.svg.js +1 -3
- package/esm/icons/question.svg.js +1 -3
- package/esm/icons/redo.svg.js +1 -3
- package/esm/icons/refresh.svg.js +1 -3
- package/esm/icons/reload.svg.js +1 -3
- package/esm/icons/remove.svg.js +1 -3
- package/esm/icons/retry.svg.js +1 -3
- package/esm/icons/right-arrow-bold.svg.js +1 -3
- package/esm/icons/right-arrow.svg.js +1 -3
- package/esm/icons/right-double-arrow.svg.js +1 -3
- package/esm/icons/role.svg.js +1 -3
- package/esm/icons/rotate-left.svg.js +1 -3
- package/esm/icons/rotate-right.svg.js +1 -3
- package/esm/icons/scale-origin.svg.js +1 -3
- package/esm/icons/schedule.svg.js +1 -3
- package/esm/icons/search.svg.js +1 -3
- package/esm/icons/setting.svg.js +1 -3
- package/esm/icons/slider-handle-icon.svg.js +1 -3
- package/esm/icons/sort-asc.svg.js +1 -3
- package/esm/icons/sort-default.svg.js +1 -3
- package/esm/icons/sort-desc.svg.js +1 -3
- package/esm/icons/star.svg.js +1 -3
- package/esm/icons/status-close.svg.js +1 -3
- package/esm/icons/status-fail.svg.js +1 -3
- package/esm/icons/status-info.svg.js +1 -3
- package/esm/icons/status-success.svg.js +1 -3
- package/esm/icons/status-warning.svg.js +1 -3
- package/esm/icons/steps-finsh.svg.js +1 -3
- package/esm/icons/success.svg.js +1 -3
- package/esm/icons/transparent.svg.js +1 -3
- package/esm/icons/trash.svg.js +1 -3
- package/esm/icons/tree-down.svg.js +1 -3
- package/esm/icons/undo.svg.js +1 -3
- package/esm/icons/upload.svg.js +1 -3
- package/esm/icons/user-remove.svg.js +1 -3
- package/esm/icons/view.svg.js +1 -3
- package/esm/icons/volume.svg.js +1 -3
- package/esm/icons/warning-mark.svg.js +1 -3
- package/esm/icons/warning.svg.js +1 -3
- package/esm/icons/window-restore.svg.js +1 -3
- package/esm/icons/zoom-in.svg.js +1 -3
- package/esm/icons/zoom-out.svg.js +1 -3
- package/esm/index.js +4 -1
- package/esm/locale/de-DE.js +3 -1
- package/esm/locale/en-US.js +6 -2
- package/esm/locale/zh-CN.js +8 -4
- 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/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 +2 -2
- 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 +12 -12
- package/lib/components/Avatar.js +3 -3
- package/lib/components/Badge.js +1 -1
- package/lib/components/BaiduMapPicker.d.ts +1 -1
- package/lib/components/BaiduMapPicker.js +5 -5
- 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 +3 -3
- 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 -14
- 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 +1 -1
- 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/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +40 -40
- package/lib/components/DatePicker.js +1 -1
- package/lib/components/DateRangePicker.d.ts +40 -40
- package/lib/components/DateRangePicker.js +3 -8
- 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/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.d.ts +462 -0
- package/lib/components/MultilineText.js +94 -0
- package/lib/components/NumberInput.d.ts +34 -11
- package/lib/components/NumberInput.js +88 -33
- package/lib/components/Pagination.js +1 -1
- package/lib/components/Picker.js +1 -1
- package/lib/components/PickerColumn.js +1 -1
- package/lib/components/PickerContainer.js +1 -1
- package/lib/components/PopOverContainer.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +17 -15
- 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 +10 -8
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.d.ts +40 -40
- package/lib/components/SearchBox.js +1 -1
- package/lib/components/Select.d.ts +193 -193
- package/lib/components/Select.js +1 -1
- package/lib/components/Selection.d.ts +40 -40
- package/lib/components/Selection.js +7 -5
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.d.ts +10 -10
- package/lib/components/Spinner.js +1 -1
- 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 +40 -40
- package/lib/components/Tabs.js +3 -1
- 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 +2 -2
- package/lib/components/Tinymce.d.ts +1 -0
- package/lib/components/Tinymce.js +5 -3
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.js +1 -1
- 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 +40 -40
- package/lib/components/TransferDropDown.js +1 -1
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +1 -1
- package/lib/components/Tree.d.ts +40 -40
- package/lib/components/Tree.js +1 -1
- 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 +3 -1
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +3 -1
- package/lib/components/WithRemoteConfig.js +1 -1
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.js +2 -6
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.js +1 -1
- package/lib/components/calendar/MonthsView.js +1 -1
- package/lib/components/calendar/QuartersView.js +1 -1
- package/lib/components/calendar/TimeView.js +2 -2
- 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.d.ts +9 -1
- package/lib/components/condition-builder/Group.js +57 -13
- package/lib/components/condition-builder/GroupOrItem.d.ts +1 -0
- package/lib/components/condition-builder/GroupOrItem.js +7 -5
- 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 +1 -1
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.js +3 -3
- package/lib/components/formula/Editor.d.ts +40 -40
- package/lib/components/formula/Editor.js +1 -1
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Picker.d.ts +40 -40
- package/lib/components/formula/Picker.js +3 -3
- package/lib/components/formula/VariableList.js +1 -1
- package/lib/components/formula/plugin.js +1 -1
- package/lib/components/icons.d.ts +2 -1
- package/lib/components/icons.js +2 -1
- package/lib/components/index.d.ts +12 -7
- package/lib/components/json-schema/Array.js +1 -1
- package/lib/components/json-schema/Item.js +1 -1
- package/lib/components/json-schema/Object.js +1 -1
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/schema-editor/Array.js +1 -1
- package/lib/components/schema-editor/Common.js +1 -1
- package/lib/components/schema-editor/Item.js +1 -1
- package/lib/components/schema-editor/Object.js +1 -1
- 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 +40 -40
- package/lib/components/schema-editor/index.js +1 -1
- 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 +1 -1
- 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 +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.d.ts +3 -3
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/helper.css +3 -0
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +1 -3
- package/lib/icons/alert-info.svg.js +1 -3
- package/lib/icons/alert-success.svg.js +1 -3
- package/lib/icons/alert-warning.svg.js +1 -3
- package/lib/icons/back.svg.js +1 -3
- package/lib/icons/calendar.svg.js +1 -3
- package/lib/icons/caret.svg.js +1 -3
- package/lib/icons/check-circle.svg.js +1 -3
- package/lib/icons/check.svg.js +1 -3
- package/lib/icons/clock.svg.js +1 -3
- package/lib/icons/close-small.svg.js +1 -3
- package/lib/icons/close.svg.js +1 -3
- package/lib/icons/cloud-upload.svg.js +1 -3
- package/lib/icons/column-filter.svg.js +1 -3
- package/lib/icons/columns.svg.js +1 -3
- package/lib/icons/compress-alt.svg.js +1 -3
- package/lib/icons/copy.svg.js +1 -3
- package/lib/icons/date.svg.js +1 -3
- package/lib/icons/department.svg.js +1 -3
- package/lib/icons/desk-empty.svg.js +1 -3
- package/lib/icons/dot.svg.js +1 -3
- package/lib/icons/down-arrow-bold.svg.js +1 -3
- package/lib/icons/down.svg.js +1 -3
- package/lib/icons/download.svg.js +1 -3
- package/lib/icons/drag-bar.svg.js +1 -3
- package/lib/icons/drag.svg.js +1 -3
- package/lib/icons/edit.svg.js +1 -3
- package/lib/icons/ellipsis-v.svg.js +1 -3
- package/lib/icons/enter.svg.js +1 -3
- package/lib/icons/exchange.svg.js +1 -3
- package/lib/icons/expand-alt.svg.js +1 -3
- package/lib/icons/fail.svg.js +1 -3
- package/lib/icons/file.svg.js +1 -3
- package/lib/icons/filter.svg.js +1 -3
- package/lib/icons/folder.svg.js +1 -3
- package/lib/icons/function.svg.js +1 -3
- package/lib/icons/home.svg.js +1 -3
- package/lib/icons/image.svg.js +1 -3
- package/lib/icons/info-circle.svg.js +1 -3
- package/lib/icons/info.svg.js +1 -3
- package/lib/icons/input-clear.svg.js +1 -3
- package/lib/icons/invisible.svg.js +1 -3
- package/lib/icons/left-arrow.svg.js +1 -3
- package/lib/icons/loading-outline.svg.js +1 -3
- package/lib/icons/location.svg.js +1 -3
- package/lib/icons/menu.svg.js +1 -3
- package/lib/icons/minus.svg.js +1 -3
- package/lib/icons/move.svg.js +1 -3
- package/lib/icons/mute.svg.js +1 -3
- package/lib/icons/new-edit.svg.js +1 -3
- package/lib/icons/pause.svg.js +1 -3
- package/lib/icons/pencil.svg.js +1 -3
- package/lib/icons/play.svg.js +1 -3
- package/lib/icons/plus-cicle.svg.js +1 -3
- package/lib/icons/plus-fine.svg.js +1 -3
- package/lib/icons/plus.svg.js +1 -3
- package/lib/icons/post.svg.js +1 -3
- package/lib/icons/question-mark.svg.js +1 -3
- package/lib/icons/question.svg.js +1 -3
- package/lib/icons/redo.svg.js +1 -3
- package/lib/icons/refresh.svg.js +1 -3
- package/lib/icons/reload.svg.js +1 -3
- package/lib/icons/remove.svg.js +1 -3
- package/lib/icons/retry.svg.js +1 -3
- package/lib/icons/right-arrow-bold.svg.js +1 -3
- package/lib/icons/right-arrow.svg.js +1 -3
- package/lib/icons/right-double-arrow.svg.js +1 -3
- package/lib/icons/role.svg.js +1 -3
- package/lib/icons/rotate-left.svg.js +1 -3
- package/lib/icons/rotate-right.svg.js +1 -3
- package/lib/icons/scale-origin.svg.js +1 -3
- package/lib/icons/schedule.svg.js +1 -3
- package/lib/icons/search.svg.js +1 -3
- package/lib/icons/setting.svg.js +1 -3
- package/lib/icons/slider-handle-icon.svg.js +1 -3
- package/lib/icons/sort-asc.svg.js +1 -3
- package/lib/icons/sort-default.svg.js +1 -3
- package/lib/icons/sort-desc.svg.js +1 -3
- package/lib/icons/star.svg.js +1 -3
- package/lib/icons/status-close.svg.js +1 -3
- package/lib/icons/status-fail.svg.js +1 -3
- package/lib/icons/status-info.svg.js +1 -3
- package/lib/icons/status-success.svg.js +1 -3
- package/lib/icons/status-warning.svg.js +1 -3
- package/lib/icons/steps-finsh.svg.js +1 -3
- package/lib/icons/success.svg.js +1 -3
- package/lib/icons/transparent.svg.js +1 -3
- package/lib/icons/trash.svg.js +1 -3
- package/lib/icons/tree-down.svg.js +1 -3
- package/lib/icons/undo.svg.js +1 -3
- package/lib/icons/upload.svg.js +1 -3
- package/lib/icons/user-remove.svg.js +1 -3
- package/lib/icons/view.svg.js +1 -3
- package/lib/icons/volume.svg.js +1 -3
- package/lib/icons/warning-mark.svg.js +1 -3
- package/lib/icons/warning.svg.js +1 -3
- package/lib/icons/window-restore.svg.js +1 -3
- package/lib/icons/zoom-in.svg.js +1 -3
- package/lib/icons/zoom-out.svg.js +1 -3
- package/lib/index.js +7 -1
- package/lib/locale/de-DE.js +3 -1
- package/lib/locale/en-US.js +6 -2
- package/lib/locale/zh-CN.js +8 -4
- package/lib/scss/helper.scss.js +1 -1
- package/lib/scss/themes/ang.scss.js +1 -1
- package/lib/scss/themes/antd.scss.js +1 -1
- package/lib/scss/themes/cxd.scss.js +1 -1
- package/lib/scss/themes/dark.scss.js +1 -1
- package/lib/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +1533 -747
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +2756 -887
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +3134 -1544
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +1533 -747
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +3134 -1544
- package/package.json +4 -4
- package/scss/_mixins.scss +144 -45
- package/scss/_properties.scss +155 -312
- package/scss/_utilities.scss +4 -0
- package/scss/base/_normalize.scss +4 -0
- package/scss/components/_alert.scss +0 -1
- package/scss/components/_array-input.scss +8 -3
- package/scss/components/_button.scss +708 -177
- package/scss/components/_code.scss +10 -0
- package/scss/components/_collapse.scss +17 -0
- package/scss/components/_condition-builder.scss +153 -30
- package/scss/components/_drawer.scss +7 -2
- package/scss/components/_formula.scss +4 -0
- package/scss/components/_list.scss +1 -1
- package/scss/components/_modal.scss +1 -0
- package/scss/components/_multiline-text.scss +20 -0
- package/scss/components/_search-box.scss +1 -1
- package/scss/components/_steps.scss +2 -0
- package/scss/components/_table.scss +14 -0
- package/scss/components/_tabs.scss +1 -1
- package/scss/components/form/_checks.scss +20 -5
- package/scss/components/form/_combo.scss +47 -8
- package/scss/components/form/_date-range.scss +1 -1
- package/scss/components/form/_date.scss +4 -2
- package/scss/components/form/_fieldset.scss +4 -3
- package/scss/components/form/_form.scss +11 -5
- package/scss/components/form/_icon-select.scss +216 -0
- package/scss/components/form/_image.scss +44 -9
- package/scss/components/form/_input-group.scss +3 -0
- package/scss/components/form/_list.scss +33 -28
- package/scss/components/form/_location.scss +4 -0
- package/scss/components/form/_nested-select.scss +1 -1
- package/scss/components/form/_range.scss +4 -0
- package/scss/components/form/_select.scss +2 -1
- package/scss/components/form/_switch.scss +54 -0
- package/scss/components/form/_tag.scss +8 -3
- package/scss/components/form/_text.scss +2 -2
- package/scss/components/form/_textarea.scss +8 -0
- package/scss/components/form/_transfer.scss +213 -20
- package/scss/components/form/_tree-select.scss +7 -0
- package/scss/themes/_antd-variables.scss +1107 -41
- package/scss/themes/_common.scss +3 -0
- package/scss/themes/_cxd-variables.scss +1456 -477
- package/scss/themes/cxd.scss +423 -404
- package/scss/themes/_cxd-colors.scss +0 -56
|
@@ -53,7 +53,7 @@ export declare class ResultList extends React.Component<ResultListProps, ResultL
|
|
|
53
53
|
render(): JSX.Element;
|
|
54
54
|
}
|
|
55
55
|
declare const _default: {
|
|
56
|
-
new (props: Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
56
|
+
new (props: Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
57
57
|
locale?: string | undefined;
|
|
58
58
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
59
59
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps): {
|
|
@@ -62,12 +62,12 @@ declare const _default: {
|
|
|
62
62
|
getWrappedInstance(): any;
|
|
63
63
|
render(): JSX.Element;
|
|
64
64
|
context: any;
|
|
65
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
65
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
66
66
|
locale?: string | undefined;
|
|
67
67
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
68
68
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
69
69
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
70
|
-
readonly props: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
70
|
+
readonly props: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
71
71
|
locale?: string | undefined;
|
|
72
72
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
73
73
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
@@ -78,35 +78,35 @@ declare const _default: {
|
|
|
78
78
|
[key: string]: React.ReactInstance;
|
|
79
79
|
};
|
|
80
80
|
componentDidMount?(): void;
|
|
81
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
81
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
82
82
|
locale?: string | undefined;
|
|
83
83
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
84
84
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
85
85
|
componentWillUnmount?(): void;
|
|
86
86
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
87
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
87
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
88
88
|
locale?: string | undefined;
|
|
89
89
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
90
90
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
91
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
91
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
92
92
|
locale?: string | undefined;
|
|
93
93
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
94
94
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
95
95
|
componentWillMount?(): void;
|
|
96
96
|
UNSAFE_componentWillMount?(): void;
|
|
97
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
97
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
98
98
|
locale?: string | undefined;
|
|
99
99
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
100
100
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
101
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
101
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
102
102
|
locale?: string | undefined;
|
|
103
103
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
104
104
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
105
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
105
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
106
106
|
locale?: string | undefined;
|
|
107
107
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
108
108
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
109
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
109
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
110
110
|
locale?: string | undefined;
|
|
111
111
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
112
112
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -114,7 +114,7 @@ declare const _default: {
|
|
|
114
114
|
displayName: string;
|
|
115
115
|
contextType: React.Context<string>;
|
|
116
116
|
ComposedComponent: React.ComponentType<{
|
|
117
|
-
new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
117
|
+
new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
118
118
|
locale?: string | undefined;
|
|
119
119
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
120
120
|
}): {
|
|
@@ -123,12 +123,12 @@ declare const _default: {
|
|
|
123
123
|
getWrappedInstance(): any;
|
|
124
124
|
render(): JSX.Element;
|
|
125
125
|
context: any;
|
|
126
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
126
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
127
127
|
locale?: string | undefined;
|
|
128
128
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
129
129
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
130
130
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
131
|
-
readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
131
|
+
readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
132
132
|
locale?: string | undefined;
|
|
133
133
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
134
134
|
}> & Readonly<{
|
|
@@ -139,35 +139,35 @@ declare const _default: {
|
|
|
139
139
|
[key: string]: React.ReactInstance;
|
|
140
140
|
};
|
|
141
141
|
componentDidMount?(): void;
|
|
142
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
142
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
143
143
|
locale?: string | undefined;
|
|
144
144
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
145
145
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
146
146
|
componentWillUnmount?(): void;
|
|
147
147
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
148
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
148
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
149
149
|
locale?: string | undefined;
|
|
150
150
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
151
151
|
}>, prevState: Readonly<{}>): any;
|
|
152
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
152
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
153
153
|
locale?: string | undefined;
|
|
154
154
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
155
155
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
156
156
|
componentWillMount?(): void;
|
|
157
157
|
UNSAFE_componentWillMount?(): void;
|
|
158
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
158
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
159
159
|
locale?: string | undefined;
|
|
160
160
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
161
161
|
}>, nextContext: any): void;
|
|
162
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
162
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
163
163
|
locale?: string | undefined;
|
|
164
164
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
165
165
|
}>, nextContext: any): void;
|
|
166
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
166
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
167
167
|
locale?: string | undefined;
|
|
168
168
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
169
169
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
170
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
170
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
171
171
|
locale?: string | undefined;
|
|
172
172
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
173
173
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -179,7 +179,7 @@ declare const _default: {
|
|
|
179
179
|
ComposedComponent: typeof ResultList;
|
|
180
180
|
}>;
|
|
181
181
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
182
|
-
new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
182
|
+
new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
183
183
|
locale?: string | undefined;
|
|
184
184
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
185
185
|
}): {
|
|
@@ -188,12 +188,12 @@ declare const _default: {
|
|
|
188
188
|
getWrappedInstance(): any;
|
|
189
189
|
render(): JSX.Element;
|
|
190
190
|
context: any;
|
|
191
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
191
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
192
192
|
locale?: string | undefined;
|
|
193
193
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
194
194
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
195
195
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
196
|
-
readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
196
|
+
readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
197
197
|
locale?: string | undefined;
|
|
198
198
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
199
199
|
}> & Readonly<{
|
|
@@ -204,35 +204,35 @@ declare const _default: {
|
|
|
204
204
|
[key: string]: React.ReactInstance;
|
|
205
205
|
};
|
|
206
206
|
componentDidMount?(): void;
|
|
207
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
207
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
208
208
|
locale?: string | undefined;
|
|
209
209
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
210
210
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
211
211
|
componentWillUnmount?(): void;
|
|
212
212
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
213
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
213
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
214
214
|
locale?: string | undefined;
|
|
215
215
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
216
216
|
}>, prevState: Readonly<{}>): any;
|
|
217
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
217
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
218
218
|
locale?: string | undefined;
|
|
219
219
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
220
220
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
221
221
|
componentWillMount?(): void;
|
|
222
222
|
UNSAFE_componentWillMount?(): void;
|
|
223
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
223
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
224
224
|
locale?: string | undefined;
|
|
225
225
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
226
226
|
}>, nextContext: any): void;
|
|
227
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
227
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
228
228
|
locale?: string | undefined;
|
|
229
229
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
230
230
|
}>, nextContext: any): void;
|
|
231
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
231
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
232
232
|
locale?: string | undefined;
|
|
233
233
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
234
234
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
235
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
235
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
236
236
|
locale?: string | undefined;
|
|
237
237
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
238
238
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -244,7 +244,7 @@ declare const _default: {
|
|
|
244
244
|
ComposedComponent: typeof ResultList;
|
|
245
245
|
}, {}> & {
|
|
246
246
|
ComposedComponent: {
|
|
247
|
-
new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
247
|
+
new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
248
248
|
locale?: string | undefined;
|
|
249
249
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
250
250
|
}): {
|
|
@@ -253,12 +253,12 @@ declare const _default: {
|
|
|
253
253
|
getWrappedInstance(): any;
|
|
254
254
|
render(): JSX.Element;
|
|
255
255
|
context: any;
|
|
256
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
256
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
257
257
|
locale?: string | undefined;
|
|
258
258
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
259
259
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
260
260
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
261
|
-
readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
261
|
+
readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
262
262
|
locale?: string | undefined;
|
|
263
263
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
264
264
|
}> & Readonly<{
|
|
@@ -269,35 +269,35 @@ declare const _default: {
|
|
|
269
269
|
[key: string]: React.ReactInstance;
|
|
270
270
|
};
|
|
271
271
|
componentDidMount?(): void;
|
|
272
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
272
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
273
273
|
locale?: string | undefined;
|
|
274
274
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
275
275
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
276
276
|
componentWillUnmount?(): void;
|
|
277
277
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
278
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
278
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
279
279
|
locale?: string | undefined;
|
|
280
280
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
281
281
|
}>, prevState: Readonly<{}>): any;
|
|
282
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
282
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
283
283
|
locale?: string | undefined;
|
|
284
284
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
285
285
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
286
286
|
componentWillMount?(): void;
|
|
287
287
|
UNSAFE_componentWillMount?(): void;
|
|
288
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
288
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
289
289
|
locale?: string | undefined;
|
|
290
290
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
291
291
|
}>, nextContext: any): void;
|
|
292
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
292
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
293
293
|
locale?: string | undefined;
|
|
294
294
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
295
295
|
}>, nextContext: any): void;
|
|
296
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
296
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
297
297
|
locale?: string | undefined;
|
|
298
298
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
299
299
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
300
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "
|
|
300
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
|
|
301
301
|
locale?: string | undefined;
|
|
302
302
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
303
303
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.4.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -33,7 +33,7 @@ var ResultList = /** @class */ (function (_super) {
|
|
|
33
33
|
return _this;
|
|
34
34
|
}
|
|
35
35
|
ResultList.itemRender = function (option, states) {
|
|
36
|
-
return React__default["default"].createElement("span", null, "".concat(option.scopeLabel || '').concat(option[(states === null || states === void 0 ? void 0 : states.labelField) || 'label']));
|
|
36
|
+
return (React__default["default"].createElement("span", null, "".concat(option.scopeLabel || '').concat(option[(states === null || states === void 0 ? void 0 : states.labelField) || 'label'])));
|
|
37
37
|
};
|
|
38
38
|
ResultList.prototype.componentDidMount = function () {
|
|
39
39
|
this.props.sortable && this.initSortable();
|
|
@@ -64,7 +64,7 @@ var ResultList = /** @class */ (function (_super) {
|
|
|
64
64
|
handle: ".".concat(ns, "Selections-dragbar"),
|
|
65
65
|
ghostClass: "".concat(ns, "Selections-item--dragging"),
|
|
66
66
|
onEnd: function (e) {
|
|
67
|
-
var
|
|
67
|
+
var _b, _c;
|
|
68
68
|
// 没有移动
|
|
69
69
|
if (e.newIndex === e.oldIndex) {
|
|
70
70
|
return;
|
|
@@ -87,30 +87,30 @@ var ResultList = /** @class */ (function (_super) {
|
|
|
87
87
|
}
|
|
88
88
|
var newValue = value.concat();
|
|
89
89
|
newValue.splice(e.newIndex, 0, newValue.splice(e.oldIndex, 1)[0]);
|
|
90
|
-
(
|
|
90
|
+
(_c = (_b = _this.props).onChange) === null || _c === void 0 ? void 0 : _c.call(_b, newValue);
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
};
|
|
94
94
|
ResultList.prototype.desposeSortable = function () {
|
|
95
|
-
var
|
|
96
|
-
(
|
|
95
|
+
var _b;
|
|
96
|
+
(_b = this.sortable) === null || _b === void 0 ? void 0 : _b.destroy();
|
|
97
97
|
delete this.sortable;
|
|
98
98
|
};
|
|
99
99
|
ResultList.prototype.handleValueChange = function (index, value, name) {
|
|
100
|
-
var
|
|
100
|
+
var _b;
|
|
101
101
|
if (typeof name !== 'string') {
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
|
-
var
|
|
104
|
+
var _c = this.props, list = _c.value, onChange = _c.onChange;
|
|
105
105
|
var result = Array.isArray(list) ? list.concat() : [];
|
|
106
106
|
if (!result[index]) {
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
|
-
result.splice(index, 1, tslib.__assign(tslib.__assign({}, result[index]), (
|
|
109
|
+
result.splice(index, 1, tslib.__assign(tslib.__assign({}, result[index]), (_b = {}, _b[name] = value, _b)));
|
|
110
110
|
onChange === null || onChange === void 0 ? void 0 : onChange(result, true);
|
|
111
111
|
};
|
|
112
112
|
ResultList.prototype.search = function (inputValue) {
|
|
113
|
-
var
|
|
113
|
+
var _b = this.props, onSearch = _b.onSearch, value = _b.value;
|
|
114
114
|
var searchResult = (value || []).filter(function (item) { return onSearch && onSearch(inputValue, item); });
|
|
115
115
|
this.setState({ searchResult: searchResult });
|
|
116
116
|
};
|
|
@@ -119,7 +119,7 @@ var ResultList = /** @class */ (function (_super) {
|
|
|
119
119
|
};
|
|
120
120
|
// 删除项
|
|
121
121
|
ResultList.prototype.handleCloseItem = function (e, option) {
|
|
122
|
-
var
|
|
122
|
+
var _b = this.props, value = _b.value, onChange = _b.onChange, disabled = _b.disabled, searchable = _b.searchable, _c = _b.valueField, valueField = _c === void 0 ? 'value' : _c;
|
|
123
123
|
if (disabled || option.disabled) {
|
|
124
124
|
return;
|
|
125
125
|
}
|
|
@@ -143,7 +143,7 @@ var ResultList = /** @class */ (function (_super) {
|
|
|
143
143
|
// 没有搜索,走旧的删除方式
|
|
144
144
|
else {
|
|
145
145
|
var index = parseInt(e.currentTarget.getAttribute('data-index'), 10);
|
|
146
|
-
var
|
|
146
|
+
var _d = this.props, value_1 = _d.value, onChange_1 = _d.onChange;
|
|
147
147
|
if (!Array.isArray(value_1)) {
|
|
148
148
|
return;
|
|
149
149
|
}
|
|
@@ -154,7 +154,7 @@ var ResultList = /** @class */ (function (_super) {
|
|
|
154
154
|
};
|
|
155
155
|
ResultList.prototype.renderNormalList = function (value) {
|
|
156
156
|
var _this = this;
|
|
157
|
-
var
|
|
157
|
+
var _b = this.props, cx = _b.classnames, itemRender = _b.itemRender, disabled = _b.disabled, itemClassName = _b.itemClassName, sortable = _b.sortable, labelField = _b.labelField, __ = _b.translate, placeholder = _b.placeholder;
|
|
158
158
|
return (React__default["default"].createElement(React__default["default"].Fragment, null, Array.isArray(value) && value.length ? (React__default["default"].createElement("div", { className: cx('Selections-items') }, value.map(function (option, index) { return (React__default["default"].createElement("div", { className: cx('Selections-item', itemClassName, option === null || option === void 0 ? void 0 : option.className), key: index },
|
|
159
159
|
sortable && !disabled && value.length > 1 ? (React__default["default"].createElement(icons.Icon, { className: cx('Selections-dragbar icon'), icon: "drag-bar" })) : null,
|
|
160
160
|
React__default["default"].createElement("label", null, itemRender(option, {
|
|
@@ -169,16 +169,18 @@ var ResultList = /** @class */ (function (_super) {
|
|
|
169
169
|
React__default["default"].createElement(icons.Icon, { icon: "close", className: "icon" }))) : null)); }))) : (React__default["default"].createElement("div", { className: cx('Selections-placeholder') }, __(placeholder)))));
|
|
170
170
|
};
|
|
171
171
|
ResultList.prototype.render = function () {
|
|
172
|
-
var
|
|
172
|
+
var _b = this.props, cx = _b.classnames, className = _b.className, title = _b.title, searchable = _b.searchable, value = _b.value, __ = _b.translate, _c = _b.searchPlaceholder, searchPlaceholder = _c === void 0 ? __('Transfer.searchKeyword') : _c;
|
|
173
173
|
var searchResult = this.state.searchResult;
|
|
174
174
|
return (React__default["default"].createElement("div", { className: cx('Selections', className) },
|
|
175
175
|
title ? React__default["default"].createElement("div", { className: cx('Selections-title') }, title) : null,
|
|
176
176
|
searchable ? (React__default["default"].createElement(TransferSearch["default"], { placeholder: searchPlaceholder, onSearch: this.search, onCancelSearch: this.clearSearch })) : null,
|
|
177
177
|
this.renderNormalList(searchResult !== null ? searchResult : value)));
|
|
178
178
|
};
|
|
179
|
+
var _a;
|
|
180
|
+
_a = ResultList;
|
|
179
181
|
ResultList.defaultProps = {
|
|
180
182
|
placeholder: 'placeholder.selectData',
|
|
181
|
-
itemRender:
|
|
183
|
+
itemRender: _a.itemRender,
|
|
182
184
|
searchPlaceholder: ''
|
|
183
185
|
};
|
|
184
186
|
tslib.__decorate([
|