amis-ui 3.1.0 → 3.2.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.d.ts +1 -1
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.js +27 -23
- 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.d.ts +41 -40
- package/esm/components/CalendarMobile.js +21 -5
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.d.ts +4 -3
- package/esm/components/Cascader.js +106 -105
- package/esm/components/ChainedDropdownSelection.d.ts +559 -0
- package/esm/components/ChainedDropdownSelection.js +104 -0
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.d.ts +11 -10
- package/esm/components/Checkbox.js +3 -2
- package/esm/components/CityArea.js +3 -3
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.d.ts +22 -0
- package/esm/components/Collapse.js +10 -6
- package/esm/components/CollapseGroup.d.ts +23 -1
- package/esm/components/CollapseGroup.js +19 -14
- package/esm/components/ColorPicker.d.ts +4 -0
- package/esm/components/ColorPicker.js +32 -5
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConfirmBox.d.ts +42 -41
- package/esm/components/ConfirmBox.js +11 -4
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +43 -40
- package/esm/components/DatePicker.js +5 -5
- package/esm/components/DateRangePicker.d.ts +40 -40
- package/esm/components/DateRangePicker.js +41 -20
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.js +1 -1
- package/esm/components/DropDownSelection.d.ts +555 -0
- package/esm/components/DropDownSelection.js +77 -0
- 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.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.d.ts +11 -10
- package/esm/components/InputBox.js +5 -3
- package/esm/components/InputBoxWithSuggestion.d.ts +1 -0
- package/esm/components/InputBoxWithSuggestion.js +3 -3
- package/esm/components/InputTable.js +3 -3
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.d.ts +41 -40
- package/esm/components/ListMenu.js +6 -5
- package/esm/components/LocationPicker.d.ts +44 -40
- package/esm/components/LocationPicker.js +35 -8
- 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 +12 -15
- package/esm/components/NumberInput.js +9 -5
- package/esm/components/Pagination.d.ts +46 -41
- package/esm/components/Pagination.js +13 -4
- package/esm/components/Picker.js +3 -3
- package/esm/components/PickerColumn.d.ts +1 -1
- package/esm/components/PickerColumn.js +2 -2
- package/esm/components/PickerContainer.d.ts +1 -0
- package/esm/components/PickerContainer.js +4 -4
- package/esm/components/PopOverContainer.d.ts +3 -0
- package/esm/components/PopOverContainer.js +14 -3
- package/esm/components/PopUp.js +3 -3
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.d.ts +10 -10
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.d.ts +2 -1
- package/esm/components/Range.js +65 -14
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.d.ts +83 -41
- package/esm/components/ResultBox.js +6 -5
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.d.ts +40 -40
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.d.ts +41 -40
- package/esm/components/SearchBox.js +5 -4
- package/esm/components/Select.d.ts +580 -580
- package/esm/components/Select.js +13 -8
- package/esm/components/SelectMobile.d.ts +37 -0
- package/esm/components/SelectMobile.js +362 -0
- package/esm/components/Selection.js +1 -1
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.js +1 -1
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.js +1 -1
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.d.ts +52 -40
- package/esm/components/Tabs.js +87 -12
- package/esm/components/TabsTransfer.d.ts +41 -40
- package/esm/components/TabsTransfer.js +7 -6
- package/esm/components/TabsTransferPicker.d.ts +2 -0
- package/esm/components/TabsTransferPicker.js +8 -8
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.d.ts +41 -40
- package/esm/components/Textarea.js +1 -1
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +1 -1
- package/esm/components/Tinymce.js +1 -1
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.d.ts +1 -1
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.d.ts +94 -92
- package/esm/components/Transfer.js +20 -15
- package/esm/components/TransferDropDown.d.ts +84 -80
- package/esm/components/TransferDropDown.js +52 -18
- package/esm/components/TransferPicker.d.ts +2 -0
- package/esm/components/TransferPicker.js +8 -8
- package/esm/components/TransferSearch.js +2 -2
- package/esm/components/Tree.d.ts +41 -40
- package/esm/components/Tree.js +25 -16
- package/esm/components/TreeSelection.js +3 -3
- package/esm/components/UserSelect.d.ts +40 -40
- package/esm/components/UserSelect.js +17 -9
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.js +7 -7
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.d.ts +2 -0
- package/esm/components/calendar/Calendar.js +8 -4
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.d.ts +3 -0
- package/esm/components/calendar/DaysView.js +17 -5
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.d.ts +11 -0
- package/esm/components/calendar/QuartersView.js +47 -5
- package/esm/components/calendar/TimeView.js +4 -2
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.d.ts +1 -1
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.d.ts +3 -7
- package/esm/components/condition-builder/Field.js +14 -72
- package/esm/components/condition-builder/Formula.js +2 -2
- package/esm/components/condition-builder/Func.js +2 -2
- package/esm/components/condition-builder/Group.d.ts +10 -1
- package/esm/components/condition-builder/Group.js +9 -5
- package/esm/components/condition-builder/GroupOrItem.d.ts +10 -1
- package/esm/components/condition-builder/GroupOrItem.js +9 -6
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.d.ts +1 -1
- package/esm/components/condition-builder/Item.js +5 -6
- package/esm/components/condition-builder/Value.js +7 -7
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.d.ts +10 -1
- package/esm/components/condition-builder/index.js +8 -4
- package/esm/components/formula/Editor.d.ts +54 -40
- package/esm/components/formula/Editor.js +94 -21
- package/esm/components/formula/FuncList.js +19 -9
- package/esm/components/formula/Picker.d.ts +43 -41
- package/esm/components/formula/Picker.js +39 -17
- package/esm/components/formula/VariableList.d.ts +1 -0
- package/esm/components/formula/VariableList.js +107 -23
- package/esm/components/formula/plugin.d.ts +4 -2
- package/esm/components/formula/plugin.js +49 -25
- package/esm/components/icons.js +1 -1
- package/esm/components/json-schema/Array.js +5 -3
- package/esm/components/json-schema/Item.js +4 -4
- package/esm/components/json-schema/Object.js +8 -4
- package/esm/components/json-schema/index.d.ts +1 -0
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.js +3 -2
- package/esm/components/menu/SubMenu.js +3 -3
- package/esm/components/menu/index.d.ts +15 -10
- package/esm/components/menu/index.js +34 -14
- package/esm/components/schema-editor/Array.js +3 -3
- package/esm/components/schema-editor/Common.d.ts +1 -0
- package/esm/components/schema-editor/Common.js +7 -7
- package/esm/components/schema-editor/Item.d.ts +1 -0
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.js +5 -5
- 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 +41 -40
- package/esm/components/schema-editor/index.js +3 -3
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.js +1 -1
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.d.ts +5 -2
- package/esm/components/table/HeadCellSort.js +11 -11
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/index.d.ts +1 -1
- package/esm/components/table/index.js +1 -1
- package/esm/components/virtual-list/AutoSizer.js +1 -1
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-sub-form.js +1 -1
- package/esm/hooks/use-touch.js +1 -1
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +1 -1
- package/esm/icons/alert-danger.svg.js +1 -1
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +1 -1
- package/esm/icons/alert-warning.svg.js +1 -1
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check.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 +3 -1
- package/esm/locale/en-US.js +3 -1
- package/esm/locale/zh-CN.js +4 -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 +4 -3
- package/esm/node_modules/rc-overflow/es/RawItem.js +2 -2
- package/esm/node_modules/rc-overflow/es/context.js +10 -0
- 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 +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/useEvent.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useLayoutEffect.js +16 -2
- 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.d.ts +120 -120
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.d.ts +20 -20
- package/lib/components/Alert2.js +1 -1
- package/lib/components/AnchorNav.d.ts +20 -20
- package/lib/components/AnchorNav.js +1 -1
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.d.ts +10 -10
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +120 -120
- package/lib/components/AssociatedSelection.js +1 -1
- package/lib/components/Avatar.d.ts +110 -110
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.d.ts +1 -1
- package/lib/components/Badge.js +1 -1
- package/lib/components/BaiduMapPicker.js +27 -23
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.d.ts +30 -30
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.d.ts +41 -40
- package/lib/components/CalendarMobile.js +21 -5
- package/lib/components/Card.d.ts +100 -100
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.d.ts +4 -3
- package/lib/components/Cascader.js +105 -104
- package/lib/components/ChainedDropdownSelection.d.ts +559 -0
- package/lib/components/ChainedDropdownSelection.js +114 -0
- package/lib/components/ChainedSelection.d.ts +120 -120
- package/lib/components/ChainedSelection.js +1 -1
- package/lib/components/Checkbox.d.ts +11 -10
- package/lib/components/Checkbox.js +2 -1
- package/lib/components/CityArea.js +3 -3
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.d.ts +152 -130
- package/lib/components/Collapse.js +9 -5
- package/lib/components/CollapseGroup.d.ts +53 -31
- package/lib/components/CollapseGroup.js +18 -13
- package/lib/components/ColorPicker.d.ts +84 -80
- package/lib/components/ColorPicker.js +32 -5
- package/lib/components/Combo.js +1 -1
- package/lib/components/ConfirmBox.d.ts +82 -81
- package/lib/components/ConfirmBox.js +10 -3
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +124 -121
- package/lib/components/DatePicker.js +5 -5
- package/lib/components/DateRangePicker.d.ts +280 -280
- package/lib/components/DateRangePicker.js +40 -19
- package/lib/components/DndContainer.js +1 -1
- package/lib/components/Drawer.d.ts +30 -30
- package/lib/components/Drawer.js +1 -1
- package/lib/components/DropDownSelection.d.ts +555 -0
- package/lib/components/DropDownSelection.js +85 -0
- package/lib/components/Editor.d.ts +120 -120
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.js +1 -1
- package/lib/components/GaodeMapPicker.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.d.ts +120 -120
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.d.ts +40 -40
- package/lib/components/ImageGallery.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +21 -20
- package/lib/components/InputBox.js +4 -2
- package/lib/components/InputBoxWithSuggestion.d.ts +1 -0
- package/lib/components/InputBoxWithSuggestion.js +3 -3
- package/lib/components/InputTable.js +3 -3
- package/lib/components/Layout.d.ts +10 -10
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +81 -80
- package/lib/components/ListMenu.js +5 -4
- package/lib/components/LocationPicker.d.ts +84 -80
- package/lib/components/LocationPicker.js +34 -7
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Modal.d.ts +80 -80
- package/lib/components/Modal.js +1 -1
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +200 -200
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +28 -31
- package/lib/components/NumberInput.js +8 -4
- package/lib/components/Pagination.d.ts +86 -81
- package/lib/components/Pagination.js +12 -3
- package/lib/components/Picker.js +3 -3
- package/lib/components/PickerColumn.d.ts +1 -1
- package/lib/components/PickerColumn.js +2 -2
- package/lib/components/PickerContainer.d.ts +1 -0
- package/lib/components/PickerContainer.js +4 -4
- package/lib/components/PopOverContainer.d.ts +3 -0
- package/lib/components/PopOverContainer.js +14 -3
- package/lib/components/PopUp.d.ts +80 -80
- package/lib/components/PopUp.js +3 -3
- package/lib/components/Progress.d.ts +60 -60
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.d.ts +30 -30
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.d.ts +2 -1
- package/lib/components/Range.js +64 -13
- package/lib/components/Rating.d.ts +30 -30
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +123 -81
- package/lib/components/ResultBox.js +6 -5
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.d.ts +120 -120
- 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 +81 -80
- package/lib/components/SearchBox.js +4 -3
- package/lib/components/Select.d.ts +1738 -1738
- package/lib/components/Select.js +12 -7
- package/lib/components/SelectMobile.d.ts +37 -0
- package/lib/components/SelectMobile.js +371 -0
- package/lib/components/Selection.d.ts +120 -120
- package/lib/components/Selection.js +1 -1
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.d.ts +70 -70
- package/lib/components/Spinner.js +1 -1
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +10 -10
- package/lib/components/Switch.js +1 -1
- package/lib/components/TableSelection.d.ts +120 -120
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +92 -80
- package/lib/components/Tabs.js +86 -11
- package/lib/components/TabsTransfer.d.ts +41 -40
- package/lib/components/TabsTransfer.js +6 -5
- package/lib/components/TabsTransferPicker.d.ts +2 -0
- package/lib/components/TabsTransferPicker.js +7 -7
- package/lib/components/Tag.d.ts +70 -70
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +41 -40
- package/lib/components/Textarea.js +1 -1
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +1 -1
- package/lib/components/Tinymce.js +1 -1
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.d.ts +80 -80
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.d.ts +31 -31
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +134 -132
- package/lib/components/Transfer.js +19 -14
- package/lib/components/TransferDropDown.d.ts +124 -120
- package/lib/components/TransferDropDown.js +52 -18
- package/lib/components/TransferPicker.d.ts +2 -0
- package/lib/components/TransferPicker.js +7 -7
- package/lib/components/TransferSearch.js +2 -2
- package/lib/components/Tree.d.ts +161 -160
- package/lib/components/Tree.js +24 -15
- package/lib/components/TreeSelection.d.ts +120 -120
- package/lib/components/TreeSelection.js +3 -3
- package/lib/components/UserSelect.d.ts +80 -80
- package/lib/components/UserSelect.js +16 -8
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/WithRemoteConfig.d.ts +1 -0
- package/lib/components/WithRemoteConfig.js +7 -7
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.d.ts +2 -0
- package/lib/components/calendar/Calendar.js +7 -3
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.d.ts +3 -0
- package/lib/components/calendar/DaysView.js +17 -5
- package/lib/components/calendar/MonthsView.js +1 -1
- package/lib/components/calendar/QuartersView.d.ts +11 -0
- package/lib/components/calendar/QuartersView.js +45 -3
- package/lib/components/calendar/TimeView.js +4 -2
- package/lib/components/calendar/YearsView.js +1 -1
- package/lib/components/condition-builder/Expression.d.ts +1 -1
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.d.ts +3 -7
- package/lib/components/condition-builder/Field.js +13 -71
- package/lib/components/condition-builder/Formula.js +2 -2
- package/lib/components/condition-builder/Func.js +2 -2
- package/lib/components/condition-builder/Group.d.ts +10 -1
- package/lib/components/condition-builder/Group.js +9 -5
- package/lib/components/condition-builder/GroupOrItem.d.ts +10 -1
- package/lib/components/condition-builder/GroupOrItem.js +8 -5
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.d.ts +1 -1
- package/lib/components/condition-builder/Item.js +4 -5
- package/lib/components/condition-builder/Value.js +7 -7
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.d.ts +10 -1
- package/lib/components/condition-builder/index.js +8 -4
- package/lib/components/formula/Editor.d.ts +54 -40
- package/lib/components/formula/Editor.js +92 -19
- package/lib/components/formula/FuncList.js +19 -9
- package/lib/components/formula/Picker.d.ts +44 -42
- package/lib/components/formula/Picker.js +38 -16
- package/lib/components/formula/VariableList.d.ts +1 -0
- package/lib/components/formula/VariableList.js +104 -20
- package/lib/components/formula/plugin.d.ts +4 -2
- package/lib/components/formula/plugin.js +48 -24
- package/lib/components/icons.js +1 -1
- package/lib/components/json-schema/Array.js +4 -2
- package/lib/components/json-schema/Item.js +4 -4
- package/lib/components/json-schema/Object.js +7 -3
- package/lib/components/json-schema/index.d.ts +1 -0
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.js +3 -2
- package/lib/components/menu/SubMenu.js +3 -3
- package/lib/components/menu/index.d.ts +85 -80
- package/lib/components/menu/index.js +34 -14
- package/lib/components/schema-editor/Array.js +3 -3
- package/lib/components/schema-editor/Common.d.ts +1 -0
- package/lib/components/schema-editor/Common.js +7 -7
- package/lib/components/schema-editor/Item.d.ts +1 -0
- package/lib/components/schema-editor/Item.js +1 -1
- package/lib/components/schema-editor/Object.js +5 -5
- 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 +41 -40
- package/lib/components/schema-editor/index.js +3 -3
- package/lib/components/table/Cell.d.ts +40 -40
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.d.ts +40 -40
- package/lib/components/table/HeadCellFilter.js +1 -1
- package/lib/components/table/HeadCellSelect.d.ts +40 -40
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.d.ts +5 -2
- package/lib/components/table/HeadCellSort.js +11 -11
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/index.d.ts +81 -81
- package/lib/components/table/index.js +1 -1
- package/lib/components/virtual-list/AutoSizer.js +1 -1
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/helper.css +9569 -1234
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-sub-form.js +1 -1
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +1 -1
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +1 -1
- package/lib/icons/alert-warning.svg.js +1 -1
- package/lib/icons/back.svg.js +1 -1
- package/lib/icons/calendar.svg.js +1 -1
- package/lib/icons/caret.svg.js +1 -1
- package/lib/icons/check.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 +3 -1
- package/lib/locale/en-US.js +3 -1
- package/lib/locale/zh-CN.js +4 -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 +5 -5
- package/lib/node_modules/rc-overflow/es/RawItem.js +7 -7
- package/lib/node_modules/rc-overflow/es/context.js +18 -0
- 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 +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/useEvent.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useLayoutEffect.js +16 -2
- 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 +1177 -442
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +1177 -442
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +1177 -442
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +1177 -442
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +1177 -442
- package/package.json +9 -4
- package/scss/_components.scss +13 -3
- package/scss/_properties.scss +24 -0
- package/scss/components/_button-group.scss +1 -0
- package/scss/components/_calendar.scss +24 -14
- package/scss/components/_cascader.scss +26 -3
- package/scss/components/_city-area.scss +6 -0
- package/scss/components/_collapse-group.scss +11 -1
- package/scss/components/_collapse.scss +34 -1
- package/scss/components/_column-toggler.scss +7 -5
- package/scss/components/_condition-builder.scss +29 -3
- package/scss/components/_crud.scss +22 -12
- package/scss/components/_dropdown.scss +8 -5
- package/scss/components/_formula.scss +100 -34
- package/scss/components/_input-box.scss +24 -0
- package/scss/components/_json-schema.scss +28 -0
- package/scss/components/_list-menu.scss +40 -0
- package/scss/components/_nav.scss +1 -0
- package/scss/components/_panel.scss +1 -1
- package/scss/components/_picker-columns.scss +2 -4
- package/scss/components/_popup.scss +8 -1
- package/scss/components/_result-box.scss +5 -0
- package/scss/components/_search-box.scss +6 -0
- package/scss/components/_table.scss +23 -0
- package/scss/components/_tabs.scss +12 -0
- package/scss/components/form/_checks.scss +8 -0
- package/scss/components/form/_color.scss +31 -5
- package/scss/components/form/_combo.scss +27 -0
- package/scss/components/form/_date-range.scss +24 -5
- package/scss/components/form/_date.scss +10 -10
- package/scss/components/form/_editor.scss +4 -0
- package/scss/components/form/_fieldset.scss +13 -0
- package/scss/components/form/_form.scss +253 -110
- package/scss/components/form/_input-group.scss +6 -0
- package/scss/components/form/_location.scss +39 -0
- package/scss/components/form/_matrix.scss +2 -0
- package/scss/components/form/_nested-select.scss +6 -1
- package/scss/components/form/_number.scss +8 -0
- package/scss/components/form/_picker.scss +12 -0
- package/scss/components/form/_range.scss +47 -5
- package/scss/components/form/_select.scss +39 -1
- package/scss/components/form/_selection.scss +38 -2
- package/scss/components/form/_text.scss +5 -6
- package/scss/components/form/_transfer.scss +50 -1
- package/scss/components/form/_tree.scss +34 -4
- package/scss/components/react-datetime.scss +8 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="hoist-non-react-statics" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FormulaEditorProps, FuncGroup, VariableItem } from './Editor';
|
|
4
|
-
export interface FormulaPickerProps extends FormulaEditorProps {
|
|
4
|
+
export interface FormulaPickerProps extends Omit<FormulaEditorProps, 'variables'> {
|
|
5
5
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
6
6
|
/**
|
|
7
7
|
* 混合模式,意味着这个输入框既可以输入不同文本
|
|
@@ -74,6 +74,8 @@ export interface FormulaPickerProps extends FormulaEditorProps {
|
|
|
74
74
|
onConfirm?: (value?: any) => void;
|
|
75
75
|
onRef?: (node: any) => void;
|
|
76
76
|
popOverContainer?: any;
|
|
77
|
+
useMobileUI?: boolean;
|
|
78
|
+
variables?: Array<VariableItem> | string | ((props: any) => Array<VariableItem>);
|
|
77
79
|
}
|
|
78
80
|
export interface FormulaPickerState {
|
|
79
81
|
isOpened: boolean;
|
|
@@ -106,7 +108,7 @@ export declare class FormulaPicker extends React.Component<FormulaPickerProps, F
|
|
|
106
108
|
render(): React.JSX.Element;
|
|
107
109
|
}
|
|
108
110
|
declare const _default: {
|
|
109
|
-
new (props: Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
111
|
+
new (props: Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
110
112
|
evalMode?: boolean | undefined;
|
|
111
113
|
} & {} & {
|
|
112
114
|
locale?: string | undefined;
|
|
@@ -117,14 +119,14 @@ declare const _default: {
|
|
|
117
119
|
getWrappedInstance(): any;
|
|
118
120
|
render(): React.JSX.Element;
|
|
119
121
|
context: unknown;
|
|
120
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
122
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
121
123
|
evalMode?: boolean | undefined;
|
|
122
124
|
} & {} & {
|
|
123
125
|
locale?: string | undefined;
|
|
124
126
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
125
127
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
126
128
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
127
|
-
readonly props: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
129
|
+
readonly props: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
128
130
|
evalMode?: boolean | undefined;
|
|
129
131
|
} & {} & {
|
|
130
132
|
locale?: string | undefined;
|
|
@@ -135,7 +137,7 @@ declare const _default: {
|
|
|
135
137
|
[key: string]: React.ReactInstance;
|
|
136
138
|
};
|
|
137
139
|
componentDidMount?(): void;
|
|
138
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
140
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
139
141
|
evalMode?: boolean | undefined;
|
|
140
142
|
} & {} & {
|
|
141
143
|
locale?: string | undefined;
|
|
@@ -143,13 +145,13 @@ declare const _default: {
|
|
|
143
145
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
144
146
|
componentWillUnmount?(): void;
|
|
145
147
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
146
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
148
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
147
149
|
evalMode?: boolean | undefined;
|
|
148
150
|
} & {} & {
|
|
149
151
|
locale?: string | undefined;
|
|
150
152
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
151
153
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
152
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
154
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
153
155
|
evalMode?: boolean | undefined;
|
|
154
156
|
} & {} & {
|
|
155
157
|
locale?: string | undefined;
|
|
@@ -157,25 +159,25 @@ declare const _default: {
|
|
|
157
159
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
158
160
|
componentWillMount?(): void;
|
|
159
161
|
UNSAFE_componentWillMount?(): void;
|
|
160
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
162
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
161
163
|
evalMode?: boolean | undefined;
|
|
162
164
|
} & {} & {
|
|
163
165
|
locale?: string | undefined;
|
|
164
166
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
165
167
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
166
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
168
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
167
169
|
evalMode?: boolean | undefined;
|
|
168
170
|
} & {} & {
|
|
169
171
|
locale?: string | undefined;
|
|
170
172
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
171
173
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
172
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
174
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
173
175
|
evalMode?: boolean | undefined;
|
|
174
176
|
} & {} & {
|
|
175
177
|
locale?: string | undefined;
|
|
176
178
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
177
179
|
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
178
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
180
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
179
181
|
evalMode?: boolean | undefined;
|
|
180
182
|
} & {} & {
|
|
181
183
|
locale?: string | undefined;
|
|
@@ -185,7 +187,7 @@ declare const _default: {
|
|
|
185
187
|
displayName: string;
|
|
186
188
|
contextType: React.Context<string>;
|
|
187
189
|
ComposedComponent: React.ComponentType<{
|
|
188
|
-
new (props: Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
190
|
+
new (props: Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
189
191
|
evalMode?: boolean | undefined;
|
|
190
192
|
} & {} & {
|
|
191
193
|
locale?: string | undefined;
|
|
@@ -196,14 +198,14 @@ declare const _default: {
|
|
|
196
198
|
getWrappedInstance(): any;
|
|
197
199
|
render(): React.JSX.Element;
|
|
198
200
|
context: unknown;
|
|
199
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
201
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
200
202
|
evalMode?: boolean | undefined;
|
|
201
203
|
} & {} & {
|
|
202
204
|
locale?: string | undefined;
|
|
203
205
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
204
206
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
205
207
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
206
|
-
readonly props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
208
|
+
readonly props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
207
209
|
evalMode?: boolean | undefined;
|
|
208
210
|
} & {} & {
|
|
209
211
|
locale?: string | undefined;
|
|
@@ -214,7 +216,7 @@ declare const _default: {
|
|
|
214
216
|
[key: string]: React.ReactInstance;
|
|
215
217
|
};
|
|
216
218
|
componentDidMount?(): void;
|
|
217
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
219
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
218
220
|
evalMode?: boolean | undefined;
|
|
219
221
|
} & {} & {
|
|
220
222
|
locale?: string | undefined;
|
|
@@ -222,13 +224,13 @@ declare const _default: {
|
|
|
222
224
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
223
225
|
componentWillUnmount?(): void;
|
|
224
226
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
225
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
227
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
226
228
|
evalMode?: boolean | undefined;
|
|
227
229
|
} & {} & {
|
|
228
230
|
locale?: string | undefined;
|
|
229
231
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
230
232
|
}>, prevState: Readonly<{}>): any;
|
|
231
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
233
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
232
234
|
evalMode?: boolean | undefined;
|
|
233
235
|
} & {} & {
|
|
234
236
|
locale?: string | undefined;
|
|
@@ -236,25 +238,25 @@ declare const _default: {
|
|
|
236
238
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
237
239
|
componentWillMount?(): void;
|
|
238
240
|
UNSAFE_componentWillMount?(): void;
|
|
239
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
241
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
240
242
|
evalMode?: boolean | undefined;
|
|
241
243
|
} & {} & {
|
|
242
244
|
locale?: string | undefined;
|
|
243
245
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
244
246
|
}>, nextContext: any): void;
|
|
245
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
247
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
246
248
|
evalMode?: boolean | undefined;
|
|
247
249
|
} & {} & {
|
|
248
250
|
locale?: string | undefined;
|
|
249
251
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
250
252
|
}>, nextContext: any): void;
|
|
251
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
253
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
252
254
|
evalMode?: boolean | undefined;
|
|
253
255
|
} & {} & {
|
|
254
256
|
locale?: string | undefined;
|
|
255
257
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
256
258
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
257
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
259
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
258
260
|
evalMode?: boolean | undefined;
|
|
259
261
|
} & {} & {
|
|
260
262
|
locale?: string | undefined;
|
|
@@ -268,7 +270,7 @@ declare const _default: {
|
|
|
268
270
|
ComposedComponent: typeof FormulaPicker;
|
|
269
271
|
}>;
|
|
270
272
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
271
|
-
new (props: Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
273
|
+
new (props: Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
272
274
|
evalMode?: boolean | undefined;
|
|
273
275
|
} & {} & {
|
|
274
276
|
locale?: string | undefined;
|
|
@@ -279,14 +281,14 @@ declare const _default: {
|
|
|
279
281
|
getWrappedInstance(): any;
|
|
280
282
|
render(): React.JSX.Element;
|
|
281
283
|
context: unknown;
|
|
282
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
284
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
283
285
|
evalMode?: boolean | undefined;
|
|
284
286
|
} & {} & {
|
|
285
287
|
locale?: string | undefined;
|
|
286
288
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
287
289
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
288
290
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
289
|
-
readonly props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
291
|
+
readonly props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
290
292
|
evalMode?: boolean | undefined;
|
|
291
293
|
} & {} & {
|
|
292
294
|
locale?: string | undefined;
|
|
@@ -297,7 +299,7 @@ declare const _default: {
|
|
|
297
299
|
[key: string]: React.ReactInstance;
|
|
298
300
|
};
|
|
299
301
|
componentDidMount?(): void;
|
|
300
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
302
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
301
303
|
evalMode?: boolean | undefined;
|
|
302
304
|
} & {} & {
|
|
303
305
|
locale?: string | undefined;
|
|
@@ -305,13 +307,13 @@ declare const _default: {
|
|
|
305
307
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
306
308
|
componentWillUnmount?(): void;
|
|
307
309
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
308
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
310
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
309
311
|
evalMode?: boolean | undefined;
|
|
310
312
|
} & {} & {
|
|
311
313
|
locale?: string | undefined;
|
|
312
314
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
313
315
|
}>, prevState: Readonly<{}>): any;
|
|
314
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
316
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
315
317
|
evalMode?: boolean | undefined;
|
|
316
318
|
} & {} & {
|
|
317
319
|
locale?: string | undefined;
|
|
@@ -319,25 +321,25 @@ declare const _default: {
|
|
|
319
321
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
320
322
|
componentWillMount?(): void;
|
|
321
323
|
UNSAFE_componentWillMount?(): void;
|
|
322
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
324
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
323
325
|
evalMode?: boolean | undefined;
|
|
324
326
|
} & {} & {
|
|
325
327
|
locale?: string | undefined;
|
|
326
328
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
327
329
|
}>, nextContext: any): void;
|
|
328
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
330
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
329
331
|
evalMode?: boolean | undefined;
|
|
330
332
|
} & {} & {
|
|
331
333
|
locale?: string | undefined;
|
|
332
334
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
333
335
|
}>, nextContext: any): void;
|
|
334
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
336
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
335
337
|
evalMode?: boolean | undefined;
|
|
336
338
|
} & {} & {
|
|
337
339
|
locale?: string | undefined;
|
|
338
340
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
339
341
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
340
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
342
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
341
343
|
evalMode?: boolean | undefined;
|
|
342
344
|
} & {} & {
|
|
343
345
|
locale?: string | undefined;
|
|
@@ -351,7 +353,7 @@ declare const _default: {
|
|
|
351
353
|
ComposedComponent: typeof FormulaPicker;
|
|
352
354
|
}, {}> & {
|
|
353
355
|
ComposedComponent: {
|
|
354
|
-
new (props: Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
356
|
+
new (props: Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
355
357
|
evalMode?: boolean | undefined;
|
|
356
358
|
} & {} & {
|
|
357
359
|
locale?: string | undefined;
|
|
@@ -362,14 +364,14 @@ declare const _default: {
|
|
|
362
364
|
getWrappedInstance(): any;
|
|
363
365
|
render(): React.JSX.Element;
|
|
364
366
|
context: unknown;
|
|
365
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
367
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
366
368
|
evalMode?: boolean | undefined;
|
|
367
369
|
} & {} & {
|
|
368
370
|
locale?: string | undefined;
|
|
369
371
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
370
372
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
371
373
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
372
|
-
readonly props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
374
|
+
readonly props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
373
375
|
evalMode?: boolean | undefined;
|
|
374
376
|
} & {} & {
|
|
375
377
|
locale?: string | undefined;
|
|
@@ -380,7 +382,7 @@ declare const _default: {
|
|
|
380
382
|
[key: string]: React.ReactInstance;
|
|
381
383
|
};
|
|
382
384
|
componentDidMount?(): void;
|
|
383
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
385
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
384
386
|
evalMode?: boolean | undefined;
|
|
385
387
|
} & {} & {
|
|
386
388
|
locale?: string | undefined;
|
|
@@ -388,13 +390,13 @@ declare const _default: {
|
|
|
388
390
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
389
391
|
componentWillUnmount?(): void;
|
|
390
392
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
391
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
393
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
392
394
|
evalMode?: boolean | undefined;
|
|
393
395
|
} & {} & {
|
|
394
396
|
locale?: string | undefined;
|
|
395
397
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
396
398
|
}>, prevState: Readonly<{}>): any;
|
|
397
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
399
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
398
400
|
evalMode?: boolean | undefined;
|
|
399
401
|
} & {} & {
|
|
400
402
|
locale?: string | undefined;
|
|
@@ -402,25 +404,25 @@ declare const _default: {
|
|
|
402
404
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
403
405
|
componentWillMount?(): void;
|
|
404
406
|
UNSAFE_componentWillMount?(): void;
|
|
405
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
407
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
406
408
|
evalMode?: boolean | undefined;
|
|
407
409
|
} & {} & {
|
|
408
410
|
locale?: string | undefined;
|
|
409
411
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
410
412
|
}>, nextContext: any): void;
|
|
411
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
413
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
412
414
|
evalMode?: boolean | undefined;
|
|
413
415
|
} & {} & {
|
|
414
416
|
locale?: string | undefined;
|
|
415
417
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
416
418
|
}>, nextContext: any): void;
|
|
417
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
419
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
418
420
|
evalMode?: boolean | undefined;
|
|
419
421
|
} & {} & {
|
|
420
422
|
locale?: string | undefined;
|
|
421
423
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
422
424
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
423
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
425
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("amis-core").LocaleProps>, "classPrefix" | "classnames" | "children" | "className" | "style" | "theme" | "data" | "header" | "source" | "title" | "disabled" | "icon" | "value" | "placeholder" | "onChange" | "size" | "mode" | "level" | "useMobileUI" | "onConfirm" | "clearable" | "popOverContainer" | "borderMode" | "onRef" | "allowInput" | "onPickerOpen" | "functions" | "variables" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName" | "editorOptions" | "mixedMode" | "btnLabel" | "btnSize"> & {
|
|
424
426
|
evalMode?: boolean | undefined;
|
|
425
427
|
} & {} & {
|
|
426
428
|
locale?: string | undefined;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.2.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { __extends, __awaiter, __generator, __assign, __rest, __read, __decorate, __metadata } from 'tslib';
|
|
7
|
-
import { parse, generateIcon, noop, autobind, themeable, localeable, uncontrollable } from 'amis-core';
|
|
7
|
+
import { parse, generateIcon, isMobile, noop, autobind, themeable, localeable, uncontrollable, isExpression, resolveVariableAndFilterForAsync } from 'amis-core';
|
|
8
8
|
import React__default from 'react';
|
|
9
9
|
import Editor, { FormulaEditor } from './Editor.js';
|
|
10
10
|
import ResultBox from '../ResultBox.js';
|
|
11
11
|
import Button from '../Button.js';
|
|
12
12
|
import { Icon } from '../icons.js';
|
|
13
13
|
import FinalModal from '../Modal.js';
|
|
14
|
+
import PopUp from '../PopUp.js';
|
|
14
15
|
|
|
15
16
|
var FormulaPicker = /** @class */ (function (_super) {
|
|
16
17
|
__extends(FormulaPicker, _super);
|
|
@@ -21,7 +22,8 @@ var FormulaPicker = /** @class */ (function (_super) {
|
|
|
21
22
|
isOpened: false,
|
|
22
23
|
value: _this.props.value,
|
|
23
24
|
editorValue: _this.value2EditorValue(_this.props),
|
|
24
|
-
isError: false
|
|
25
|
+
isError: false,
|
|
26
|
+
variables: Array.isArray(props.variables) ? props.variables : []
|
|
25
27
|
};
|
|
26
28
|
return _this;
|
|
27
29
|
}
|
|
@@ -99,14 +101,29 @@ var FormulaPicker = /** @class */ (function (_super) {
|
|
|
99
101
|
FormulaPicker.prototype.handleClick = function () {
|
|
100
102
|
var _a, _b;
|
|
101
103
|
return __awaiter(this, void 0, void 0, function () {
|
|
102
|
-
var state,
|
|
103
|
-
return __generator(this, function (
|
|
104
|
-
switch (
|
|
104
|
+
var _c, variables, data, list, result, state, _d;
|
|
105
|
+
return __generator(this, function (_e) {
|
|
106
|
+
switch (_e.label) {
|
|
105
107
|
case 0:
|
|
106
|
-
_c =
|
|
107
|
-
|
|
108
|
+
_c = this.props, variables = _c.variables, data = _c.data;
|
|
109
|
+
if (!(typeof variables === 'function')) return [3 /*break*/, 2];
|
|
110
|
+
return [4 /*yield*/, variables(this.props)];
|
|
108
111
|
case 1:
|
|
109
|
-
|
|
112
|
+
list = _e.sent();
|
|
113
|
+
this.setState({ variables: list });
|
|
114
|
+
return [3 /*break*/, 4];
|
|
115
|
+
case 2:
|
|
116
|
+
if (!(typeof variables === 'string' && isExpression(variables))) return [3 /*break*/, 4];
|
|
117
|
+
return [4 /*yield*/, resolveVariableAndFilterForAsync(variables, data, '|raw')];
|
|
118
|
+
case 3:
|
|
119
|
+
result = _e.sent();
|
|
120
|
+
this.setState({ variables: result });
|
|
121
|
+
_e.label = 4;
|
|
122
|
+
case 4:
|
|
123
|
+
_d = [{}];
|
|
124
|
+
return [4 /*yield*/, ((_b = (_a = this.props).onPickerOpen) === null || _b === void 0 ? void 0 : _b.call(_a, this.props))];
|
|
125
|
+
case 5:
|
|
126
|
+
state = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_e.sent())])), { editorValue: this.value2EditorValue(this.props), isOpened: true }]);
|
|
110
127
|
this.setState(state);
|
|
111
128
|
return [2 /*return*/];
|
|
112
129
|
}
|
|
@@ -149,10 +166,11 @@ var FormulaPicker = /** @class */ (function (_super) {
|
|
|
149
166
|
};
|
|
150
167
|
FormulaPicker.prototype.render = function () {
|
|
151
168
|
var _a, _b, _c;
|
|
152
|
-
var _d, _e, _f, _g, _h;
|
|
153
|
-
var
|
|
154
|
-
var
|
|
169
|
+
var _d, _e, _f, _g, _h, _j;
|
|
170
|
+
var _k = this.props, cx = _k.classnames, __ = _k.translate, disabled = _k.disabled, _l = _k.allowInput, allowInput = _l === void 0 ? true : _l, className = _k.className, style = _k.style; _k.onChange; _k.size; var borderMode = _k.borderMode, placeholder = _k.placeholder, _m = _k.mode, mode = _m === void 0 ? 'input-button' : _m, btnLabel = _k.btnLabel, level = _k.level, btnSize = _k.btnSize, icon = _k.icon, title = _k.title, clearable = _k.clearable, functions = _k.functions, children = _k.children, variableMode = _k.variableMode, mixedMode = _k.mixedMode, evalMode = _k.evalMode, popOverContainer = _k.popOverContainer, useMobileUI = _k.useMobileUI, rest = __rest(_k, ["classnames", "translate", "disabled", "allowInput", "className", "style", "onChange", "size", "borderMode", "placeholder", "mode", "btnLabel", "level", "btnSize", "icon", "title", "clearable", "functions", "children", "variableMode", "mixedMode", "evalMode", "popOverContainer", "useMobileUI"]);
|
|
171
|
+
var _o = this.state, isOpened = _o.isOpened, value = _o.value, editorValue = _o.editorValue, isError = _o.isError;
|
|
155
172
|
var iconElement = generateIcon(cx, icon, 'Icon');
|
|
173
|
+
var mobileUI = useMobileUI && isMobile();
|
|
156
174
|
return (React__default.createElement(React__default.Fragment, null,
|
|
157
175
|
children ? (children({
|
|
158
176
|
isOpened: this.state.isOpened,
|
|
@@ -171,7 +189,7 @@ var FormulaPicker = /** @class */ (function (_super) {
|
|
|
171
189
|
mode === 'input-button' && (React__default.createElement(React__default.Fragment, null,
|
|
172
190
|
React__default.createElement(ResultBox, { className: cx('FormulaPicker-input', isOpened ? 'is-active' : '', !!isError ? 'is-error' : ''), allowInput: allowInput, clearable: clearable, value: value, result: allowInput
|
|
173
191
|
? void 0
|
|
174
|
-
: FormulaEditor.highlightValue(value, variables, this.props.evalMode), itemRender: this.renderFormulaValue, onResultChange: noop, onChange: this.handleInputChange, disabled: disabled, borderMode: borderMode, placeholder: placeholder }),
|
|
192
|
+
: FormulaEditor.highlightValue(value, this.state.variables, this.props.evalMode), itemRender: this.renderFormulaValue, onResultChange: noop, onChange: this.handleInputChange, disabled: disabled, borderMode: borderMode, placeholder: placeholder, useMobileUI: useMobileUI, showArrow: false }),
|
|
175
193
|
React__default.createElement(Button, { className: cx('FormulaPicker-action'), onClick: this.handleClick },
|
|
176
194
|
React__default.createElement(Icon, { icon: "function", className: cx('FormulaPicker-icon', 'icon', (_c = {},
|
|
177
195
|
_c['is-filled'] = !!value,
|
|
@@ -179,18 +197,22 @@ var FormulaPicker = /** @class */ (function (_super) {
|
|
|
179
197
|
mode === 'input-group' && (React__default.createElement(React__default.Fragment, null,
|
|
180
198
|
React__default.createElement(ResultBox, { className: cx('FormulaPicker-input', isOpened ? 'is-active' : '', !!isError ? 'is-error' : ''), allowInput: allowInput, clearable: clearable, value: value, result: allowInput
|
|
181
199
|
? void 0
|
|
182
|
-
: FormulaEditor.highlightValue(value, variables, this.props.evalMode), itemRender: this.renderFormulaValue, onResultChange: noop, onChange: this.handleInputChange, disabled: disabled, borderMode: borderMode, placeholder: placeholder }),
|
|
200
|
+
: FormulaEditor.highlightValue(value, this.state.variables, this.props.evalMode), itemRender: this.renderFormulaValue, onResultChange: noop, onChange: this.handleInputChange, disabled: disabled, borderMode: borderMode, placeholder: placeholder, useMobileUI: useMobileUI, showArrow: false }),
|
|
183
201
|
React__default.createElement("a", { className: cx("FormulaPicker-toggler"), onClick: this.handleClick },
|
|
184
202
|
React__default.createElement(Icon, { icon: "function", className: "icon" })))))),
|
|
185
|
-
React__default.createElement(
|
|
203
|
+
mobileUI ? (React__default.createElement(PopUp, { className: cx("FormulaPicker-popup"), isShow: this.state.isOpened, showConfirm: true, onHide: this.close, onConfirm: this.handleEditorConfirm, container: popOverContainer },
|
|
204
|
+
React__default.createElement("div", { className: cx('FormulaPicker-popup-inner') },
|
|
205
|
+
React__default.createElement(Editor, __assign({}, rest, { evalMode: mixedMode ? true : evalMode, variables: this.state.variables, functions: (_f = this.state.functions) !== null && _f !== void 0 ? _f : functions, variableMode: (_g = this.state.variableMode) !== null && _g !== void 0 ? _g : variableMode, value: editorValue, onChange: this.handleEditorChange, selfVariableName: this.props.selfVariableName })),
|
|
206
|
+
!!isError ? (React__default.createElement("div", { className: cx('Dialog-info'), key: "info" },
|
|
207
|
+
React__default.createElement("span", { className: cx('Dialog-error') }, __('FormulaEditor.invalidData', { err: isError })))) : null))) : (React__default.createElement(FinalModal, { size: "lg", closeOnEsc: true, show: this.state.isOpened, onHide: this.close, container: popOverContainer },
|
|
186
208
|
React__default.createElement(FinalModal.Header, { onClose: this.close, className: "font-bold" }, __(title || 'FormulaEditor.title')),
|
|
187
209
|
React__default.createElement(FinalModal.Body, null,
|
|
188
|
-
React__default.createElement(Editor, __assign({}, rest, { evalMode: mixedMode ? true : evalMode, variables:
|
|
210
|
+
React__default.createElement(Editor, __assign({}, rest, { evalMode: mixedMode ? true : evalMode, variables: this.state.variables, functions: (_h = this.state.functions) !== null && _h !== void 0 ? _h : functions, variableMode: (_j = this.state.variableMode) !== null && _j !== void 0 ? _j : variableMode, value: editorValue, onChange: this.handleEditorChange, selfVariableName: this.props.selfVariableName }))),
|
|
189
211
|
React__default.createElement(FinalModal.Footer, null,
|
|
190
212
|
!!isError ? (React__default.createElement("div", { className: cx('Dialog-info'), key: "info" },
|
|
191
213
|
React__default.createElement("span", { className: cx('Dialog-error') }, __('FormulaEditor.invalidData', { err: isError })))) : null,
|
|
192
214
|
React__default.createElement(Button, { onClick: this.close }, __('cancel')),
|
|
193
|
-
React__default.createElement(Button, { onClick: this.handleEditorConfirm, level: "primary" }, __('confirm'))))));
|
|
215
|
+
React__default.createElement(Button, { onClick: this.handleEditorConfirm, level: "primary" }, __('confirm')))))));
|
|
194
216
|
};
|
|
195
217
|
FormulaPicker.defaultProps = {
|
|
196
218
|
evalMode: true
|