amis-ui 3.2.0 → 3.3.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.d.ts +122 -122
- package/esm/components/Alert.js +55 -17
- package/esm/components/Alert2.d.ts +20 -20
- package/esm/components/Alert2.js +5 -8
- package/esm/components/AnchorNav.d.ts +20 -20
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/ArrayInput.d.ts +40 -40
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.d.ts +120 -120
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.d.ts +102 -101
- package/esm/components/Avatar.js +4 -3
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.js +1 -1
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +5 -9
- package/esm/components/Button.d.ts +20 -20
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.d.ts +40 -40
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.d.ts +100 -100
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedDropdownSelection.d.ts +120 -120
- package/esm/components/ChainedDropdownSelection.js +1 -1
- package/esm/components/ChainedSelection.d.ts +120 -120
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.d.ts +10 -10
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +1 -1
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.d.ts +140 -140
- package/esm/components/Collapse.js +2 -2
- package/esm/components/CollapseGroup.d.ts +30 -30
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.d.ts +80 -80
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConfirmBox.d.ts +80 -80
- package/esm/components/ConfirmBox.js +1 -1
- package/esm/components/ContextMenu.d.ts +2 -2
- package/esm/components/ContextMenu.js +25 -10
- package/esm/components/DatePicker.d.ts +82 -81
- package/esm/components/DatePicker.js +5 -2
- package/esm/components/DateRangePicker.d.ts +120 -120
- package/esm/components/DateRangePicker.js +1 -1
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.d.ts +30 -30
- package/esm/components/Drawer.js +1 -1
- package/esm/components/DropDownSelection.d.ts +120 -120
- package/esm/components/DropDownSelection.js +1 -1
- package/esm/components/Editor.d.ts +120 -120
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/GaodeMapPicker.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.d.ts +120 -120
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.d.ts +40 -40
- package/esm/components/ImageGallery.js +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.d.ts +10 -10
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +2 -2
- package/esm/components/InputTable.js +1 -1
- package/esm/components/Layout.d.ts +10 -10
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +5 -4
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.d.ts +80 -80
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.d.ts +40 -40
- package/esm/components/LocationPicker.js +4 -4
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Modal.d.ts +80 -80
- package/esm/components/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +120 -120
- package/esm/components/MultilineText.d.ts +40 -40
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.d.ts +20 -20
- package/esm/components/NumberInput.js +6 -3
- package/esm/components/Pagination.d.ts +80 -80
- package/esm/components/Pagination.js +1 -1
- package/esm/components/Picker.js +1 -1
- package/esm/components/PickerColumn.js +1 -1
- package/esm/components/PickerContainer.js +1 -1
- package/esm/components/PopOverContainer.js +1 -1
- package/esm/components/PopUp.d.ts +120 -120
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.d.ts +30 -30
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.d.ts +11 -10
- package/esm/components/Radios.js +7 -6
- package/esm/components/Range.js +4 -4
- package/esm/components/Rating.d.ts +20 -20
- package/esm/components/Rating.js +2 -2
- package/esm/components/ResultBox.d.ts +80 -80
- package/esm/components/ResultBox.js +1 -1
- package/esm/components/ResultList.d.ts +40 -40
- package/esm/components/ResultList.js +2 -2
- package/esm/components/ResultTableList.d.ts +120 -120
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.d.ts +40 -40
- package/esm/components/ResultTreeList.js +4 -2
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.d.ts +82 -82
- package/esm/components/SearchBox.js +4 -4
- package/esm/components/Select.d.ts +1546 -1546
- package/esm/components/Select.js +4 -2
- package/esm/components/SelectMobile.js +1 -1
- package/esm/components/Selection.d.ts +120 -120
- 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.d.ts +50 -50
- package/esm/components/Spinner.js +4 -4
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.d.ts +10 -10
- package/esm/components/Switch.js +1 -1
- package/esm/components/TableSelection.d.ts +120 -120
- package/esm/components/TableSelection.js +3 -2
- package/esm/components/Tabs.d.ts +80 -80
- package/esm/components/Tabs.js +3 -3
- package/esm/components/TabsTransfer.d.ts +40 -40
- package/esm/components/TabsTransfer.js +1 -1
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.d.ts +80 -80
- package/esm/components/Tag.js +5 -10
- package/esm/components/Textarea.d.ts +40 -40
- package/esm/components/Textarea.js +1 -1
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.d.ts +1 -1
- package/esm/components/TimelineItem.js +4 -3
- package/esm/components/Tinymce.d.ts +1 -0
- package/esm/components/Tinymce.js +7 -3
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.d.ts +80 -80
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.d.ts +30 -30
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.d.ts +169 -169
- package/esm/components/Transfer.js +7 -2
- package/esm/components/TransferDropDown.d.ts +160 -160
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +2 -2
- package/esm/components/Tree.d.ts +160 -160
- package/esm/components/Tree.js +35 -9
- package/esm/components/TreeSelection.d.ts +120 -120
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.d.ts +40 -40
- package/esm/components/UserSelect.js +1 -1
- package/esm/components/UserTabSelect.d.ts +40 -40
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.js +1 -1
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.js +1 -1
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.js +1 -1
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.js +1 -1
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/Formula.js +1 -1
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.js +1 -1
- package/esm/components/condition-builder/GroupOrItem.js +2 -2
- 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 +8 -3
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.js +1 -1
- package/esm/components/formula/Editor.d.ts +43 -40
- package/esm/components/formula/Editor.js +36 -9
- package/esm/components/formula/FuncList.js +8 -4
- package/esm/components/formula/Input.d.ts +272 -0
- package/esm/components/formula/Input.js +115 -0
- package/esm/components/formula/Picker.d.ts +61 -44
- package/esm/components/formula/Picker.js +86 -16
- package/esm/components/formula/VariableList.js +43 -23
- package/esm/components/formula/plugin.js +1 -1
- package/esm/components/icons.d.ts +11 -2
- package/esm/components/icons.js +64 -22
- package/esm/components/json-schema/Array.js +2 -2
- package/esm/components/json-schema/Item.js +1 -1
- package/esm/components/json-schema/Object.js +2 -2
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.js +1 -1
- package/esm/components/menu/SubMenu.js +1 -1
- package/esm/components/menu/index.d.ts +60 -60
- package/esm/components/menu/index.js +1 -1
- package/esm/components/schema-editor/Array.js +1 -1
- package/esm/components/schema-editor/Common.js +1 -1
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.js +1 -1
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.d.ts +40 -40
- package/esm/components/schema-editor/index.js +1 -1
- package/esm/components/table/Cell.d.ts +80 -80
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.d.ts +40 -40
- package/esm/components/table/HeadCellFilter.js +1 -1
- package/esm/components/table/HeadCellSelect.d.ts +40 -40
- 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.d.ts +120 -120
- package/esm/components/table/index.js +1 -1
- package/esm/components/virtual-list/AutoSizer.js +1 -1
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-sub-form.js +1 -1
- package/esm/hooks/use-touch.js +1 -1
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +1 -1
- package/esm/icons/alert-danger.svg.js +1 -1
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +1 -1
- package/esm/icons/alert-warning.svg.js +1 -1
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check.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 +15 -8
- 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 +6 -2
- package/esm/locale/en-US.js +6 -2
- package/esm/locale/zh-CN.js +6 -2
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/esm/node_modules/rc-overflow/es/Overflow.js +1 -1
- package/esm/node_modules/rc-overflow/es/RawItem.js +1 -1
- package/esm/node_modules/rc-overflow/es/context.js +1 -1
- package/esm/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
- package/esm/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
- package/esm/node_modules/rc-overflow/es/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/Collection.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
- package/esm/node_modules/rc-util/es/Children/toArray.js +3 -4
- 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/useEvent.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
- package/esm/node_modules/rc-util/es/raf.js +1 -1
- package/esm/node_modules/rc-util/es/ref.js +3 -4
- package/esm/node_modules/rc-util/es/warning.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/components/404.js +12 -13
- package/lib/components/Alert.d.ts +42 -42
- package/lib/components/Alert.js +64 -27
- package/lib/components/Alert2.d.ts +10 -10
- package/lib/components/Alert2.js +13 -17
- package/lib/components/AnchorNav.d.ts +10 -10
- package/lib/components/AnchorNav.js +10 -12
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +17 -14
- package/lib/components/AsideNav.js +13 -15
- package/lib/components/AssociatedSelection.d.ts +40 -40
- package/lib/components/AssociatedSelection.js +11 -17
- package/lib/components/Avatar.d.ts +42 -41
- package/lib/components/Avatar.js +10 -6
- package/lib/components/Badge.js +13 -13
- package/lib/components/BaiduMapPicker.js +15 -12
- package/lib/components/BarCode.js +5 -5
- package/lib/components/Breadcrumb.js +21 -25
- package/lib/components/Button.d.ts +10 -10
- package/lib/components/Button.js +7 -8
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +36 -38
- package/lib/components/Card.d.ts +50 -50
- package/lib/components/Card.js +22 -19
- package/lib/components/Cascader.js +18 -19
- package/lib/components/ChainedDropdownSelection.d.ts +40 -40
- package/lib/components/ChainedDropdownSelection.js +7 -5
- package/lib/components/ChainedSelection.d.ts +40 -40
- package/lib/components/ChainedSelection.js +23 -20
- package/lib/components/Checkbox.d.ts +10 -10
- package/lib/components/Checkbox.js +9 -10
- package/lib/components/CityArea.js +9 -10
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +5 -2
- package/lib/components/Collapse.d.ts +50 -50
- package/lib/components/Collapse.js +12 -14
- package/lib/components/CollapseGroup.d.ts +30 -30
- package/lib/components/CollapseGroup.js +5 -7
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +15 -17
- package/lib/components/Combo.js +16 -73
- package/lib/components/ConfirmBox.d.ts +40 -40
- package/lib/components/ConfirmBox.js +24 -21
- package/lib/components/ContextMenu.d.ts +2 -2
- package/lib/components/ContextMenu.js +37 -19
- package/lib/components/DatePicker.d.ts +41 -40
- package/lib/components/DatePicker.js +26 -25
- package/lib/components/DateRangePicker.d.ts +40 -40
- package/lib/components/DateRangePicker.js +40 -42
- package/lib/components/DndContainer.js +6 -8
- package/lib/components/Drawer.js +13 -15
- package/lib/components/DropDownSelection.d.ts +40 -40
- package/lib/components/DropDownSelection.js +14 -15
- package/lib/components/Editor.d.ts +40 -40
- package/lib/components/Editor.js +9 -11
- package/lib/components/Form.js +8 -5
- package/lib/components/FormField.js +20 -21
- package/lib/components/GaodeMapPicker.js +10 -7
- package/lib/components/GridNav.js +15 -16
- package/lib/components/GroupedSelection.d.ts +40 -40
- package/lib/components/GroupedSelection.js +22 -19
- package/lib/components/Html.js +5 -7
- package/lib/components/ImageGallery.d.ts +40 -40
- package/lib/components/ImageGallery.js +28 -25
- package/lib/components/Input.js +6 -3
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +8 -5
- package/lib/components/InputBoxWithSuggestion.js +11 -8
- package/lib/components/InputTable.js +24 -21
- package/lib/components/Layout.d.ts +10 -10
- package/lib/components/Layout.js +13 -26
- package/lib/components/Link.js +8 -4
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +8 -5
- package/lib/components/ListMenu.d.ts +40 -40
- package/lib/components/ListMenu.js +11 -8
- package/lib/components/LocationPicker.d.ts +40 -40
- package/lib/components/LocationPicker.js +16 -13
- package/lib/components/Markdown.js +5 -2
- package/lib/components/Modal.d.ts +40 -40
- package/lib/components/Modal.js +15 -17
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +40 -40
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +9 -6
- package/lib/components/NumberInput.d.ts +10 -10
- package/lib/components/NumberInput.js +13 -7
- package/lib/components/Pagination.d.ts +40 -40
- package/lib/components/Pagination.js +30 -27
- package/lib/components/Picker.js +13 -14
- package/lib/components/PickerColumn.js +7 -5
- package/lib/components/PickerContainer.js +6 -3
- package/lib/components/PopOverContainer.js +7 -4
- package/lib/components/PopUp.d.ts +40 -40
- package/lib/components/PopUp.js +18 -20
- package/lib/components/Progress.d.ts +40 -40
- package/lib/components/Progress.js +14 -11
- package/lib/components/PullRefresh.js +8 -14
- package/lib/components/Radios.d.ts +11 -10
- package/lib/components/Radios.js +13 -24
- package/lib/components/Range.js +24 -26
- package/lib/components/Rating.d.ts +10 -10
- package/lib/components/Rating.js +14 -15
- package/lib/components/ResultBox.d.ts +40 -40
- package/lib/components/ResultBox.js +31 -28
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +19 -15
- package/lib/components/ResultTableList.d.ts +40 -40
- package/lib/components/ResultTableList.js +13 -13
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +21 -13
- package/lib/components/RichText.js +6 -8
- package/lib/components/SearchBox.d.ts +42 -42
- package/lib/components/SearchBox.js +26 -23
- package/lib/components/Select.d.ts +193 -193
- package/lib/components/Select.js +60 -61
- package/lib/components/SelectMobile.js +20 -17
- package/lib/components/Selection.d.ts +40 -40
- package/lib/components/Selection.js +7 -9
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +8 -5
- package/lib/components/Spinner.d.ts +10 -10
- package/lib/components/Spinner.js +13 -16
- package/lib/components/Steps.js +20 -21
- package/lib/components/Switch.d.ts +10 -10
- package/lib/components/Switch.js +8 -10
- package/lib/components/TableSelection.d.ts +40 -40
- package/lib/components/TableSelection.js +35 -29
- package/lib/components/Tabs.d.ts +40 -40
- package/lib/components/Tabs.js +41 -43
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +17 -14
- package/lib/components/TabsTransferPicker.js +8 -5
- package/lib/components/Tag.d.ts +60 -60
- package/lib/components/Tag.js +12 -17
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +9 -6
- package/lib/components/Timeline.js +6 -7
- package/lib/components/TimelineItem.d.ts +1 -1
- package/lib/components/TimelineItem.js +18 -14
- package/lib/components/Tinymce.d.ts +1 -0
- package/lib/components/Tinymce.js +11 -4
- package/lib/components/TitleBar.js +10 -16
- package/lib/components/Toast.d.ts +40 -40
- package/lib/components/Toast.js +14 -16
- package/lib/components/Tooltip.js +8 -10
- package/lib/components/TooltipWrapper.js +6 -8
- package/lib/components/Transfer.d.ts +40 -40
- package/lib/components/Transfer.js +47 -33
- package/lib/components/TransferDropDown.d.ts +40 -40
- package/lib/components/TransferDropDown.js +11 -12
- package/lib/components/TransferPicker.js +8 -5
- package/lib/components/TransferSearch.js +10 -6
- package/lib/components/Tree.d.ts +40 -40
- package/lib/components/Tree.js +86 -75
- package/lib/components/TreeSelection.d.ts +40 -40
- package/lib/components/TreeSelection.js +15 -16
- package/lib/components/UserSelect.d.ts +40 -40
- package/lib/components/UserSelect.js +84 -85
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +17 -18
- package/lib/components/WithRemoteConfig.js +5 -2
- package/lib/components/WithStore.js +5 -2
- package/lib/components/calendar/Calendar.js +7 -4
- package/lib/components/calendar/CalendarContainer.js +5 -2
- package/lib/components/calendar/DaysView.js +55 -53
- package/lib/components/calendar/MonthsView.js +18 -15
- package/lib/components/calendar/QuartersView.js +17 -14
- package/lib/components/calendar/TimeView.js +32 -29
- package/lib/components/calendar/YearsView.js +18 -15
- package/lib/components/condition-builder/Expression.js +10 -7
- package/lib/components/condition-builder/Field.js +7 -4
- package/lib/components/condition-builder/Formula.js +6 -3
- package/lib/components/condition-builder/Func.js +16 -13
- package/lib/components/condition-builder/Group.js +22 -19
- package/lib/components/condition-builder/GroupOrItem.js +14 -11
- package/lib/components/condition-builder/InputSwitch.js +10 -11
- package/lib/components/condition-builder/Item.js +19 -16
- package/lib/components/condition-builder/Value.js +18 -10
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.js +8 -5
- package/lib/components/formula/Editor.d.ts +43 -40
- package/lib/components/formula/Editor.js +54 -24
- package/lib/components/formula/FuncList.js +32 -25
- package/lib/components/formula/Input.d.ts +272 -0
- package/lib/components/formula/Input.js +128 -0
- package/lib/components/formula/Picker.d.ts +61 -44
- package/lib/components/formula/Picker.js +113 -39
- package/lib/components/formula/VariableList.js +60 -37
- package/lib/components/formula/plugin.js +1 -1
- package/lib/components/icons.d.ts +11 -2
- package/lib/components/icons.js +76 -30
- package/lib/components/json-schema/Array.js +15 -12
- package/lib/components/json-schema/Item.js +11 -12
- package/lib/components/json-schema/Object.js +18 -15
- package/lib/components/json-schema/index.js +6 -7
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.js +16 -18
- package/lib/components/menu/SubMenu.js +17 -19
- package/lib/components/menu/index.d.ts +10 -10
- package/lib/components/menu/index.js +14 -16
- package/lib/components/schema-editor/Array.js +10 -7
- package/lib/components/schema-editor/Common.js +19 -16
- package/lib/components/schema-editor/Item.js +5 -2
- package/lib/components/schema-editor/Object.js +15 -12
- package/lib/components/schema-editor/SchemaVariableList.js +9 -6
- package/lib/components/schema-editor/SchemaVariableListPicker.js +7 -4
- package/lib/components/schema-editor/index.d.ts +40 -40
- package/lib/components/schema-editor/index.js +6 -6
- package/lib/components/table/Cell.d.ts +40 -40
- package/lib/components/table/Cell.js +5 -6
- package/lib/components/table/HeadCellDropDown.js +8 -9
- package/lib/components/table/HeadCellFilter.d.ts +40 -40
- package/lib/components/table/HeadCellFilter.js +12 -13
- package/lib/components/table/HeadCellSelect.d.ts +40 -40
- package/lib/components/table/HeadCellSelect.js +6 -7
- package/lib/components/table/HeadCellSort.js +11 -12
- package/lib/components/table/ItemActionsWrapper.js +5 -2
- package/lib/components/table/index.d.ts +80 -80
- package/lib/components/table/index.js +62 -63
- package/lib/components/virtual-list/AutoSizer.js +5 -2
- 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 +6 -6
- package/lib/helper.css +1393 -9569
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-sub-form.js +1 -1
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +7 -24
- package/lib/icons/alert-info.svg.js +7 -24
- package/lib/icons/alert-success.svg.js +7 -24
- package/lib/icons/alert-warning.svg.js +7 -24
- package/lib/icons/back.svg.js +7 -24
- package/lib/icons/calendar.svg.js +11 -28
- package/lib/icons/caret.svg.js +7 -24
- package/lib/icons/check.svg.js +7 -24
- package/lib/icons/clock.svg.js +9 -26
- package/lib/icons/close-small.svg.js +8 -25
- package/lib/icons/close.svg.js +7 -24
- package/lib/icons/cloud-upload.svg.js +7 -24
- package/lib/icons/column-filter.svg.js +7 -24
- package/lib/icons/columns.svg.js +7 -24
- package/lib/icons/compress-alt.svg.js +7 -24
- package/lib/icons/copy.svg.js +9 -26
- package/lib/icons/date.svg.js +9 -26
- package/lib/icons/department.svg.js +12 -29
- package/lib/icons/desk-empty.svg.js +19 -36
- package/lib/icons/dot.svg.js +10 -27
- package/lib/icons/down-arrow-bold.svg.js +7 -24
- package/lib/icons/down.svg.js +7 -24
- package/lib/icons/download.svg.js +7 -24
- package/lib/icons/drag-bar.svg.js +15 -32
- package/lib/icons/drag.svg.js +7 -24
- package/lib/icons/edit.svg.js +7 -24
- package/lib/icons/ellipsis-v.svg.js +7 -24
- package/lib/icons/enter.svg.js +7 -24
- package/lib/icons/exchange.svg.js +7 -24
- package/lib/icons/expand-alt.svg.js +7 -24
- package/lib/icons/fail.svg.js +9 -26
- package/lib/icons/file.svg.js +8 -25
- package/lib/icons/filter.svg.js +7 -24
- package/lib/icons/folder.svg.js +9 -26
- package/lib/icons/function.svg.js +20 -30
- package/lib/icons/home.svg.js +7 -24
- package/lib/icons/image.svg.js +7 -24
- package/lib/icons/info-circle.svg.js +7 -24
- package/lib/icons/info.svg.js +8 -25
- package/lib/icons/input-clear.svg.js +7 -24
- package/lib/icons/invisible.svg.js +7 -24
- package/lib/icons/left-arrow.svg.js +7 -24
- package/lib/icons/loading-outline.svg.js +7 -24
- package/lib/icons/location.svg.js +7 -24
- package/lib/icons/menu.svg.js +7 -24
- package/lib/icons/minus.svg.js +7 -24
- package/lib/icons/move.svg.js +7 -24
- package/lib/icons/mute.svg.js +7 -24
- package/lib/icons/new-edit.svg.js +7 -24
- package/lib/icons/pause.svg.js +7 -24
- package/lib/icons/pencil.svg.js +7 -24
- package/lib/icons/play.svg.js +7 -24
- package/lib/icons/plus-cicle.svg.js +7 -24
- package/lib/icons/plus-fine.svg.js +7 -24
- package/lib/icons/plus.svg.js +7 -24
- package/lib/icons/post.svg.js +12 -29
- package/lib/icons/question-mark.svg.js +8 -25
- package/lib/icons/question.svg.js +7 -24
- package/lib/icons/redo.svg.js +7 -24
- package/lib/icons/refresh.svg.js +7 -24
- package/lib/icons/reload.svg.js +7 -24
- package/lib/icons/remove.svg.js +7 -24
- package/lib/icons/retry.svg.js +9 -26
- package/lib/icons/right-arrow-bold.svg.js +7 -24
- package/lib/icons/right-arrow.svg.js +7 -24
- package/lib/icons/right-double-arrow.svg.js +7 -24
- package/lib/icons/role.svg.js +11 -28
- package/lib/icons/rotate-left.svg.js +8 -25
- package/lib/icons/rotate-right.svg.js +8 -25
- package/lib/icons/scale-origin.svg.js +9 -26
- package/lib/icons/schedule.svg.js +9 -26
- package/lib/icons/search.svg.js +7 -24
- package/lib/icons/setting.svg.js +7 -24
- package/lib/icons/slider-handle-icon.svg.js +7 -24
- package/lib/icons/sort-asc.svg.js +7 -24
- package/lib/icons/sort-default.svg.js +8 -25
- package/lib/icons/sort-desc.svg.js +7 -24
- package/lib/icons/star.svg.js +7 -24
- package/lib/icons/status-close.svg.js +7 -24
- package/lib/icons/steps-finsh.svg.js +7 -24
- package/lib/icons/success.svg.js +9 -26
- package/lib/icons/transparent.svg.js +12 -29
- package/lib/icons/trash.svg.js +7 -24
- package/lib/icons/tree-down.svg.js +7 -24
- package/lib/icons/undo.svg.js +7 -24
- package/lib/icons/upload.svg.js +7 -24
- package/lib/icons/user-remove.svg.js +9 -26
- package/lib/icons/view.svg.js +7 -24
- package/lib/icons/volume.svg.js +8 -25
- package/lib/icons/warning-mark.svg.js +8 -25
- package/lib/icons/warning.svg.js +7 -24
- package/lib/icons/window-restore.svg.js +7 -24
- package/lib/icons/zoom-in.svg.js +7 -24
- package/lib/icons/zoom-out.svg.js +7 -24
- package/lib/index.js +1 -1
- package/lib/locale/de-DE.js +6 -2
- package/lib/locale/en-US.js +6 -2
- package/lib/locale/zh-CN.js +6 -2
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
- 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 +1 -1
- 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/context.js +1 -1
- package/lib/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
- package/lib/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
- package/lib/node_modules/rc-overflow/es/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/Collection.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
- package/lib/node_modules/rc-util/es/Children/toArray.js +3 -4
- 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/useEvent.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
- package/lib/node_modules/rc-util/es/raf.js +1 -1
- package/lib/node_modules/rc-util/es/ref.js +3 -4
- package/lib/node_modules/rc-util/es/warning.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 +600 -746
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +600 -746
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +600 -746
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +600 -746
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +600 -746
- package/package.json +6 -6
- package/scss/_components.scss +7 -6
- package/scss/_mixins.scss +0 -1
- package/scss/_properties.scss +6 -4
- package/scss/_variables.scss +20 -0
- package/scss/base/_common.scss +4 -0
- package/scss/components/_cards.scss +3 -10
- package/scss/components/_column-toggler.scss +4 -4
- package/scss/components/_condition-builder.scss +1 -1
- package/scss/components/_debug.scss +34 -1
- package/scss/components/_drawer.scss +10 -1
- package/scss/components/_dropdown.scss +5 -4
- package/scss/components/_formula.scss +39 -3
- package/scss/components/_input-box.scss +2 -1
- package/scss/components/_json-schema-editor.scss +2 -2
- package/scss/components/_json-schema.scss +2 -2
- package/scss/components/_list.scss +3 -10
- package/scss/components/_menu.scss +1 -0
- package/scss/components/_progress.scss +1 -1
- package/scss/components/_search-box.scss +6 -0
- package/scss/components/_steps.scss +5 -3
- package/scss/components/_table.scss +104 -129
- package/scss/components/_timeline.scss +2 -1
- package/scss/components/form/_checks.scss +3 -1
- package/scss/components/form/_date.scss +3 -0
- package/scss/components/form/_form.scss +7 -0
- package/scss/components/form/_list.scss +1 -1
- package/scss/components/form/_nested-select.scss +3 -2
- package/scss/components/form/_selection.scss +8 -0
- package/scss/helper/sizing/_width.md +105 -94
- package/scss/helper/sizing/_width.scss +16 -0
- package/esm/_virtual/index.js +0 -8
- package/esm/_virtual/react-is.development.js +0 -8
- package/esm/_virtual/react-is.production.min.js +0 -8
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +0 -195
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +0 -31
- package/esm/node_modules/rc-util/node_modules/react-is/index.js +0 -17
- package/lib/_virtual/index.js +0 -12
- package/lib/_virtual/react-is.development.js +0 -12
- package/lib/_virtual/react-is.production.min.js +0 -12
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +0 -199
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +0 -35
- package/lib/node_modules/rc-util/node_modules/react-is/index.js +0 -19
|
@@ -75,6 +75,7 @@ export interface FunctionProps {
|
|
|
75
75
|
example: string;
|
|
76
76
|
}
|
|
77
77
|
export interface FormulaState {
|
|
78
|
+
functions: FuncGroup[];
|
|
78
79
|
focused: boolean;
|
|
79
80
|
isCodeMode: boolean;
|
|
80
81
|
expandTree: boolean;
|
|
@@ -83,6 +84,7 @@ export interface FormulaState {
|
|
|
83
84
|
export declare class FormulaEditor extends React.Component<FormulaEditorProps, FormulaState> {
|
|
84
85
|
state: FormulaState;
|
|
85
86
|
editorPlugin?: FormulaPlugin;
|
|
87
|
+
unmounted: boolean;
|
|
86
88
|
static buildDefaultFunctions(doc: Array<{
|
|
87
89
|
namespace: string;
|
|
88
90
|
name: string;
|
|
@@ -101,6 +103,7 @@ export declare class FormulaEditor extends React.Component<FormulaEditorProps, F
|
|
|
101
103
|
componentDidMount(): void;
|
|
102
104
|
componentDidUpdate(prevProps: Readonly<FormulaEditorProps>, prevState: Readonly<FormulaState>, snapshot?: any): void;
|
|
103
105
|
componentWillUnmount(): void;
|
|
106
|
+
buildFunctions(): Promise<void>;
|
|
104
107
|
normalizeVariables(variables?: Array<VariableItem>): void;
|
|
105
108
|
handleFocus(): void;
|
|
106
109
|
handleBlur(): void;
|
|
@@ -116,7 +119,7 @@ export declare class FormulaEditor extends React.Component<FormulaEditorProps, F
|
|
|
116
119
|
render(): React.JSX.Element;
|
|
117
120
|
}
|
|
118
121
|
declare const _default: {
|
|
119
|
-
new (props: Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
122
|
+
new (props: Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
120
123
|
variables?: VariableItem[] | undefined;
|
|
121
124
|
evalMode?: boolean | undefined;
|
|
122
125
|
} & {} & {
|
|
@@ -128,7 +131,7 @@ declare const _default: {
|
|
|
128
131
|
getWrappedInstance(): any;
|
|
129
132
|
render(): React.JSX.Element;
|
|
130
133
|
context: unknown;
|
|
131
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
134
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
132
135
|
variables?: VariableItem[] | undefined;
|
|
133
136
|
evalMode?: boolean | undefined;
|
|
134
137
|
} & {} & {
|
|
@@ -136,7 +139,7 @@ declare const _default: {
|
|
|
136
139
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
137
140
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
138
141
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
139
|
-
readonly props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
142
|
+
readonly props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
140
143
|
variables?: VariableItem[] | undefined;
|
|
141
144
|
evalMode?: boolean | undefined;
|
|
142
145
|
} & {} & {
|
|
@@ -148,7 +151,7 @@ declare const _default: {
|
|
|
148
151
|
[key: string]: React.ReactInstance;
|
|
149
152
|
};
|
|
150
153
|
componentDidMount?(): void;
|
|
151
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
154
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
152
155
|
variables?: VariableItem[] | undefined;
|
|
153
156
|
evalMode?: boolean | undefined;
|
|
154
157
|
} & {} & {
|
|
@@ -157,14 +160,14 @@ declare const _default: {
|
|
|
157
160
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
158
161
|
componentWillUnmount?(): void;
|
|
159
162
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
160
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
163
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
161
164
|
variables?: VariableItem[] | undefined;
|
|
162
165
|
evalMode?: boolean | undefined;
|
|
163
166
|
} & {} & {
|
|
164
167
|
locale?: string | undefined;
|
|
165
168
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
166
169
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
167
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
170
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
168
171
|
variables?: VariableItem[] | undefined;
|
|
169
172
|
evalMode?: boolean | undefined;
|
|
170
173
|
} & {} & {
|
|
@@ -173,28 +176,28 @@ declare const _default: {
|
|
|
173
176
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
174
177
|
componentWillMount?(): void;
|
|
175
178
|
UNSAFE_componentWillMount?(): void;
|
|
176
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
179
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
177
180
|
variables?: VariableItem[] | undefined;
|
|
178
181
|
evalMode?: boolean | undefined;
|
|
179
182
|
} & {} & {
|
|
180
183
|
locale?: string | undefined;
|
|
181
184
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
182
185
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
183
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
186
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
184
187
|
variables?: VariableItem[] | undefined;
|
|
185
188
|
evalMode?: boolean | undefined;
|
|
186
189
|
} & {} & {
|
|
187
190
|
locale?: string | undefined;
|
|
188
191
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
189
192
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
190
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
193
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
191
194
|
variables?: VariableItem[] | undefined;
|
|
192
195
|
evalMode?: boolean | undefined;
|
|
193
196
|
} & {} & {
|
|
194
197
|
locale?: string | undefined;
|
|
195
198
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
196
199
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
197
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
200
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
198
201
|
variables?: VariableItem[] | undefined;
|
|
199
202
|
evalMode?: boolean | undefined;
|
|
200
203
|
} & {} & {
|
|
@@ -205,7 +208,7 @@ declare const _default: {
|
|
|
205
208
|
displayName: string;
|
|
206
209
|
contextType: React.Context<string>;
|
|
207
210
|
ComposedComponent: React.ComponentType<{
|
|
208
|
-
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
211
|
+
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
209
212
|
variables?: VariableItem[] | undefined;
|
|
210
213
|
evalMode?: boolean | undefined;
|
|
211
214
|
} & {} & {
|
|
@@ -217,7 +220,7 @@ declare const _default: {
|
|
|
217
220
|
getWrappedInstance(): any;
|
|
218
221
|
render(): React.JSX.Element;
|
|
219
222
|
context: unknown;
|
|
220
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
223
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
221
224
|
variables?: VariableItem[] | undefined;
|
|
222
225
|
evalMode?: boolean | undefined;
|
|
223
226
|
} & {} & {
|
|
@@ -225,7 +228,7 @@ declare const _default: {
|
|
|
225
228
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
226
229
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
227
230
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
228
|
-
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
231
|
+
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
229
232
|
variables?: VariableItem[] | undefined;
|
|
230
233
|
evalMode?: boolean | undefined;
|
|
231
234
|
} & {} & {
|
|
@@ -237,7 +240,7 @@ declare const _default: {
|
|
|
237
240
|
[key: string]: React.ReactInstance;
|
|
238
241
|
};
|
|
239
242
|
componentDidMount?(): void;
|
|
240
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
243
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
241
244
|
variables?: VariableItem[] | undefined;
|
|
242
245
|
evalMode?: boolean | undefined;
|
|
243
246
|
} & {} & {
|
|
@@ -246,14 +249,14 @@ declare const _default: {
|
|
|
246
249
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
247
250
|
componentWillUnmount?(): void;
|
|
248
251
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
249
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
252
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
250
253
|
variables?: VariableItem[] | undefined;
|
|
251
254
|
evalMode?: boolean | undefined;
|
|
252
255
|
} & {} & {
|
|
253
256
|
locale?: string | undefined;
|
|
254
257
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
255
258
|
}>, prevState: Readonly<{}>): any;
|
|
256
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
259
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
257
260
|
variables?: VariableItem[] | undefined;
|
|
258
261
|
evalMode?: boolean | undefined;
|
|
259
262
|
} & {} & {
|
|
@@ -262,28 +265,28 @@ declare const _default: {
|
|
|
262
265
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
263
266
|
componentWillMount?(): void;
|
|
264
267
|
UNSAFE_componentWillMount?(): void;
|
|
265
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
268
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
266
269
|
variables?: VariableItem[] | undefined;
|
|
267
270
|
evalMode?: boolean | undefined;
|
|
268
271
|
} & {} & {
|
|
269
272
|
locale?: string | undefined;
|
|
270
273
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
271
274
|
}>, nextContext: any): void;
|
|
272
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
275
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
273
276
|
variables?: VariableItem[] | undefined;
|
|
274
277
|
evalMode?: boolean | undefined;
|
|
275
278
|
} & {} & {
|
|
276
279
|
locale?: string | undefined;
|
|
277
280
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
278
281
|
}>, nextContext: any): void;
|
|
279
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
282
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
280
283
|
variables?: VariableItem[] | undefined;
|
|
281
284
|
evalMode?: boolean | undefined;
|
|
282
285
|
} & {} & {
|
|
283
286
|
locale?: string | undefined;
|
|
284
287
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
285
288
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
286
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
289
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
287
290
|
variables?: VariableItem[] | undefined;
|
|
288
291
|
evalMode?: boolean | undefined;
|
|
289
292
|
} & {} & {
|
|
@@ -298,7 +301,7 @@ declare const _default: {
|
|
|
298
301
|
ComposedComponent: typeof FormulaEditor;
|
|
299
302
|
}>;
|
|
300
303
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
301
|
-
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
304
|
+
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
302
305
|
variables?: VariableItem[] | undefined;
|
|
303
306
|
evalMode?: boolean | undefined;
|
|
304
307
|
} & {} & {
|
|
@@ -310,7 +313,7 @@ declare const _default: {
|
|
|
310
313
|
getWrappedInstance(): any;
|
|
311
314
|
render(): React.JSX.Element;
|
|
312
315
|
context: unknown;
|
|
313
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
316
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
314
317
|
variables?: VariableItem[] | undefined;
|
|
315
318
|
evalMode?: boolean | undefined;
|
|
316
319
|
} & {} & {
|
|
@@ -318,7 +321,7 @@ declare const _default: {
|
|
|
318
321
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
319
322
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
320
323
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
321
|
-
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
324
|
+
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
322
325
|
variables?: VariableItem[] | undefined;
|
|
323
326
|
evalMode?: boolean | undefined;
|
|
324
327
|
} & {} & {
|
|
@@ -330,7 +333,7 @@ declare const _default: {
|
|
|
330
333
|
[key: string]: React.ReactInstance;
|
|
331
334
|
};
|
|
332
335
|
componentDidMount?(): void;
|
|
333
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
336
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
334
337
|
variables?: VariableItem[] | undefined;
|
|
335
338
|
evalMode?: boolean | undefined;
|
|
336
339
|
} & {} & {
|
|
@@ -339,14 +342,14 @@ declare const _default: {
|
|
|
339
342
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
340
343
|
componentWillUnmount?(): void;
|
|
341
344
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
342
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
345
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
343
346
|
variables?: VariableItem[] | undefined;
|
|
344
347
|
evalMode?: boolean | undefined;
|
|
345
348
|
} & {} & {
|
|
346
349
|
locale?: string | undefined;
|
|
347
350
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
348
351
|
}>, prevState: Readonly<{}>): any;
|
|
349
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
352
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
350
353
|
variables?: VariableItem[] | undefined;
|
|
351
354
|
evalMode?: boolean | undefined;
|
|
352
355
|
} & {} & {
|
|
@@ -355,28 +358,28 @@ declare const _default: {
|
|
|
355
358
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
356
359
|
componentWillMount?(): void;
|
|
357
360
|
UNSAFE_componentWillMount?(): void;
|
|
358
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
361
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
359
362
|
variables?: VariableItem[] | undefined;
|
|
360
363
|
evalMode?: boolean | undefined;
|
|
361
364
|
} & {} & {
|
|
362
365
|
locale?: string | undefined;
|
|
363
366
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
364
367
|
}>, nextContext: any): void;
|
|
365
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
368
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
366
369
|
variables?: VariableItem[] | undefined;
|
|
367
370
|
evalMode?: boolean | undefined;
|
|
368
371
|
} & {} & {
|
|
369
372
|
locale?: string | undefined;
|
|
370
373
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
371
374
|
}>, nextContext: any): void;
|
|
372
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
375
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
373
376
|
variables?: VariableItem[] | undefined;
|
|
374
377
|
evalMode?: boolean | undefined;
|
|
375
378
|
} & {} & {
|
|
376
379
|
locale?: string | undefined;
|
|
377
380
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
378
381
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
379
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
382
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
380
383
|
variables?: VariableItem[] | undefined;
|
|
381
384
|
evalMode?: boolean | undefined;
|
|
382
385
|
} & {} & {
|
|
@@ -391,7 +394,7 @@ declare const _default: {
|
|
|
391
394
|
ComposedComponent: typeof FormulaEditor;
|
|
392
395
|
}, {}> & {
|
|
393
396
|
ComposedComponent: {
|
|
394
|
-
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
397
|
+
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
395
398
|
variables?: VariableItem[] | undefined;
|
|
396
399
|
evalMode?: boolean | undefined;
|
|
397
400
|
} & {} & {
|
|
@@ -403,7 +406,7 @@ declare const _default: {
|
|
|
403
406
|
getWrappedInstance(): any;
|
|
404
407
|
render(): React.JSX.Element;
|
|
405
408
|
context: unknown;
|
|
406
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
409
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
407
410
|
variables?: VariableItem[] | undefined;
|
|
408
411
|
evalMode?: boolean | undefined;
|
|
409
412
|
} & {} & {
|
|
@@ -411,7 +414,7 @@ declare const _default: {
|
|
|
411
414
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
412
415
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
413
416
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
414
|
-
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
417
|
+
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
415
418
|
variables?: VariableItem[] | undefined;
|
|
416
419
|
evalMode?: boolean | undefined;
|
|
417
420
|
} & {} & {
|
|
@@ -423,7 +426,7 @@ declare const _default: {
|
|
|
423
426
|
[key: string]: React.ReactInstance;
|
|
424
427
|
};
|
|
425
428
|
componentDidMount?(): void;
|
|
426
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
429
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
427
430
|
variables?: VariableItem[] | undefined;
|
|
428
431
|
evalMode?: boolean | undefined;
|
|
429
432
|
} & {} & {
|
|
@@ -432,14 +435,14 @@ declare const _default: {
|
|
|
432
435
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
433
436
|
componentWillUnmount?(): void;
|
|
434
437
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
435
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
438
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
436
439
|
variables?: VariableItem[] | undefined;
|
|
437
440
|
evalMode?: boolean | undefined;
|
|
438
441
|
} & {} & {
|
|
439
442
|
locale?: string | undefined;
|
|
440
443
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
441
444
|
}>, prevState: Readonly<{}>): any;
|
|
442
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
445
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
443
446
|
variables?: VariableItem[] | undefined;
|
|
444
447
|
evalMode?: boolean | undefined;
|
|
445
448
|
} & {} & {
|
|
@@ -448,28 +451,28 @@ declare const _default: {
|
|
|
448
451
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
449
452
|
componentWillMount?(): void;
|
|
450
453
|
UNSAFE_componentWillMount?(): void;
|
|
451
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
454
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
452
455
|
variables?: VariableItem[] | undefined;
|
|
453
456
|
evalMode?: boolean | undefined;
|
|
454
457
|
} & {} & {
|
|
455
458
|
locale?: string | undefined;
|
|
456
459
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
457
460
|
}>, nextContext: any): void;
|
|
458
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
461
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
459
462
|
variables?: VariableItem[] | undefined;
|
|
460
463
|
evalMode?: boolean | undefined;
|
|
461
464
|
} & {} & {
|
|
462
465
|
locale?: string | undefined;
|
|
463
466
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
464
467
|
}>, nextContext: any): void;
|
|
465
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
468
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
466
469
|
variables?: VariableItem[] | undefined;
|
|
467
470
|
evalMode?: boolean | undefined;
|
|
468
471
|
} & {} & {
|
|
469
472
|
locale?: string | undefined;
|
|
470
473
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
471
474
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
472
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
475
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions"> & {
|
|
473
476
|
variables?: VariableItem[] | undefined;
|
|
474
477
|
evalMode?: boolean | undefined;
|
|
475
478
|
} & {} & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.3.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -11,7 +11,6 @@ var tslib = require('tslib');
|
|
|
11
11
|
var React = require('react');
|
|
12
12
|
var amisCore = require('amis-core');
|
|
13
13
|
var amisFormula = require('amis-formula');
|
|
14
|
-
var doc = require('amis-formula/lib/doc');
|
|
15
14
|
var plugin = require('./plugin.js');
|
|
16
15
|
var FuncList = require('./FuncList.js');
|
|
17
16
|
var VariableList = require('./VariableList.js');
|
|
@@ -23,6 +22,9 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
23
22
|
|
|
24
23
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
25
24
|
|
|
25
|
+
var __react_jsx__ = require('react');
|
|
26
|
+
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
|
|
27
|
+
(__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
26
28
|
var FormulaEditor = /** @class */ (function (_super) {
|
|
27
29
|
tslib.__extends(FormulaEditor, _super);
|
|
28
30
|
function FormulaEditor() {
|
|
@@ -31,8 +33,10 @@ var FormulaEditor = /** @class */ (function (_super) {
|
|
|
31
33
|
focused: false,
|
|
32
34
|
isCodeMode: false,
|
|
33
35
|
expandTree: false,
|
|
34
|
-
normalizeVariables: []
|
|
36
|
+
normalizeVariables: [],
|
|
37
|
+
functions: []
|
|
35
38
|
};
|
|
39
|
+
_this.unmounted = false;
|
|
36
40
|
return _this;
|
|
37
41
|
}
|
|
38
42
|
FormulaEditor.buildDefaultFunctions = function (doc) {
|
|
@@ -116,15 +120,43 @@ var FormulaEditor = /** @class */ (function (_super) {
|
|
|
116
120
|
FormulaEditor.prototype.componentDidMount = function () {
|
|
117
121
|
var variables = this.props.variables;
|
|
118
122
|
this.normalizeVariables(variables);
|
|
123
|
+
this.buildFunctions();
|
|
119
124
|
};
|
|
120
125
|
FormulaEditor.prototype.componentDidUpdate = function (prevProps, prevState, snapshot) {
|
|
121
126
|
if (prevProps.variables !== this.props.variables) {
|
|
122
127
|
this.normalizeVariables(this.props.variables);
|
|
123
128
|
}
|
|
129
|
+
if (prevProps.functions !== this.props.functions) {
|
|
130
|
+
this.buildFunctions();
|
|
131
|
+
}
|
|
124
132
|
};
|
|
125
133
|
FormulaEditor.prototype.componentWillUnmount = function () {
|
|
126
134
|
var _a;
|
|
127
135
|
(_a = this.editorPlugin) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
136
|
+
this.unmounted = true;
|
|
137
|
+
};
|
|
138
|
+
FormulaEditor.prototype.buildFunctions = function () {
|
|
139
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
140
|
+
var doc, customFunctions, functionList;
|
|
141
|
+
return tslib.__generator(this, function (_a) {
|
|
142
|
+
switch (_a.label) {
|
|
143
|
+
case 0: return [4 /*yield*/, Promise.resolve().then(function() {return new Promise(function(fullfill) {require(['amis-formula/lib/doc'], function(mod) {fullfill(tslib.__importStar(mod))})})})];
|
|
144
|
+
case 1:
|
|
145
|
+
doc = (_a.sent()).doc;
|
|
146
|
+
if (this.unmounted) {
|
|
147
|
+
return [2 /*return*/];
|
|
148
|
+
}
|
|
149
|
+
customFunctions = Array.isArray(this.props.functions)
|
|
150
|
+
? this.props.functions
|
|
151
|
+
: [];
|
|
152
|
+
functionList = tslib.__spreadArray(tslib.__spreadArray(tslib.__spreadArray([], tslib.__read(FormulaEditor.buildDefaultFunctions(doc)), false), tslib.__read(FormulaEditor.buildCustomFunctions(amisFormula.functionDocs)), false), tslib.__read(customFunctions), false);
|
|
153
|
+
this.setState({
|
|
154
|
+
functions: functionList
|
|
155
|
+
});
|
|
156
|
+
return [2 /*return*/];
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
});
|
|
128
160
|
};
|
|
129
161
|
FormulaEditor.prototype.normalizeVariables = function (variables) {
|
|
130
162
|
if (!variables) {
|
|
@@ -139,7 +171,7 @@ var FormulaEditor = /** @class */ (function (_super) {
|
|
|
139
171
|
? prev
|
|
140
172
|
: "".concat(prev).concat(prev ? '.' : '').concat((_a = next.label) !== null && _a !== void 0 ? _a : next.value);
|
|
141
173
|
}, '');
|
|
142
|
-
return tslib.__assign(tslib.__assign(tslib.__assign({}, item), { path: "".concat(path).concat(path ? '.' : '').concat(item.label) }), (item.isMember
|
|
174
|
+
return tslib.__assign(tslib.__assign(tslib.__assign({}, item), { path: "".concat(path).concat(path ? '.' : '').concat(item.label) }), (item.isMember || paths.some(function (item) { return item.isMember; })
|
|
143
175
|
? {
|
|
144
176
|
memberDepth: (_a = paths === null || paths === void 0 ? void 0 : paths.filter(function (item) { return item.type === 'array'; })) === null || _a === void 0 ? void 0 : _a.length
|
|
145
177
|
}
|
|
@@ -227,30 +259,28 @@ var FormulaEditor = /** @class */ (function (_super) {
|
|
|
227
259
|
this.setState({ expandTree: expand });
|
|
228
260
|
};
|
|
229
261
|
FormulaEditor.prototype.render = function () {
|
|
230
|
-
var _a = this.props, header = _a.header, value = _a.value
|
|
231
|
-
var _b = this.state, focused = _b.focused, isCodeMode = _b.isCodeMode, expandTree = _b.expandTree, normalizeVariables = _b.normalizeVariables;
|
|
232
|
-
|
|
233
|
-
var functionList = tslib.__spreadArray(tslib.__spreadArray(tslib.__spreadArray([], tslib.__read(FormulaEditor.buildDefaultFunctions(doc.doc)), false), tslib.__read(FormulaEditor.buildCustomFunctions(amisFormula.functionDocs)), false), tslib.__read(customFunctions), false);
|
|
234
|
-
return (React__default["default"].createElement("div", { className: cx("FormulaEditor", {
|
|
262
|
+
var _a = this.props, header = _a.header, value = _a.value; _a.functions; var variableMode = _a.variableMode, __ = _a.translate, cx = _a.classnames, variableClassName = _a.variableClassName, functionClassName = _a.functionClassName, classPrefix = _a.classPrefix, selfVariableName = _a.selfVariableName;
|
|
263
|
+
var _b = this.state, focused = _b.focused, isCodeMode = _b.isCodeMode, expandTree = _b.expandTree, normalizeVariables = _b.normalizeVariables, functionList = _b.functions;
|
|
264
|
+
return (_J$X_("div", { className: cx("FormulaEditor", {
|
|
235
265
|
'is-focused': focused
|
|
236
266
|
}) },
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
267
|
+
_J$X_("section", { className: cx('FormulaEditor-settings') },
|
|
268
|
+
_J$X_(FuncList["default"], { className: functionClassName, title: __('FormulaEditor.function'), data: functionList, onSelect: this.handleFunctionSelect }),
|
|
269
|
+
_J$X_("div", { className: cx("FormulaEditor-content") },
|
|
270
|
+
_J$X_("header", { className: cx("FormulaEditor-header") },
|
|
241
271
|
__(header || 'FormulaEditor.title'),
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
variableMode !== 'tabs' ? (
|
|
272
|
+
_J$X_("div", { className: cx("FormulaEditor-header-toolbar") },
|
|
273
|
+
_J$X_("span", null, "\u6E90\u7801\u6A21\u5F0F"),
|
|
274
|
+
_J$X_(Switch["default"], { value: isCodeMode, onChange: this.handleIsCodeModeChange }))),
|
|
275
|
+
_J$X_(CodeMirror.CodeMirrorEditor, { className: cx('FormulaEditor-editor'), value: value, onChange: this.handleOnChange, editorFactory: this.editorFactory, editorDidMount: this.handleEditorMounted, onFocus: this.handleFocus, onBlur: this.handleBlur })),
|
|
276
|
+
_J$X_("div", { className: cx('FormulaEditor-panel', 'right') },
|
|
277
|
+
variableMode !== 'tabs' ? (_J$X_("div", { className: cx('FormulaEditor-panel-header') },
|
|
248
278
|
__('FormulaEditor.variable'),
|
|
249
|
-
variableMode === 'tree' ? (
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
279
|
+
variableMode === 'tree' ? (_J$X_("div", { className: cx("FormulaEditor-header-toolbar") },
|
|
280
|
+
_J$X_("span", null, "\u5C55\u5F00\u5168\u90E8"),
|
|
281
|
+
_J$X_(Switch["default"], { value: expandTree, onChange: this.handleExpandTreeChange }))) : null)) : null,
|
|
282
|
+
_J$X_("div", { className: cx('FormulaEditor-panel-body', variableMode && "FormulaEditor-panel-body--".concat(variableMode)) },
|
|
283
|
+
_J$X_(VariableList["default"], { classPrefix: classPrefix, className: cx('FormulaEditor-VariableList', 'FormulaEditor-VariableList-root', variableClassName), expandTree: expandTree, selectMode: variableMode, data: normalizeVariables, onSelect: this.handleVariableSelect, selfVariableName: selfVariableName }))))));
|
|
254
284
|
};
|
|
255
285
|
FormulaEditor.defaultProps = {
|
|
256
286
|
variables: [],
|