amis-ui 3.4.0 → 3.4.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.d.ts +10 -10
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.d.ts +10 -10
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.d.ts +10 -10
- package/esm/components/Alert2.js +1 -1
- package/esm/components/AnchorNav.d.ts +20 -20
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/ArrayInput.d.ts +10 -10
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.d.ts +10 -10
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.d.ts +10 -10
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.d.ts +10 -10
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.d.ts +10 -10
- package/esm/components/BaiduMapPicker.js +1 -1
- package/esm/components/BarCode.d.ts +10 -10
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.d.ts +11 -18
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.d.ts +11 -11
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.d.ts +12 -11
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.d.ts +10 -10
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.d.ts +10 -10
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedDropdownSelection.d.ts +10 -10
- package/esm/components/ChainedDropdownSelection.js +1 -1
- package/esm/components/ChainedSelection.d.ts +10 -10
- 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.d.ts +10 -10
- 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 +22 -10
- package/esm/components/Collapse.js +5 -3
- package/esm/components/CollapseGroup.d.ts +10 -10
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.d.ts +10 -10
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.d.ts +10 -12
- package/esm/components/Combo.js +8 -7
- package/esm/components/ConfirmBox.d.ts +40 -40
- package/esm/components/ConfirmBox.js +1 -1
- package/esm/components/ContextMenu.d.ts +10 -10
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +10 -10
- package/esm/components/DatePicker.js +1 -1
- package/esm/components/DateRangePicker.d.ts +74 -57
- package/esm/components/DateRangePicker.js +44 -12
- package/esm/components/DndContainer.d.ts +40 -40
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.d.ts +22 -20
- package/esm/components/Drawer.js +4 -4
- package/esm/components/DropDownSelection.d.ts +10 -10
- package/esm/components/DropDownSelection.js +1 -1
- package/esm/components/Editor.d.ts +10 -10
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.d.ts +1 -1
- package/esm/components/Form.js +28 -24
- package/esm/components/FormField.d.ts +19 -19
- package/esm/components/FormField.js +9 -6
- package/esm/components/GaodeMapPicker.d.ts +10 -10
- package/esm/components/GaodeMapPicker.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.d.ts +10 -10
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/Html.d.ts +10 -10
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.d.ts +10 -10
- package/esm/components/ImageGallery.js +3 -3
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.d.ts +10 -10
- package/esm/components/InputBox.js +2 -2
- package/esm/components/InputBoxWithSuggestion.d.ts +10 -10
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/InputTable.d.ts +36 -14
- package/esm/components/InputTable.js +33 -14
- package/esm/components/Layout.d.ts +10 -10
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.d.ts +10 -10
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.d.ts +10 -10
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.d.ts +10 -10
- package/esm/components/LocationPicker.js +1 -1
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Modal.d.ts +92 -90
- package/esm/components/Modal.js +13 -4
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +10 -10
- package/esm/components/MultilineText.d.ts +10 -10
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.d.ts +10 -10
- package/esm/components/NumberInput.js +1 -1
- package/esm/components/Pagination.d.ts +12 -12
- package/esm/components/Pagination.js +5 -5
- package/esm/components/Picker.d.ts +10 -10
- package/esm/components/Picker.js +1 -1
- package/esm/components/PickerColumn.d.ts +10 -10
- package/esm/components/PickerColumn.js +1 -1
- package/esm/components/PickerContainer.d.ts +10 -10
- package/esm/components/PickerContainer.js +1 -1
- package/esm/components/PopOverContainer.js +1 -1
- package/esm/components/PopUp.d.ts +10 -10
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.d.ts +10 -10
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.d.ts +10 -10
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.d.ts +10 -10
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.d.ts +10 -14
- package/esm/components/Range.js +1 -1
- package/esm/components/Rating.d.ts +10 -10
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.d.ts +10 -10
- package/esm/components/ResultBox.js +1 -1
- package/esm/components/ResultList.d.ts +10 -10
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.d.ts +10 -10
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.d.ts +10 -10
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.d.ts +10 -10
- package/esm/components/SearchBox.js +1 -1
- package/esm/components/Select.d.ts +163 -163
- package/esm/components/Select.js +7 -3
- package/esm/components/SelectMobile.js +1 -1
- package/esm/components/Selection.d.ts +10 -10
- package/esm/components/Selection.js +1 -1
- package/esm/components/SparkLine.d.ts +10 -10
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.d.ts +10 -10
- package/esm/components/Spinner.js +1 -1
- package/esm/components/Steps.d.ts +10 -10
- 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 +10 -10
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.d.ts +60 -60
- package/esm/components/Tabs.js +1 -1
- package/esm/components/TabsTransfer.d.ts +52 -50
- package/esm/components/TabsTransfer.js +9 -8
- package/esm/components/TabsTransferPicker.d.ts +10 -10
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.d.ts +20 -20
- package/esm/components/Tag.js +3 -3
- package/esm/components/Textarea.d.ts +10 -10
- package/esm/components/Textarea.js +1 -1
- package/esm/components/Timeline.d.ts +10 -10
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.d.ts +10 -10
- package/esm/components/TimelineItem.js +1 -1
- package/esm/components/Tinymce.js +1 -1
- package/esm/components/TitleBar.d.ts +10 -10
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.d.ts +10 -10
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.d.ts +10 -10
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.d.ts +10 -10
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.d.ts +29 -29
- package/esm/components/Transfer.js +7 -5
- package/esm/components/TransferDropDown.d.ts +10 -10
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.d.ts +10 -10
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.d.ts +10 -10
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.d.ts +10 -10
- package/esm/components/Tree.js +1 -1
- package/esm/components/TreeSelection.d.ts +10 -10
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.d.ts +10 -10
- package/esm/components/UserSelect.js +1 -1
- package/esm/components/UserTabSelect.d.ts +10 -10
- 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.d.ts +4 -2
- package/esm/components/calendar/Calendar.js +2 -2
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.d.ts +2 -1
- package/esm/components/calendar/DaysView.js +5 -4
- 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.d.ts +10 -10
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.d.ts +10 -10
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/Formula.d.ts +10 -10
- package/esm/components/condition-builder/Func.d.ts +10 -10
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.d.ts +10 -10
- package/esm/components/condition-builder/Group.js +1 -1
- package/esm/components/condition-builder/GroupOrItem.d.ts +10 -10
- package/esm/components/condition-builder/GroupOrItem.js +1 -1
- package/esm/components/condition-builder/InputSwitch.d.ts +10 -10
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.d.ts +10 -10
- package/esm/components/condition-builder/Item.js +1 -1
- package/esm/components/condition-builder/Value.d.ts +10 -10
- package/esm/components/condition-builder/Value.js +1 -1
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.d.ts +10 -10
- package/esm/components/condition-builder/index.js +1 -1
- package/esm/components/formula/Editor.d.ts +10 -10
- package/esm/components/formula/Editor.js +1 -1
- package/esm/components/formula/FuncList.d.ts +10 -10
- package/esm/components/formula/FuncList.js +1 -1
- package/esm/components/formula/Input.d.ts +10 -10
- package/esm/components/formula/Input.js +9 -1
- package/esm/components/formula/Picker.d.ts +13 -10
- package/esm/components/formula/Picker.js +1 -1
- package/esm/components/formula/VariableList.d.ts +10 -10
- package/esm/components/formula/VariableList.js +1 -1
- package/esm/components/formula/plugin.js +1 -1
- package/esm/components/icons.js +3 -3
- 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.d.ts +10 -10
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.d.ts +10 -10
- package/esm/components/menu/MenuItem.js +1 -1
- package/esm/components/menu/SubMenu.d.ts +11 -10
- package/esm/components/menu/SubMenu.js +1 -1
- package/esm/components/menu/index.d.ts +15 -10
- 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.d.ts +40 -40
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.d.ts +40 -40
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.d.ts +10 -10
- package/esm/components/schema-editor/index.js +1 -1
- package/esm/components/table/Cell.d.ts +10 -10
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.d.ts +10 -10
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.d.ts +10 -10
- package/esm/components/table/HeadCellFilter.js +1 -1
- package/esm/components/table/HeadCellSelect.d.ts +10 -10
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.d.ts +10 -10
- package/esm/components/table/HeadCellSort.js +1 -1
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/index.d.ts +10 -10
- package/esm/components/table/index.js +6 -8
- 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 +2 -2
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-sub-form.js +4 -2
- 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 +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/if.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 +2 -1
- package/esm/locale/en-US.js +2 -1
- package/esm/locale/zh-CN.js +2 -1
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/lib/components/404.d.ts +10 -10
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.d.ts +10 -10
- 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 +20 -20
- package/lib/components/AnchorNav.js +1 -1
- package/lib/components/ArrayInput.d.ts +10 -10
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.d.ts +10 -10
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +10 -10
- 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.d.ts +10 -10
- package/lib/components/BaiduMapPicker.js +1 -1
- package/lib/components/BarCode.d.ts +10 -10
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.d.ts +11 -18
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.d.ts +11 -11
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.d.ts +12 -11
- 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.d.ts +10 -10
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedDropdownSelection.d.ts +10 -10
- package/lib/components/ChainedDropdownSelection.js +1 -1
- package/lib/components/ChainedSelection.d.ts +10 -10
- 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.d.ts +10 -10
- 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 +22 -10
- package/lib/components/Collapse.js +5 -3
- package/lib/components/CollapseGroup.d.ts +10 -10
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +10 -10
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/Combo.d.ts +10 -12
- package/lib/components/Combo.js +8 -7
- package/lib/components/ConfirmBox.d.ts +40 -40
- package/lib/components/ConfirmBox.js +1 -1
- package/lib/components/ContextMenu.d.ts +10 -10
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +10 -10
- package/lib/components/DatePicker.js +1 -1
- package/lib/components/DateRangePicker.d.ts +74 -57
- package/lib/components/DateRangePicker.js +43 -11
- package/lib/components/DndContainer.d.ts +40 -40
- package/lib/components/DndContainer.js +1 -1
- package/lib/components/Drawer.d.ts +22 -20
- package/lib/components/Drawer.js +4 -4
- package/lib/components/DropDownSelection.d.ts +10 -10
- package/lib/components/DropDownSelection.js +1 -1
- package/lib/components/Editor.d.ts +10 -10
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.d.ts +1 -1
- package/lib/components/Form.js +28 -24
- package/lib/components/FormField.d.ts +19 -19
- package/lib/components/FormField.js +14 -7
- package/lib/components/GaodeMapPicker.d.ts +10 -10
- package/lib/components/GaodeMapPicker.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.d.ts +10 -10
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/Html.d.ts +10 -10
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.d.ts +10 -10
- package/lib/components/ImageGallery.js +3 -3
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +2 -2
- package/lib/components/InputBoxWithSuggestion.d.ts +10 -10
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/InputTable.d.ts +36 -14
- package/lib/components/InputTable.js +33 -14
- package/lib/components/Layout.d.ts +10 -10
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.d.ts +10 -10
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +20 -20
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +10 -10
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.d.ts +10 -10
- package/lib/components/LocationPicker.js +1 -1
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Modal.d.ts +92 -90
- package/lib/components/Modal.js +13 -4
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +10 -10
- package/lib/components/MultilineText.d.ts +10 -10
- 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 +12 -12
- package/lib/components/Pagination.js +5 -5
- package/lib/components/Picker.d.ts +10 -10
- package/lib/components/Picker.js +1 -1
- package/lib/components/PickerColumn.d.ts +10 -10
- package/lib/components/PickerColumn.js +1 -1
- package/lib/components/PickerContainer.d.ts +10 -10
- package/lib/components/PickerContainer.js +1 -1
- package/lib/components/PopOverContainer.js +1 -1
- package/lib/components/PopUp.d.ts +10 -10
- 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.d.ts +10 -10
- 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.d.ts +10 -14
- 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 +10 -10
- package/lib/components/ResultBox.js +1 -1
- package/lib/components/ResultList.d.ts +10 -10
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.d.ts +10 -10
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.d.ts +10 -10
- package/lib/components/ResultTreeList.js +1 -1
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.d.ts +10 -10
- package/lib/components/SearchBox.js +1 -1
- package/lib/components/Select.d.ts +163 -163
- package/lib/components/Select.js +7 -3
- package/lib/components/SelectMobile.js +1 -1
- package/lib/components/Selection.d.ts +10 -10
- package/lib/components/Selection.js +1 -1
- package/lib/components/SparkLine.d.ts +10 -10
- 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.d.ts +10 -10
- 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 +10 -10
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +60 -60
- package/lib/components/Tabs.js +1 -1
- package/lib/components/TabsTransfer.d.ts +52 -50
- package/lib/components/TabsTransfer.js +9 -8
- package/lib/components/TabsTransferPicker.d.ts +10 -10
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +20 -20
- package/lib/components/Tag.js +3 -3
- package/lib/components/Textarea.d.ts +10 -10
- package/lib/components/Textarea.js +1 -1
- package/lib/components/Timeline.d.ts +10 -10
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.d.ts +10 -10
- package/lib/components/TimelineItem.js +1 -1
- package/lib/components/Tinymce.js +1 -1
- package/lib/components/TitleBar.d.ts +10 -10
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.d.ts +10 -10
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.d.ts +10 -10
- 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 +29 -29
- package/lib/components/Transfer.js +7 -5
- package/lib/components/TransferDropDown.d.ts +10 -10
- package/lib/components/TransferDropDown.js +1 -1
- package/lib/components/TransferPicker.d.ts +10 -10
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.d.ts +10 -10
- package/lib/components/TransferSearch.js +1 -1
- package/lib/components/Tree.d.ts +10 -10
- package/lib/components/Tree.js +1 -1
- package/lib/components/TreeSelection.d.ts +10 -10
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.d.ts +10 -10
- package/lib/components/UserSelect.js +1 -1
- package/lib/components/UserTabSelect.d.ts +10 -10
- 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.d.ts +4 -2
- package/lib/components/calendar/Calendar.js +2 -2
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.d.ts +2 -1
- package/lib/components/calendar/DaysView.js +5 -4
- 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.d.ts +10 -10
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.d.ts +10 -10
- package/lib/components/condition-builder/Field.js +1 -1
- package/lib/components/condition-builder/Formula.d.ts +10 -10
- package/lib/components/condition-builder/Func.d.ts +10 -10
- package/lib/components/condition-builder/Func.js +1 -1
- package/lib/components/condition-builder/Group.d.ts +10 -10
- package/lib/components/condition-builder/Group.js +1 -1
- package/lib/components/condition-builder/GroupOrItem.d.ts +10 -10
- package/lib/components/condition-builder/GroupOrItem.js +1 -1
- package/lib/components/condition-builder/InputSwitch.d.ts +10 -10
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.d.ts +10 -10
- package/lib/components/condition-builder/Item.js +1 -1
- package/lib/components/condition-builder/Value.d.ts +10 -10
- 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 +10 -10
- package/lib/components/condition-builder/index.js +1 -1
- package/lib/components/formula/Editor.d.ts +10 -10
- package/lib/components/formula/Editor.js +1 -1
- package/lib/components/formula/FuncList.d.ts +10 -10
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Input.d.ts +10 -10
- package/lib/components/formula/Input.js +9 -1
- package/lib/components/formula/Picker.d.ts +13 -10
- package/lib/components/formula/Picker.js +1 -1
- package/lib/components/formula/VariableList.d.ts +10 -10
- package/lib/components/formula/VariableList.js +1 -1
- package/lib/components/formula/plugin.js +1 -1
- package/lib/components/icons.js +3 -3
- 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.d.ts +10 -10
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.d.ts +10 -10
- package/lib/components/menu/MenuItem.js +1 -1
- package/lib/components/menu/SubMenu.d.ts +11 -10
- package/lib/components/menu/SubMenu.js +1 -1
- package/lib/components/menu/index.d.ts +25 -20
- package/lib/components/menu/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.d.ts +40 -40
- package/lib/components/schema-editor/SchemaVariableList.js +1 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.d.ts +40 -40
- package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/lib/components/schema-editor/index.d.ts +10 -10
- package/lib/components/schema-editor/index.js +1 -1
- package/lib/components/table/Cell.d.ts +10 -10
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/HeadCellDropDown.d.ts +10 -10
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.d.ts +10 -10
- package/lib/components/table/HeadCellFilter.js +1 -1
- package/lib/components/table/HeadCellSelect.d.ts +10 -10
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.d.ts +10 -10
- package/lib/components/table/HeadCellSort.js +1 -1
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/index.d.ts +10 -10
- package/lib/components/table/index.js +6 -8
- 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 +2 -2
- package/lib/helper.css +1234 -9603
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-sub-form.js +4 -2
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +1 -1
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +1 -1
- package/lib/icons/alert-warning.svg.js +1 -1
- package/lib/icons/back.svg.js +1 -1
- package/lib/icons/calendar.svg.js +1 -1
- package/lib/icons/caret.svg.js +1 -1
- package/lib/icons/check.svg.js +1 -1
- package/lib/icons/clock.svg.js +1 -1
- package/lib/icons/close-small.svg.js +1 -1
- package/lib/icons/close.svg.js +1 -1
- package/lib/icons/cloud-upload.svg.js +1 -1
- package/lib/icons/column-filter.svg.js +1 -1
- package/lib/icons/columns.svg.js +1 -1
- package/lib/icons/compress-alt.svg.js +1 -1
- package/lib/icons/copy.svg.js +1 -1
- package/lib/icons/date.svg.js +1 -1
- package/lib/icons/department.svg.js +1 -1
- package/lib/icons/desk-empty.svg.js +1 -1
- package/lib/icons/dot.svg.js +1 -1
- package/lib/icons/down-arrow-bold.svg.js +1 -1
- package/lib/icons/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/if.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/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 +2 -1
- package/lib/locale/en-US.js +2 -1
- package/lib/locale/zh-CN.js +2 -1
- package/lib/scss/helper.scss.js +1 -1
- package/lib/scss/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 +521 -720
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +521 -720
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +521 -720
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +521 -720
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +521 -720
- package/package.json +5 -5
- package/scss/_components.scss +6 -2
- package/scss/components/_carousel.scss +0 -1
- package/scss/components/_chart.scss +4 -0
- package/scss/components/_collapse.scss +6 -3
- package/scss/components/_condition-builder.scss +4 -0
- package/scss/components/_divider.scss +25 -4
- package/scss/components/_image-gallery.scss +13 -5
- package/scss/components/_images.scss +9 -0
- package/scss/components/_result-box.scss +1 -0
- package/scss/components/_table.scss +33 -49
- package/scss/components/_tpl.scss +8 -0
- package/scss/components/form/_checks.scss +8 -0
- package/scss/components/form/_editor.scss +48 -48
- package/scss/components/form/_form.scss +36 -0
- package/scss/components/form/_image.scss +0 -27
- package/scss/components/form/_input-table.scss +17 -0
- package/scss/components/form/_select.scss +24 -0
- package/scss/themes/_common.scss +3 -1
|
@@ -84,7 +84,7 @@ declare const _default: {
|
|
|
84
84
|
} & {} & {
|
|
85
85
|
locale?: string | undefined;
|
|
86
86
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
87
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
87
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps): {
|
|
88
88
|
ref: any;
|
|
89
89
|
childRef(ref: any): void;
|
|
90
90
|
getWrappedInstance(): any;
|
|
@@ -102,7 +102,7 @@ declare const _default: {
|
|
|
102
102
|
} & {} & {
|
|
103
103
|
locale?: string | undefined;
|
|
104
104
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
105
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
105
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
106
106
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
107
107
|
readonly props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "onFocus" | "onBlur" | "onChange" | "placeholder" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
108
108
|
options?: {
|
|
@@ -116,7 +116,7 @@ declare const _default: {
|
|
|
116
116
|
} & {} & {
|
|
117
117
|
locale?: string | undefined;
|
|
118
118
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
119
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
119
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>;
|
|
120
120
|
state: Readonly<{}>;
|
|
121
121
|
refs: {
|
|
122
122
|
[key: string]: React.ReactInstance;
|
|
@@ -134,7 +134,7 @@ declare const _default: {
|
|
|
134
134
|
} & {} & {
|
|
135
135
|
locale?: string | undefined;
|
|
136
136
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
137
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
137
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
138
138
|
componentWillUnmount?(): void;
|
|
139
139
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
140
140
|
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "onFocus" | "onBlur" | "onChange" | "placeholder" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
@@ -149,7 +149,7 @@ declare const _default: {
|
|
|
149
149
|
} & {} & {
|
|
150
150
|
locale?: string | undefined;
|
|
151
151
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
152
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
152
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
|
|
153
153
|
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "onFocus" | "onBlur" | "onChange" | "placeholder" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
154
154
|
options?: {
|
|
155
155
|
[propName: string]: any;
|
|
@@ -162,7 +162,7 @@ declare const _default: {
|
|
|
162
162
|
} & {} & {
|
|
163
163
|
locale?: string | undefined;
|
|
164
164
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
165
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
165
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
166
166
|
componentWillMount?(): void;
|
|
167
167
|
UNSAFE_componentWillMount?(): void;
|
|
168
168
|
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "onFocus" | "onBlur" | "onChange" | "placeholder" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
@@ -177,7 +177,7 @@ declare const _default: {
|
|
|
177
177
|
} & {} & {
|
|
178
178
|
locale?: string | undefined;
|
|
179
179
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
180
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
180
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
181
181
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "onFocus" | "onBlur" | "onChange" | "placeholder" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
182
182
|
options?: {
|
|
183
183
|
[propName: string]: any;
|
|
@@ -190,7 +190,7 @@ declare const _default: {
|
|
|
190
190
|
} & {} & {
|
|
191
191
|
locale?: string | undefined;
|
|
192
192
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
193
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
193
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
194
194
|
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "onFocus" | "onBlur" | "onChange" | "placeholder" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
195
195
|
options?: {
|
|
196
196
|
[propName: string]: any;
|
|
@@ -203,7 +203,7 @@ declare const _default: {
|
|
|
203
203
|
} & {} & {
|
|
204
204
|
locale?: string | undefined;
|
|
205
205
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
206
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
206
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
207
207
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "value" | "onFocus" | "onBlur" | "onChange" | "placeholder" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
|
|
208
208
|
options?: {
|
|
209
209
|
[propName: string]: any;
|
|
@@ -216,7 +216,7 @@ declare const _default: {
|
|
|
216
216
|
} & {} & {
|
|
217
217
|
locale?: string | undefined;
|
|
218
218
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
219
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
219
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
220
220
|
};
|
|
221
221
|
displayName: string;
|
|
222
222
|
contextType: React.Context<string>;
|
package/esm/components/Editor.js
CHANGED
package/esm/components/Form.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare function Form(props: FormProps): React.JSX.Element;
|
|
|
25
25
|
declare const _default: React.ForwardRefExoticComponent<Omit<Omit<Omit<FormProps, keyof LocaleProps> & {
|
|
26
26
|
locale?: string | undefined;
|
|
27
27
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
28
|
-
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").
|
|
28
|
+
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps, "children"> & Pick<FormProps, "children"> & React.RefAttributes<{
|
|
29
29
|
submit: () => void;
|
|
30
30
|
} | undefined>>;
|
|
31
31
|
export default _default;
|
package/esm/components/Form.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.4.
|
|
2
|
+
* amis-ui v3.4.2
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -13,8 +13,9 @@ import debounce from 'lodash/debounce';
|
|
|
13
13
|
function Form(props) {
|
|
14
14
|
var _a, _b;
|
|
15
15
|
var cx = props.classnames, className = props.className, autoSubmit = props.autoSubmit, value = props.value, onChange = props.onChange;
|
|
16
|
+
var defaultValues = (_a = props.value) !== null && _a !== void 0 ? _a : props.defaultValue;
|
|
16
17
|
var methods = useForm({
|
|
17
|
-
defaultValues:
|
|
18
|
+
defaultValues: defaultValues,
|
|
18
19
|
resolver: useValidationResolver(props.translate, props.onValidate)
|
|
19
20
|
});
|
|
20
21
|
var onSubmit = React__default.useRef(methods.handleSubmit(props.onSubmit || noop));
|
|
@@ -34,7 +35,7 @@ function Form(props) {
|
|
|
34
35
|
}, []);
|
|
35
36
|
}
|
|
36
37
|
React__default.useEffect(function () {
|
|
37
|
-
if (value && isObjectShallowModified(value, methods.getValues())) {
|
|
38
|
+
if (value && isObjectShallowModified(value, methods.getValues(), false)) {
|
|
38
39
|
Object.keys(value).forEach(function (key) {
|
|
39
40
|
methods.setValue(key, value[key]);
|
|
40
41
|
});
|
|
@@ -42,33 +43,36 @@ function Form(props) {
|
|
|
42
43
|
}, [value]);
|
|
43
44
|
if (onChange) {
|
|
44
45
|
React__default.useEffect(function () {
|
|
45
|
-
var subscriber = methods.watch(function (value) {
|
|
46
|
-
onChange(value);
|
|
46
|
+
var subscriber = methods.watch(function (value, info) {
|
|
47
|
+
onChange(__assign(__assign({}, defaultValues), value));
|
|
47
48
|
});
|
|
48
49
|
return function () { return subscriber.unsubscribe(); };
|
|
49
50
|
}, [onChange]);
|
|
50
51
|
}
|
|
51
|
-
React__default.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
52
|
+
React__default.useImperativeHandle(props.forwardRef, function () {
|
|
53
|
+
return {
|
|
54
|
+
submit: function () {
|
|
55
|
+
return new Promise(function (resolve) {
|
|
56
|
+
methods.handleSubmit(function (values) {
|
|
57
|
+
var _a;
|
|
58
|
+
(_a = props.onSubmit) === null || _a === void 0 ? void 0 : _a.call(props, values);
|
|
59
|
+
resolve(values);
|
|
60
|
+
}, function (e) { var _a; return resolve(((_a = e.customValidate) === null || _a === void 0 ? void 0 : _a.message) || false); })();
|
|
61
|
+
});
|
|
62
|
+
},
|
|
63
|
+
validate: function () {
|
|
64
|
+
return new Promise(function (resolve) {
|
|
65
|
+
methods.handleSubmit(function () {
|
|
66
|
+
resolve('');
|
|
67
|
+
}, function (e) {
|
|
68
|
+
var _a;
|
|
69
|
+
return resolve(((_a = e.customValidate) === null || _a === void 0 ? void 0 : _a.message) ||
|
|
70
|
+
props.translate('Form.validateFailed'));
|
|
71
|
+
})();
|
|
72
|
+
});
|
|
69
73
|
}
|
|
70
74
|
};
|
|
71
|
-
});
|
|
75
|
+
}, []);
|
|
72
76
|
return (React__default.createElement(FormProvider, __assign({}, methods),
|
|
73
77
|
React__default.createElement("form", { className: cx('Form', className), onSubmit: onSubmit.current, noValidate: true },
|
|
74
78
|
React__default.createElement("input", { type: "submit", style: { display: 'none' } }), (_b = props.children) === null || _b === void 0 ? void 0 :
|
|
@@ -27,7 +27,7 @@ declare const ThemedFormField: {
|
|
|
27
27
|
new (props: Omit<Omit<FormFieldProps, keyof LocaleProps> & {
|
|
28
28
|
locale?: string | undefined;
|
|
29
29
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
30
|
-
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").
|
|
30
|
+
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps): {
|
|
31
31
|
ref: any;
|
|
32
32
|
childRef(ref: any): void;
|
|
33
33
|
getWrappedInstance(): any;
|
|
@@ -36,12 +36,12 @@ declare const ThemedFormField: {
|
|
|
36
36
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Omit<FormFieldProps, keyof LocaleProps> & {
|
|
37
37
|
locale?: string | undefined;
|
|
38
38
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
39
|
-
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").
|
|
39
|
+
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
40
40
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
41
41
|
readonly props: Readonly<Omit<Omit<FormFieldProps, keyof LocaleProps> & {
|
|
42
42
|
locale?: string | undefined;
|
|
43
43
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
44
|
-
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").
|
|
44
|
+
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>;
|
|
45
45
|
state: Readonly<{}>;
|
|
46
46
|
refs: {
|
|
47
47
|
[key: string]: React.ReactInstance;
|
|
@@ -50,35 +50,35 @@ declare const ThemedFormField: {
|
|
|
50
50
|
shouldComponentUpdate?(nextProps: Readonly<Omit<Omit<FormFieldProps, keyof LocaleProps> & {
|
|
51
51
|
locale?: string | undefined;
|
|
52
52
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
53
|
-
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").
|
|
53
|
+
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
54
54
|
componentWillUnmount?(): void;
|
|
55
55
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
56
56
|
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Omit<FormFieldProps, keyof LocaleProps> & {
|
|
57
57
|
locale?: string | undefined;
|
|
58
58
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
59
|
-
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").
|
|
59
|
+
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
|
|
60
60
|
componentDidUpdate?(prevProps: Readonly<Omit<Omit<FormFieldProps, keyof LocaleProps> & {
|
|
61
61
|
locale?: string | undefined;
|
|
62
62
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
63
|
-
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").
|
|
63
|
+
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
64
64
|
componentWillMount?(): void;
|
|
65
65
|
UNSAFE_componentWillMount?(): void;
|
|
66
66
|
componentWillReceiveProps?(nextProps: Readonly<Omit<Omit<FormFieldProps, keyof LocaleProps> & {
|
|
67
67
|
locale?: string | undefined;
|
|
68
68
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
69
|
-
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").
|
|
69
|
+
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
70
70
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Omit<FormFieldProps, keyof LocaleProps> & {
|
|
71
71
|
locale?: string | undefined;
|
|
72
72
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
73
|
-
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").
|
|
73
|
+
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
74
74
|
componentWillUpdate?(nextProps: Readonly<Omit<Omit<FormFieldProps, keyof LocaleProps> & {
|
|
75
75
|
locale?: string | undefined;
|
|
76
76
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
77
|
-
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").
|
|
77
|
+
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
78
78
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Omit<FormFieldProps, keyof LocaleProps> & {
|
|
79
79
|
locale?: string | undefined;
|
|
80
80
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
81
|
-
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").
|
|
81
|
+
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
82
82
|
};
|
|
83
83
|
displayName: string;
|
|
84
84
|
contextType: React.Context<string>;
|
|
@@ -141,9 +141,9 @@ declare const ThemedFormField: {
|
|
|
141
141
|
};
|
|
142
142
|
displayName: string;
|
|
143
143
|
contextType: React.Context<string>;
|
|
144
|
-
ComposedComponent: React.ComponentType<typeof FormField
|
|
145
|
-
} & import("hoist-non-react-statics").NonReactStatics<typeof FormField
|
|
146
|
-
ComposedComponent: typeof FormField
|
|
144
|
+
ComposedComponent: React.ComponentType<React.MemoExoticComponent<typeof FormField>>;
|
|
145
|
+
} & import("hoist-non-react-statics").NonReactStatics<React.MemoExoticComponent<typeof FormField>, {}> & {
|
|
146
|
+
ComposedComponent: React.MemoExoticComponent<typeof FormField>;
|
|
147
147
|
}>;
|
|
148
148
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
149
149
|
new (props: Omit<FormFieldProps, keyof LocaleProps> & {
|
|
@@ -204,9 +204,9 @@ declare const ThemedFormField: {
|
|
|
204
204
|
};
|
|
205
205
|
displayName: string;
|
|
206
206
|
contextType: React.Context<string>;
|
|
207
|
-
ComposedComponent: React.ComponentType<typeof FormField
|
|
208
|
-
} & import("hoist-non-react-statics").NonReactStatics<typeof FormField
|
|
209
|
-
ComposedComponent: typeof FormField
|
|
207
|
+
ComposedComponent: React.ComponentType<React.MemoExoticComponent<typeof FormField>>;
|
|
208
|
+
} & import("hoist-non-react-statics").NonReactStatics<React.MemoExoticComponent<typeof FormField>, {}> & {
|
|
209
|
+
ComposedComponent: React.MemoExoticComponent<typeof FormField>;
|
|
210
210
|
}, {}> & {
|
|
211
211
|
ComposedComponent: {
|
|
212
212
|
new (props: Omit<FormFieldProps, keyof LocaleProps> & {
|
|
@@ -267,9 +267,9 @@ declare const ThemedFormField: {
|
|
|
267
267
|
};
|
|
268
268
|
displayName: string;
|
|
269
269
|
contextType: React.Context<string>;
|
|
270
|
-
ComposedComponent: React.ComponentType<typeof FormField
|
|
271
|
-
} & import("hoist-non-react-statics").NonReactStatics<typeof FormField
|
|
272
|
-
ComposedComponent: typeof FormField
|
|
270
|
+
ComposedComponent: React.ComponentType<React.MemoExoticComponent<typeof FormField>>;
|
|
271
|
+
} & import("hoist-non-react-statics").NonReactStatics<React.MemoExoticComponent<typeof FormField>, {}> & {
|
|
272
|
+
ComposedComponent: React.MemoExoticComponent<typeof FormField>;
|
|
273
273
|
};
|
|
274
274
|
};
|
|
275
275
|
export default ThemedFormField;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.4.
|
|
2
|
+
* amis-ui v3.4.2
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -59,13 +59,16 @@ function FormField(props) {
|
|
|
59
59
|
hasError && errors.length ? (React__default.createElement("ul", { className: cx("Form-feedback") }, errors.map(function (msg, key) { return (React__default.createElement("li", { key: key }, msg)); }))) : null,
|
|
60
60
|
description ? (React__default.createElement("div", { className: cx("Form-description") }, description)) : null));
|
|
61
61
|
}
|
|
62
|
-
var ThemedFormField = themeable(localeable(FormField));
|
|
62
|
+
var ThemedFormField = themeable(localeable(React__default.memo(FormField)));
|
|
63
63
|
function Controller(props) {
|
|
64
64
|
var render = props.render, name = props.name, shouldUnregister = props.shouldUnregister, defaultValue = props.defaultValue, control = props.control, wrap = props.wrap, rest = __rest(props, ["render", "name", "shouldUnregister", "defaultValue", "control", "wrap"]);
|
|
65
|
-
var rules =
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
var rules = React__default.useMemo(function () {
|
|
66
|
+
var rules = __assign({}, props.rules);
|
|
67
|
+
if (props.isRequired) {
|
|
68
|
+
rules.required = true;
|
|
69
|
+
}
|
|
70
|
+
return rules;
|
|
71
|
+
}, [props.rules, props.isRequired]);
|
|
69
72
|
return (React__default.createElement(Controller$1, { name: name || '', rules: rules, shouldUnregister: shouldUnregister, defaultValue: defaultValue, control: control, render: function (methods) {
|
|
70
73
|
var _a;
|
|
71
74
|
return wrap === false ? (render(methods)) : (React__default.createElement(ThemedFormField, __assign({}, rest, { hasError: !!methods.fieldState.error, errors: (_a = methods.fieldState.error) === null || _a === void 0 ? void 0 : _a.message }), render(methods)));
|
|
@@ -54,31 +54,31 @@ export declare class BaiduMapPicker extends React.Component<MapPickerProps, MapP
|
|
|
54
54
|
render(): React.JSX.Element;
|
|
55
55
|
}
|
|
56
56
|
declare const _default: {
|
|
57
|
-
new (props: Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
57
|
+
new (props: Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps): {
|
|
58
58
|
ref: any;
|
|
59
59
|
childRef(ref: any): void;
|
|
60
60
|
getWrappedInstance(): any;
|
|
61
61
|
render(): React.JSX.Element;
|
|
62
62
|
context: unknown;
|
|
63
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
63
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
64
64
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
65
|
-
readonly props: Readonly<Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
65
|
+
readonly props: Readonly<Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>;
|
|
66
66
|
state: Readonly<{}>;
|
|
67
67
|
refs: {
|
|
68
68
|
[key: string]: React.ReactInstance;
|
|
69
69
|
};
|
|
70
70
|
componentDidMount?(): void;
|
|
71
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
71
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
72
72
|
componentWillUnmount?(): void;
|
|
73
73
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
74
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
75
|
-
componentDidUpdate?(prevProps: Readonly<Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
74
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
|
|
75
|
+
componentDidUpdate?(prevProps: Readonly<Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
76
76
|
componentWillMount?(): void;
|
|
77
77
|
UNSAFE_componentWillMount?(): void;
|
|
78
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
79
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
80
|
-
componentWillUpdate?(nextProps: Readonly<Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
81
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
78
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
79
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
80
|
+
componentWillUpdate?(nextProps: Readonly<Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
81
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<MapPickerProps, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
82
82
|
};
|
|
83
83
|
displayName: string;
|
|
84
84
|
contextType: React.Context<string>;
|
|
@@ -21,7 +21,7 @@ declare const _default: {
|
|
|
21
21
|
} & {} & {
|
|
22
22
|
locale?: string | undefined;
|
|
23
23
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
24
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
24
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps): {
|
|
25
25
|
ref: any;
|
|
26
26
|
childRef(ref: any): void;
|
|
27
27
|
getWrappedInstance(): any;
|
|
@@ -37,7 +37,7 @@ declare const _default: {
|
|
|
37
37
|
} & {} & {
|
|
38
38
|
locale?: string | undefined;
|
|
39
39
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
40
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
40
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
41
41
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
42
42
|
readonly props: Readonly<Omit<Pick<Omit<BaseSelectionProps, keyof import("amis-core").LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "disabled" | "onChange" | "labelClassName" | "inline" | "options" | "labelField" | "valueField" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "itemClassName" | "virtualListHeight" | "placeholderRender" | "checkAll" | "checkAllLabel"> & {
|
|
43
43
|
placeholder?: string | undefined;
|
|
@@ -49,7 +49,7 @@ declare const _default: {
|
|
|
49
49
|
} & {} & {
|
|
50
50
|
locale?: string | undefined;
|
|
51
51
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
52
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
52
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>;
|
|
53
53
|
state: Readonly<{}>;
|
|
54
54
|
refs: {
|
|
55
55
|
[key: string]: React.ReactInstance;
|
|
@@ -65,7 +65,7 @@ declare const _default: {
|
|
|
65
65
|
} & {} & {
|
|
66
66
|
locale?: string | undefined;
|
|
67
67
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
68
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
68
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
69
69
|
componentWillUnmount?(): void;
|
|
70
70
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
71
71
|
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<BaseSelectionProps, keyof import("amis-core").LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "disabled" | "onChange" | "labelClassName" | "inline" | "options" | "labelField" | "valueField" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "itemClassName" | "virtualListHeight" | "placeholderRender" | "checkAll" | "checkAllLabel"> & {
|
|
@@ -78,7 +78,7 @@ declare const _default: {
|
|
|
78
78
|
} & {} & {
|
|
79
79
|
locale?: string | undefined;
|
|
80
80
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
81
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
81
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
|
|
82
82
|
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<BaseSelectionProps, keyof import("amis-core").LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "disabled" | "onChange" | "labelClassName" | "inline" | "options" | "labelField" | "valueField" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "itemClassName" | "virtualListHeight" | "placeholderRender" | "checkAll" | "checkAllLabel"> & {
|
|
83
83
|
placeholder?: string | undefined;
|
|
84
84
|
multiple?: boolean | undefined;
|
|
@@ -89,7 +89,7 @@ declare const _default: {
|
|
|
89
89
|
} & {} & {
|
|
90
90
|
locale?: string | undefined;
|
|
91
91
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
92
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
92
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
93
93
|
componentWillMount?(): void;
|
|
94
94
|
UNSAFE_componentWillMount?(): void;
|
|
95
95
|
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<BaseSelectionProps, keyof import("amis-core").LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "disabled" | "onChange" | "labelClassName" | "inline" | "options" | "labelField" | "valueField" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "itemClassName" | "virtualListHeight" | "placeholderRender" | "checkAll" | "checkAllLabel"> & {
|
|
@@ -102,7 +102,7 @@ declare const _default: {
|
|
|
102
102
|
} & {} & {
|
|
103
103
|
locale?: string | undefined;
|
|
104
104
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
105
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
105
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
106
106
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<BaseSelectionProps, keyof import("amis-core").LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "disabled" | "onChange" | "labelClassName" | "inline" | "options" | "labelField" | "valueField" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "itemClassName" | "virtualListHeight" | "placeholderRender" | "checkAll" | "checkAllLabel"> & {
|
|
107
107
|
placeholder?: string | undefined;
|
|
108
108
|
multiple?: boolean | undefined;
|
|
@@ -113,7 +113,7 @@ declare const _default: {
|
|
|
113
113
|
} & {} & {
|
|
114
114
|
locale?: string | undefined;
|
|
115
115
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
116
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
116
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
117
117
|
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<BaseSelectionProps, keyof import("amis-core").LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "disabled" | "onChange" | "labelClassName" | "inline" | "options" | "labelField" | "valueField" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "itemClassName" | "virtualListHeight" | "placeholderRender" | "checkAll" | "checkAllLabel"> & {
|
|
118
118
|
placeholder?: string | undefined;
|
|
119
119
|
multiple?: boolean | undefined;
|
|
@@ -124,7 +124,7 @@ declare const _default: {
|
|
|
124
124
|
} & {} & {
|
|
125
125
|
locale?: string | undefined;
|
|
126
126
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
127
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
127
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
128
128
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<BaseSelectionProps, keyof import("amis-core").LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "disabled" | "onChange" | "labelClassName" | "inline" | "options" | "labelField" | "valueField" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "itemClassName" | "virtualListHeight" | "placeholderRender" | "checkAll" | "checkAllLabel"> & {
|
|
129
129
|
placeholder?: string | undefined;
|
|
130
130
|
multiple?: boolean | undefined;
|
|
@@ -135,7 +135,7 @@ declare const _default: {
|
|
|
135
135
|
} & {} & {
|
|
136
136
|
locale?: string | undefined;
|
|
137
137
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
138
|
-
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").
|
|
138
|
+
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
139
139
|
};
|
|
140
140
|
displayName: string;
|
|
141
141
|
contextType: React.Context<string>;
|
package/esm/components/Html.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare class Html extends React.Component<HtmlProps> {
|
|
|
29
29
|
declare const _default: {
|
|
30
30
|
new (props: Pick<Omit<HtmlProps, keyof import("amis-core").ThemeProps>, "html" | "wrapperComponent" | "filterHtml"> & {
|
|
31
31
|
inline?: boolean | undefined;
|
|
32
|
-
} & {} & import("packages/amis-core/lib/theme").
|
|
32
|
+
} & {} & import("packages/amis-core/lib/theme").ThemeOuterProps): {
|
|
33
33
|
ref: any;
|
|
34
34
|
childRef(ref: any): void;
|
|
35
35
|
getWrappedInstance(): any;
|
|
@@ -37,11 +37,11 @@ declare const _default: {
|
|
|
37
37
|
context: unknown;
|
|
38
38
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<HtmlProps, keyof import("amis-core").ThemeProps>, "html" | "wrapperComponent" | "filterHtml"> & {
|
|
39
39
|
inline?: boolean | undefined;
|
|
40
|
-
} & {} & import("packages/amis-core/lib/theme").
|
|
40
|
+
} & {} & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
41
41
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
42
42
|
readonly props: Readonly<Pick<Omit<HtmlProps, keyof import("amis-core").ThemeProps>, "html" | "wrapperComponent" | "filterHtml"> & {
|
|
43
43
|
inline?: boolean | undefined;
|
|
44
|
-
} & {} & import("packages/amis-core/lib/theme").
|
|
44
|
+
} & {} & import("packages/amis-core/lib/theme").ThemeOuterProps>;
|
|
45
45
|
state: Readonly<{}>;
|
|
46
46
|
refs: {
|
|
47
47
|
[key: string]: React.ReactInstance;
|
|
@@ -49,29 +49,29 @@ declare const _default: {
|
|
|
49
49
|
componentDidMount?(): void;
|
|
50
50
|
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<HtmlProps, keyof import("amis-core").ThemeProps>, "html" | "wrapperComponent" | "filterHtml"> & {
|
|
51
51
|
inline?: boolean | undefined;
|
|
52
|
-
} & {} & import("packages/amis-core/lib/theme").
|
|
52
|
+
} & {} & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
53
53
|
componentWillUnmount?(): void;
|
|
54
54
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
55
55
|
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<HtmlProps, keyof import("amis-core").ThemeProps>, "html" | "wrapperComponent" | "filterHtml"> & {
|
|
56
56
|
inline?: boolean | undefined;
|
|
57
|
-
} & {} & import("packages/amis-core/lib/theme").
|
|
57
|
+
} & {} & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
|
|
58
58
|
componentDidUpdate?(prevProps: Readonly<Pick<Omit<HtmlProps, keyof import("amis-core").ThemeProps>, "html" | "wrapperComponent" | "filterHtml"> & {
|
|
59
59
|
inline?: boolean | undefined;
|
|
60
|
-
} & {} & import("packages/amis-core/lib/theme").
|
|
60
|
+
} & {} & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
61
61
|
componentWillMount?(): void;
|
|
62
62
|
UNSAFE_componentWillMount?(): void;
|
|
63
63
|
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<HtmlProps, keyof import("amis-core").ThemeProps>, "html" | "wrapperComponent" | "filterHtml"> & {
|
|
64
64
|
inline?: boolean | undefined;
|
|
65
|
-
} & {} & import("packages/amis-core/lib/theme").
|
|
65
|
+
} & {} & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
66
66
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<HtmlProps, keyof import("amis-core").ThemeProps>, "html" | "wrapperComponent" | "filterHtml"> & {
|
|
67
67
|
inline?: boolean | undefined;
|
|
68
|
-
} & {} & import("packages/amis-core/lib/theme").
|
|
68
|
+
} & {} & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
69
69
|
componentWillUpdate?(nextProps: Readonly<Pick<Omit<HtmlProps, keyof import("amis-core").ThemeProps>, "html" | "wrapperComponent" | "filterHtml"> & {
|
|
70
70
|
inline?: boolean | undefined;
|
|
71
|
-
} & {} & import("packages/amis-core/lib/theme").
|
|
71
|
+
} & {} & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
72
72
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<HtmlProps, keyof import("amis-core").ThemeProps>, "html" | "wrapperComponent" | "filterHtml"> & {
|
|
73
73
|
inline?: boolean | undefined;
|
|
74
|
-
} & {} & import("packages/amis-core/lib/theme").
|
|
74
|
+
} & {} & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
75
75
|
};
|
|
76
76
|
displayName: string;
|
|
77
77
|
contextType: React.Context<string>;
|
package/esm/components/Html.js
CHANGED