amis-ui 2.5.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.js +1 -1
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.js +1 -1
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +1 -1
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConfirmBox.d.ts +1 -0
- package/esm/components/ConfirmBox.js +11 -8
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.js +1 -1
- package/esm/components/DateRangePicker.d.ts +5 -8
- package/esm/components/DateRangePicker.js +9 -8
- package/esm/components/Drawer.js +1 -1
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.d.ts +2 -0
- package/esm/components/Form.js +22 -7
- package/esm/components/FormField.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.js +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/InputTable.js +1 -1
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.js +1 -1
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.js +1 -1
- package/esm/components/Pagination.js +1 -1
- package/esm/components/Picker.js +1 -1
- package/esm/components/PickerColumn.js +1 -1
- package/esm/components/PickerContainer.js +1 -1
- package/esm/components/PopOverContainer.js +1 -1
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.js +1 -1
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.js +1 -1
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.js +1 -1
- package/esm/components/Select.js +1 -1
- package/esm/components/Selection.js +1 -1
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.js +1 -1
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.js +1 -1
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.js +1 -1
- package/esm/components/TabsTransfer.d.ts +82 -40
- package/esm/components/TabsTransfer.js +8 -6
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.js +1 -1
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +1 -1
- package/esm/components/Tinymce.js +1 -1
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.js +1 -1
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.js +3 -2
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.js +1 -1
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.js +1 -1
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.js +1 -1
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.js +1 -1
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.js +1 -1
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/Formula.js +1 -1
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.js +1 -1
- package/esm/components/condition-builder/GroupOrItem.js +1 -1
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.js +1 -1
- package/esm/components/condition-builder/Value.js +1 -1
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.js +1 -1
- package/esm/components/formula/Editor.js +1 -1
- package/esm/components/formula/FuncList.js +1 -1
- package/esm/components/formula/Picker.js +1 -1
- package/esm/components/formula/VariableList.js +1 -1
- package/esm/components/formula/plugin.js +1 -1
- package/esm/components/icons.js +1 -1
- package/esm/components/json-schema/Array.js +1 -1
- package/esm/components/json-schema/Item.js +1 -1
- package/esm/components/json-schema/Object.js +1 -1
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/schema-editor/Array.js +1 -1
- package/esm/components/schema-editor/Common.js +1 -1
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.js +1 -1
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.js +1 -1
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.js +1 -1
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.js +1 -1
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/index.js +1 -1
- package/esm/components/virtual-list/AutoSizer.js +1 -1
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-sub-form.js +1 -1
- package/esm/hooks/use-touch.js +1 -1
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +1 -1
- package/esm/icons/alert-danger.svg.js +1 -1
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +1 -1
- package/esm/icons/alert-warning.svg.js +1 -1
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check-circle.svg.js +1 -1
- package/esm/icons/check.svg.js +1 -1
- package/esm/icons/clock.svg.js +1 -1
- package/esm/icons/close-small.svg.js +1 -1
- package/esm/icons/close.svg.js +1 -1
- package/esm/icons/cloud-upload.svg.js +1 -1
- package/esm/icons/column-filter.svg.js +1 -1
- package/esm/icons/columns.svg.js +1 -1
- package/esm/icons/compress-alt.svg.js +1 -1
- package/esm/icons/copy.svg.js +1 -1
- package/esm/icons/date.svg.js +1 -1
- package/esm/icons/department.svg.js +1 -1
- package/esm/icons/desk-empty.svg.js +1 -1
- package/esm/icons/dot.svg.js +1 -1
- package/esm/icons/down-arrow-bold.svg.js +1 -1
- package/esm/icons/down.svg.js +1 -1
- package/esm/icons/download.svg.js +1 -1
- package/esm/icons/drag-bar.svg.js +1 -1
- package/esm/icons/drag.svg.js +1 -1
- package/esm/icons/edit.svg.js +1 -1
- package/esm/icons/ellipsis-v.svg.js +1 -1
- package/esm/icons/enter.svg.js +1 -1
- package/esm/icons/exchange.svg.js +1 -1
- package/esm/icons/expand-alt.svg.js +1 -1
- package/esm/icons/fail.svg.js +1 -1
- package/esm/icons/file.svg.js +1 -1
- package/esm/icons/filter.svg.js +1 -1
- package/esm/icons/folder.svg.js +1 -1
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +1 -1
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +1 -1
- package/esm/icons/pause.svg.js +1 -1
- package/esm/icons/pencil.svg.js +1 -1
- package/esm/icons/play.svg.js +1 -1
- package/esm/icons/plus-cicle.svg.js +1 -1
- package/esm/icons/plus-fine.svg.js +1 -1
- package/esm/icons/plus.svg.js +1 -1
- package/esm/icons/post.svg.js +1 -1
- package/esm/icons/question-mark.svg.js +1 -1
- package/esm/icons/question.svg.js +1 -1
- package/esm/icons/redo.svg.js +1 -1
- package/esm/icons/refresh.svg.js +1 -1
- package/esm/icons/reload.svg.js +1 -1
- package/esm/icons/remove.svg.js +1 -1
- package/esm/icons/retry.svg.js +1 -1
- package/esm/icons/right-arrow-bold.svg.js +1 -1
- package/esm/icons/right-arrow.svg.js +1 -1
- package/esm/icons/right-double-arrow.svg.js +1 -1
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +1 -1
- package/esm/icons/rotate-right.svg.js +1 -1
- package/esm/icons/scale-origin.svg.js +1 -1
- package/esm/icons/schedule.svg.js +1 -1
- package/esm/icons/search.svg.js +1 -1
- package/esm/icons/setting.svg.js +1 -1
- package/esm/icons/slider-handle-icon.svg.js +1 -1
- package/esm/icons/sort-asc.svg.js +1 -1
- package/esm/icons/sort-default.svg.js +1 -1
- package/esm/icons/sort-desc.svg.js +1 -1
- package/esm/icons/star.svg.js +1 -1
- package/esm/icons/status-close.svg.js +1 -1
- package/esm/icons/status-fail.svg.js +1 -1
- package/esm/icons/status-info.svg.js +1 -1
- package/esm/icons/status-success.svg.js +1 -1
- package/esm/icons/status-warning.svg.js +1 -1
- package/esm/icons/steps-finsh.svg.js +1 -1
- package/esm/icons/success.svg.js +1 -1
- package/esm/icons/transparent.svg.js +1 -1
- package/esm/icons/trash.svg.js +1 -1
- package/esm/icons/tree-down.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/upload.svg.js +1 -1
- package/esm/icons/user-remove.svg.js +1 -1
- package/esm/icons/view.svg.js +1 -1
- package/esm/icons/volume.svg.js +1 -1
- package/esm/icons/warning-mark.svg.js +1 -1
- package/esm/icons/warning.svg.js +1 -1
- package/esm/icons/window-restore.svg.js +1 -1
- package/esm/icons/zoom-in.svg.js +1 -1
- package/esm/icons/zoom-out.svg.js +1 -1
- package/esm/index.js +1 -1
- package/esm/locale/de-DE.js +1 -1
- package/esm/locale/en-US.js +1 -1
- package/esm/locale/zh-CN.js +1 -1
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.d.ts +40 -40
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.d.ts +10 -10
- package/lib/components/Alert2.js +1 -1
- package/lib/components/AnchorNav.d.ts +10 -10
- package/lib/components/AnchorNav.js +1 -1
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +40 -40
- package/lib/components/AssociatedSelection.js +1 -1
- package/lib/components/Avatar.d.ts +10 -10
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.js +1 -1
- package/lib/components/BaiduMapPicker.js +1 -1
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.d.ts +10 -10
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.d.ts +10 -10
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedSelection.d.ts +40 -40
- package/lib/components/ChainedSelection.js +1 -1
- package/lib/components/Checkbox.d.ts +10 -10
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CityArea.js +1 -1
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.d.ts +10 -10
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.d.ts +10 -10
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/Combo.js +1 -1
- package/lib/components/ConfirmBox.d.ts +41 -40
- package/lib/components/ConfirmBox.js +11 -8
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +81 -81
- package/lib/components/DatePicker.js +1 -1
- package/lib/components/DateRangePicker.d.ts +45 -48
- package/lib/components/DateRangePicker.js +9 -8
- package/lib/components/Drawer.d.ts +10 -10
- package/lib/components/Drawer.js +1 -1
- package/lib/components/Editor.d.ts +40 -40
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.d.ts +2 -0
- package/lib/components/Form.js +21 -6
- package/lib/components/FormField.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.d.ts +40 -40
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.d.ts +40 -40
- package/lib/components/ImageGallery.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/InputTable.js +1 -1
- package/lib/components/Layout.d.ts +10 -10
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +40 -40
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.d.ts +40 -40
- package/lib/components/LocationPicker.js +1 -1
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Modal.d.ts +40 -40
- package/lib/components/Modal.js +1 -1
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +40 -40
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +10 -10
- package/lib/components/NumberInput.js +1 -1
- package/lib/components/Pagination.d.ts +40 -40
- package/lib/components/Pagination.js +1 -1
- package/lib/components/Picker.js +1 -1
- package/lib/components/PickerColumn.js +1 -1
- package/lib/components/PickerContainer.js +1 -1
- package/lib/components/PopOverContainer.js +1 -1
- package/lib/components/PopUp.d.ts +40 -40
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +10 -10
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.d.ts +10 -10
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.js +1 -1
- package/lib/components/Rating.d.ts +10 -10
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +40 -40
- package/lib/components/ResultBox.js +1 -1
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.d.ts +40 -40
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +1 -1
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.d.ts +40 -40
- package/lib/components/SearchBox.js +1 -1
- package/lib/components/Select.d.ts +193 -193
- package/lib/components/Select.js +1 -1
- package/lib/components/Selection.d.ts +40 -40
- package/lib/components/Selection.js +1 -1
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.d.ts +10 -10
- package/lib/components/Spinner.js +1 -1
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +10 -10
- package/lib/components/Switch.js +1 -1
- package/lib/components/TableSelection.d.ts +40 -40
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +40 -40
- package/lib/components/Tabs.js +1 -1
- package/lib/components/TabsTransfer.d.ts +82 -40
- package/lib/components/TabsTransfer.js +8 -6
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +10 -10
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +1 -1
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +1 -1
- package/lib/components/Tinymce.js +1 -1
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.d.ts +40 -40
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.d.ts +10 -10
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +49 -49
- package/lib/components/Transfer.js +1 -1
- package/lib/components/TransferDropDown.d.ts +40 -40
- package/lib/components/TransferDropDown.js +1 -1
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +1 -1
- package/lib/components/Tree.d.ts +40 -40
- package/lib/components/Tree.js +3 -2
- package/lib/components/TreeSelection.d.ts +40 -40
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.d.ts +40 -40
- package/lib/components/UserSelect.js +1 -1
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/WithRemoteConfig.js +1 -1
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.js +1 -1
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.js +1 -1
- package/lib/components/calendar/MonthsView.js +1 -1
- package/lib/components/calendar/QuartersView.js +1 -1
- package/lib/components/calendar/TimeView.js +1 -1
- package/lib/components/calendar/YearsView.js +1 -1
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.js +1 -1
- package/lib/components/condition-builder/Formula.js +1 -1
- package/lib/components/condition-builder/Func.js +1 -1
- package/lib/components/condition-builder/Group.js +1 -1
- package/lib/components/condition-builder/GroupOrItem.js +1 -1
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.js +1 -1
- package/lib/components/condition-builder/Value.js +1 -1
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.d.ts +1 -1
- package/lib/components/condition-builder/index.js +1 -1
- package/lib/components/formula/Editor.d.ts +40 -40
- package/lib/components/formula/Editor.js +1 -1
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Picker.d.ts +40 -40
- package/lib/components/formula/Picker.js +1 -1
- package/lib/components/formula/VariableList.js +1 -1
- package/lib/components/formula/plugin.js +1 -1
- package/lib/components/icons.js +1 -1
- package/lib/components/json-schema/Array.js +1 -1
- package/lib/components/json-schema/Item.js +1 -1
- package/lib/components/json-schema/Object.js +1 -1
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/schema-editor/Array.js +1 -1
- package/lib/components/schema-editor/Common.js +1 -1
- package/lib/components/schema-editor/Item.js +1 -1
- package/lib/components/schema-editor/Object.js +1 -1
- package/lib/components/schema-editor/SchemaVariableList.js +1 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/lib/components/schema-editor/index.d.ts +40 -40
- package/lib/components/schema-editor/index.js +1 -1
- package/lib/components/table/Cell.d.ts +40 -40
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.d.ts +40 -40
- package/lib/components/table/HeadCellFilter.js +1 -1
- package/lib/components/table/HeadCellSelect.d.ts +40 -40
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.js +1 -1
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/index.d.ts +40 -40
- package/lib/components/table/index.js +1 -1
- package/lib/components/virtual-list/AutoSizer.js +1 -1
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-sub-form.js +1 -1
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +1 -1
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +1 -1
- package/lib/icons/alert-warning.svg.js +1 -1
- package/lib/icons/back.svg.js +1 -1
- package/lib/icons/calendar.svg.js +1 -1
- package/lib/icons/caret.svg.js +1 -1
- package/lib/icons/check-circle.svg.js +1 -1
- package/lib/icons/check.svg.js +1 -1
- package/lib/icons/clock.svg.js +1 -1
- package/lib/icons/close-small.svg.js +1 -1
- package/lib/icons/close.svg.js +1 -1
- package/lib/icons/cloud-upload.svg.js +1 -1
- package/lib/icons/column-filter.svg.js +1 -1
- package/lib/icons/columns.svg.js +1 -1
- package/lib/icons/compress-alt.svg.js +1 -1
- package/lib/icons/copy.svg.js +1 -1
- package/lib/icons/date.svg.js +1 -1
- package/lib/icons/department.svg.js +1 -1
- package/lib/icons/desk-empty.svg.js +1 -1
- package/lib/icons/dot.svg.js +1 -1
- package/lib/icons/down-arrow-bold.svg.js +1 -1
- package/lib/icons/down.svg.js +1 -1
- package/lib/icons/download.svg.js +1 -1
- package/lib/icons/drag-bar.svg.js +1 -1
- package/lib/icons/drag.svg.js +1 -1
- package/lib/icons/edit.svg.js +1 -1
- package/lib/icons/ellipsis-v.svg.js +1 -1
- package/lib/icons/enter.svg.js +1 -1
- package/lib/icons/exchange.svg.js +1 -1
- package/lib/icons/expand-alt.svg.js +1 -1
- package/lib/icons/fail.svg.js +1 -1
- package/lib/icons/file.svg.js +1 -1
- package/lib/icons/filter.svg.js +1 -1
- package/lib/icons/folder.svg.js +1 -1
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/image.svg.js +1 -1
- package/lib/icons/info-circle.svg.js +1 -1
- package/lib/icons/info.svg.js +1 -1
- package/lib/icons/input-clear.svg.js +1 -1
- package/lib/icons/invisible.svg.js +1 -1
- package/lib/icons/left-arrow.svg.js +1 -1
- package/lib/icons/loading-outline.svg.js +1 -1
- package/lib/icons/location.svg.js +1 -1
- package/lib/icons/menu.svg.js +1 -1
- package/lib/icons/minus.svg.js +1 -1
- package/lib/icons/move.svg.js +1 -1
- package/lib/icons/mute.svg.js +1 -1
- package/lib/icons/new-edit.svg.js +1 -1
- package/lib/icons/pause.svg.js +1 -1
- package/lib/icons/pencil.svg.js +1 -1
- package/lib/icons/play.svg.js +1 -1
- package/lib/icons/plus-cicle.svg.js +1 -1
- package/lib/icons/plus-fine.svg.js +1 -1
- package/lib/icons/plus.svg.js +1 -1
- package/lib/icons/post.svg.js +1 -1
- package/lib/icons/question-mark.svg.js +1 -1
- package/lib/icons/question.svg.js +1 -1
- package/lib/icons/redo.svg.js +1 -1
- package/lib/icons/refresh.svg.js +1 -1
- package/lib/icons/reload.svg.js +1 -1
- package/lib/icons/remove.svg.js +1 -1
- package/lib/icons/retry.svg.js +1 -1
- package/lib/icons/right-arrow-bold.svg.js +1 -1
- package/lib/icons/right-arrow.svg.js +1 -1
- package/lib/icons/right-double-arrow.svg.js +1 -1
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +1 -1
- package/lib/icons/rotate-right.svg.js +1 -1
- package/lib/icons/scale-origin.svg.js +1 -1
- package/lib/icons/schedule.svg.js +1 -1
- package/lib/icons/search.svg.js +1 -1
- package/lib/icons/setting.svg.js +1 -1
- package/lib/icons/slider-handle-icon.svg.js +1 -1
- package/lib/icons/sort-asc.svg.js +1 -1
- package/lib/icons/sort-default.svg.js +1 -1
- package/lib/icons/sort-desc.svg.js +1 -1
- package/lib/icons/star.svg.js +1 -1
- package/lib/icons/status-close.svg.js +1 -1
- package/lib/icons/status-fail.svg.js +1 -1
- package/lib/icons/status-info.svg.js +1 -1
- package/lib/icons/status-success.svg.js +1 -1
- package/lib/icons/status-warning.svg.js +1 -1
- package/lib/icons/steps-finsh.svg.js +1 -1
- package/lib/icons/success.svg.js +1 -1
- package/lib/icons/transparent.svg.js +1 -1
- package/lib/icons/trash.svg.js +1 -1
- package/lib/icons/tree-down.svg.js +1 -1
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/upload.svg.js +1 -1
- package/lib/icons/user-remove.svg.js +1 -1
- package/lib/icons/view.svg.js +1 -1
- package/lib/icons/volume.svg.js +1 -1
- package/lib/icons/warning-mark.svg.js +1 -1
- package/lib/icons/warning.svg.js +1 -1
- package/lib/icons/window-restore.svg.js +1 -1
- package/lib/icons/zoom-in.svg.js +1 -1
- package/lib/icons/zoom-out.svg.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/scss/helper.scss.js +1 -1
- package/lib/scss/themes/ang.scss.js +1 -1
- package/lib/scss/themes/antd.scss.js +1 -1
- package/lib/scss/themes/cxd.scss.js +1 -1
- package/lib/scss/themes/dark.scss.js +1 -1
- package/lib/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +63 -44
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +34 -33
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +34 -33
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +34 -33
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +34 -33
- package/package.json +4 -4
- package/scss/_properties.scss +38 -37
- package/scss/components/_badge.scss +9 -8
- package/scss/components/_timeline.scss +1 -2
- package/scss/components/react-datetime.scss +8 -8
- package/scss/themes/_ang-variables.scss +10 -11
- package/scss/themes/ang.scss +20 -0
|
@@ -11,6 +11,7 @@ export interface ConfirmBoxProps extends LocaleProps, ThemeProps {
|
|
|
11
11
|
showTitle?: boolean;
|
|
12
12
|
showFooter?: boolean;
|
|
13
13
|
children?: JSX.Element | ((methods: {
|
|
14
|
+
loading?: boolean;
|
|
14
15
|
bodyRef: React.MutableRefObject<{
|
|
15
16
|
submit: () => Promise<Record<string, any>>;
|
|
16
17
|
} | undefined>;
|
|
@@ -33,7 +34,7 @@ export declare namespace ConfirmBox {
|
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
declare const _default: {
|
|
36
|
-
new (props: Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
37
|
+
new (props: Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
37
38
|
type: "dialog";
|
|
38
39
|
position: "right";
|
|
39
40
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
@@ -45,7 +46,7 @@ declare const _default: {
|
|
|
45
46
|
getWrappedInstance(): any;
|
|
46
47
|
render(): JSX.Element;
|
|
47
48
|
context: any;
|
|
48
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
49
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
49
50
|
type: "dialog";
|
|
50
51
|
position: "right";
|
|
51
52
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
@@ -53,7 +54,7 @@ declare const _default: {
|
|
|
53
54
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
54
55
|
}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
55
56
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
56
|
-
readonly props: Readonly<Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
57
|
+
readonly props: Readonly<Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
57
58
|
type: "dialog";
|
|
58
59
|
position: "right";
|
|
59
60
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
@@ -67,7 +68,7 @@ declare const _default: {
|
|
|
67
68
|
[key: string]: React.ReactInstance;
|
|
68
69
|
};
|
|
69
70
|
componentDidMount?(): void;
|
|
70
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
71
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
71
72
|
type: "dialog";
|
|
72
73
|
position: "right";
|
|
73
74
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
@@ -76,14 +77,14 @@ declare const _default: {
|
|
|
76
77
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
77
78
|
componentWillUnmount?(): void;
|
|
78
79
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
79
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
80
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
80
81
|
type: "dialog";
|
|
81
82
|
position: "right";
|
|
82
83
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
83
84
|
locale?: string | undefined;
|
|
84
85
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
85
86
|
}>, prevState: Readonly<{}>): any;
|
|
86
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
87
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
87
88
|
type: "dialog";
|
|
88
89
|
position: "right";
|
|
89
90
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
@@ -92,28 +93,28 @@ declare const _default: {
|
|
|
92
93
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
93
94
|
componentWillMount?(): void;
|
|
94
95
|
UNSAFE_componentWillMount?(): void;
|
|
95
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
96
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
96
97
|
type: "dialog";
|
|
97
98
|
position: "right";
|
|
98
99
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
99
100
|
locale?: string | undefined;
|
|
100
101
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
101
102
|
}>, nextContext: any): void;
|
|
102
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
103
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
103
104
|
type: "dialog";
|
|
104
105
|
position: "right";
|
|
105
106
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
106
107
|
locale?: string | undefined;
|
|
107
108
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
108
109
|
}>, nextContext: any): void;
|
|
109
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
110
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
110
111
|
type: "dialog";
|
|
111
112
|
position: "right";
|
|
112
113
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
113
114
|
locale?: string | undefined;
|
|
114
115
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
115
116
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
116
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
117
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
117
118
|
type: "dialog";
|
|
118
119
|
position: "right";
|
|
119
120
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps, keyof LocaleProps> & {
|
|
@@ -124,7 +125,7 @@ declare const _default: {
|
|
|
124
125
|
displayName: string;
|
|
125
126
|
contextType: React.Context<string>;
|
|
126
127
|
ComposedComponent: React.ComponentType<{
|
|
127
|
-
new (props: Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
128
|
+
new (props: Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
128
129
|
type: "dialog";
|
|
129
130
|
position: "right";
|
|
130
131
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps): {
|
|
@@ -133,12 +134,12 @@ declare const _default: {
|
|
|
133
134
|
getWrappedInstance(): any;
|
|
134
135
|
render(): JSX.Element;
|
|
135
136
|
context: any;
|
|
136
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
137
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
137
138
|
type: "dialog";
|
|
138
139
|
position: "right";
|
|
139
140
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
140
141
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
141
|
-
readonly props: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
142
|
+
readonly props: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
142
143
|
type: "dialog";
|
|
143
144
|
position: "right";
|
|
144
145
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
@@ -149,35 +150,35 @@ declare const _default: {
|
|
|
149
150
|
[key: string]: React.ReactInstance;
|
|
150
151
|
};
|
|
151
152
|
componentDidMount?(): void;
|
|
152
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
153
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
153
154
|
type: "dialog";
|
|
154
155
|
position: "right";
|
|
155
156
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
156
157
|
componentWillUnmount?(): void;
|
|
157
158
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
158
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
159
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
159
160
|
type: "dialog";
|
|
160
161
|
position: "right";
|
|
161
162
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
162
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
163
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
163
164
|
type: "dialog";
|
|
164
165
|
position: "right";
|
|
165
166
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
166
167
|
componentWillMount?(): void;
|
|
167
168
|
UNSAFE_componentWillMount?(): void;
|
|
168
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
169
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
169
170
|
type: "dialog";
|
|
170
171
|
position: "right";
|
|
171
172
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
172
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
173
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
173
174
|
type: "dialog";
|
|
174
175
|
position: "right";
|
|
175
176
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
176
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
177
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
177
178
|
type: "dialog";
|
|
178
179
|
position: "right";
|
|
179
180
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
180
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
181
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
181
182
|
type: "dialog";
|
|
182
183
|
position: "right";
|
|
183
184
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -189,7 +190,7 @@ declare const _default: {
|
|
|
189
190
|
ComposedComponent: typeof ConfirmBox;
|
|
190
191
|
}>;
|
|
191
192
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
192
|
-
new (props: Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
193
|
+
new (props: Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
193
194
|
type: "dialog";
|
|
194
195
|
position: "right";
|
|
195
196
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps): {
|
|
@@ -198,12 +199,12 @@ declare const _default: {
|
|
|
198
199
|
getWrappedInstance(): any;
|
|
199
200
|
render(): JSX.Element;
|
|
200
201
|
context: any;
|
|
201
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
202
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
202
203
|
type: "dialog";
|
|
203
204
|
position: "right";
|
|
204
205
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
205
206
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
206
|
-
readonly props: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
207
|
+
readonly props: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
207
208
|
type: "dialog";
|
|
208
209
|
position: "right";
|
|
209
210
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
@@ -214,35 +215,35 @@ declare const _default: {
|
|
|
214
215
|
[key: string]: React.ReactInstance;
|
|
215
216
|
};
|
|
216
217
|
componentDidMount?(): void;
|
|
217
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
218
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
218
219
|
type: "dialog";
|
|
219
220
|
position: "right";
|
|
220
221
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
221
222
|
componentWillUnmount?(): void;
|
|
222
223
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
223
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
224
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
224
225
|
type: "dialog";
|
|
225
226
|
position: "right";
|
|
226
227
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
227
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
228
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
228
229
|
type: "dialog";
|
|
229
230
|
position: "right";
|
|
230
231
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
231
232
|
componentWillMount?(): void;
|
|
232
233
|
UNSAFE_componentWillMount?(): void;
|
|
233
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
234
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
234
235
|
type: "dialog";
|
|
235
236
|
position: "right";
|
|
236
237
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
237
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
238
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
238
239
|
type: "dialog";
|
|
239
240
|
position: "right";
|
|
240
241
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
241
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
242
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
242
243
|
type: "dialog";
|
|
243
244
|
position: "right";
|
|
244
245
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
245
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
246
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
246
247
|
type: "dialog";
|
|
247
248
|
position: "right";
|
|
248
249
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -254,7 +255,7 @@ declare const _default: {
|
|
|
254
255
|
ComposedComponent: typeof ConfirmBox;
|
|
255
256
|
}, {}> & {
|
|
256
257
|
ComposedComponent: {
|
|
257
|
-
new (props: Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
258
|
+
new (props: Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
258
259
|
type: "dialog";
|
|
259
260
|
position: "right";
|
|
260
261
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps): {
|
|
@@ -263,12 +264,12 @@ declare const _default: {
|
|
|
263
264
|
getWrappedInstance(): any;
|
|
264
265
|
render(): JSX.Element;
|
|
265
266
|
context: any;
|
|
266
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
267
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
267
268
|
type: "dialog";
|
|
268
269
|
position: "right";
|
|
269
270
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
270
271
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
271
|
-
readonly props: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
272
|
+
readonly props: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
272
273
|
type: "dialog";
|
|
273
274
|
position: "right";
|
|
274
275
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
@@ -279,35 +280,35 @@ declare const _default: {
|
|
|
279
280
|
[key: string]: React.ReactInstance;
|
|
280
281
|
};
|
|
281
282
|
componentDidMount?(): void;
|
|
282
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
283
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
283
284
|
type: "dialog";
|
|
284
285
|
position: "right";
|
|
285
286
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
286
287
|
componentWillUnmount?(): void;
|
|
287
288
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
288
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
289
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
289
290
|
type: "dialog";
|
|
290
291
|
position: "right";
|
|
291
292
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
292
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
293
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
293
294
|
type: "dialog";
|
|
294
295
|
position: "right";
|
|
295
296
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
296
297
|
componentWillMount?(): void;
|
|
297
298
|
UNSAFE_componentWillMount?(): void;
|
|
298
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
299
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
299
300
|
type: "dialog";
|
|
300
301
|
position: "right";
|
|
301
302
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
302
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
303
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
303
304
|
type: "dialog";
|
|
304
305
|
position: "right";
|
|
305
306
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
306
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
307
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
307
308
|
type: "dialog";
|
|
308
309
|
position: "right";
|
|
309
310
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
310
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "
|
|
311
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "children" | "title" | "closeOnEsc" | "onCancel" | "locale" | "translate" | "size" | "show" | "onConfirm" | "popOverContainer" | "bodyClassName" | "resizable" | "headerClassName" | "showTitle" | "showFooter" | "beforeConfirm" | "footerClassName"> & Partial<Pick<Omit<ConfirmBoxProps, keyof ThemeProps>, "type" | "position">> & Partial<Pick<{
|
|
311
312
|
type: "dialog";
|
|
312
313
|
position: "right";
|
|
313
314
|
}, never>> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.5.
|
|
2
|
+
* amis-ui v2.5.2
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -35,7 +35,7 @@ function ConfirmBox(_a) {
|
|
|
35
35
|
setLoading(true);
|
|
36
36
|
_d.label = 1;
|
|
37
37
|
case 1:
|
|
38
|
-
_d.trys.push([1,
|
|
38
|
+
_d.trys.push([1, 7, 8, 9]);
|
|
39
39
|
if (!beforeConfirm) return [3 /*break*/, 3];
|
|
40
40
|
return [4 /*yield*/, (beforeConfirm === null || beforeConfirm === void 0 ? void 0 : beforeConfirm(bodyRef.current))];
|
|
41
41
|
case 2:
|
|
@@ -54,16 +54,18 @@ function ConfirmBox(_a) {
|
|
|
54
54
|
setError(ret);
|
|
55
55
|
return [2 /*return*/];
|
|
56
56
|
}
|
|
57
|
-
onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm(ret);
|
|
58
|
-
return [3 /*break*/, 8];
|
|
57
|
+
return [4 /*yield*/, (onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm(ret))];
|
|
59
58
|
case 6:
|
|
59
|
+
_d.sent();
|
|
60
|
+
return [3 /*break*/, 9];
|
|
61
|
+
case 7:
|
|
60
62
|
e_1 = _d.sent();
|
|
61
63
|
setError(e_1.message);
|
|
62
|
-
return [3 /*break*/,
|
|
63
|
-
case
|
|
64
|
+
return [3 /*break*/, 9];
|
|
65
|
+
case 8:
|
|
64
66
|
setLoading(false);
|
|
65
67
|
return [7 /*endfinally*/];
|
|
66
|
-
case
|
|
68
|
+
case 9: return [2 /*return*/];
|
|
67
69
|
}
|
|
68
70
|
});
|
|
69
71
|
}); }, [onConfirm, beforeConfirm]);
|
|
@@ -72,7 +74,8 @@ function ConfirmBox(_a) {
|
|
|
72
74
|
showTitle !== false && title ? (React__default["default"].createElement(Modal["default"].Header, { onClose: onCancel, className: headerClassName }, title)) : null,
|
|
73
75
|
React__default["default"].createElement(Modal["default"].Body, { className: bodyClassName }, typeof children === 'function'
|
|
74
76
|
? children({
|
|
75
|
-
bodyRef: bodyRef
|
|
77
|
+
bodyRef: bodyRef,
|
|
78
|
+
loading: loading
|
|
76
79
|
})
|
|
77
80
|
: children),
|
|
78
81
|
(showFooter !== null && showFooter !== void 0 ? showFooter : true) ? (React__default["default"].createElement(Modal["default"].Footer, { className: footerClassName },
|