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/esm/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
|
|
|
@@ -394,15 +394,10 @@ var Select = /** @class */ (function (_super) {
|
|
|
394
394
|
e.stopPropagation();
|
|
395
395
|
onDelete && onDelete(item);
|
|
396
396
|
};
|
|
397
|
-
Select.prototype.menuItemRef = function (ref) {
|
|
398
|
-
if (ref && typeof ref.offsetHeight === 'number' && ref > 0) {
|
|
399
|
-
this.setState({ itemHeight: ref.offsetHeight });
|
|
400
|
-
}
|
|
401
|
-
};
|
|
402
397
|
Select.prototype.renderValue = function (_a) {
|
|
403
398
|
var _this = this;
|
|
404
399
|
_a.inputValue; _a.isOpen;
|
|
405
|
-
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;
|
|
400
|
+
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;
|
|
406
401
|
var selection = this.state.selection;
|
|
407
402
|
if (!selection.length) {
|
|
408
403
|
return (React__default.createElement("div", { key: "placeholder", className: cx('Select-placeholder') }, __(placeholder)));
|
|
@@ -424,7 +419,9 @@ var Select = /** @class */ (function (_super) {
|
|
|
424
419
|
var itemIndex = index + maxVisibleCount_1;
|
|
425
420
|
return (React__default.createElement("div", { key: itemIndex, className: cx('Select-value', {
|
|
426
421
|
'is-disabled': disabled,
|
|
427
|
-
'is-invalid':
|
|
422
|
+
'is-invalid': showInvalidMatch
|
|
423
|
+
? item.__unmatched
|
|
424
|
+
: false
|
|
428
425
|
}) },
|
|
429
426
|
React__default.createElement("span", { className: cx('Select-valueLabel') }, item[labelField || 'label']),
|
|
430
427
|
React__default.createElement("span", { className: cx('Select-valueIcon', {
|
|
@@ -434,7 +431,7 @@ var Select = /** @class */ (function (_super) {
|
|
|
434
431
|
}))); } }) },
|
|
435
432
|
React__default.createElement("div", { className: cx('Select-value', {
|
|
436
433
|
'is-disabled': disabled,
|
|
437
|
-
'is-invalid': item.__unmatched
|
|
434
|
+
'is-invalid': showInvalidMatch ? item.__unmatched : false
|
|
438
435
|
}), onClick: function (e) {
|
|
439
436
|
return e.stopPropagation();
|
|
440
437
|
} },
|
|
@@ -443,7 +440,7 @@ var Select = /** @class */ (function (_super) {
|
|
|
443
440
|
return (React__default.createElement(TooltipWrapper, { placement: 'top', tooltip: item[labelField || 'label'], trigger: 'hover', key: index },
|
|
444
441
|
React__default.createElement("div", { className: cx('Select-value', {
|
|
445
442
|
'is-disabled': disabled,
|
|
446
|
-
'is-invalid': item.__unmatched
|
|
443
|
+
'is-invalid': showInvalidMatch ? item.__unmatched : false
|
|
447
444
|
}) },
|
|
448
445
|
React__default.createElement("span", { className: cx('Select-valueLabel') }, item[labelField || 'label']),
|
|
449
446
|
React__default.createElement("span", { className: cx('Select-valueIcon', {
|
|
@@ -456,13 +453,13 @@ var Select = /** @class */ (function (_super) {
|
|
|
456
453
|
if (!multiple) {
|
|
457
454
|
return (React__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
|
}), key: index }, item[labelField || 'label']));
|
|
461
458
|
}
|
|
462
459
|
return valuesNoWrap ? ("".concat(item[labelField || 'label']).concat(index === selection.length - 1 ? '' : ' + ')) : (React__default.createElement(TooltipWrapper, { placement: 'top', tooltip: item[labelField || 'label'], trigger: 'hover', key: index },
|
|
463
460
|
React__default.createElement("div", { className: cx('Select-value', {
|
|
464
461
|
'is-disabled': disabled,
|
|
465
|
-
'is-invalid': item.__unmatched
|
|
462
|
+
'is-invalid': showInvalidMatch ? item.__unmatched : false
|
|
466
463
|
}) },
|
|
467
464
|
React__default.createElement("span", { className: cx('Select-valueLabel') }, item[labelField || 'label']),
|
|
468
465
|
React__default.createElement("span", { className: cx('Select-valueIcon', {
|
|
@@ -575,7 +572,6 @@ var Select = /** @class */ (function (_super) {
|
|
|
575
572
|
")")) : null,
|
|
576
573
|
multiple && checkAll && filtedOptions.length ? (React__default.createElement("div", { className: cx('Select-option') },
|
|
577
574
|
React__default.createElement(Checkbox, { checked: checkedPartial, partial: checkedPartial && !checkedAll, onChange: this.toggleCheckAll, size: "sm" }, __(checkAllLabel)))) : null,
|
|
578
|
-
React__default.createElement("div", { ref: this.menuItemRef, className: cx('Select-option hidden') }, multiple ? (React__default.createElement(Checkbox, { size: "sm" }, "Placeholder")) : (React__default.createElement("span", null, "Placeholder"))),
|
|
579
575
|
creatable && !disabled ? (React__default.createElement("a", { className: cx('Select-addBtn'), onClick: this.handleAddClick },
|
|
580
576
|
React__default.createElement(Icon, { icon: "plus", className: "icon" }),
|
|
581
577
|
__(createBtnLabel))) : null,
|
|
@@ -633,6 +629,7 @@ var Select = /** @class */ (function (_super) {
|
|
|
633
629
|
multiple: false,
|
|
634
630
|
clearable: true,
|
|
635
631
|
creatable: false,
|
|
632
|
+
showInvalidMatch: false,
|
|
636
633
|
createBtnLabel: 'Select.createLabel',
|
|
637
634
|
searchPromptText: 'Select.searchPromptText',
|
|
638
635
|
loadingPlaceholder: 'loading',
|
|
@@ -771,12 +768,6 @@ var Select = /** @class */ (function (_super) {
|
|
|
771
768
|
__metadata("design:paramtypes", [Event, Object]),
|
|
772
769
|
__metadata("design:returntype", void 0)
|
|
773
770
|
], Select.prototype, "handleDeleteClick", null);
|
|
774
|
-
__decorate([
|
|
775
|
-
autobind,
|
|
776
|
-
__metadata("design:type", Function),
|
|
777
|
-
__metadata("design:paramtypes", [Object]),
|
|
778
|
-
__metadata("design:returntype", void 0)
|
|
779
|
-
], Select.prototype, "menuItemRef", null);
|
|
780
771
|
return Select;
|
|
781
772
|
}(React__default.Component));
|
|
782
773
|
var EnhancedSelect = themeable(localeable(uncontrollable(Select, {
|
package/esm/components/Steps.js
CHANGED
package/esm/components/Switch.js
CHANGED
package/esm/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/esm/components/Tabs.js
CHANGED
package/esm/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/esm/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
|
|
|
@@ -37,9 +37,13 @@ var Tag = /** @class */ (function (_super) {
|
|
|
37
37
|
e.stopPropagation();
|
|
38
38
|
onClose === null || onClose === void 0 ? void 0 : onClose(e);
|
|
39
39
|
};
|
|
40
|
+
Tag.prototype.handleClick = function (e) {
|
|
41
|
+
var onClick = this.props.onClick;
|
|
42
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
43
|
+
};
|
|
40
44
|
Tag.prototype.render = function () {
|
|
41
45
|
var _a;
|
|
42
|
-
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;
|
|
46
|
+
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;
|
|
43
47
|
var isPresetColor = color && PRESET_COLOR.indexOf(color) !== -1;
|
|
44
48
|
var customColor = color && !isPresetColor ? color : undefined;
|
|
45
49
|
var tagStyle = __assign({ backgroundColor: displayMode === 'normal' ? customColor : undefined, borderColor: displayMode === 'rounded' ? customColor : undefined, color: displayMode === 'rounded' ? customColor : undefined }, style);
|
|
@@ -48,9 +52,10 @@ var Tag = /** @class */ (function (_super) {
|
|
|
48
52
|
_a["Tag--".concat(displayMode, "--").concat(color)] = isPresetColor,
|
|
49
53
|
_a["Tag--".concat(displayMode, "--hasColor")] = color,
|
|
50
54
|
_a["Tag--disabled"] = disabled,
|
|
51
|
-
_a)), style: tagStyle },
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
_a)), style: tagStyle, onClick: this.handleClick },
|
|
56
|
+
React__default.createElement("span", { className: cx('Tag-text') },
|
|
57
|
+
prevIcon,
|
|
58
|
+
label || children),
|
|
54
59
|
this.renderCloseIcon()));
|
|
55
60
|
};
|
|
56
61
|
Tag.defaultProps = {
|
|
@@ -62,6 +67,12 @@ var Tag = /** @class */ (function (_super) {
|
|
|
62
67
|
__metadata("design:paramtypes", [Object]),
|
|
63
68
|
__metadata("design:returntype", void 0)
|
|
64
69
|
], Tag.prototype, "handleClose", null);
|
|
70
|
+
__decorate([
|
|
71
|
+
autobind,
|
|
72
|
+
__metadata("design:type", Function),
|
|
73
|
+
__metadata("design:paramtypes", [Object]),
|
|
74
|
+
__metadata("design:returntype", void 0)
|
|
75
|
+
], Tag.prototype, "handleClick", null);
|
|
65
76
|
return Tag;
|
|
66
77
|
}(React__default.Component));
|
|
67
78
|
var CheckableTagComp = /** @class */ (function (_super) {
|
package/esm/components/Toast.js
CHANGED
package/esm/components/Tree.js
CHANGED