amis-ui 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.js +2 -2
- package/esm/components/AnchorNav.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.d.ts +1 -1
- package/esm/components/Badge.js +2 -4
- package/esm/components/BaiduMapPicker.js +3 -3
- package/esm/components/BarCode.js +1 -1
- package/esm/components/BarCode2.js +1 -1
- package/esm/components/Breadcrumb.js +2 -2
- 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 +43 -40
- package/esm/components/DatePicker.js +11 -4
- package/esm/components/DateRangePicker.d.ts +135 -82
- package/esm/components/DateRangePicker.js +115 -57
- package/esm/components/Drawer.d.ts +10 -10
- package/esm/components/Drawer.js +1 -1
- package/esm/components/Editor.d.ts +40 -40
- 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.d.ts +70 -40
- package/esm/components/ImageGallery.js +97 -15
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.js +1 -1
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Markdown2.js +1 -1
- package/esm/components/Modal.d.ts +42 -40
- package/esm/components/Modal.js +3 -3
- 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.d.ts +49 -66
- package/esm/components/Pagination.js +3 -3
- 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 +8 -4
- 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 +7 -3
- 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 +389 -194
- package/esm/components/Select.js +17 -22
- package/esm/components/Selection.js +1 -1
- package/esm/components/SparkLine.d.ts +40 -40
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.js +1 -1
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.js +1 -1
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.js +1 -3
- 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 +4 -2
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +3 -3
- package/esm/components/Tinymce.d.ts +1 -3
- package/esm/components/Tinymce.js +1 -1
- package/esm/components/Tinymce2.js +29 -12
- 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 +9 -2
- package/esm/components/TransferDropDown.js +2 -3
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.js +34 -33
- 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 +4 -2
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.js +14 -7
- 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.d.ts +1 -0
- package/esm/components/formula/plugin.js +11 -4
- package/esm/components/icons.d.ts +2 -1
- package/esm/components/icons.js +20 -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 +2 -2
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +2 -2
- package/esm/icons/alert-warning.svg.js +2 -2
- 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-circle.svg.js +36 -0
- 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 +2 -2
- package/esm/icons/down.svg.js +31 -0
- 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 -2
- 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 +7 -4
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +24 -0
- 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 +7 -4
- package/esm/icons/right-double-arrow.svg.js +24 -0
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +24 -0
- package/esm/icons/rotate-right.svg.js +24 -0
- package/esm/icons/scale-origin.svg.js +26 -0
- 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 +2 -2
- 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/steps-finsh.svg.js +24 -0
- package/esm/icons/success.svg.js +1 -1
- package/esm/icons/transparent.svg.js +1 -1
- package/esm/icons/trash.svg.js +1 -1
- package/esm/icons/tree-down.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/upload.svg.js +1 -1
- package/esm/icons/user-remove.svg.js +1 -1
- package/esm/icons/view.svg.js +1 -1
- package/esm/icons/volume.svg.js +1 -1
- package/esm/icons/warning-mark.svg.js +1 -1
- package/esm/icons/warning.svg.js +1 -1
- package/esm/icons/window-restore.svg.js +1 -1
- package/esm/icons/zoom-in.svg.js +1 -1
- package/esm/icons/zoom-out.svg.js +1 -1
- package/esm/index.js +2 -1
- package/esm/locale/de-DE.js +7 -1
- package/esm/locale/en-US.js +7 -1
- package/esm/locale/zh-CN.js +9 -3
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.d.ts +10 -10
- package/lib/components/Alert2.js +2 -2
- package/lib/components/AnchorNav.d.ts +19 -12
- package/lib/components/AnchorNav.js +25 -6
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +40 -40
- package/lib/components/AssociatedSelection.js +1 -1
- package/lib/components/Avatar.d.ts +10 -10
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.d.ts +1 -1
- package/lib/components/Badge.js +2 -4
- package/lib/components/BaiduMapPicker.js +3 -3
- package/lib/components/BarCode.js +1 -1
- package/lib/components/BarCode2.js +1 -1
- package/lib/components/Breadcrumb.js +2 -2
- package/lib/components/Button.d.ts +10 -10
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.d.ts +10 -10
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedSelection.d.ts +40 -40
- package/lib/components/ChainedSelection.js +1 -1
- package/lib/components/Checkbox.d.ts +10 -10
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CityArea.js +1 -1
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CityDB2.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.d.ts +10 -10
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/ColorPicker2.js +1 -1
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +43 -40
- package/lib/components/DatePicker.js +11 -4
- package/lib/components/DateRangePicker.d.ts +135 -82
- package/lib/components/DateRangePicker.js +114 -56
- package/lib/components/Drawer.d.ts +10 -10
- package/lib/components/Drawer.js +1 -1
- package/lib/components/Editor.d.ts +40 -40
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.d.ts +40 -40
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.d.ts +70 -40
- package/lib/components/ImageGallery.js +97 -14
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +40 -40
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.d.ts +40 -40
- package/lib/components/LocationPicker.js +1 -1
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Markdown2.js +1 -1
- package/lib/components/Modal.d.ts +42 -40
- package/lib/components/Modal.js +3 -3
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +41 -40
- package/lib/components/NumberInput.d.ts +10 -10
- package/lib/components/NumberInput.js +1 -1
- package/lib/components/Pagination.d.ts +49 -66
- package/lib/components/Pagination.js +3 -3
- package/lib/components/Picker.js +1 -1
- package/lib/components/PickerColumn.js +1 -1
- package/lib/components/PickerContainer.js +1 -1
- package/lib/components/PopOverContainer.js +1 -1
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +10 -10
- package/lib/components/Progress.js +8 -4
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.d.ts +10 -10
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.js +1 -1
- package/lib/components/Rating.d.ts +10 -10
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +40 -40
- package/lib/components/ResultBox.js +7 -3
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +3 -3
- package/lib/components/ResultTableList.d.ts +40 -40
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +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 +389 -194
- package/lib/components/Select.js +17 -22
- package/lib/components/Selection.d.ts +40 -40
- package/lib/components/Selection.js +1 -1
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.d.ts +10 -10
- package/lib/components/Spinner.js +1 -1
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +10 -10
- package/lib/components/Switch.js +1 -1
- package/lib/components/TableSelection.d.ts +40 -40
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +10 -10
- package/lib/components/Tabs.js +1 -3
- 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.d.ts +40 -40
- package/lib/components/Textarea.js +4 -2
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +3 -3
- package/lib/components/Tinymce.d.ts +1 -3
- package/lib/components/Tinymce.js +1 -1
- package/lib/components/Tinymce2.js +29 -12
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +40 -40
- package/lib/components/Transfer.js +15 -8
- package/lib/components/TransferDropDown.d.ts +40 -40
- package/lib/components/TransferDropDown.js +2 -3
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +3 -3
- package/lib/components/Tree.d.ts +40 -40
- package/lib/components/Tree.js +34 -33
- package/lib/components/TreeSelection.d.ts +40 -40
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.d.ts +40 -40
- package/lib/components/UserSelect.js +1 -1
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/WithRemoteConfig.js +1 -1
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.js +4 -2
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.js +14 -7
- 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.d.ts +40 -40
- package/lib/components/formula/Editor.js +1 -1
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Picker.d.ts +40 -40
- package/lib/components/formula/Picker.js +1 -1
- package/lib/components/formula/VariableList.js +1 -1
- package/lib/components/formula/plugin.d.ts +1 -0
- package/lib/components/formula/plugin.js +11 -4
- package/lib/components/icons.d.ts +2 -1
- package/lib/components/icons.js +20 -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.d.ts +40 -40
- package/lib/components/schema-editor/index.js +1 -1
- package/lib/components/table/Cell.d.ts +40 -40
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.js +1 -1
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.js +1 -1
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/index.d.ts +40 -40
- package/lib/components/table/index.js +1 -1
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +1 -1
- 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 +2 -2
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +2 -2
- package/lib/icons/alert-warning.svg.js +2 -2
- 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-circle.svg.js +60 -0
- 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 +2 -2
- package/lib/icons/down.svg.js +55 -0
- 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 -2
- 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 +7 -4
- package/lib/icons/loading-outline.svg.js +1 -1
- package/lib/icons/location.svg.js +1 -1
- package/lib/icons/menu.svg.js +1 -1
- package/lib/icons/minus.svg.js +1 -1
- package/lib/icons/move.svg.js +1 -1
- package/lib/icons/mute.svg.js +1 -1
- package/lib/icons/new-edit.svg.js +48 -0
- 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 +7 -4
- package/lib/icons/right-double-arrow.svg.js +48 -0
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +48 -0
- package/lib/icons/rotate-right.svg.js +48 -0
- package/lib/icons/scale-origin.svg.js +50 -0
- 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 +2 -2
- 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/steps-finsh.svg.js +48 -0
- package/lib/icons/success.svg.js +1 -1
- package/lib/icons/transparent.svg.js +1 -1
- package/lib/icons/trash.svg.js +1 -1
- package/lib/icons/tree-down.svg.js +1 -1
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/upload.svg.js +1 -1
- package/lib/icons/user-remove.svg.js +1 -1
- package/lib/icons/view.svg.js +1 -1
- package/lib/icons/volume.svg.js +1 -1
- package/lib/icons/warning-mark.svg.js +1 -1
- package/lib/icons/warning.svg.js +1 -1
- package/lib/icons/window-restore.svg.js +1 -1
- package/lib/icons/zoom-in.svg.js +1 -1
- package/lib/icons/zoom-out.svg.js +1 -1
- package/lib/index.js +3 -1
- package/lib/locale/de-DE.js +7 -1
- package/lib/locale/en-US.js +7 -1
- package/lib/locale/zh-CN.js +9 -3
- 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 +1111 -441
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +1111 -441
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +1135 -468
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +1116 -443
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +1135 -468
- package/package.json +10 -10
- package/scss/_properties.scss +101 -22
- package/scss/base/_typography.scss +4 -0
- package/scss/components/_alert.scss +15 -0
- package/scss/components/_anchor-nav.scss +22 -7
- package/scss/components/_badge.scss +1 -0
- package/scss/components/_breadcrumb.scss +12 -1
- package/scss/components/_calendar.scss +32 -14
- package/scss/components/_card.scss +4 -0
- package/scss/components/_collapse-group.scss +13 -1
- package/scss/components/_collapse.scss +2 -1
- package/scss/components/_crud.scss +10 -2
- package/scss/components/_crud2.scss +10 -2
- package/scss/components/_image-gallery.scss +62 -0
- package/scss/components/_input-box.scss +1 -0
- package/scss/components/_log.scss +44 -16
- package/scss/components/_modal.scss +14 -12
- package/scss/components/_pagination.scss +4 -3
- package/scss/components/_progress.scss +2 -1
- package/scss/components/_result-box.scss +6 -8
- package/scss/components/_search-box.scss +120 -10
- package/scss/components/_steps.scss +23 -12
- package/scss/components/_table.scss +96 -11
- package/scss/components/_tabs.scss +46 -4
- package/scss/components/_tag.scss +12 -3
- package/scss/components/_timeline.scss +15 -1
- package/scss/components/form/_checks.scss +13 -2
- package/scss/components/form/_date-range.scss +26 -11
- package/scss/components/form/_date.scss +97 -33
- package/scss/components/form/_form.scss +13 -1
- package/scss/components/form/_nested-select.scss +6 -0
- package/scss/components/form/_number.scss +18 -13
- package/scss/components/form/_picker.scss +8 -0
- package/scss/components/form/_rating.scss +2 -2
- package/scss/components/form/_select.scss +34 -1
- package/scss/components/form/_selection.scss +1 -0
- package/scss/components/form/_text.scss +6 -0
- package/scss/components/form/_textarea.scss +15 -11
- package/scss/components/form/_transfer.scss +2 -5
- package/scss/components/form/_tree.scss +31 -4
- package/scss/components/react-datetime.scss +6 -1
- package/scss/themes/_cxd-variables.scss +9 -8
- package/scss/themes/_dark-variables.scss +5 -2
- package/scss/themes/cxd.scss +2 -8
package/esm/components/Select.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.1.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -361,7 +361,11 @@ var Select = /** @class */ (function (_super) {
|
|
|
361
361
|
}
|
|
362
362
|
};
|
|
363
363
|
Select.prototype.handleKeyPress = function (e) {
|
|
364
|
-
|
|
364
|
+
/**
|
|
365
|
+
* 考虑到label/value中有空格的case
|
|
366
|
+
* 这里使用组合键关闭 win:shift + space,mac:shift + space
|
|
367
|
+
*/
|
|
368
|
+
if (e.key === ' ' && e.shiftKey) {
|
|
365
369
|
this.toggle();
|
|
366
370
|
e.preventDefault();
|
|
367
371
|
}
|
|
@@ -394,15 +398,10 @@ var Select = /** @class */ (function (_super) {
|
|
|
394
398
|
e.stopPropagation();
|
|
395
399
|
onDelete && onDelete(item);
|
|
396
400
|
};
|
|
397
|
-
Select.prototype.menuItemRef = function (ref) {
|
|
398
|
-
if (ref && typeof ref.offsetHeight === 'number' && ref > 0) {
|
|
399
|
-
this.setState({ itemHeight: ref.offsetHeight });
|
|
400
|
-
}
|
|
401
|
-
};
|
|
402
401
|
Select.prototype.renderValue = function (_a) {
|
|
403
402
|
var _this = this;
|
|
404
403
|
_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;
|
|
404
|
+
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
405
|
var selection = this.state.selection;
|
|
407
406
|
if (!selection.length) {
|
|
408
407
|
return (React__default.createElement("div", { key: "placeholder", className: cx('Select-placeholder') }, __(placeholder)));
|
|
@@ -424,7 +423,9 @@ var Select = /** @class */ (function (_super) {
|
|
|
424
423
|
var itemIndex = index + maxVisibleCount_1;
|
|
425
424
|
return (React__default.createElement("div", { key: itemIndex, className: cx('Select-value', {
|
|
426
425
|
'is-disabled': disabled,
|
|
427
|
-
'is-invalid':
|
|
426
|
+
'is-invalid': showInvalidMatch
|
|
427
|
+
? item.__unmatched
|
|
428
|
+
: false
|
|
428
429
|
}) },
|
|
429
430
|
React__default.createElement("span", { className: cx('Select-valueLabel') }, item[labelField || 'label']),
|
|
430
431
|
React__default.createElement("span", { className: cx('Select-valueIcon', {
|
|
@@ -434,7 +435,7 @@ var Select = /** @class */ (function (_super) {
|
|
|
434
435
|
}))); } }) },
|
|
435
436
|
React__default.createElement("div", { className: cx('Select-value', {
|
|
436
437
|
'is-disabled': disabled,
|
|
437
|
-
'is-invalid': item.__unmatched
|
|
438
|
+
'is-invalid': showInvalidMatch ? item.__unmatched : false
|
|
438
439
|
}), onClick: function (e) {
|
|
439
440
|
return e.stopPropagation();
|
|
440
441
|
} },
|
|
@@ -443,7 +444,7 @@ var Select = /** @class */ (function (_super) {
|
|
|
443
444
|
return (React__default.createElement(TooltipWrapper, { placement: 'top', tooltip: item[labelField || 'label'], trigger: 'hover', key: index },
|
|
444
445
|
React__default.createElement("div", { className: cx('Select-value', {
|
|
445
446
|
'is-disabled': disabled,
|
|
446
|
-
'is-invalid': item.__unmatched
|
|
447
|
+
'is-invalid': showInvalidMatch ? item.__unmatched : false
|
|
447
448
|
}) },
|
|
448
449
|
React__default.createElement("span", { className: cx('Select-valueLabel') }, item[labelField || 'label']),
|
|
449
450
|
React__default.createElement("span", { className: cx('Select-valueIcon', {
|
|
@@ -456,13 +457,13 @@ var Select = /** @class */ (function (_super) {
|
|
|
456
457
|
if (!multiple) {
|
|
457
458
|
return (React__default.createElement("div", { className: cx('Select-value', {
|
|
458
459
|
'is-disabled': disabled,
|
|
459
|
-
'is-invalid': item.__unmatched
|
|
460
|
+
'is-invalid': showInvalidMatch ? item.__unmatched : false
|
|
460
461
|
}), key: index }, item[labelField || 'label']));
|
|
461
462
|
}
|
|
462
463
|
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
464
|
React__default.createElement("div", { className: cx('Select-value', {
|
|
464
465
|
'is-disabled': disabled,
|
|
465
|
-
'is-invalid': item.__unmatched
|
|
466
|
+
'is-invalid': showInvalidMatch ? item.__unmatched : false
|
|
466
467
|
}) },
|
|
467
468
|
React__default.createElement("span", { className: cx('Select-valueLabel') }, item[labelField || 'label']),
|
|
468
469
|
React__default.createElement("span", { className: cx('Select-valueIcon', {
|
|
@@ -474,7 +475,7 @@ var Select = /** @class */ (function (_super) {
|
|
|
474
475
|
Select.prototype.renderOuter = function (_a) {
|
|
475
476
|
var _this = this;
|
|
476
477
|
var selectedItem = _a.selectedItem, getItemProps = _a.getItemProps, highlightedIndex = _a.highlightedIndex, inputValue = _a.inputValue, isOpen = _a.isOpen; _a.getToggleButtonProps; var getInputProps = _a.getInputProps;
|
|
477
|
-
var _b = this.props, popOverContainer = _b.popOverContainer, options = _b.options; _b.value; var valueField = _b.valueField, labelField = _b.labelField, noResultsText = _b.noResultsText, loadOptions = _b.loadOptions, creatable = _b.creatable, multiple = _b.multiple, valuesNoWrap = _b.valuesNoWrap, cx = _b.classnames; _b.popoverClassName; var checkAll = _b.checkAll, checkAllLabel = _b.checkAllLabel, checkAllBySearch = _b.checkAllBySearch, searchable = _b.searchable, createBtnLabel = _b.createBtnLabel, disabled = _b.disabled, searchPromptText = _b.searchPromptText, editable = _b.editable, removable = _b.removable, overlayPlacement = _b.overlayPlacement, __ = _b.translate, hideSelected = _b.hideSelected, renderMenu = _b.renderMenu; _b.mobileClassName; var _c = _b.virtualThreshold, virtualThreshold = _c === void 0 ? 100 : _c, _d = _b.useMobileUI, useMobileUI = _d === void 0 ? false : _d;
|
|
478
|
+
var _b = this.props, popOverContainer = _b.popOverContainer, options = _b.options; _b.value; var valueField = _b.valueField, labelField = _b.labelField, noResultsText = _b.noResultsText, loadOptions = _b.loadOptions, creatable = _b.creatable, multiple = _b.multiple, valuesNoWrap = _b.valuesNoWrap, cx = _b.classnames; _b.popoverClassName; var popOverContainerSelector = _b.popOverContainerSelector, checkAll = _b.checkAll, checkAllLabel = _b.checkAllLabel, checkAllBySearch = _b.checkAllBySearch, searchable = _b.searchable, createBtnLabel = _b.createBtnLabel, disabled = _b.disabled, searchPromptText = _b.searchPromptText, editable = _b.editable, removable = _b.removable, overlayPlacement = _b.overlayPlacement, __ = _b.translate, hideSelected = _b.hideSelected, renderMenu = _b.renderMenu; _b.mobileClassName; var _c = _b.virtualThreshold, virtualThreshold = _c === void 0 ? 100 : _c, _d = _b.useMobileUI, useMobileUI = _d === void 0 ? false : _d;
|
|
478
479
|
var selection = this.state.selection;
|
|
479
480
|
var checkedAll = false;
|
|
480
481
|
var checkedPartial = false;
|
|
@@ -575,7 +576,6 @@ var Select = /** @class */ (function (_super) {
|
|
|
575
576
|
")")) : null,
|
|
576
577
|
multiple && checkAll && filtedOptions.length ? (React__default.createElement("div", { className: cx('Select-option') },
|
|
577
578
|
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
579
|
creatable && !disabled ? (React__default.createElement("a", { className: cx('Select-addBtn'), onClick: this.handleAddClick },
|
|
580
580
|
React__default.createElement(Icon, { icon: "plus", className: "icon" }),
|
|
581
581
|
__(createBtnLabel))) : null,
|
|
@@ -585,7 +585,7 @@ var Select = /** @class */ (function (_super) {
|
|
|
585
585
|
: filtedOptions.length * virtualItemHeight, itemCount: filtedOptions.length, itemSize: virtualItemHeight, renderItem: renderItem })) : (filtedOptions.map(function (item, index) {
|
|
586
586
|
return renderItem({ index: index });
|
|
587
587
|
}))) : (React__default.createElement("div", { className: cx('Select-noResult') }, __(noResultsText)))));
|
|
588
|
-
return mobileUI ? (React__default.createElement(PopUp, { className: cx("Select-popup"), container: popOverContainer, isShow: this.state.isOpen, onHide: this.close }, menu)) : (React__default.createElement(Overlay, { container: popOverContainer || this.getTarget, target: this.getTarget, placement: overlayPlacement, show: true },
|
|
588
|
+
return mobileUI ? (React__default.createElement(PopUp, { className: cx("Select-popup"), container: popOverContainer, isShow: this.state.isOpen, onHide: this.close }, menu)) : (React__default.createElement(Overlay, { container: popOverContainer || this.getTarget, containerSelector: popOverContainerSelector, target: this.getTarget, placement: overlayPlacement, show: true },
|
|
589
589
|
React__default.createElement(PopOver, { overlay: true, className: cx('Select-popover'), style: {
|
|
590
590
|
width: this.target ? this.target.offsetWidth : 'auto'
|
|
591
591
|
}, onHide: this.close }, menu)));
|
|
@@ -633,6 +633,7 @@ var Select = /** @class */ (function (_super) {
|
|
|
633
633
|
multiple: false,
|
|
634
634
|
clearable: true,
|
|
635
635
|
creatable: false,
|
|
636
|
+
showInvalidMatch: false,
|
|
636
637
|
createBtnLabel: 'Select.createLabel',
|
|
637
638
|
searchPromptText: 'Select.searchPromptText',
|
|
638
639
|
loadingPlaceholder: 'loading',
|
|
@@ -771,12 +772,6 @@ var Select = /** @class */ (function (_super) {
|
|
|
771
772
|
__metadata("design:paramtypes", [Event, Object]),
|
|
772
773
|
__metadata("design:returntype", void 0)
|
|
773
774
|
], 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
775
|
return Select;
|
|
781
776
|
}(React__default.Component));
|
|
782
777
|
var EnhancedSelect = themeable(localeable(uncontrollable(Select, {
|
|
@@ -24,7 +24,7 @@ export declare class SparkLine extends React.Component<SparkLineProps> {
|
|
|
24
24
|
render(): JSX.Element;
|
|
25
25
|
}
|
|
26
26
|
declare const _default: {
|
|
27
|
-
new (props: Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
27
|
+
new (props: Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
28
28
|
width: number;
|
|
29
29
|
height: number;
|
|
30
30
|
}, never>> & {
|
|
@@ -36,7 +36,7 @@ declare const _default: {
|
|
|
36
36
|
getWrappedInstance(): any;
|
|
37
37
|
render(): JSX.Element;
|
|
38
38
|
context: any;
|
|
39
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
39
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
40
40
|
width: number;
|
|
41
41
|
height: number;
|
|
42
42
|
}, never>> & {
|
|
@@ -44,7 +44,7 @@ declare const _default: {
|
|
|
44
44
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
45
45
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
46
46
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
47
|
-
readonly props: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
47
|
+
readonly props: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
48
48
|
width: number;
|
|
49
49
|
height: number;
|
|
50
50
|
}, never>> & {
|
|
@@ -58,7 +58,7 @@ declare const _default: {
|
|
|
58
58
|
[key: string]: React.ReactInstance;
|
|
59
59
|
};
|
|
60
60
|
componentDidMount?(): void;
|
|
61
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
61
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
62
62
|
width: number;
|
|
63
63
|
height: number;
|
|
64
64
|
}, never>> & {
|
|
@@ -67,14 +67,14 @@ declare const _default: {
|
|
|
67
67
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
68
68
|
componentWillUnmount?(): void;
|
|
69
69
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
70
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
70
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
71
71
|
width: number;
|
|
72
72
|
height: number;
|
|
73
73
|
}, never>> & {
|
|
74
74
|
locale?: string | undefined;
|
|
75
75
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
76
76
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
77
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
77
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
78
78
|
width: number;
|
|
79
79
|
height: number;
|
|
80
80
|
}, never>> & {
|
|
@@ -83,28 +83,28 @@ declare const _default: {
|
|
|
83
83
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
84
84
|
componentWillMount?(): void;
|
|
85
85
|
UNSAFE_componentWillMount?(): void;
|
|
86
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
86
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
87
87
|
width: number;
|
|
88
88
|
height: number;
|
|
89
89
|
}, never>> & {
|
|
90
90
|
locale?: string | undefined;
|
|
91
91
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
92
92
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
93
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
93
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
94
94
|
width: number;
|
|
95
95
|
height: number;
|
|
96
96
|
}, never>> & {
|
|
97
97
|
locale?: string | undefined;
|
|
98
98
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
99
99
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
100
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
100
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
101
101
|
width: number;
|
|
102
102
|
height: number;
|
|
103
103
|
}, never>> & {
|
|
104
104
|
locale?: string | undefined;
|
|
105
105
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
106
106
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
107
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
107
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
108
108
|
width: number;
|
|
109
109
|
height: number;
|
|
110
110
|
}, never>> & {
|
|
@@ -115,7 +115,7 @@ declare const _default: {
|
|
|
115
115
|
displayName: string;
|
|
116
116
|
contextType: React.Context<string>;
|
|
117
117
|
ComposedComponent: React.ComponentType<{
|
|
118
|
-
new (props: Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
118
|
+
new (props: Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
119
119
|
width: number;
|
|
120
120
|
height: number;
|
|
121
121
|
}, never>> & {
|
|
@@ -127,7 +127,7 @@ declare const _default: {
|
|
|
127
127
|
getWrappedInstance(): any;
|
|
128
128
|
render(): JSX.Element;
|
|
129
129
|
context: any;
|
|
130
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
130
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
131
131
|
width: number;
|
|
132
132
|
height: number;
|
|
133
133
|
}, never>> & {
|
|
@@ -135,7 +135,7 @@ declare const _default: {
|
|
|
135
135
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
136
136
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
137
137
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
138
|
-
readonly props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
138
|
+
readonly props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
139
139
|
width: number;
|
|
140
140
|
height: number;
|
|
141
141
|
}, never>> & {
|
|
@@ -149,7 +149,7 @@ declare const _default: {
|
|
|
149
149
|
[key: string]: React.ReactInstance;
|
|
150
150
|
};
|
|
151
151
|
componentDidMount?(): void;
|
|
152
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
152
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
153
153
|
width: number;
|
|
154
154
|
height: number;
|
|
155
155
|
}, never>> & {
|
|
@@ -158,14 +158,14 @@ declare const _default: {
|
|
|
158
158
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
159
159
|
componentWillUnmount?(): void;
|
|
160
160
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
161
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
161
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
162
162
|
width: number;
|
|
163
163
|
height: number;
|
|
164
164
|
}, never>> & {
|
|
165
165
|
locale?: string | undefined;
|
|
166
166
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
167
167
|
}>, prevState: Readonly<{}>): any;
|
|
168
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
168
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
169
169
|
width: number;
|
|
170
170
|
height: number;
|
|
171
171
|
}, never>> & {
|
|
@@ -174,28 +174,28 @@ declare const _default: {
|
|
|
174
174
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
175
175
|
componentWillMount?(): void;
|
|
176
176
|
UNSAFE_componentWillMount?(): void;
|
|
177
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
177
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
178
178
|
width: number;
|
|
179
179
|
height: number;
|
|
180
180
|
}, never>> & {
|
|
181
181
|
locale?: string | undefined;
|
|
182
182
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
183
183
|
}>, nextContext: any): void;
|
|
184
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
184
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
185
185
|
width: number;
|
|
186
186
|
height: number;
|
|
187
187
|
}, never>> & {
|
|
188
188
|
locale?: string | undefined;
|
|
189
189
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
190
190
|
}>, nextContext: any): void;
|
|
191
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
191
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
192
192
|
width: number;
|
|
193
193
|
height: number;
|
|
194
194
|
}, never>> & {
|
|
195
195
|
locale?: string | undefined;
|
|
196
196
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
197
197
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
198
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
198
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
199
199
|
width: number;
|
|
200
200
|
height: number;
|
|
201
201
|
}, never>> & {
|
|
@@ -210,7 +210,7 @@ declare const _default: {
|
|
|
210
210
|
ComposedComponent: typeof SparkLine;
|
|
211
211
|
}>;
|
|
212
212
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
213
|
-
new (props: Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
213
|
+
new (props: Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
214
214
|
width: number;
|
|
215
215
|
height: number;
|
|
216
216
|
}, never>> & {
|
|
@@ -222,7 +222,7 @@ declare const _default: {
|
|
|
222
222
|
getWrappedInstance(): any;
|
|
223
223
|
render(): JSX.Element;
|
|
224
224
|
context: any;
|
|
225
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
225
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
226
226
|
width: number;
|
|
227
227
|
height: number;
|
|
228
228
|
}, never>> & {
|
|
@@ -230,7 +230,7 @@ declare const _default: {
|
|
|
230
230
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
231
231
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
232
232
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
233
|
-
readonly props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
233
|
+
readonly props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
234
234
|
width: number;
|
|
235
235
|
height: number;
|
|
236
236
|
}, never>> & {
|
|
@@ -244,7 +244,7 @@ declare const _default: {
|
|
|
244
244
|
[key: string]: React.ReactInstance;
|
|
245
245
|
};
|
|
246
246
|
componentDidMount?(): void;
|
|
247
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
247
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
248
248
|
width: number;
|
|
249
249
|
height: number;
|
|
250
250
|
}, never>> & {
|
|
@@ -253,14 +253,14 @@ declare const _default: {
|
|
|
253
253
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
254
254
|
componentWillUnmount?(): void;
|
|
255
255
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
256
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
256
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
257
257
|
width: number;
|
|
258
258
|
height: number;
|
|
259
259
|
}, never>> & {
|
|
260
260
|
locale?: string | undefined;
|
|
261
261
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
262
262
|
}>, prevState: Readonly<{}>): any;
|
|
263
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
263
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
264
264
|
width: number;
|
|
265
265
|
height: number;
|
|
266
266
|
}, never>> & {
|
|
@@ -269,28 +269,28 @@ declare const _default: {
|
|
|
269
269
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
270
270
|
componentWillMount?(): void;
|
|
271
271
|
UNSAFE_componentWillMount?(): void;
|
|
272
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
272
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
273
273
|
width: number;
|
|
274
274
|
height: number;
|
|
275
275
|
}, never>> & {
|
|
276
276
|
locale?: string | undefined;
|
|
277
277
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
278
278
|
}>, nextContext: any): void;
|
|
279
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
279
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
280
280
|
width: number;
|
|
281
281
|
height: number;
|
|
282
282
|
}, never>> & {
|
|
283
283
|
locale?: string | undefined;
|
|
284
284
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
285
285
|
}>, nextContext: any): void;
|
|
286
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
286
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
287
287
|
width: number;
|
|
288
288
|
height: number;
|
|
289
289
|
}, never>> & {
|
|
290
290
|
locale?: string | undefined;
|
|
291
291
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
292
292
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
293
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
293
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
294
294
|
width: number;
|
|
295
295
|
height: number;
|
|
296
296
|
}, never>> & {
|
|
@@ -305,7 +305,7 @@ declare const _default: {
|
|
|
305
305
|
ComposedComponent: typeof SparkLine;
|
|
306
306
|
}, {}> & {
|
|
307
307
|
ComposedComponent: {
|
|
308
|
-
new (props: Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
308
|
+
new (props: Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
309
309
|
width: number;
|
|
310
310
|
height: number;
|
|
311
311
|
}, never>> & {
|
|
@@ -317,7 +317,7 @@ declare const _default: {
|
|
|
317
317
|
getWrappedInstance(): any;
|
|
318
318
|
render(): JSX.Element;
|
|
319
319
|
context: any;
|
|
320
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
320
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
321
321
|
width: number;
|
|
322
322
|
height: number;
|
|
323
323
|
}, never>> & {
|
|
@@ -325,7 +325,7 @@ declare const _default: {
|
|
|
325
325
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
326
326
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
327
327
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
328
|
-
readonly props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
328
|
+
readonly props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
329
329
|
width: number;
|
|
330
330
|
height: number;
|
|
331
331
|
}, never>> & {
|
|
@@ -339,7 +339,7 @@ declare const _default: {
|
|
|
339
339
|
[key: string]: React.ReactInstance;
|
|
340
340
|
};
|
|
341
341
|
componentDidMount?(): void;
|
|
342
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
342
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
343
343
|
width: number;
|
|
344
344
|
height: number;
|
|
345
345
|
}, never>> & {
|
|
@@ -348,14 +348,14 @@ declare const _default: {
|
|
|
348
348
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
349
349
|
componentWillUnmount?(): void;
|
|
350
350
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
351
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
351
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
352
352
|
width: number;
|
|
353
353
|
height: number;
|
|
354
354
|
}, never>> & {
|
|
355
355
|
locale?: string | undefined;
|
|
356
356
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
357
357
|
}>, prevState: Readonly<{}>): any;
|
|
358
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
358
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
359
359
|
width: number;
|
|
360
360
|
height: number;
|
|
361
361
|
}, never>> & {
|
|
@@ -364,28 +364,28 @@ declare const _default: {
|
|
|
364
364
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
365
365
|
componentWillMount?(): void;
|
|
366
366
|
UNSAFE_componentWillMount?(): void;
|
|
367
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
367
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
368
368
|
width: number;
|
|
369
369
|
height: number;
|
|
370
370
|
}, never>> & {
|
|
371
371
|
locale?: string | undefined;
|
|
372
372
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
373
373
|
}>, nextContext: any): void;
|
|
374
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
374
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
375
375
|
width: number;
|
|
376
376
|
height: number;
|
|
377
377
|
}, never>> & {
|
|
378
378
|
locale?: string | undefined;
|
|
379
379
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
380
380
|
}>, nextContext: any): void;
|
|
381
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
381
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
382
382
|
width: number;
|
|
383
383
|
height: number;
|
|
384
384
|
}, never>> & {
|
|
385
385
|
locale?: string | undefined;
|
|
386
386
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
387
387
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
388
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "
|
|
388
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
|
|
389
389
|
width: number;
|
|
390
390
|
height: number;
|
|
391
391
|
}, never>> & {
|
package/esm/components/Steps.js
CHANGED
package/esm/components/Switch.js
CHANGED
package/esm/components/Tabs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.1.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -325,10 +325,8 @@ var Tabs = /** @class */ (function (_super) {
|
|
|
325
325
|
} })) : (React__default.createElement(React__default.Fragment, null,
|
|
326
326
|
icon ? (iconPosition === 'right' ? (React__default.createElement(React__default.Fragment, null,
|
|
327
327
|
title,
|
|
328
|
-
" ",
|
|
329
328
|
iconElement)) : (React__default.createElement(React__default.Fragment, null,
|
|
330
329
|
iconElement,
|
|
331
|
-
" ",
|
|
332
330
|
title))) : (title),
|
|
333
331
|
React__default.isValidElement(toolbar) ? toolbar : null))));
|
|
334
332
|
return (React__default.createElement("li", { className: cx('Tabs-link', activeKey === eventKey ? 'is-active' : '', disabled ? 'is-disabled' : '', tabClassName), key: eventKey !== null && eventKey !== void 0 ? eventKey : index, onClick: function () { return (disabled ? '' : _this.handleSelect(eventKey)); }, onDoubleClick: function () {
|