amis-ui 2.7.2 → 2.8.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/index.js +1 -1
- package/esm/_virtual/react-is.development.js +1 -1
- package/esm/_virtual/react-is.production.min.js +1 -1
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.js +1 -1
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.js +5 -2
- package/esm/components/BaiduMapPicker.js +1 -1
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +23 -13
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +12 -12
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.d.ts +40 -40
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.js +28 -15
- package/esm/components/ConfirmBox.js +9 -6
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +40 -40
- package/esm/components/DatePicker.js +6 -4
- package/esm/components/DateRangePicker.d.ts +40 -40
- package/esm/components/DateRangePicker.js +7 -5
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.js +1 -1
- 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.js +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/InputTable.js +28 -15
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.d.ts +40 -40
- package/esm/components/LocationPicker.js +1 -1
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +40 -40
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.d.ts +15 -11
- package/esm/components/NumberInput.js +9 -9
- package/esm/components/Pagination.js +1 -1
- package/esm/components/Picker.js +4 -4
- package/esm/components/PickerColumn.js +4 -4
- package/esm/components/PickerContainer.js +1 -1
- package/esm/components/PopOverContainer.d.ts +18 -0
- package/esm/components/PopOverContainer.js +42 -9
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +4 -4
- 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.d.ts +40 -40
- package/esm/components/ResultBox.js +3 -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/SearchBox.d.ts +82 -40
- package/esm/components/SearchBox.js +10 -7
- package/esm/components/Select.d.ts +195 -193
- package/esm/components/Select.js +19 -9
- package/esm/components/Selection.js +3 -3
- package/esm/components/SparkLine.js +4 -4
- package/esm/components/Spinner.js +29 -33
- 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.d.ts +41 -40
- package/esm/components/Tabs.js +15 -10
- package/esm/components/TabsTransfer.js +1 -1
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.js +1 -1
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +3 -2
- package/esm/components/Tinymce.js +1 -1
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.js +3 -3
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.js +1 -1
- package/esm/components/TransferDropDown.d.ts +44 -40
- package/esm/components/TransferDropDown.js +3 -3
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.d.ts +82 -40
- package/esm/components/Tree.js +45 -28
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.js +1 -1
- package/esm/components/UserTabSelect.js +32 -13
- package/esm/components/WithRemoteConfig.js +1 -1
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.js +4 -4
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.js +1 -1
- package/esm/components/calendar/MonthsView.js +3 -3
- 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 +2 -2
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.js +5 -4
- package/esm/components/formula/Editor.js +3 -3
- package/esm/components/formula/FuncList.js +4 -4
- package/esm/components/formula/Picker.js +3 -3
- package/esm/components/formula/VariableList.js +3 -2
- package/esm/components/formula/plugin.js +3 -2
- package/esm/components/icons.js +4 -4
- package/esm/components/json-schema/Array.js +4 -4
- package/esm/components/json-schema/Item.js +1 -1
- package/esm/components/json-schema/Object.js +30 -10
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.js +5 -5
- package/esm/components/menu/SubMenu.js +5 -6
- package/esm/components/menu/index.d.ts +6 -9
- package/esm/components/menu/index.js +59 -43
- package/esm/components/schema-editor/Array.js +3 -3
- package/esm/components/schema-editor/Common.d.ts +10 -0
- package/esm/components/schema-editor/Common.js +16 -6
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.d.ts +2 -1
- package/esm/components/schema-editor/Object.js +10 -6
- 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 +46 -41
- package/esm/components/schema-editor/index.js +6 -4
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.js +3 -3
- 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 +19 -19
- 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 +3 -3
- package/esm/hooks/use-sub-form.js +1 -1
- package/esm/hooks/use-touch.js +3 -3
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +56 -32
- package/esm/icons/alert-danger.svg.js +1 -1
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +1 -1
- package/esm/icons/alert-warning.svg.js +1 -1
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check.svg.js +1 -1
- package/esm/icons/clock.svg.js +1 -1
- package/esm/icons/close-small.svg.js +1 -1
- package/esm/icons/close.svg.js +1 -1
- package/esm/icons/cloud-upload.svg.js +1 -1
- package/esm/icons/column-filter.svg.js +1 -1
- package/esm/icons/columns.svg.js +1 -1
- package/esm/icons/compress-alt.svg.js +1 -1
- package/esm/icons/copy.svg.js +1 -1
- package/esm/icons/date.svg.js +1 -1
- package/esm/icons/department.svg.js +1 -1
- package/esm/icons/desk-empty.svg.js +1 -1
- package/esm/icons/dot.svg.js +1 -1
- package/esm/icons/down-arrow-bold.svg.js +1 -1
- package/esm/icons/down.svg.js +1 -1
- package/esm/icons/download.svg.js +1 -1
- package/esm/icons/drag-bar.svg.js +1 -1
- package/esm/icons/drag.svg.js +1 -1
- package/esm/icons/edit.svg.js +1 -1
- package/esm/icons/ellipsis-v.svg.js +1 -1
- package/esm/icons/enter.svg.js +1 -1
- package/esm/icons/exchange.svg.js +1 -1
- package/esm/icons/expand-alt.svg.js +1 -1
- package/esm/icons/fail.svg.js +1 -1
- package/esm/icons/file.svg.js +1 -1
- package/esm/icons/filter.svg.js +1 -1
- package/esm/icons/folder.svg.js +1 -1
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +1 -1
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +1 -1
- package/esm/icons/pause.svg.js +1 -1
- package/esm/icons/pencil.svg.js +1 -1
- package/esm/icons/play.svg.js +1 -1
- package/esm/icons/plus-cicle.svg.js +1 -1
- package/esm/icons/plus-fine.svg.js +1 -1
- package/esm/icons/plus.svg.js +1 -1
- package/esm/icons/post.svg.js +1 -1
- package/esm/icons/question-mark.svg.js +1 -1
- package/esm/icons/question.svg.js +1 -1
- package/esm/icons/redo.svg.js +1 -1
- package/esm/icons/refresh.svg.js +1 -1
- package/esm/icons/reload.svg.js +1 -1
- package/esm/icons/remove.svg.js +1 -1
- package/esm/icons/retry.svg.js +1 -1
- package/esm/icons/right-arrow-bold.svg.js +1 -1
- package/esm/icons/right-arrow.svg.js +1 -1
- package/esm/icons/right-double-arrow.svg.js +1 -1
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +1 -1
- package/esm/icons/rotate-right.svg.js +1 -1
- package/esm/icons/scale-origin.svg.js +1 -1
- package/esm/icons/schedule.svg.js +1 -1
- package/esm/icons/search.svg.js +1 -1
- package/esm/icons/setting.svg.js +1 -1
- package/esm/icons/slider-handle-icon.svg.js +1 -1
- package/esm/icons/sort-asc.svg.js +1 -1
- package/esm/icons/sort-default.svg.js +1 -1
- package/esm/icons/sort-desc.svg.js +1 -1
- package/esm/icons/star.svg.js +1 -1
- package/esm/icons/status-close.svg.js +1 -1
- package/esm/icons/steps-finsh.svg.js +1 -1
- package/esm/icons/success.svg.js +1 -1
- package/esm/icons/transparent.svg.js +1 -1
- package/esm/icons/trash.svg.js +1 -1
- package/esm/icons/tree-down.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/upload.svg.js +1 -1
- package/esm/icons/user-remove.svg.js +1 -1
- package/esm/icons/view.svg.js +1 -1
- package/esm/icons/volume.svg.js +1 -1
- package/esm/icons/warning-mark.svg.js +1 -1
- package/esm/icons/warning.svg.js +1 -1
- package/esm/icons/window-restore.svg.js +1 -1
- package/esm/icons/zoom-in.svg.js +1 -1
- package/esm/icons/zoom-out.svg.js +1 -1
- package/esm/index.js +1 -1
- package/esm/locale/de-DE.js +1 -1
- package/esm/locale/en-US.js +1 -1
- package/esm/locale/zh-CN.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +2 -4
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +2 -4
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/esm/node_modules/rc-overflow/es/Item.js +3 -3
- package/esm/node_modules/rc-overflow/es/Overflow.js +3 -3
- package/esm/node_modules/rc-overflow/es/RawItem.js +1 -1
- package/esm/node_modules/rc-overflow/es/hooks/useBatchFrameState.js +1 -1
- package/esm/node_modules/rc-overflow/es/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/Collection.js +4 -5
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -7
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/index.js +38 -37
- package/esm/node_modules/rc-resize-observer/es/index.js +13 -11
- package/esm/node_modules/rc-resize-observer/es/utils/observerUtil.js +6 -12
- package/esm/node_modules/rc-util/es/Children/toArray.js +1 -1
- package/esm/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/esm/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useState.js +1 -1
- package/esm/node_modules/rc-util/es/raf.js +1 -1
- package/esm/node_modules/rc-util/es/ref.js +1 -1
- package/esm/node_modules/rc-util/es/warning.js +1 -1
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/esm/node_modules/rc-util/node_modules/react-is/index.js +1 -1
- package/esm/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/lib/_virtual/index.js +1 -1
- package/lib/_virtual/react-is.development.js +1 -1
- package/lib/_virtual/react-is.production.min.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 +1 -1
- package/lib/components/AnchorNav.d.ts +10 -10
- package/lib/components/AnchorNav.js +1 -1
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +40 -40
- package/lib/components/AssociatedSelection.js +1 -1
- package/lib/components/Avatar.d.ts +10 -10
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.js +5 -2
- package/lib/components/BaiduMapPicker.js +1 -1
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.d.ts +10 -10
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.d.ts +10 -10
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +22 -12
- 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 +11 -11
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.d.ts +10 -10
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/Combo.js +27 -14
- package/lib/components/ConfirmBox.d.ts +40 -40
- package/lib/components/ConfirmBox.js +8 -5
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +40 -40
- package/lib/components/DatePicker.js +5 -3
- package/lib/components/DateRangePicker.d.ts +40 -40
- package/lib/components/DateRangePicker.js +6 -4
- package/lib/components/DndContainer.js +1 -1
- 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.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/InputTable.js +27 -14
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +40 -40
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.d.ts +40 -40
- package/lib/components/LocationPicker.js +1 -1
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Modal.d.ts +40 -40
- package/lib/components/Modal.js +1 -1
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +40 -40
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +15 -11
- package/lib/components/NumberInput.js +8 -8
- package/lib/components/Pagination.js +1 -1
- package/lib/components/Picker.js +3 -3
- package/lib/components/PickerColumn.js +3 -3
- package/lib/components/PickerContainer.js +1 -1
- package/lib/components/PopOverContainer.d.ts +18 -0
- package/lib/components/PopOverContainer.js +41 -8
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +10 -10
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.js +4 -4
- 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 +2 -2
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.d.ts +40 -40
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +1 -1
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.d.ts +82 -40
- package/lib/components/SearchBox.js +9 -6
- package/lib/components/Select.d.ts +195 -193
- package/lib/components/Select.js +18 -8
- package/lib/components/Selection.d.ts +40 -40
- package/lib/components/Selection.js +2 -2
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +3 -3
- package/lib/components/Spinner.d.ts +10 -10
- package/lib/components/Spinner.js +29 -33
- 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 +41 -40
- package/lib/components/Tabs.js +15 -10
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +1 -1
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +10 -10
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +1 -1
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +3 -2
- package/lib/components/Tinymce.js +1 -1
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.js +2 -2
- 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 +1 -1
- package/lib/components/TransferDropDown.d.ts +44 -40
- package/lib/components/TransferDropDown.js +3 -3
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +1 -1
- package/lib/components/Tree.d.ts +82 -40
- package/lib/components/Tree.js +44 -27
- 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 +31 -12
- package/lib/components/WithRemoteConfig.js +1 -1
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.js +3 -3
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.js +1 -1
- package/lib/components/calendar/MonthsView.js +2 -2
- 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 +2 -2
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.js +4 -3
- package/lib/components/formula/Editor.d.ts +40 -40
- package/lib/components/formula/Editor.js +2 -2
- package/lib/components/formula/FuncList.js +3 -3
- package/lib/components/formula/Picker.d.ts +40 -40
- package/lib/components/formula/Picker.js +2 -2
- package/lib/components/formula/VariableList.js +3 -2
- package/lib/components/formula/plugin.js +3 -2
- package/lib/components/icons.js +3 -3
- package/lib/components/json-schema/Array.js +3 -3
- package/lib/components/json-schema/Item.js +1 -1
- package/lib/components/json-schema/Object.js +29 -9
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.js +5 -5
- package/lib/components/menu/SubMenu.js +4 -5
- package/lib/components/menu/index.d.ts +16 -19
- package/lib/components/menu/index.js +56 -41
- package/lib/components/schema-editor/Array.js +3 -3
- package/lib/components/schema-editor/Common.d.ts +10 -0
- package/lib/components/schema-editor/Common.js +16 -5
- package/lib/components/schema-editor/Item.js +1 -1
- package/lib/components/schema-editor/Object.d.ts +2 -1
- package/lib/components/schema-editor/Object.js +10 -6
- 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 +46 -41
- package/lib/components/schema-editor/index.js +6 -4
- 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 +2 -2
- 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 +18 -18
- 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 +2 -2
- package/lib/hooks/use-sub-form.js +1 -1
- package/lib/hooks/use-touch.js +2 -2
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +55 -31
- package/lib/icons/alert-danger.svg.js +1 -1
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +1 -1
- package/lib/icons/alert-warning.svg.js +1 -1
- package/lib/icons/back.svg.js +1 -1
- package/lib/icons/calendar.svg.js +1 -1
- package/lib/icons/caret.svg.js +1 -1
- package/lib/icons/check.svg.js +1 -1
- package/lib/icons/clock.svg.js +1 -1
- package/lib/icons/close-small.svg.js +1 -1
- package/lib/icons/close.svg.js +1 -1
- package/lib/icons/cloud-upload.svg.js +1 -1
- package/lib/icons/column-filter.svg.js +1 -1
- package/lib/icons/columns.svg.js +1 -1
- package/lib/icons/compress-alt.svg.js +1 -1
- package/lib/icons/copy.svg.js +1 -1
- package/lib/icons/date.svg.js +1 -1
- package/lib/icons/department.svg.js +1 -1
- package/lib/icons/desk-empty.svg.js +1 -1
- package/lib/icons/dot.svg.js +1 -1
- package/lib/icons/down-arrow-bold.svg.js +1 -1
- package/lib/icons/down.svg.js +1 -1
- package/lib/icons/download.svg.js +1 -1
- package/lib/icons/drag-bar.svg.js +1 -1
- package/lib/icons/drag.svg.js +1 -1
- package/lib/icons/edit.svg.js +1 -1
- package/lib/icons/ellipsis-v.svg.js +1 -1
- package/lib/icons/enter.svg.js +1 -1
- package/lib/icons/exchange.svg.js +1 -1
- package/lib/icons/expand-alt.svg.js +1 -1
- package/lib/icons/fail.svg.js +1 -1
- package/lib/icons/file.svg.js +1 -1
- package/lib/icons/filter.svg.js +1 -1
- package/lib/icons/folder.svg.js +1 -1
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/image.svg.js +1 -1
- package/lib/icons/info-circle.svg.js +1 -1
- package/lib/icons/info.svg.js +1 -1
- package/lib/icons/input-clear.svg.js +1 -1
- package/lib/icons/invisible.svg.js +1 -1
- package/lib/icons/left-arrow.svg.js +1 -1
- package/lib/icons/loading-outline.svg.js +1 -1
- package/lib/icons/location.svg.js +1 -1
- package/lib/icons/menu.svg.js +1 -1
- package/lib/icons/minus.svg.js +1 -1
- package/lib/icons/move.svg.js +1 -1
- package/lib/icons/mute.svg.js +1 -1
- package/lib/icons/new-edit.svg.js +1 -1
- package/lib/icons/pause.svg.js +1 -1
- package/lib/icons/pencil.svg.js +1 -1
- package/lib/icons/play.svg.js +1 -1
- package/lib/icons/plus-cicle.svg.js +1 -1
- package/lib/icons/plus-fine.svg.js +1 -1
- package/lib/icons/plus.svg.js +1 -1
- package/lib/icons/post.svg.js +1 -1
- package/lib/icons/question-mark.svg.js +1 -1
- package/lib/icons/question.svg.js +1 -1
- package/lib/icons/redo.svg.js +1 -1
- package/lib/icons/refresh.svg.js +1 -1
- package/lib/icons/reload.svg.js +1 -1
- package/lib/icons/remove.svg.js +1 -1
- package/lib/icons/retry.svg.js +1 -1
- package/lib/icons/right-arrow-bold.svg.js +1 -1
- package/lib/icons/right-arrow.svg.js +1 -1
- package/lib/icons/right-double-arrow.svg.js +1 -1
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +1 -1
- package/lib/icons/rotate-right.svg.js +1 -1
- package/lib/icons/scale-origin.svg.js +1 -1
- package/lib/icons/schedule.svg.js +1 -1
- package/lib/icons/search.svg.js +1 -1
- package/lib/icons/setting.svg.js +1 -1
- package/lib/icons/slider-handle-icon.svg.js +1 -1
- package/lib/icons/sort-asc.svg.js +1 -1
- package/lib/icons/sort-default.svg.js +1 -1
- package/lib/icons/sort-desc.svg.js +1 -1
- package/lib/icons/star.svg.js +1 -1
- package/lib/icons/status-close.svg.js +1 -1
- package/lib/icons/steps-finsh.svg.js +1 -1
- package/lib/icons/success.svg.js +1 -1
- package/lib/icons/transparent.svg.js +1 -1
- package/lib/icons/trash.svg.js +1 -1
- package/lib/icons/tree-down.svg.js +1 -1
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/upload.svg.js +1 -1
- package/lib/icons/user-remove.svg.js +1 -1
- package/lib/icons/view.svg.js +1 -1
- package/lib/icons/volume.svg.js +1 -1
- package/lib/icons/warning-mark.svg.js +1 -1
- package/lib/icons/warning.svg.js +1 -1
- package/lib/icons/window-restore.svg.js +1 -1
- package/lib/icons/zoom-in.svg.js +1 -1
- package/lib/icons/zoom-out.svg.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +2 -4
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +2 -4
- package/lib/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/lib/node_modules/rc-overflow/es/Item.js +1 -1
- package/lib/node_modules/rc-overflow/es/Overflow.js +1 -1
- package/lib/node_modules/rc-overflow/es/RawItem.js +1 -1
- package/lib/node_modules/rc-overflow/es/hooks/useBatchFrameState.js +1 -1
- package/lib/node_modules/rc-overflow/es/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/Collection.js +4 -5
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -7
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/index.js +38 -37
- package/lib/node_modules/rc-resize-observer/es/index.js +11 -9
- package/lib/node_modules/rc-resize-observer/es/utils/observerUtil.js +6 -12
- package/lib/node_modules/rc-util/es/Children/toArray.js +1 -1
- package/lib/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/lib/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useState.js +1 -1
- package/lib/node_modules/rc-util/es/raf.js +1 -1
- package/lib/node_modules/rc-util/es/ref.js +1 -1
- package/lib/node_modules/rc-util/es/warning.js +1 -1
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/lib/node_modules/rc-util/node_modules/react-is/index.js +1 -1
- package/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
- package/lib/packages/amis-ui/scss/helper.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/ang.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/antd.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/cxd.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/dark.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +903 -429
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +917 -435
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +903 -429
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +903 -429
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +903 -429
- package/package.json +4 -4
- package/scss/_components.scss +464 -6
- package/scss/_properties.scss +3 -199
- package/scss/base/_normalize.scss +11 -0
- package/scss/components/_button.scss +8 -17
- package/scss/components/_formula.scss +13 -0
- package/scss/components/_menu.scss +93 -75
- package/scss/components/_result-box.scss +83 -17
- package/scss/components/_table.scss +0 -5
- package/scss/components/_tabs.scss +4 -0
- package/scss/components/form/_chained-select.scss +5 -0
- package/scss/components/form/_checks.scss +0 -4
- package/scss/components/form/_date-range.scss +73 -11
- package/scss/components/form/_date.scss +93 -23
- package/scss/components/form/_form.scss +0 -1
- package/scss/components/form/_input-group.scss +11 -0
- package/scss/components/form/_location.scss +16 -16
- package/scss/components/form/_nested-select.scss +6 -2
- package/scss/components/form/_number.scss +12 -3
- package/scss/components/form/_select.scss +119 -52
- package/scss/components/form/_selection.scss +62 -40
- package/scss/components/form/_tag.scss +0 -4
- package/scss/components/form/_text.scss +13 -3
- package/scss/components/form/_tree.scss +22 -2
- package/scss/components/react-datetime.scss +8 -2
- package/scss/themes/_antd-variables.scss +20 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.8.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -104,6 +104,7 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
QueryBuilder.prototype.handleDragDrop = function () {
|
|
107
|
+
var _a, _b;
|
|
107
108
|
var onChange = this.props.onChange;
|
|
108
109
|
var fromId = this.dragTarget.getAttribute('data-id');
|
|
109
110
|
var toId = this.host.getAttribute('data-group-id');
|
|
@@ -117,10 +118,10 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
117
118
|
var indexes = amisCore.findTreeIndex([value], function (item) { return item.id === fromId; });
|
|
118
119
|
if (indexes) {
|
|
119
120
|
var origin_1 = amisCore.getTree([value], indexes.concat());
|
|
120
|
-
|
|
121
|
+
_a = tslib.__read(amisCore.spliceTree([value], indexes, 1), 1), value = _a[0];
|
|
121
122
|
var indexes2 = amisCore.findTreeIndex([value], function (item) { return item.id === toId; });
|
|
122
123
|
if (indexes2) {
|
|
123
|
-
|
|
124
|
+
_b = tslib.__read(amisCore.spliceTree([value], indexes2.concat(toIndex), 0, origin_1), 1), value = _b[0];
|
|
124
125
|
onChange(value);
|
|
125
126
|
}
|
|
126
127
|
}
|
|
@@ -97,7 +97,7 @@ export declare class FormulaEditor extends React.Component<FormulaEditorProps, F
|
|
|
97
97
|
render(): JSX.Element;
|
|
98
98
|
}
|
|
99
99
|
declare const _default: {
|
|
100
|
-
new (props: Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
100
|
+
new (props: Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
101
101
|
locale?: string | undefined;
|
|
102
102
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
103
103
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps): {
|
|
@@ -106,12 +106,12 @@ declare const _default: {
|
|
|
106
106
|
getWrappedInstance(): any;
|
|
107
107
|
render(): JSX.Element;
|
|
108
108
|
context: any;
|
|
109
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
109
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
110
110
|
locale?: string | undefined;
|
|
111
111
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
112
112
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
113
113
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
114
|
-
readonly props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
114
|
+
readonly props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
115
115
|
locale?: string | undefined;
|
|
116
116
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
117
117
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
@@ -122,35 +122,35 @@ declare const _default: {
|
|
|
122
122
|
[key: string]: React.ReactInstance;
|
|
123
123
|
};
|
|
124
124
|
componentDidMount?(): void;
|
|
125
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
125
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
126
126
|
locale?: string | undefined;
|
|
127
127
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
128
128
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
129
129
|
componentWillUnmount?(): void;
|
|
130
130
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
131
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
131
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
132
132
|
locale?: string | undefined;
|
|
133
133
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
134
134
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
135
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
135
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
136
136
|
locale?: string | undefined;
|
|
137
137
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
138
138
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
139
139
|
componentWillMount?(): void;
|
|
140
140
|
UNSAFE_componentWillMount?(): void;
|
|
141
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
141
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
142
142
|
locale?: string | undefined;
|
|
143
143
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
144
144
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
145
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
145
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
146
146
|
locale?: string | undefined;
|
|
147
147
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
148
148
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
149
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
149
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
150
150
|
locale?: string | undefined;
|
|
151
151
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
152
152
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
153
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
153
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
154
154
|
locale?: string | undefined;
|
|
155
155
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
156
156
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -158,7 +158,7 @@ declare const _default: {
|
|
|
158
158
|
displayName: string;
|
|
159
159
|
contextType: React.Context<string>;
|
|
160
160
|
ComposedComponent: React.ComponentType<{
|
|
161
|
-
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
161
|
+
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
162
162
|
locale?: string | undefined;
|
|
163
163
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
164
164
|
}): {
|
|
@@ -167,12 +167,12 @@ declare const _default: {
|
|
|
167
167
|
getWrappedInstance(): any;
|
|
168
168
|
render(): JSX.Element;
|
|
169
169
|
context: any;
|
|
170
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
170
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
171
171
|
locale?: string | undefined;
|
|
172
172
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
173
173
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
174
174
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
175
|
-
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
175
|
+
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
176
176
|
locale?: string | undefined;
|
|
177
177
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
178
178
|
}> & Readonly<{
|
|
@@ -183,35 +183,35 @@ declare const _default: {
|
|
|
183
183
|
[key: string]: React.ReactInstance;
|
|
184
184
|
};
|
|
185
185
|
componentDidMount?(): void;
|
|
186
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
186
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
187
187
|
locale?: string | undefined;
|
|
188
188
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
189
189
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
190
190
|
componentWillUnmount?(): void;
|
|
191
191
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
192
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
192
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
193
193
|
locale?: string | undefined;
|
|
194
194
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
195
195
|
}>, prevState: Readonly<{}>): any;
|
|
196
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
196
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
197
197
|
locale?: string | undefined;
|
|
198
198
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
199
199
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
200
200
|
componentWillMount?(): void;
|
|
201
201
|
UNSAFE_componentWillMount?(): void;
|
|
202
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
202
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
203
203
|
locale?: string | undefined;
|
|
204
204
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
205
205
|
}>, nextContext: any): void;
|
|
206
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
206
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
207
207
|
locale?: string | undefined;
|
|
208
208
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
209
209
|
}>, nextContext: any): void;
|
|
210
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
210
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
211
211
|
locale?: string | undefined;
|
|
212
212
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
213
213
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
214
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
214
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
215
215
|
locale?: string | undefined;
|
|
216
216
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
217
217
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -223,7 +223,7 @@ declare const _default: {
|
|
|
223
223
|
ComposedComponent: typeof FormulaEditor;
|
|
224
224
|
}>;
|
|
225
225
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
226
|
-
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
226
|
+
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
227
227
|
locale?: string | undefined;
|
|
228
228
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
229
229
|
}): {
|
|
@@ -232,12 +232,12 @@ declare const _default: {
|
|
|
232
232
|
getWrappedInstance(): any;
|
|
233
233
|
render(): JSX.Element;
|
|
234
234
|
context: any;
|
|
235
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
235
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
236
236
|
locale?: string | undefined;
|
|
237
237
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
238
238
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
239
239
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
240
|
-
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
240
|
+
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
241
241
|
locale?: string | undefined;
|
|
242
242
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
243
243
|
}> & Readonly<{
|
|
@@ -248,35 +248,35 @@ declare const _default: {
|
|
|
248
248
|
[key: string]: React.ReactInstance;
|
|
249
249
|
};
|
|
250
250
|
componentDidMount?(): void;
|
|
251
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
251
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
252
252
|
locale?: string | undefined;
|
|
253
253
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
254
254
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
255
255
|
componentWillUnmount?(): void;
|
|
256
256
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
257
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
257
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
258
258
|
locale?: string | undefined;
|
|
259
259
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
260
260
|
}>, prevState: Readonly<{}>): any;
|
|
261
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
261
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
262
262
|
locale?: string | undefined;
|
|
263
263
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
264
264
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
265
265
|
componentWillMount?(): void;
|
|
266
266
|
UNSAFE_componentWillMount?(): void;
|
|
267
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
267
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
268
268
|
locale?: string | undefined;
|
|
269
269
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
270
270
|
}>, nextContext: any): void;
|
|
271
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
271
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
272
272
|
locale?: string | undefined;
|
|
273
273
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
274
274
|
}>, nextContext: any): void;
|
|
275
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
275
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
276
276
|
locale?: string | undefined;
|
|
277
277
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
278
278
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
279
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
279
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
280
280
|
locale?: string | undefined;
|
|
281
281
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
282
282
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -288,7 +288,7 @@ declare const _default: {
|
|
|
288
288
|
ComposedComponent: typeof FormulaEditor;
|
|
289
289
|
}, {}> & {
|
|
290
290
|
ComposedComponent: {
|
|
291
|
-
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
291
|
+
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
292
292
|
locale?: string | undefined;
|
|
293
293
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
294
294
|
}): {
|
|
@@ -297,12 +297,12 @@ declare const _default: {
|
|
|
297
297
|
getWrappedInstance(): any;
|
|
298
298
|
render(): JSX.Element;
|
|
299
299
|
context: any;
|
|
300
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
300
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
301
301
|
locale?: string | undefined;
|
|
302
302
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
303
303
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
304
304
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
305
|
-
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
305
|
+
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
306
306
|
locale?: string | undefined;
|
|
307
307
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
308
308
|
}> & Readonly<{
|
|
@@ -313,35 +313,35 @@ declare const _default: {
|
|
|
313
313
|
[key: string]: React.ReactInstance;
|
|
314
314
|
};
|
|
315
315
|
componentDidMount?(): void;
|
|
316
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
316
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
317
317
|
locale?: string | undefined;
|
|
318
318
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
319
319
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
320
320
|
componentWillUnmount?(): void;
|
|
321
321
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
322
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
322
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
323
323
|
locale?: string | undefined;
|
|
324
324
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
325
325
|
}>, prevState: Readonly<{}>): any;
|
|
326
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
326
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
327
327
|
locale?: string | undefined;
|
|
328
328
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
329
329
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
330
330
|
componentWillMount?(): void;
|
|
331
331
|
UNSAFE_componentWillMount?(): void;
|
|
332
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
332
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
333
333
|
locale?: string | undefined;
|
|
334
334
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
335
335
|
}>, nextContext: any): void;
|
|
336
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
336
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
337
337
|
locale?: string | undefined;
|
|
338
338
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
339
339
|
}>, nextContext: any): void;
|
|
340
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
340
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
341
341
|
locale?: string | undefined;
|
|
342
342
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
343
343
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
344
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "
|
|
344
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
345
345
|
locale?: string | undefined;
|
|
346
346
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
347
347
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.8.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -166,7 +166,7 @@ var FormulaEditor = /** @class */ (function (_super) {
|
|
|
166
166
|
var _a = this.props, variables = _a.variables, header = _a.header, value = _a.value, functions = _a.functions, variableMode = _a.variableMode, __ = _a.translate, cx = _a.classnames, variableClassName = _a.variableClassName, functionClassName = _a.functionClassName, classPrefix = _a.classPrefix, selfVariableName = _a.selfVariableName;
|
|
167
167
|
var focused = this.state.focused;
|
|
168
168
|
var customFunctions = Array.isArray(functions) ? functions : [];
|
|
169
|
-
var functionList = tslib.__spreadArray(tslib.__spreadArray([], FormulaEditor.buildDefaultFunctions(doc.doc),
|
|
169
|
+
var functionList = tslib.__spreadArray(tslib.__spreadArray([], tslib.__read(FormulaEditor.buildDefaultFunctions(doc.doc)), false), tslib.__read(customFunctions), false);
|
|
170
170
|
return (React__default["default"].createElement("div", { className: cx("FormulaEditor", {
|
|
171
171
|
'is-focused': focused
|
|
172
172
|
}) },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.8.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -21,8 +21,8 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
21
21
|
function FuncList(props) {
|
|
22
22
|
var _a;
|
|
23
23
|
var title = props.title, className = props.className, cx = props.classnames, bodyClassName = props.bodyClassName, descClassName = props.descClassName;
|
|
24
|
-
var _b = React__default["default"].useState(props.data), filteredFuncs = _b[0], setFiteredFuncs = _b[1];
|
|
25
|
-
var _c = React__default["default"].useState(null), activeFunc = _c[0], setActiveFunc = _c[1];
|
|
24
|
+
var _b = tslib.__read(React__default["default"].useState(props.data), 2), filteredFuncs = _b[0], setFiteredFuncs = _b[1];
|
|
25
|
+
var _c = tslib.__read(React__default["default"].useState(null), 2), activeFunc = _c[0], setActiveFunc = _c[1];
|
|
26
26
|
function onSearch(term) {
|
|
27
27
|
var filtered = props.data
|
|
28
28
|
.map(function (item) {
|