amis-ui 3.2.0 → 3.3.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.d.ts +122 -122
- package/esm/components/Alert.js +55 -17
- package/esm/components/Alert2.d.ts +20 -20
- package/esm/components/Alert2.js +5 -8
- package/esm/components/AnchorNav.d.ts +20 -20
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/ArrayInput.d.ts +40 -40
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.d.ts +120 -120
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.d.ts +102 -101
- package/esm/components/Avatar.js +4 -3
- 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 +5 -9
- package/esm/components/Button.d.ts +20 -20
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.d.ts +40 -40
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.d.ts +100 -100
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedDropdownSelection.d.ts +120 -120
- package/esm/components/ChainedDropdownSelection.js +1 -1
- package/esm/components/ChainedSelection.d.ts +120 -120
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.d.ts +10 -10
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +1 -1
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.d.ts +140 -140
- package/esm/components/Collapse.js +2 -2
- package/esm/components/CollapseGroup.d.ts +30 -30
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.d.ts +80 -80
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConfirmBox.d.ts +80 -80
- package/esm/components/ConfirmBox.js +1 -1
- package/esm/components/ContextMenu.d.ts +2 -2
- package/esm/components/ContextMenu.js +25 -10
- package/esm/components/DatePicker.d.ts +82 -81
- package/esm/components/DatePicker.js +5 -2
- package/esm/components/DateRangePicker.d.ts +120 -120
- package/esm/components/DateRangePicker.js +1 -1
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.d.ts +30 -30
- package/esm/components/Drawer.js +1 -1
- package/esm/components/DropDownSelection.d.ts +120 -120
- package/esm/components/DropDownSelection.js +1 -1
- package/esm/components/Editor.d.ts +120 -120
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/GaodeMapPicker.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.d.ts +120 -120
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.d.ts +40 -40
- package/esm/components/ImageGallery.js +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.d.ts +10 -10
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +2 -2
- package/esm/components/InputTable.js +1 -1
- package/esm/components/Layout.d.ts +10 -10
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +5 -4
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.d.ts +80 -80
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.d.ts +40 -40
- package/esm/components/LocationPicker.js +4 -4
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Modal.d.ts +80 -80
- package/esm/components/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +120 -120
- package/esm/components/MultilineText.d.ts +40 -40
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.d.ts +20 -20
- package/esm/components/NumberInput.js +6 -3
- package/esm/components/Pagination.d.ts +80 -80
- 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.d.ts +120 -120
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.d.ts +30 -30
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.d.ts +11 -10
- package/esm/components/Radios.js +7 -6
- package/esm/components/Range.js +4 -4
- package/esm/components/Rating.d.ts +20 -20
- package/esm/components/Rating.js +2 -2
- package/esm/components/ResultBox.d.ts +80 -80
- package/esm/components/ResultBox.js +1 -1
- package/esm/components/ResultList.d.ts +40 -40
- package/esm/components/ResultList.js +2 -2
- package/esm/components/ResultTableList.d.ts +120 -120
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.d.ts +40 -40
- package/esm/components/ResultTreeList.js +4 -2
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.d.ts +82 -82
- package/esm/components/SearchBox.js +4 -4
- package/esm/components/Select.d.ts +1546 -1546
- package/esm/components/Select.js +4 -2
- package/esm/components/SelectMobile.js +1 -1
- package/esm/components/Selection.d.ts +120 -120
- 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.d.ts +50 -50
- package/esm/components/Spinner.js +4 -4
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.d.ts +10 -10
- package/esm/components/Switch.js +1 -1
- package/esm/components/TableSelection.d.ts +120 -120
- package/esm/components/TableSelection.js +3 -2
- package/esm/components/Tabs.d.ts +80 -80
- package/esm/components/Tabs.js +3 -3
- package/esm/components/TabsTransfer.d.ts +40 -40
- package/esm/components/TabsTransfer.js +1 -1
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.d.ts +80 -80
- package/esm/components/Tag.js +5 -10
- package/esm/components/Textarea.d.ts +40 -40
- package/esm/components/Textarea.js +1 -1
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.d.ts +1 -1
- package/esm/components/TimelineItem.js +4 -3
- package/esm/components/Tinymce.d.ts +1 -0
- package/esm/components/Tinymce.js +7 -3
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.d.ts +80 -80
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.d.ts +30 -30
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.d.ts +169 -169
- package/esm/components/Transfer.js +7 -2
- package/esm/components/TransferDropDown.d.ts +160 -160
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +2 -2
- package/esm/components/Tree.d.ts +160 -160
- package/esm/components/Tree.js +35 -9
- package/esm/components/TreeSelection.d.ts +120 -120
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.d.ts +40 -40
- package/esm/components/UserSelect.js +1 -1
- package/esm/components/UserTabSelect.d.ts +40 -40
- 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 +2 -2
- 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 +8 -3
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.js +1 -1
- package/esm/components/formula/Editor.d.ts +43 -40
- package/esm/components/formula/Editor.js +36 -9
- package/esm/components/formula/FuncList.js +8 -4
- package/esm/components/formula/Input.d.ts +272 -0
- package/esm/components/formula/Input.js +115 -0
- package/esm/components/formula/Picker.d.ts +61 -44
- package/esm/components/formula/Picker.js +86 -16
- package/esm/components/formula/VariableList.js +43 -23
- package/esm/components/formula/plugin.js +1 -1
- package/esm/components/icons.d.ts +11 -2
- package/esm/components/icons.js +64 -22
- package/esm/components/json-schema/Array.js +2 -2
- package/esm/components/json-schema/Item.js +1 -1
- package/esm/components/json-schema/Object.js +2 -2
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.js +1 -1
- package/esm/components/menu/SubMenu.js +1 -1
- package/esm/components/menu/index.d.ts +60 -60
- package/esm/components/menu/index.js +1 -1
- package/esm/components/schema-editor/Array.js +1 -1
- package/esm/components/schema-editor/Common.js +1 -1
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.js +1 -1
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.d.ts +40 -40
- package/esm/components/schema-editor/index.js +1 -1
- package/esm/components/table/Cell.d.ts +80 -80
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.d.ts +40 -40
- package/esm/components/table/HeadCellFilter.js +1 -1
- package/esm/components/table/HeadCellSelect.d.ts +40 -40
- 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.d.ts +120 -120
- 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.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 +15 -8
- 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/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 +6 -2
- package/esm/locale/en-US.js +6 -2
- package/esm/locale/zh-CN.js +6 -2
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/esm/node_modules/rc-overflow/es/Item.js +1 -1
- package/esm/node_modules/rc-overflow/es/Overflow.js +1 -1
- package/esm/node_modules/rc-overflow/es/RawItem.js +1 -1
- package/esm/node_modules/rc-overflow/es/context.js +1 -1
- package/esm/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
- package/esm/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
- package/esm/node_modules/rc-overflow/es/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/Collection.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
- package/esm/node_modules/rc-util/es/Children/toArray.js +3 -4
- package/esm/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/esm/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useEvent.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
- package/esm/node_modules/rc-util/es/raf.js +1 -1
- package/esm/node_modules/rc-util/es/ref.js +3 -4
- package/esm/node_modules/rc-util/es/warning.js +1 -1
- package/esm/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.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 +12 -13
- package/lib/components/Alert.d.ts +42 -42
- package/lib/components/Alert.js +64 -27
- package/lib/components/Alert2.d.ts +10 -10
- package/lib/components/Alert2.js +13 -17
- package/lib/components/AnchorNav.d.ts +10 -10
- package/lib/components/AnchorNav.js +10 -12
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +17 -14
- package/lib/components/AsideNav.js +13 -15
- package/lib/components/AssociatedSelection.d.ts +40 -40
- package/lib/components/AssociatedSelection.js +11 -17
- package/lib/components/Avatar.d.ts +42 -41
- package/lib/components/Avatar.js +10 -6
- package/lib/components/Badge.js +13 -13
- package/lib/components/BaiduMapPicker.js +15 -12
- package/lib/components/BarCode.js +5 -5
- package/lib/components/Breadcrumb.js +21 -25
- package/lib/components/Button.d.ts +10 -10
- package/lib/components/Button.js +7 -8
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +36 -38
- package/lib/components/Card.d.ts +50 -50
- package/lib/components/Card.js +22 -19
- package/lib/components/Cascader.js +18 -19
- package/lib/components/ChainedDropdownSelection.d.ts +40 -40
- package/lib/components/ChainedDropdownSelection.js +7 -5
- package/lib/components/ChainedSelection.d.ts +40 -40
- package/lib/components/ChainedSelection.js +23 -20
- package/lib/components/Checkbox.d.ts +10 -10
- package/lib/components/Checkbox.js +9 -10
- package/lib/components/CityArea.js +9 -10
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +5 -2
- package/lib/components/Collapse.d.ts +50 -50
- package/lib/components/Collapse.js +12 -14
- package/lib/components/CollapseGroup.d.ts +30 -30
- package/lib/components/CollapseGroup.js +5 -7
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +15 -17
- package/lib/components/Combo.js +16 -73
- package/lib/components/ConfirmBox.d.ts +40 -40
- package/lib/components/ConfirmBox.js +24 -21
- package/lib/components/ContextMenu.d.ts +2 -2
- package/lib/components/ContextMenu.js +37 -19
- package/lib/components/DatePicker.d.ts +41 -40
- package/lib/components/DatePicker.js +26 -25
- package/lib/components/DateRangePicker.d.ts +40 -40
- package/lib/components/DateRangePicker.js +40 -42
- package/lib/components/DndContainer.js +6 -8
- package/lib/components/Drawer.js +13 -15
- package/lib/components/DropDownSelection.d.ts +40 -40
- package/lib/components/DropDownSelection.js +14 -15
- package/lib/components/Editor.d.ts +40 -40
- package/lib/components/Editor.js +9 -11
- package/lib/components/Form.js +8 -5
- package/lib/components/FormField.js +20 -21
- package/lib/components/GaodeMapPicker.js +10 -7
- package/lib/components/GridNav.js +15 -16
- package/lib/components/GroupedSelection.d.ts +40 -40
- package/lib/components/GroupedSelection.js +22 -19
- package/lib/components/Html.js +5 -7
- package/lib/components/ImageGallery.d.ts +40 -40
- package/lib/components/ImageGallery.js +28 -25
- package/lib/components/Input.js +6 -3
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +8 -5
- package/lib/components/InputBoxWithSuggestion.js +11 -8
- package/lib/components/InputTable.js +24 -21
- package/lib/components/Layout.d.ts +10 -10
- package/lib/components/Layout.js +13 -26
- package/lib/components/Link.js +8 -4
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +8 -5
- package/lib/components/ListMenu.d.ts +40 -40
- package/lib/components/ListMenu.js +11 -8
- package/lib/components/LocationPicker.d.ts +40 -40
- package/lib/components/LocationPicker.js +16 -13
- package/lib/components/Markdown.js +5 -2
- package/lib/components/Modal.d.ts +40 -40
- package/lib/components/Modal.js +15 -17
- 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 +9 -6
- package/lib/components/NumberInput.d.ts +10 -10
- package/lib/components/NumberInput.js +13 -7
- package/lib/components/Pagination.d.ts +40 -40
- package/lib/components/Pagination.js +30 -27
- package/lib/components/Picker.js +13 -14
- package/lib/components/PickerColumn.js +7 -5
- package/lib/components/PickerContainer.js +6 -3
- package/lib/components/PopOverContainer.js +7 -4
- package/lib/components/PopUp.d.ts +40 -40
- package/lib/components/PopUp.js +18 -20
- package/lib/components/Progress.d.ts +40 -40
- package/lib/components/Progress.js +14 -11
- package/lib/components/PullRefresh.js +8 -14
- package/lib/components/Radios.d.ts +11 -10
- package/lib/components/Radios.js +13 -24
- package/lib/components/Range.js +24 -26
- package/lib/components/Rating.d.ts +10 -10
- package/lib/components/Rating.js +14 -15
- package/lib/components/ResultBox.d.ts +40 -40
- package/lib/components/ResultBox.js +31 -28
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +19 -15
- package/lib/components/ResultTableList.d.ts +40 -40
- package/lib/components/ResultTableList.js +13 -13
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +21 -13
- package/lib/components/RichText.js +6 -8
- package/lib/components/SearchBox.d.ts +42 -42
- package/lib/components/SearchBox.js +26 -23
- package/lib/components/Select.d.ts +193 -193
- package/lib/components/Select.js +60 -61
- package/lib/components/SelectMobile.js +20 -17
- package/lib/components/Selection.d.ts +40 -40
- package/lib/components/Selection.js +7 -9
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +8 -5
- package/lib/components/Spinner.d.ts +10 -10
- package/lib/components/Spinner.js +13 -16
- package/lib/components/Steps.js +20 -21
- package/lib/components/Switch.d.ts +10 -10
- package/lib/components/Switch.js +8 -10
- package/lib/components/TableSelection.d.ts +40 -40
- package/lib/components/TableSelection.js +35 -29
- package/lib/components/Tabs.d.ts +40 -40
- package/lib/components/Tabs.js +41 -43
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +17 -14
- package/lib/components/TabsTransferPicker.js +8 -5
- package/lib/components/Tag.d.ts +60 -60
- package/lib/components/Tag.js +12 -17
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +9 -6
- package/lib/components/Timeline.js +6 -7
- package/lib/components/TimelineItem.d.ts +1 -1
- package/lib/components/TimelineItem.js +18 -14
- package/lib/components/Tinymce.d.ts +1 -0
- package/lib/components/Tinymce.js +11 -4
- package/lib/components/TitleBar.js +10 -16
- package/lib/components/Toast.d.ts +40 -40
- package/lib/components/Toast.js +14 -16
- package/lib/components/Tooltip.js +8 -10
- package/lib/components/TooltipWrapper.js +6 -8
- package/lib/components/Transfer.d.ts +40 -40
- package/lib/components/Transfer.js +47 -33
- package/lib/components/TransferDropDown.d.ts +40 -40
- package/lib/components/TransferDropDown.js +11 -12
- package/lib/components/TransferPicker.js +8 -5
- package/lib/components/TransferSearch.js +10 -6
- package/lib/components/Tree.d.ts +40 -40
- package/lib/components/Tree.js +86 -75
- package/lib/components/TreeSelection.d.ts +40 -40
- package/lib/components/TreeSelection.js +15 -16
- package/lib/components/UserSelect.d.ts +40 -40
- package/lib/components/UserSelect.js +84 -85
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +17 -18
- package/lib/components/WithRemoteConfig.js +5 -2
- package/lib/components/WithStore.js +5 -2
- package/lib/components/calendar/Calendar.js +7 -4
- package/lib/components/calendar/CalendarContainer.js +5 -2
- package/lib/components/calendar/DaysView.js +55 -53
- package/lib/components/calendar/MonthsView.js +18 -15
- package/lib/components/calendar/QuartersView.js +17 -14
- package/lib/components/calendar/TimeView.js +32 -29
- package/lib/components/calendar/YearsView.js +18 -15
- package/lib/components/condition-builder/Expression.js +10 -7
- package/lib/components/condition-builder/Field.js +7 -4
- package/lib/components/condition-builder/Formula.js +6 -3
- package/lib/components/condition-builder/Func.js +16 -13
- package/lib/components/condition-builder/Group.js +22 -19
- package/lib/components/condition-builder/GroupOrItem.js +14 -11
- package/lib/components/condition-builder/InputSwitch.js +10 -11
- package/lib/components/condition-builder/Item.js +19 -16
- package/lib/components/condition-builder/Value.js +18 -10
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.js +8 -5
- package/lib/components/formula/Editor.d.ts +43 -40
- package/lib/components/formula/Editor.js +54 -24
- package/lib/components/formula/FuncList.js +32 -25
- package/lib/components/formula/Input.d.ts +272 -0
- package/lib/components/formula/Input.js +128 -0
- package/lib/components/formula/Picker.d.ts +61 -44
- package/lib/components/formula/Picker.js +113 -39
- package/lib/components/formula/VariableList.js +60 -37
- package/lib/components/formula/plugin.js +1 -1
- package/lib/components/icons.d.ts +11 -2
- package/lib/components/icons.js +76 -30
- package/lib/components/json-schema/Array.js +15 -12
- package/lib/components/json-schema/Item.js +11 -12
- package/lib/components/json-schema/Object.js +18 -15
- package/lib/components/json-schema/index.js +6 -7
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.js +16 -18
- package/lib/components/menu/SubMenu.js +17 -19
- package/lib/components/menu/index.d.ts +10 -10
- package/lib/components/menu/index.js +14 -16
- package/lib/components/schema-editor/Array.js +10 -7
- package/lib/components/schema-editor/Common.js +19 -16
- package/lib/components/schema-editor/Item.js +5 -2
- package/lib/components/schema-editor/Object.js +15 -12
- package/lib/components/schema-editor/SchemaVariableList.js +9 -6
- package/lib/components/schema-editor/SchemaVariableListPicker.js +7 -4
- package/lib/components/schema-editor/index.d.ts +40 -40
- package/lib/components/schema-editor/index.js +6 -6
- package/lib/components/table/Cell.d.ts +40 -40
- package/lib/components/table/Cell.js +5 -6
- package/lib/components/table/HeadCellDropDown.js +8 -9
- package/lib/components/table/HeadCellFilter.d.ts +40 -40
- package/lib/components/table/HeadCellFilter.js +12 -13
- package/lib/components/table/HeadCellSelect.d.ts +40 -40
- package/lib/components/table/HeadCellSelect.js +6 -7
- package/lib/components/table/HeadCellSort.js +11 -12
- package/lib/components/table/ItemActionsWrapper.js +5 -2
- package/lib/components/table/index.d.ts +80 -80
- package/lib/components/table/index.js +62 -63
- package/lib/components/virtual-list/AutoSizer.js +5 -2
- 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 +6 -6
- package/lib/helper.css +1393 -9569
- 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 +7 -24
- package/lib/icons/alert-info.svg.js +7 -24
- package/lib/icons/alert-success.svg.js +7 -24
- package/lib/icons/alert-warning.svg.js +7 -24
- package/lib/icons/back.svg.js +7 -24
- package/lib/icons/calendar.svg.js +11 -28
- package/lib/icons/caret.svg.js +7 -24
- package/lib/icons/check.svg.js +7 -24
- package/lib/icons/clock.svg.js +9 -26
- package/lib/icons/close-small.svg.js +8 -25
- package/lib/icons/close.svg.js +7 -24
- package/lib/icons/cloud-upload.svg.js +7 -24
- package/lib/icons/column-filter.svg.js +7 -24
- package/lib/icons/columns.svg.js +7 -24
- package/lib/icons/compress-alt.svg.js +7 -24
- package/lib/icons/copy.svg.js +9 -26
- package/lib/icons/date.svg.js +9 -26
- package/lib/icons/department.svg.js +12 -29
- package/lib/icons/desk-empty.svg.js +19 -36
- package/lib/icons/dot.svg.js +10 -27
- package/lib/icons/down-arrow-bold.svg.js +7 -24
- package/lib/icons/down.svg.js +7 -24
- package/lib/icons/download.svg.js +7 -24
- package/lib/icons/drag-bar.svg.js +15 -32
- package/lib/icons/drag.svg.js +7 -24
- package/lib/icons/edit.svg.js +7 -24
- package/lib/icons/ellipsis-v.svg.js +7 -24
- package/lib/icons/enter.svg.js +7 -24
- package/lib/icons/exchange.svg.js +7 -24
- package/lib/icons/expand-alt.svg.js +7 -24
- package/lib/icons/fail.svg.js +9 -26
- package/lib/icons/file.svg.js +8 -25
- package/lib/icons/filter.svg.js +7 -24
- package/lib/icons/folder.svg.js +9 -26
- package/lib/icons/function.svg.js +20 -30
- package/lib/icons/home.svg.js +7 -24
- package/lib/icons/image.svg.js +7 -24
- package/lib/icons/info-circle.svg.js +7 -24
- package/lib/icons/info.svg.js +8 -25
- package/lib/icons/input-clear.svg.js +7 -24
- package/lib/icons/invisible.svg.js +7 -24
- package/lib/icons/left-arrow.svg.js +7 -24
- package/lib/icons/loading-outline.svg.js +7 -24
- package/lib/icons/location.svg.js +7 -24
- package/lib/icons/menu.svg.js +7 -24
- package/lib/icons/minus.svg.js +7 -24
- package/lib/icons/move.svg.js +7 -24
- package/lib/icons/mute.svg.js +7 -24
- package/lib/icons/new-edit.svg.js +7 -24
- package/lib/icons/pause.svg.js +7 -24
- package/lib/icons/pencil.svg.js +7 -24
- package/lib/icons/play.svg.js +7 -24
- package/lib/icons/plus-cicle.svg.js +7 -24
- package/lib/icons/plus-fine.svg.js +7 -24
- package/lib/icons/plus.svg.js +7 -24
- package/lib/icons/post.svg.js +12 -29
- package/lib/icons/question-mark.svg.js +8 -25
- package/lib/icons/question.svg.js +7 -24
- package/lib/icons/redo.svg.js +7 -24
- package/lib/icons/refresh.svg.js +7 -24
- package/lib/icons/reload.svg.js +7 -24
- package/lib/icons/remove.svg.js +7 -24
- package/lib/icons/retry.svg.js +9 -26
- package/lib/icons/right-arrow-bold.svg.js +7 -24
- package/lib/icons/right-arrow.svg.js +7 -24
- package/lib/icons/right-double-arrow.svg.js +7 -24
- package/lib/icons/role.svg.js +11 -28
- package/lib/icons/rotate-left.svg.js +8 -25
- package/lib/icons/rotate-right.svg.js +8 -25
- package/lib/icons/scale-origin.svg.js +9 -26
- package/lib/icons/schedule.svg.js +9 -26
- package/lib/icons/search.svg.js +7 -24
- package/lib/icons/setting.svg.js +7 -24
- package/lib/icons/slider-handle-icon.svg.js +7 -24
- package/lib/icons/sort-asc.svg.js +7 -24
- package/lib/icons/sort-default.svg.js +8 -25
- package/lib/icons/sort-desc.svg.js +7 -24
- package/lib/icons/star.svg.js +7 -24
- package/lib/icons/status-close.svg.js +7 -24
- package/lib/icons/steps-finsh.svg.js +7 -24
- package/lib/icons/success.svg.js +9 -26
- package/lib/icons/transparent.svg.js +12 -29
- package/lib/icons/trash.svg.js +7 -24
- package/lib/icons/tree-down.svg.js +7 -24
- package/lib/icons/undo.svg.js +7 -24
- package/lib/icons/upload.svg.js +7 -24
- package/lib/icons/user-remove.svg.js +9 -26
- package/lib/icons/view.svg.js +7 -24
- package/lib/icons/volume.svg.js +8 -25
- package/lib/icons/warning-mark.svg.js +8 -25
- package/lib/icons/warning.svg.js +7 -24
- package/lib/icons/window-restore.svg.js +7 -24
- package/lib/icons/zoom-in.svg.js +7 -24
- package/lib/icons/zoom-out.svg.js +7 -24
- package/lib/index.js +1 -1
- package/lib/locale/de-DE.js +6 -2
- package/lib/locale/en-US.js +6 -2
- package/lib/locale/zh-CN.js +6 -2
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/lib/node_modules/rc-overflow/es/Item.js +1 -1
- package/lib/node_modules/rc-overflow/es/Overflow.js +1 -1
- package/lib/node_modules/rc-overflow/es/RawItem.js +1 -1
- package/lib/node_modules/rc-overflow/es/context.js +1 -1
- package/lib/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
- package/lib/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
- package/lib/node_modules/rc-overflow/es/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/Collection.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
- package/lib/node_modules/rc-util/es/Children/toArray.js +3 -4
- package/lib/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/lib/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useEvent.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
- package/lib/node_modules/rc-util/es/raf.js +1 -1
- package/lib/node_modules/rc-util/es/ref.js +3 -4
- package/lib/node_modules/rc-util/es/warning.js +1 -1
- package/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
- package/lib/packages/amis-ui/scss/helper.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/ang.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/antd.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/cxd.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/dark.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +600 -746
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +600 -746
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +600 -746
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +600 -746
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +600 -746
- package/package.json +6 -6
- package/scss/_components.scss +7 -6
- package/scss/_mixins.scss +0 -1
- package/scss/_properties.scss +6 -4
- package/scss/_variables.scss +20 -0
- package/scss/base/_common.scss +4 -0
- package/scss/components/_cards.scss +3 -10
- package/scss/components/_column-toggler.scss +4 -4
- package/scss/components/_condition-builder.scss +1 -1
- package/scss/components/_debug.scss +34 -1
- package/scss/components/_drawer.scss +10 -1
- package/scss/components/_dropdown.scss +5 -4
- package/scss/components/_formula.scss +39 -3
- package/scss/components/_input-box.scss +2 -1
- package/scss/components/_json-schema-editor.scss +2 -2
- package/scss/components/_json-schema.scss +2 -2
- package/scss/components/_list.scss +3 -10
- package/scss/components/_menu.scss +1 -0
- package/scss/components/_progress.scss +1 -1
- package/scss/components/_search-box.scss +6 -0
- package/scss/components/_steps.scss +5 -3
- package/scss/components/_table.scss +104 -129
- package/scss/components/_timeline.scss +2 -1
- package/scss/components/form/_checks.scss +3 -1
- package/scss/components/form/_date.scss +3 -0
- package/scss/components/form/_form.scss +7 -0
- package/scss/components/form/_list.scss +1 -1
- package/scss/components/form/_nested-select.scss +3 -2
- package/scss/components/form/_selection.scss +8 -0
- package/scss/helper/sizing/_width.md +105 -94
- package/scss/helper/sizing/_width.scss +16 -0
- package/esm/_virtual/index.js +0 -8
- package/esm/_virtual/react-is.development.js +0 -8
- package/esm/_virtual/react-is.production.min.js +0 -8
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +0 -195
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +0 -31
- package/esm/node_modules/rc-util/node_modules/react-is/index.js +0 -17
- package/lib/_virtual/index.js +0 -12
- package/lib/_virtual/react-is.development.js +0 -12
- package/lib/_virtual/react-is.production.min.js +0 -12
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +0 -199
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +0 -35
- package/lib/node_modules/rc-util/node_modules/react-is/index.js +0 -19
|
@@ -72,7 +72,7 @@ export declare class Editor extends React.Component<EditorProps, EditorState> {
|
|
|
72
72
|
render(): React.JSX.Element;
|
|
73
73
|
}
|
|
74
74
|
declare const _default: {
|
|
75
|
-
new (props: Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
75
|
+
new (props: Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
76
76
|
width?: string | number | undefined;
|
|
77
77
|
height?: string | number | undefined;
|
|
78
78
|
options?: {
|
|
@@ -90,7 +90,7 @@ declare const _default: {
|
|
|
90
90
|
getWrappedInstance(): any;
|
|
91
91
|
render(): React.JSX.Element;
|
|
92
92
|
context: unknown;
|
|
93
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
93
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
94
94
|
width?: string | number | undefined;
|
|
95
95
|
height?: string | number | undefined;
|
|
96
96
|
options?: {
|
|
@@ -104,7 +104,7 @@ declare const _default: {
|
|
|
104
104
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
105
105
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
106
106
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
107
|
-
readonly props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
107
|
+
readonly props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
108
108
|
width?: string | number | undefined;
|
|
109
109
|
height?: string | number | undefined;
|
|
110
110
|
options?: {
|
|
@@ -122,7 +122,7 @@ declare const _default: {
|
|
|
122
122
|
[key: string]: React.ReactInstance;
|
|
123
123
|
};
|
|
124
124
|
componentDidMount?(): void;
|
|
125
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
125
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
126
126
|
width?: string | number | undefined;
|
|
127
127
|
height?: string | number | undefined;
|
|
128
128
|
options?: {
|
|
@@ -137,7 +137,7 @@ declare const _default: {
|
|
|
137
137
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
138
138
|
componentWillUnmount?(): void;
|
|
139
139
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
140
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
140
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
141
141
|
width?: string | number | undefined;
|
|
142
142
|
height?: string | number | undefined;
|
|
143
143
|
options?: {
|
|
@@ -150,7 +150,7 @@ declare const _default: {
|
|
|
150
150
|
locale?: string | undefined;
|
|
151
151
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
152
152
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
153
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
153
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
154
154
|
width?: string | number | undefined;
|
|
155
155
|
height?: string | number | undefined;
|
|
156
156
|
options?: {
|
|
@@ -165,7 +165,7 @@ declare const _default: {
|
|
|
165
165
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
166
166
|
componentWillMount?(): void;
|
|
167
167
|
UNSAFE_componentWillMount?(): void;
|
|
168
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
168
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
169
169
|
width?: string | number | undefined;
|
|
170
170
|
height?: string | number | undefined;
|
|
171
171
|
options?: {
|
|
@@ -178,7 +178,7 @@ declare const _default: {
|
|
|
178
178
|
locale?: string | undefined;
|
|
179
179
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
180
180
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
181
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
181
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
182
182
|
width?: string | number | undefined;
|
|
183
183
|
height?: string | number | undefined;
|
|
184
184
|
options?: {
|
|
@@ -191,7 +191,7 @@ declare const _default: {
|
|
|
191
191
|
locale?: string | undefined;
|
|
192
192
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
193
193
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
194
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
194
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
195
195
|
width?: string | number | undefined;
|
|
196
196
|
height?: string | number | undefined;
|
|
197
197
|
options?: {
|
|
@@ -204,7 +204,7 @@ declare const _default: {
|
|
|
204
204
|
locale?: string | undefined;
|
|
205
205
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
206
206
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
207
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
207
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
208
208
|
width?: string | number | undefined;
|
|
209
209
|
height?: string | number | undefined;
|
|
210
210
|
options?: {
|
|
@@ -221,7 +221,7 @@ declare const _default: {
|
|
|
221
221
|
displayName: string;
|
|
222
222
|
contextType: React.Context<string>;
|
|
223
223
|
ComposedComponent: React.ComponentType<{
|
|
224
|
-
new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
224
|
+
new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
225
225
|
width?: string | number | undefined;
|
|
226
226
|
height?: string | number | undefined;
|
|
227
227
|
options?: {
|
|
@@ -239,7 +239,7 @@ declare const _default: {
|
|
|
239
239
|
getWrappedInstance(): any;
|
|
240
240
|
render(): React.JSX.Element;
|
|
241
241
|
context: unknown;
|
|
242
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
242
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
243
243
|
width?: string | number | undefined;
|
|
244
244
|
height?: string | number | undefined;
|
|
245
245
|
options?: {
|
|
@@ -253,7 +253,7 @@ declare const _default: {
|
|
|
253
253
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
254
254
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
255
255
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
256
|
-
readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
256
|
+
readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
257
257
|
width?: string | number | undefined;
|
|
258
258
|
height?: string | number | undefined;
|
|
259
259
|
options?: {
|
|
@@ -271,7 +271,7 @@ declare const _default: {
|
|
|
271
271
|
[key: string]: React.ReactInstance;
|
|
272
272
|
};
|
|
273
273
|
componentDidMount?(): void;
|
|
274
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
274
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
275
275
|
width?: string | number | undefined;
|
|
276
276
|
height?: string | number | undefined;
|
|
277
277
|
options?: {
|
|
@@ -286,7 +286,7 @@ declare const _default: {
|
|
|
286
286
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
287
287
|
componentWillUnmount?(): void;
|
|
288
288
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
289
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
289
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
290
290
|
width?: string | number | undefined;
|
|
291
291
|
height?: string | number | undefined;
|
|
292
292
|
options?: {
|
|
@@ -299,7 +299,7 @@ declare const _default: {
|
|
|
299
299
|
locale?: string | undefined;
|
|
300
300
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
301
301
|
}>, prevState: Readonly<{}>): any;
|
|
302
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
302
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
303
303
|
width?: string | number | undefined;
|
|
304
304
|
height?: string | number | undefined;
|
|
305
305
|
options?: {
|
|
@@ -314,7 +314,7 @@ declare const _default: {
|
|
|
314
314
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
315
315
|
componentWillMount?(): void;
|
|
316
316
|
UNSAFE_componentWillMount?(): void;
|
|
317
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
317
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
318
318
|
width?: string | number | undefined;
|
|
319
319
|
height?: string | number | undefined;
|
|
320
320
|
options?: {
|
|
@@ -327,7 +327,7 @@ declare const _default: {
|
|
|
327
327
|
locale?: string | undefined;
|
|
328
328
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
329
329
|
}>, nextContext: any): void;
|
|
330
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
330
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
331
331
|
width?: string | number | undefined;
|
|
332
332
|
height?: string | number | undefined;
|
|
333
333
|
options?: {
|
|
@@ -340,7 +340,7 @@ declare const _default: {
|
|
|
340
340
|
locale?: string | undefined;
|
|
341
341
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
342
342
|
}>, nextContext: any): void;
|
|
343
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
343
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
344
344
|
width?: string | number | undefined;
|
|
345
345
|
height?: string | number | undefined;
|
|
346
346
|
options?: {
|
|
@@ -353,7 +353,7 @@ declare const _default: {
|
|
|
353
353
|
locale?: string | undefined;
|
|
354
354
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
355
355
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
356
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
356
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
357
357
|
width?: string | number | undefined;
|
|
358
358
|
height?: string | number | undefined;
|
|
359
359
|
options?: {
|
|
@@ -374,7 +374,7 @@ declare const _default: {
|
|
|
374
374
|
ComposedComponent: typeof Editor;
|
|
375
375
|
}>;
|
|
376
376
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
377
|
-
new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
377
|
+
new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
378
378
|
width?: string | number | undefined;
|
|
379
379
|
height?: string | number | undefined;
|
|
380
380
|
options?: {
|
|
@@ -392,7 +392,7 @@ declare const _default: {
|
|
|
392
392
|
getWrappedInstance(): any;
|
|
393
393
|
render(): React.JSX.Element;
|
|
394
394
|
context: unknown;
|
|
395
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
395
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
396
396
|
width?: string | number | undefined;
|
|
397
397
|
height?: string | number | undefined;
|
|
398
398
|
options?: {
|
|
@@ -406,7 +406,7 @@ declare const _default: {
|
|
|
406
406
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
407
407
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
408
408
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
409
|
-
readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
409
|
+
readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
410
410
|
width?: string | number | undefined;
|
|
411
411
|
height?: string | number | undefined;
|
|
412
412
|
options?: {
|
|
@@ -424,7 +424,7 @@ declare const _default: {
|
|
|
424
424
|
[key: string]: React.ReactInstance;
|
|
425
425
|
};
|
|
426
426
|
componentDidMount?(): void;
|
|
427
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
427
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
428
428
|
width?: string | number | undefined;
|
|
429
429
|
height?: string | number | undefined;
|
|
430
430
|
options?: {
|
|
@@ -439,7 +439,7 @@ declare const _default: {
|
|
|
439
439
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
440
440
|
componentWillUnmount?(): void;
|
|
441
441
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
442
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
442
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
443
443
|
width?: string | number | undefined;
|
|
444
444
|
height?: string | number | undefined;
|
|
445
445
|
options?: {
|
|
@@ -452,7 +452,7 @@ declare const _default: {
|
|
|
452
452
|
locale?: string | undefined;
|
|
453
453
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
454
454
|
}>, prevState: Readonly<{}>): any;
|
|
455
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
455
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
456
456
|
width?: string | number | undefined;
|
|
457
457
|
height?: string | number | undefined;
|
|
458
458
|
options?: {
|
|
@@ -467,7 +467,7 @@ declare const _default: {
|
|
|
467
467
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
468
468
|
componentWillMount?(): void;
|
|
469
469
|
UNSAFE_componentWillMount?(): void;
|
|
470
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
470
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
471
471
|
width?: string | number | undefined;
|
|
472
472
|
height?: string | number | undefined;
|
|
473
473
|
options?: {
|
|
@@ -480,7 +480,7 @@ declare const _default: {
|
|
|
480
480
|
locale?: string | undefined;
|
|
481
481
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
482
482
|
}>, nextContext: any): void;
|
|
483
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
483
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
484
484
|
width?: string | number | undefined;
|
|
485
485
|
height?: string | number | undefined;
|
|
486
486
|
options?: {
|
|
@@ -493,7 +493,7 @@ declare const _default: {
|
|
|
493
493
|
locale?: string | undefined;
|
|
494
494
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
495
495
|
}>, nextContext: any): void;
|
|
496
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
496
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
497
497
|
width?: string | number | undefined;
|
|
498
498
|
height?: string | number | undefined;
|
|
499
499
|
options?: {
|
|
@@ -506,7 +506,7 @@ declare const _default: {
|
|
|
506
506
|
locale?: string | undefined;
|
|
507
507
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
508
508
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
509
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
509
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
510
510
|
width?: string | number | undefined;
|
|
511
511
|
height?: string | number | undefined;
|
|
512
512
|
options?: {
|
|
@@ -527,7 +527,7 @@ declare const _default: {
|
|
|
527
527
|
ComposedComponent: typeof Editor;
|
|
528
528
|
}, {}> & {
|
|
529
529
|
ComposedComponent: {
|
|
530
|
-
new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
530
|
+
new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
531
531
|
width?: string | number | undefined;
|
|
532
532
|
height?: string | number | undefined;
|
|
533
533
|
options?: {
|
|
@@ -545,7 +545,7 @@ declare const _default: {
|
|
|
545
545
|
getWrappedInstance(): any;
|
|
546
546
|
render(): React.JSX.Element;
|
|
547
547
|
context: unknown;
|
|
548
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
548
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
549
549
|
width?: string | number | undefined;
|
|
550
550
|
height?: string | number | undefined;
|
|
551
551
|
options?: {
|
|
@@ -559,7 +559,7 @@ declare const _default: {
|
|
|
559
559
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
560
560
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
561
561
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
562
|
-
readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
562
|
+
readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
563
563
|
width?: string | number | undefined;
|
|
564
564
|
height?: string | number | undefined;
|
|
565
565
|
options?: {
|
|
@@ -577,7 +577,7 @@ declare const _default: {
|
|
|
577
577
|
[key: string]: React.ReactInstance;
|
|
578
578
|
};
|
|
579
579
|
componentDidMount?(): void;
|
|
580
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
580
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
581
581
|
width?: string | number | undefined;
|
|
582
582
|
height?: string | number | undefined;
|
|
583
583
|
options?: {
|
|
@@ -592,7 +592,7 @@ declare const _default: {
|
|
|
592
592
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
593
593
|
componentWillUnmount?(): void;
|
|
594
594
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
595
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
595
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
596
596
|
width?: string | number | undefined;
|
|
597
597
|
height?: string | number | undefined;
|
|
598
598
|
options?: {
|
|
@@ -605,7 +605,7 @@ declare const _default: {
|
|
|
605
605
|
locale?: string | undefined;
|
|
606
606
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
607
607
|
}>, prevState: Readonly<{}>): any;
|
|
608
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
608
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
609
609
|
width?: string | number | undefined;
|
|
610
610
|
height?: string | number | undefined;
|
|
611
611
|
options?: {
|
|
@@ -620,7 +620,7 @@ declare const _default: {
|
|
|
620
620
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
621
621
|
componentWillMount?(): void;
|
|
622
622
|
UNSAFE_componentWillMount?(): void;
|
|
623
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
623
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
624
624
|
width?: string | number | undefined;
|
|
625
625
|
height?: string | number | undefined;
|
|
626
626
|
options?: {
|
|
@@ -633,7 +633,7 @@ declare const _default: {
|
|
|
633
633
|
locale?: string | undefined;
|
|
634
634
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
635
635
|
}>, nextContext: any): void;
|
|
636
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
636
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
637
637
|
width?: string | number | undefined;
|
|
638
638
|
height?: string | number | undefined;
|
|
639
639
|
options?: {
|
|
@@ -646,7 +646,7 @@ declare const _default: {
|
|
|
646
646
|
locale?: string | undefined;
|
|
647
647
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
648
648
|
}>, nextContext: any): void;
|
|
649
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
649
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
650
650
|
width?: string | number | undefined;
|
|
651
651
|
height?: string | number | undefined;
|
|
652
652
|
options?: {
|
|
@@ -659,7 +659,7 @@ declare const _default: {
|
|
|
659
659
|
locale?: string | undefined;
|
|
660
660
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
661
661
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
662
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "
|
|
662
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
663
663
|
width?: string | number | undefined;
|
|
664
664
|
height?: string | number | undefined;
|
|
665
665
|
options?: {
|
package/lib/components/Editor.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.3.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -16,11 +16,9 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
16
16
|
|
|
17
17
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
* @author fex
|
|
23
|
-
*/
|
|
19
|
+
var __react_jsx__ = require('react');
|
|
20
|
+
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
|
|
21
|
+
(__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
24
22
|
// 用于发布 sdk 版本的时候替换,因为不确定 sdk 版本怎么部署,而 worker 地址路径不可知。
|
|
25
23
|
// 所以会被 fis3 替换成取相对的代码。
|
|
26
24
|
function filterUrl(url) {
|
|
@@ -216,13 +214,13 @@ var Editor = /** @class */ (function (_super) {
|
|
|
216
214
|
var style = tslib.__assign({}, (this.props.style || {}));
|
|
217
215
|
style.width = width;
|
|
218
216
|
style.height = height;
|
|
219
|
-
return (
|
|
220
|
-
this.editor && placeholder && !value ? (
|
|
221
|
-
this.editor && this.props.allowFullscreen ? (
|
|
222
|
-
|
|
217
|
+
return (_J$X_("div", { className: cx("MonacoEditor", { 'is-fullscreen': this.state.isFullscreen }, className), style: style, ref: this.wrapperRef },
|
|
218
|
+
this.editor && placeholder && !value ? (_J$X_("span", { className: cx('MonacoEditor-placeholder') }, placeholder)) : null,
|
|
219
|
+
this.editor && this.props.allowFullscreen ? (_J$X_("div", { className: cx("MonacoEditor-header") },
|
|
220
|
+
_J$X_("a", { className: cx('Modal-close', "MonacoEditor-fullscreen"), "data-tooltip": this.state.isFullscreen
|
|
223
221
|
? __('Editor.exitFullscreen')
|
|
224
222
|
: __('Editor.fullscreen'), "data-position": "left", onClick: this.handleFullscreenModeChange },
|
|
225
|
-
|
|
223
|
+
_J$X_(icons.Icon, { icon: this.state.isFullscreen ? 'compress-alt' : 'expand-alt', className: "icon" })))) : null));
|
|
226
224
|
};
|
|
227
225
|
Editor.defaultProps = {
|
|
228
226
|
language: 'javascript',
|
package/lib/components/Form.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.3.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -19,6 +19,9 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
19
19
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
20
20
|
var debounce__default = /*#__PURE__*/_interopDefaultLegacy(debounce);
|
|
21
21
|
|
|
22
|
+
var __react_jsx__ = require('react');
|
|
23
|
+
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
|
|
24
|
+
(__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
22
25
|
function Form(props) {
|
|
23
26
|
var _a, _b;
|
|
24
27
|
var cx = props.classnames, className = props.className, autoSubmit = props.autoSubmit, value = props.value, onChange = props.onChange;
|
|
@@ -78,13 +81,13 @@ function Form(props) {
|
|
|
78
81
|
}
|
|
79
82
|
};
|
|
80
83
|
});
|
|
81
|
-
return (
|
|
82
|
-
|
|
83
|
-
|
|
84
|
+
return (_J$X_(reactHookForm.FormProvider, tslib.__assign({}, methods),
|
|
85
|
+
_J$X_("form", { className: cx('Form', className), onSubmit: onSubmit.current, noValidate: true },
|
|
86
|
+
_J$X_("input", { type: "submit", style: { display: 'none' } }), (_b = props.children) === null || _b === void 0 ? void 0 :
|
|
84
87
|
_b.call(props, tslib.__assign(tslib.__assign({}, methods), { onSubmit: onSubmit.current })))));
|
|
85
88
|
}
|
|
86
89
|
var ThemedForm = amisCore.themeable(amisCore.localeable(Form));
|
|
87
|
-
var Form$1 = React__default["default"].forwardRef(function (props, ref) { return (
|
|
90
|
+
var Form$1 = React__default["default"].forwardRef(function (props, ref) { return (_J$X_(ThemedForm, tslib.__assign({}, props, { forwardRef: ref }))); });
|
|
88
91
|
|
|
89
92
|
exports.Form = Form;
|
|
90
93
|
exports["default"] = Form$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.3.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -8,14 +8,13 @@
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
10
|
var tslib = require('tslib');
|
|
11
|
-
|
|
11
|
+
require('react');
|
|
12
12
|
var amisCore = require('amis-core');
|
|
13
13
|
var reactHookForm = require('react-hook-form');
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
var __react_jsx__ = require('react');
|
|
16
|
+
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
|
|
17
|
+
(__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
19
18
|
function FormField(props) {
|
|
20
19
|
var _a, _b, _c, _d;
|
|
21
20
|
var mode = props.mode, children = props.children, cx = props.classnames, className = props.className; props.style; var hasError = props.hasError, isRequired = props.isRequired, label = props.label, labelAlign = props.labelAlign, labelClassName = props.labelClassName, description = props.description;
|
|
@@ -28,44 +27,44 @@ function FormField(props) {
|
|
|
28
27
|
var horizontal = props.horizontal || {
|
|
29
28
|
leftFixed: true
|
|
30
29
|
};
|
|
31
|
-
return (
|
|
30
|
+
return (_J$X_("div", { "data-role": "form-item", className: cx("Form-item Form-item--horizontal", className, (_a = {
|
|
32
31
|
'is-error': hasError
|
|
33
32
|
},
|
|
34
33
|
_a["is-required"] = isRequired,
|
|
35
34
|
_a['Form-item--horizontal-justify'] = horizontal.justify,
|
|
36
35
|
_a)) },
|
|
37
|
-
label !== false ? (
|
|
36
|
+
label !== false ? (_J$X_("label", { className: cx("Form-label", (_b = {},
|
|
38
37
|
_b["Form-itemColumn--".concat(typeof horizontal.leftFixed === 'string'
|
|
39
38
|
? horizontal.leftFixed
|
|
40
39
|
: 'normal')] = horizontal.leftFixed,
|
|
41
40
|
_b["Form-itemColumn--".concat(horizontal.left)] = !horizontal.leftFixed,
|
|
42
41
|
_b['Form-label--left'] = labelAlign === 'left',
|
|
43
42
|
_b), labelClassName) },
|
|
44
|
-
|
|
43
|
+
_J$X_("span", null,
|
|
45
44
|
label,
|
|
46
|
-
isRequired && label ? (
|
|
47
|
-
|
|
45
|
+
isRequired && label ? (_J$X_("span", { className: cx("Form-star") }, "*")) : null))) : null,
|
|
46
|
+
_J$X_("div", { className: cx("Form-value", (_c = {},
|
|
48
47
|
// [`Form-itemColumn--offset${getWidthRate(horizontal.offset)}`]: !label && label !== false,
|
|
49
48
|
_c["Form-itemColumn--".concat(horizontal.right)] = !horizontal.leftFixed &&
|
|
50
49
|
!!horizontal.right &&
|
|
51
50
|
horizontal.right !== 12 - horizontal.left,
|
|
52
51
|
_c)) },
|
|
53
52
|
children,
|
|
54
|
-
hasError && errors.length ? (
|
|
55
|
-
description ? (
|
|
53
|
+
hasError && errors.length ? (_J$X_("ul", { className: cx("Form-feedback") }, errors.map(function (msg, key) { return (_J$X_("li", { key: key }, msg)); }))) : null,
|
|
54
|
+
description ? (_J$X_("div", { className: cx("Form-description") }, description)) : null)));
|
|
56
55
|
}
|
|
57
|
-
return (
|
|
56
|
+
return (_J$X_("div", { "data-role": "form-item", className: cx("Form-item Form-item--normal", className, (_d = {
|
|
58
57
|
'is-error': hasError
|
|
59
58
|
},
|
|
60
59
|
_d["is-required"] = isRequired,
|
|
61
60
|
_d)) },
|
|
62
|
-
label ? (
|
|
63
|
-
|
|
61
|
+
label ? (_J$X_("label", { className: cx("Form-label", labelClassName) },
|
|
62
|
+
_J$X_("span", null,
|
|
64
63
|
label,
|
|
65
|
-
isRequired && label ? (
|
|
64
|
+
isRequired && label ? (_J$X_("span", { className: cx("Form-star") }, "*")) : null))) : null,
|
|
66
65
|
children,
|
|
67
|
-
hasError && errors.length ? (
|
|
68
|
-
description ? (
|
|
66
|
+
hasError && errors.length ? (_J$X_("ul", { className: cx("Form-feedback") }, errors.map(function (msg, key) { return (_J$X_("li", { key: key }, msg)); }))) : null,
|
|
67
|
+
description ? (_J$X_("div", { className: cx("Form-description") }, description)) : null));
|
|
69
68
|
}
|
|
70
69
|
var ThemedFormField = amisCore.themeable(amisCore.localeable(FormField));
|
|
71
70
|
function Controller(props) {
|
|
@@ -74,9 +73,9 @@ function Controller(props) {
|
|
|
74
73
|
if (rest.isRequired) {
|
|
75
74
|
rules.required = true;
|
|
76
75
|
}
|
|
77
|
-
return (
|
|
76
|
+
return (_J$X_(reactHookForm.Controller, { name: name || '', rules: rules, shouldUnregister: shouldUnregister, defaultValue: defaultValue, control: control, render: function (methods) {
|
|
78
77
|
var _a;
|
|
79
|
-
return wrap === false ? (render(methods)) : (
|
|
78
|
+
return wrap === false ? (render(methods)) : (_J$X_(ThemedFormField, tslib.__assign({}, rest, { hasError: !!methods.fieldState.error, errors: (_a = methods.fieldState.error) === null || _a === void 0 ? void 0 : _a.message }), render(methods)));
|
|
80
79
|
} }));
|
|
81
80
|
}
|
|
82
81
|
|