amis-ui 3.6.2 → 6.0.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 +1 -1
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.js +1 -1
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.d.ts +10 -10
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedDropdownSelection.js +1 -1
- 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.d.ts +11 -11
- package/esm/components/Collapse.js +3 -3
- package/esm/components/CollapseGroup.js +11 -10
- 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 +40 -40
- package/esm/components/DatePicker.js +1 -1
- package/esm/components/DateRangePicker.d.ts +13 -19
- package/esm/components/DateRangePicker.js +16 -10
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.js +1 -1
- package/esm/components/DropDownSelection.js +1 -1
- package/esm/components/Editor.js +4 -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.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.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.js +1 -1
- package/esm/components/NumberInput.d.ts +2 -1
- package/esm/components/NumberInput.js +16 -6
- package/esm/components/OverflowTpl.d.ts +62 -0
- package/esm/components/OverflowTpl.js +101 -0
- package/esm/components/Pagination.d.ts +112 -0
- package/esm/components/Pagination.js +89 -10
- 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.d.ts +2 -0
- package/esm/components/PopOverContainer.js +8 -6
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.js +2 -2
- 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.d.ts +40 -40
- package/esm/components/ResultBox.js +1 -1
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.js +6 -7
- package/esm/components/SearchBox.d.ts +44 -42
- package/esm/components/SearchBox.js +6 -4
- package/esm/components/Select.js +1 -1
- package/esm/components/SelectMobile.js +12 -10
- package/esm/components/Selection.js +1 -1
- 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 +1 -1
- package/esm/components/TabsTransfer.js +1 -1
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.d.ts +20 -20
- 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 +1 -1
- package/esm/components/Tinymce.js +3 -2
- 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.d.ts +90 -50
- package/esm/components/Transfer.js +2 -1
- package/esm/components/TransferDropDown.d.ts +80 -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.js +1 -1
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.js +1 -1
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.js +1 -1
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.d.ts +3 -1
- package/esm/components/calendar/Calendar.js +4 -3
- 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.d.ts +6 -0
- package/esm/components/calendar/TimeView.js +105 -10
- 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 +10 -5
- 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 +11 -2
- package/esm/components/formula/Editor.js +10 -1
- package/esm/components/formula/FuncList.js +1 -1
- package/esm/components/formula/Input.js +80 -26
- package/esm/components/formula/Picker.js +1 -1
- package/esm/components/formula/VariableList.js +3 -3
- package/esm/components/formula/plugin.js +1 -1
- package/esm/components/icons.d.ts +1 -1
- package/esm/components/icons.js +14 -8
- package/esm/components/index.d.ts +2 -1
- 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 +10 -10
- package/esm/components/menu/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/ColGroup.js +1 -1
- package/esm/components/table/Head.js +15 -6
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.js +12 -25
- 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/Row.d.ts +10 -17
- package/esm/components/table/Row.js +47 -5
- package/esm/components/table/SummaryRow.js +2 -2
- package/esm/components/table/index.d.ts +44 -42
- package/esm/components/table/index.js +30 -56
- package/esm/components/table/util.d.ts +3 -2
- package/esm/components/table/util.js +39 -7
- 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/arrow-double-left.svg.js +24 -0
- package/esm/icons/arrow-double-right.svg.js +24 -0
- 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 +2 -1
- package/esm/locale/de-DE.js +1 -1
- package/esm/locale/en-US.js +1 -1
- package/esm/locale/zh-CN.js +2 -2
- 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.js +1 -1
- package/lib/components/AnchorNav.js +1 -1
- 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.js +1 -1
- package/lib/components/Badge.js +1 -1
- package/lib/components/BaiduMapPicker.js +1 -1
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.d.ts +10 -10
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedDropdownSelection.d.ts +40 -40
- package/lib/components/ChainedDropdownSelection.js +1 -1
- package/lib/components/ChainedSelection.d.ts +40 -40
- package/lib/components/ChainedSelection.js +1 -1
- 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 +11 -11
- package/lib/components/Collapse.js +3 -3
- package/lib/components/CollapseGroup.js +11 -10
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/Combo.js +1 -1
- package/lib/components/ConfirmBox.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 +13 -19
- package/lib/components/DateRangePicker.js +16 -10
- package/lib/components/DndContainer.js +1 -1
- package/lib/components/Drawer.js +1 -1
- package/lib/components/DropDownSelection.d.ts +40 -40
- package/lib/components/DropDownSelection.js +1 -1
- package/lib/components/Editor.d.ts +40 -40
- package/lib/components/Editor.js +4 -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 +40 -40
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/InputTable.js +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.js +1 -1
- package/lib/components/LocationPicker.js +1 -1
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Modal.js +1 -1
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +12 -11
- package/lib/components/NumberInput.js +16 -6
- package/lib/components/OverflowTpl.d.ts +62 -0
- package/lib/components/OverflowTpl.js +109 -0
- package/lib/components/Pagination.d.ts +112 -0
- package/lib/components/Pagination.js +89 -10
- 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.d.ts +2 -0
- package/lib/components/PopOverContainer.js +8 -6
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.js +2 -2
- 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.js +1 -1
- package/lib/components/ResultBox.d.ts +80 -80
- package/lib/components/ResultBox.js +1 -1
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.d.ts +40 -40
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.js +1 -1
- package/lib/components/RichText.js +7 -7
- package/lib/components/SearchBox.d.ts +44 -42
- package/lib/components/SearchBox.js +6 -4
- package/lib/components/Select.d.ts +193 -193
- package/lib/components/Select.js +1 -1
- package/lib/components/SelectMobile.js +12 -10
- package/lib/components/Selection.d.ts +40 -40
- package/lib/components/Selection.js +1 -1
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.js +1 -1
- package/lib/components/Steps.js +1 -1
- 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.js +1 -1
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +1 -1
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +10 -10
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +1 -1
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +1 -1
- package/lib/components/Tinymce.js +4 -2
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.d.ts +40 -40
- 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 +90 -50
- package/lib/components/Transfer.js +2 -1
- package/lib/components/TransferDropDown.d.ts +80 -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 +1 -1
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/WithRemoteConfig.js +1 -1
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.d.ts +3 -1
- package/lib/components/calendar/Calendar.js +4 -3
- 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.d.ts +6 -0
- package/lib/components/calendar/TimeView.js +103 -8
- 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 +10 -5
- 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 +11 -2
- package/lib/components/formula/Editor.js +10 -1
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Input.js +79 -25
- package/lib/components/formula/Picker.d.ts +40 -40
- package/lib/components/formula/Picker.js +1 -1
- package/lib/components/formula/VariableList.js +3 -3
- package/lib/components/formula/plugin.js +1 -1
- package/lib/components/icons.d.ts +1 -1
- package/lib/components/icons.js +14 -8
- package/lib/components/index.d.ts +2 -1
- 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 +10 -10
- package/lib/components/menu/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.js +1 -1
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/ColGroup.js +1 -1
- package/lib/components/table/Head.js +15 -6
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.js +12 -25
- 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/Row.d.ts +10 -17
- package/lib/components/table/Row.js +46 -4
- package/lib/components/table/SummaryRow.js +2 -2
- package/lib/components/table/index.d.ts +44 -42
- package/lib/components/table/index.js +27 -53
- package/lib/components/table/util.d.ts +3 -2
- package/lib/components/table/util.js +40 -7
- 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/helper.css +9603 -1234
- 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/arrow-double-left.svg.js +31 -0
- package/lib/icons/arrow-double-right.svg.js +31 -0
- 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 +3 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/zh-CN.js +2 -2
- 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 +667 -292
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +667 -292
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +667 -292
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +667 -292
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +667 -292
- package/package.json +5 -4
- package/scss/_components.scss +3 -3
- package/scss/_mixins.scss +4 -0
- package/scss/_properties.scss +7 -3
- package/scss/components/_alert.scss +1 -0
- package/scss/components/_cards.scss +10 -1
- package/scss/components/_condition-builder.scss +1 -1
- package/scss/components/_dropdown.scss +1 -1
- package/scss/components/_list.scss +10 -1
- package/scss/components/_menu.scss +2 -2
- package/scss/components/_overflow-tpl.scss +5 -0
- package/scss/components/_pagination.scss +118 -8
- package/scss/components/_search-box.scss +7 -4
- package/scss/components/_table.scss +15 -0
- package/scss/components/_table2.scss +8 -2
- package/scss/components/form/_checks.scss +5 -5
- package/scss/components/form/_date-range.scss +1 -1
- package/scss/components/form/_date.scss +13 -1
- package/scss/components/form/_fieldset.scss +0 -2
- package/scss/components/form/_input-group.scss +21 -10
- package/scss/components/form/_picker.scss +0 -1
- package/scss/components/form/_range.scss +82 -0
- package/scss/components/form/_result-list.scss +6 -0
- package/scss/components/form/_select.scss +1 -0
- package/scss/components/form/_selection.scss +4 -0
- package/scss/components/form/_tag.scss +3 -0
- package/scss/components/form/_text.scss +1 -0
- package/scss/components/form/_textarea.scss +1 -0
- package/scss/components/form/_tree.scss +1 -1
- package/scss/themes/_common.scss +1 -0
|
@@ -62,7 +62,7 @@ export declare class UserTabSelect extends React.Component<UserTabSelectProps, U
|
|
|
62
62
|
render(): React.JSX.Element;
|
|
63
63
|
}
|
|
64
64
|
declare const _default: {
|
|
65
|
-
new (props: Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
65
|
+
new (props: Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
66
66
|
locale?: string | undefined;
|
|
67
67
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
68
68
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps): {
|
|
@@ -71,12 +71,12 @@ declare const _default: {
|
|
|
71
71
|
getWrappedInstance(): any;
|
|
72
72
|
render(): React.JSX.Element;
|
|
73
73
|
context: unknown;
|
|
74
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
74
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
75
75
|
locale?: string | undefined;
|
|
76
76
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
77
77
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
78
78
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
79
|
-
readonly props: Readonly<Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
79
|
+
readonly props: Readonly<Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
80
80
|
locale?: string | undefined;
|
|
81
81
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
82
82
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>;
|
|
@@ -85,35 +85,35 @@ declare const _default: {
|
|
|
85
85
|
[key: string]: React.ReactInstance;
|
|
86
86
|
};
|
|
87
87
|
componentDidMount?(): void;
|
|
88
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
88
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
89
89
|
locale?: string | undefined;
|
|
90
90
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
91
91
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
92
92
|
componentWillUnmount?(): void;
|
|
93
93
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
94
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
94
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
95
95
|
locale?: string | undefined;
|
|
96
96
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
97
97
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
|
|
98
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
98
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
99
99
|
locale?: string | undefined;
|
|
100
100
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
101
101
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
102
102
|
componentWillMount?(): void;
|
|
103
103
|
UNSAFE_componentWillMount?(): void;
|
|
104
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
104
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
105
105
|
locale?: string | undefined;
|
|
106
106
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
107
107
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
108
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
108
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
109
109
|
locale?: string | undefined;
|
|
110
110
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
111
111
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
112
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
112
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
113
113
|
locale?: string | undefined;
|
|
114
114
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
115
115
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
116
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
116
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
117
117
|
locale?: string | undefined;
|
|
118
118
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
119
119
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -121,7 +121,7 @@ declare const _default: {
|
|
|
121
121
|
displayName: string;
|
|
122
122
|
contextType: React.Context<string>;
|
|
123
123
|
ComposedComponent: React.ComponentType<{
|
|
124
|
-
new (props: Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
124
|
+
new (props: Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
125
125
|
locale?: string | undefined;
|
|
126
126
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
127
127
|
}): {
|
|
@@ -130,12 +130,12 @@ declare const _default: {
|
|
|
130
130
|
getWrappedInstance(): any;
|
|
131
131
|
render(): React.JSX.Element;
|
|
132
132
|
context: unknown;
|
|
133
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
133
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
134
134
|
locale?: string | undefined;
|
|
135
135
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
136
136
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
137
137
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
138
|
-
readonly props: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
138
|
+
readonly props: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
139
139
|
locale?: string | undefined;
|
|
140
140
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
141
141
|
}>;
|
|
@@ -144,35 +144,35 @@ declare const _default: {
|
|
|
144
144
|
[key: string]: React.ReactInstance;
|
|
145
145
|
};
|
|
146
146
|
componentDidMount?(): void;
|
|
147
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
147
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
148
148
|
locale?: string | undefined;
|
|
149
149
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
150
150
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
151
151
|
componentWillUnmount?(): void;
|
|
152
152
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
153
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
153
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
154
154
|
locale?: string | undefined;
|
|
155
155
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
156
156
|
}>, prevState: Readonly<{}>): any;
|
|
157
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
157
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
158
158
|
locale?: string | undefined;
|
|
159
159
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
160
160
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
161
161
|
componentWillMount?(): void;
|
|
162
162
|
UNSAFE_componentWillMount?(): void;
|
|
163
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
163
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
164
164
|
locale?: string | undefined;
|
|
165
165
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
166
166
|
}>, nextContext: any): void;
|
|
167
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
167
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
168
168
|
locale?: string | undefined;
|
|
169
169
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
170
170
|
}>, nextContext: any): void;
|
|
171
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
171
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
172
172
|
locale?: string | undefined;
|
|
173
173
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
174
174
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
175
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
175
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
176
176
|
locale?: string | undefined;
|
|
177
177
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
178
178
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -184,7 +184,7 @@ declare const _default: {
|
|
|
184
184
|
ComposedComponent: typeof UserTabSelect;
|
|
185
185
|
}>;
|
|
186
186
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
187
|
-
new (props: Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
187
|
+
new (props: Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
188
188
|
locale?: string | undefined;
|
|
189
189
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
190
190
|
}): {
|
|
@@ -193,12 +193,12 @@ declare const _default: {
|
|
|
193
193
|
getWrappedInstance(): any;
|
|
194
194
|
render(): React.JSX.Element;
|
|
195
195
|
context: unknown;
|
|
196
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
196
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
197
197
|
locale?: string | undefined;
|
|
198
198
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
199
199
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
200
200
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
201
|
-
readonly props: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
201
|
+
readonly props: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
202
202
|
locale?: string | undefined;
|
|
203
203
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
204
204
|
}>;
|
|
@@ -207,35 +207,35 @@ declare const _default: {
|
|
|
207
207
|
[key: string]: React.ReactInstance;
|
|
208
208
|
};
|
|
209
209
|
componentDidMount?(): void;
|
|
210
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
210
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
211
211
|
locale?: string | undefined;
|
|
212
212
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
213
213
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
214
214
|
componentWillUnmount?(): void;
|
|
215
215
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
216
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
216
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
217
217
|
locale?: string | undefined;
|
|
218
218
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
219
219
|
}>, prevState: Readonly<{}>): any;
|
|
220
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
220
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
221
221
|
locale?: string | undefined;
|
|
222
222
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
223
223
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
224
224
|
componentWillMount?(): void;
|
|
225
225
|
UNSAFE_componentWillMount?(): void;
|
|
226
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
226
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
227
227
|
locale?: string | undefined;
|
|
228
228
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
229
229
|
}>, nextContext: any): void;
|
|
230
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
230
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
231
231
|
locale?: string | undefined;
|
|
232
232
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
233
233
|
}>, nextContext: any): void;
|
|
234
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
234
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
235
235
|
locale?: string | undefined;
|
|
236
236
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
237
237
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
238
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
238
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
239
239
|
locale?: string | undefined;
|
|
240
240
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
241
241
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -247,7 +247,7 @@ declare const _default: {
|
|
|
247
247
|
ComposedComponent: typeof UserTabSelect;
|
|
248
248
|
}, {}> & {
|
|
249
249
|
ComposedComponent: {
|
|
250
|
-
new (props: Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
250
|
+
new (props: Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
251
251
|
locale?: string | undefined;
|
|
252
252
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
253
253
|
}): {
|
|
@@ -256,12 +256,12 @@ declare const _default: {
|
|
|
256
256
|
getWrappedInstance(): any;
|
|
257
257
|
render(): React.JSX.Element;
|
|
258
258
|
context: unknown;
|
|
259
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
259
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
260
260
|
locale?: string | undefined;
|
|
261
261
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
262
262
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
263
263
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
264
|
-
readonly props: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
264
|
+
readonly props: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
265
265
|
locale?: string | undefined;
|
|
266
266
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
267
267
|
}>;
|
|
@@ -270,35 +270,35 @@ declare const _default: {
|
|
|
270
270
|
[key: string]: React.ReactInstance;
|
|
271
271
|
};
|
|
272
272
|
componentDidMount?(): void;
|
|
273
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
273
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
274
274
|
locale?: string | undefined;
|
|
275
275
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
276
276
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
277
277
|
componentWillUnmount?(): void;
|
|
278
278
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
279
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
279
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
280
280
|
locale?: string | undefined;
|
|
281
281
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
282
282
|
}>, prevState: Readonly<{}>): any;
|
|
283
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
283
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
284
284
|
locale?: string | undefined;
|
|
285
285
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
286
286
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
287
287
|
componentWillMount?(): void;
|
|
288
288
|
UNSAFE_componentWillMount?(): void;
|
|
289
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
289
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
290
290
|
locale?: string | undefined;
|
|
291
291
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
292
292
|
}>, nextContext: any): void;
|
|
293
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
293
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
294
294
|
locale?: string | undefined;
|
|
295
295
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
296
296
|
}>, nextContext: any): void;
|
|
297
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
297
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
298
298
|
locale?: string | undefined;
|
|
299
299
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
300
300
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
301
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "
|
|
301
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserTabSelectProps, keyof LocaleProps>, "classnames" | "classPrefix" | "data" | "style" | "className" | "theme" | "mobileUI" | "onChange" | "multiple" | "placeholder" | "labelField" | "valueField" | "deferLoad" | "selection" | "onSearch" | "tabOptions"> & {} & {} & {
|
|
302
302
|
locale?: string | undefined;
|
|
303
303
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
304
304
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -12,6 +12,7 @@ export type ViewMode = 'days' | 'months' | 'years' | 'time' | 'quarters';
|
|
|
12
12
|
export type DateType = 'year' | 'month' | 'date' | 'hours' | 'minutes' | 'seconds';
|
|
13
13
|
/** 底层View组件修改的值类型:time时间、days日期 */
|
|
14
14
|
export type ChangeEventViewMode = Extract<ViewMode, 'time' | 'days'>;
|
|
15
|
+
export type ChangeEventViewStatus = 'start' | 'end';
|
|
15
16
|
/** 可改变的时间单位 */
|
|
16
17
|
export type MutableUnitOfTime = Extract<unitOfTime.All, 'date' | 'hour' | 'minute' | 'second' | 'millisecond'>;
|
|
17
18
|
export interface BoundaryObject {
|
|
@@ -45,7 +46,7 @@ interface BaseDatePickerProps {
|
|
|
45
46
|
onMouseEnter?: (date: moment.Moment) => any;
|
|
46
47
|
onMouseLeave?: (date: moment.Moment) => any;
|
|
47
48
|
onClose?: () => void;
|
|
48
|
-
onChange?: (value: any, viewMode?: ChangeEventViewMode) => void;
|
|
49
|
+
onChange?: (value: any, viewMode?: ChangeEventViewMode, status?: ChangeEventViewStatus) => void;
|
|
49
50
|
isEndDate?: boolean;
|
|
50
51
|
minDate?: moment.Moment;
|
|
51
52
|
maxDate?: moment.Moment;
|
|
@@ -75,6 +76,7 @@ interface BaseDatePickerProps {
|
|
|
75
76
|
displayTimeZone?: string;
|
|
76
77
|
timeConstraints?: any;
|
|
77
78
|
timeRangeHeader?: string;
|
|
79
|
+
status?: ChangeEventViewStatus;
|
|
78
80
|
}
|
|
79
81
|
declare const _default: React.ComponentType<BaseDatePickerProps>;
|
|
80
82
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui
|
|
2
|
+
* amis-ui v6.0.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -173,10 +173,11 @@ var BaseDatePicker = /** @class */ (function (_super) {
|
|
|
173
173
|
};
|
|
174
174
|
_this.updateSelectedDate = function (e, close) {
|
|
175
175
|
var that = _this;
|
|
176
|
+
var _a = that.props, embed = _a.embed, status = _a.status;
|
|
176
177
|
var date = that.getTargetDate(e);
|
|
177
178
|
if (!_this.props.value) {
|
|
178
179
|
var open = !(_this.props.closeOnSelect && close);
|
|
179
|
-
if (!open) {
|
|
180
|
+
if (!open && !embed) {
|
|
180
181
|
that.props.onBlur(date);
|
|
181
182
|
}
|
|
182
183
|
_this.setState({
|
|
@@ -196,7 +197,7 @@ var BaseDatePicker = /** @class */ (function (_super) {
|
|
|
196
197
|
that.closeCalendar();
|
|
197
198
|
}
|
|
198
199
|
}
|
|
199
|
-
that.props.onChange(date, 'days');
|
|
200
|
+
that.props.onChange(date, 'days', status);
|
|
200
201
|
};
|
|
201
202
|
_this.getDateBoundary = function (currentDate) {
|
|
202
203
|
var _a, _b;
|
|
@@ -68,8 +68,11 @@ export declare class CustomTimeView extends React.Component<CustomTimeViewProps
|
|
|
68
68
|
};
|
|
69
69
|
timer?: any;
|
|
70
70
|
increaseTimer?: any;
|
|
71
|
+
/** 基于 timeConstraints 计算出的时间列表 */
|
|
72
|
+
timeList: string[];
|
|
71
73
|
constructor(props: any);
|
|
72
74
|
componentDidMount(): void;
|
|
75
|
+
shoudExtractTimeConstraintsList: () => boolean;
|
|
73
76
|
updateSelectedDate: (event: React.MouseEvent<any>) => void;
|
|
74
77
|
componentDidUpdate(preProps: CustomTimeViewProps): void;
|
|
75
78
|
onStartClicking(action: any, type: string): () => void;
|
|
@@ -100,6 +103,9 @@ export declare class CustomTimeView extends React.Component<CustomTimeViewProps
|
|
|
100
103
|
renderTimeViewPicker: () => React.JSX.Element;
|
|
101
104
|
setTime: (type: TimeScale, value: number) => void;
|
|
102
105
|
scrollToTop: (type: TimeScale, value: number, i: number, label?: string) => void;
|
|
106
|
+
/**
|
|
107
|
+
* 选择当前时间,如果设置了timeConstraints,则选择最接近的时间
|
|
108
|
+
*/
|
|
103
109
|
selectNowTime: () => void;
|
|
104
110
|
confirm: () => void;
|
|
105
111
|
cancel: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui
|
|
2
|
+
* amis-ui v6.0.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -58,6 +58,31 @@ var CustomTimeView = /** @class */ (function (_super) {
|
|
|
58
58
|
step: 1
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
+
/** 基于 timeConstraints 计算出的时间列表 */
|
|
62
|
+
_this.timeList = [];
|
|
63
|
+
_this.shoudExtractTimeConstraintsList = function () {
|
|
64
|
+
var timeConstraints = _this.timeConstraints;
|
|
65
|
+
var result = false;
|
|
66
|
+
if (!timeConstraints || !amisCore.isObject(timeConstraints)) {
|
|
67
|
+
return result;
|
|
68
|
+
}
|
|
69
|
+
['hours', 'minutes', 'seconds'].forEach(function (timeScale) {
|
|
70
|
+
var _a = timeConstraints[timeScale], min = _a.min, max = _a.max, step = _a.step;
|
|
71
|
+
if (result !== false) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (timeScale === 'hours') {
|
|
75
|
+
result = min > 0 || max < 23 || step > 1;
|
|
76
|
+
}
|
|
77
|
+
else if (timeScale === 'minutes') {
|
|
78
|
+
result = min > 0 || max < 59 || step > 1;
|
|
79
|
+
}
|
|
80
|
+
else if (timeScale === 'seconds') {
|
|
81
|
+
result = min > 0 || max < 59 || step > 1;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
return result;
|
|
85
|
+
};
|
|
61
86
|
_this.updateSelectedDate = function (event) {
|
|
62
87
|
// need confirm
|
|
63
88
|
if (_this.props.requiredConfirm) {
|
|
@@ -221,13 +246,33 @@ var CustomTimeView = /** @class */ (function (_super) {
|
|
|
221
246
|
behavior: label === 'init' ? 'auto' : 'smooth'
|
|
222
247
|
});
|
|
223
248
|
};
|
|
249
|
+
/**
|
|
250
|
+
* 选择当前时间,如果设置了timeConstraints,则选择最接近的时间
|
|
251
|
+
*/
|
|
224
252
|
_this.selectNowTime = function () {
|
|
225
|
-
_this.props.setDateTimeState
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
253
|
+
var _a = _this.props, setDateTimeState = _a.setDateTimeState, timeFormat = _a.timeFormat;
|
|
254
|
+
var useClosetDate = _this.shoudExtractTimeConstraintsList();
|
|
255
|
+
if (useClosetDate) {
|
|
256
|
+
var timeList = _this.timeList;
|
|
257
|
+
var now_1 = moment__default["default"]().clone();
|
|
258
|
+
var closetDate_1 = now_1.clone();
|
|
259
|
+
var minDiff_1 = Infinity;
|
|
260
|
+
/** 遍历时间列表,找出最接近此刻的时间 */
|
|
261
|
+
timeList.forEach(function (item, index) {
|
|
262
|
+
var date = moment__default["default"](item, timeFormat);
|
|
263
|
+
var diff = Math.abs(now_1.diff(date));
|
|
264
|
+
if (diff < minDiff_1) {
|
|
265
|
+
minDiff_1 = diff;
|
|
266
|
+
closetDate_1 = date;
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
setDateTimeState({ viewDate: closetDate_1, selectedDate: closetDate_1 }, function () {
|
|
270
|
+
return _this.confirm();
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
setDateTimeState({ viewDate: moment__default["default"]().clone(), selectedDate: moment__default["default"]().clone() }, function () { return _this.confirm(); });
|
|
275
|
+
}
|
|
231
276
|
};
|
|
232
277
|
_this.confirm = function () {
|
|
233
278
|
var _a, _b;
|
|
@@ -252,8 +297,9 @@ var CustomTimeView = /** @class */ (function (_super) {
|
|
|
252
297
|
return _this;
|
|
253
298
|
}
|
|
254
299
|
CustomTimeView.prototype.componentDidMount = function () {
|
|
300
|
+
var e_1, _a, e_2, _b, e_3, _c;
|
|
255
301
|
var _this = this;
|
|
256
|
-
var
|
|
302
|
+
var _d = this.props, timeFormat = _d.timeFormat, selectedDate = _d.selectedDate, viewDate = _d.viewDate, isEndDate = _d.isEndDate;
|
|
257
303
|
var formatMap = {
|
|
258
304
|
hours: 'HH',
|
|
259
305
|
minutes: 'mm',
|
|
@@ -272,6 +318,55 @@ var CustomTimeView = /** @class */ (function (_super) {
|
|
|
272
318
|
_this.scrollToTop(type, parseInt(date.format(formatMap[type]), 10), i, 'init');
|
|
273
319
|
}
|
|
274
320
|
});
|
|
321
|
+
/** 如果设置了step或者min、max限制,则计算出时间列表提供给后续使用 */
|
|
322
|
+
if (this.shoudExtractTimeConstraintsList()) {
|
|
323
|
+
var hours = this.computedTimeOptions('hours').map(function (item) { return item.value; });
|
|
324
|
+
var minutes = timeFormat.split(':').some(function (f) { return /^(mm|m)$/.test(f); })
|
|
325
|
+
? this.computedTimeOptions('minutes').map(function (item) { return item.value; })
|
|
326
|
+
: ['00'];
|
|
327
|
+
var seconds = timeFormat.split(':').some(function (f) { return /^(ss|s)$/.test(f); })
|
|
328
|
+
? this.computedTimeOptions('seconds').map(function (item) { return item.value; })
|
|
329
|
+
: ['00'];
|
|
330
|
+
var result = [];
|
|
331
|
+
try {
|
|
332
|
+
for (var hours_1 = tslib.__values(hours), hours_1_1 = hours_1.next(); !hours_1_1.done; hours_1_1 = hours_1.next()) {
|
|
333
|
+
var h = hours_1_1.value;
|
|
334
|
+
try {
|
|
335
|
+
for (var minutes_1 = (e_2 = void 0, tslib.__values(minutes)), minutes_1_1 = minutes_1.next(); !minutes_1_1.done; minutes_1_1 = minutes_1.next()) {
|
|
336
|
+
var m = minutes_1_1.value;
|
|
337
|
+
try {
|
|
338
|
+
for (var seconds_1 = (e_3 = void 0, tslib.__values(seconds)), seconds_1_1 = seconds_1.next(); !seconds_1_1.done; seconds_1_1 = seconds_1.next()) {
|
|
339
|
+
var s = seconds_1_1.value;
|
|
340
|
+
result.push("".concat(h, ":").concat(m, ":").concat(s));
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
344
|
+
finally {
|
|
345
|
+
try {
|
|
346
|
+
if (seconds_1_1 && !seconds_1_1.done && (_c = seconds_1.return)) _c.call(seconds_1);
|
|
347
|
+
}
|
|
348
|
+
finally { if (e_3) throw e_3.error; }
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
353
|
+
finally {
|
|
354
|
+
try {
|
|
355
|
+
if (minutes_1_1 && !minutes_1_1.done && (_b = minutes_1.return)) _b.call(minutes_1);
|
|
356
|
+
}
|
|
357
|
+
finally { if (e_2) throw e_2.error; }
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
362
|
+
finally {
|
|
363
|
+
try {
|
|
364
|
+
if (hours_1_1 && !hours_1_1.done && (_a = hours_1.return)) _a.call(hours_1);
|
|
365
|
+
}
|
|
366
|
+
finally { if (e_1) throw e_1.error; }
|
|
367
|
+
}
|
|
368
|
+
this.timeList = result;
|
|
369
|
+
}
|
|
275
370
|
};
|
|
276
371
|
CustomTimeView.prototype.componentDidUpdate = function (preProps) {
|
|
277
372
|
if (preProps.viewDate !== this.props.viewDate ||
|