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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.2.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -22,7 +22,7 @@ var ListMenu = /** @class */ (function (_super) {
|
|
|
22
22
|
}
|
|
23
23
|
ListMenu.prototype.renderItem = function (result, option, optionIndex) {
|
|
24
24
|
var _this = this;
|
|
25
|
-
var _a = this.props, cx = _a.classnames, itemRender = _a.itemRender, disabled = _a.disabled, getItemProps = _a.getItemProps, highlightIndex = _a.highlightIndex, selectedOptions = _a.selectedOptions
|
|
25
|
+
var _a = this.props, cx = _a.classnames, itemRender = _a.itemRender, disabled = _a.disabled, getItemProps = _a.getItemProps, highlightIndex = _a.highlightIndex, selectedOptions = _a.selectedOptions; _a.useMobileUI; var onSelect = _a.onSelect;
|
|
26
26
|
if (Array.isArray(option.children) && option.children.length) {
|
|
27
27
|
var stackResult = {
|
|
28
28
|
items: [],
|
|
@@ -46,9 +46,10 @@ var ListMenu = /** @class */ (function (_super) {
|
|
|
46
46
|
};
|
|
47
47
|
ListMenu.prototype.render = function () {
|
|
48
48
|
var _this = this;
|
|
49
|
-
var _a = this.props, cx = _a.classnames, options = _a.options, placeholder = _a.placeholder, prefix = _a.prefix, children = _a.children;
|
|
49
|
+
var _a = this.props, cx = _a.classnames, options = _a.options, placeholder = _a.placeholder, prefix = _a.prefix, children = _a.children, useMobileUI = _a.useMobileUI; _a.selectedOptions;
|
|
50
50
|
var __ = this.props.translate;
|
|
51
|
-
|
|
51
|
+
var mobileUI = useMobileUI && amisCore.isMobile();
|
|
52
|
+
return (React__default["default"].createElement("div", { className: cx('ListMenu', { 'is-mobile': mobileUI }) },
|
|
52
53
|
prefix,
|
|
53
54
|
Array.isArray(options) && options.length ? (options.reduce(function (result, option, index) {
|
|
54
55
|
return _this.renderItem(result, option, index);
|
|
@@ -19,6 +19,7 @@ export interface LocationProps extends ThemeProps, LocaleProps {
|
|
|
19
19
|
popoverClassName?: string;
|
|
20
20
|
onChange: (value: any) => void;
|
|
21
21
|
popOverContainer?: any;
|
|
22
|
+
useMobileUI?: boolean;
|
|
22
23
|
}
|
|
23
24
|
export interface LocationState {
|
|
24
25
|
isFocused: boolean;
|
|
@@ -30,6 +31,7 @@ export declare class LocationPicker extends React.Component<LocationProps, Locat
|
|
|
30
31
|
clearable: boolean;
|
|
31
32
|
};
|
|
32
33
|
domRef: React.RefObject<HTMLDivElement>;
|
|
34
|
+
tempValue: any;
|
|
33
35
|
state: {
|
|
34
36
|
isFocused: boolean;
|
|
35
37
|
isOpened: boolean;
|
|
@@ -45,12 +47,14 @@ export declare class LocationPicker extends React.Component<LocationProps, Locat
|
|
|
45
47
|
clearValue(e: React.MouseEvent<any>): void;
|
|
46
48
|
handlePopOverClick(e: React.MouseEvent<any>): void;
|
|
47
49
|
handleChange(value: any): void;
|
|
50
|
+
handleTempChange(value: any): void;
|
|
51
|
+
handleConfirm(): void;
|
|
48
52
|
render(): React.JSX.Element;
|
|
49
53
|
}
|
|
50
54
|
declare const ThemedCity: {
|
|
51
|
-
new (props: Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
52
|
-
clearable?: boolean | undefined;
|
|
55
|
+
new (props: Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
53
56
|
placeholder?: string | undefined;
|
|
57
|
+
clearable?: boolean | undefined;
|
|
54
58
|
} & {} & {
|
|
55
59
|
locale?: string | undefined;
|
|
56
60
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -60,17 +64,17 @@ declare const ThemedCity: {
|
|
|
60
64
|
getWrappedInstance(): any;
|
|
61
65
|
render(): React.JSX.Element;
|
|
62
66
|
context: unknown;
|
|
63
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
64
|
-
clearable?: boolean | undefined;
|
|
67
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
65
68
|
placeholder?: string | undefined;
|
|
69
|
+
clearable?: boolean | undefined;
|
|
66
70
|
} & {} & {
|
|
67
71
|
locale?: string | undefined;
|
|
68
72
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
69
73
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
70
74
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
71
|
-
readonly props: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
72
|
-
clearable?: boolean | undefined;
|
|
75
|
+
readonly props: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
73
76
|
placeholder?: string | undefined;
|
|
77
|
+
clearable?: boolean | undefined;
|
|
74
78
|
} & {} & {
|
|
75
79
|
locale?: string | undefined;
|
|
76
80
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -80,55 +84,55 @@ declare const ThemedCity: {
|
|
|
80
84
|
[key: string]: React.ReactInstance;
|
|
81
85
|
};
|
|
82
86
|
componentDidMount?(): void;
|
|
83
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
84
|
-
clearable?: boolean | undefined;
|
|
87
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
85
88
|
placeholder?: string | undefined;
|
|
89
|
+
clearable?: boolean | undefined;
|
|
86
90
|
} & {} & {
|
|
87
91
|
locale?: string | undefined;
|
|
88
92
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
89
93
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
90
94
|
componentWillUnmount?(): void;
|
|
91
95
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
92
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
93
|
-
clearable?: boolean | undefined;
|
|
96
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
94
97
|
placeholder?: string | undefined;
|
|
98
|
+
clearable?: boolean | undefined;
|
|
95
99
|
} & {} & {
|
|
96
100
|
locale?: string | undefined;
|
|
97
101
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
98
102
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
99
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
100
|
-
clearable?: boolean | undefined;
|
|
103
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
101
104
|
placeholder?: string | undefined;
|
|
105
|
+
clearable?: boolean | undefined;
|
|
102
106
|
} & {} & {
|
|
103
107
|
locale?: string | undefined;
|
|
104
108
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
105
109
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
106
110
|
componentWillMount?(): void;
|
|
107
111
|
UNSAFE_componentWillMount?(): void;
|
|
108
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
109
|
-
clearable?: boolean | undefined;
|
|
112
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
110
113
|
placeholder?: string | undefined;
|
|
114
|
+
clearable?: boolean | undefined;
|
|
111
115
|
} & {} & {
|
|
112
116
|
locale?: string | undefined;
|
|
113
117
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
114
118
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
115
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
116
|
-
clearable?: boolean | undefined;
|
|
119
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
117
120
|
placeholder?: string | undefined;
|
|
121
|
+
clearable?: boolean | undefined;
|
|
118
122
|
} & {} & {
|
|
119
123
|
locale?: string | undefined;
|
|
120
124
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
121
125
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
122
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
123
|
-
clearable?: boolean | undefined;
|
|
126
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
124
127
|
placeholder?: string | undefined;
|
|
128
|
+
clearable?: boolean | undefined;
|
|
125
129
|
} & {} & {
|
|
126
130
|
locale?: string | undefined;
|
|
127
131
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
128
132
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
129
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
130
|
-
clearable?: boolean | undefined;
|
|
133
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
131
134
|
placeholder?: string | undefined;
|
|
135
|
+
clearable?: boolean | undefined;
|
|
132
136
|
} & {} & {
|
|
133
137
|
locale?: string | undefined;
|
|
134
138
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -137,9 +141,9 @@ declare const ThemedCity: {
|
|
|
137
141
|
displayName: string;
|
|
138
142
|
contextType: React.Context<string>;
|
|
139
143
|
ComposedComponent: React.ComponentType<{
|
|
140
|
-
new (props: Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
141
|
-
clearable?: boolean | undefined;
|
|
144
|
+
new (props: Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
142
145
|
placeholder?: string | undefined;
|
|
146
|
+
clearable?: boolean | undefined;
|
|
143
147
|
} & {} & {
|
|
144
148
|
locale?: string | undefined;
|
|
145
149
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -149,17 +153,17 @@ declare const ThemedCity: {
|
|
|
149
153
|
getWrappedInstance(): any;
|
|
150
154
|
render(): React.JSX.Element;
|
|
151
155
|
context: unknown;
|
|
152
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
153
|
-
clearable?: boolean | undefined;
|
|
156
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
154
157
|
placeholder?: string | undefined;
|
|
158
|
+
clearable?: boolean | undefined;
|
|
155
159
|
} & {} & {
|
|
156
160
|
locale?: string | undefined;
|
|
157
161
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
158
162
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
159
163
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
160
|
-
readonly props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
161
|
-
clearable?: boolean | undefined;
|
|
164
|
+
readonly props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
162
165
|
placeholder?: string | undefined;
|
|
166
|
+
clearable?: boolean | undefined;
|
|
163
167
|
} & {} & {
|
|
164
168
|
locale?: string | undefined;
|
|
165
169
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -169,55 +173,55 @@ declare const ThemedCity: {
|
|
|
169
173
|
[key: string]: React.ReactInstance;
|
|
170
174
|
};
|
|
171
175
|
componentDidMount?(): void;
|
|
172
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
173
|
-
clearable?: boolean | undefined;
|
|
176
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
174
177
|
placeholder?: string | undefined;
|
|
178
|
+
clearable?: boolean | undefined;
|
|
175
179
|
} & {} & {
|
|
176
180
|
locale?: string | undefined;
|
|
177
181
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
178
182
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
179
183
|
componentWillUnmount?(): void;
|
|
180
184
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
181
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
182
|
-
clearable?: boolean | undefined;
|
|
185
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
183
186
|
placeholder?: string | undefined;
|
|
187
|
+
clearable?: boolean | undefined;
|
|
184
188
|
} & {} & {
|
|
185
189
|
locale?: string | undefined;
|
|
186
190
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
187
191
|
}>, prevState: Readonly<{}>): any;
|
|
188
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
189
|
-
clearable?: boolean | undefined;
|
|
192
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
190
193
|
placeholder?: string | undefined;
|
|
194
|
+
clearable?: boolean | undefined;
|
|
191
195
|
} & {} & {
|
|
192
196
|
locale?: string | undefined;
|
|
193
197
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
194
198
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
195
199
|
componentWillMount?(): void;
|
|
196
200
|
UNSAFE_componentWillMount?(): void;
|
|
197
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
198
|
-
clearable?: boolean | undefined;
|
|
201
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
199
202
|
placeholder?: string | undefined;
|
|
203
|
+
clearable?: boolean | undefined;
|
|
200
204
|
} & {} & {
|
|
201
205
|
locale?: string | undefined;
|
|
202
206
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
203
207
|
}>, nextContext: any): void;
|
|
204
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
205
|
-
clearable?: boolean | undefined;
|
|
208
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
206
209
|
placeholder?: string | undefined;
|
|
210
|
+
clearable?: boolean | undefined;
|
|
207
211
|
} & {} & {
|
|
208
212
|
locale?: string | undefined;
|
|
209
213
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
210
214
|
}>, nextContext: any): void;
|
|
211
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
212
|
-
clearable?: boolean | undefined;
|
|
215
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
213
216
|
placeholder?: string | undefined;
|
|
217
|
+
clearable?: boolean | undefined;
|
|
214
218
|
} & {} & {
|
|
215
219
|
locale?: string | undefined;
|
|
216
220
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
217
221
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
218
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
219
|
-
clearable?: boolean | undefined;
|
|
222
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
220
223
|
placeholder?: string | undefined;
|
|
224
|
+
clearable?: boolean | undefined;
|
|
221
225
|
} & {} & {
|
|
222
226
|
locale?: string | undefined;
|
|
223
227
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -230,9 +234,9 @@ declare const ThemedCity: {
|
|
|
230
234
|
ComposedComponent: typeof LocationPicker;
|
|
231
235
|
}>;
|
|
232
236
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
233
|
-
new (props: Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
234
|
-
clearable?: boolean | undefined;
|
|
237
|
+
new (props: Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
235
238
|
placeholder?: string | undefined;
|
|
239
|
+
clearable?: boolean | undefined;
|
|
236
240
|
} & {} & {
|
|
237
241
|
locale?: string | undefined;
|
|
238
242
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -242,17 +246,17 @@ declare const ThemedCity: {
|
|
|
242
246
|
getWrappedInstance(): any;
|
|
243
247
|
render(): React.JSX.Element;
|
|
244
248
|
context: unknown;
|
|
245
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
246
|
-
clearable?: boolean | undefined;
|
|
249
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
247
250
|
placeholder?: string | undefined;
|
|
251
|
+
clearable?: boolean | undefined;
|
|
248
252
|
} & {} & {
|
|
249
253
|
locale?: string | undefined;
|
|
250
254
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
251
255
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
252
256
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
253
|
-
readonly props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
254
|
-
clearable?: boolean | undefined;
|
|
257
|
+
readonly props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
255
258
|
placeholder?: string | undefined;
|
|
259
|
+
clearable?: boolean | undefined;
|
|
256
260
|
} & {} & {
|
|
257
261
|
locale?: string | undefined;
|
|
258
262
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -262,55 +266,55 @@ declare const ThemedCity: {
|
|
|
262
266
|
[key: string]: React.ReactInstance;
|
|
263
267
|
};
|
|
264
268
|
componentDidMount?(): void;
|
|
265
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
266
|
-
clearable?: boolean | undefined;
|
|
269
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
267
270
|
placeholder?: string | undefined;
|
|
271
|
+
clearable?: boolean | undefined;
|
|
268
272
|
} & {} & {
|
|
269
273
|
locale?: string | undefined;
|
|
270
274
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
271
275
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
272
276
|
componentWillUnmount?(): void;
|
|
273
277
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
274
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
275
|
-
clearable?: boolean | undefined;
|
|
278
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
276
279
|
placeholder?: string | undefined;
|
|
280
|
+
clearable?: boolean | undefined;
|
|
277
281
|
} & {} & {
|
|
278
282
|
locale?: string | undefined;
|
|
279
283
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
280
284
|
}>, prevState: Readonly<{}>): any;
|
|
281
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
282
|
-
clearable?: boolean | undefined;
|
|
285
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
283
286
|
placeholder?: string | undefined;
|
|
287
|
+
clearable?: boolean | undefined;
|
|
284
288
|
} & {} & {
|
|
285
289
|
locale?: string | undefined;
|
|
286
290
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
287
291
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
288
292
|
componentWillMount?(): void;
|
|
289
293
|
UNSAFE_componentWillMount?(): void;
|
|
290
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
291
|
-
clearable?: boolean | undefined;
|
|
294
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
292
295
|
placeholder?: string | undefined;
|
|
296
|
+
clearable?: boolean | undefined;
|
|
293
297
|
} & {} & {
|
|
294
298
|
locale?: string | undefined;
|
|
295
299
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
296
300
|
}>, nextContext: any): void;
|
|
297
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
298
|
-
clearable?: boolean | undefined;
|
|
301
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
299
302
|
placeholder?: string | undefined;
|
|
303
|
+
clearable?: boolean | undefined;
|
|
300
304
|
} & {} & {
|
|
301
305
|
locale?: string | undefined;
|
|
302
306
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
303
307
|
}>, nextContext: any): void;
|
|
304
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
305
|
-
clearable?: boolean | undefined;
|
|
308
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
306
309
|
placeholder?: string | undefined;
|
|
310
|
+
clearable?: boolean | undefined;
|
|
307
311
|
} & {} & {
|
|
308
312
|
locale?: string | undefined;
|
|
309
313
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
310
314
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
311
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
312
|
-
clearable?: boolean | undefined;
|
|
315
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
313
316
|
placeholder?: string | undefined;
|
|
317
|
+
clearable?: boolean | undefined;
|
|
314
318
|
} & {} & {
|
|
315
319
|
locale?: string | undefined;
|
|
316
320
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -323,9 +327,9 @@ declare const ThemedCity: {
|
|
|
323
327
|
ComposedComponent: typeof LocationPicker;
|
|
324
328
|
}, {}> & {
|
|
325
329
|
ComposedComponent: {
|
|
326
|
-
new (props: Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
327
|
-
clearable?: boolean | undefined;
|
|
330
|
+
new (props: Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
328
331
|
placeholder?: string | undefined;
|
|
332
|
+
clearable?: boolean | undefined;
|
|
329
333
|
} & {} & {
|
|
330
334
|
locale?: string | undefined;
|
|
331
335
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -335,17 +339,17 @@ declare const ThemedCity: {
|
|
|
335
339
|
getWrappedInstance(): any;
|
|
336
340
|
render(): React.JSX.Element;
|
|
337
341
|
context: unknown;
|
|
338
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
339
|
-
clearable?: boolean | undefined;
|
|
342
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
340
343
|
placeholder?: string | undefined;
|
|
344
|
+
clearable?: boolean | undefined;
|
|
341
345
|
} & {} & {
|
|
342
346
|
locale?: string | undefined;
|
|
343
347
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
344
348
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
345
349
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
346
|
-
readonly props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
347
|
-
clearable?: boolean | undefined;
|
|
350
|
+
readonly props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
348
351
|
placeholder?: string | undefined;
|
|
352
|
+
clearable?: boolean | undefined;
|
|
349
353
|
} & {} & {
|
|
350
354
|
locale?: string | undefined;
|
|
351
355
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -355,55 +359,55 @@ declare const ThemedCity: {
|
|
|
355
359
|
[key: string]: React.ReactInstance;
|
|
356
360
|
};
|
|
357
361
|
componentDidMount?(): void;
|
|
358
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
359
|
-
clearable?: boolean | undefined;
|
|
362
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
360
363
|
placeholder?: string | undefined;
|
|
364
|
+
clearable?: boolean | undefined;
|
|
361
365
|
} & {} & {
|
|
362
366
|
locale?: string | undefined;
|
|
363
367
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
364
368
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
365
369
|
componentWillUnmount?(): void;
|
|
366
370
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
367
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
368
|
-
clearable?: boolean | undefined;
|
|
371
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
369
372
|
placeholder?: string | undefined;
|
|
373
|
+
clearable?: boolean | undefined;
|
|
370
374
|
} & {} & {
|
|
371
375
|
locale?: string | undefined;
|
|
372
376
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
373
377
|
}>, prevState: Readonly<{}>): any;
|
|
374
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
375
|
-
clearable?: boolean | undefined;
|
|
378
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
376
379
|
placeholder?: string | undefined;
|
|
380
|
+
clearable?: boolean | undefined;
|
|
377
381
|
} & {} & {
|
|
378
382
|
locale?: string | undefined;
|
|
379
383
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
380
384
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
381
385
|
componentWillMount?(): void;
|
|
382
386
|
UNSAFE_componentWillMount?(): void;
|
|
383
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
384
|
-
clearable?: boolean | undefined;
|
|
387
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
385
388
|
placeholder?: string | undefined;
|
|
389
|
+
clearable?: boolean | undefined;
|
|
386
390
|
} & {} & {
|
|
387
391
|
locale?: string | undefined;
|
|
388
392
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
389
393
|
}>, nextContext: any): void;
|
|
390
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
391
|
-
clearable?: boolean | undefined;
|
|
394
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
392
395
|
placeholder?: string | undefined;
|
|
396
|
+
clearable?: boolean | undefined;
|
|
393
397
|
} & {} & {
|
|
394
398
|
locale?: string | undefined;
|
|
395
399
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
396
400
|
}>, nextContext: any): void;
|
|
397
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
398
|
-
clearable?: boolean | undefined;
|
|
401
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
399
402
|
placeholder?: string | undefined;
|
|
403
|
+
clearable?: boolean | undefined;
|
|
400
404
|
} & {} & {
|
|
401
405
|
locale?: string | undefined;
|
|
402
406
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
403
407
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
404
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
405
|
-
clearable?: boolean | undefined;
|
|
408
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "ak" | "coordinatesType" | "vendor"> & {
|
|
406
409
|
placeholder?: string | undefined;
|
|
410
|
+
clearable?: boolean | undefined;
|
|
407
411
|
} & {} & {
|
|
408
412
|
locale?: string | undefined;
|
|
409
413
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.2.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -14,6 +14,7 @@ var icons = require('./icons.js');
|
|
|
14
14
|
var Alert2 = require('./Alert2.js');
|
|
15
15
|
var BaiduMapPicker = require('./BaiduMapPicker.js');
|
|
16
16
|
var GaodeMapPicker = require('./GaodeMapPicker.js');
|
|
17
|
+
var PopUp = require('./PopUp.js');
|
|
17
18
|
|
|
18
19
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
20
|
|
|
@@ -61,6 +62,7 @@ var LocationPicker = /** @class */ (function (_super) {
|
|
|
61
62
|
this.setState({
|
|
62
63
|
isOpened: true
|
|
63
64
|
}, fn);
|
|
65
|
+
this.tempValue = this.props.value;
|
|
64
66
|
};
|
|
65
67
|
LocationPicker.prototype.close = function () {
|
|
66
68
|
this.setState({
|
|
@@ -83,23 +85,35 @@ var LocationPicker = /** @class */ (function (_super) {
|
|
|
83
85
|
}
|
|
84
86
|
this.props.onChange(value);
|
|
85
87
|
};
|
|
88
|
+
LocationPicker.prototype.handleTempChange = function (value) {
|
|
89
|
+
if (value) {
|
|
90
|
+
value = tslib.__assign(tslib.__assign({}, value), { vendor: this.props.vendor });
|
|
91
|
+
}
|
|
92
|
+
this.tempValue = value;
|
|
93
|
+
};
|
|
94
|
+
LocationPicker.prototype.handleConfirm = function () {
|
|
95
|
+
this.props.onChange(this.tempValue);
|
|
96
|
+
this.close();
|
|
97
|
+
};
|
|
86
98
|
LocationPicker.prototype.render = function () {
|
|
87
99
|
var _this = this;
|
|
88
100
|
var _a;
|
|
89
|
-
var _b = this.props, cx = _b.classnames, value = _b.value, className = _b.className, popoverClassName = _b.popoverClassName, disabled = _b.disabled, placeholder = _b.placeholder, clearable = _b.clearable, popOverContainer = _b.popOverContainer, vendor = _b.vendor, coordinatesType = _b.coordinatesType, ak = _b.ak;
|
|
101
|
+
var _b = this.props, cx = _b.classnames, value = _b.value, className = _b.className, popoverClassName = _b.popoverClassName, disabled = _b.disabled, placeholder = _b.placeholder, clearable = _b.clearable, popOverContainer = _b.popOverContainer, vendor = _b.vendor, coordinatesType = _b.coordinatesType, ak = _b.ak, useMobileUI = _b.useMobileUI;
|
|
90
102
|
var __ = this.props.translate;
|
|
91
103
|
var _c = this.state, isFocused = _c.isFocused, isOpened = _c.isOpened;
|
|
92
|
-
var
|
|
104
|
+
var mobileUI = useMobileUI && amisCore.isMobile();
|
|
105
|
+
((function () {
|
|
93
106
|
switch (vendor) {
|
|
94
107
|
case 'baidu':
|
|
95
108
|
return (React__default["default"].createElement(BaiduMapPicker["default"], { ak: ak, value: value, coordinatesType: coordinatesType, onChange: _this.handleChange }));
|
|
96
109
|
case 'gaode':
|
|
97
110
|
return (React__default["default"].createElement(GaodeMapPicker["default"], { ak: ak, value: value, coordinatesType: coordinatesType, onChange: _this.handleChange }));
|
|
98
111
|
default:
|
|
99
|
-
return
|
|
112
|
+
return React__default["default"].createElement(Alert2["default"], null, __("".concat(vendor, " \u5730\u56FE\u63A7\u4EF6\u4E0D\u652F\u6301"), { vendor: vendor }));
|
|
100
113
|
}
|
|
101
|
-
})();
|
|
114
|
+
}))();
|
|
102
115
|
return (React__default["default"].createElement("div", { tabIndex: 0, onKeyPress: this.handleKeyPress, onFocus: this.handleFocus, onBlur: this.handleBlur, className: cx("LocationPicker", {
|
|
116
|
+
'is-mobile': mobileUI,
|
|
103
117
|
'is-disabled': disabled,
|
|
104
118
|
'is-focused': isFocused,
|
|
105
119
|
'is-active': isOpened
|
|
@@ -109,8 +123,9 @@ var LocationPicker = /** @class */ (function (_super) {
|
|
|
109
123
|
React__default["default"].createElement(icons.Icon, { icon: "input-clear", className: "icon" }))) : null,
|
|
110
124
|
React__default["default"].createElement("a", { className: cx('LocationPicker-toggler') },
|
|
111
125
|
React__default["default"].createElement(icons.Icon, { icon: "location", className: "icon" })),
|
|
112
|
-
React__default["default"].createElement(
|
|
113
|
-
React__default["default"].createElement(
|
|
126
|
+
mobileUI ? (React__default["default"].createElement(PopUp["default"], { className: cx("LocationPicker-popup"), container: popOverContainer || this.getParent, isShow: isOpened, onHide: this.close, showConfirm: true, onConfirm: this.handleConfirm },
|
|
127
|
+
React__default["default"].createElement("div", { className: cx('LocationPicker-popup-inner') }, vendor === 'baidu' ? (React__default["default"].createElement(BaiduMapPicker["default"], { ak: ak, value: value, coordinatesType: coordinatesType, onChange: this.handleTempChange })) : (React__default["default"].createElement(Alert2["default"], null, __('${vendor} 地图控件不支持', { vendor: vendor })))))) : (React__default["default"].createElement(amisCore.Overlay, { target: this.getTarget, container: popOverContainer || this.getParent, rootClose: false, show: isOpened },
|
|
128
|
+
React__default["default"].createElement(amisCore.PopOver, { className: cx('LocationPicker-popover', popoverClassName), onHide: this.close, overlay: true, onClick: this.handlePopOverClick, style: { width: (_a = this.getTarget()) === null || _a === void 0 ? void 0 : _a.offsetWidth } }, vendor === 'baidu' ? (React__default["default"].createElement(BaiduMapPicker["default"], { ak: ak, value: value, coordinatesType: coordinatesType, onChange: this.handleChange })) : (React__default["default"].createElement(Alert2["default"], null, __('${vendor} 地图控件不支持', { vendor: vendor }))))))));
|
|
114
129
|
};
|
|
115
130
|
LocationPicker.defaultProps = {
|
|
116
131
|
placeholder: 'LocationPicker.placeholder',
|
|
@@ -182,6 +197,18 @@ var LocationPicker = /** @class */ (function (_super) {
|
|
|
182
197
|
tslib.__metadata("design:paramtypes", [Object]),
|
|
183
198
|
tslib.__metadata("design:returntype", void 0)
|
|
184
199
|
], LocationPicker.prototype, "handleChange", null);
|
|
200
|
+
tslib.__decorate([
|
|
201
|
+
amisCore.autobind,
|
|
202
|
+
tslib.__metadata("design:type", Function),
|
|
203
|
+
tslib.__metadata("design:paramtypes", [Object]),
|
|
204
|
+
tslib.__metadata("design:returntype", void 0)
|
|
205
|
+
], LocationPicker.prototype, "handleTempChange", null);
|
|
206
|
+
tslib.__decorate([
|
|
207
|
+
amisCore.autobind,
|
|
208
|
+
tslib.__metadata("design:type", Function),
|
|
209
|
+
tslib.__metadata("design:paramtypes", []),
|
|
210
|
+
tslib.__metadata("design:returntype", void 0)
|
|
211
|
+
], LocationPicker.prototype, "handleConfirm", null);
|
|
185
212
|
return LocationPicker;
|
|
186
213
|
}(React__default["default"].Component));
|
|
187
214
|
var ThemedCity = amisCore.themeable(amisCore.localeable(LocationPicker));
|