amis-ui 3.5.2 → 3.6.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.d.ts +11 -10
- package/esm/components/Alert2.js +3 -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.d.ts +40 -40
- package/esm/components/AssociatedSelection.js +7 -7
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.d.ts +3 -1
- package/esm/components/BaiduMapPicker.js +37 -18
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.d.ts +10 -10
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.d.ts +10 -10
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedDropdownSelection.d.ts +40 -40
- package/esm/components/ChainedDropdownSelection.js +1 -1
- package/esm/components/ChainedSelection.d.ts +40 -40
- package/esm/components/ChainedSelection.js +6 -6
- 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/Combo.js +1 -1
- package/esm/components/ConfirmBox.js +1 -1
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +52 -41
- package/esm/components/DatePicker.js +114 -27
- package/esm/components/DateRangePicker.d.ts +18 -10
- package/esm/components/DateRangePicker.js +39 -11
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.js +3 -2
- package/esm/components/DropDownSelection.d.ts +40 -40
- package/esm/components/DropDownSelection.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/GaodeMapPicker.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.d.ts +40 -40
- 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.d.ts +10 -10
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/InputTable.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.d.ts +84 -40
- package/esm/components/LocationPicker.js +7 -6
- package/esm/components/Markdown.js +11 -1
- package/esm/components/Modal.d.ts +54 -0
- package/esm/components/Modal.js +93 -7
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.js +1 -1
- package/esm/components/Pagination.d.ts +40 -41
- package/esm/components/Pagination.js +9 -18
- 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 +9 -3
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.d.ts +40 -40
- package/esm/components/ResultBox.js +1 -1
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.d.ts +40 -40
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.d.ts +40 -40
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.js +13 -4
- package/esm/components/SearchBox.js +1 -1
- package/esm/components/Select.d.ts +4 -0
- package/esm/components/Select.js +44 -40
- package/esm/components/SelectMobile.js +1 -1
- package/esm/components/Selection.d.ts +41 -40
- package/esm/components/Selection.js +1 -1
- package/esm/components/SparkLine.d.ts +44 -42
- package/esm/components/SparkLine.js +4 -4
- package/esm/components/Spinner.d.ts +13 -0
- package/esm/components/Spinner.js +8 -6
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.d.ts +15 -10
- package/esm/components/Switch.js +13 -5
- package/esm/components/TableSelection.d.ts +40 -40
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.d.ts +1 -0
- package/esm/components/Tabs.js +2 -2
- package/esm/components/TabsTransfer.d.ts +40 -40
- package/esm/components/TabsTransfer.js +3 -3
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.js +6 -2
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +1 -1
- package/esm/components/Tinymce.d.ts +2 -1
- package/esm/components/Tinymce.js +30 -15
- 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.d.ts +11 -10
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.d.ts +96 -40
- package/esm/components/Transfer.js +25 -11
- package/esm/components/TransferDropDown.d.ts +40 -40
- 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.d.ts +51 -3
- package/esm/components/Tree.js +12 -11
- package/esm/components/TreeSelection.d.ts +40 -40
- package/esm/components/TreeSelection.js +11 -11
- package/esm/components/UserSelect.d.ts +42 -0
- package/esm/components/UserSelect.js +5 -4
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.js +14 -2
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.d.ts +9 -1
- package/esm/components/calendar/Calendar.js +27 -5
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.d.ts +11 -0
- package/esm/components/calendar/DaysView.js +44 -8
- package/esm/components/calendar/MonthsView.d.ts +5 -0
- package/esm/components/calendar/MonthsView.js +18 -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/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 +6 -2
- package/esm/components/condition-builder/Value.js +1 -1
- package/esm/components/condition-builder/config.js +7 -1
- package/esm/components/condition-builder/index.js +1 -1
- package/esm/components/formula/Editor.js +1 -1
- package/esm/components/formula/FuncList.js +1 -1
- package/esm/components/formula/Input.js +2 -2
- package/esm/components/formula/Picker.js +1 -1
- package/esm/components/formula/VariableList.js +1 -1
- package/esm/components/formula/plugin.js +1 -1
- package/esm/components/icons.js +23 -6
- 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/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.js +1 -1
- package/esm/components/menu/SubMenu.js +1 -1
- package/esm/components/menu/index.d.ts +17 -17
- package/esm/components/menu/index.js +5 -4
- 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.d.ts +3 -455
- package/esm/components/table/Cell.js +6 -8
- package/esm/components/table/ColGroup.d.ts +8 -3
- package/esm/components/table/ColGroup.js +28 -22
- package/esm/components/table/Head.d.ts +42 -0
- package/esm/components/table/Head.js +142 -0
- package/esm/components/table/HeadCellDropDown.d.ts +1 -1
- package/esm/components/table/HeadCellDropDown.js +5 -3
- package/esm/components/table/HeadCellFilter.d.ts +41 -41
- package/esm/components/table/HeadCellFilter.js +2 -2
- package/esm/components/table/HeadCellSelect.d.ts +1 -1
- package/esm/components/table/HeadCellSelect.js +2 -2
- package/esm/components/table/HeadCellSort.d.ts +1 -1
- package/esm/components/table/HeadCellSort.js +2 -2
- package/esm/components/table/ItemActionsWrapper.d.ts +1 -1
- package/esm/components/table/ItemActionsWrapper.js +2 -2
- package/esm/components/table/Row.d.ts +60 -0
- package/esm/components/table/Row.js +183 -0
- package/esm/components/table/SummaryRow.d.ts +28 -0
- package/esm/components/table/SummaryRow.js +73 -0
- package/esm/components/table/index.d.ts +62 -67
- package/esm/components/table/index.js +347 -646
- package/esm/components/table/util.d.ts +54 -0
- package/esm/components/table/util.js +207 -0
- 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 +1 -1
- package/esm/hooks/use-sub-form.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 -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/if.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 +4 -1
- package/esm/locale/en-US.js +4 -1
- package/esm/locale/zh-CN.js +4 -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/components/404.js +1 -1
- package/lib/components/Alert.d.ts +120 -120
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.d.ts +21 -20
- package/lib/components/Alert2.js +3 -2
- package/lib/components/AnchorNav.d.ts +20 -20
- 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 +80 -80
- package/lib/components/AssociatedSelection.js +7 -7
- package/lib/components/Avatar.d.ts +90 -90
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.js +1 -1
- package/lib/components/BaiduMapPicker.d.ts +3 -1
- package/lib/components/BaiduMapPicker.js +37 -18
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.d.ts +20 -20
- 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 +100 -100
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedDropdownSelection.d.ts +80 -80
- package/lib/components/ChainedDropdownSelection.js +1 -1
- package/lib/components/ChainedSelection.d.ts +80 -80
- package/lib/components/ChainedSelection.js +6 -6
- 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 +120 -120
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.d.ts +20 -20
- 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 +1 -1
- package/lib/components/ConfirmBox.d.ts +80 -80
- package/lib/components/ConfirmBox.js +1 -1
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +132 -121
- package/lib/components/DatePicker.js +112 -25
- package/lib/components/DateRangePicker.d.ts +338 -330
- package/lib/components/DateRangePicker.js +39 -11
- package/lib/components/DndContainer.js +1 -1
- package/lib/components/Drawer.d.ts +30 -30
- package/lib/components/Drawer.js +3 -2
- package/lib/components/DropDownSelection.d.ts +80 -80
- package/lib/components/DropDownSelection.js +1 -1
- package/lib/components/Editor.d.ts +120 -120
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.js +1 -1
- package/lib/components/GaodeMapPicker.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.d.ts +80 -80
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.d.ts +40 -40
- 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 +1 -1
- package/lib/components/Layout.d.ts +10 -10
- 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 +80 -80
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.d.ts +84 -40
- package/lib/components/LocationPicker.js +7 -6
- package/lib/components/Markdown.js +11 -1
- package/lib/components/Modal.d.ts +134 -80
- package/lib/components/Modal.js +93 -5
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +160 -160
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +30 -30
- package/lib/components/NumberInput.js +1 -1
- package/lib/components/Pagination.d.ts +80 -81
- package/lib/components/Pagination.js +8 -17
- 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.d.ts +80 -80
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +60 -60
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.d.ts +40 -40
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.js +9 -3
- package/lib/components/Rating.d.ts +20 -20
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +80 -80
- package/lib/components/ResultBox.js +1 -1
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.d.ts +80 -80
- 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 +13 -4
- package/lib/components/SearchBox.d.ts +120 -120
- package/lib/components/SearchBox.js +1 -1
- package/lib/components/Select.d.ts +1741 -1738
- package/lib/components/Select.js +44 -40
- package/lib/components/SelectMobile.js +1 -1
- package/lib/components/Selection.d.ts +81 -80
- package/lib/components/Selection.js +1 -1
- package/lib/components/SparkLine.d.ts +44 -42
- package/lib/components/SparkLine.js +3 -3
- package/lib/components/Spinner.d.ts +73 -60
- package/lib/components/Spinner.js +8 -6
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +15 -10
- package/lib/components/Switch.js +13 -5
- package/lib/components/TableSelection.d.ts +80 -80
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +81 -80
- package/lib/components/Tabs.js +2 -2
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +3 -3
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +60 -60
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +6 -2
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +1 -1
- package/lib/components/Tinymce.d.ts +2 -1
- package/lib/components/Tinymce.js +29 -14
- package/lib/components/TitleBar.d.ts +10 -10
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.d.ts +80 -80
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.d.ts +31 -30
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +225 -169
- package/lib/components/Transfer.js +25 -11
- package/lib/components/TransferDropDown.d.ts +160 -160
- 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 +291 -243
- package/lib/components/Tree.js +12 -11
- package/lib/components/TreeSelection.d.ts +120 -120
- package/lib/components/TreeSelection.js +11 -11
- package/lib/components/UserSelect.d.ts +82 -40
- package/lib/components/UserSelect.js +5 -4
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/WithRemoteConfig.d.ts +0 -1
- package/lib/components/WithRemoteConfig.js +14 -2
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.d.ts +9 -1
- package/lib/components/calendar/Calendar.js +27 -5
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.d.ts +11 -0
- package/lib/components/calendar/DaysView.js +44 -8
- package/lib/components/calendar/MonthsView.d.ts +5 -0
- package/lib/components/calendar/MonthsView.js +18 -3
- 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/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 +6 -2
- package/lib/components/condition-builder/Value.js +1 -1
- package/lib/components/condition-builder/config.js +7 -1
- package/lib/components/condition-builder/index.d.ts +1 -1
- package/lib/components/condition-builder/index.js +1 -1
- 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/Input.js +2 -2
- package/lib/components/formula/Picker.d.ts +40 -40
- package/lib/components/formula/Picker.js +1 -1
- package/lib/components/formula/VariableList.js +1 -1
- package/lib/components/formula/plugin.js +1 -1
- package/lib/components/icons.js +22 -5
- 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/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.js +1 -1
- package/lib/components/menu/SubMenu.js +1 -1
- package/lib/components/menu/index.d.ts +77 -77
- package/lib/components/menu/index.js +5 -5
- 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 +3 -455
- package/lib/components/table/Cell.js +6 -9
- package/lib/components/table/ColGroup.d.ts +8 -3
- package/lib/components/table/ColGroup.js +28 -23
- package/lib/components/table/Head.d.ts +42 -0
- package/lib/components/table/Head.js +149 -0
- package/lib/components/table/HeadCellDropDown.d.ts +1 -1
- package/lib/components/table/HeadCellDropDown.js +5 -3
- package/lib/components/table/HeadCellFilter.d.ts +81 -81
- package/lib/components/table/HeadCellFilter.js +2 -2
- package/lib/components/table/HeadCellSelect.d.ts +41 -41
- package/lib/components/table/HeadCellSelect.js +2 -2
- package/lib/components/table/HeadCellSort.d.ts +1 -1
- package/lib/components/table/HeadCellSort.js +2 -2
- package/lib/components/table/ItemActionsWrapper.d.ts +1 -1
- package/lib/components/table/ItemActionsWrapper.js +2 -2
- package/lib/components/table/Row.d.ts +60 -0
- package/lib/components/table/Row.js +190 -0
- package/lib/components/table/SummaryRow.d.ts +28 -0
- package/lib/components/table/SummaryRow.js +81 -0
- package/lib/components/table/index.d.ts +62 -67
- package/lib/components/table/index.js +344 -644
- package/lib/components/table/util.d.ts +54 -0
- package/lib/components/table/util.js +227 -0
- 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 +1 -1
- package/lib/hooks/use-sub-form.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 -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/if.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 +4 -1
- package/lib/locale/en-US.js +4 -1
- package/lib/locale/zh-CN.js +4 -1
- 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 +220 -69
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +222 -71
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +220 -69
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +220 -69
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +220 -69
- package/package.json +5 -6
- package/scss/_components.scss +22 -14
- package/scss/_properties.scss +7 -11
- package/scss/base/_common.scss +8 -0
- package/scss/components/_alert.scss +4 -0
- package/scss/components/_audio.scss +1 -1
- package/scss/components/_card.scss +2 -1
- package/scss/components/_dropdown.scss +4 -2
- package/scss/components/_menu.scss +7 -2
- package/scss/components/_modal.scss +4 -0
- package/scss/components/_page.scss +6 -6
- package/scss/components/_pagination.scss +41 -44
- package/scss/components/_progress.scss +1 -1
- package/scss/components/_spinner.scss +12 -0
- package/scss/components/_steps.scss +7 -5
- package/scss/components/_table.scss +16 -2
- package/scss/components/_table2.scss +7 -0
- package/scss/components/_tabs.scss +21 -24
- package/scss/components/form/_combo.scss +6 -0
- package/scss/components/form/_date-range.scss +3 -6
- package/scss/components/form/_date.scss +3 -5
- package/scss/components/form/_excel.scss +2 -2
- package/scss/components/form/_fieldset.scss +1 -1
- package/scss/components/form/_form.scss +2 -0
- package/scss/components/form/_location.scss +19 -1
- package/scss/components/form/_nested-select.scss +20 -7
- package/scss/components/form/_picker.scss +3 -1
- package/scss/components/form/_range.scss +2 -2
- package/scss/components/form/_rating.scss +17 -3
- package/scss/components/form/_select.scss +0 -11
- package/scss/components/form/_selection.scss +2 -1
- package/scss/components/form/_switch.scss +38 -0
- package/scss/components/form/_text.scss +9 -8
- package/scss/components/form/_textarea.scss +4 -0
- package/scss/components/form/_transfer.scss +40 -0
- package/scss/themes/_ang-variables.scss +63 -61
- package/scss/themes/_antd-variables.scss +63 -61
- package/scss/themes/_cxd-variables.scss +64 -61
- package/scss/themes/_dark-variables.scss +63 -61
|
@@ -19,6 +19,7 @@ export interface UserSelectProps extends ThemeProps, LocaleProps, SpinnerExtraPr
|
|
|
19
19
|
selection?: Array<Option>;
|
|
20
20
|
valueField?: string;
|
|
21
21
|
labelField?: string;
|
|
22
|
+
deferField?: string;
|
|
22
23
|
multi?: boolean;
|
|
23
24
|
multiple?: boolean;
|
|
24
25
|
isDep?: boolean;
|
|
@@ -57,6 +58,7 @@ export declare class UserSelect extends React.Component<UserSelectProps, UserSel
|
|
|
57
58
|
showResultBox: boolean;
|
|
58
59
|
labelField: string;
|
|
59
60
|
valueField: string;
|
|
61
|
+
deferField: string;
|
|
60
62
|
};
|
|
61
63
|
componentDidMount(): void;
|
|
62
64
|
componentDidUpdate(prevProps: UserSelectProps): void;
|
|
@@ -87,9 +89,10 @@ export declare class UserSelect extends React.Component<UserSelectProps, UserSel
|
|
|
87
89
|
render(): React.JSX.Element;
|
|
88
90
|
}
|
|
89
91
|
declare const _default: {
|
|
90
|
-
new (props: Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
92
|
+
new (props: Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
91
93
|
labelField?: string | undefined;
|
|
92
94
|
valueField?: string | undefined;
|
|
95
|
+
deferField?: string | undefined;
|
|
93
96
|
showResultBox?: boolean | undefined;
|
|
94
97
|
} & {} & {
|
|
95
98
|
locale?: string | undefined;
|
|
@@ -100,18 +103,20 @@ declare const _default: {
|
|
|
100
103
|
getWrappedInstance(): any;
|
|
101
104
|
render(): React.JSX.Element;
|
|
102
105
|
context: unknown;
|
|
103
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
106
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
104
107
|
labelField?: string | undefined;
|
|
105
108
|
valueField?: string | undefined;
|
|
109
|
+
deferField?: string | undefined;
|
|
106
110
|
showResultBox?: boolean | undefined;
|
|
107
111
|
} & {} & {
|
|
108
112
|
locale?: string | undefined;
|
|
109
113
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
110
114
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
111
115
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
112
|
-
readonly props: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
116
|
+
readonly props: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
113
117
|
labelField?: string | undefined;
|
|
114
118
|
valueField?: string | undefined;
|
|
119
|
+
deferField?: string | undefined;
|
|
115
120
|
showResultBox?: boolean | undefined;
|
|
116
121
|
} & {} & {
|
|
117
122
|
locale?: string | undefined;
|
|
@@ -122,9 +127,10 @@ declare const _default: {
|
|
|
122
127
|
[key: string]: React.ReactInstance;
|
|
123
128
|
};
|
|
124
129
|
componentDidMount?(): void;
|
|
125
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
130
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
126
131
|
labelField?: string | undefined;
|
|
127
132
|
valueField?: string | undefined;
|
|
133
|
+
deferField?: string | undefined;
|
|
128
134
|
showResultBox?: boolean | undefined;
|
|
129
135
|
} & {} & {
|
|
130
136
|
locale?: string | undefined;
|
|
@@ -132,17 +138,19 @@ declare const _default: {
|
|
|
132
138
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
133
139
|
componentWillUnmount?(): void;
|
|
134
140
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
135
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
141
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
136
142
|
labelField?: string | undefined;
|
|
137
143
|
valueField?: string | undefined;
|
|
144
|
+
deferField?: string | undefined;
|
|
138
145
|
showResultBox?: boolean | undefined;
|
|
139
146
|
} & {} & {
|
|
140
147
|
locale?: string | undefined;
|
|
141
148
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
142
149
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
|
|
143
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
150
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
144
151
|
labelField?: string | undefined;
|
|
145
152
|
valueField?: string | undefined;
|
|
153
|
+
deferField?: string | undefined;
|
|
146
154
|
showResultBox?: boolean | undefined;
|
|
147
155
|
} & {} & {
|
|
148
156
|
locale?: string | undefined;
|
|
@@ -150,33 +158,37 @@ declare const _default: {
|
|
|
150
158
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
151
159
|
componentWillMount?(): void;
|
|
152
160
|
UNSAFE_componentWillMount?(): void;
|
|
153
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
161
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
154
162
|
labelField?: string | undefined;
|
|
155
163
|
valueField?: string | undefined;
|
|
164
|
+
deferField?: string | undefined;
|
|
156
165
|
showResultBox?: boolean | undefined;
|
|
157
166
|
} & {} & {
|
|
158
167
|
locale?: string | undefined;
|
|
159
168
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
160
169
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
161
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
170
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
162
171
|
labelField?: string | undefined;
|
|
163
172
|
valueField?: string | undefined;
|
|
173
|
+
deferField?: string | undefined;
|
|
164
174
|
showResultBox?: boolean | undefined;
|
|
165
175
|
} & {} & {
|
|
166
176
|
locale?: string | undefined;
|
|
167
177
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
168
178
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
169
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
179
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
170
180
|
labelField?: string | undefined;
|
|
171
181
|
valueField?: string | undefined;
|
|
182
|
+
deferField?: string | undefined;
|
|
172
183
|
showResultBox?: boolean | undefined;
|
|
173
184
|
} & {} & {
|
|
174
185
|
locale?: string | undefined;
|
|
175
186
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
176
187
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
177
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
188
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
178
189
|
labelField?: string | undefined;
|
|
179
190
|
valueField?: string | undefined;
|
|
191
|
+
deferField?: string | undefined;
|
|
180
192
|
showResultBox?: boolean | undefined;
|
|
181
193
|
} & {} & {
|
|
182
194
|
locale?: string | undefined;
|
|
@@ -186,9 +198,10 @@ declare const _default: {
|
|
|
186
198
|
displayName: string;
|
|
187
199
|
contextType: React.Context<string>;
|
|
188
200
|
ComposedComponent: React.ComponentType<{
|
|
189
|
-
new (props: Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
201
|
+
new (props: Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
190
202
|
labelField?: string | undefined;
|
|
191
203
|
valueField?: string | undefined;
|
|
204
|
+
deferField?: string | undefined;
|
|
192
205
|
showResultBox?: boolean | undefined;
|
|
193
206
|
} & {} & {
|
|
194
207
|
locale?: string | undefined;
|
|
@@ -199,18 +212,20 @@ declare const _default: {
|
|
|
199
212
|
getWrappedInstance(): any;
|
|
200
213
|
render(): React.JSX.Element;
|
|
201
214
|
context: unknown;
|
|
202
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
215
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
203
216
|
labelField?: string | undefined;
|
|
204
217
|
valueField?: string | undefined;
|
|
218
|
+
deferField?: string | undefined;
|
|
205
219
|
showResultBox?: boolean | undefined;
|
|
206
220
|
} & {} & {
|
|
207
221
|
locale?: string | undefined;
|
|
208
222
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
209
223
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
210
224
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
211
|
-
readonly props: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
225
|
+
readonly props: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
212
226
|
labelField?: string | undefined;
|
|
213
227
|
valueField?: string | undefined;
|
|
228
|
+
deferField?: string | undefined;
|
|
214
229
|
showResultBox?: boolean | undefined;
|
|
215
230
|
} & {} & {
|
|
216
231
|
locale?: string | undefined;
|
|
@@ -221,9 +236,10 @@ declare const _default: {
|
|
|
221
236
|
[key: string]: React.ReactInstance;
|
|
222
237
|
};
|
|
223
238
|
componentDidMount?(): void;
|
|
224
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
239
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
225
240
|
labelField?: string | undefined;
|
|
226
241
|
valueField?: string | undefined;
|
|
242
|
+
deferField?: string | undefined;
|
|
227
243
|
showResultBox?: boolean | undefined;
|
|
228
244
|
} & {} & {
|
|
229
245
|
locale?: string | undefined;
|
|
@@ -231,17 +247,19 @@ declare const _default: {
|
|
|
231
247
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
232
248
|
componentWillUnmount?(): void;
|
|
233
249
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
234
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
250
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
235
251
|
labelField?: string | undefined;
|
|
236
252
|
valueField?: string | undefined;
|
|
253
|
+
deferField?: string | undefined;
|
|
237
254
|
showResultBox?: boolean | undefined;
|
|
238
255
|
} & {} & {
|
|
239
256
|
locale?: string | undefined;
|
|
240
257
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
241
258
|
}>, prevState: Readonly<{}>): any;
|
|
242
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
259
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
243
260
|
labelField?: string | undefined;
|
|
244
261
|
valueField?: string | undefined;
|
|
262
|
+
deferField?: string | undefined;
|
|
245
263
|
showResultBox?: boolean | undefined;
|
|
246
264
|
} & {} & {
|
|
247
265
|
locale?: string | undefined;
|
|
@@ -249,33 +267,37 @@ declare const _default: {
|
|
|
249
267
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
250
268
|
componentWillMount?(): void;
|
|
251
269
|
UNSAFE_componentWillMount?(): void;
|
|
252
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
270
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
253
271
|
labelField?: string | undefined;
|
|
254
272
|
valueField?: string | undefined;
|
|
273
|
+
deferField?: string | undefined;
|
|
255
274
|
showResultBox?: boolean | undefined;
|
|
256
275
|
} & {} & {
|
|
257
276
|
locale?: string | undefined;
|
|
258
277
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
259
278
|
}>, nextContext: any): void;
|
|
260
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
279
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
261
280
|
labelField?: string | undefined;
|
|
262
281
|
valueField?: string | undefined;
|
|
282
|
+
deferField?: string | undefined;
|
|
263
283
|
showResultBox?: boolean | undefined;
|
|
264
284
|
} & {} & {
|
|
265
285
|
locale?: string | undefined;
|
|
266
286
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
267
287
|
}>, nextContext: any): void;
|
|
268
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
288
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
269
289
|
labelField?: string | undefined;
|
|
270
290
|
valueField?: string | undefined;
|
|
291
|
+
deferField?: string | undefined;
|
|
271
292
|
showResultBox?: boolean | undefined;
|
|
272
293
|
} & {} & {
|
|
273
294
|
locale?: string | undefined;
|
|
274
295
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
275
296
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
276
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
297
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
277
298
|
labelField?: string | undefined;
|
|
278
299
|
valueField?: string | undefined;
|
|
300
|
+
deferField?: string | undefined;
|
|
279
301
|
showResultBox?: boolean | undefined;
|
|
280
302
|
} & {} & {
|
|
281
303
|
locale?: string | undefined;
|
|
@@ -289,9 +311,10 @@ declare const _default: {
|
|
|
289
311
|
ComposedComponent: typeof UserSelect;
|
|
290
312
|
}>;
|
|
291
313
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
292
|
-
new (props: Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
314
|
+
new (props: Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
293
315
|
labelField?: string | undefined;
|
|
294
316
|
valueField?: string | undefined;
|
|
317
|
+
deferField?: string | undefined;
|
|
295
318
|
showResultBox?: boolean | undefined;
|
|
296
319
|
} & {} & {
|
|
297
320
|
locale?: string | undefined;
|
|
@@ -302,18 +325,20 @@ declare const _default: {
|
|
|
302
325
|
getWrappedInstance(): any;
|
|
303
326
|
render(): React.JSX.Element;
|
|
304
327
|
context: unknown;
|
|
305
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
328
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
306
329
|
labelField?: string | undefined;
|
|
307
330
|
valueField?: string | undefined;
|
|
331
|
+
deferField?: string | undefined;
|
|
308
332
|
showResultBox?: boolean | undefined;
|
|
309
333
|
} & {} & {
|
|
310
334
|
locale?: string | undefined;
|
|
311
335
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
312
336
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
313
337
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
314
|
-
readonly props: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
338
|
+
readonly props: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
315
339
|
labelField?: string | undefined;
|
|
316
340
|
valueField?: string | undefined;
|
|
341
|
+
deferField?: string | undefined;
|
|
317
342
|
showResultBox?: boolean | undefined;
|
|
318
343
|
} & {} & {
|
|
319
344
|
locale?: string | undefined;
|
|
@@ -324,9 +349,10 @@ declare const _default: {
|
|
|
324
349
|
[key: string]: React.ReactInstance;
|
|
325
350
|
};
|
|
326
351
|
componentDidMount?(): void;
|
|
327
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
352
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
328
353
|
labelField?: string | undefined;
|
|
329
354
|
valueField?: string | undefined;
|
|
355
|
+
deferField?: string | undefined;
|
|
330
356
|
showResultBox?: boolean | undefined;
|
|
331
357
|
} & {} & {
|
|
332
358
|
locale?: string | undefined;
|
|
@@ -334,17 +360,19 @@ declare const _default: {
|
|
|
334
360
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
335
361
|
componentWillUnmount?(): void;
|
|
336
362
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
337
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
363
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
338
364
|
labelField?: string | undefined;
|
|
339
365
|
valueField?: string | undefined;
|
|
366
|
+
deferField?: string | undefined;
|
|
340
367
|
showResultBox?: boolean | undefined;
|
|
341
368
|
} & {} & {
|
|
342
369
|
locale?: string | undefined;
|
|
343
370
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
344
371
|
}>, prevState: Readonly<{}>): any;
|
|
345
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
372
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
346
373
|
labelField?: string | undefined;
|
|
347
374
|
valueField?: string | undefined;
|
|
375
|
+
deferField?: string | undefined;
|
|
348
376
|
showResultBox?: boolean | undefined;
|
|
349
377
|
} & {} & {
|
|
350
378
|
locale?: string | undefined;
|
|
@@ -352,33 +380,37 @@ declare const _default: {
|
|
|
352
380
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
353
381
|
componentWillMount?(): void;
|
|
354
382
|
UNSAFE_componentWillMount?(): void;
|
|
355
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
383
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
356
384
|
labelField?: string | undefined;
|
|
357
385
|
valueField?: string | undefined;
|
|
386
|
+
deferField?: string | undefined;
|
|
358
387
|
showResultBox?: boolean | undefined;
|
|
359
388
|
} & {} & {
|
|
360
389
|
locale?: string | undefined;
|
|
361
390
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
362
391
|
}>, nextContext: any): void;
|
|
363
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
392
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
364
393
|
labelField?: string | undefined;
|
|
365
394
|
valueField?: string | undefined;
|
|
395
|
+
deferField?: string | undefined;
|
|
366
396
|
showResultBox?: boolean | undefined;
|
|
367
397
|
} & {} & {
|
|
368
398
|
locale?: string | undefined;
|
|
369
399
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
370
400
|
}>, nextContext: any): void;
|
|
371
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
401
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
372
402
|
labelField?: string | undefined;
|
|
373
403
|
valueField?: string | undefined;
|
|
404
|
+
deferField?: string | undefined;
|
|
374
405
|
showResultBox?: boolean | undefined;
|
|
375
406
|
} & {} & {
|
|
376
407
|
locale?: string | undefined;
|
|
377
408
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
378
409
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
379
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
410
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
380
411
|
labelField?: string | undefined;
|
|
381
412
|
valueField?: string | undefined;
|
|
413
|
+
deferField?: string | undefined;
|
|
382
414
|
showResultBox?: boolean | undefined;
|
|
383
415
|
} & {} & {
|
|
384
416
|
locale?: string | undefined;
|
|
@@ -392,9 +424,10 @@ declare const _default: {
|
|
|
392
424
|
ComposedComponent: typeof UserSelect;
|
|
393
425
|
}, {}> & {
|
|
394
426
|
ComposedComponent: {
|
|
395
|
-
new (props: Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
427
|
+
new (props: Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
396
428
|
labelField?: string | undefined;
|
|
397
429
|
valueField?: string | undefined;
|
|
430
|
+
deferField?: string | undefined;
|
|
398
431
|
showResultBox?: boolean | undefined;
|
|
399
432
|
} & {} & {
|
|
400
433
|
locale?: string | undefined;
|
|
@@ -405,18 +438,20 @@ declare const _default: {
|
|
|
405
438
|
getWrappedInstance(): any;
|
|
406
439
|
render(): React.JSX.Element;
|
|
407
440
|
context: unknown;
|
|
408
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
441
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
409
442
|
labelField?: string | undefined;
|
|
410
443
|
valueField?: string | undefined;
|
|
444
|
+
deferField?: string | undefined;
|
|
411
445
|
showResultBox?: boolean | undefined;
|
|
412
446
|
} & {} & {
|
|
413
447
|
locale?: string | undefined;
|
|
414
448
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
415
449
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
416
450
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
417
|
-
readonly props: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
451
|
+
readonly props: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
418
452
|
labelField?: string | undefined;
|
|
419
453
|
valueField?: string | undefined;
|
|
454
|
+
deferField?: string | undefined;
|
|
420
455
|
showResultBox?: boolean | undefined;
|
|
421
456
|
} & {} & {
|
|
422
457
|
locale?: string | undefined;
|
|
@@ -427,9 +462,10 @@ declare const _default: {
|
|
|
427
462
|
[key: string]: React.ReactInstance;
|
|
428
463
|
};
|
|
429
464
|
componentDidMount?(): void;
|
|
430
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
465
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
431
466
|
labelField?: string | undefined;
|
|
432
467
|
valueField?: string | undefined;
|
|
468
|
+
deferField?: string | undefined;
|
|
433
469
|
showResultBox?: boolean | undefined;
|
|
434
470
|
} & {} & {
|
|
435
471
|
locale?: string | undefined;
|
|
@@ -437,17 +473,19 @@ declare const _default: {
|
|
|
437
473
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
438
474
|
componentWillUnmount?(): void;
|
|
439
475
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
440
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
476
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
441
477
|
labelField?: string | undefined;
|
|
442
478
|
valueField?: string | undefined;
|
|
479
|
+
deferField?: string | undefined;
|
|
443
480
|
showResultBox?: boolean | undefined;
|
|
444
481
|
} & {} & {
|
|
445
482
|
locale?: string | undefined;
|
|
446
483
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
447
484
|
}>, prevState: Readonly<{}>): any;
|
|
448
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
485
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
449
486
|
labelField?: string | undefined;
|
|
450
487
|
valueField?: string | undefined;
|
|
488
|
+
deferField?: string | undefined;
|
|
451
489
|
showResultBox?: boolean | undefined;
|
|
452
490
|
} & {} & {
|
|
453
491
|
locale?: string | undefined;
|
|
@@ -455,33 +493,37 @@ declare const _default: {
|
|
|
455
493
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
456
494
|
componentWillMount?(): void;
|
|
457
495
|
UNSAFE_componentWillMount?(): void;
|
|
458
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
496
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
459
497
|
labelField?: string | undefined;
|
|
460
498
|
valueField?: string | undefined;
|
|
499
|
+
deferField?: string | undefined;
|
|
461
500
|
showResultBox?: boolean | undefined;
|
|
462
501
|
} & {} & {
|
|
463
502
|
locale?: string | undefined;
|
|
464
503
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
465
504
|
}>, nextContext: any): void;
|
|
466
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
505
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
467
506
|
labelField?: string | undefined;
|
|
468
507
|
valueField?: string | undefined;
|
|
508
|
+
deferField?: string | undefined;
|
|
469
509
|
showResultBox?: boolean | undefined;
|
|
470
510
|
} & {} & {
|
|
471
511
|
locale?: string | undefined;
|
|
472
512
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
473
513
|
}>, nextContext: any): void;
|
|
474
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
514
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
475
515
|
labelField?: string | undefined;
|
|
476
516
|
valueField?: string | undefined;
|
|
517
|
+
deferField?: string | undefined;
|
|
477
518
|
showResultBox?: boolean | undefined;
|
|
478
519
|
} & {} & {
|
|
479
520
|
locale?: string | undefined;
|
|
480
521
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
481
522
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
482
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "
|
|
523
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
483
524
|
labelField?: string | undefined;
|
|
484
525
|
valueField?: string | undefined;
|
|
526
|
+
deferField?: string | undefined;
|
|
485
527
|
showResultBox?: boolean | undefined;
|
|
486
528
|
} & {} & {
|
|
487
529
|
locale?: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.6.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -408,7 +408,7 @@ var UserSelect = /** @class */ (function (_super) {
|
|
|
408
408
|
UserSelect.prototype.renderList = function (options, key, isSearch) {
|
|
409
409
|
var _this = this;
|
|
410
410
|
if (options === void 0) { options = []; }
|
|
411
|
-
var _a = this.props, cx = _a.classnames, _b = _a.valueField, valueField = _b === void 0 ? 'value' : _b; _a.labelField; var isDep = _a.isDep, isRef = _a.isRef, __ = _a.translate, controlled = _a.controlled, displayFields = _a.displayFields, isTab = _a.isTab, multiple = _a.multiple;
|
|
411
|
+
var _a = this.props, cx = _a.classnames, _b = _a.valueField, valueField = _b === void 0 ? 'value' : _b; _a.labelField; var isDep = _a.isDep, isRef = _a.isRef, __ = _a.translate, controlled = _a.controlled, displayFields = _a.displayFields, isTab = _a.isTab, multiple = _a.multiple, _d = _a.deferField, deferField = _d === void 0 ? 'defer' : _d;
|
|
412
412
|
var selection = controlled
|
|
413
413
|
? this.props.selection || []
|
|
414
414
|
: this.state.selection;
|
|
@@ -417,7 +417,7 @@ var UserSelect = /** @class */ (function (_super) {
|
|
|
417
417
|
_J$X_("ul", { className: cx("UserSelect-memberList"), key: key }, options.map(function (option, index) {
|
|
418
418
|
var _a, _b;
|
|
419
419
|
var hasChildren = (isRef && !option.isRef) ||
|
|
420
|
-
(isDep && (option
|
|
420
|
+
(isDep && (option[deferField] || ((_a = option.children) === null || _a === void 0 ? void 0 : _a.length)));
|
|
421
421
|
var checkVisible = (isDep && isRef) ||
|
|
422
422
|
(isRef && option.isRef) ||
|
|
423
423
|
(isDep && !isRef) ||
|
|
@@ -582,7 +582,8 @@ var UserSelect = /** @class */ (function (_super) {
|
|
|
582
582
|
UserSelect.defaultProps = {
|
|
583
583
|
showResultBox: true,
|
|
584
584
|
labelField: 'label',
|
|
585
|
-
valueField: 'value'
|
|
585
|
+
valueField: 'value',
|
|
586
|
+
deferField: 'defer'
|
|
586
587
|
};
|
|
587
588
|
tslib.__decorate([
|
|
588
589
|
amisCore.autobind,
|