amis-ui 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.js +2 -2
- package/esm/components/AnchorNav.d.ts +9 -2
- package/esm/components/AnchorNav.js +25 -6
- 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.d.ts +1 -1
- package/esm/components/Badge.js +2 -4
- package/esm/components/BaiduMapPicker.js +3 -3
- package/esm/components/BarCode.js +1 -1
- package/esm/components/BarCode2.js +1 -1
- package/esm/components/Breadcrumb.js +2 -2
- 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/CityDB2.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/ColorPicker2.js +1 -1
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +43 -40
- package/esm/components/DatePicker.js +11 -4
- package/esm/components/DateRangePicker.d.ts +135 -82
- package/esm/components/DateRangePicker.js +115 -57
- package/esm/components/Drawer.d.ts +10 -10
- package/esm/components/Drawer.js +1 -1
- package/esm/components/Editor.d.ts +40 -40
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.js +1 -1
- 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.d.ts +70 -40
- package/esm/components/ImageGallery.js +97 -15
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- 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.js +1 -1
- package/esm/components/LocationPicker.js +1 -1
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Markdown2.js +1 -1
- package/esm/components/Modal.d.ts +42 -40
- package/esm/components/Modal.js +3 -3
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +41 -40
- package/esm/components/NumberInput.js +1 -1
- package/esm/components/Pagination.d.ts +49 -66
- package/esm/components/Pagination.js +3 -3
- 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 +8 -4
- 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 +7 -3
- 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/RichText2.js +1 -1
- package/esm/components/SearchBox.d.ts +127 -42
- package/esm/components/SearchBox.js +183 -20
- package/esm/components/Select.d.ts +389 -194
- package/esm/components/Select.js +17 -22
- package/esm/components/Selection.js +1 -1
- package/esm/components/SparkLine.d.ts +40 -40
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.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 -3
- package/esm/components/TabsTransfer.js +1 -1
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.d.ts +12 -10
- package/esm/components/Tag.js +16 -5
- package/esm/components/Textarea.js +4 -2
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +3 -3
- package/esm/components/Tinymce.d.ts +1 -3
- package/esm/components/Tinymce.js +1 -1
- package/esm/components/Tinymce2.js +29 -12
- 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 +9 -2
- package/esm/components/TransferDropDown.js +2 -3
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.js +34 -33
- 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 +4 -2
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.js +14 -7
- 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.d.ts +1 -0
- package/esm/components/formula/plugin.js +11 -4
- package/esm/components/icons.d.ts +2 -1
- package/esm/components/icons.js +20 -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/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-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 +2 -2
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +2 -2
- package/esm/icons/alert-warning.svg.js +2 -2
- 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 +36 -0
- 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 +2 -2
- package/esm/icons/down.svg.js +31 -0
- 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 -2
- 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 +7 -4
- 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 +24 -0
- 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 +7 -4
- package/esm/icons/right-double-arrow.svg.js +24 -0
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +24 -0
- package/esm/icons/rotate-right.svg.js +24 -0
- package/esm/icons/scale-origin.svg.js +26 -0
- 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 +2 -2
- 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 +24 -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.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 +2 -1
- package/esm/locale/de-DE.js +7 -1
- package/esm/locale/en-US.js +7 -1
- package/esm/locale/zh-CN.js +9 -3
- 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.js +1 -1
- package/lib/components/Alert2.d.ts +10 -10
- package/lib/components/Alert2.js +2 -2
- package/lib/components/AnchorNav.d.ts +19 -12
- package/lib/components/AnchorNav.js +25 -6
- 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.d.ts +1 -1
- package/lib/components/Badge.js +2 -4
- package/lib/components/BaiduMapPicker.js +3 -3
- package/lib/components/BarCode.js +1 -1
- package/lib/components/BarCode2.js +1 -1
- package/lib/components/Breadcrumb.js +2 -2
- 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/CityDB2.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.js +1 -1
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/ColorPicker2.js +1 -1
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +43 -40
- package/lib/components/DatePicker.js +11 -4
- package/lib/components/DateRangePicker.d.ts +135 -82
- package/lib/components/DateRangePicker.js +114 -56
- 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.js +1 -1
- 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 +70 -40
- package/lib/components/ImageGallery.js +97 -14
- 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/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/Markdown2.js +1 -1
- package/lib/components/Modal.d.ts +42 -40
- package/lib/components/Modal.js +3 -3
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +41 -40
- package/lib/components/NumberInput.d.ts +10 -10
- package/lib/components/NumberInput.js +1 -1
- package/lib/components/Pagination.d.ts +49 -66
- package/lib/components/Pagination.js +3 -3
- 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.js +1 -1
- package/lib/components/Progress.d.ts +10 -10
- package/lib/components/Progress.js +8 -4
- 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 +7 -3
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +3 -3
- 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 +8 -8
- package/lib/components/RichText.js +1 -1
- package/lib/components/RichText2.js +1 -1
- package/lib/components/SearchBox.d.ts +127 -42
- package/lib/components/SearchBox.js +185 -19
- package/lib/components/Select.d.ts +389 -194
- package/lib/components/Select.js +17 -22
- 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 +10 -10
- package/lib/components/Tabs.js +1 -3
- package/lib/components/TabsTransfer.js +1 -1
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +12 -10
- package/lib/components/Tag.js +16 -5
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +4 -2
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +3 -3
- package/lib/components/Tinymce.d.ts +1 -3
- package/lib/components/Tinymce.js +1 -1
- package/lib/components/Tinymce2.js +29 -12
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +40 -40
- package/lib/components/Transfer.js +15 -8
- package/lib/components/TransferDropDown.d.ts +40 -40
- package/lib/components/TransferDropDown.js +2 -3
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +3 -3
- package/lib/components/Tree.d.ts +40 -40
- package/lib/components/Tree.js +34 -33
- 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 +4 -2
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.js +14 -7
- 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.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.d.ts +1 -0
- package/lib/components/formula/plugin.js +11 -4
- package/lib/components/icons.d.ts +2 -1
- package/lib/components/icons.js +20 -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.js +1 -1
- 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/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-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 +2 -2
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +2 -2
- package/lib/icons/alert-warning.svg.js +2 -2
- 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 +60 -0
- 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 +2 -2
- package/lib/icons/down.svg.js +55 -0
- 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 -2
- 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 +7 -4
- 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 +48 -0
- 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 +7 -4
- package/lib/icons/right-double-arrow.svg.js +48 -0
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +48 -0
- package/lib/icons/rotate-right.svg.js +48 -0
- package/lib/icons/scale-origin.svg.js +50 -0
- 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 +2 -2
- 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 +48 -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.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 +3 -1
- package/lib/locale/de-DE.js +7 -1
- package/lib/locale/en-US.js +7 -1
- package/lib/locale/zh-CN.js +9 -3
- package/lib/scss/helper.scss.js +1 -1
- package/lib/scss/helper.scss2.js +1 -1
- package/lib/scss/themes/ang.scss.js +1 -1
- package/lib/scss/themes/ang.scss2.js +1 -1
- package/lib/scss/themes/antd.scss.js +1 -1
- package/lib/scss/themes/antd.scss2.js +1 -1
- package/lib/scss/themes/cxd.scss.js +1 -1
- package/lib/scss/themes/cxd.scss2.js +1 -1
- package/lib/scss/themes/dark.scss.js +1 -1
- package/lib/scss/themes/dark.scss2.js +1 -1
- package/lib/scss/themes/default.scss.js +1 -1
- package/lib/scss/themes/default.scss2.js +1 -1
- package/lib/themes/ang.css +1111 -441
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +1111 -441
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +1135 -468
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +1116 -443
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +1135 -468
- package/package.json +10 -10
- package/scss/_properties.scss +101 -22
- package/scss/base/_typography.scss +4 -0
- package/scss/components/_alert.scss +15 -0
- package/scss/components/_anchor-nav.scss +22 -7
- package/scss/components/_badge.scss +1 -0
- package/scss/components/_breadcrumb.scss +12 -1
- package/scss/components/_calendar.scss +32 -14
- package/scss/components/_card.scss +4 -0
- package/scss/components/_collapse-group.scss +13 -1
- package/scss/components/_collapse.scss +2 -1
- package/scss/components/_crud.scss +10 -2
- package/scss/components/_crud2.scss +10 -2
- package/scss/components/_image-gallery.scss +62 -0
- package/scss/components/_input-box.scss +1 -0
- package/scss/components/_log.scss +44 -16
- package/scss/components/_modal.scss +14 -12
- package/scss/components/_pagination.scss +4 -3
- package/scss/components/_progress.scss +2 -1
- package/scss/components/_result-box.scss +6 -8
- package/scss/components/_search-box.scss +120 -10
- package/scss/components/_steps.scss +23 -12
- package/scss/components/_table.scss +96 -11
- package/scss/components/_tabs.scss +46 -4
- package/scss/components/_tag.scss +12 -3
- package/scss/components/_timeline.scss +15 -1
- package/scss/components/form/_checks.scss +13 -2
- package/scss/components/form/_date-range.scss +26 -11
- package/scss/components/form/_date.scss +97 -33
- package/scss/components/form/_form.scss +13 -1
- package/scss/components/form/_nested-select.scss +6 -0
- package/scss/components/form/_number.scss +18 -13
- package/scss/components/form/_picker.scss +8 -0
- package/scss/components/form/_rating.scss +2 -2
- package/scss/components/form/_select.scss +34 -1
- package/scss/components/form/_selection.scss +1 -0
- package/scss/components/form/_text.scss +6 -0
- package/scss/components/form/_textarea.scss +15 -11
- package/scss/components/form/_transfer.scss +2 -5
- package/scss/components/form/_tree.scss +31 -4
- package/scss/components/react-datetime.scss +6 -1
- package/scss/themes/_cxd-variables.scss +9 -8
- package/scss/themes/_dark-variables.scss +5 -2
- package/scss/themes/cxd.scss +2 -8
|
@@ -96,7 +96,7 @@ export declare class FormulaPicker extends React.Component<FormulaPickerProps, F
|
|
|
96
96
|
render(): JSX.Element;
|
|
97
97
|
}
|
|
98
98
|
declare const _default: {
|
|
99
|
-
new (props: Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
99
|
+
new (props: Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
100
100
|
evalMode: boolean;
|
|
101
101
|
}, never>> & {
|
|
102
102
|
locale?: string | undefined;
|
|
@@ -107,14 +107,14 @@ declare const _default: {
|
|
|
107
107
|
getWrappedInstance(): any;
|
|
108
108
|
render(): JSX.Element;
|
|
109
109
|
context: any;
|
|
110
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
110
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
111
111
|
evalMode: boolean;
|
|
112
112
|
}, never>> & {
|
|
113
113
|
locale?: string | undefined;
|
|
114
114
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
115
115
|
}, keyof import("amis-core").ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
116
116
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
117
|
-
readonly props: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
117
|
+
readonly props: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
118
118
|
evalMode: boolean;
|
|
119
119
|
}, never>> & {
|
|
120
120
|
locale?: string | undefined;
|
|
@@ -127,7 +127,7 @@ declare const _default: {
|
|
|
127
127
|
[key: string]: React.ReactInstance;
|
|
128
128
|
};
|
|
129
129
|
componentDidMount?(): void;
|
|
130
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
130
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
131
131
|
evalMode: boolean;
|
|
132
132
|
}, never>> & {
|
|
133
133
|
locale?: string | undefined;
|
|
@@ -135,13 +135,13 @@ declare const _default: {
|
|
|
135
135
|
}, keyof import("amis-core").ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
136
136
|
componentWillUnmount?(): void;
|
|
137
137
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
138
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
138
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
139
139
|
evalMode: boolean;
|
|
140
140
|
}, never>> & {
|
|
141
141
|
locale?: string | undefined;
|
|
142
142
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
143
143
|
}, keyof import("amis-core").ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
144
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
144
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
145
145
|
evalMode: boolean;
|
|
146
146
|
}, never>> & {
|
|
147
147
|
locale?: string | undefined;
|
|
@@ -149,25 +149,25 @@ declare const _default: {
|
|
|
149
149
|
}, keyof import("amis-core").ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
150
150
|
componentWillMount?(): void;
|
|
151
151
|
UNSAFE_componentWillMount?(): void;
|
|
152
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
152
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
153
153
|
evalMode: boolean;
|
|
154
154
|
}, never>> & {
|
|
155
155
|
locale?: string | undefined;
|
|
156
156
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
157
157
|
}, keyof import("amis-core").ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
158
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
158
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
159
159
|
evalMode: boolean;
|
|
160
160
|
}, never>> & {
|
|
161
161
|
locale?: string | undefined;
|
|
162
162
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
163
163
|
}, keyof import("amis-core").ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
164
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
164
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
165
165
|
evalMode: boolean;
|
|
166
166
|
}, never>> & {
|
|
167
167
|
locale?: string | undefined;
|
|
168
168
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
169
169
|
}, keyof import("amis-core").ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
170
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
170
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
171
171
|
evalMode: boolean;
|
|
172
172
|
}, never>> & {
|
|
173
173
|
locale?: string | undefined;
|
|
@@ -177,7 +177,7 @@ declare const _default: {
|
|
|
177
177
|
displayName: string;
|
|
178
178
|
contextType: React.Context<string>;
|
|
179
179
|
ComposedComponent: React.ComponentType<{
|
|
180
|
-
new (props: Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
180
|
+
new (props: Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
181
181
|
evalMode: boolean;
|
|
182
182
|
}, never>> & {
|
|
183
183
|
locale?: string | undefined;
|
|
@@ -188,7 +188,7 @@ declare const _default: {
|
|
|
188
188
|
getWrappedInstance(): any;
|
|
189
189
|
render(): JSX.Element;
|
|
190
190
|
context: any;
|
|
191
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
191
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
192
192
|
evalMode: boolean;
|
|
193
193
|
}, never>> & {
|
|
194
194
|
/**
|
|
@@ -198,7 +198,7 @@ declare const _default: {
|
|
|
198
198
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
199
199
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
200
200
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
201
|
-
readonly props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
201
|
+
readonly props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
202
202
|
evalMode: boolean;
|
|
203
203
|
}, never>> & {
|
|
204
204
|
locale?: string | undefined;
|
|
@@ -211,7 +211,7 @@ declare const _default: {
|
|
|
211
211
|
[key: string]: React.ReactInstance;
|
|
212
212
|
};
|
|
213
213
|
componentDidMount?(): void;
|
|
214
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
214
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
215
215
|
evalMode: boolean;
|
|
216
216
|
}, never>> & {
|
|
217
217
|
locale?: string | undefined;
|
|
@@ -219,13 +219,13 @@ declare const _default: {
|
|
|
219
219
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
220
220
|
componentWillUnmount?(): void;
|
|
221
221
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
222
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
222
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
223
223
|
evalMode: boolean;
|
|
224
224
|
}, never>> & {
|
|
225
225
|
locale?: string | undefined;
|
|
226
226
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
227
227
|
}>, prevState: Readonly<{}>): any;
|
|
228
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
228
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
229
229
|
evalMode: boolean;
|
|
230
230
|
}, never>> & {
|
|
231
231
|
locale?: string | undefined;
|
|
@@ -233,25 +233,25 @@ declare const _default: {
|
|
|
233
233
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
234
234
|
componentWillMount?(): void;
|
|
235
235
|
UNSAFE_componentWillMount?(): void;
|
|
236
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
236
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
237
237
|
evalMode: boolean;
|
|
238
238
|
}, never>> & {
|
|
239
239
|
locale?: string | undefined;
|
|
240
240
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
241
241
|
}>, nextContext: any): void;
|
|
242
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
242
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
243
243
|
evalMode: boolean;
|
|
244
244
|
}, never>> & {
|
|
245
245
|
locale?: string | undefined;
|
|
246
246
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
247
247
|
}>, nextContext: any): void;
|
|
248
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
248
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
249
249
|
evalMode: boolean;
|
|
250
250
|
}, never>> & {
|
|
251
251
|
locale?: string | undefined;
|
|
252
252
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
253
253
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
254
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
254
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
255
255
|
evalMode: boolean;
|
|
256
256
|
}, never>> & {
|
|
257
257
|
locale?: string | undefined;
|
|
@@ -265,7 +265,7 @@ declare const _default: {
|
|
|
265
265
|
ComposedComponent: typeof FormulaPicker;
|
|
266
266
|
}>;
|
|
267
267
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
268
|
-
new (props: Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
268
|
+
new (props: Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
269
269
|
evalMode: boolean;
|
|
270
270
|
}, never>> & {
|
|
271
271
|
locale?: string | undefined;
|
|
@@ -276,7 +276,7 @@ declare const _default: {
|
|
|
276
276
|
getWrappedInstance(): any;
|
|
277
277
|
render(): JSX.Element;
|
|
278
278
|
context: any;
|
|
279
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
279
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
280
280
|
evalMode: boolean;
|
|
281
281
|
}, never>> & {
|
|
282
282
|
/**
|
|
@@ -286,7 +286,7 @@ declare const _default: {
|
|
|
286
286
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
287
287
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
288
288
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
289
|
-
readonly props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
289
|
+
readonly props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
290
290
|
evalMode: boolean;
|
|
291
291
|
}, never>> & {
|
|
292
292
|
locale?: string | undefined;
|
|
@@ -299,7 +299,7 @@ declare const _default: {
|
|
|
299
299
|
[key: string]: React.ReactInstance;
|
|
300
300
|
};
|
|
301
301
|
componentDidMount?(): void;
|
|
302
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
302
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
303
303
|
evalMode: boolean;
|
|
304
304
|
}, never>> & {
|
|
305
305
|
locale?: string | undefined;
|
|
@@ -307,13 +307,13 @@ declare const _default: {
|
|
|
307
307
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
308
308
|
componentWillUnmount?(): void;
|
|
309
309
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
310
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
310
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
311
311
|
evalMode: boolean;
|
|
312
312
|
}, never>> & {
|
|
313
313
|
locale?: string | undefined;
|
|
314
314
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
315
315
|
}>, prevState: Readonly<{}>): any;
|
|
316
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
316
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
317
317
|
evalMode: boolean;
|
|
318
318
|
}, never>> & {
|
|
319
319
|
locale?: string | undefined;
|
|
@@ -321,25 +321,25 @@ declare const _default: {
|
|
|
321
321
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
322
322
|
componentWillMount?(): void;
|
|
323
323
|
UNSAFE_componentWillMount?(): void;
|
|
324
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
324
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
325
325
|
evalMode: boolean;
|
|
326
326
|
}, never>> & {
|
|
327
327
|
locale?: string | undefined;
|
|
328
328
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
329
329
|
}>, nextContext: any): void;
|
|
330
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
330
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
331
331
|
evalMode: boolean;
|
|
332
332
|
}, never>> & {
|
|
333
333
|
locale?: string | undefined;
|
|
334
334
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
335
335
|
}>, nextContext: any): void;
|
|
336
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
336
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
337
337
|
evalMode: boolean;
|
|
338
338
|
}, never>> & {
|
|
339
339
|
locale?: string | undefined;
|
|
340
340
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
341
341
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
342
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
342
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
343
343
|
evalMode: boolean;
|
|
344
344
|
}, never>> & {
|
|
345
345
|
locale?: string | undefined;
|
|
@@ -353,7 +353,7 @@ declare const _default: {
|
|
|
353
353
|
ComposedComponent: typeof FormulaPicker;
|
|
354
354
|
}, {}> & {
|
|
355
355
|
ComposedComponent: {
|
|
356
|
-
new (props: Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
356
|
+
new (props: Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
357
357
|
evalMode: boolean;
|
|
358
358
|
}, never>> & {
|
|
359
359
|
locale?: string | undefined;
|
|
@@ -364,7 +364,7 @@ declare const _default: {
|
|
|
364
364
|
getWrappedInstance(): any;
|
|
365
365
|
render(): JSX.Element;
|
|
366
366
|
context: any;
|
|
367
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
367
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
368
368
|
evalMode: boolean;
|
|
369
369
|
}, never>> & {
|
|
370
370
|
/**
|
|
@@ -374,7 +374,7 @@ declare const _default: {
|
|
|
374
374
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
375
375
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
376
376
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
377
|
-
readonly props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
377
|
+
readonly props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
378
378
|
evalMode: boolean;
|
|
379
379
|
}, never>> & {
|
|
380
380
|
locale?: string | undefined;
|
|
@@ -387,7 +387,7 @@ declare const _default: {
|
|
|
387
387
|
[key: string]: React.ReactInstance;
|
|
388
388
|
};
|
|
389
389
|
componentDidMount?(): void;
|
|
390
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
390
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
391
391
|
evalMode: boolean;
|
|
392
392
|
}, never>> & {
|
|
393
393
|
locale?: string | undefined;
|
|
@@ -395,13 +395,13 @@ declare const _default: {
|
|
|
395
395
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
396
396
|
componentWillUnmount?(): void;
|
|
397
397
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
398
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
398
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
399
399
|
evalMode: boolean;
|
|
400
400
|
}, never>> & {
|
|
401
401
|
locale?: string | undefined;
|
|
402
402
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
403
403
|
}>, prevState: Readonly<{}>): any;
|
|
404
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
404
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
405
405
|
evalMode: boolean;
|
|
406
406
|
}, never>> & {
|
|
407
407
|
locale?: string | undefined;
|
|
@@ -409,25 +409,25 @@ declare const _default: {
|
|
|
409
409
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
410
410
|
componentWillMount?(): void;
|
|
411
411
|
UNSAFE_componentWillMount?(): void;
|
|
412
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
412
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
413
413
|
evalMode: boolean;
|
|
414
414
|
}, never>> & {
|
|
415
415
|
locale?: string | undefined;
|
|
416
416
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
417
417
|
}>, nextContext: any): void;
|
|
418
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
418
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
419
419
|
evalMode: boolean;
|
|
420
420
|
}, never>> & {
|
|
421
421
|
locale?: string | undefined;
|
|
422
422
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
423
423
|
}>, nextContext: any): void;
|
|
424
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
424
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
425
425
|
evalMode: boolean;
|
|
426
426
|
}, never>> & {
|
|
427
427
|
locale?: string | undefined;
|
|
428
428
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
429
429
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
430
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "
|
|
430
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "theme" | "data" | "header" | "source" | "title" | "placeholder" | "onChange" | "value" | "size" | "disabled" | "icon" | "level" | "mode" | "onConfirm" | "clearable" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "btnLabel" | "btnSize"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "evalMode">> & Partial<Pick<{
|
|
431
431
|
evalMode: boolean;
|
|
432
432
|
}, never>> & {
|
|
433
433
|
locale?: string | undefined;
|
|
@@ -22,6 +22,7 @@ export declare class FormulaPlugin {
|
|
|
22
22
|
insertContent(value: any, type?: 'variable' | 'func'): void;
|
|
23
23
|
markText(from: CodeMirror.Position, to: CodeMirror.Position, label: string, className?: string): void;
|
|
24
24
|
autoMark(variables: Array<VariableItem>): void;
|
|
25
|
+
focus(value: string): void;
|
|
25
26
|
dispose(): void;
|
|
26
27
|
validate(): void;
|
|
27
28
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.1.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -33,6 +33,7 @@ var FormulaPlugin = /** @class */ (function () {
|
|
|
33
33
|
if (value) {
|
|
34
34
|
// todo functions 也需要自动替换
|
|
35
35
|
this.autoMark(variables);
|
|
36
|
+
this.focus(value);
|
|
36
37
|
}
|
|
37
38
|
};
|
|
38
39
|
// 计算 `${`、`}` 括号的位置,如 ${a}+${b}, 结果是 [ { from: 0, to: 3 }, { from: 5, to: 8 } ]
|
|
@@ -67,7 +68,7 @@ var FormulaPlugin = /** @class */ (function () {
|
|
|
67
68
|
if (braces.length) {
|
|
68
69
|
for (var index = 0; index < braces.length; index++) {
|
|
69
70
|
var brace = braces[index];
|
|
70
|
-
if (from
|
|
71
|
+
if (from >= brace.begin && to <= brace.end) {
|
|
71
72
|
isIn = true;
|
|
72
73
|
break;
|
|
73
74
|
}
|
|
@@ -142,8 +143,7 @@ var FormulaPlugin = /** @class */ (function () {
|
|
|
142
143
|
var varMap = {};
|
|
143
144
|
amisCore.eachTree(variables, function (item) {
|
|
144
145
|
if (item.value) {
|
|
145
|
-
|
|
146
|
-
varMap[key] = item.label;
|
|
146
|
+
varMap[item.value] = item.label;
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
149
|
var vars = Object.keys(varMap).sort(function (a, b) { return b.length - a.length; });
|
|
@@ -187,6 +187,13 @@ var FormulaPlugin = /** @class */ (function () {
|
|
|
187
187
|
_loop_1(line);
|
|
188
188
|
}
|
|
189
189
|
};
|
|
190
|
+
// 焦点放在最后
|
|
191
|
+
FormulaPlugin.prototype.focus = function (value) {
|
|
192
|
+
this.editor.setCursor({
|
|
193
|
+
line: 0,
|
|
194
|
+
ch: (value === null || value === void 0 ? void 0 : value.length) || 0
|
|
195
|
+
});
|
|
196
|
+
};
|
|
190
197
|
FormulaPlugin.prototype.dispose = function () { };
|
|
191
198
|
FormulaPlugin.prototype.validate = function () { };
|
|
192
199
|
return FormulaPlugin;
|
|
@@ -26,6 +26,7 @@ import UserRemove from '../icons/user-remove.svg';
|
|
|
26
26
|
import Role from '../icons/role.svg';
|
|
27
27
|
import Department from '../icons/department.svg';
|
|
28
28
|
import Post from '../icons/post.svg';
|
|
29
|
+
import RightDoubleArrowIcon from '../icons/right-double-arrow.svg';
|
|
29
30
|
export declare const closeIcon: JSX.Element;
|
|
30
31
|
export declare const unDoIcon: JSX.Element;
|
|
31
32
|
export declare const reDoIcon: JSX.Element;
|
|
@@ -42,4 +43,4 @@ export declare function registerIcon(key: string, component: React.ReactType<{}>
|
|
|
42
43
|
export declare function Icon({ icon, className, ...rest }: {
|
|
43
44
|
icon: string;
|
|
44
45
|
} & React.ComponentProps<any>): JSX.Element;
|
|
45
|
-
export { InputClearIcon, CloseIcon, UnDoIcon, ReDoIcon, EnterIcon, VolumeIcon, MuteIcon, PlayIcon, PauseIcon, ReloadIcon, LeftArrowIcon, RightArrowIcon, CheckIcon, PlusIcon, MinusIcon, PencilIcon, FunctionIcon, MenuIcon, UserRemove, Role, Department, Post };
|
|
46
|
+
export { InputClearIcon, CloseIcon, UnDoIcon, ReDoIcon, EnterIcon, VolumeIcon, MuteIcon, PlayIcon, PauseIcon, ReloadIcon, LeftArrowIcon, RightArrowIcon, CheckIcon, PlusIcon, MinusIcon, PencilIcon, FunctionIcon, MenuIcon, UserRemove, Role, Department, Post, RightDoubleArrowIcon };
|