amis-ui 2.0.0 → 2.0.1
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.d.ts +9 -2
- package/esm/components/AnchorNav.js +25 -6
- 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/BarCode2.js +1 -1
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +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/CityDB2.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/ColorPicker2.js +1 -1
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +41 -40
- package/esm/components/DatePicker.js +3 -3
- package/esm/components/DateRangePicker.d.ts +44 -41
- package/esm/components/DateRangePicker.js +28 -11
- package/esm/components/Drawer.js +1 -1
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.js +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.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/Markdown2.js +1 -1
- package/esm/components/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +41 -40
- package/esm/components/NumberInput.js +1 -1
- package/esm/components/Pagination.js +1 -1
- package/esm/components/Picker.js +1 -1
- package/esm/components/PickerColumn.js +1 -1
- package/esm/components/PickerContainer.js +1 -1
- package/esm/components/PopOverContainer.js +1 -1
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.js +1 -1
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.js +1 -1
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.js +1 -1
- package/esm/components/RichText2.js +1 -1
- package/esm/components/SearchBox.d.ts +127 -42
- package/esm/components/SearchBox.js +183 -20
- package/esm/components/Select.d.ts +388 -194
- package/esm/components/Select.js +10 -19
- 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.d.ts +10 -10
- 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 +12 -10
- package/esm/components/Tag.js +16 -5
- 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 +1 -1
- package/esm/components/Tinymce2.js +1 -1
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.js +1 -1
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.js +1 -1
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.js +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.js +1 -1
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.js +1 -1
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.js +1 -1
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/Formula.js +1 -1
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.js +1 -1
- package/esm/components/condition-builder/GroupOrItem.js +1 -1
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.js +1 -1
- package/esm/components/condition-builder/Value.js +1 -1
- package/esm/components/condition-builder/config.js +1 -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/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 +3 -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/schema-editor/Array.js +1 -1
- package/esm/components/schema-editor/Common.js +1 -1
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.js +1 -1
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.js +1 -1
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.js +1 -1
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.js +1 -1
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/index.js +1 -1
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-touch.js +1 -1
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +1 -1
- package/esm/icons/alert-danger.svg.js +1 -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/download.svg.js +1 -1
- package/esm/icons/drag-bar.svg.js +1 -1
- package/esm/icons/drag.svg.js +1 -1
- package/esm/icons/edit.svg.js +1 -1
- package/esm/icons/ellipsis-v.svg.js +1 -1
- package/esm/icons/enter.svg.js +1 -1
- package/esm/icons/exchange.svg.js +1 -1
- package/esm/icons/expand-alt.svg.js +1 -1
- package/esm/icons/fail.svg.js +1 -1
- package/esm/icons/file.svg.js +1 -1
- package/esm/icons/filter.svg.js +1 -1
- package/esm/icons/folder.svg.js +1 -1
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +1 -1
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/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/role.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/status-fail.svg.js +1 -1
- package/esm/icons/status-info.svg.js +1 -1
- package/esm/icons/status-success.svg.js +1 -1
- package/esm/icons/status-warning.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 +2 -1
- package/esm/locale/en-US.js +2 -1
- package/esm/locale/zh-CN.js +2 -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.js +1 -1
- package/lib/components/Alert2.js +1 -1
- package/lib/components/AnchorNav.d.ts +9 -2
- package/lib/components/AnchorNav.js +25 -6
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.js +1 -1
- 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/BarCode2.js +1 -1
- package/lib/components/Breadcrumb.js +1 -1
- 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/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/CityDB2.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/ColorPicker2.js +1 -1
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +41 -40
- package/lib/components/DatePicker.js +3 -3
- package/lib/components/DateRangePicker.d.ts +44 -41
- package/lib/components/DateRangePicker.js +28 -11
- package/lib/components/Drawer.js +1 -1
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.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.js +1 -1
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.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/Markdown2.js +1 -1
- package/lib/components/Modal.js +1 -1
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +41 -40
- package/lib/components/NumberInput.js +1 -1
- package/lib/components/Pagination.js +1 -1
- package/lib/components/Picker.js +1 -1
- package/lib/components/PickerColumn.js +1 -1
- package/lib/components/PickerContainer.js +1 -1
- package/lib/components/PopOverContainer.js +1 -1
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.js +1 -1
- 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.js +1 -1
- package/lib/components/ResultList.js +3 -3
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.js +8 -8
- package/lib/components/RichText.js +1 -1
- package/lib/components/RichText2.js +1 -1
- package/lib/components/SearchBox.d.ts +127 -42
- package/lib/components/SearchBox.js +185 -19
- package/lib/components/Select.d.ts +388 -194
- package/lib/components/Select.js +10 -19
- 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.js +1 -1
- package/lib/components/Tabs.d.ts +10 -10
- package/lib/components/Tabs.js +1 -1
- package/lib/components/TabsTransfer.js +1 -1
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +12 -10
- package/lib/components/Tag.js +16 -5
- 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 +1 -1
- package/lib/components/Tinymce2.js +1 -1
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.js +7 -7
- package/lib/components/TransferDropDown.js +1 -1
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +3 -3
- package/lib/components/Tree.js +1 -1
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.js +1 -1
- 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.js +1 -1
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.js +1 -1
- package/lib/components/calendar/MonthsView.js +1 -1
- package/lib/components/calendar/QuartersView.js +1 -1
- package/lib/components/calendar/TimeView.js +1 -1
- package/lib/components/calendar/YearsView.js +1 -1
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.js +1 -1
- package/lib/components/condition-builder/Formula.js +1 -1
- package/lib/components/condition-builder/Func.js +1 -1
- package/lib/components/condition-builder/Group.js +1 -1
- package/lib/components/condition-builder/GroupOrItem.js +1 -1
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.js +1 -1
- package/lib/components/condition-builder/Value.js +1 -1
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.js +1 -1
- package/lib/components/formula/Editor.js +1 -1
- package/lib/components/formula/FuncList.js +1 -1
- 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 +3 -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/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/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.js +1 -1
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.js +1 -1
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/index.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 +1 -0
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +1 -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/download.svg.js +1 -1
- package/lib/icons/drag-bar.svg.js +1 -1
- package/lib/icons/drag.svg.js +1 -1
- package/lib/icons/edit.svg.js +1 -1
- package/lib/icons/ellipsis-v.svg.js +1 -1
- package/lib/icons/enter.svg.js +1 -1
- package/lib/icons/exchange.svg.js +1 -1
- package/lib/icons/expand-alt.svg.js +1 -1
- package/lib/icons/fail.svg.js +1 -1
- package/lib/icons/file.svg.js +1 -1
- package/lib/icons/filter.svg.js +1 -1
- package/lib/icons/folder.svg.js +1 -1
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/image.svg.js +1 -1
- package/lib/icons/info-circle.svg.js +1 -1
- package/lib/icons/info.svg.js +1 -1
- package/lib/icons/input-clear.svg.js +1 -1
- package/lib/icons/invisible.svg.js +1 -1
- package/lib/icons/left-arrow.svg.js +1 -1
- package/lib/icons/loading-outline.svg.js +1 -1
- package/lib/icons/location.svg.js +1 -1
- package/lib/icons/menu.svg.js +1 -1
- package/lib/icons/minus.svg.js +1 -1
- package/lib/icons/move.svg.js +1 -1
- package/lib/icons/mute.svg.js +1 -1
- package/lib/icons/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/role.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/status-fail.svg.js +1 -1
- package/lib/icons/status-info.svg.js +1 -1
- package/lib/icons/status-success.svg.js +1 -1
- package/lib/icons/status-warning.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 +2 -1
- package/lib/locale/en-US.js +2 -1
- package/lib/locale/zh-CN.js +2 -1
- package/lib/scss/helper.scss.js +1 -1
- package/lib/scss/helper.scss2.js +1 -1
- package/lib/scss/themes/ang.scss.js +1 -1
- package/lib/scss/themes/ang.scss2.js +1 -1
- package/lib/scss/themes/antd.scss.js +1 -1
- package/lib/scss/themes/antd.scss2.js +1 -1
- package/lib/scss/themes/cxd.scss.js +1 -1
- package/lib/scss/themes/cxd.scss2.js +1 -1
- package/lib/scss/themes/dark.scss.js +1 -1
- package/lib/scss/themes/dark.scss2.js +1 -1
- package/lib/scss/themes/default.scss.js +1 -1
- package/lib/scss/themes/default.scss2.js +1 -1
- package/lib/themes/ang.css +367 -54
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +367 -54
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +367 -54
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +367 -54
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +367 -54
- package/package.json +4 -4
- package/scss/_properties.scss +5 -0
- package/scss/components/_calendar.scss +32 -14
- package/scss/components/_log.scss +44 -16
- package/scss/components/_result-box.scss +1 -3
- package/scss/components/_search-box.scss +116 -10
- package/scss/components/_table.scss +9 -1
- package/scss/components/_tag.scss +12 -3
- package/scss/components/form/_form.scss +5 -0
package/lib/components/Select.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.0.
|
|
2
|
+
* amis-ui v2.0.1
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -407,15 +407,10 @@ var Select = /** @class */ (function (_super) {
|
|
|
407
407
|
e.stopPropagation();
|
|
408
408
|
onDelete && onDelete(item);
|
|
409
409
|
};
|
|
410
|
-
Select.prototype.menuItemRef = function (ref) {
|
|
411
|
-
if (ref && typeof ref.offsetHeight === 'number' && ref > 0) {
|
|
412
|
-
this.setState({ itemHeight: ref.offsetHeight });
|
|
413
|
-
}
|
|
414
|
-
};
|
|
415
410
|
Select.prototype.renderValue = function (_a) {
|
|
416
411
|
var _this = this;
|
|
417
412
|
_a.inputValue; _a.isOpen;
|
|
418
|
-
var _b = this.props, cx = _b.classnames, multiple = _b.multiple, valuesNoWrap = _b.valuesNoWrap, placeholder = _b.placeholder, labelField = _b.labelField, disabled = _b.disabled, maxTagCount = _b.maxTagCount, overflowTagPopover = _b.overflowTagPopover, __ = _b.translate;
|
|
413
|
+
var _b = this.props, cx = _b.classnames, multiple = _b.multiple, valuesNoWrap = _b.valuesNoWrap, placeholder = _b.placeholder, labelField = _b.labelField, disabled = _b.disabled, maxTagCount = _b.maxTagCount, overflowTagPopover = _b.overflowTagPopover, showInvalidMatch = _b.showInvalidMatch, __ = _b.translate;
|
|
419
414
|
var selection = this.state.selection;
|
|
420
415
|
if (!selection.length) {
|
|
421
416
|
return (React__default["default"].createElement("div", { key: "placeholder", className: cx('Select-placeholder') }, __(placeholder)));
|
|
@@ -437,7 +432,9 @@ var Select = /** @class */ (function (_super) {
|
|
|
437
432
|
var itemIndex = index + maxVisibleCount_1;
|
|
438
433
|
return (React__default["default"].createElement("div", { key: itemIndex, className: cx('Select-value', {
|
|
439
434
|
'is-disabled': disabled,
|
|
440
|
-
'is-invalid':
|
|
435
|
+
'is-invalid': showInvalidMatch
|
|
436
|
+
? item.__unmatched
|
|
437
|
+
: false
|
|
441
438
|
}) },
|
|
442
439
|
React__default["default"].createElement("span", { className: cx('Select-valueLabel') }, item[labelField || 'label']),
|
|
443
440
|
React__default["default"].createElement("span", { className: cx('Select-valueIcon', {
|
|
@@ -447,7 +444,7 @@ var Select = /** @class */ (function (_super) {
|
|
|
447
444
|
}))); } }) },
|
|
448
445
|
React__default["default"].createElement("div", { className: cx('Select-value', {
|
|
449
446
|
'is-disabled': disabled,
|
|
450
|
-
'is-invalid': item.__unmatched
|
|
447
|
+
'is-invalid': showInvalidMatch ? item.__unmatched : false
|
|
451
448
|
}), onClick: function (e) {
|
|
452
449
|
return e.stopPropagation();
|
|
453
450
|
} },
|
|
@@ -456,7 +453,7 @@ var Select = /** @class */ (function (_super) {
|
|
|
456
453
|
return (React__default["default"].createElement(TooltipWrapper["default"], { placement: 'top', tooltip: item[labelField || 'label'], trigger: 'hover', key: index },
|
|
457
454
|
React__default["default"].createElement("div", { className: cx('Select-value', {
|
|
458
455
|
'is-disabled': disabled,
|
|
459
|
-
'is-invalid': item.__unmatched
|
|
456
|
+
'is-invalid': showInvalidMatch ? item.__unmatched : false
|
|
460
457
|
}) },
|
|
461
458
|
React__default["default"].createElement("span", { className: cx('Select-valueLabel') }, item[labelField || 'label']),
|
|
462
459
|
React__default["default"].createElement("span", { className: cx('Select-valueIcon', {
|
|
@@ -469,13 +466,13 @@ var Select = /** @class */ (function (_super) {
|
|
|
469
466
|
if (!multiple) {
|
|
470
467
|
return (React__default["default"].createElement("div", { className: cx('Select-value', {
|
|
471
468
|
'is-disabled': disabled,
|
|
472
|
-
'is-invalid': item.__unmatched
|
|
469
|
+
'is-invalid': showInvalidMatch ? item.__unmatched : false
|
|
473
470
|
}), key: index }, item[labelField || 'label']));
|
|
474
471
|
}
|
|
475
472
|
return valuesNoWrap ? ("".concat(item[labelField || 'label']).concat(index === selection.length - 1 ? '' : ' + ')) : (React__default["default"].createElement(TooltipWrapper["default"], { placement: 'top', tooltip: item[labelField || 'label'], trigger: 'hover', key: index },
|
|
476
473
|
React__default["default"].createElement("div", { className: cx('Select-value', {
|
|
477
474
|
'is-disabled': disabled,
|
|
478
|
-
'is-invalid': item.__unmatched
|
|
475
|
+
'is-invalid': showInvalidMatch ? item.__unmatched : false
|
|
479
476
|
}) },
|
|
480
477
|
React__default["default"].createElement("span", { className: cx('Select-valueLabel') }, item[labelField || 'label']),
|
|
481
478
|
React__default["default"].createElement("span", { className: cx('Select-valueIcon', {
|
|
@@ -588,7 +585,6 @@ var Select = /** @class */ (function (_super) {
|
|
|
588
585
|
")")) : null,
|
|
589
586
|
multiple && checkAll && filtedOptions.length ? (React__default["default"].createElement("div", { className: cx('Select-option') },
|
|
590
587
|
React__default["default"].createElement(Checkbox["default"], { checked: checkedPartial, partial: checkedPartial && !checkedAll, onChange: this.toggleCheckAll, size: "sm" }, __(checkAllLabel)))) : null,
|
|
591
|
-
React__default["default"].createElement("div", { ref: this.menuItemRef, className: cx('Select-option hidden') }, multiple ? (React__default["default"].createElement(Checkbox["default"], { size: "sm" }, "Placeholder")) : (React__default["default"].createElement("span", null, "Placeholder"))),
|
|
592
588
|
creatable && !disabled ? (React__default["default"].createElement("a", { className: cx('Select-addBtn'), onClick: this.handleAddClick },
|
|
593
589
|
React__default["default"].createElement(icons.Icon, { icon: "plus", className: "icon" }),
|
|
594
590
|
__(createBtnLabel))) : null,
|
|
@@ -646,6 +642,7 @@ var Select = /** @class */ (function (_super) {
|
|
|
646
642
|
multiple: false,
|
|
647
643
|
clearable: true,
|
|
648
644
|
creatable: false,
|
|
645
|
+
showInvalidMatch: false,
|
|
649
646
|
createBtnLabel: 'Select.createLabel',
|
|
650
647
|
searchPromptText: 'Select.searchPromptText',
|
|
651
648
|
loadingPlaceholder: 'loading',
|
|
@@ -784,12 +781,6 @@ var Select = /** @class */ (function (_super) {
|
|
|
784
781
|
tslib.__metadata("design:paramtypes", [Event, Object]),
|
|
785
782
|
tslib.__metadata("design:returntype", void 0)
|
|
786
783
|
], Select.prototype, "handleDeleteClick", null);
|
|
787
|
-
tslib.__decorate([
|
|
788
|
-
amisCore.autobind,
|
|
789
|
-
tslib.__metadata("design:type", Function),
|
|
790
|
-
tslib.__metadata("design:paramtypes", [Object]),
|
|
791
|
-
tslib.__metadata("design:returntype", void 0)
|
|
792
|
-
], Select.prototype, "menuItemRef", null);
|
|
793
784
|
return Select;
|
|
794
785
|
}(React__default["default"].Component));
|
|
795
786
|
var EnhancedSelect = amisCore.themeable(amisCore.localeable(amisCore.uncontrollable(Select, {
|
package/lib/components/Steps.js
CHANGED
package/lib/components/Switch.js
CHANGED
package/lib/components/Tabs.d.ts
CHANGED
|
@@ -170,15 +170,15 @@ export declare class Tabs extends React.Component<TabsProps, any> {
|
|
|
170
170
|
render(): JSX.Element | null;
|
|
171
171
|
}
|
|
172
172
|
declare const _default: {
|
|
173
|
-
new (props: Pick<Omit<TabsProps, keyof ThemeProps>, "
|
|
173
|
+
new (props: Pick<Omit<TabsProps, keyof ThemeProps>, "toolbar" | "onClose" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">, never>> & import("amis-core/lib/theme").ThemeOutterProps): {
|
|
174
174
|
ref: any;
|
|
175
175
|
childRef(ref: any): void;
|
|
176
176
|
getWrappedInstance(): any;
|
|
177
177
|
render(): JSX.Element;
|
|
178
178
|
context: any;
|
|
179
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "
|
|
179
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "toolbar" | "onClose" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">, never>> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
180
180
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
181
|
-
readonly props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "
|
|
181
|
+
readonly props: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "toolbar" | "onClose" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">, never>> & import("amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
182
182
|
children?: React.ReactNode;
|
|
183
183
|
}>;
|
|
184
184
|
state: Readonly<{}>;
|
|
@@ -186,17 +186,17 @@ declare const _default: {
|
|
|
186
186
|
[key: string]: React.ReactInstance;
|
|
187
187
|
};
|
|
188
188
|
componentDidMount?(): void;
|
|
189
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "
|
|
189
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "toolbar" | "onClose" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
190
190
|
componentWillUnmount?(): void;
|
|
191
191
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
192
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "
|
|
193
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "
|
|
192
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "toolbar" | "onClose" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
193
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "toolbar" | "onClose" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
194
194
|
componentWillMount?(): void;
|
|
195
195
|
UNSAFE_componentWillMount?(): void;
|
|
196
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "
|
|
197
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "
|
|
198
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "
|
|
199
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "
|
|
196
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "toolbar" | "onClose" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
197
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "toolbar" | "onClose" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
198
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "toolbar" | "onClose" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
199
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TabsProps, keyof ThemeProps>, "toolbar" | "onClose" | "draggable" | "onSelect" | "onAdd" | "editable" | "onEdit" | "activeKey" | "tabsMode" | "additionBtns" | "linksClassName" | "tabs" | "tabRender" | "addable" | "closable" | "onDragChange" | "scrollable"> & Partial<Pick<Omit<TabsProps, keyof ThemeProps>, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">> & Partial<Pick<Pick<TabsProps, "contentClassName" | "mode" | "showTip" | "showTipClassName" | "sidePosition" | "addBtnText">, never>> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
200
200
|
};
|
|
201
201
|
displayName: string;
|
|
202
202
|
contextType: React.Context<string>;
|
package/lib/components/Tabs.js
CHANGED
package/lib/components/Tag.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export interface TagProps extends ThemeProps {
|
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
closeIcon?: string | React.ReactNode;
|
|
16
16
|
onClose?: (e: React.MouseEvent) => void;
|
|
17
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
17
18
|
}
|
|
18
19
|
export interface CheckableTagProps extends TagProps {
|
|
19
20
|
onClick?: (e: React.MouseEvent) => void;
|
|
@@ -25,6 +26,7 @@ export declare class Tag extends React.Component<TagProps> {
|
|
|
25
26
|
static defaultProps: Partial<TagProps>;
|
|
26
27
|
renderCloseIcon(): JSX.Element | null;
|
|
27
28
|
handleClose(e: React.MouseEvent<HTMLElement>): void;
|
|
29
|
+
handleClick(e: React.MouseEvent<HTMLElement>): void;
|
|
28
30
|
render(): JSX.Element;
|
|
29
31
|
}
|
|
30
32
|
declare class CheckableTagComp extends React.Component<CheckableTagProps> {
|
|
@@ -67,15 +69,15 @@ export declare const CheckableTag: {
|
|
|
67
69
|
ComposedComponent: typeof CheckableTagComp;
|
|
68
70
|
};
|
|
69
71
|
declare const _default: {
|
|
70
|
-
new (props: Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "
|
|
72
|
+
new (props: Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "color" | "onClose" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps): {
|
|
71
73
|
ref: any;
|
|
72
74
|
childRef(ref: any): void;
|
|
73
75
|
getWrappedInstance(): any;
|
|
74
76
|
render(): JSX.Element;
|
|
75
77
|
context: any;
|
|
76
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "
|
|
78
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "color" | "onClose" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
77
79
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
78
|
-
readonly props: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "
|
|
80
|
+
readonly props: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "color" | "onClose" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
79
81
|
children?: React.ReactNode;
|
|
80
82
|
}>;
|
|
81
83
|
state: Readonly<{}>;
|
|
@@ -83,17 +85,17 @@ declare const _default: {
|
|
|
83
85
|
[key: string]: React.ReactInstance;
|
|
84
86
|
};
|
|
85
87
|
componentDidMount?(): void;
|
|
86
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "
|
|
88
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "color" | "onClose" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
87
89
|
componentWillUnmount?(): void;
|
|
88
90
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
89
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "
|
|
90
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "
|
|
91
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "color" | "onClose" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
92
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "color" | "onClose" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
91
93
|
componentWillMount?(): void;
|
|
92
94
|
UNSAFE_componentWillMount?(): void;
|
|
93
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "
|
|
94
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "
|
|
95
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "
|
|
96
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "
|
|
95
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "color" | "onClose" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
96
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "color" | "onClose" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
97
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "color" | "onClose" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
98
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "color" | "onClose" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
97
99
|
};
|
|
98
100
|
displayName: string;
|
|
99
101
|
contextType: React.Context<string>;
|
package/lib/components/Tag.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.0.
|
|
2
|
+
* amis-ui v2.0.1
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -45,9 +45,13 @@ var Tag = /** @class */ (function (_super) {
|
|
|
45
45
|
e.stopPropagation();
|
|
46
46
|
onClose === null || onClose === void 0 ? void 0 : onClose(e);
|
|
47
47
|
};
|
|
48
|
+
Tag.prototype.handleClick = function (e) {
|
|
49
|
+
var onClick = this.props.onClick;
|
|
50
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
51
|
+
};
|
|
48
52
|
Tag.prototype.render = function () {
|
|
49
53
|
var _a;
|
|
50
|
-
var _b = this.props, children = _b.children, cx = _b.classnames, className = _b.className, displayMode = _b.displayMode, disabled = _b.disabled, color = _b.color, icon = _b.icon, style = _b.style, label = _b.label;
|
|
54
|
+
var _b = this.props, children = _b.children, cx = _b.classnames, className = _b.className, displayMode = _b.displayMode, disabled = _b.disabled, color = _b.color, icon = _b.icon, style = _b.style, label = _b.label; _b.closable;
|
|
51
55
|
var isPresetColor = color && PRESET_COLOR.indexOf(color) !== -1;
|
|
52
56
|
var customColor = color && !isPresetColor ? color : undefined;
|
|
53
57
|
var tagStyle = tslib.__assign({ backgroundColor: displayMode === 'normal' ? customColor : undefined, borderColor: displayMode === 'rounded' ? customColor : undefined, color: displayMode === 'rounded' ? customColor : undefined }, style);
|
|
@@ -56,9 +60,10 @@ var Tag = /** @class */ (function (_super) {
|
|
|
56
60
|
_a["Tag--".concat(displayMode, "--").concat(color)] = isPresetColor,
|
|
57
61
|
_a["Tag--".concat(displayMode, "--hasColor")] = color,
|
|
58
62
|
_a["Tag--disabled"] = disabled,
|
|
59
|
-
_a)), style: tagStyle },
|
|
60
|
-
|
|
61
|
-
|
|
63
|
+
_a)), style: tagStyle, onClick: this.handleClick },
|
|
64
|
+
React__default["default"].createElement("span", { className: cx('Tag-text') },
|
|
65
|
+
prevIcon,
|
|
66
|
+
label || children),
|
|
62
67
|
this.renderCloseIcon()));
|
|
63
68
|
};
|
|
64
69
|
Tag.defaultProps = {
|
|
@@ -70,6 +75,12 @@ var Tag = /** @class */ (function (_super) {
|
|
|
70
75
|
tslib.__metadata("design:paramtypes", [Object]),
|
|
71
76
|
tslib.__metadata("design:returntype", void 0)
|
|
72
77
|
], Tag.prototype, "handleClose", null);
|
|
78
|
+
tslib.__decorate([
|
|
79
|
+
amisCore.autobind,
|
|
80
|
+
tslib.__metadata("design:type", Function),
|
|
81
|
+
tslib.__metadata("design:paramtypes", [Object]),
|
|
82
|
+
tslib.__metadata("design:returntype", void 0)
|
|
83
|
+
], Tag.prototype, "handleClick", null);
|
|
73
84
|
return Tag;
|
|
74
85
|
}(React__default["default"].Component));
|
|
75
86
|
var CheckableTagComp = /** @class */ (function (_super) {
|
package/lib/components/Toast.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.0.
|
|
2
|
+
* amis-ui v2.0.1
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
|
|
10
10
|
var tslib = require('tslib');
|
|
11
11
|
var React = require('react');
|
|
12
|
-
var
|
|
12
|
+
var _ = require('lodash');
|
|
13
13
|
var amisCore = require('amis-core');
|
|
14
14
|
var Selection = require('./Selection.js');
|
|
15
15
|
var ResultList = require('./ResultList.js');
|
|
@@ -39,7 +39,7 @@ var Transfer = /** @class */ (function (_super) {
|
|
|
39
39
|
resultSelectMode: 'list'
|
|
40
40
|
};
|
|
41
41
|
_this.unmounted = false;
|
|
42
|
-
_this.lazySearch =
|
|
42
|
+
_this.lazySearch = _.debounce(function () { return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
43
43
|
var inputValue, onSearch, result;
|
|
44
44
|
var _this = this;
|
|
45
45
|
return tslib.__generator(this, function (_a) {
|
|
@@ -177,8 +177,8 @@ var Transfer = /** @class */ (function (_super) {
|
|
|
177
177
|
Transfer.prototype.handleSearchTreeChange = function (values, searchOptions) {
|
|
178
178
|
var _a = this.props, onChange = _a.onChange, value = _a.value;
|
|
179
179
|
var searchAvailableOptions = this.getFlattenArr(searchOptions);
|
|
180
|
-
var useArr =
|
|
181
|
-
var unuseArr =
|
|
180
|
+
var useArr = _.intersectionWith(searchAvailableOptions, values, function (a, b) { return a.value === b.value; });
|
|
181
|
+
var unuseArr = _.differenceWith(searchAvailableOptions, values, function (a, b) { return a.value === b.value; });
|
|
182
182
|
var newArr = [];
|
|
183
183
|
Array.isArray(value) &&
|
|
184
184
|
value.forEach(function (item) {
|
|
@@ -206,7 +206,7 @@ var Transfer = /** @class */ (function (_super) {
|
|
|
206
206
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
207
207
|
React__default["default"].createElement("div", { className: cx('Transfer-title', selectMode === 'table' ? 'Transfer-title--light' : '') },
|
|
208
208
|
React__default["default"].createElement("span", null,
|
|
209
|
-
|
|
209
|
+
_.includes(['list', 'tree'], selectMode) ? (React__default["default"].createElement(Checkbox["default"], { checked: checkedPartial, partial: checkedPartial && !checkedAll, onChange: props.onToggleAll || this.toggleAll, size: "sm" })) : null,
|
|
210
210
|
__(selectTitle || 'Transfer.available'),
|
|
211
211
|
statistics !== false ? (React__default["default"].createElement("span", null,
|
|
212
212
|
"\uFF08",
|
|
@@ -214,7 +214,7 @@ var Transfer = /** @class */ (function (_super) {
|
|
|
214
214
|
"/",
|
|
215
215
|
this.availableOptions.length,
|
|
216
216
|
"\uFF09")) : null),
|
|
217
|
-
|
|
217
|
+
_.includes(['chained', 'associated'], selectMode) ? (React__default["default"].createElement("a", { onClick: props.onToggleAll || this.toggleAll, className: cx('Transfer-checkAll', disabled || !options.length ? 'is-disabled' : '') }, __('Select.checkAll'))) : null),
|
|
218
218
|
onSearch ? (React__default["default"].createElement("div", { className: cx('Transfer-search') },
|
|
219
219
|
React__default["default"].createElement(InputBox["default"], { value: this.state.inputValue, onChange: this.handleSearch, clearable: false, onKeyDown: this.handleSearchKeyDown, placeholder: searchPlaceholder }, this.state.searchResult !== null ? (React__default["default"].createElement("a", { onClick: this.handleSeachCancel },
|
|
220
220
|
React__default["default"].createElement(icons.Icon, { icon: "close", className: "icon" }))) : (React__default["default"].createElement(icons.Icon, { icon: "search", className: "icon" }))))) : null,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.0.
|
|
2
|
+
* amis-ui v2.0.1
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
|
|
10
10
|
var tslib = require('tslib');
|
|
11
11
|
var React = require('react');
|
|
12
|
-
var
|
|
12
|
+
var _ = require('lodash');
|
|
13
13
|
var amisCore = require('amis-core');
|
|
14
14
|
var icons = require('./icons.js');
|
|
15
15
|
var InputBox = require('./InputBox.js');
|
|
@@ -25,7 +25,7 @@ var TransferSearch = /** @class */ (function (_super) {
|
|
|
25
25
|
_this.state = {
|
|
26
26
|
inputValue: ''
|
|
27
27
|
};
|
|
28
|
-
_this.lazySearch =
|
|
28
|
+
_this.lazySearch = _.debounce(function () {
|
|
29
29
|
var inputValue = _this.state.inputValue;
|
|
30
30
|
// 防止由于防抖导致空值问题
|
|
31
31
|
if (!inputValue) {
|
package/lib/components/Tree.js
CHANGED