amis-ui 6.2.2 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/_virtual/_commonjsHelpers.js +10 -0
- package/esm/_virtual/pdf.worker.min.js +8 -0
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.d.ts +124 -122
- package/esm/components/Alert.js +10 -6
- package/esm/components/Alert2.d.ts +20 -20
- 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 +40 -40
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.d.ts +2 -1
- package/esm/components/AsideNav.js +6 -3
- package/esm/components/AssociatedSelection.d.ts +120 -120
- package/esm/components/AssociatedSelection.js +4 -4
- package/esm/components/Avatar.d.ts +140 -140
- 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.d.ts +3 -0
- package/esm/components/Breadcrumb.js +7 -6
- package/esm/components/Button.d.ts +32 -31
- package/esm/components/Button.js +4 -4
- package/esm/components/CalendarMobile.d.ts +45 -40
- package/esm/components/CalendarMobile.js +41 -6
- package/esm/components/Card.d.ts +140 -140
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedDropdownSelection.d.ts +120 -120
- package/esm/components/ChainedDropdownSelection.js +1 -1
- package/esm/components/ChainedSelection.d.ts +120 -120
- package/esm/components/ChainedSelection.js +8 -6
- package/esm/components/Checkbox.d.ts +12 -11
- package/esm/components/Checkbox.js +7 -7
- package/esm/components/CityArea.js +1 -1
- package/esm/components/CityDB.d.ts +1 -1
- package/esm/components/CityDB.js +377 -889
- package/esm/components/CodeMirror.d.ts +1 -0
- package/esm/components/CodeMirror.js +16 -5
- package/esm/components/Collapse.d.ts +140 -140
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.d.ts +30 -30
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.d.ts +80 -80
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConfirmBox.d.ts +81 -80
- package/esm/components/ConfirmBox.js +6 -3
- package/esm/components/ContextMenu.d.ts +17 -3
- package/esm/components/ContextMenu.js +72 -20
- package/esm/components/DatePicker.d.ts +84 -82
- package/esm/components/DatePicker.js +12 -12
- package/esm/components/DateRangePicker.d.ts +133 -129
- package/esm/components/DateRangePicker.js +40 -27
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.d.ts +30 -30
- package/esm/components/Drawer.js +1 -1
- package/esm/components/DropDownSelection.d.ts +120 -120
- package/esm/components/DropDownSelection.js +1 -1
- package/esm/components/Editor.d.ts +120 -120
- package/esm/components/Editor.js +3 -3
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/GaodeMapPicker.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.d.ts +120 -120
- package/esm/components/GroupedSelection.js +5 -4
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.d.ts +40 -40
- package/esm/components/ImageGallery.js +2 -1
- package/esm/components/Input.d.ts +3 -1
- package/esm/components/Input.js +3 -3
- package/esm/components/InputBox.d.ts +14 -13
- package/esm/components/InputBox.js +7 -7
- package/esm/components/InputBoxWithSuggestion.js +7 -7
- package/esm/components/InputTable.js +1 -1
- package/esm/components/Layout.d.ts +10 -10
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.d.ts +82 -80
- package/esm/components/ListMenu.js +3 -3
- package/esm/components/LocationPicker.d.ts +40 -40
- package/esm/components/LocationPicker.js +1 -1
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Modal.d.ts +120 -120
- package/esm/components/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +120 -120
- package/esm/components/MultilineText.d.ts +40 -40
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.d.ts +30 -21
- package/esm/components/NumberInput.js +36 -6
- package/esm/components/OverflowTpl.js +1 -1
- package/esm/components/Pagination.d.ts +200 -110
- package/esm/components/Pagination.js +21 -21
- package/esm/components/PdfViewer.d.ts +49 -0
- package/esm/components/PdfViewer.js +85 -0
- package/esm/components/Picker.d.ts +1 -0
- package/esm/components/Picker.js +4 -4
- package/esm/components/PickerColumn.d.ts +1 -0
- package/esm/components/PickerColumn.js +8 -6
- package/esm/components/PickerContainer.d.ts +1 -2
- package/esm/components/PickerContainer.js +26 -16
- package/esm/components/PopOverContainer.d.ts +1 -0
- package/esm/components/PopOverContainer.js +3 -3
- package/esm/components/PopUp.d.ts +120 -120
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.d.ts +60 -60
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.d.ts +12 -10
- package/esm/components/Radios.js +4 -3
- package/esm/components/Range.js +1 -1
- package/esm/components/Rating.d.ts +20 -20
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.d.ts +82 -81
- package/esm/components/ResultBox.js +25 -21
- package/esm/components/ResultList.d.ts +42 -40
- package/esm/components/ResultList.js +5 -4
- package/esm/components/ResultTableList.d.ts +120 -120
- package/esm/components/ResultTableList.js +5 -4
- package/esm/components/ResultTreeList.d.ts +40 -40
- package/esm/components/ResultTreeList.js +3 -3
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.d.ts +82 -81
- package/esm/components/SearchBox.js +8 -8
- package/esm/components/Select.d.ts +1363 -1354
- package/esm/components/Select.js +13 -12
- package/esm/components/SelectMobile.js +22 -19
- package/esm/components/Selection.d.ts +122 -120
- package/esm/components/Selection.js +1 -1
- package/esm/components/Signature.d.ts +280 -0
- package/esm/components/Signature.js +271 -0
- package/esm/components/SparkLine.d.ts +40 -40
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.d.ts +60 -60
- package/esm/components/Spinner.js +1 -1
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.d.ts +12 -12
- package/esm/components/Switch.js +4 -4
- package/esm/components/TableSelection.d.ts +120 -120
- package/esm/components/TableSelection.js +6 -5
- package/esm/components/Tabs.d.ts +83 -81
- package/esm/components/Tabs.js +21 -22
- package/esm/components/TabsTransfer.d.ts +40 -40
- package/esm/components/TabsTransfer.js +16 -14
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.d.ts +70 -70
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.d.ts +42 -42
- package/esm/components/Textarea.js +4 -4
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.d.ts +1 -1
- package/esm/components/TimelineItem.js +1 -1
- package/esm/components/Tinymce.js +7 -4
- package/esm/components/TitleBar.d.ts +10 -10
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.d.ts +120 -120
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.d.ts +32 -32
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.d.ts +174 -172
- package/esm/components/Transfer.js +16 -16
- package/esm/components/TransferDropDown.d.ts +160 -160
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.d.ts +206 -210
- package/esm/components/Tree.js +32 -30
- package/esm/components/TreeSelection.d.ts +120 -120
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.d.ts +40 -40
- package/esm/components/UserSelect.js +1 -1
- package/esm/components/UserTabSelect.d.ts +40 -40
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.d.ts +9 -0
- package/esm/components/WithRemoteConfig.js +19 -3
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.d.ts +2 -1
- package/esm/components/calendar/Calendar.js +7 -6
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.d.ts +2 -1
- package/esm/components/calendar/DaysView.js +17 -15
- package/esm/components/calendar/MonthsView.d.ts +2 -0
- package/esm/components/calendar/MonthsView.js +8 -6
- package/esm/components/calendar/QuartersView.d.ts +2 -0
- package/esm/components/calendar/QuartersView.js +7 -6
- package/esm/components/calendar/TimeView.d.ts +2 -0
- package/esm/components/calendar/TimeView.js +8 -7
- package/esm/components/calendar/YearsView.d.ts +2 -0
- package/esm/components/calendar/YearsView.js +6 -5
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.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.d.ts +1 -0
- package/esm/components/condition-builder/Value.js +30 -14
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.js +1 -1
- package/esm/components/formula/CodeEditor.d.ts +92 -0
- package/esm/components/formula/CodeEditor.js +99 -0
- package/esm/components/formula/Editor.d.ts +64 -69
- package/esm/components/formula/Editor.js +173 -81
- package/esm/components/formula/FuncList.d.ts +1 -1
- package/esm/components/formula/FuncList.js +10 -9
- package/esm/components/formula/Input.d.ts +68 -54
- package/esm/components/formula/Input.js +45 -102
- package/esm/components/formula/Picker.d.ts +74 -60
- package/esm/components/formula/Picker.js +129 -69
- package/esm/components/formula/VariableList.d.ts +1 -1
- package/esm/components/formula/VariableList.js +26 -12
- package/esm/components/formula/plugin.d.ts +28 -7
- package/esm/components/formula/plugin.js +217 -90
- package/esm/components/icons.d.ts +4 -2
- package/esm/components/icons.js +14 -5
- package/esm/components/index.d.ts +5 -3
- package/esm/components/json-schema/Array.js +2 -2
- package/esm/components/json-schema/Item.d.ts +3 -1
- package/esm/components/json-schema/Item.js +35 -9
- package/esm/components/json-schema/Object.d.ts +3 -1
- package/esm/components/json-schema/Object.js +112 -52
- package/esm/components/json-schema/index.d.ts +53 -50
- package/esm/components/json-schema/index.js +14 -5
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.d.ts +2 -1
- package/esm/components/menu/MenuItem.js +4 -4
- package/esm/components/menu/SubMenu.d.ts +2 -1
- package/esm/components/menu/SubMenu.js +6 -6
- package/esm/components/menu/index.d.ts +66 -63
- package/esm/components/menu/index.js +10 -7
- package/esm/components/schema-editor/Array.js +23 -8
- package/esm/components/schema-editor/Common.d.ts +17 -1
- package/esm/components/schema-editor/Common.js +84 -37
- package/esm/components/schema-editor/Item.js +2 -2
- package/esm/components/schema-editor/Object.d.ts +7 -1
- package/esm/components/schema-editor/Object.js +106 -14
- package/esm/components/schema-editor/SchemaVariableList.d.ts +1 -1
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.d.ts +48 -40
- package/esm/components/schema-editor/index.js +4 -4
- package/esm/components/table/Cell.d.ts +2 -0
- package/esm/components/table/Cell.js +4 -4
- package/esm/components/table/ColGroup.js +1 -1
- package/esm/components/table/Head.d.ts +2 -0
- package/esm/components/table/Head.js +12 -9
- package/esm/components/table/HeadCellDropDown.d.ts +2 -0
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.d.ts +42 -40
- package/esm/components/table/HeadCellFilter.js +8 -8
- package/esm/components/table/HeadCellSelect.d.ts +40 -40
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.d.ts +2 -0
- package/esm/components/table/HeadCellSort.js +8 -8
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/Row.d.ts +2 -0
- package/esm/components/table/Row.js +4 -3
- package/esm/components/table/SummaryRow.js +1 -1
- package/esm/components/table/index.d.ts +162 -160
- package/esm/components/table/index.js +7 -5
- package/esm/components/table/util.d.ts +7 -7
- package/esm/components/table/util.js +4 -2
- 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/arrow-double-left.svg.js +1 -1
- package/esm/icons/arrow-double-right.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/fullscreen.svg.js +21 -0
- 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/sub-plus.svg.js +20 -0
- package/esm/icons/success.svg.js +1 -1
- package/esm/icons/transparent.svg.js +1 -1
- package/esm/icons/trash.svg.js +1 -1
- package/esm/icons/tree-down.svg.js +1 -1
- package/esm/icons/undo-normal.svg.js +25 -0
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/unfullscreen.svg.js +21 -0
- 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 +4 -2
- package/esm/locale/de-DE.js +27 -11
- package/esm/locale/en-US.js +18 -2
- package/esm/locale/zh-CN.js +19 -3
- package/esm/node_modules/pdfjs-dist/build/pdf.worker.min.js +37 -0
- package/esm/node_modules/smooth-signature/es/index.js +506 -0
- 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/_virtual/_commonjsHelpers.js +14 -0
- package/lib/_virtual/pdf.worker.min.js +12 -0
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.d.ts +124 -122
- package/lib/components/Alert.js +10 -6
- package/lib/components/Alert2.d.ts +20 -20
- 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 +40 -40
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.d.ts +12 -11
- package/lib/components/AsideNav.js +5 -2
- package/lib/components/AssociatedSelection.d.ts +80 -80
- package/lib/components/AssociatedSelection.js +4 -4
- package/lib/components/Avatar.d.ts +70 -70
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.d.ts +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.d.ts +3 -0
- package/lib/components/Breadcrumb.js +7 -6
- package/lib/components/Button.d.ts +42 -41
- package/lib/components/Button.js +3 -3
- package/lib/components/CalendarMobile.d.ts +85 -80
- package/lib/components/CalendarMobile.js +41 -6
- package/lib/components/Card.d.ts +110 -110
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedDropdownSelection.d.ts +80 -80
- package/lib/components/ChainedDropdownSelection.js +1 -1
- package/lib/components/ChainedSelection.d.ts +80 -80
- package/lib/components/ChainedSelection.js +8 -6
- package/lib/components/Checkbox.d.ts +12 -11
- package/lib/components/Checkbox.js +6 -6
- package/lib/components/CityArea.js +1 -1
- package/lib/components/CityDB.d.ts +1 -1
- package/lib/components/CityDB.js +377 -889
- package/lib/components/CodeMirror.d.ts +1 -0
- package/lib/components/CodeMirror.js +15 -4
- package/lib/components/Collapse.d.ts +140 -140
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.d.ts +20 -20
- 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 +81 -80
- package/lib/components/ConfirmBox.js +6 -3
- package/lib/components/ContextMenu.d.ts +17 -3
- package/lib/components/ContextMenu.js +73 -20
- package/lib/components/DatePicker.d.ts +124 -122
- package/lib/components/DatePicker.js +12 -12
- package/lib/components/DateRangePicker.d.ts +293 -289
- package/lib/components/DateRangePicker.js +40 -27
- package/lib/components/DndContainer.js +1 -1
- package/lib/components/Drawer.d.ts +30 -30
- package/lib/components/Drawer.js +1 -1
- package/lib/components/DropDownSelection.d.ts +80 -80
- package/lib/components/DropDownSelection.js +1 -1
- package/lib/components/Editor.d.ts +120 -120
- package/lib/components/Editor.js +3 -3
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.js +1 -1
- package/lib/components/GaodeMapPicker.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.d.ts +80 -80
- package/lib/components/GroupedSelection.js +5 -4
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.d.ts +40 -40
- package/lib/components/ImageGallery.js +2 -1
- package/lib/components/Input.d.ts +3 -1
- package/lib/components/Input.js +3 -3
- package/lib/components/InputBox.d.ts +14 -13
- package/lib/components/InputBox.js +6 -6
- package/lib/components/InputBoxWithSuggestion.js +7 -7
- 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 +82 -80
- package/lib/components/ListMenu.js +3 -3
- 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 +80 -80
- package/lib/components/Modal.js +1 -1
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +160 -160
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +30 -21
- package/lib/components/NumberInput.js +36 -6
- package/lib/components/OverflowTpl.js +1 -1
- package/lib/components/Pagination.d.ts +200 -110
- package/lib/components/Pagination.js +20 -20
- package/lib/components/PdfViewer.d.ts +49 -0
- package/lib/components/PdfViewer.js +91 -0
- package/lib/components/Picker.d.ts +1 -0
- package/lib/components/Picker.js +4 -4
- package/lib/components/PickerColumn.d.ts +1 -0
- package/lib/components/PickerColumn.js +7 -5
- package/lib/components/PickerContainer.d.ts +1 -2
- package/lib/components/PickerContainer.js +26 -16
- package/lib/components/PopOverContainer.d.ts +1 -0
- package/lib/components/PopOverContainer.js +3 -3
- package/lib/components/PopUp.d.ts +40 -40
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +50 -50
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.d.ts +12 -10
- package/lib/components/Radios.js +4 -3
- 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 +82 -81
- package/lib/components/ResultBox.js +25 -21
- package/lib/components/ResultList.d.ts +42 -40
- package/lib/components/ResultList.js +5 -4
- package/lib/components/ResultTableList.d.ts +80 -80
- package/lib/components/ResultTableList.js +5 -4
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +3 -3
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.d.ts +82 -81
- package/lib/components/SearchBox.js +7 -7
- package/lib/components/Select.d.ts +1366 -1357
- package/lib/components/Select.js +12 -11
- package/lib/components/SelectMobile.js +22 -19
- package/lib/components/Selection.d.ts +82 -80
- package/lib/components/Selection.js +1 -1
- package/lib/components/Signature.d.ts +280 -0
- package/lib/components/Signature.js +275 -0
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.d.ts +60 -60
- package/lib/components/Spinner.js +1 -1
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +12 -12
- package/lib/components/Switch.js +3 -3
- package/lib/components/TableSelection.d.ts +80 -80
- package/lib/components/TableSelection.js +6 -5
- package/lib/components/Tabs.d.ts +83 -81
- package/lib/components/Tabs.js +21 -22
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +16 -14
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +70 -70
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +42 -42
- package/lib/components/Textarea.js +3 -3
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.d.ts +1 -1
- package/lib/components/TimelineItem.js +1 -1
- package/lib/components/Tinymce.js +7 -4
- package/lib/components/TitleBar.d.ts +10 -10
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.d.ts +80 -80
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.d.ts +42 -42
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +192 -190
- package/lib/components/Transfer.js +16 -16
- package/lib/components/TransferDropDown.d.ts +160 -160
- 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 +286 -290
- package/lib/components/Tree.js +31 -29
- package/lib/components/TreeSelection.d.ts +120 -120
- 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.d.ts +9 -0
- package/lib/components/WithRemoteConfig.js +19 -3
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.d.ts +2 -1
- package/lib/components/calendar/Calendar.js +6 -5
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.d.ts +2 -1
- package/lib/components/calendar/DaysView.js +17 -15
- package/lib/components/calendar/MonthsView.d.ts +2 -0
- package/lib/components/calendar/MonthsView.js +8 -6
- package/lib/components/calendar/QuartersView.d.ts +2 -0
- package/lib/components/calendar/QuartersView.js +7 -6
- package/lib/components/calendar/TimeView.d.ts +2 -0
- package/lib/components/calendar/TimeView.js +8 -7
- package/lib/components/calendar/YearsView.d.ts +2 -0
- package/lib/components/calendar/YearsView.js +6 -5
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.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.d.ts +1 -0
- package/lib/components/condition-builder/Value.js +28 -12
- 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/CodeEditor.d.ts +92 -0
- package/lib/components/formula/CodeEditor.js +110 -0
- package/lib/components/formula/Editor.d.ts +64 -69
- package/lib/components/formula/Editor.js +172 -78
- package/lib/components/formula/FuncList.d.ts +1 -1
- package/lib/components/formula/FuncList.js +10 -9
- package/lib/components/formula/Input.d.ts +68 -54
- package/lib/components/formula/Input.js +43 -101
- package/lib/components/formula/Picker.d.ts +74 -60
- package/lib/components/formula/Picker.js +128 -68
- package/lib/components/formula/VariableList.d.ts +1 -1
- package/lib/components/formula/VariableList.js +24 -10
- package/lib/components/formula/plugin.d.ts +28 -7
- package/lib/components/formula/plugin.js +220 -89
- package/lib/components/icons.d.ts +4 -2
- package/lib/components/icons.js +14 -5
- package/lib/components/index.d.ts +5 -3
- package/lib/components/json-schema/Array.js +3 -3
- package/lib/components/json-schema/Item.d.ts +3 -1
- package/lib/components/json-schema/Item.js +39 -8
- package/lib/components/json-schema/Object.d.ts +3 -1
- package/lib/components/json-schema/Object.js +113 -51
- package/lib/components/json-schema/index.d.ts +53 -50
- package/lib/components/json-schema/index.js +18 -5
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.d.ts +2 -1
- package/lib/components/menu/MenuItem.js +3 -3
- package/lib/components/menu/SubMenu.d.ts +2 -1
- package/lib/components/menu/SubMenu.js +5 -5
- package/lib/components/menu/index.d.ts +86 -83
- package/lib/components/menu/index.js +10 -7
- package/lib/components/schema-editor/Array.js +23 -8
- package/lib/components/schema-editor/Common.d.ts +17 -1
- package/lib/components/schema-editor/Common.js +83 -36
- package/lib/components/schema-editor/Item.js +2 -2
- package/lib/components/schema-editor/Object.d.ts +7 -1
- package/lib/components/schema-editor/Object.js +105 -13
- package/lib/components/schema-editor/SchemaVariableList.d.ts +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 +48 -40
- package/lib/components/schema-editor/index.js +4 -4
- package/lib/components/table/Cell.d.ts +2 -0
- package/lib/components/table/Cell.js +4 -4
- package/lib/components/table/ColGroup.js +1 -1
- package/lib/components/table/Head.d.ts +2 -0
- package/lib/components/table/Head.js +12 -9
- package/lib/components/table/HeadCellDropDown.d.ts +2 -0
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.d.ts +82 -80
- package/lib/components/table/HeadCellFilter.js +8 -8
- package/lib/components/table/HeadCellSelect.d.ts +40 -40
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.d.ts +2 -0
- package/lib/components/table/HeadCellSort.js +7 -7
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/Row.d.ts +2 -0
- package/lib/components/table/Row.js +4 -3
- package/lib/components/table/SummaryRow.js +1 -1
- package/lib/components/table/index.d.ts +122 -120
- package/lib/components/table/index.js +7 -5
- package/lib/components/table/util.d.ts +7 -7
- package/lib/components/table/util.js +4 -2
- 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/arrow-double-left.svg.js +1 -1
- package/lib/icons/arrow-double-right.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/fullscreen.svg.js +28 -0
- 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/sub-plus.svg.js +27 -0
- package/lib/icons/success.svg.js +1 -1
- package/lib/icons/transparent.svg.js +1 -1
- package/lib/icons/trash.svg.js +1 -1
- package/lib/icons/tree-down.svg.js +1 -1
- package/lib/icons/undo-normal.svg.js +32 -0
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/unfullscreen.svg.js +28 -0
- 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 +6 -1
- package/lib/locale/de-DE.js +27 -11
- package/lib/locale/en-US.js +18 -2
- package/lib/locale/zh-CN.js +19 -3
- package/lib/node_modules/pdfjs-dist/build/pdf.worker.min.js +41 -0
- package/lib/node_modules/smooth-signature/es/index.js +510 -0
- package/lib/{scss → packages/amis-ui/scss}/helper.scss.js +1 -1
- package/lib/{scss → packages/amis-ui/scss}/themes/ang.scss.js +1 -1
- package/lib/{scss → packages/amis-ui/scss}/themes/antd.scss.js +1 -1
- package/lib/{scss → packages/amis-ui/scss}/themes/cxd.scss.js +1 -1
- package/lib/{scss → packages/amis-ui/scss}/themes/dark.scss.js +1 -1
- package/lib/{scss → packages/amis-ui/scss}/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +1032 -38
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +1032 -38
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +1032 -38
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +1032 -38
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +1032 -38
- package/package.json +4 -3
- package/scss/_components.scss +7 -0
- package/scss/_mixins.scss +1 -0
- package/scss/_thirds.scss +3 -0
- package/scss/components/_collapse.scss +1 -1
- package/scss/components/_condition-builder.scss +18 -0
- package/scss/components/_crud2.scss +4 -0
- package/scss/components/_formula.scss +148 -26
- package/scss/components/_image-gallery.scss +7 -1
- package/scss/components/_input-box.scss +6 -0
- package/scss/components/_json-schema-editor.scss +24 -3
- package/scss/components/_json-schema.scss +5 -0
- package/scss/components/_menu.scss +3 -0
- package/scss/components/_pdf_viewer.scss +47 -0
- package/scss/components/_signature.scss +97 -0
- package/scss/components/_table.scss +6 -1
- package/scss/components/_tabs.scss +10 -4
- package/scss/components/form/_combo.scss +1 -0
- package/scss/components/form/_form.scss +10 -0
- package/scss/components/form/_icon-select.scss +3 -0
- package/scss/components/form/_picker.scss +2 -1
- package/scss/components/form/_tag.scss +2 -1
- package/scss/components/form/_text.scss +4 -4
- package/scss/themes/_common.scss +2 -0
|
@@ -1,27 +1,41 @@
|
|
|
1
1
|
/// <reference types="hoist-non-react-statics" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ThemeProps, LocaleProps } from 'amis-core';
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
export interface FormulaInputProps extends Pick<FormulaPickerProps, 'className' | 'disabled' | 'evalMode' | '
|
|
4
|
+
import type { FormulaPickerInputSettings, FormulaPickerProps } from './Picker';
|
|
5
|
+
import { FuncGroup, VariableItem } from './CodeEditor';
|
|
6
|
+
export interface FormulaInputProps extends Pick<FormulaPickerProps, 'className' | 'disabled' | 'evalMode' | 'placeholder' | 'clearable' | 'borderMode' | 'variables' | 'inputSettings'>, ThemeProps, LocaleProps {
|
|
7
7
|
/**
|
|
8
8
|
* 输入值
|
|
9
9
|
*/
|
|
10
10
|
value?: string;
|
|
11
|
+
/**
|
|
12
|
+
* 就是 evalMode 的反义词
|
|
13
|
+
* 混合模式,意味着这个输入框既可以输入不同文本
|
|
14
|
+
* 也可以输入公式。
|
|
15
|
+
* 当输入公式时,值格式为 ${公式内容}
|
|
16
|
+
* 其他内容当字符串。
|
|
17
|
+
*/
|
|
11
18
|
mixedMode?: boolean;
|
|
19
|
+
autoFoucs?: boolean;
|
|
12
20
|
variables?: VariableItem[];
|
|
21
|
+
functions?: Array<FuncGroup>;
|
|
13
22
|
popOverContainer?: any;
|
|
14
23
|
/**
|
|
15
24
|
* Change事件回调
|
|
16
25
|
*/
|
|
17
26
|
onChange?: (value: string | any[]) => void;
|
|
18
27
|
/**
|
|
19
|
-
*
|
|
28
|
+
* 其他类型渲染器
|
|
20
29
|
*/
|
|
21
|
-
|
|
30
|
+
customInputRender?: (props: {
|
|
31
|
+
value: any;
|
|
32
|
+
onChange: (value: any) => void;
|
|
33
|
+
className?: string;
|
|
34
|
+
inputSettings: FormulaPickerInputSettings;
|
|
35
|
+
}) => JSX.Element;
|
|
22
36
|
}
|
|
23
37
|
declare const _default: {
|
|
24
|
-
new (props: Omit<Omit<FormulaInputProps
|
|
38
|
+
new (props: Omit<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
25
39
|
locale?: string | undefined;
|
|
26
40
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
27
41
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps): {
|
|
@@ -30,12 +44,12 @@ declare const _default: {
|
|
|
30
44
|
getWrappedInstance(): any;
|
|
31
45
|
render(): React.JSX.Element;
|
|
32
46
|
context: unknown;
|
|
33
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Omit<FormulaInputProps
|
|
47
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
34
48
|
locale?: string | undefined;
|
|
35
49
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
36
50
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
37
51
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
38
|
-
readonly props: Readonly<Omit<Omit<FormulaInputProps
|
|
52
|
+
readonly props: Readonly<Omit<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
39
53
|
locale?: string | undefined;
|
|
40
54
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
41
55
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>;
|
|
@@ -44,35 +58,35 @@ declare const _default: {
|
|
|
44
58
|
[key: string]: React.ReactInstance;
|
|
45
59
|
};
|
|
46
60
|
componentDidMount?(): void;
|
|
47
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Omit<FormulaInputProps
|
|
61
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
48
62
|
locale?: string | undefined;
|
|
49
63
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
50
64
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
51
65
|
componentWillUnmount?(): void;
|
|
52
66
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
53
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Omit<FormulaInputProps
|
|
67
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
54
68
|
locale?: string | undefined;
|
|
55
69
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
56
70
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
|
|
57
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Omit<FormulaInputProps
|
|
71
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
58
72
|
locale?: string | undefined;
|
|
59
73
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
60
74
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
61
75
|
componentWillMount?(): void;
|
|
62
76
|
UNSAFE_componentWillMount?(): void;
|
|
63
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Omit<FormulaInputProps
|
|
77
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
64
78
|
locale?: string | undefined;
|
|
65
79
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
66
80
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
67
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Omit<FormulaInputProps
|
|
81
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
68
82
|
locale?: string | undefined;
|
|
69
83
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
70
84
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
71
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Omit<FormulaInputProps
|
|
85
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
72
86
|
locale?: string | undefined;
|
|
73
87
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
74
88
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
75
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Omit<FormulaInputProps
|
|
89
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
76
90
|
locale?: string | undefined;
|
|
77
91
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
78
92
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -80,7 +94,7 @@ declare const _default: {
|
|
|
80
94
|
displayName: string;
|
|
81
95
|
contextType: React.Context<string>;
|
|
82
96
|
ComposedComponent: React.ComponentType<{
|
|
83
|
-
new (props: Omit<FormulaInputProps
|
|
97
|
+
new (props: Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
84
98
|
locale?: string | undefined;
|
|
85
99
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
86
100
|
}): {
|
|
@@ -89,12 +103,12 @@ declare const _default: {
|
|
|
89
103
|
getWrappedInstance(): any;
|
|
90
104
|
render(): React.JSX.Element;
|
|
91
105
|
context: unknown;
|
|
92
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<FormulaInputProps
|
|
106
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
93
107
|
locale?: string | undefined;
|
|
94
108
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
95
109
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
96
110
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
97
|
-
readonly props: Readonly<Omit<FormulaInputProps
|
|
111
|
+
readonly props: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
98
112
|
locale?: string | undefined;
|
|
99
113
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
100
114
|
}>;
|
|
@@ -103,47 +117,47 @@ declare const _default: {
|
|
|
103
117
|
[key: string]: React.ReactInstance;
|
|
104
118
|
};
|
|
105
119
|
componentDidMount?(): void;
|
|
106
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<FormulaInputProps
|
|
120
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
107
121
|
locale?: string | undefined;
|
|
108
122
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
109
123
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
110
124
|
componentWillUnmount?(): void;
|
|
111
125
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
112
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<FormulaInputProps
|
|
126
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
113
127
|
locale?: string | undefined;
|
|
114
128
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
115
129
|
}>, prevState: Readonly<{}>): any;
|
|
116
|
-
componentDidUpdate?(prevProps: Readonly<Omit<FormulaInputProps
|
|
130
|
+
componentDidUpdate?(prevProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
117
131
|
locale?: string | undefined;
|
|
118
132
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
119
133
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
120
134
|
componentWillMount?(): void;
|
|
121
135
|
UNSAFE_componentWillMount?(): void;
|
|
122
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<FormulaInputProps
|
|
136
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
123
137
|
locale?: string | undefined;
|
|
124
138
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
125
139
|
}>, nextContext: any): void;
|
|
126
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<FormulaInputProps
|
|
140
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
127
141
|
locale?: string | undefined;
|
|
128
142
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
129
143
|
}>, nextContext: any): void;
|
|
130
|
-
componentWillUpdate?(nextProps: Readonly<Omit<FormulaInputProps
|
|
144
|
+
componentWillUpdate?(nextProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
131
145
|
locale?: string | undefined;
|
|
132
146
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
133
147
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
134
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<FormulaInputProps
|
|
148
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
135
149
|
locale?: string | undefined;
|
|
136
150
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
137
151
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
138
152
|
};
|
|
139
153
|
displayName: string;
|
|
140
154
|
contextType: React.Context<string>;
|
|
141
|
-
ComposedComponent: React.ComponentType<React.
|
|
142
|
-
} & import("hoist-non-react-statics").NonReactStatics<React.
|
|
143
|
-
ComposedComponent: React.
|
|
155
|
+
ComposedComponent: React.ComponentType<React.ForwardRefExoticComponent<FormulaInputProps & React.RefAttributes<unknown>>>;
|
|
156
|
+
} & import("hoist-non-react-statics").NonReactStatics<React.ForwardRefExoticComponent<FormulaInputProps & React.RefAttributes<unknown>>, {}> & {
|
|
157
|
+
ComposedComponent: React.ForwardRefExoticComponent<FormulaInputProps & React.RefAttributes<unknown>>;
|
|
144
158
|
}>;
|
|
145
159
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
146
|
-
new (props: Omit<FormulaInputProps
|
|
160
|
+
new (props: Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
147
161
|
locale?: string | undefined;
|
|
148
162
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
149
163
|
}): {
|
|
@@ -152,12 +166,12 @@ declare const _default: {
|
|
|
152
166
|
getWrappedInstance(): any;
|
|
153
167
|
render(): React.JSX.Element;
|
|
154
168
|
context: unknown;
|
|
155
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<FormulaInputProps
|
|
169
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
156
170
|
locale?: string | undefined;
|
|
157
171
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
158
172
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
159
173
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
160
|
-
readonly props: Readonly<Omit<FormulaInputProps
|
|
174
|
+
readonly props: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
161
175
|
locale?: string | undefined;
|
|
162
176
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
163
177
|
}>;
|
|
@@ -166,47 +180,47 @@ declare const _default: {
|
|
|
166
180
|
[key: string]: React.ReactInstance;
|
|
167
181
|
};
|
|
168
182
|
componentDidMount?(): void;
|
|
169
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<FormulaInputProps
|
|
183
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
170
184
|
locale?: string | undefined;
|
|
171
185
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
172
186
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
173
187
|
componentWillUnmount?(): void;
|
|
174
188
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
175
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<FormulaInputProps
|
|
189
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
176
190
|
locale?: string | undefined;
|
|
177
191
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
178
192
|
}>, prevState: Readonly<{}>): any;
|
|
179
|
-
componentDidUpdate?(prevProps: Readonly<Omit<FormulaInputProps
|
|
193
|
+
componentDidUpdate?(prevProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
180
194
|
locale?: string | undefined;
|
|
181
195
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
182
196
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
183
197
|
componentWillMount?(): void;
|
|
184
198
|
UNSAFE_componentWillMount?(): void;
|
|
185
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<FormulaInputProps
|
|
199
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
186
200
|
locale?: string | undefined;
|
|
187
201
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
188
202
|
}>, nextContext: any): void;
|
|
189
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<FormulaInputProps
|
|
203
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
190
204
|
locale?: string | undefined;
|
|
191
205
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
192
206
|
}>, nextContext: any): void;
|
|
193
|
-
componentWillUpdate?(nextProps: Readonly<Omit<FormulaInputProps
|
|
207
|
+
componentWillUpdate?(nextProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
194
208
|
locale?: string | undefined;
|
|
195
209
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
196
210
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
197
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<FormulaInputProps
|
|
211
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
198
212
|
locale?: string | undefined;
|
|
199
213
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
200
214
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
201
215
|
};
|
|
202
216
|
displayName: string;
|
|
203
217
|
contextType: React.Context<string>;
|
|
204
|
-
ComposedComponent: React.ComponentType<React.
|
|
205
|
-
} & import("hoist-non-react-statics").NonReactStatics<React.
|
|
206
|
-
ComposedComponent: React.
|
|
218
|
+
ComposedComponent: React.ComponentType<React.ForwardRefExoticComponent<FormulaInputProps & React.RefAttributes<unknown>>>;
|
|
219
|
+
} & import("hoist-non-react-statics").NonReactStatics<React.ForwardRefExoticComponent<FormulaInputProps & React.RefAttributes<unknown>>, {}> & {
|
|
220
|
+
ComposedComponent: React.ForwardRefExoticComponent<FormulaInputProps & React.RefAttributes<unknown>>;
|
|
207
221
|
}, {}> & {
|
|
208
222
|
ComposedComponent: {
|
|
209
|
-
new (props: Omit<FormulaInputProps
|
|
223
|
+
new (props: Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
210
224
|
locale?: string | undefined;
|
|
211
225
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
212
226
|
}): {
|
|
@@ -215,12 +229,12 @@ declare const _default: {
|
|
|
215
229
|
getWrappedInstance(): any;
|
|
216
230
|
render(): React.JSX.Element;
|
|
217
231
|
context: unknown;
|
|
218
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<FormulaInputProps
|
|
232
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
219
233
|
locale?: string | undefined;
|
|
220
234
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
221
235
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
222
236
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
223
|
-
readonly props: Readonly<Omit<FormulaInputProps
|
|
237
|
+
readonly props: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
224
238
|
locale?: string | undefined;
|
|
225
239
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
226
240
|
}>;
|
|
@@ -229,44 +243,44 @@ declare const _default: {
|
|
|
229
243
|
[key: string]: React.ReactInstance;
|
|
230
244
|
};
|
|
231
245
|
componentDidMount?(): void;
|
|
232
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<FormulaInputProps
|
|
246
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
233
247
|
locale?: string | undefined;
|
|
234
248
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
235
249
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
236
250
|
componentWillUnmount?(): void;
|
|
237
251
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
238
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<FormulaInputProps
|
|
252
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
239
253
|
locale?: string | undefined;
|
|
240
254
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
241
255
|
}>, prevState: Readonly<{}>): any;
|
|
242
|
-
componentDidUpdate?(prevProps: Readonly<Omit<FormulaInputProps
|
|
256
|
+
componentDidUpdate?(prevProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
243
257
|
locale?: string | undefined;
|
|
244
258
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
245
259
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
246
260
|
componentWillMount?(): void;
|
|
247
261
|
UNSAFE_componentWillMount?(): void;
|
|
248
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<FormulaInputProps
|
|
262
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
249
263
|
locale?: string | undefined;
|
|
250
264
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
251
265
|
}>, nextContext: any): void;
|
|
252
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<FormulaInputProps
|
|
266
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
253
267
|
locale?: string | undefined;
|
|
254
268
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
255
269
|
}>, nextContext: any): void;
|
|
256
|
-
componentWillUpdate?(nextProps: Readonly<Omit<FormulaInputProps
|
|
270
|
+
componentWillUpdate?(nextProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
257
271
|
locale?: string | undefined;
|
|
258
272
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
259
273
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
260
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<FormulaInputProps
|
|
274
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<FormulaInputProps & React.RefAttributes<unknown>, keyof LocaleProps> & {
|
|
261
275
|
locale?: string | undefined;
|
|
262
276
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
263
277
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
264
278
|
};
|
|
265
279
|
displayName: string;
|
|
266
280
|
contextType: React.Context<string>;
|
|
267
|
-
ComposedComponent: React.ComponentType<React.
|
|
268
|
-
} & import("hoist-non-react-statics").NonReactStatics<React.
|
|
269
|
-
ComposedComponent: React.
|
|
281
|
+
ComposedComponent: React.ComponentType<React.ForwardRefExoticComponent<FormulaInputProps & React.RefAttributes<unknown>>>;
|
|
282
|
+
} & import("hoist-non-react-statics").NonReactStatics<React.ForwardRefExoticComponent<FormulaInputProps & React.RefAttributes<unknown>>, {}> & {
|
|
283
|
+
ComposedComponent: React.ForwardRefExoticComponent<FormulaInputProps & React.RefAttributes<unknown>>;
|
|
270
284
|
};
|
|
271
285
|
};
|
|
272
286
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v6.
|
|
2
|
+
* amis-ui v6.4.0
|
|
3
3
|
* Copyright 2018-2024 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -9,34 +9,39 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
|
|
10
10
|
var tslib = require('tslib');
|
|
11
11
|
var React = require('react');
|
|
12
|
-
var moment = require('moment');
|
|
13
12
|
var pick = require('lodash/pick');
|
|
14
13
|
var amisCore = require('amis-core');
|
|
15
|
-
var Editor = require('./Editor.js');
|
|
16
|
-
var ResultBox = require('../ResultBox.js');
|
|
17
14
|
var Select = require('../Select.js');
|
|
18
15
|
var NumberInput = require('../NumberInput.js');
|
|
19
16
|
var DatePicker = require('../DatePicker.js');
|
|
20
17
|
var Tag = require('../Tag.js');
|
|
18
|
+
var CodeEditor = require('./CodeEditor.js');
|
|
19
|
+
var InputBox = require('../InputBox.js');
|
|
21
20
|
|
|
22
21
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
23
22
|
|
|
24
23
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
25
|
-
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
|
|
26
24
|
var pick__default = /*#__PURE__*/_interopDefaultLegacy(pick);
|
|
27
25
|
|
|
28
26
|
var __react_jsx__ = require('react');
|
|
29
27
|
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
|
|
30
28
|
(__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
31
|
-
var FormulaInput = function (props) {
|
|
32
|
-
var _a, _b, _c
|
|
33
|
-
var __ = props.translate, className = props.className, cx = props.classnames,
|
|
29
|
+
var FormulaInput = function (props, ref) {
|
|
30
|
+
var _a, _b, _c;
|
|
31
|
+
var __ = props.translate, className = props.className, cx = props.classnames, placeholder = props.placeholder, borderMode = props.borderMode, evalMode = props.evalMode; props.mixedMode; var value = props.value, variables = props.variables, functions = props.functions, _d = props.inputSettings, inputSettings = _d === void 0 ? { type: 'text' } : _d, popOverContainer = props.popOverContainer, onChange = props.onChange, customInputRender = props.customInputRender;
|
|
34
32
|
var schemaType = inputSettings.type;
|
|
35
33
|
/** 自上层共享的属性 */
|
|
36
|
-
var sharedProps = pick__default["default"](props, ['disabled', 'clearable']);
|
|
34
|
+
var sharedProps = pick__default["default"](props, ['disabled', 'clearable', 'data']);
|
|
37
35
|
var pipInValue = React.useCallback(function (value) {
|
|
36
|
+
/** 数据来源可能是从 query中下发的(CRUD查询表头),导致数字或者布尔值被转为 string 格式,这里预处理一下 */
|
|
37
|
+
if (schemaType === 'number') {
|
|
38
|
+
value = isNaN(+value) ? value : +value;
|
|
39
|
+
}
|
|
40
|
+
else if (schemaType === 'boolean') {
|
|
41
|
+
value = value === 'true' ? true : value === 'false' ? false : value;
|
|
42
|
+
}
|
|
38
43
|
return value;
|
|
39
|
-
}, [
|
|
44
|
+
}, [schemaType]);
|
|
40
45
|
var pipOutValue = React.useCallback(function (origin) {
|
|
41
46
|
var result = origin;
|
|
42
47
|
if (origin === undefined) {
|
|
@@ -47,7 +52,7 @@ var FormulaInput = function (props) {
|
|
|
47
52
|
result = origin.value;
|
|
48
53
|
}
|
|
49
54
|
else if (schemaType === 'select') {
|
|
50
|
-
var
|
|
55
|
+
var _a = inputSettings.joinValues, joinValues = _a === void 0 ? true : _a, extractValue = inputSettings.extractValue, delimiter = inputSettings.delimiter, multiple = inputSettings.multiple, _b = inputSettings.valueField, valueField_1 = _b === void 0 ? 'value' : _b;
|
|
51
56
|
if (joinValues) {
|
|
52
57
|
if (multiple) {
|
|
53
58
|
result = Array.isArray(origin)
|
|
@@ -74,118 +79,55 @@ var FormulaInput = function (props) {
|
|
|
74
79
|
}
|
|
75
80
|
}
|
|
76
81
|
onChange === null || onChange === void 0 ? void 0 : onChange(result);
|
|
77
|
-
}, [
|
|
82
|
+
}, [schemaType, onChange, inputSettings]);
|
|
78
83
|
var cmptValue = pipInValue(value !== null && value !== void 0 ? value : inputSettings.defaultValue);
|
|
79
|
-
|
|
80
|
-
if (schemaType === 'number') {
|
|
81
|
-
cmptValue = isNaN(+cmptValue) ? cmptValue : +cmptValue;
|
|
82
|
-
}
|
|
83
|
-
else if (schemaType === 'boolean') {
|
|
84
|
-
cmptValue =
|
|
85
|
-
cmptValue === 'true' ? true : cmptValue === 'false' ? false : cmptValue;
|
|
86
|
-
}
|
|
87
|
-
var targetVariable = variables && cmptValue != null && typeof cmptValue === 'string'
|
|
88
|
-
? amisCore.findTree(variables, function (item) {
|
|
89
|
-
return mixedMode
|
|
90
|
-
? cmptValue.replace(/^\$\{/, '').replace(/\}$/, '') === (item === null || item === void 0 ? void 0 : item.value)
|
|
91
|
-
: cmptValue === (item === null || item === void 0 ? void 0 : item.value);
|
|
92
|
-
})
|
|
93
|
-
: null;
|
|
94
|
-
var useVariable = !!(amisCore.isExpression(cmptValue) || targetVariable);
|
|
95
|
-
/** 判断value是否为变量,如果是变量,使用ResultBox渲染 */
|
|
96
|
-
if (!useVariable) {
|
|
97
|
-
if (schemaType === 'number') {
|
|
98
|
-
useVariable = cmptValue != null && typeof cmptValue !== 'number';
|
|
99
|
-
}
|
|
100
|
-
else if (['date', 'time', 'datetime'].includes(schemaType)) {
|
|
101
|
-
useVariable = !moment__default["default"](cmptValue).isValid();
|
|
102
|
-
}
|
|
103
|
-
else if (schemaType === 'select') {
|
|
104
|
-
var options = inputSettings.options, joinValues = inputSettings.joinValues, extractValue = inputSettings.extractValue, delimiter = inputSettings.delimiter, multiple = inputSettings.multiple, _f = inputSettings.valueField, valueField_2 = _f === void 0 ? 'value' : _f;
|
|
105
|
-
var selctedValue_1 = [];
|
|
106
|
-
if (multiple) {
|
|
107
|
-
if (joinValues) {
|
|
108
|
-
selctedValue_1 =
|
|
109
|
-
typeof cmptValue === 'string' ? cmptValue.split(delimiter) : [];
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
selctedValue_1 = Array.isArray(cmptValue)
|
|
113
|
-
? extractValue
|
|
114
|
-
? cmptValue
|
|
115
|
-
: cmptValue.map(function (i) { return i === null || i === void 0 ? void 0 : i[valueField_2]; })
|
|
116
|
-
: [];
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
if (joinValues) {
|
|
121
|
-
selctedValue_1 = typeof cmptValue === 'string' ? [cmptValue] : [];
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
selctedValue_1 = amisCore.isObject(cmptValue) ? [cmptValue === null || cmptValue === void 0 ? void 0 : cmptValue[valueField_2]] : [];
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
/** 选项类型清空后是空字符串, */
|
|
128
|
-
useVariable =
|
|
129
|
-
cmptValue &&
|
|
130
|
-
!(options !== null && options !== void 0 ? options : []).some(function (item) {
|
|
131
|
-
return selctedValue_1.includes(item === null || item === void 0 ? void 0 : item.value);
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
else if (schemaType === 'boolean') {
|
|
135
|
-
useVariable = cmptValue != null && typeof cmptValue !== 'boolean';
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
if (useVariable) {
|
|
139
|
-
var varName = typeof cmptValue === 'string' && cmptValue && mixedMode
|
|
140
|
-
? cmptValue.replace(/^\$\{/, '').replace(/\}$/, '')
|
|
141
|
-
: cmptValue;
|
|
142
|
-
var resultValue = (_a = targetVariable === null || targetVariable === void 0 ? void 0 : targetVariable.value) !== null && _a !== void 0 ? _a : varName;
|
|
143
|
-
return (_J$X_(ResultBox["default"], { className: cx("FormulaPicker-input-variable"), allowInput: allowInput,
|
|
144
|
-
// value={resultValue}
|
|
145
|
-
result: resultValue == null
|
|
146
|
-
? void 0
|
|
147
|
-
: Editor.FormulaEditor.highlightValue(resultValue, variables, evalMode), itemRender: function (item) {
|
|
148
|
-
return (_J$X_("div", { className: cx('FormulaPicker-ResultBox'), dangerouslySetInnerHTML: { __html: item.html } }));
|
|
149
|
-
}, onResultChange: amisCore.noop, onChange: pipOutValue, onClear: function () { return pipOutValue(undefined); }, clearable: true }));
|
|
150
|
-
}
|
|
151
|
-
if (schemaType === 'number') {
|
|
84
|
+
var isExpr = amisCore.isExpression(cmptValue);
|
|
85
|
+
if (!isExpr && schemaType === 'number') {
|
|
152
86
|
return (_J$X_(NumberInput["default"], tslib.__assign({}, sharedProps, { className: cx(className, 'FormulaPicker-input-number'), borderMode: "none", placeholder: __(placeholder !== null && placeholder !== void 0 ? placeholder : 'NumberInput.placeholder'), step: inputSettings.step, min: inputSettings.minimum, max: inputSettings.maximum, precision: inputSettings.precision, value: cmptValue, onChange: pipOutValue })));
|
|
153
87
|
}
|
|
154
|
-
else if (schemaType === 'date') {
|
|
155
|
-
|
|
156
|
-
return (_J$X_(DatePicker["default"], tslib.__assign({}, sharedProps, { className: cx(className, 'FormulaPicker-input-date'), borderMode: "none", closeOnSelect: true, placeholder: __(placeholder !== null && placeholder !== void 0 ? placeholder : 'Date.placeholder'), format: inputSettings.format || 'YYYY-MM-DD', inputFormat: inputSettings.inputFormat || 'YYYY-MM-DD', timeFormat: "", popOverContainer: popOverContainer, value: cmptValue_1, onChange: pipOutValue })));
|
|
88
|
+
else if (!isExpr && schemaType === 'date') {
|
|
89
|
+
return (_J$X_(DatePicker["default"], tslib.__assign({}, sharedProps, { className: cx(className, 'FormulaPicker-input-date'), borderMode: "none", closeOnSelect: true, placeholder: __(placeholder !== null && placeholder !== void 0 ? placeholder : 'Date.placeholder'), format: inputSettings.format || 'YYYY-MM-DD', inputFormat: inputSettings.inputFormat || 'YYYY-MM-DD', timeFormat: "", popOverContainer: popOverContainer, value: cmptValue, onChange: pipOutValue })));
|
|
157
90
|
}
|
|
158
|
-
else if (schemaType === 'time') {
|
|
159
|
-
return (_J$X_(DatePicker["default"], tslib.__assign({}, sharedProps, { className: cx(className, 'FormulaPicker-input-time'), viewMode: "time", borderMode: "none", closeOnSelect: true, placeholder: __(placeholder !== null && placeholder !== void 0 ? placeholder : 'Time.placeholder'), format: inputSettings.format || 'HH:mm', inputFormat: inputSettings.inputFormat || 'HH:mm', dateFormat: "", timeFormat: inputSettings.format || 'HH:mm', popOverContainer: popOverContainer, value:
|
|
91
|
+
else if (!isExpr && schemaType === 'time') {
|
|
92
|
+
return (_J$X_(DatePicker["default"], tslib.__assign({}, sharedProps, { className: cx(className, 'FormulaPicker-input-time'), viewMode: "time", borderMode: "none", closeOnSelect: true, placeholder: __(placeholder !== null && placeholder !== void 0 ? placeholder : 'Time.placeholder'), format: inputSettings.format || 'HH:mm', inputFormat: inputSettings.inputFormat || 'HH:mm', dateFormat: "", timeFormat: inputSettings.format || 'HH:mm', popOverContainer: popOverContainer, value: cmptValue, onChange: pipOutValue })));
|
|
160
93
|
}
|
|
161
|
-
else if (schemaType === 'datetime') {
|
|
162
|
-
return (_J$X_(DatePicker["default"], tslib.__assign({}, sharedProps, { className: cx(className, 'FormulaPicker-input-datetime'), borderMode: "none", closeOnSelect: true, placeholder: __(placeholder !== null && placeholder !== void 0 ? placeholder : 'Time.placeholder'), format: inputSettings.format || '', inputFormat: inputSettings.inputFormat || 'YYYY-MM-DD HH:mm', timeFormat: inputSettings.timeFormat || 'HH:mm', popOverContainer: popOverContainer, value:
|
|
94
|
+
else if (!isExpr && schemaType === 'datetime') {
|
|
95
|
+
return (_J$X_(DatePicker["default"], tslib.__assign({}, sharedProps, { className: cx(className, 'FormulaPicker-input-datetime'), borderMode: "none", closeOnSelect: true, placeholder: __(placeholder !== null && placeholder !== void 0 ? placeholder : 'Time.placeholder'), format: inputSettings.format || '', inputFormat: inputSettings.inputFormat || 'YYYY-MM-DD HH:mm', timeFormat: inputSettings.timeFormat || 'HH:mm', popOverContainer: popOverContainer, value: cmptValue, onChange: pipOutValue })));
|
|
163
96
|
}
|
|
164
|
-
else if (schemaType === 'select' || schemaType === 'boolean') {
|
|
165
|
-
return (_J$X_(Select
|
|
97
|
+
else if (!isExpr && (schemaType === 'select' || schemaType === 'boolean')) {
|
|
98
|
+
return (_J$X_(Select.SelectWithRemoteOptions, tslib.__assign({}, sharedProps, { className: cx(className, "FormulaPicker-input-".concat(schemaType)), borderMode: "none", multiple: schemaType === 'boolean' ? false : inputSettings.multiple, options: schemaType === 'boolean'
|
|
166
99
|
? [
|
|
167
100
|
{
|
|
168
|
-
label: __((
|
|
101
|
+
label: __((_a = inputSettings === null || inputSettings === void 0 ? void 0 : inputSettings.trueLabel) !== null && _a !== void 0 ? _a : 'FormulaInput.True'),
|
|
169
102
|
value: true
|
|
170
103
|
},
|
|
171
104
|
{
|
|
172
|
-
label: __((
|
|
105
|
+
label: __((_b = inputSettings === null || inputSettings === void 0 ? void 0 : inputSettings.falseLabel) !== null && _b !== void 0 ? _b : 'FormulaInput.False'),
|
|
173
106
|
value: false
|
|
174
107
|
}
|
|
175
108
|
]
|
|
176
|
-
: (
|
|
109
|
+
: (_c = inputSettings.options) !== null && _c !== void 0 ? _c : [], source: inputSettings.source, value: pipInValue(value), renderValueLabel: function (option) {
|
|
177
110
|
var _a, _b;
|
|
178
111
|
var label = (_b = (_a = option.label) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : '';
|
|
179
112
|
return schemaType === 'boolean' || !inputSettings.multiple ? (_J$X_(Tag["default"], { label: label, className: cx('rounded') })) : (_J$X_(React__default["default"].Fragment, null, label));
|
|
180
113
|
}, onChange: pipOutValue })));
|
|
181
114
|
}
|
|
115
|
+
else if (!isExpr && schemaType === 'custom' && customInputRender) {
|
|
116
|
+
return customInputRender({
|
|
117
|
+
value: cmptValue,
|
|
118
|
+
onChange: pipOutValue,
|
|
119
|
+
inputSettings: inputSettings,
|
|
120
|
+
className: "FormulaPicker-input-custom"
|
|
121
|
+
});
|
|
122
|
+
}
|
|
182
123
|
else {
|
|
183
|
-
return (_J$X_(
|
|
184
|
-
|
|
185
|
-
:
|
|
124
|
+
return (_J$X_(InputBox["default"], { className: cx('FormulaPicker-input'), inputRender: function (_a) {
|
|
125
|
+
var value = _a.value, onChange = _a.onChange, onFocus = _a.onFocus, onBlur = _a.onBlur, placeholder = _a.placeholder;
|
|
126
|
+
return (_J$X_(CodeEditor["default"], { singleLine: true, value: value, onChange: onChange, onFocus: onFocus, onBlur: onBlur, functions: functions, variables: variables, evalMode: evalMode, placeholder: placeholder }));
|
|
127
|
+
}, borderMode: borderMode, value: cmptValue, onChange: pipOutValue, placeholder: __(placeholder !== null && placeholder !== void 0 ? placeholder : 'placeholder.enter') }));
|
|
186
128
|
}
|
|
187
129
|
};
|
|
188
|
-
var FormulaInput$1 = amisCore.themeable(amisCore.localeable(amisCore.uncontrollable(FormulaInput, {
|
|
130
|
+
var FormulaInput$1 = amisCore.themeable(amisCore.localeable(amisCore.uncontrollable(React__default["default"].forwardRef(FormulaInput), {
|
|
189
131
|
value: 'onChange'
|
|
190
132
|
})));
|
|
191
133
|
|