amis-ui 2.5.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.js +1 -1
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.js +1 -1
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.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/CodeMirror.js +1 -1
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConfirmBox.d.ts +1 -0
- package/esm/components/ConfirmBox.js +11 -8
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.js +1 -1
- package/esm/components/DateRangePicker.d.ts +5 -8
- package/esm/components/DateRangePicker.js +9 -8
- package/esm/components/Drawer.js +1 -1
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.d.ts +2 -0
- package/esm/components/Form.js +22 -7
- 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/InputTable.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/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.js +1 -1
- package/esm/components/Pagination.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/SearchBox.js +1 -1
- package/esm/components/Select.js +1 -1
- package/esm/components/Selection.js +1 -1
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.js +1 -1
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.js +1 -1
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.js +1 -1
- package/esm/components/TabsTransfer.d.ts +82 -40
- package/esm/components/TabsTransfer.js +8 -6
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.js +1 -1
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +1 -1
- package/esm/components/Tinymce.js +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 +3 -2
- 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 +1 -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/AutoSizer.js +1 -1
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-sub-form.js +1 -1
- package/esm/hooks/use-touch.js +1 -1
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +1 -1
- package/esm/icons/alert-danger.svg.js +1 -1
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +1 -1
- package/esm/icons/alert-warning.svg.js +1 -1
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check-circle.svg.js +1 -1
- package/esm/icons/check.svg.js +1 -1
- package/esm/icons/clock.svg.js +1 -1
- package/esm/icons/close-small.svg.js +1 -1
- package/esm/icons/close.svg.js +1 -1
- package/esm/icons/cloud-upload.svg.js +1 -1
- package/esm/icons/column-filter.svg.js +1 -1
- package/esm/icons/columns.svg.js +1 -1
- package/esm/icons/compress-alt.svg.js +1 -1
- package/esm/icons/copy.svg.js +1 -1
- package/esm/icons/date.svg.js +1 -1
- package/esm/icons/department.svg.js +1 -1
- package/esm/icons/desk-empty.svg.js +1 -1
- package/esm/icons/dot.svg.js +1 -1
- package/esm/icons/down-arrow-bold.svg.js +1 -1
- package/esm/icons/down.svg.js +1 -1
- package/esm/icons/download.svg.js +1 -1
- package/esm/icons/drag-bar.svg.js +1 -1
- package/esm/icons/drag.svg.js +1 -1
- package/esm/icons/edit.svg.js +1 -1
- package/esm/icons/ellipsis-v.svg.js +1 -1
- package/esm/icons/enter.svg.js +1 -1
- package/esm/icons/exchange.svg.js +1 -1
- package/esm/icons/expand-alt.svg.js +1 -1
- package/esm/icons/fail.svg.js +1 -1
- package/esm/icons/file.svg.js +1 -1
- package/esm/icons/filter.svg.js +1 -1
- package/esm/icons/folder.svg.js +1 -1
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +1 -1
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +1 -1
- package/esm/icons/pause.svg.js +1 -1
- package/esm/icons/pencil.svg.js +1 -1
- package/esm/icons/play.svg.js +1 -1
- package/esm/icons/plus-cicle.svg.js +1 -1
- package/esm/icons/plus-fine.svg.js +1 -1
- package/esm/icons/plus.svg.js +1 -1
- package/esm/icons/post.svg.js +1 -1
- package/esm/icons/question-mark.svg.js +1 -1
- package/esm/icons/question.svg.js +1 -1
- package/esm/icons/redo.svg.js +1 -1
- package/esm/icons/refresh.svg.js +1 -1
- package/esm/icons/reload.svg.js +1 -1
- package/esm/icons/remove.svg.js +1 -1
- package/esm/icons/retry.svg.js +1 -1
- package/esm/icons/right-arrow-bold.svg.js +1 -1
- package/esm/icons/right-arrow.svg.js +1 -1
- package/esm/icons/right-double-arrow.svg.js +1 -1
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +1 -1
- package/esm/icons/rotate-right.svg.js +1 -1
- package/esm/icons/scale-origin.svg.js +1 -1
- package/esm/icons/schedule.svg.js +1 -1
- package/esm/icons/search.svg.js +1 -1
- package/esm/icons/setting.svg.js +1 -1
- package/esm/icons/slider-handle-icon.svg.js +1 -1
- package/esm/icons/sort-asc.svg.js +1 -1
- package/esm/icons/sort-default.svg.js +1 -1
- package/esm/icons/sort-desc.svg.js +1 -1
- package/esm/icons/star.svg.js +1 -1
- package/esm/icons/status-close.svg.js +1 -1
- package/esm/icons/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 +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 +1 -1
- package/esm/locale/en-US.js +1 -1
- package/esm/locale/zh-CN.js +1 -1
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.d.ts +40 -40
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.d.ts +10 -10
- package/lib/components/Alert2.js +1 -1
- package/lib/components/AnchorNav.d.ts +10 -10
- package/lib/components/AnchorNav.js +1 -1
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +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.js +1 -1
- package/lib/components/BaiduMapPicker.js +1 -1
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.d.ts +10 -10
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.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/CodeMirror.js +1 -1
- package/lib/components/Collapse.d.ts +10 -10
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.d.ts +10 -10
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/Combo.js +1 -1
- package/lib/components/ConfirmBox.d.ts +41 -40
- package/lib/components/ConfirmBox.js +11 -8
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +81 -81
- package/lib/components/DatePicker.js +1 -1
- package/lib/components/DateRangePicker.d.ts +45 -48
- package/lib/components/DateRangePicker.js +9 -8
- 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.d.ts +2 -0
- package/lib/components/Form.js +21 -6
- 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 +40 -40
- package/lib/components/ImageGallery.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/InputTable.js +1 -1
- package/lib/components/Layout.d.ts +10 -10
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +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/Modal.d.ts +40 -40
- package/lib/components/Modal.js +1 -1
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +40 -40
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +10 -10
- package/lib/components/NumberInput.js +1 -1
- package/lib/components/Pagination.d.ts +40 -40
- 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.d.ts +40 -40
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +10 -10
- package/lib/components/Progress.js +1 -1
- 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 +1 -1
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.d.ts +40 -40
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +1 -1
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.d.ts +40 -40
- package/lib/components/SearchBox.js +1 -1
- package/lib/components/Select.d.ts +193 -193
- package/lib/components/Select.js +1 -1
- 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 +40 -40
- package/lib/components/Tabs.js +1 -1
- package/lib/components/TabsTransfer.d.ts +82 -40
- package/lib/components/TabsTransfer.js +8 -6
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +10 -10
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +1 -1
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +1 -1
- package/lib/components/Tinymce.js +1 -1
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.d.ts +40 -40
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.d.ts +10 -10
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +49 -49
- package/lib/components/Transfer.js +1 -1
- package/lib/components/TransferDropDown.d.ts +40 -40
- package/lib/components/TransferDropDown.js +1 -1
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +1 -1
- package/lib/components/Tree.d.ts +40 -40
- package/lib/components/Tree.js +3 -2
- 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 +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.d.ts +1 -1
- package/lib/components/condition-builder/index.js +1 -1
- package/lib/components/formula/Editor.d.ts +40 -40
- package/lib/components/formula/Editor.js +1 -1
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Picker.d.ts +40 -40
- package/lib/components/formula/Picker.js +1 -1
- package/lib/components/formula/VariableList.js +1 -1
- package/lib/components/formula/plugin.js +1 -1
- package/lib/components/icons.js +1 -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.d.ts +40 -40
- package/lib/components/table/HeadCellFilter.js +1 -1
- package/lib/components/table/HeadCellSelect.d.ts +40 -40
- 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/AutoSizer.js +1 -1
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-sub-form.js +1 -1
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +1 -1
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +1 -1
- package/lib/icons/alert-warning.svg.js +1 -1
- package/lib/icons/back.svg.js +1 -1
- package/lib/icons/calendar.svg.js +1 -1
- package/lib/icons/caret.svg.js +1 -1
- package/lib/icons/check-circle.svg.js +1 -1
- package/lib/icons/check.svg.js +1 -1
- package/lib/icons/clock.svg.js +1 -1
- package/lib/icons/close-small.svg.js +1 -1
- package/lib/icons/close.svg.js +1 -1
- package/lib/icons/cloud-upload.svg.js +1 -1
- package/lib/icons/column-filter.svg.js +1 -1
- package/lib/icons/columns.svg.js +1 -1
- package/lib/icons/compress-alt.svg.js +1 -1
- package/lib/icons/copy.svg.js +1 -1
- package/lib/icons/date.svg.js +1 -1
- package/lib/icons/department.svg.js +1 -1
- package/lib/icons/desk-empty.svg.js +1 -1
- package/lib/icons/dot.svg.js +1 -1
- package/lib/icons/down-arrow-bold.svg.js +1 -1
- package/lib/icons/down.svg.js +1 -1
- package/lib/icons/download.svg.js +1 -1
- package/lib/icons/drag-bar.svg.js +1 -1
- package/lib/icons/drag.svg.js +1 -1
- package/lib/icons/edit.svg.js +1 -1
- package/lib/icons/ellipsis-v.svg.js +1 -1
- package/lib/icons/enter.svg.js +1 -1
- package/lib/icons/exchange.svg.js +1 -1
- package/lib/icons/expand-alt.svg.js +1 -1
- package/lib/icons/fail.svg.js +1 -1
- package/lib/icons/file.svg.js +1 -1
- package/lib/icons/filter.svg.js +1 -1
- package/lib/icons/folder.svg.js +1 -1
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/image.svg.js +1 -1
- package/lib/icons/info-circle.svg.js +1 -1
- package/lib/icons/info.svg.js +1 -1
- package/lib/icons/input-clear.svg.js +1 -1
- package/lib/icons/invisible.svg.js +1 -1
- package/lib/icons/left-arrow.svg.js +1 -1
- package/lib/icons/loading-outline.svg.js +1 -1
- package/lib/icons/location.svg.js +1 -1
- package/lib/icons/menu.svg.js +1 -1
- package/lib/icons/minus.svg.js +1 -1
- package/lib/icons/move.svg.js +1 -1
- package/lib/icons/mute.svg.js +1 -1
- package/lib/icons/new-edit.svg.js +1 -1
- package/lib/icons/pause.svg.js +1 -1
- package/lib/icons/pencil.svg.js +1 -1
- package/lib/icons/play.svg.js +1 -1
- package/lib/icons/plus-cicle.svg.js +1 -1
- package/lib/icons/plus-fine.svg.js +1 -1
- package/lib/icons/plus.svg.js +1 -1
- package/lib/icons/post.svg.js +1 -1
- package/lib/icons/question-mark.svg.js +1 -1
- package/lib/icons/question.svg.js +1 -1
- package/lib/icons/redo.svg.js +1 -1
- package/lib/icons/refresh.svg.js +1 -1
- package/lib/icons/reload.svg.js +1 -1
- package/lib/icons/remove.svg.js +1 -1
- package/lib/icons/retry.svg.js +1 -1
- package/lib/icons/right-arrow-bold.svg.js +1 -1
- package/lib/icons/right-arrow.svg.js +1 -1
- package/lib/icons/right-double-arrow.svg.js +1 -1
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +1 -1
- package/lib/icons/rotate-right.svg.js +1 -1
- package/lib/icons/scale-origin.svg.js +1 -1
- package/lib/icons/schedule.svg.js +1 -1
- package/lib/icons/search.svg.js +1 -1
- package/lib/icons/setting.svg.js +1 -1
- package/lib/icons/slider-handle-icon.svg.js +1 -1
- package/lib/icons/sort-asc.svg.js +1 -1
- package/lib/icons/sort-default.svg.js +1 -1
- package/lib/icons/sort-desc.svg.js +1 -1
- package/lib/icons/star.svg.js +1 -1
- package/lib/icons/status-close.svg.js +1 -1
- package/lib/icons/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 +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 +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/scss/helper.scss.js +1 -1
- package/lib/scss/themes/ang.scss.js +1 -1
- package/lib/scss/themes/antd.scss.js +1 -1
- package/lib/scss/themes/cxd.scss.js +1 -1
- package/lib/scss/themes/dark.scss.js +1 -1
- package/lib/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +63 -44
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +34 -33
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +34 -33
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +34 -33
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +34 -33
- package/package.json +4 -4
- package/scss/_properties.scss +38 -37
- package/scss/components/_badge.scss +9 -8
- package/scss/components/_timeline.scss +1 -2
- package/scss/components/react-datetime.scss +8 -8
- package/scss/themes/_ang-variables.scss +10 -11
- package/scss/themes/ang.scss +20 -0
|
@@ -72,7 +72,7 @@ export declare class Editor extends React.Component<EditorProps, EditorState> {
|
|
|
72
72
|
render(): JSX.Element;
|
|
73
73
|
}
|
|
74
74
|
declare const _default: {
|
|
75
|
-
new (props: Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
75
|
+
new (props: Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
76
76
|
language: string;
|
|
77
77
|
editorTheme: string;
|
|
78
78
|
width: string;
|
|
@@ -88,7 +88,7 @@ declare const _default: {
|
|
|
88
88
|
getWrappedInstance(): any;
|
|
89
89
|
render(): JSX.Element;
|
|
90
90
|
context: any;
|
|
91
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
91
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
92
92
|
language: string;
|
|
93
93
|
editorTheme: string;
|
|
94
94
|
width: string;
|
|
@@ -100,7 +100,7 @@ declare const _default: {
|
|
|
100
100
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
101
101
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
102
102
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
103
|
-
readonly props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
103
|
+
readonly props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
104
104
|
language: string;
|
|
105
105
|
editorTheme: string;
|
|
106
106
|
width: string;
|
|
@@ -118,7 +118,7 @@ declare const _default: {
|
|
|
118
118
|
[key: string]: React.ReactInstance;
|
|
119
119
|
};
|
|
120
120
|
componentDidMount?(): void;
|
|
121
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
121
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
122
122
|
language: string;
|
|
123
123
|
editorTheme: string;
|
|
124
124
|
width: string;
|
|
@@ -131,7 +131,7 @@ declare const _default: {
|
|
|
131
131
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
132
132
|
componentWillUnmount?(): void;
|
|
133
133
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
134
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
134
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
135
135
|
language: string;
|
|
136
136
|
editorTheme: string;
|
|
137
137
|
width: string;
|
|
@@ -142,7 +142,7 @@ declare const _default: {
|
|
|
142
142
|
locale?: string | undefined;
|
|
143
143
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
144
144
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
145
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
145
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
146
146
|
language: string;
|
|
147
147
|
editorTheme: string;
|
|
148
148
|
width: string;
|
|
@@ -155,7 +155,7 @@ declare const _default: {
|
|
|
155
155
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
156
156
|
componentWillMount?(): void;
|
|
157
157
|
UNSAFE_componentWillMount?(): void;
|
|
158
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
158
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
159
159
|
language: string;
|
|
160
160
|
editorTheme: string;
|
|
161
161
|
width: string;
|
|
@@ -166,7 +166,7 @@ declare const _default: {
|
|
|
166
166
|
locale?: string | undefined;
|
|
167
167
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
168
168
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
169
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
169
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
170
170
|
language: string;
|
|
171
171
|
editorTheme: string;
|
|
172
172
|
width: string;
|
|
@@ -177,7 +177,7 @@ declare const _default: {
|
|
|
177
177
|
locale?: string | undefined;
|
|
178
178
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
179
179
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
180
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
180
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
181
181
|
language: string;
|
|
182
182
|
editorTheme: string;
|
|
183
183
|
width: string;
|
|
@@ -188,7 +188,7 @@ declare const _default: {
|
|
|
188
188
|
locale?: string | undefined;
|
|
189
189
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
190
190
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
191
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
191
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
192
192
|
language: string;
|
|
193
193
|
editorTheme: string;
|
|
194
194
|
width: string;
|
|
@@ -203,7 +203,7 @@ declare const _default: {
|
|
|
203
203
|
displayName: string;
|
|
204
204
|
contextType: React.Context<string>;
|
|
205
205
|
ComposedComponent: React.ComponentType<{
|
|
206
|
-
new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
206
|
+
new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
207
207
|
language: string;
|
|
208
208
|
editorTheme: string;
|
|
209
209
|
width: string;
|
|
@@ -219,7 +219,7 @@ declare const _default: {
|
|
|
219
219
|
getWrappedInstance(): any;
|
|
220
220
|
render(): JSX.Element;
|
|
221
221
|
context: any;
|
|
222
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
222
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
223
223
|
language: string;
|
|
224
224
|
editorTheme: string;
|
|
225
225
|
width: string;
|
|
@@ -231,7 +231,7 @@ declare const _default: {
|
|
|
231
231
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
232
232
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
233
233
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
234
|
-
readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
234
|
+
readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
235
235
|
language: string;
|
|
236
236
|
editorTheme: string;
|
|
237
237
|
width: string;
|
|
@@ -249,7 +249,7 @@ declare const _default: {
|
|
|
249
249
|
[key: string]: React.ReactInstance;
|
|
250
250
|
};
|
|
251
251
|
componentDidMount?(): void;
|
|
252
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
252
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
253
253
|
language: string;
|
|
254
254
|
editorTheme: string;
|
|
255
255
|
width: string;
|
|
@@ -262,7 +262,7 @@ declare const _default: {
|
|
|
262
262
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
263
263
|
componentWillUnmount?(): void;
|
|
264
264
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
265
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
265
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
266
266
|
language: string;
|
|
267
267
|
editorTheme: string;
|
|
268
268
|
width: string;
|
|
@@ -273,7 +273,7 @@ declare const _default: {
|
|
|
273
273
|
locale?: string | undefined;
|
|
274
274
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
275
275
|
}>, prevState: Readonly<{}>): any;
|
|
276
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
276
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
277
277
|
language: string;
|
|
278
278
|
editorTheme: string;
|
|
279
279
|
width: string;
|
|
@@ -286,7 +286,7 @@ declare const _default: {
|
|
|
286
286
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
287
287
|
componentWillMount?(): void;
|
|
288
288
|
UNSAFE_componentWillMount?(): void;
|
|
289
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
289
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
290
290
|
language: string;
|
|
291
291
|
editorTheme: string;
|
|
292
292
|
width: string;
|
|
@@ -297,7 +297,7 @@ declare const _default: {
|
|
|
297
297
|
locale?: string | undefined;
|
|
298
298
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
299
299
|
}>, nextContext: any): void;
|
|
300
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
300
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
301
301
|
language: string;
|
|
302
302
|
editorTheme: string;
|
|
303
303
|
width: string;
|
|
@@ -308,7 +308,7 @@ declare const _default: {
|
|
|
308
308
|
locale?: string | undefined;
|
|
309
309
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
310
310
|
}>, nextContext: any): void;
|
|
311
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
311
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
312
312
|
language: string;
|
|
313
313
|
editorTheme: string;
|
|
314
314
|
width: string;
|
|
@@ -319,7 +319,7 @@ declare const _default: {
|
|
|
319
319
|
locale?: string | undefined;
|
|
320
320
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
321
321
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
322
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
322
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
323
323
|
language: string;
|
|
324
324
|
editorTheme: string;
|
|
325
325
|
width: string;
|
|
@@ -338,7 +338,7 @@ declare const _default: {
|
|
|
338
338
|
ComposedComponent: typeof Editor;
|
|
339
339
|
}>;
|
|
340
340
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
341
|
-
new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
341
|
+
new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
342
342
|
language: string;
|
|
343
343
|
editorTheme: string;
|
|
344
344
|
width: string;
|
|
@@ -354,7 +354,7 @@ declare const _default: {
|
|
|
354
354
|
getWrappedInstance(): any;
|
|
355
355
|
render(): JSX.Element;
|
|
356
356
|
context: any;
|
|
357
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
357
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
358
358
|
language: string;
|
|
359
359
|
editorTheme: string;
|
|
360
360
|
width: string;
|
|
@@ -366,7 +366,7 @@ declare const _default: {
|
|
|
366
366
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
367
367
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
368
368
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
369
|
-
readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
369
|
+
readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
370
370
|
language: string;
|
|
371
371
|
editorTheme: string;
|
|
372
372
|
width: string;
|
|
@@ -384,7 +384,7 @@ declare const _default: {
|
|
|
384
384
|
[key: string]: React.ReactInstance;
|
|
385
385
|
};
|
|
386
386
|
componentDidMount?(): void;
|
|
387
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
387
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
388
388
|
language: string;
|
|
389
389
|
editorTheme: string;
|
|
390
390
|
width: string;
|
|
@@ -397,7 +397,7 @@ declare const _default: {
|
|
|
397
397
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
398
398
|
componentWillUnmount?(): void;
|
|
399
399
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
400
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
400
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
401
401
|
language: string;
|
|
402
402
|
editorTheme: string;
|
|
403
403
|
width: string;
|
|
@@ -408,7 +408,7 @@ declare const _default: {
|
|
|
408
408
|
locale?: string | undefined;
|
|
409
409
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
410
410
|
}>, prevState: Readonly<{}>): any;
|
|
411
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
411
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
412
412
|
language: string;
|
|
413
413
|
editorTheme: string;
|
|
414
414
|
width: string;
|
|
@@ -421,7 +421,7 @@ declare const _default: {
|
|
|
421
421
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
422
422
|
componentWillMount?(): void;
|
|
423
423
|
UNSAFE_componentWillMount?(): void;
|
|
424
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
424
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
425
425
|
language: string;
|
|
426
426
|
editorTheme: string;
|
|
427
427
|
width: string;
|
|
@@ -432,7 +432,7 @@ declare const _default: {
|
|
|
432
432
|
locale?: string | undefined;
|
|
433
433
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
434
434
|
}>, nextContext: any): void;
|
|
435
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
435
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
436
436
|
language: string;
|
|
437
437
|
editorTheme: string;
|
|
438
438
|
width: string;
|
|
@@ -443,7 +443,7 @@ declare const _default: {
|
|
|
443
443
|
locale?: string | undefined;
|
|
444
444
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
445
445
|
}>, nextContext: any): void;
|
|
446
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
446
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
447
447
|
language: string;
|
|
448
448
|
editorTheme: string;
|
|
449
449
|
width: string;
|
|
@@ -454,7 +454,7 @@ declare const _default: {
|
|
|
454
454
|
locale?: string | undefined;
|
|
455
455
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
456
456
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
457
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
457
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
458
458
|
language: string;
|
|
459
459
|
editorTheme: string;
|
|
460
460
|
width: string;
|
|
@@ -473,7 +473,7 @@ declare const _default: {
|
|
|
473
473
|
ComposedComponent: typeof Editor;
|
|
474
474
|
}, {}> & {
|
|
475
475
|
ComposedComponent: {
|
|
476
|
-
new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
476
|
+
new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
477
477
|
language: string;
|
|
478
478
|
editorTheme: string;
|
|
479
479
|
width: string;
|
|
@@ -489,7 +489,7 @@ declare const _default: {
|
|
|
489
489
|
getWrappedInstance(): any;
|
|
490
490
|
render(): JSX.Element;
|
|
491
491
|
context: any;
|
|
492
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
492
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
493
493
|
language: string;
|
|
494
494
|
editorTheme: string;
|
|
495
495
|
width: string;
|
|
@@ -501,7 +501,7 @@ declare const _default: {
|
|
|
501
501
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
502
502
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
503
503
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
504
|
-
readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
504
|
+
readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
505
505
|
language: string;
|
|
506
506
|
editorTheme: string;
|
|
507
507
|
width: string;
|
|
@@ -519,7 +519,7 @@ declare const _default: {
|
|
|
519
519
|
[key: string]: React.ReactInstance;
|
|
520
520
|
};
|
|
521
521
|
componentDidMount?(): void;
|
|
522
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
522
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
523
523
|
language: string;
|
|
524
524
|
editorTheme: string;
|
|
525
525
|
width: string;
|
|
@@ -532,7 +532,7 @@ declare const _default: {
|
|
|
532
532
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
533
533
|
componentWillUnmount?(): void;
|
|
534
534
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
535
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
535
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
536
536
|
language: string;
|
|
537
537
|
editorTheme: string;
|
|
538
538
|
width: string;
|
|
@@ -543,7 +543,7 @@ declare const _default: {
|
|
|
543
543
|
locale?: string | undefined;
|
|
544
544
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
545
545
|
}>, prevState: Readonly<{}>): any;
|
|
546
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
546
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
547
547
|
language: string;
|
|
548
548
|
editorTheme: string;
|
|
549
549
|
width: string;
|
|
@@ -556,7 +556,7 @@ declare const _default: {
|
|
|
556
556
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
557
557
|
componentWillMount?(): void;
|
|
558
558
|
UNSAFE_componentWillMount?(): void;
|
|
559
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
559
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
560
560
|
language: string;
|
|
561
561
|
editorTheme: string;
|
|
562
562
|
width: string;
|
|
@@ -567,7 +567,7 @@ declare const _default: {
|
|
|
567
567
|
locale?: string | undefined;
|
|
568
568
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
569
569
|
}>, nextContext: any): void;
|
|
570
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
570
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
571
571
|
language: string;
|
|
572
572
|
editorTheme: string;
|
|
573
573
|
width: string;
|
|
@@ -578,7 +578,7 @@ declare const _default: {
|
|
|
578
578
|
locale?: string | undefined;
|
|
579
579
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
580
580
|
}>, nextContext: any): void;
|
|
581
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
581
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
582
582
|
language: string;
|
|
583
583
|
editorTheme: string;
|
|
584
584
|
width: string;
|
|
@@ -589,7 +589,7 @@ declare const _default: {
|
|
|
589
589
|
locale?: string | undefined;
|
|
590
590
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
591
591
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
592
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "
|
|
592
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "defaultValue" | "value" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "width" | "height" | "options" | "language" | "editorTheme" | "allowFullscreen">> & Partial<Pick<{
|
|
593
593
|
language: string;
|
|
594
594
|
editorTheme: string;
|
|
595
595
|
width: string;
|
package/lib/components/Editor.js
CHANGED
package/lib/components/Form.d.ts
CHANGED
|
@@ -10,8 +10,10 @@ export type FormRef = React.MutableRefObject<{
|
|
|
10
10
|
} | undefined>;
|
|
11
11
|
export interface FormProps extends ThemeProps, LocaleProps {
|
|
12
12
|
defaultValue?: any;
|
|
13
|
+
value?: any;
|
|
13
14
|
autoSubmit?: boolean;
|
|
14
15
|
onValidate?: (errors: any, values: any) => Promise<void>;
|
|
16
|
+
onChange?: (value: any) => void;
|
|
15
17
|
onSubmit?: (value: any) => void;
|
|
16
18
|
forwardRef?: FormRef;
|
|
17
19
|
children?: (methods: UseFormReturn & {
|
package/lib/components/Form.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.5.
|
|
2
|
+
* amis-ui v2.5.2
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -20,10 +20,10 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
20
20
|
var debounce__default = /*#__PURE__*/_interopDefaultLegacy(debounce);
|
|
21
21
|
|
|
22
22
|
function Form(props) {
|
|
23
|
-
var _a;
|
|
24
|
-
var cx = props.classnames, className = props.className, autoSubmit = props.autoSubmit;
|
|
23
|
+
var _a, _b;
|
|
24
|
+
var cx = props.classnames, className = props.className, autoSubmit = props.autoSubmit, value = props.value, onChange = props.onChange;
|
|
25
25
|
var methods = reactHookForm.useForm({
|
|
26
|
-
defaultValues: props.defaultValue,
|
|
26
|
+
defaultValues: (_a = props.value) !== null && _a !== void 0 ? _a : props.defaultValue,
|
|
27
27
|
resolver: useValidationResolver.useValidationResolver(props.translate, props.onValidate)
|
|
28
28
|
});
|
|
29
29
|
var onSubmit = React__default["default"].useRef(methods.handleSubmit(props.onSubmit || amisCore.noop));
|
|
@@ -42,6 +42,21 @@ function Form(props) {
|
|
|
42
42
|
};
|
|
43
43
|
}, []);
|
|
44
44
|
}
|
|
45
|
+
React__default["default"].useEffect(function () {
|
|
46
|
+
if (value && amisCore.isObjectShallowModified(value, methods.getValues())) {
|
|
47
|
+
Object.keys(value).forEach(function (key) {
|
|
48
|
+
methods.setValue(key, value[key]);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}, [value]);
|
|
52
|
+
if (onChange) {
|
|
53
|
+
React__default["default"].useEffect(function () {
|
|
54
|
+
var subscriber = methods.watch(function (value) {
|
|
55
|
+
onChange(value);
|
|
56
|
+
});
|
|
57
|
+
return function () { return subscriber.unsubscribe(); };
|
|
58
|
+
}, [onChange]);
|
|
59
|
+
}
|
|
45
60
|
React__default["default"].useEffect(function () {
|
|
46
61
|
if (props.forwardRef) {
|
|
47
62
|
// 这个模式别的组件没见到过不知道后续会不会不允许
|
|
@@ -65,8 +80,8 @@ function Form(props) {
|
|
|
65
80
|
});
|
|
66
81
|
return (React__default["default"].createElement(reactHookForm.FormProvider, tslib.__assign({}, methods),
|
|
67
82
|
React__default["default"].createElement("form", { className: cx('Form', className), onSubmit: onSubmit.current, noValidate: true },
|
|
68
|
-
React__default["default"].createElement("input", { type: "submit", style: { display: 'none' } }), (
|
|
69
|
-
|
|
83
|
+
React__default["default"].createElement("input", { type: "submit", style: { display: 'none' } }), (_b = props.children) === null || _b === void 0 ? void 0 :
|
|
84
|
+
_b.call(props, tslib.__assign(tslib.__assign({}, methods), { onSubmit: onSubmit.current })))));
|
|
70
85
|
}
|
|
71
86
|
var ThemedForm = amisCore.themeable(amisCore.localeable(Form));
|
|
72
87
|
var Form$1 = React__default["default"].forwardRef(function (props, ref) { return (React__default["default"].createElement(ThemedForm, tslib.__assign({}, props, { forwardRef: ref }))); });
|