amis-ui 3.5.2 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.d.ts +11 -10
- package/esm/components/Alert2.js +3 -2
- 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.d.ts +40 -40
- package/esm/components/AssociatedSelection.js +7 -7
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.d.ts +3 -1
- package/esm/components/BaiduMapPicker.js +37 -18
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.d.ts +10 -10
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.d.ts +10 -10
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedDropdownSelection.d.ts +40 -40
- package/esm/components/ChainedDropdownSelection.js +1 -1
- package/esm/components/ChainedSelection.d.ts +40 -40
- package/esm/components/ChainedSelection.js +6 -6
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +1 -1
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConfirmBox.js +1 -1
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +52 -41
- package/esm/components/DatePicker.js +114 -27
- package/esm/components/DateRangePicker.d.ts +18 -10
- package/esm/components/DateRangePicker.js +39 -11
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.js +3 -2
- package/esm/components/DropDownSelection.d.ts +40 -40
- package/esm/components/DropDownSelection.js +1 -1
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/GaodeMapPicker.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.d.ts +40 -40
- 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 +10 -10
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/InputTable.js +1 -1
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.d.ts +84 -40
- package/esm/components/LocationPicker.js +7 -6
- package/esm/components/Markdown.js +11 -1
- package/esm/components/Modal.d.ts +54 -0
- package/esm/components/Modal.js +93 -7
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.js +1 -1
- package/esm/components/Pagination.d.ts +40 -41
- package/esm/components/Pagination.js +9 -18
- package/esm/components/Picker.js +1 -1
- package/esm/components/PickerColumn.js +1 -1
- package/esm/components/PickerContainer.js +1 -1
- package/esm/components/PopOverContainer.js +1 -1
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.js +9 -3
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.d.ts +40 -40
- package/esm/components/ResultBox.js +1 -1
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.d.ts +40 -40
- 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 +13 -4
- package/esm/components/SearchBox.js +1 -1
- package/esm/components/Select.d.ts +4 -0
- package/esm/components/Select.js +44 -40
- package/esm/components/SelectMobile.js +1 -1
- package/esm/components/Selection.d.ts +41 -40
- package/esm/components/Selection.js +1 -1
- package/esm/components/SparkLine.d.ts +44 -42
- package/esm/components/SparkLine.js +4 -4
- package/esm/components/Spinner.d.ts +13 -0
- package/esm/components/Spinner.js +8 -6
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.d.ts +15 -10
- package/esm/components/Switch.js +13 -5
- package/esm/components/TableSelection.d.ts +40 -40
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.d.ts +1 -0
- package/esm/components/Tabs.js +2 -2
- package/esm/components/TabsTransfer.d.ts +40 -40
- package/esm/components/TabsTransfer.js +3 -3
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.js +6 -2
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +1 -1
- package/esm/components/Tinymce.d.ts +2 -1
- package/esm/components/Tinymce.js +30 -15
- 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 +11 -10
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.d.ts +96 -40
- package/esm/components/Transfer.js +25 -11
- package/esm/components/TransferDropDown.d.ts +40 -40
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.d.ts +51 -3
- package/esm/components/Tree.js +12 -11
- package/esm/components/TreeSelection.d.ts +40 -40
- package/esm/components/TreeSelection.js +11 -11
- package/esm/components/UserSelect.d.ts +42 -0
- package/esm/components/UserSelect.js +5 -4
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.js +14 -2
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.d.ts +9 -1
- package/esm/components/calendar/Calendar.js +27 -5
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.d.ts +11 -0
- package/esm/components/calendar/DaysView.js +44 -8
- package/esm/components/calendar/MonthsView.d.ts +5 -0
- package/esm/components/calendar/MonthsView.js +18 -3
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.js +1 -1
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.js +1 -1
- package/esm/components/condition-builder/GroupOrItem.js +1 -1
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.js +6 -2
- package/esm/components/condition-builder/Value.js +1 -1
- package/esm/components/condition-builder/config.js +7 -1
- package/esm/components/condition-builder/index.js +1 -1
- package/esm/components/formula/Editor.js +1 -1
- package/esm/components/formula/FuncList.js +1 -1
- package/esm/components/formula/Input.js +2 -2
- package/esm/components/formula/Picker.js +1 -1
- package/esm/components/formula/VariableList.js +1 -1
- package/esm/components/formula/plugin.js +1 -1
- package/esm/components/icons.js +23 -6
- package/esm/components/json-schema/Array.js +1 -1
- package/esm/components/json-schema/Item.js +1 -1
- package/esm/components/json-schema/Object.js +1 -1
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.js +1 -1
- package/esm/components/menu/SubMenu.js +1 -1
- package/esm/components/menu/index.d.ts +17 -17
- package/esm/components/menu/index.js +5 -4
- package/esm/components/schema-editor/Array.js +1 -1
- package/esm/components/schema-editor/Common.js +1 -1
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.js +1 -1
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.js +1 -1
- package/esm/components/table/Cell.d.ts +3 -455
- package/esm/components/table/Cell.js +6 -8
- package/esm/components/table/ColGroup.d.ts +8 -3
- package/esm/components/table/ColGroup.js +28 -22
- package/esm/components/table/Head.d.ts +42 -0
- package/esm/components/table/Head.js +142 -0
- package/esm/components/table/HeadCellDropDown.d.ts +1 -1
- package/esm/components/table/HeadCellDropDown.js +5 -3
- package/esm/components/table/HeadCellFilter.d.ts +41 -41
- package/esm/components/table/HeadCellFilter.js +2 -2
- package/esm/components/table/HeadCellSelect.d.ts +1 -1
- package/esm/components/table/HeadCellSelect.js +2 -2
- package/esm/components/table/HeadCellSort.d.ts +1 -1
- package/esm/components/table/HeadCellSort.js +2 -2
- package/esm/components/table/ItemActionsWrapper.d.ts +1 -1
- package/esm/components/table/ItemActionsWrapper.js +2 -2
- package/esm/components/table/Row.d.ts +60 -0
- package/esm/components/table/Row.js +183 -0
- package/esm/components/table/SummaryRow.d.ts +28 -0
- package/esm/components/table/SummaryRow.js +73 -0
- package/esm/components/table/index.d.ts +62 -67
- package/esm/components/table/index.js +347 -646
- package/esm/components/table/util.d.ts +54 -0
- package/esm/components/table/util.js +207 -0
- 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/if.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 +4 -1
- package/esm/locale/en-US.js +4 -1
- package/esm/locale/zh-CN.js +4 -1
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.d.ts +120 -120
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.d.ts +21 -20
- package/lib/components/Alert2.js +3 -2
- 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.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +80 -80
- package/lib/components/AssociatedSelection.js +7 -7
- package/lib/components/Avatar.d.ts +90 -90
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.js +1 -1
- package/lib/components/BaiduMapPicker.d.ts +3 -1
- package/lib/components/BaiduMapPicker.js +37 -18
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.d.ts +20 -20
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.d.ts +100 -100
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedDropdownSelection.d.ts +80 -80
- package/lib/components/ChainedDropdownSelection.js +1 -1
- package/lib/components/ChainedSelection.d.ts +80 -80
- package/lib/components/ChainedSelection.js +6 -6
- package/lib/components/Checkbox.d.ts +10 -10
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CityArea.js +1 -1
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.d.ts +120 -120
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.d.ts +20 -20
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/Combo.js +1 -1
- package/lib/components/ConfirmBox.d.ts +80 -80
- package/lib/components/ConfirmBox.js +1 -1
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +132 -121
- package/lib/components/DatePicker.js +112 -25
- package/lib/components/DateRangePicker.d.ts +338 -330
- package/lib/components/DateRangePicker.js +39 -11
- package/lib/components/DndContainer.js +1 -1
- package/lib/components/Drawer.d.ts +30 -30
- package/lib/components/Drawer.js +3 -2
- package/lib/components/DropDownSelection.d.ts +80 -80
- package/lib/components/DropDownSelection.js +1 -1
- 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 +80 -80
- 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 +10 -10
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/InputTable.js +1 -1
- 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 +80 -80
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.d.ts +84 -40
- package/lib/components/LocationPicker.js +7 -6
- package/lib/components/Markdown.js +11 -1
- package/lib/components/Modal.d.ts +134 -80
- package/lib/components/Modal.js +93 -5
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +160 -160
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +30 -30
- package/lib/components/NumberInput.js +1 -1
- package/lib/components/Pagination.d.ts +80 -81
- package/lib/components/Pagination.js +8 -17
- package/lib/components/Picker.js +1 -1
- package/lib/components/PickerColumn.js +1 -1
- package/lib/components/PickerContainer.js +1 -1
- package/lib/components/PopOverContainer.js +1 -1
- package/lib/components/PopUp.d.ts +80 -80
- package/lib/components/PopUp.js +1 -1
- 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 +40 -40
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.js +9 -3
- package/lib/components/Rating.d.ts +20 -20
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +80 -80
- package/lib/components/ResultBox.js +1 -1
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.d.ts +80 -80
- 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 +13 -4
- package/lib/components/SearchBox.d.ts +120 -120
- package/lib/components/SearchBox.js +1 -1
- package/lib/components/Select.d.ts +1741 -1738
- package/lib/components/Select.js +44 -40
- package/lib/components/SelectMobile.js +1 -1
- package/lib/components/Selection.d.ts +81 -80
- package/lib/components/Selection.js +1 -1
- package/lib/components/SparkLine.d.ts +44 -42
- package/lib/components/SparkLine.js +3 -3
- package/lib/components/Spinner.d.ts +73 -60
- package/lib/components/Spinner.js +8 -6
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +15 -10
- package/lib/components/Switch.js +13 -5
- package/lib/components/TableSelection.d.ts +80 -80
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +81 -80
- package/lib/components/Tabs.js +2 -2
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +3 -3
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +60 -60
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +6 -2
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +1 -1
- package/lib/components/Tinymce.d.ts +2 -1
- package/lib/components/Tinymce.js +29 -14
- package/lib/components/TitleBar.d.ts +10 -10
- 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 -30
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +225 -169
- package/lib/components/Transfer.js +25 -11
- package/lib/components/TransferDropDown.d.ts +160 -160
- package/lib/components/TransferDropDown.js +1 -1
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +1 -1
- package/lib/components/Tree.d.ts +291 -243
- package/lib/components/Tree.js +12 -11
- package/lib/components/TreeSelection.d.ts +120 -120
- package/lib/components/TreeSelection.js +11 -11
- package/lib/components/UserSelect.d.ts +82 -40
- package/lib/components/UserSelect.js +5 -4
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/WithRemoteConfig.d.ts +0 -1
- package/lib/components/WithRemoteConfig.js +14 -2
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.d.ts +9 -1
- package/lib/components/calendar/Calendar.js +27 -5
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.d.ts +11 -0
- package/lib/components/calendar/DaysView.js +44 -8
- package/lib/components/calendar/MonthsView.d.ts +5 -0
- package/lib/components/calendar/MonthsView.js +18 -3
- package/lib/components/calendar/QuartersView.js +1 -1
- package/lib/components/calendar/TimeView.js +1 -1
- package/lib/components/calendar/YearsView.js +1 -1
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.js +1 -1
- package/lib/components/condition-builder/Func.js +1 -1
- package/lib/components/condition-builder/Group.js +1 -1
- package/lib/components/condition-builder/GroupOrItem.js +1 -1
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.js +6 -2
- package/lib/components/condition-builder/Value.js +1 -1
- package/lib/components/condition-builder/config.js +7 -1
- package/lib/components/condition-builder/index.d.ts +1 -1
- package/lib/components/condition-builder/index.js +1 -1
- package/lib/components/formula/Editor.d.ts +40 -40
- package/lib/components/formula/Editor.js +1 -1
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Input.js +2 -2
- package/lib/components/formula/Picker.d.ts +40 -40
- package/lib/components/formula/Picker.js +1 -1
- package/lib/components/formula/VariableList.js +1 -1
- package/lib/components/formula/plugin.js +1 -1
- package/lib/components/icons.js +22 -5
- package/lib/components/json-schema/Array.js +1 -1
- package/lib/components/json-schema/Item.js +1 -1
- package/lib/components/json-schema/Object.js +1 -1
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.js +1 -1
- package/lib/components/menu/SubMenu.js +1 -1
- package/lib/components/menu/index.d.ts +77 -77
- package/lib/components/menu/index.js +5 -5
- package/lib/components/schema-editor/Array.js +1 -1
- package/lib/components/schema-editor/Common.js +1 -1
- package/lib/components/schema-editor/Item.js +1 -1
- package/lib/components/schema-editor/Object.js +1 -1
- package/lib/components/schema-editor/SchemaVariableList.js +1 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/lib/components/schema-editor/index.d.ts +40 -40
- package/lib/components/schema-editor/index.js +1 -1
- package/lib/components/table/Cell.d.ts +3 -455
- package/lib/components/table/Cell.js +6 -9
- package/lib/components/table/ColGroup.d.ts +8 -3
- package/lib/components/table/ColGroup.js +28 -23
- package/lib/components/table/Head.d.ts +42 -0
- package/lib/components/table/Head.js +149 -0
- package/lib/components/table/HeadCellDropDown.d.ts +1 -1
- package/lib/components/table/HeadCellDropDown.js +5 -3
- package/lib/components/table/HeadCellFilter.d.ts +81 -81
- package/lib/components/table/HeadCellFilter.js +2 -2
- package/lib/components/table/HeadCellSelect.d.ts +41 -41
- package/lib/components/table/HeadCellSelect.js +2 -2
- package/lib/components/table/HeadCellSort.d.ts +1 -1
- package/lib/components/table/HeadCellSort.js +2 -2
- package/lib/components/table/ItemActionsWrapper.d.ts +1 -1
- package/lib/components/table/ItemActionsWrapper.js +2 -2
- package/lib/components/table/Row.d.ts +60 -0
- package/lib/components/table/Row.js +190 -0
- package/lib/components/table/SummaryRow.d.ts +28 -0
- package/lib/components/table/SummaryRow.js +81 -0
- package/lib/components/table/index.d.ts +62 -67
- package/lib/components/table/index.js +344 -644
- package/lib/components/table/util.d.ts +54 -0
- package/lib/components/table/util.js +227 -0
- package/lib/components/virtual-list/AutoSizer.js +1 -1
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/hooks/use-set-state.js +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/if.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 +4 -1
- package/lib/locale/en-US.js +4 -1
- package/lib/locale/zh-CN.js +4 -1
- package/lib/scss/helper.scss.js +1 -1
- package/lib/scss/themes/ang.scss.js +1 -1
- package/lib/scss/themes/antd.scss.js +1 -1
- package/lib/scss/themes/cxd.scss.js +1 -1
- package/lib/scss/themes/dark.scss.js +1 -1
- package/lib/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +220 -69
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +222 -71
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +220 -69
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +220 -69
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +220 -69
- package/package.json +5 -6
- package/scss/_components.scss +22 -14
- package/scss/_properties.scss +7 -11
- package/scss/base/_common.scss +8 -0
- package/scss/components/_alert.scss +4 -0
- package/scss/components/_audio.scss +1 -1
- package/scss/components/_card.scss +2 -1
- package/scss/components/_dropdown.scss +4 -2
- package/scss/components/_menu.scss +7 -2
- package/scss/components/_modal.scss +4 -0
- package/scss/components/_page.scss +6 -6
- package/scss/components/_pagination.scss +41 -44
- package/scss/components/_progress.scss +1 -1
- package/scss/components/_spinner.scss +12 -0
- package/scss/components/_steps.scss +7 -5
- package/scss/components/_table.scss +16 -2
- package/scss/components/_table2.scss +7 -0
- package/scss/components/_tabs.scss +21 -24
- package/scss/components/form/_combo.scss +6 -0
- package/scss/components/form/_date-range.scss +3 -6
- package/scss/components/form/_date.scss +3 -5
- package/scss/components/form/_excel.scss +2 -2
- package/scss/components/form/_fieldset.scss +1 -1
- package/scss/components/form/_form.scss +2 -0
- package/scss/components/form/_location.scss +19 -1
- package/scss/components/form/_nested-select.scss +20 -7
- package/scss/components/form/_picker.scss +3 -1
- package/scss/components/form/_range.scss +2 -2
- package/scss/components/form/_rating.scss +17 -3
- package/scss/components/form/_select.scss +0 -11
- package/scss/components/form/_selection.scss +2 -1
- package/scss/components/form/_switch.scss +38 -0
- package/scss/components/form/_text.scss +9 -8
- package/scss/components/form/_textarea.scss +4 -0
- package/scss/components/form/_transfer.scss +40 -0
- package/scss/themes/_ang-variables.scss +63 -61
- package/scss/themes/_antd-variables.scss +63 -61
- package/scss/themes/_cxd-variables.scss +64 -61
- package/scss/themes/_dark-variables.scss +63 -61
|
@@ -6,6 +6,7 @@ export interface LocationProps extends ThemeProps, LocaleProps {
|
|
|
6
6
|
vendor: 'baidu' | 'gaode' | 'tenxun';
|
|
7
7
|
coordinatesType: 'bd09' | 'gcj02';
|
|
8
8
|
placeholder: string;
|
|
9
|
+
getLocationPlaceholder: string;
|
|
9
10
|
clearable: boolean;
|
|
10
11
|
ak: string;
|
|
11
12
|
value?: {
|
|
@@ -19,6 +20,8 @@ export interface LocationProps extends ThemeProps, LocaleProps {
|
|
|
19
20
|
popoverClassName?: string;
|
|
20
21
|
onChange: (value: any) => void;
|
|
21
22
|
popOverContainer?: any;
|
|
23
|
+
autoSelectCurrentLoc?: boolean;
|
|
24
|
+
onlySelectCurrentLoc?: boolean;
|
|
22
25
|
}
|
|
23
26
|
export interface LocationState {
|
|
24
27
|
isFocused: boolean;
|
|
@@ -27,6 +30,7 @@ export interface LocationState {
|
|
|
27
30
|
export declare class LocationPicker extends React.Component<LocationProps, LocationState> {
|
|
28
31
|
static defaultProps: {
|
|
29
32
|
placeholder: string;
|
|
33
|
+
getLocationPlaceholder: string;
|
|
30
34
|
clearable: boolean;
|
|
31
35
|
};
|
|
32
36
|
domRef: React.RefObject<HTMLDivElement>;
|
|
@@ -51,9 +55,10 @@ export declare class LocationPicker extends React.Component<LocationProps, Locat
|
|
|
51
55
|
render(): React.JSX.Element;
|
|
52
56
|
}
|
|
53
57
|
declare const ThemedCity: {
|
|
54
|
-
new (props: Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
58
|
+
new (props: Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
55
59
|
placeholder?: string | undefined;
|
|
56
60
|
clearable?: boolean | undefined;
|
|
61
|
+
getLocationPlaceholder?: string | undefined;
|
|
57
62
|
} & {} & {
|
|
58
63
|
locale?: string | undefined;
|
|
59
64
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -63,17 +68,19 @@ declare const ThemedCity: {
|
|
|
63
68
|
getWrappedInstance(): any;
|
|
64
69
|
render(): React.JSX.Element;
|
|
65
70
|
context: unknown;
|
|
66
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
71
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
67
72
|
placeholder?: string | undefined;
|
|
68
73
|
clearable?: boolean | undefined;
|
|
74
|
+
getLocationPlaceholder?: string | undefined;
|
|
69
75
|
} & {} & {
|
|
70
76
|
locale?: string | undefined;
|
|
71
77
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
72
78
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
73
79
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
74
|
-
readonly props: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
80
|
+
readonly props: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
75
81
|
placeholder?: string | undefined;
|
|
76
82
|
clearable?: boolean | undefined;
|
|
83
|
+
getLocationPlaceholder?: string | undefined;
|
|
77
84
|
} & {} & {
|
|
78
85
|
locale?: string | undefined;
|
|
79
86
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -83,55 +90,62 @@ declare const ThemedCity: {
|
|
|
83
90
|
[key: string]: React.ReactInstance;
|
|
84
91
|
};
|
|
85
92
|
componentDidMount?(): void;
|
|
86
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
93
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
87
94
|
placeholder?: string | undefined;
|
|
88
95
|
clearable?: boolean | undefined;
|
|
96
|
+
getLocationPlaceholder?: string | undefined;
|
|
89
97
|
} & {} & {
|
|
90
98
|
locale?: string | undefined;
|
|
91
99
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
92
100
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
93
101
|
componentWillUnmount?(): void;
|
|
94
102
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
95
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
103
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
96
104
|
placeholder?: string | undefined;
|
|
97
105
|
clearable?: boolean | undefined;
|
|
106
|
+
getLocationPlaceholder?: string | undefined;
|
|
98
107
|
} & {} & {
|
|
99
108
|
locale?: string | undefined;
|
|
100
109
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
101
110
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
|
|
102
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
111
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
103
112
|
placeholder?: string | undefined;
|
|
104
113
|
clearable?: boolean | undefined;
|
|
114
|
+
getLocationPlaceholder?: string | undefined;
|
|
105
115
|
} & {} & {
|
|
106
116
|
locale?: string | undefined;
|
|
107
117
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
108
118
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
109
119
|
componentWillMount?(): void;
|
|
110
120
|
UNSAFE_componentWillMount?(): void;
|
|
111
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
121
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
112
122
|
placeholder?: string | undefined;
|
|
113
123
|
clearable?: boolean | undefined;
|
|
124
|
+
getLocationPlaceholder?: string | undefined;
|
|
114
125
|
} & {} & {
|
|
115
126
|
locale?: string | undefined;
|
|
116
127
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
117
128
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
118
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
129
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
119
130
|
placeholder?: string | undefined;
|
|
120
131
|
clearable?: boolean | undefined;
|
|
132
|
+
getLocationPlaceholder?: string | undefined;
|
|
121
133
|
} & {} & {
|
|
122
134
|
locale?: string | undefined;
|
|
123
135
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
124
136
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
125
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
137
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
126
138
|
placeholder?: string | undefined;
|
|
127
139
|
clearable?: boolean | undefined;
|
|
140
|
+
getLocationPlaceholder?: string | undefined;
|
|
128
141
|
} & {} & {
|
|
129
142
|
locale?: string | undefined;
|
|
130
143
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
131
144
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
132
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
145
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
133
146
|
placeholder?: string | undefined;
|
|
134
147
|
clearable?: boolean | undefined;
|
|
148
|
+
getLocationPlaceholder?: string | undefined;
|
|
135
149
|
} & {} & {
|
|
136
150
|
locale?: string | undefined;
|
|
137
151
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -140,9 +154,10 @@ declare const ThemedCity: {
|
|
|
140
154
|
displayName: string;
|
|
141
155
|
contextType: React.Context<string>;
|
|
142
156
|
ComposedComponent: React.ComponentType<{
|
|
143
|
-
new (props: Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
157
|
+
new (props: Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
144
158
|
placeholder?: string | undefined;
|
|
145
159
|
clearable?: boolean | undefined;
|
|
160
|
+
getLocationPlaceholder?: string | undefined;
|
|
146
161
|
} & {} & {
|
|
147
162
|
locale?: string | undefined;
|
|
148
163
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -152,17 +167,19 @@ declare const ThemedCity: {
|
|
|
152
167
|
getWrappedInstance(): any;
|
|
153
168
|
render(): React.JSX.Element;
|
|
154
169
|
context: unknown;
|
|
155
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
170
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
156
171
|
placeholder?: string | undefined;
|
|
157
172
|
clearable?: boolean | undefined;
|
|
173
|
+
getLocationPlaceholder?: string | undefined;
|
|
158
174
|
} & {} & {
|
|
159
175
|
locale?: string | undefined;
|
|
160
176
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
161
177
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
162
178
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
163
|
-
readonly props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
179
|
+
readonly props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
164
180
|
placeholder?: string | undefined;
|
|
165
181
|
clearable?: boolean | undefined;
|
|
182
|
+
getLocationPlaceholder?: string | undefined;
|
|
166
183
|
} & {} & {
|
|
167
184
|
locale?: string | undefined;
|
|
168
185
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -172,55 +189,62 @@ declare const ThemedCity: {
|
|
|
172
189
|
[key: string]: React.ReactInstance;
|
|
173
190
|
};
|
|
174
191
|
componentDidMount?(): void;
|
|
175
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
192
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
176
193
|
placeholder?: string | undefined;
|
|
177
194
|
clearable?: boolean | undefined;
|
|
195
|
+
getLocationPlaceholder?: string | undefined;
|
|
178
196
|
} & {} & {
|
|
179
197
|
locale?: string | undefined;
|
|
180
198
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
181
199
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
182
200
|
componentWillUnmount?(): void;
|
|
183
201
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
184
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
202
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
185
203
|
placeholder?: string | undefined;
|
|
186
204
|
clearable?: boolean | undefined;
|
|
205
|
+
getLocationPlaceholder?: string | undefined;
|
|
187
206
|
} & {} & {
|
|
188
207
|
locale?: string | undefined;
|
|
189
208
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
190
209
|
}>, prevState: Readonly<{}>): any;
|
|
191
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
210
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
192
211
|
placeholder?: string | undefined;
|
|
193
212
|
clearable?: boolean | undefined;
|
|
213
|
+
getLocationPlaceholder?: string | undefined;
|
|
194
214
|
} & {} & {
|
|
195
215
|
locale?: string | undefined;
|
|
196
216
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
197
217
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
198
218
|
componentWillMount?(): void;
|
|
199
219
|
UNSAFE_componentWillMount?(): void;
|
|
200
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
220
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
201
221
|
placeholder?: string | undefined;
|
|
202
222
|
clearable?: boolean | undefined;
|
|
223
|
+
getLocationPlaceholder?: string | undefined;
|
|
203
224
|
} & {} & {
|
|
204
225
|
locale?: string | undefined;
|
|
205
226
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
206
227
|
}>, nextContext: any): void;
|
|
207
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
228
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
208
229
|
placeholder?: string | undefined;
|
|
209
230
|
clearable?: boolean | undefined;
|
|
231
|
+
getLocationPlaceholder?: string | undefined;
|
|
210
232
|
} & {} & {
|
|
211
233
|
locale?: string | undefined;
|
|
212
234
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
213
235
|
}>, nextContext: any): void;
|
|
214
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
236
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
215
237
|
placeholder?: string | undefined;
|
|
216
238
|
clearable?: boolean | undefined;
|
|
239
|
+
getLocationPlaceholder?: string | undefined;
|
|
217
240
|
} & {} & {
|
|
218
241
|
locale?: string | undefined;
|
|
219
242
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
220
243
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
221
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
244
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
222
245
|
placeholder?: string | undefined;
|
|
223
246
|
clearable?: boolean | undefined;
|
|
247
|
+
getLocationPlaceholder?: string | undefined;
|
|
224
248
|
} & {} & {
|
|
225
249
|
locale?: string | undefined;
|
|
226
250
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -233,9 +257,10 @@ declare const ThemedCity: {
|
|
|
233
257
|
ComposedComponent: typeof LocationPicker;
|
|
234
258
|
}>;
|
|
235
259
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
236
|
-
new (props: Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
260
|
+
new (props: Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
237
261
|
placeholder?: string | undefined;
|
|
238
262
|
clearable?: boolean | undefined;
|
|
263
|
+
getLocationPlaceholder?: string | undefined;
|
|
239
264
|
} & {} & {
|
|
240
265
|
locale?: string | undefined;
|
|
241
266
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -245,17 +270,19 @@ declare const ThemedCity: {
|
|
|
245
270
|
getWrappedInstance(): any;
|
|
246
271
|
render(): React.JSX.Element;
|
|
247
272
|
context: unknown;
|
|
248
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
273
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
249
274
|
placeholder?: string | undefined;
|
|
250
275
|
clearable?: boolean | undefined;
|
|
276
|
+
getLocationPlaceholder?: string | undefined;
|
|
251
277
|
} & {} & {
|
|
252
278
|
locale?: string | undefined;
|
|
253
279
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
254
280
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
255
281
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
256
|
-
readonly props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
282
|
+
readonly props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
257
283
|
placeholder?: string | undefined;
|
|
258
284
|
clearable?: boolean | undefined;
|
|
285
|
+
getLocationPlaceholder?: string | undefined;
|
|
259
286
|
} & {} & {
|
|
260
287
|
locale?: string | undefined;
|
|
261
288
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -265,55 +292,62 @@ declare const ThemedCity: {
|
|
|
265
292
|
[key: string]: React.ReactInstance;
|
|
266
293
|
};
|
|
267
294
|
componentDidMount?(): void;
|
|
268
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
295
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
269
296
|
placeholder?: string | undefined;
|
|
270
297
|
clearable?: boolean | undefined;
|
|
298
|
+
getLocationPlaceholder?: string | undefined;
|
|
271
299
|
} & {} & {
|
|
272
300
|
locale?: string | undefined;
|
|
273
301
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
274
302
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
275
303
|
componentWillUnmount?(): void;
|
|
276
304
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
277
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
305
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
278
306
|
placeholder?: string | undefined;
|
|
279
307
|
clearable?: boolean | undefined;
|
|
308
|
+
getLocationPlaceholder?: string | undefined;
|
|
280
309
|
} & {} & {
|
|
281
310
|
locale?: string | undefined;
|
|
282
311
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
283
312
|
}>, prevState: Readonly<{}>): any;
|
|
284
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
313
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
285
314
|
placeholder?: string | undefined;
|
|
286
315
|
clearable?: boolean | undefined;
|
|
316
|
+
getLocationPlaceholder?: string | undefined;
|
|
287
317
|
} & {} & {
|
|
288
318
|
locale?: string | undefined;
|
|
289
319
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
290
320
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
291
321
|
componentWillMount?(): void;
|
|
292
322
|
UNSAFE_componentWillMount?(): void;
|
|
293
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
323
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
294
324
|
placeholder?: string | undefined;
|
|
295
325
|
clearable?: boolean | undefined;
|
|
326
|
+
getLocationPlaceholder?: string | undefined;
|
|
296
327
|
} & {} & {
|
|
297
328
|
locale?: string | undefined;
|
|
298
329
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
299
330
|
}>, nextContext: any): void;
|
|
300
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
331
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
301
332
|
placeholder?: string | undefined;
|
|
302
333
|
clearable?: boolean | undefined;
|
|
334
|
+
getLocationPlaceholder?: string | undefined;
|
|
303
335
|
} & {} & {
|
|
304
336
|
locale?: string | undefined;
|
|
305
337
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
306
338
|
}>, nextContext: any): void;
|
|
307
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
339
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
308
340
|
placeholder?: string | undefined;
|
|
309
341
|
clearable?: boolean | undefined;
|
|
342
|
+
getLocationPlaceholder?: string | undefined;
|
|
310
343
|
} & {} & {
|
|
311
344
|
locale?: string | undefined;
|
|
312
345
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
313
346
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
314
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
347
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
315
348
|
placeholder?: string | undefined;
|
|
316
349
|
clearable?: boolean | undefined;
|
|
350
|
+
getLocationPlaceholder?: string | undefined;
|
|
317
351
|
} & {} & {
|
|
318
352
|
locale?: string | undefined;
|
|
319
353
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -326,9 +360,10 @@ declare const ThemedCity: {
|
|
|
326
360
|
ComposedComponent: typeof LocationPicker;
|
|
327
361
|
}, {}> & {
|
|
328
362
|
ComposedComponent: {
|
|
329
|
-
new (props: Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
363
|
+
new (props: Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
330
364
|
placeholder?: string | undefined;
|
|
331
365
|
clearable?: boolean | undefined;
|
|
366
|
+
getLocationPlaceholder?: string | undefined;
|
|
332
367
|
} & {} & {
|
|
333
368
|
locale?: string | undefined;
|
|
334
369
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -338,17 +373,19 @@ declare const ThemedCity: {
|
|
|
338
373
|
getWrappedInstance(): any;
|
|
339
374
|
render(): React.JSX.Element;
|
|
340
375
|
context: unknown;
|
|
341
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
376
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
342
377
|
placeholder?: string | undefined;
|
|
343
378
|
clearable?: boolean | undefined;
|
|
379
|
+
getLocationPlaceholder?: string | undefined;
|
|
344
380
|
} & {} & {
|
|
345
381
|
locale?: string | undefined;
|
|
346
382
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
347
383
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
348
384
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
349
|
-
readonly props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
385
|
+
readonly props: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
350
386
|
placeholder?: string | undefined;
|
|
351
387
|
clearable?: boolean | undefined;
|
|
388
|
+
getLocationPlaceholder?: string | undefined;
|
|
352
389
|
} & {} & {
|
|
353
390
|
locale?: string | undefined;
|
|
354
391
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -358,55 +395,62 @@ declare const ThemedCity: {
|
|
|
358
395
|
[key: string]: React.ReactInstance;
|
|
359
396
|
};
|
|
360
397
|
componentDidMount?(): void;
|
|
361
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
398
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
362
399
|
placeholder?: string | undefined;
|
|
363
400
|
clearable?: boolean | undefined;
|
|
401
|
+
getLocationPlaceholder?: string | undefined;
|
|
364
402
|
} & {} & {
|
|
365
403
|
locale?: string | undefined;
|
|
366
404
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
367
405
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
368
406
|
componentWillUnmount?(): void;
|
|
369
407
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
370
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
408
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
371
409
|
placeholder?: string | undefined;
|
|
372
410
|
clearable?: boolean | undefined;
|
|
411
|
+
getLocationPlaceholder?: string | undefined;
|
|
373
412
|
} & {} & {
|
|
374
413
|
locale?: string | undefined;
|
|
375
414
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
376
415
|
}>, prevState: Readonly<{}>): any;
|
|
377
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
416
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
378
417
|
placeholder?: string | undefined;
|
|
379
418
|
clearable?: boolean | undefined;
|
|
419
|
+
getLocationPlaceholder?: string | undefined;
|
|
380
420
|
} & {} & {
|
|
381
421
|
locale?: string | undefined;
|
|
382
422
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
383
423
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
384
424
|
componentWillMount?(): void;
|
|
385
425
|
UNSAFE_componentWillMount?(): void;
|
|
386
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
426
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
387
427
|
placeholder?: string | undefined;
|
|
388
428
|
clearable?: boolean | undefined;
|
|
429
|
+
getLocationPlaceholder?: string | undefined;
|
|
389
430
|
} & {} & {
|
|
390
431
|
locale?: string | undefined;
|
|
391
432
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
392
433
|
}>, nextContext: any): void;
|
|
393
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
434
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
394
435
|
placeholder?: string | undefined;
|
|
395
436
|
clearable?: boolean | undefined;
|
|
437
|
+
getLocationPlaceholder?: string | undefined;
|
|
396
438
|
} & {} & {
|
|
397
439
|
locale?: string | undefined;
|
|
398
440
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
399
441
|
}>, nextContext: any): void;
|
|
400
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
442
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
401
443
|
placeholder?: string | undefined;
|
|
402
444
|
clearable?: boolean | undefined;
|
|
445
|
+
getLocationPlaceholder?: string | undefined;
|
|
403
446
|
} & {} & {
|
|
404
447
|
locale?: string | undefined;
|
|
405
448
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
406
449
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
407
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "
|
|
450
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<LocationProps, keyof LocaleProps>, "disabled" | "style" | "className" | "popoverClassName" | "theme" | "value" | "onChange" | "popOverContainer" | "classnames" | "classPrefix" | "mobileUI" | "vendor" | "coordinatesType" | "ak" | "autoSelectCurrentLoc" | "onlySelectCurrentLoc"> & {
|
|
408
451
|
placeholder?: string | undefined;
|
|
409
452
|
clearable?: boolean | undefined;
|
|
453
|
+
getLocationPlaceholder?: string | undefined;
|
|
410
454
|
} & {} & {
|
|
411
455
|
locale?: string | undefined;
|
|
412
456
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.6.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -101,13 +101,13 @@ var LocationPicker = /** @class */ (function (_super) {
|
|
|
101
101
|
LocationPicker.prototype.render = function () {
|
|
102
102
|
var _this = this;
|
|
103
103
|
var _a;
|
|
104
|
-
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, mobileUI = _b.mobileUI;
|
|
104
|
+
var _b = this.props, cx = _b.classnames, value = _b.value, className = _b.className, popoverClassName = _b.popoverClassName, disabled = _b.disabled, placeholder = _b.placeholder, getLocationPlaceholder = _b.getLocationPlaceholder, clearable = _b.clearable, popOverContainer = _b.popOverContainer, vendor = _b.vendor, coordinatesType = _b.coordinatesType, ak = _b.ak, mobileUI = _b.mobileUI, autoSelectCurrentLoc = _b.autoSelectCurrentLoc, onlySelectCurrentLoc = _b.onlySelectCurrentLoc;
|
|
105
105
|
var __ = this.props.translate;
|
|
106
106
|
var _c = this.state, isFocused = _c.isFocused, isOpened = _c.isOpened;
|
|
107
107
|
((function () {
|
|
108
108
|
switch (vendor) {
|
|
109
109
|
case 'baidu':
|
|
110
|
-
return (_J$X_(BaiduMapPicker["default"], { ak: ak, value: value, coordinatesType: coordinatesType, onChange: _this.handleChange }));
|
|
110
|
+
return (_J$X_(BaiduMapPicker["default"], { ak: ak, value: value, coordinatesType: coordinatesType, autoSelectCurrentLoc: autoSelectCurrentLoc, onlySelectCurrentLoc: onlySelectCurrentLoc, onChange: _this.handleChange }));
|
|
111
111
|
case 'gaode':
|
|
112
112
|
return (_J$X_(GaodeMapPicker["default"], { ak: ak, value: value, coordinatesType: coordinatesType, onChange: _this.handleChange }));
|
|
113
113
|
default:
|
|
@@ -120,17 +120,18 @@ var LocationPicker = /** @class */ (function (_super) {
|
|
|
120
120
|
'is-focused': isFocused,
|
|
121
121
|
'is-active': isOpened
|
|
122
122
|
}, className), ref: this.domRef, onClick: this.handleClick },
|
|
123
|
-
value ? (_J$X_("span", { className: cx('LocationPicker-value') }, value.address)) : (_J$X_("span", { className: cx('LocationPicker-placeholder') }, __(placeholder))),
|
|
123
|
+
value ? (_J$X_("span", { className: cx('LocationPicker-value') }, value.address)) : (_J$X_("span", { className: cx('LocationPicker-placeholder') }, __(onlySelectCurrentLoc ? getLocationPlaceholder : placeholder))),
|
|
124
124
|
clearable && !disabled && value ? (_J$X_("a", { className: cx('LocationPicker-clear'), onClick: this.clearValue },
|
|
125
125
|
_J$X_(icons.Icon, { icon: "input-clear", className: "icon" }))) : null,
|
|
126
126
|
_J$X_("a", { className: cx('LocationPicker-toggler') },
|
|
127
127
|
_J$X_(icons.Icon, { icon: "location", className: "icon" })),
|
|
128
128
|
mobileUI ? (_J$X_(PopUp["default"], { className: cx("LocationPicker-popup"), container: popOverContainer || this.getParent, isShow: isOpened, onHide: this.close, showConfirm: true, onConfirm: this.handleConfirm },
|
|
129
|
-
_J$X_("div", { className: cx('LocationPicker-popup-inner') }, vendor === 'baidu' ? (_J$X_(BaiduMapPicker["default"], { ak: ak, value: value, coordinatesType: coordinatesType, onChange: this.handleTempChange })) : (_J$X_(Alert2["default"], null, __('{{vendor}} 地图控件不支持', { vendor: vendor })))))) : (_J$X_(amisCore.Overlay, { target: this.getTarget, container: popOverContainer || this.getParent, rootClose: false, show: isOpened },
|
|
130
|
-
_J$X_(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' ? (_J$X_(BaiduMapPicker["default"], { ak: ak, value: value, coordinatesType: coordinatesType, onChange: this.handleChange })) : (_J$X_(Alert2["default"], null, __('{{vendor}} 地图控件不支持', { vendor: vendor }))))))));
|
|
129
|
+
_J$X_("div", { className: cx('LocationPicker-popup-inner') }, vendor === 'baidu' ? (_J$X_(BaiduMapPicker["default"], { ak: ak, value: value, coordinatesType: coordinatesType, autoSelectCurrentLoc: autoSelectCurrentLoc, onlySelectCurrentLoc: onlySelectCurrentLoc, onChange: this.handleTempChange })) : (_J$X_(Alert2["default"], null, __('{{vendor}} 地图控件不支持', { vendor: vendor })))))) : (_J$X_(amisCore.Overlay, { target: this.getTarget, container: popOverContainer || this.getParent, rootClose: false, show: isOpened },
|
|
130
|
+
_J$X_(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' ? (_J$X_(BaiduMapPicker["default"], { ak: ak, value: value, coordinatesType: coordinatesType, autoSelectCurrentLoc: autoSelectCurrentLoc, onlySelectCurrentLoc: onlySelectCurrentLoc, onChange: this.handleChange })) : (_J$X_(Alert2["default"], null, __('{{vendor}} 地图控件不支持', { vendor: vendor }))))))));
|
|
131
131
|
};
|
|
132
132
|
LocationPicker.defaultProps = {
|
|
133
133
|
placeholder: 'LocationPicker.placeholder',
|
|
134
|
+
getLocationPlaceholder: 'LocationPicker.getLocation',
|
|
134
135
|
clearable: false
|
|
135
136
|
};
|
|
136
137
|
tslib.__decorate([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.6.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -53,6 +53,16 @@ var Markdown = /** @class */ (function (_super) {
|
|
|
53
53
|
return tslib.__generator(this, function (_b) {
|
|
54
54
|
_a = this.props, content = _a.content, options = _a.options;
|
|
55
55
|
this.dom.innerHTML = markdown(content, options);
|
|
56
|
+
// @ts-ignore 需要用户手动加载 katex
|
|
57
|
+
if (typeof renderMathInElement === 'function') {
|
|
58
|
+
// @ts-ignore
|
|
59
|
+
renderMathInElement(this.dom, {
|
|
60
|
+
delimiters: [
|
|
61
|
+
{ left: '$$', right: '$$', display: true },
|
|
62
|
+
{ left: '$', right: '$', display: false }
|
|
63
|
+
]
|
|
64
|
+
});
|
|
65
|
+
}
|
|
56
66
|
return [2 /*return*/];
|
|
57
67
|
});
|
|
58
68
|
});
|