amis-ui 6.11.0-beta.3 → 6.11.0-beta.5
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 +2 -2
- package/esm/components/Alert.js +2 -2
- package/esm/components/Alert2.js +2 -2
- package/esm/components/AnchorNav.js +2 -2
- package/esm/components/AnchorNavSection.js +2 -2
- package/esm/components/ArrayInput.js +2 -2
- package/esm/components/AsideNav.js +2 -2
- package/esm/components/AssociatedSelection.js +2 -2
- package/esm/components/AutoSizer.js +2 -2
- package/esm/components/Avatar.js +2 -2
- package/esm/components/Badge.js +2 -2
- package/esm/components/BaiduMapPicker.js +2 -2
- package/esm/components/BarCode.js +2 -2
- package/esm/components/Breadcrumb.js +4 -4
- package/esm/components/Button.d.ts +11 -10
- package/esm/components/Button.js +4 -4
- package/esm/components/CalendarMobile.d.ts +0 -2
- package/esm/components/CalendarMobile.js +10 -52
- package/esm/components/Card.js +2 -2
- package/esm/components/Cascader.js +2 -2
- package/esm/components/ChainedDropdownSelection.js +2 -2
- package/esm/components/ChainedSelection.js +2 -2
- package/esm/components/Checkbox.js +2 -2
- package/esm/components/CityArea.js +2 -2
- package/esm/components/CityDB.js +2 -2
- package/esm/components/CodeMirror.js +2 -2
- package/esm/components/Collapse.js +2 -2
- package/esm/components/CollapseGroup.js +3 -3
- package/esm/components/ColorPicker.js +2 -2
- package/esm/components/Combo.js +2 -2
- package/esm/components/ConditionBuilder.js +2 -2
- package/esm/components/ConfirmBox.js +2 -2
- package/esm/components/ContextMenu.d.ts +1 -1
- package/esm/components/ContextMenu.js +2 -2
- package/esm/components/DatePicker.js +2 -2
- package/esm/components/DateRangePicker.js +2 -2
- package/esm/components/DiffEditor.js +2 -2
- package/esm/components/DndContainer.js +2 -2
- package/esm/components/Drawer.js +2 -2
- package/esm/components/DropDownSelection.js +2 -2
- package/esm/components/Editor.js +2 -2
- package/esm/components/Form.js +2 -2
- package/esm/components/FormField.js +2 -2
- package/esm/components/FormulaPicker.js +2 -2
- package/esm/components/GaodeMapPicker.js +2 -2
- package/esm/components/GridNav.js +2 -2
- package/esm/components/GridNavItem.js +2 -2
- package/esm/components/GroupedSelection.js +2 -2
- package/esm/components/HeadCellDropDown.js +2 -2
- package/esm/components/Html.js +2 -2
- package/esm/components/Icon.js +2 -2
- package/esm/components/ImageGallery.js +2 -2
- package/esm/components/Input.js +2 -2
- package/esm/components/InputBox.js +2 -2
- package/esm/components/InputBoxWithSuggestion.js +2 -2
- package/esm/components/InputJSONSchema.js +2 -2
- package/esm/components/InputTable.js +2 -2
- package/esm/components/JSONSchemaEditor.js +2 -2
- package/esm/components/Layout.js +2 -2
- package/esm/components/Link.js +2 -2
- package/esm/components/ListGroup.js +2 -2
- package/esm/components/ListMenu.js +2 -2
- package/esm/components/LocationPicker.js +2 -2
- package/esm/components/Markdown.js +2 -2
- package/esm/components/Menu.js +2 -2
- package/esm/components/MobileDevTool.d.ts +1 -0
- package/esm/components/MobileDevTool.js +5 -3
- package/esm/components/Modal.js +2 -2
- package/esm/components/ModalManager.js +2 -2
- package/esm/components/MultilineText.js +2 -2
- package/esm/components/NumberInput.js +4 -3
- package/esm/components/OverflowTpl.js +2 -2
- package/esm/components/Pagination.js +2 -2
- package/esm/components/PdfViewer.js +2 -2
- package/esm/components/Picker.js +2 -2
- package/esm/components/PickerColumn.js +2 -2
- package/esm/components/PickerContainer.js +2 -2
- package/esm/components/PopOverContainer.js +2 -2
- package/esm/components/PopUp.js +2 -2
- package/esm/components/Progress.js +2 -2
- package/esm/components/PullRefresh.js +2 -2
- package/esm/components/Radios.js +2 -2
- package/esm/components/Range.js +2 -2
- package/esm/components/Rating.js +2 -2
- package/esm/components/ResultBox.js +2 -2
- package/esm/components/ResultList.js +2 -2
- package/esm/components/ResultTableList.js +2 -2
- package/esm/components/ResultTreeList.js +2 -2
- package/esm/components/RichText.d.ts +2 -0
- package/esm/components/RichText.js +3 -2
- package/esm/components/SearchBox.js +2 -2
- package/esm/components/Select.js +7 -6
- package/esm/components/SelectMobile.js +2 -2
- package/esm/components/Selection.js +2 -2
- package/esm/components/Shape.js +2 -2
- package/esm/components/Signature.js +2 -2
- package/esm/components/SparkLine.js +2 -2
- package/esm/components/Spinner.js +2 -2
- package/esm/components/Steps.js +2 -2
- package/esm/components/Switch.js +2 -2
- package/esm/components/Tab.js +2 -2
- package/esm/components/Table.js +2 -2
- package/esm/components/TableSelection.js +2 -2
- package/esm/components/Tabs.js +3 -3
- package/esm/components/TabsTransfer.js +2 -2
- package/esm/components/TabsTransferPicker.js +2 -2
- package/esm/components/Tag.js +2 -2
- package/esm/components/Textarea.js +2 -2
- package/esm/components/Timeline.js +2 -2
- package/esm/components/TimelineItem.js +2 -2
- package/esm/components/Tinymce.d.ts +2 -2
- package/esm/components/Tinymce.js +3 -2
- package/esm/components/TitleBar.js +2 -2
- package/esm/components/Toast.js +2 -2
- package/esm/components/Tooltip.d.ts +1 -0
- package/esm/components/Tooltip.js +4 -4
- package/esm/components/TooltipWrapper.d.ts +4 -0
- package/esm/components/TooltipWrapper.js +4 -4
- package/esm/components/Transfer.js +2 -2
- package/esm/components/TransferDropDown.js +2 -2
- package/esm/components/TransferPicker.js +2 -2
- package/esm/components/TransferSearch.js +2 -2
- package/esm/components/Tree.js +2 -2
- package/esm/components/TreeSelection.js +2 -2
- package/esm/components/UserSelect.js +2 -2
- package/esm/components/UserTabSelect.js +2 -2
- package/esm/components/VerificationCode.js +2 -2
- package/esm/components/VirtualList.js +2 -2
- package/esm/components/WithRemoteConfig.js +2 -2
- package/esm/components/WithStore.js +2 -2
- package/esm/components/calendar/Calendar.js +2 -2
- package/esm/components/calendar/CalendarContainer.js +2 -2
- package/esm/components/calendar/DaysView.js +2 -2
- package/esm/components/calendar/MonthsView.js +2 -2
- package/esm/components/calendar/QuartersView.js +2 -2
- package/esm/components/calendar/TimeView.js +2 -2
- package/esm/components/calendar/YearsView.js +2 -2
- package/esm/components/condition-builder/Expression.js +2 -2
- package/esm/components/condition-builder/Field.js +2 -2
- package/esm/components/condition-builder/Func.js +2 -2
- package/esm/components/condition-builder/Group.js +2 -2
- package/esm/components/condition-builder/GroupOrItem.js +2 -2
- package/esm/components/condition-builder/InputSwitch.js +2 -2
- package/esm/components/condition-builder/Item.js +2 -2
- package/esm/components/condition-builder/Value.js +2 -2
- package/esm/components/condition-builder/config.js +2 -2
- package/esm/components/condition-builder/index.js +2 -2
- package/esm/components/formula/CodeEditor.js +2 -2
- package/esm/components/formula/Editor.js +2 -2
- package/esm/components/formula/FuncList.js +2 -2
- package/esm/components/formula/Input.js +2 -2
- package/esm/components/formula/Picker.js +2 -2
- package/esm/components/formula/VariableList.js +2 -2
- package/esm/components/formula/plugin.js +2 -2
- package/esm/components/icons.d.ts +2 -2
- package/esm/components/icons.js +90 -11
- package/esm/components/json-schema/Array.js +2 -2
- package/esm/components/json-schema/Item.js +2 -2
- package/esm/components/json-schema/Object.js +2 -2
- package/esm/components/json-schema/index.js +2 -2
- package/esm/components/menu/MenuContext.js +2 -2
- package/esm/components/menu/MenuItem.js +2 -2
- package/esm/components/menu/SubMenu.js +2 -2
- package/esm/components/menu/index.js +2 -2
- package/esm/components/schema-editor/Array.js +2 -2
- package/esm/components/schema-editor/Common.js +2 -2
- package/esm/components/schema-editor/Item.js +2 -2
- package/esm/components/schema-editor/Object.js +2 -2
- package/esm/components/schema-editor/SchemaVariableList.js +2 -2
- package/esm/components/schema-editor/SchemaVariableListPicker.js +2 -2
- package/esm/components/schema-editor/index.js +2 -2
- package/esm/components/table/Cell.js +2 -2
- package/esm/components/table/ColGroup.js +2 -2
- package/esm/components/table/Head.js +2 -2
- package/esm/components/table/HeadCellDropDown.js +2 -2
- package/esm/components/table/HeadCellFilter.js +2 -2
- package/esm/components/table/HeadCellSelect.js +2 -2
- package/esm/components/table/HeadCellSort.js +2 -2
- package/esm/components/table/ItemActionsWrapper.js +2 -2
- package/esm/components/table/Row.js +2 -2
- package/esm/components/table/SummaryRow.js +2 -2
- package/esm/components/table/index.js +2 -2
- package/esm/components/table/util.js +2 -2
- package/esm/components/virtual-list/AutoSizer.js +2 -2
- package/esm/components/virtual-list/SizeAndPositionManager.js +2 -2
- package/esm/components/virtual-list/constants.js +2 -2
- package/esm/components/virtual-list/index.js +2 -2
- package/esm/components/withBadge.js +2 -2
- package/esm/hooks/use-on-screen.js +2 -2
- package/esm/hooks/use-set-state.js +2 -2
- package/esm/hooks/use-sub-form.js +2 -2
- package/esm/hooks/use-touch.js +2 -2
- package/esm/hooks/use-update-effect.js +2 -2
- package/esm/hooks/use-validation-resolver.js +2 -2
- package/esm/icons/alert-danger.svg.js +2 -2
- package/esm/icons/alert-info.svg.js +2 -2
- package/esm/icons/alert-success.svg.js +2 -2
- package/esm/icons/alert-warning.svg.js +2 -2
- package/esm/icons/arrow-double-left.svg.js +2 -2
- package/esm/icons/arrow-double-right.svg.js +2 -2
- package/esm/icons/back.svg.js +2 -2
- package/esm/icons/calendar.svg.js +2 -2
- package/esm/icons/caret.svg.js +2 -2
- package/esm/icons/check.svg.js +2 -2
- package/esm/icons/clock.svg.js +2 -2
- package/esm/icons/close-small.svg.js +2 -2
- package/esm/icons/close.svg.js +2 -2
- package/esm/icons/cloud-upload.svg.js +2 -2
- package/esm/icons/column-filter.svg.js +2 -2
- package/esm/icons/columns.svg.js +2 -2
- package/esm/icons/compress-alt.svg.js +2 -2
- package/esm/icons/copy.svg.js +2 -2
- package/esm/icons/date.svg.js +2 -2
- package/esm/icons/department.svg.js +2 -2
- package/esm/icons/desk-empty.svg.js +2 -2
- package/esm/icons/dot.svg.js +2 -2
- package/esm/icons/down-arrow-bold.svg.js +2 -2
- package/esm/icons/down.svg.js +2 -2
- package/esm/icons/download.svg.js +2 -2
- package/esm/icons/drag-bar.svg.js +2 -2
- package/esm/icons/drag.svg.js +2 -2
- package/esm/icons/edit.svg.js +2 -2
- package/esm/icons/ellipsis-v.svg.js +2 -2
- package/esm/icons/enter.svg.js +2 -2
- package/esm/icons/exchange.svg.js +2 -2
- package/esm/icons/expand-alt.svg.js +2 -2
- package/esm/icons/fail.svg.js +2 -2
- package/esm/icons/file.svg.js +2 -2
- package/esm/icons/filter.svg.js +2 -2
- package/esm/icons/folder.svg.js +2 -2
- package/esm/icons/fullscreen.svg.js +2 -2
- package/esm/icons/function.svg.js +2 -2
- package/esm/icons/home.svg.js +2 -2
- package/esm/icons/if.svg.js +2 -2
- package/esm/icons/image.svg.js +2 -2
- package/esm/icons/info-circle.svg.js +2 -2
- package/esm/icons/info.svg.js +2 -2
- package/esm/icons/input-clear.svg.js +2 -2
- package/esm/icons/invisible.svg.js +2 -2
- package/esm/icons/left-arrow.svg.js +2 -2
- package/esm/icons/loading-outline.svg.js +2 -2
- package/esm/icons/location.svg.js +2 -2
- package/esm/icons/menu.svg.js +2 -2
- package/esm/icons/minus.svg.js +2 -2
- package/esm/icons/move.svg.js +2 -2
- package/esm/icons/mute.svg.js +2 -2
- package/esm/icons/new-edit.svg.js +2 -2
- package/esm/icons/pause.svg.js +2 -2
- package/esm/icons/pencil.svg.js +2 -2
- package/esm/icons/play.svg.js +2 -2
- package/esm/icons/plus-cicle.svg.js +2 -2
- package/esm/icons/plus-fine.svg.js +2 -2
- package/esm/icons/plus.svg.js +2 -2
- package/esm/icons/post.svg.js +2 -2
- package/esm/icons/question-mark.svg.js +2 -2
- package/esm/icons/question.svg.js +2 -2
- package/esm/icons/redo.svg.js +2 -2
- package/esm/icons/refresh.svg.js +2 -2
- package/esm/icons/reload.svg.js +2 -2
- package/esm/icons/remove.svg.js +2 -2
- package/esm/icons/retry.svg.js +2 -2
- package/esm/icons/right-arrow-bold.svg.js +2 -2
- package/esm/icons/right-arrow.svg.js +2 -2
- package/esm/icons/right-double-arrow.svg.js +2 -2
- package/esm/icons/role.svg.js +2 -2
- package/esm/icons/rotate-left.svg.js +2 -2
- package/esm/icons/rotate-right.svg.js +2 -2
- package/esm/icons/rotate-screen.svg.js +2 -2
- package/esm/icons/scale-origin.svg.js +2 -2
- package/esm/icons/schedule.svg.js +2 -2
- package/esm/icons/search.svg.js +2 -2
- package/esm/icons/setting.svg.js +2 -2
- package/esm/icons/slider-handle-icon.svg.js +2 -2
- package/esm/icons/sort-asc.svg.js +2 -2
- package/esm/icons/sort-default.svg.js +2 -2
- package/esm/icons/sort-desc.svg.js +2 -2
- package/esm/icons/star.svg.js +2 -2
- package/esm/icons/status-close.svg.js +2 -2
- package/esm/icons/steps-finsh.svg.js +2 -2
- package/esm/icons/sub-plus.svg.js +2 -2
- package/esm/icons/success.svg.js +2 -2
- package/esm/icons/transparent.svg.js +2 -2
- package/esm/icons/trash.svg.js +2 -2
- package/esm/icons/tree-down.svg.js +2 -2
- package/esm/icons/undo-normal.svg.js +2 -2
- package/esm/icons/undo.svg.js +2 -2
- package/esm/icons/unfullscreen.svg.js +2 -2
- package/esm/icons/upload.svg.js +2 -2
- package/esm/icons/user-remove.svg.js +2 -2
- package/esm/icons/view.svg.js +2 -2
- package/esm/icons/volume.svg.js +2 -2
- package/esm/icons/warning-mark.svg.js +2 -2
- package/esm/icons/warning.svg.js +2 -2
- package/esm/icons/window-restore.svg.js +2 -2
- package/esm/icons/zoom-in.svg.js +2 -2
- package/esm/icons/zoom-out.svg.js +2 -2
- package/esm/index.js +2 -2
- package/esm/locale/de-DE.js +2 -2
- package/esm/locale/en-US.js +2 -2
- package/esm/locale/zh-CN.js +2 -2
- package/esm/themes/ang.js +2 -2
- package/esm/themes/antd.js +2 -2
- package/esm/themes/cxd.js +2 -2
- package/esm/themes/dark.js +2 -2
- package/esm/utils/smoothSignature.js +2 -2
- package/esm/utils/vectorComputed.js +2 -2
- package/esm/withRemoteConfig.js +2 -2
- package/esm/withStore.js +2 -2
- package/lib/components/404.js +2 -2
- package/lib/components/Alert.d.ts +120 -120
- package/lib/components/Alert.js +2 -2
- package/lib/components/Alert2.d.ts +20 -20
- package/lib/components/Alert2.js +2 -2
- package/lib/components/AnchorNav.d.ts +10 -10
- package/lib/components/AnchorNav.js +2 -2
- package/lib/components/AnchorNavSection.js +2 -2
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +2 -2
- package/lib/components/AsideNav.js +2 -2
- package/lib/components/AssociatedSelection.d.ts +80 -80
- package/lib/components/AssociatedSelection.js +2 -2
- package/lib/components/AutoSizer.js +2 -2
- package/lib/components/Avatar.d.ts +120 -120
- package/lib/components/Avatar.js +2 -2
- package/lib/components/Badge.d.ts +1 -1
- package/lib/components/Badge.js +2 -2
- package/lib/components/BaiduMapPicker.js +2 -2
- package/lib/components/BarCode.js +2 -2
- package/lib/components/Breadcrumb.js +4 -4
- package/lib/components/Button.d.ts +21 -20
- package/lib/components/Button.js +4 -4
- package/lib/components/CalendarMobile.d.ts +40 -42
- package/lib/components/CalendarMobile.js +10 -52
- package/lib/components/Card.d.ts +100 -100
- package/lib/components/Card.js +2 -2
- package/lib/components/Cascader.js +2 -2
- package/lib/components/ChainedDropdownSelection.d.ts +80 -80
- package/lib/components/ChainedDropdownSelection.js +2 -2
- package/lib/components/ChainedSelection.d.ts +80 -80
- package/lib/components/ChainedSelection.js +2 -2
- package/lib/components/Checkbox.d.ts +10 -10
- package/lib/components/Checkbox.js +2 -2
- package/lib/components/CityArea.js +2 -2
- package/lib/components/CityDB.js +2 -2
- package/lib/components/CodeMirror.js +2 -2
- package/lib/components/Collapse.d.ts +120 -120
- package/lib/components/Collapse.js +2 -2
- package/lib/components/CollapseGroup.d.ts +40 -40
- package/lib/components/CollapseGroup.js +3 -3
- package/lib/components/ColorPicker.d.ts +120 -120
- package/lib/components/ColorPicker.js +2 -2
- package/lib/components/Combo.js +2 -2
- package/lib/components/ConditionBuilder.js +2 -2
- package/lib/components/ConfirmBox.d.ts +80 -80
- package/lib/components/ConfirmBox.js +2 -2
- package/lib/components/ContextMenu.d.ts +1 -1
- package/lib/components/ContextMenu.js +2 -2
- package/lib/components/DatePicker.d.ts +120 -120
- package/lib/components/DatePicker.js +2 -2
- package/lib/components/DateRangePicker.d.ts +320 -320
- package/lib/components/DateRangePicker.js +2 -2
- package/lib/components/DiffEditor.js +2 -2
- package/lib/components/DndContainer.js +2 -2
- package/lib/components/Drawer.d.ts +30 -30
- package/lib/components/Drawer.js +2 -2
- package/lib/components/DropDownSelection.d.ts +80 -80
- package/lib/components/DropDownSelection.js +2 -2
- package/lib/components/Editor.d.ts +40 -40
- package/lib/components/Editor.js +2 -2
- package/lib/components/Form.js +2 -2
- package/lib/components/FormField.js +2 -2
- package/lib/components/FormulaPicker.js +2 -2
- package/lib/components/GaodeMapPicker.js +2 -2
- package/lib/components/GridNav.js +2 -2
- package/lib/components/GridNavItem.js +2 -2
- package/lib/components/GroupedSelection.d.ts +80 -80
- package/lib/components/GroupedSelection.js +2 -2
- package/lib/components/HeadCellDropDown.js +2 -2
- package/lib/components/Html.js +2 -2
- package/lib/components/Icon.js +2 -2
- package/lib/components/ImageGallery.d.ts +40 -40
- package/lib/components/ImageGallery.js +2 -2
- package/lib/components/Input.js +2 -2
- package/lib/components/InputBox.d.ts +20 -20
- package/lib/components/InputBox.js +2 -2
- package/lib/components/InputBoxWithSuggestion.js +2 -2
- package/lib/components/InputJSONSchema.js +2 -2
- package/lib/components/InputTable.js +2 -2
- package/lib/components/JSONSchemaEditor.js +2 -2
- package/lib/components/Layout.js +2 -2
- package/lib/components/Link.js +2 -2
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +2 -2
- package/lib/components/ListMenu.d.ts +80 -80
- package/lib/components/ListMenu.js +2 -2
- package/lib/components/LocationPicker.d.ts +80 -80
- package/lib/components/LocationPicker.js +2 -2
- package/lib/components/Markdown.js +2 -2
- package/lib/components/Menu.js +2 -2
- package/lib/components/MobileDevTool.d.ts +1 -0
- package/lib/components/MobileDevTool.js +5 -3
- package/lib/components/Modal.d.ts +120 -120
- package/lib/components/Modal.js +2 -2
- package/lib/components/ModalManager.js +2 -2
- package/lib/components/MonthRangePicker.d.ts +200 -200
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +2 -2
- package/lib/components/NumberInput.d.ts +20 -20
- package/lib/components/NumberInput.js +4 -3
- package/lib/components/OverflowTpl.js +2 -2
- package/lib/components/Pagination.d.ts +80 -80
- package/lib/components/Pagination.js +2 -2
- package/lib/components/PdfViewer.js +2 -2
- package/lib/components/Picker.js +2 -2
- package/lib/components/PickerColumn.js +2 -2
- package/lib/components/PickerContainer.js +2 -2
- package/lib/components/PopOverContainer.js +2 -2
- package/lib/components/PopUp.d.ts +80 -80
- package/lib/components/PopUp.js +2 -2
- package/lib/components/Progress.d.ts +90 -90
- package/lib/components/Progress.js +2 -2
- package/lib/components/PullRefresh.js +2 -2
- package/lib/components/Radios.d.ts +20 -20
- package/lib/components/Radios.js +2 -2
- package/lib/components/Range.js +2 -2
- package/lib/components/Rating.d.ts +30 -30
- package/lib/components/Rating.js +2 -2
- package/lib/components/ResultBox.d.ts +120 -120
- package/lib/components/ResultBox.js +2 -2
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +2 -2
- package/lib/components/ResultTableList.d.ts +80 -80
- package/lib/components/ResultTableList.js +2 -2
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +2 -2
- package/lib/components/RichText.d.ts +2 -0
- package/lib/components/RichText.js +6 -2
- package/lib/components/SearchBox.d.ts +120 -120
- package/lib/components/SearchBox.js +2 -2
- package/lib/components/Select.d.ts +1684 -1683
- package/lib/components/Select.js +6 -5
- package/lib/components/SelectMobile.js +2 -2
- package/lib/components/Selection.d.ts +80 -80
- package/lib/components/Selection.js +2 -2
- package/lib/components/Shape.js +2 -2
- package/lib/components/Signature.js +2 -2
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +2 -2
- package/lib/components/Spinner.d.ts +50 -50
- package/lib/components/Spinner.js +2 -2
- package/lib/components/Steps.js +2 -2
- package/lib/components/Switch.d.ts +10 -10
- package/lib/components/Switch.js +2 -2
- package/lib/components/Tab.js +2 -2
- package/lib/components/Table.js +2 -2
- package/lib/components/TableSelection.d.ts +80 -80
- package/lib/components/TableSelection.js +2 -2
- package/lib/components/Tabs.d.ts +120 -120
- package/lib/components/Tabs.js +3 -3
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +2 -2
- package/lib/components/TabsTransferPicker.js +2 -2
- package/lib/components/Tag.d.ts +70 -70
- package/lib/components/Tag.js +2 -2
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +2 -2
- package/lib/components/Timeline.js +2 -2
- package/lib/components/TimelineItem.js +2 -2
- package/lib/components/Tinymce.d.ts +2 -2
- package/lib/components/Tinymce.js +6 -2
- package/lib/components/TitleBar.js +2 -2
- package/lib/components/Toast.d.ts +120 -120
- package/lib/components/Toast.js +2 -2
- package/lib/components/Tooltip.d.ts +1 -0
- package/lib/components/Tooltip.js +4 -4
- package/lib/components/TooltipWrapper.d.ts +44 -40
- package/lib/components/TooltipWrapper.js +4 -4
- package/lib/components/Transfer.d.ts +187 -187
- package/lib/components/Transfer.js +2 -2
- package/lib/components/TransferDropDown.d.ts +160 -160
- package/lib/components/TransferDropDown.js +2 -2
- package/lib/components/TransferPicker.js +2 -2
- package/lib/components/TransferSearch.js +2 -2
- package/lib/components/Tree.d.ts +280 -280
- package/lib/components/Tree.js +2 -2
- package/lib/components/TreeSelection.d.ts +120 -120
- package/lib/components/TreeSelection.js +2 -2
- package/lib/components/UserSelect.d.ts +40 -40
- package/lib/components/UserSelect.js +2 -2
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +2 -2
- package/lib/components/VerificationCode.js +2 -2
- package/lib/components/VirtualList.js +2 -2
- package/lib/components/WithRemoteConfig.d.ts +1 -0
- package/lib/components/WithRemoteConfig.js +2 -2
- package/lib/components/WithStore.js +2 -2
- package/lib/components/calendar/Calendar.js +2 -2
- package/lib/components/calendar/CalendarContainer.js +2 -2
- package/lib/components/calendar/DaysView.js +2 -2
- package/lib/components/calendar/MonthsView.js +2 -2
- package/lib/components/calendar/QuartersView.js +2 -2
- package/lib/components/calendar/TimeView.js +2 -2
- package/lib/components/calendar/YearsView.js +2 -2
- package/lib/components/condition-builder/Expression.js +2 -2
- package/lib/components/condition-builder/Field.js +2 -2
- package/lib/components/condition-builder/Func.js +2 -2
- package/lib/components/condition-builder/Group.js +2 -2
- package/lib/components/condition-builder/GroupOrItem.js +2 -2
- package/lib/components/condition-builder/InputSwitch.js +2 -2
- package/lib/components/condition-builder/Item.js +2 -2
- package/lib/components/condition-builder/Value.js +2 -2
- package/lib/components/condition-builder/config.js +2 -2
- package/lib/components/condition-builder/index.d.ts +1 -1
- package/lib/components/condition-builder/index.js +2 -2
- package/lib/components/formula/CodeEditor.js +2 -2
- package/lib/components/formula/Editor.d.ts +40 -40
- package/lib/components/formula/Editor.js +2 -2
- package/lib/components/formula/FuncList.js +2 -2
- package/lib/components/formula/Input.js +2 -2
- package/lib/components/formula/Picker.d.ts +40 -40
- package/lib/components/formula/Picker.js +2 -2
- package/lib/components/formula/VariableList.js +2 -2
- package/lib/components/formula/plugin.js +2 -2
- package/lib/components/icons.d.ts +2 -2
- package/lib/components/icons.js +88 -9
- package/lib/components/json-schema/Array.js +2 -2
- package/lib/components/json-schema/Item.js +2 -2
- package/lib/components/json-schema/Object.js +2 -2
- package/lib/components/json-schema/index.js +2 -2
- package/lib/components/menu/MenuContext.js +2 -2
- package/lib/components/menu/MenuItem.js +2 -2
- package/lib/components/menu/SubMenu.js +2 -2
- package/lib/components/menu/index.d.ts +60 -60
- package/lib/components/menu/index.js +2 -2
- package/lib/components/schema-editor/Array.js +2 -2
- package/lib/components/schema-editor/Common.js +2 -2
- package/lib/components/schema-editor/Item.js +2 -2
- package/lib/components/schema-editor/Object.js +2 -2
- package/lib/components/schema-editor/SchemaVariableList.js +2 -2
- package/lib/components/schema-editor/SchemaVariableListPicker.js +2 -2
- package/lib/components/schema-editor/index.d.ts +40 -40
- package/lib/components/schema-editor/index.js +2 -2
- package/lib/components/table/Cell.js +2 -2
- package/lib/components/table/ColGroup.js +2 -2
- package/lib/components/table/Head.js +2 -2
- package/lib/components/table/HeadCellDropDown.js +2 -2
- package/lib/components/table/HeadCellFilter.d.ts +40 -40
- package/lib/components/table/HeadCellFilter.js +2 -2
- package/lib/components/table/HeadCellSelect.d.ts +40 -40
- package/lib/components/table/HeadCellSelect.js +2 -2
- package/lib/components/table/HeadCellSort.js +2 -2
- package/lib/components/table/ItemActionsWrapper.js +2 -2
- package/lib/components/table/Row.js +2 -2
- package/lib/components/table/SummaryRow.js +2 -2
- package/lib/components/table/index.d.ts +120 -120
- package/lib/components/table/index.js +2 -2
- package/lib/components/table/util.d.ts +4 -4
- package/lib/components/table/util.js +2 -2
- package/lib/components/virtual-list/AutoSizer.js +2 -2
- package/lib/components/virtual-list/SizeAndPositionManager.js +2 -2
- package/lib/components/virtual-list/constants.js +2 -2
- package/lib/components/virtual-list/index.js +2 -2
- package/lib/components/withBadge.js +2 -2
- package/lib/hooks/use-on-screen.js +2 -2
- package/lib/hooks/use-set-state.js +2 -2
- package/lib/hooks/use-sub-form.js +2 -2
- package/lib/hooks/use-touch.js +2 -2
- package/lib/hooks/use-update-effect.js +2 -2
- package/lib/hooks/use-validation-resolver.js +2 -2
- package/lib/icons/alert-danger.svg.js +2 -2
- package/lib/icons/alert-info.svg.js +2 -2
- package/lib/icons/alert-success.svg.js +2 -2
- package/lib/icons/alert-warning.svg.js +2 -2
- package/lib/icons/arrow-double-left.svg.js +2 -2
- package/lib/icons/arrow-double-right.svg.js +2 -2
- package/lib/icons/back.svg.js +2 -2
- package/lib/icons/calendar.svg.js +2 -2
- package/lib/icons/caret.svg.js +2 -2
- package/lib/icons/check.svg.js +2 -2
- package/lib/icons/clock.svg.js +2 -2
- package/lib/icons/close-small.svg.js +2 -2
- package/lib/icons/close.svg.js +2 -2
- package/lib/icons/cloud-upload.svg.js +2 -2
- package/lib/icons/column-filter.svg.js +2 -2
- package/lib/icons/columns.svg.js +2 -2
- package/lib/icons/compress-alt.svg.js +2 -2
- package/lib/icons/copy.svg.js +2 -2
- package/lib/icons/date.svg.js +2 -2
- package/lib/icons/department.svg.js +2 -2
- package/lib/icons/desk-empty.svg.js +2 -2
- package/lib/icons/dot.svg.js +2 -2
- package/lib/icons/down-arrow-bold.svg.js +2 -2
- package/lib/icons/down.svg.js +2 -2
- package/lib/icons/download.svg.js +2 -2
- package/lib/icons/drag-bar.svg.js +2 -2
- package/lib/icons/drag.svg.js +2 -2
- package/lib/icons/edit.svg.js +2 -2
- package/lib/icons/ellipsis-v.svg.js +2 -2
- package/lib/icons/enter.svg.js +2 -2
- package/lib/icons/exchange.svg.js +2 -2
- package/lib/icons/expand-alt.svg.js +2 -2
- package/lib/icons/fail.svg.js +2 -2
- package/lib/icons/file.svg.js +2 -2
- package/lib/icons/filter.svg.js +2 -2
- package/lib/icons/folder.svg.js +2 -2
- package/lib/icons/fullscreen.svg.js +2 -2
- package/lib/icons/function.svg.js +2 -2
- package/lib/icons/home.svg.js +2 -2
- package/lib/icons/if.svg.js +2 -2
- package/lib/icons/image.svg.js +2 -2
- package/lib/icons/info-circle.svg.js +2 -2
- package/lib/icons/info.svg.js +2 -2
- package/lib/icons/input-clear.svg.js +2 -2
- package/lib/icons/invisible.svg.js +2 -2
- package/lib/icons/left-arrow.svg.js +2 -2
- package/lib/icons/loading-outline.svg.js +2 -2
- package/lib/icons/location.svg.js +2 -2
- package/lib/icons/menu.svg.js +2 -2
- package/lib/icons/minus.svg.js +2 -2
- package/lib/icons/move.svg.js +2 -2
- package/lib/icons/mute.svg.js +2 -2
- package/lib/icons/new-edit.svg.js +2 -2
- package/lib/icons/pause.svg.js +2 -2
- package/lib/icons/pencil.svg.js +2 -2
- package/lib/icons/play.svg.js +2 -2
- package/lib/icons/plus-cicle.svg.js +2 -2
- package/lib/icons/plus-fine.svg.js +2 -2
- package/lib/icons/plus.svg.js +2 -2
- package/lib/icons/post.svg.js +2 -2
- package/lib/icons/question-mark.svg.js +2 -2
- package/lib/icons/question.svg.js +2 -2
- package/lib/icons/redo.svg.js +2 -2
- package/lib/icons/refresh.svg.js +2 -2
- package/lib/icons/reload.svg.js +2 -2
- package/lib/icons/remove.svg.js +2 -2
- package/lib/icons/retry.svg.js +2 -2
- package/lib/icons/right-arrow-bold.svg.js +2 -2
- package/lib/icons/right-arrow.svg.js +2 -2
- package/lib/icons/right-double-arrow.svg.js +2 -2
- package/lib/icons/role.svg.js +2 -2
- package/lib/icons/rotate-left.svg.js +2 -2
- package/lib/icons/rotate-right.svg.js +2 -2
- package/lib/icons/rotate-screen.svg.js +2 -2
- package/lib/icons/scale-origin.svg.js +2 -2
- package/lib/icons/schedule.svg.js +2 -2
- package/lib/icons/search.svg.js +2 -2
- package/lib/icons/setting.svg.js +2 -2
- package/lib/icons/slider-handle-icon.svg.js +2 -2
- package/lib/icons/sort-asc.svg.js +2 -2
- package/lib/icons/sort-default.svg.js +2 -2
- package/lib/icons/sort-desc.svg.js +2 -2
- package/lib/icons/star.svg.js +2 -2
- package/lib/icons/status-close.svg.js +2 -2
- package/lib/icons/steps-finsh.svg.js +2 -2
- package/lib/icons/sub-plus.svg.js +2 -2
- package/lib/icons/success.svg.js +2 -2
- package/lib/icons/transparent.svg.js +2 -2
- package/lib/icons/trash.svg.js +2 -2
- package/lib/icons/tree-down.svg.js +2 -2
- package/lib/icons/undo-normal.svg.js +2 -2
- package/lib/icons/undo.svg.js +2 -2
- package/lib/icons/unfullscreen.svg.js +2 -2
- package/lib/icons/upload.svg.js +2 -2
- package/lib/icons/user-remove.svg.js +2 -2
- package/lib/icons/view.svg.js +2 -2
- package/lib/icons/volume.svg.js +2 -2
- package/lib/icons/warning-mark.svg.js +2 -2
- package/lib/icons/warning.svg.js +2 -2
- package/lib/icons/window-restore.svg.js +2 -2
- package/lib/icons/zoom-in.svg.js +2 -2
- package/lib/icons/zoom-out.svg.js +2 -2
- package/lib/index.js +2 -2
- package/lib/locale/de-DE.js +2 -2
- package/lib/locale/en-US.js +2 -2
- package/lib/locale/zh-CN.js +2 -2
- package/lib/scss/helper.scss.js +2 -2
- package/lib/scss/themes/ang.scss.js +2 -2
- package/lib/scss/themes/antd.scss.js +2 -2
- package/lib/scss/themes/cxd.scss.js +2 -2
- package/lib/scss/themes/dark.scss.js +2 -2
- package/lib/scss/themes/default.scss.js +2 -2
- package/lib/themes/ang.css +149 -20
- package/lib/themes/ang.js +2 -2
- package/lib/themes/antd.css +149 -20
- package/lib/themes/antd.js +2 -2
- package/lib/themes/cxd.css +149 -20
- package/lib/themes/cxd.js +2 -2
- package/lib/themes/dark.css +149 -20
- package/lib/themes/dark.js +2 -2
- package/lib/themes/default.css +149 -20
- package/lib/utils/smoothSignature.js +2 -2
- package/lib/utils/vectorComputed.js +2 -2
- package/lib/withRemoteConfig.js +2 -2
- package/lib/withStore.js +2 -2
- package/package.json +5 -4
- package/scss/_mixins.scss +3 -0
- package/scss/components/_carousel.scss +66 -0
- package/scss/components/_images.scss +1 -1
- package/scss/components/_quick-edit.scss +1 -1
- package/scss/components/_table.scss +4 -1
- package/scss/components/_tpl.scss +40 -2
- package/scss/components/form/_form.scss +10 -72
- package/scss/components/form/_select.scss +16 -16
|
@@ -53,7 +53,6 @@ export interface CalendarMobileProps extends ThemeProps, LocaleProps {
|
|
|
53
53
|
export interface CalendarMobileState {
|
|
54
54
|
startDate?: moment.Moment;
|
|
55
55
|
endDate?: moment.Moment;
|
|
56
|
-
monthHeights?: number[];
|
|
57
56
|
currentDate: moment.Moment;
|
|
58
57
|
showToast: boolean;
|
|
59
58
|
isScrollToBottom: boolean;
|
|
@@ -78,7 +77,6 @@ export declare class CalendarMobile extends React.Component<CalendarMobileProps,
|
|
|
78
77
|
componentWillUnmount(): void;
|
|
79
78
|
initMonths(): void;
|
|
80
79
|
scollToDate(date: moment.Moment): void;
|
|
81
|
-
onMobileBodyScroll(e: any): void;
|
|
82
80
|
scrollPreYear(): void;
|
|
83
81
|
scrollAfterYear(): void;
|
|
84
82
|
getDaysOfWeek(): string[];
|
|
@@ -102,7 +100,7 @@ export declare class CalendarMobile extends React.Component<CalendarMobileProps,
|
|
|
102
100
|
render(): React.JSX.Element;
|
|
103
101
|
}
|
|
104
102
|
declare const _default: {
|
|
105
|
-
new (props: Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
103
|
+
new (props: Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
106
104
|
showViewMode?: "years" | "months" | undefined;
|
|
107
105
|
} & {} & {
|
|
108
106
|
locale?: string | undefined;
|
|
@@ -113,14 +111,14 @@ declare const _default: {
|
|
|
113
111
|
getWrappedInstance(): any;
|
|
114
112
|
render(): React.JSX.Element;
|
|
115
113
|
context: unknown;
|
|
116
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
114
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
117
115
|
showViewMode?: "years" | "months" | undefined;
|
|
118
116
|
} & {} & {
|
|
119
117
|
locale?: string | undefined;
|
|
120
118
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
121
119
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
122
120
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
123
|
-
readonly props: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
121
|
+
readonly props: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
124
122
|
showViewMode?: "years" | "months" | undefined;
|
|
125
123
|
} & {} & {
|
|
126
124
|
locale?: string | undefined;
|
|
@@ -131,7 +129,7 @@ declare const _default: {
|
|
|
131
129
|
[key: string]: React.ReactInstance;
|
|
132
130
|
};
|
|
133
131
|
componentDidMount?(): void;
|
|
134
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
132
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
135
133
|
showViewMode?: "years" | "months" | undefined;
|
|
136
134
|
} & {} & {
|
|
137
135
|
locale?: string | undefined;
|
|
@@ -139,13 +137,13 @@ declare const _default: {
|
|
|
139
137
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
140
138
|
componentWillUnmount?(): void;
|
|
141
139
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
142
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
140
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
143
141
|
showViewMode?: "years" | "months" | undefined;
|
|
144
142
|
} & {} & {
|
|
145
143
|
locale?: string | undefined;
|
|
146
144
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
147
145
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
|
|
148
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
146
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
149
147
|
showViewMode?: "years" | "months" | undefined;
|
|
150
148
|
} & {} & {
|
|
151
149
|
locale?: string | undefined;
|
|
@@ -153,25 +151,25 @@ declare const _default: {
|
|
|
153
151
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
154
152
|
componentWillMount?(): void;
|
|
155
153
|
UNSAFE_componentWillMount?(): void;
|
|
156
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
154
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
157
155
|
showViewMode?: "years" | "months" | undefined;
|
|
158
156
|
} & {} & {
|
|
159
157
|
locale?: string | undefined;
|
|
160
158
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
161
159
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
162
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
160
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
163
161
|
showViewMode?: "years" | "months" | undefined;
|
|
164
162
|
} & {} & {
|
|
165
163
|
locale?: string | undefined;
|
|
166
164
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
167
165
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
168
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
166
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
169
167
|
showViewMode?: "years" | "months" | undefined;
|
|
170
168
|
} & {} & {
|
|
171
169
|
locale?: string | undefined;
|
|
172
170
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
173
171
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
174
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
172
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
175
173
|
showViewMode?: "years" | "months" | undefined;
|
|
176
174
|
} & {} & {
|
|
177
175
|
locale?: string | undefined;
|
|
@@ -181,7 +179,7 @@ declare const _default: {
|
|
|
181
179
|
displayName: string;
|
|
182
180
|
contextType: React.Context<string>;
|
|
183
181
|
ComposedComponent: React.ComponentType<{
|
|
184
|
-
new (props: Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
182
|
+
new (props: Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
185
183
|
showViewMode?: "years" | "months" | undefined;
|
|
186
184
|
} & {} & {
|
|
187
185
|
locale?: string | undefined;
|
|
@@ -192,14 +190,14 @@ declare const _default: {
|
|
|
192
190
|
getWrappedInstance(): any;
|
|
193
191
|
render(): React.JSX.Element;
|
|
194
192
|
context: unknown;
|
|
195
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
193
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
196
194
|
showViewMode?: "years" | "months" | undefined;
|
|
197
195
|
} & {} & {
|
|
198
196
|
locale?: string | undefined;
|
|
199
197
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
200
198
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
201
199
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
202
|
-
readonly props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
200
|
+
readonly props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
203
201
|
showViewMode?: "years" | "months" | undefined;
|
|
204
202
|
} & {} & {
|
|
205
203
|
locale?: string | undefined;
|
|
@@ -210,7 +208,7 @@ declare const _default: {
|
|
|
210
208
|
[key: string]: React.ReactInstance;
|
|
211
209
|
};
|
|
212
210
|
componentDidMount?(): void;
|
|
213
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
211
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
214
212
|
showViewMode?: "years" | "months" | undefined;
|
|
215
213
|
} & {} & {
|
|
216
214
|
locale?: string | undefined;
|
|
@@ -218,13 +216,13 @@ declare const _default: {
|
|
|
218
216
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
219
217
|
componentWillUnmount?(): void;
|
|
220
218
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
221
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
219
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
222
220
|
showViewMode?: "years" | "months" | undefined;
|
|
223
221
|
} & {} & {
|
|
224
222
|
locale?: string | undefined;
|
|
225
223
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
226
224
|
}>, prevState: Readonly<{}>): any;
|
|
227
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
225
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
228
226
|
showViewMode?: "years" | "months" | undefined;
|
|
229
227
|
} & {} & {
|
|
230
228
|
locale?: string | undefined;
|
|
@@ -232,25 +230,25 @@ declare const _default: {
|
|
|
232
230
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
233
231
|
componentWillMount?(): void;
|
|
234
232
|
UNSAFE_componentWillMount?(): void;
|
|
235
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
233
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
236
234
|
showViewMode?: "years" | "months" | undefined;
|
|
237
235
|
} & {} & {
|
|
238
236
|
locale?: string | undefined;
|
|
239
237
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
240
238
|
}>, nextContext: any): void;
|
|
241
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
239
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
242
240
|
showViewMode?: "years" | "months" | undefined;
|
|
243
241
|
} & {} & {
|
|
244
242
|
locale?: string | undefined;
|
|
245
243
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
246
244
|
}>, nextContext: any): void;
|
|
247
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
245
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
248
246
|
showViewMode?: "years" | "months" | undefined;
|
|
249
247
|
} & {} & {
|
|
250
248
|
locale?: string | undefined;
|
|
251
249
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
252
250
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
253
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
251
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
254
252
|
showViewMode?: "years" | "months" | undefined;
|
|
255
253
|
} & {} & {
|
|
256
254
|
locale?: string | undefined;
|
|
@@ -264,7 +262,7 @@ declare const _default: {
|
|
|
264
262
|
ComposedComponent: typeof CalendarMobile;
|
|
265
263
|
}>;
|
|
266
264
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
267
|
-
new (props: Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
265
|
+
new (props: Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
268
266
|
showViewMode?: "years" | "months" | undefined;
|
|
269
267
|
} & {} & {
|
|
270
268
|
locale?: string | undefined;
|
|
@@ -275,14 +273,14 @@ declare const _default: {
|
|
|
275
273
|
getWrappedInstance(): any;
|
|
276
274
|
render(): React.JSX.Element;
|
|
277
275
|
context: unknown;
|
|
278
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
276
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
279
277
|
showViewMode?: "years" | "months" | undefined;
|
|
280
278
|
} & {} & {
|
|
281
279
|
locale?: string | undefined;
|
|
282
280
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
283
281
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
284
282
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
285
|
-
readonly props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
283
|
+
readonly props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
286
284
|
showViewMode?: "years" | "months" | undefined;
|
|
287
285
|
} & {} & {
|
|
288
286
|
locale?: string | undefined;
|
|
@@ -293,7 +291,7 @@ declare const _default: {
|
|
|
293
291
|
[key: string]: React.ReactInstance;
|
|
294
292
|
};
|
|
295
293
|
componentDidMount?(): void;
|
|
296
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
294
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
297
295
|
showViewMode?: "years" | "months" | undefined;
|
|
298
296
|
} & {} & {
|
|
299
297
|
locale?: string | undefined;
|
|
@@ -301,13 +299,13 @@ declare const _default: {
|
|
|
301
299
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
302
300
|
componentWillUnmount?(): void;
|
|
303
301
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
304
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
302
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
305
303
|
showViewMode?: "years" | "months" | undefined;
|
|
306
304
|
} & {} & {
|
|
307
305
|
locale?: string | undefined;
|
|
308
306
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
309
307
|
}>, prevState: Readonly<{}>): any;
|
|
310
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
308
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
311
309
|
showViewMode?: "years" | "months" | undefined;
|
|
312
310
|
} & {} & {
|
|
313
311
|
locale?: string | undefined;
|
|
@@ -315,25 +313,25 @@ declare const _default: {
|
|
|
315
313
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
316
314
|
componentWillMount?(): void;
|
|
317
315
|
UNSAFE_componentWillMount?(): void;
|
|
318
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
316
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
319
317
|
showViewMode?: "years" | "months" | undefined;
|
|
320
318
|
} & {} & {
|
|
321
319
|
locale?: string | undefined;
|
|
322
320
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
323
321
|
}>, nextContext: any): void;
|
|
324
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
322
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
325
323
|
showViewMode?: "years" | "months" | undefined;
|
|
326
324
|
} & {} & {
|
|
327
325
|
locale?: string | undefined;
|
|
328
326
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
329
327
|
}>, nextContext: any): void;
|
|
330
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
328
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
331
329
|
showViewMode?: "years" | "months" | undefined;
|
|
332
330
|
} & {} & {
|
|
333
331
|
locale?: string | undefined;
|
|
334
332
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
335
333
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
336
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
334
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
337
335
|
showViewMode?: "years" | "months" | undefined;
|
|
338
336
|
} & {} & {
|
|
339
337
|
locale?: string | undefined;
|
|
@@ -347,7 +345,7 @@ declare const _default: {
|
|
|
347
345
|
ComposedComponent: typeof CalendarMobile;
|
|
348
346
|
}, {}> & {
|
|
349
347
|
ComposedComponent: {
|
|
350
|
-
new (props: Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
348
|
+
new (props: Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
351
349
|
showViewMode?: "years" | "months" | undefined;
|
|
352
350
|
} & {} & {
|
|
353
351
|
locale?: string | undefined;
|
|
@@ -358,14 +356,14 @@ declare const _default: {
|
|
|
358
356
|
getWrappedInstance(): any;
|
|
359
357
|
render(): React.JSX.Element;
|
|
360
358
|
context: unknown;
|
|
361
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
359
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
362
360
|
showViewMode?: "years" | "months" | undefined;
|
|
363
361
|
} & {} & {
|
|
364
362
|
locale?: string | undefined;
|
|
365
363
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
366
364
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
367
365
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
368
|
-
readonly props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
366
|
+
readonly props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
369
367
|
showViewMode?: "years" | "months" | undefined;
|
|
370
368
|
} & {} & {
|
|
371
369
|
locale?: string | undefined;
|
|
@@ -376,7 +374,7 @@ declare const _default: {
|
|
|
376
374
|
[key: string]: React.ReactInstance;
|
|
377
375
|
};
|
|
378
376
|
componentDidMount?(): void;
|
|
379
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
377
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
380
378
|
showViewMode?: "years" | "months" | undefined;
|
|
381
379
|
} & {} & {
|
|
382
380
|
locale?: string | undefined;
|
|
@@ -384,13 +382,13 @@ declare const _default: {
|
|
|
384
382
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
385
383
|
componentWillUnmount?(): void;
|
|
386
384
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
387
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
385
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
388
386
|
showViewMode?: "years" | "months" | undefined;
|
|
389
387
|
} & {} & {
|
|
390
388
|
locale?: string | undefined;
|
|
391
389
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
392
390
|
}>, prevState: Readonly<{}>): any;
|
|
393
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
391
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
394
392
|
showViewMode?: "years" | "months" | undefined;
|
|
395
393
|
} & {} & {
|
|
396
394
|
locale?: string | undefined;
|
|
@@ -398,25 +396,25 @@ declare const _default: {
|
|
|
398
396
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
399
397
|
componentWillMount?(): void;
|
|
400
398
|
UNSAFE_componentWillMount?(): void;
|
|
401
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
399
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
402
400
|
showViewMode?: "years" | "months" | undefined;
|
|
403
401
|
} & {} & {
|
|
404
402
|
locale?: string | undefined;
|
|
405
403
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
406
404
|
}>, nextContext: any): void;
|
|
407
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
405
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
408
406
|
showViewMode?: "years" | "months" | undefined;
|
|
409
407
|
} & {} & {
|
|
410
408
|
locale?: string | undefined;
|
|
411
409
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
412
410
|
}>, nextContext: any): void;
|
|
413
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
411
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
414
412
|
showViewMode?: "years" | "months" | undefined;
|
|
415
413
|
} & {} & {
|
|
416
414
|
locale?: string | undefined;
|
|
417
415
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
418
416
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
419
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
417
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "onChange" | "close" | "className" | "embed" | "style" | "classPrefix" | "classnames" | "theme" | "mobileUI" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
420
418
|
showViewMode?: "years" | "months" | undefined;
|
|
421
419
|
} & {} & {
|
|
422
420
|
locale?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v6.11.0-beta.
|
|
3
|
-
* Copyright 2018-
|
|
2
|
+
* amis-ui v6.11.0-beta.5
|
|
3
|
+
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
'use strict';
|
|
@@ -115,23 +115,12 @@ var CalendarMobile = /** @class */ (function (_super) {
|
|
|
115
115
|
};
|
|
116
116
|
CalendarMobile.prototype.initMonths = function () {
|
|
117
117
|
if (this.mobileBody.current) {
|
|
118
|
-
var header = this.mobileHeader.current;
|
|
119
|
-
var monthHeights = [];
|
|
120
|
-
var monthCollection = this.mobileBody.current.children;
|
|
121
|
-
for (var i = 0; i < monthCollection.length; i++) {
|
|
122
|
-
monthHeights[i] = monthCollection[i].offsetTop - header.clientHeight;
|
|
123
|
-
}
|
|
124
|
-
this.setState({
|
|
125
|
-
monthHeights: monthHeights
|
|
126
|
-
});
|
|
127
118
|
var defaultDate = this.props.defaultDate || this.state.currentDate;
|
|
128
119
|
this.scollToDate(defaultDate ? moment__default["default"](defaultDate) : moment__default["default"]());
|
|
129
120
|
}
|
|
130
121
|
};
|
|
131
122
|
CalendarMobile.prototype.scollToDate = function (date) {
|
|
132
|
-
var
|
|
133
|
-
var minDate = this.state.minDate;
|
|
134
|
-
var index = date.diff(minDate, showViewMode);
|
|
123
|
+
var index = date.month();
|
|
135
124
|
var currentEl = this.mobileBody.current.children[index];
|
|
136
125
|
if (!currentEl) {
|
|
137
126
|
return;
|
|
@@ -141,31 +130,6 @@ var CalendarMobile = /** @class */ (function (_super) {
|
|
|
141
130
|
this.mobileBody.current.scrollTop -
|
|
142
131
|
header.clientHeight);
|
|
143
132
|
};
|
|
144
|
-
CalendarMobile.prototype.onMobileBodyScroll = function (e) {
|
|
145
|
-
var _a, _b;
|
|
146
|
-
var showViewMode = this.props.showViewMode;
|
|
147
|
-
var monthHeights = this.state.monthHeights;
|
|
148
|
-
var minDate = (_a = this.state.minDate) === null || _a === void 0 ? void 0 : _a.clone();
|
|
149
|
-
if (!((_b = this.mobileBody) === null || _b === void 0 ? void 0 : _b.current) || !monthHeights || !minDate) {
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
var scrollTop = this.mobileBody.current.scrollTop;
|
|
153
|
-
var clientHeight = this.mobileBody.current.clientHeight;
|
|
154
|
-
var scrollHeight = this.mobileBody.current.scrollHeight;
|
|
155
|
-
var i = 0;
|
|
156
|
-
for (i; i < monthHeights.length; i++) {
|
|
157
|
-
if (scrollTop < monthHeights[i]) {
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
i--;
|
|
162
|
-
i < 0 && (i = 0);
|
|
163
|
-
var currentDate = minDate.add(i, showViewMode);
|
|
164
|
-
this.setState({
|
|
165
|
-
currentDate: currentDate,
|
|
166
|
-
isScrollToBottom: scrollTop + clientHeight === scrollHeight
|
|
167
|
-
});
|
|
168
|
-
};
|
|
169
133
|
CalendarMobile.prototype.scrollPreYear = function () {
|
|
170
134
|
if (!this.state.currentDate) {
|
|
171
135
|
return;
|
|
@@ -394,11 +358,12 @@ var CalendarMobile = /** @class */ (function (_super) {
|
|
|
394
358
|
var _this = this;
|
|
395
359
|
var _a = this.props, cx = _a.classnames, dateFormat = _a.dateFormat; _a.timeFormat; var inputFormat = _a.inputFormat, displayForamt = _a.displayForamt, locale = _a.locale, _b = _a.viewMode, viewMode = _b === void 0 ? 'days' : _b, close = _a.close, defaultDate = _a.defaultDate, showViewMode = _a.showViewMode, isEndDate = _a.isEndDate;
|
|
396
360
|
var __ = this.props.translate;
|
|
397
|
-
var _c = this.state, minDate = _c.minDate, maxDate = _c.maxDate;
|
|
361
|
+
var _c = this.state, minDate = _c.minDate, maxDate = _c.maxDate, currentDate = _c.currentDate;
|
|
398
362
|
if (!minDate || !maxDate) {
|
|
399
363
|
return;
|
|
400
364
|
}
|
|
401
365
|
var calendarDates = [];
|
|
366
|
+
var currentYear = moment__default["default"](currentDate).format('YYYY');
|
|
402
367
|
for (var minDateClone = minDate.clone(); minDateClone.isSameOrBefore(maxDate); minDateClone.add(1, showViewMode)) {
|
|
403
368
|
var date = minDateClone.clone();
|
|
404
369
|
if (defaultDate) {
|
|
@@ -407,9 +372,11 @@ var CalendarMobile = /** @class */ (function (_super) {
|
|
|
407
372
|
month: date.get('month')
|
|
408
373
|
});
|
|
409
374
|
}
|
|
410
|
-
|
|
375
|
+
if (date.year() === +currentYear) {
|
|
376
|
+
calendarDates.push(date);
|
|
377
|
+
}
|
|
411
378
|
}
|
|
412
|
-
return (_J$X_("div", { className: cx('CalendarMobile-body'), ref: this.mobileBody
|
|
379
|
+
return (_J$X_("div", { className: cx('CalendarMobile-body'), ref: this.mobileBody }, calendarDates.map(function (calendarDate, index) {
|
|
413
380
|
var rdtOldNone = showViewMode === 'months' &&
|
|
414
381
|
calendarDate.clone().startOf('month').day() === 1
|
|
415
382
|
? 'rdtOldNone'
|
|
@@ -455,15 +422,12 @@ var CalendarMobile = /** @class */ (function (_super) {
|
|
|
455
422
|
var _a = this.props, className = _a.className, cx = _a.classnames, embed = _a.embed, close = _a.close, confirm = _a.confirm, footerExtra = _a.footerExtra, timeFormat = _a.timeFormat, showViewMode = _a.showViewMode, isDatePicker = _a.isDatePicker, locale = _a.locale, popOverContainer = _a.popOverContainer, timeConstraints = _a.timeConstraints;
|
|
456
423
|
var __ = this.props.translate;
|
|
457
424
|
var _b = this.state, startDate = _b.startDate, endDate = _b.endDate, currentDate = _b.currentDate, showToast = _b.showToast, isScrollToBottom = _b.isScrollToBottom, minDate = _b.minDate, maxDate = _b.maxDate, isPopupOpen = _b.isPopupOpen;
|
|
458
|
-
var dateNow = currentDate
|
|
459
|
-
? currentDate.format(__("Calendar.".concat(showViewMode === 'months' ? 'yearmonth' : 'year')))
|
|
460
|
-
: moment__default["default"]().format(__("Calendar.".concat(showViewMode === 'months' ? 'yearmonth' : 'year')));
|
|
461
425
|
var header = (_J$X_("div", { className: cx('CalendarMobile-header'), ref: this.mobileHeader },
|
|
462
426
|
_J$X_("div", { className: cx('CalendarMobile-subtitle') },
|
|
463
427
|
_J$X_("span", { className: "subtitle-text" },
|
|
464
428
|
currentDate &&
|
|
465
429
|
currentDate.isSameOrBefore(minDate, showViewMode) ? null : (_J$X_("a", { className: "rdtPrev", onClick: this.scrollPreYear }, "\u2039")),
|
|
466
|
-
_J$X_("span", { onClick: this.openDatePicker },
|
|
430
|
+
_J$X_("span", { onClick: this.openDatePicker }, moment__default["default"](currentDate).format('YYYY')),
|
|
467
431
|
(currentDate &&
|
|
468
432
|
currentDate.isSameOrAfter(maxDate, showViewMode)) ||
|
|
469
433
|
isScrollToBottom ? null : (_J$X_("a", { className: "rdtNext", onClick: this.scrollAfterYear }, "\u203A")))),
|
|
@@ -490,12 +454,6 @@ var CalendarMobile = /** @class */ (function (_super) {
|
|
|
490
454
|
CalendarMobile.defaultProps = {
|
|
491
455
|
showViewMode: 'months'
|
|
492
456
|
};
|
|
493
|
-
tslib.__decorate([
|
|
494
|
-
amisCore.autobind,
|
|
495
|
-
tslib.__metadata("design:type", Function),
|
|
496
|
-
tslib.__metadata("design:paramtypes", [Object]),
|
|
497
|
-
tslib.__metadata("design:returntype", void 0)
|
|
498
|
-
], CalendarMobile.prototype, "onMobileBodyScroll", null);
|
|
499
457
|
tslib.__decorate([
|
|
500
458
|
amisCore.autobind,
|
|
501
459
|
tslib.__metadata("design:type", Function),
|