amis-ui 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/_virtual/index.js +1 -1
- package/esm/_virtual/react-is.development.js +1 -1
- package/esm/_virtual/react-is.production.min.js +1 -1
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.js +1 -1
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.d.ts +1 -1
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.js +27 -23
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.d.ts +41 -40
- package/esm/components/CalendarMobile.js +21 -5
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.d.ts +4 -3
- package/esm/components/Cascader.js +106 -105
- package/esm/components/ChainedDropdownSelection.d.ts +559 -0
- package/esm/components/ChainedDropdownSelection.js +104 -0
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.d.ts +11 -10
- package/esm/components/Checkbox.js +3 -2
- package/esm/components/CityArea.js +3 -3
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.d.ts +22 -0
- package/esm/components/Collapse.js +10 -6
- package/esm/components/CollapseGroup.d.ts +23 -1
- package/esm/components/CollapseGroup.js +19 -14
- package/esm/components/ColorPicker.d.ts +4 -0
- package/esm/components/ColorPicker.js +32 -5
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConfirmBox.d.ts +42 -41
- package/esm/components/ConfirmBox.js +11 -4
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +43 -40
- package/esm/components/DatePicker.js +5 -5
- package/esm/components/DateRangePicker.d.ts +40 -40
- package/esm/components/DateRangePicker.js +41 -20
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.js +1 -1
- package/esm/components/DropDownSelection.d.ts +555 -0
- package/esm/components/DropDownSelection.js +77 -0
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/GaodeMapPicker.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.js +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.d.ts +11 -10
- package/esm/components/InputBox.js +5 -3
- package/esm/components/InputBoxWithSuggestion.d.ts +1 -0
- package/esm/components/InputBoxWithSuggestion.js +3 -3
- package/esm/components/InputTable.js +3 -3
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.d.ts +41 -40
- package/esm/components/ListMenu.js +6 -5
- package/esm/components/LocationPicker.d.ts +44 -40
- package/esm/components/LocationPicker.js +35 -8
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +40 -40
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.d.ts +12 -15
- package/esm/components/NumberInput.js +9 -5
- package/esm/components/Pagination.d.ts +46 -41
- package/esm/components/Pagination.js +13 -4
- package/esm/components/Picker.js +3 -3
- package/esm/components/PickerColumn.d.ts +1 -1
- package/esm/components/PickerColumn.js +2 -2
- package/esm/components/PickerContainer.d.ts +1 -0
- package/esm/components/PickerContainer.js +4 -4
- package/esm/components/PopOverContainer.d.ts +3 -0
- package/esm/components/PopOverContainer.js +14 -3
- package/esm/components/PopUp.js +3 -3
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.d.ts +10 -10
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.d.ts +2 -1
- package/esm/components/Range.js +65 -14
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.d.ts +83 -41
- package/esm/components/ResultBox.js +6 -5
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.d.ts +40 -40
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.d.ts +41 -40
- package/esm/components/SearchBox.js +5 -4
- package/esm/components/Select.d.ts +580 -580
- package/esm/components/Select.js +13 -8
- package/esm/components/SelectMobile.d.ts +37 -0
- package/esm/components/SelectMobile.js +362 -0
- package/esm/components/Selection.js +1 -1
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.js +1 -1
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.js +1 -1
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.d.ts +52 -40
- package/esm/components/Tabs.js +87 -12
- package/esm/components/TabsTransfer.d.ts +41 -40
- package/esm/components/TabsTransfer.js +7 -6
- package/esm/components/TabsTransferPicker.d.ts +2 -0
- package/esm/components/TabsTransferPicker.js +8 -8
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.d.ts +41 -40
- package/esm/components/Textarea.js +1 -1
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +1 -1
- package/esm/components/Tinymce.js +1 -1
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.d.ts +1 -1
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.d.ts +94 -92
- package/esm/components/Transfer.js +20 -15
- package/esm/components/TransferDropDown.d.ts +84 -80
- package/esm/components/TransferDropDown.js +52 -18
- package/esm/components/TransferPicker.d.ts +2 -0
- package/esm/components/TransferPicker.js +8 -8
- package/esm/components/TransferSearch.js +2 -2
- package/esm/components/Tree.d.ts +41 -40
- package/esm/components/Tree.js +25 -16
- package/esm/components/TreeSelection.js +3 -3
- package/esm/components/UserSelect.d.ts +40 -40
- package/esm/components/UserSelect.js +17 -9
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.js +7 -7
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.d.ts +2 -0
- package/esm/components/calendar/Calendar.js +8 -4
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.d.ts +3 -0
- package/esm/components/calendar/DaysView.js +17 -5
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.d.ts +11 -0
- package/esm/components/calendar/QuartersView.js +47 -5
- package/esm/components/calendar/TimeView.js +4 -2
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.d.ts +1 -1
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.d.ts +3 -7
- package/esm/components/condition-builder/Field.js +14 -72
- package/esm/components/condition-builder/Formula.js +2 -2
- package/esm/components/condition-builder/Func.js +2 -2
- package/esm/components/condition-builder/Group.d.ts +10 -1
- package/esm/components/condition-builder/Group.js +9 -5
- package/esm/components/condition-builder/GroupOrItem.d.ts +10 -1
- package/esm/components/condition-builder/GroupOrItem.js +9 -6
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.d.ts +1 -1
- package/esm/components/condition-builder/Item.js +5 -6
- package/esm/components/condition-builder/Value.js +7 -7
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.d.ts +10 -1
- package/esm/components/condition-builder/index.js +8 -4
- package/esm/components/formula/Editor.d.ts +54 -40
- package/esm/components/formula/Editor.js +94 -21
- package/esm/components/formula/FuncList.js +19 -9
- package/esm/components/formula/Picker.d.ts +43 -41
- package/esm/components/formula/Picker.js +39 -17
- package/esm/components/formula/VariableList.d.ts +1 -0
- package/esm/components/formula/VariableList.js +107 -23
- package/esm/components/formula/plugin.d.ts +4 -2
- package/esm/components/formula/plugin.js +49 -25
- package/esm/components/icons.js +1 -1
- package/esm/components/json-schema/Array.js +5 -3
- package/esm/components/json-schema/Item.js +4 -4
- package/esm/components/json-schema/Object.js +8 -4
- package/esm/components/json-schema/index.d.ts +1 -0
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.js +3 -2
- package/esm/components/menu/SubMenu.js +3 -3
- package/esm/components/menu/index.d.ts +15 -10
- package/esm/components/menu/index.js +34 -14
- package/esm/components/schema-editor/Array.js +3 -3
- package/esm/components/schema-editor/Common.d.ts +1 -0
- package/esm/components/schema-editor/Common.js +7 -7
- package/esm/components/schema-editor/Item.d.ts +1 -0
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.js +5 -5
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.d.ts +41 -40
- package/esm/components/schema-editor/index.js +3 -3
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.js +1 -1
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.d.ts +5 -2
- package/esm/components/table/HeadCellSort.js +11 -11
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/index.d.ts +1 -1
- package/esm/components/table/index.js +1 -1
- package/esm/components/virtual-list/AutoSizer.js +1 -1
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-sub-form.js +1 -1
- package/esm/hooks/use-touch.js +1 -1
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +1 -1
- package/esm/icons/alert-danger.svg.js +1 -1
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +1 -1
- package/esm/icons/alert-warning.svg.js +1 -1
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check.svg.js +1 -1
- package/esm/icons/clock.svg.js +1 -1
- package/esm/icons/close-small.svg.js +1 -1
- package/esm/icons/close.svg.js +1 -1
- package/esm/icons/cloud-upload.svg.js +1 -1
- package/esm/icons/column-filter.svg.js +1 -1
- package/esm/icons/columns.svg.js +1 -1
- package/esm/icons/compress-alt.svg.js +1 -1
- package/esm/icons/copy.svg.js +1 -1
- package/esm/icons/date.svg.js +1 -1
- package/esm/icons/department.svg.js +1 -1
- package/esm/icons/desk-empty.svg.js +1 -1
- package/esm/icons/dot.svg.js +1 -1
- package/esm/icons/down-arrow-bold.svg.js +1 -1
- package/esm/icons/down.svg.js +1 -1
- package/esm/icons/download.svg.js +1 -1
- package/esm/icons/drag-bar.svg.js +1 -1
- package/esm/icons/drag.svg.js +1 -1
- package/esm/icons/edit.svg.js +1 -1
- package/esm/icons/ellipsis-v.svg.js +1 -1
- package/esm/icons/enter.svg.js +1 -1
- package/esm/icons/exchange.svg.js +1 -1
- package/esm/icons/expand-alt.svg.js +1 -1
- package/esm/icons/fail.svg.js +1 -1
- package/esm/icons/file.svg.js +1 -1
- package/esm/icons/filter.svg.js +1 -1
- package/esm/icons/folder.svg.js +1 -1
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +1 -1
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +1 -1
- package/esm/icons/pause.svg.js +1 -1
- package/esm/icons/pencil.svg.js +1 -1
- package/esm/icons/play.svg.js +1 -1
- package/esm/icons/plus-cicle.svg.js +1 -1
- package/esm/icons/plus-fine.svg.js +1 -1
- package/esm/icons/plus.svg.js +1 -1
- package/esm/icons/post.svg.js +1 -1
- package/esm/icons/question-mark.svg.js +1 -1
- package/esm/icons/question.svg.js +1 -1
- package/esm/icons/redo.svg.js +1 -1
- package/esm/icons/refresh.svg.js +1 -1
- package/esm/icons/reload.svg.js +1 -1
- package/esm/icons/remove.svg.js +1 -1
- package/esm/icons/retry.svg.js +1 -1
- package/esm/icons/right-arrow-bold.svg.js +1 -1
- package/esm/icons/right-arrow.svg.js +1 -1
- package/esm/icons/right-double-arrow.svg.js +1 -1
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +1 -1
- package/esm/icons/rotate-right.svg.js +1 -1
- package/esm/icons/scale-origin.svg.js +1 -1
- package/esm/icons/schedule.svg.js +1 -1
- package/esm/icons/search.svg.js +1 -1
- package/esm/icons/setting.svg.js +1 -1
- package/esm/icons/slider-handle-icon.svg.js +1 -1
- package/esm/icons/sort-asc.svg.js +1 -1
- package/esm/icons/sort-default.svg.js +1 -1
- package/esm/icons/sort-desc.svg.js +1 -1
- package/esm/icons/star.svg.js +1 -1
- package/esm/icons/status-close.svg.js +1 -1
- package/esm/icons/steps-finsh.svg.js +1 -1
- package/esm/icons/success.svg.js +1 -1
- package/esm/icons/transparent.svg.js +1 -1
- package/esm/icons/trash.svg.js +1 -1
- package/esm/icons/tree-down.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/upload.svg.js +1 -1
- package/esm/icons/user-remove.svg.js +1 -1
- package/esm/icons/view.svg.js +1 -1
- package/esm/icons/volume.svg.js +1 -1
- package/esm/icons/warning-mark.svg.js +1 -1
- package/esm/icons/warning.svg.js +1 -1
- package/esm/icons/window-restore.svg.js +1 -1
- package/esm/icons/zoom-in.svg.js +1 -1
- package/esm/icons/zoom-out.svg.js +1 -1
- package/esm/index.js +1 -1
- package/esm/locale/de-DE.js +3 -1
- package/esm/locale/en-US.js +3 -1
- package/esm/locale/zh-CN.js +4 -2
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/esm/node_modules/rc-overflow/es/Item.js +1 -1
- package/esm/node_modules/rc-overflow/es/Overflow.js +4 -3
- package/esm/node_modules/rc-overflow/es/RawItem.js +2 -2
- package/esm/node_modules/rc-overflow/es/context.js +10 -0
- package/esm/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
- package/esm/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
- package/esm/node_modules/rc-overflow/es/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/Collection.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
- package/esm/node_modules/rc-util/es/Children/toArray.js +1 -1
- package/esm/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/esm/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useEvent.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useLayoutEffect.js +16 -2
- package/esm/node_modules/rc-util/es/raf.js +1 -1
- package/esm/node_modules/rc-util/es/ref.js +1 -1
- package/esm/node_modules/rc-util/es/warning.js +1 -1
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/esm/node_modules/rc-util/node_modules/react-is/index.js +1 -1
- package/esm/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/lib/_virtual/index.js +1 -1
- package/lib/_virtual/react-is.development.js +1 -1
- package/lib/_virtual/react-is.production.min.js +1 -1
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.d.ts +120 -120
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.d.ts +20 -20
- package/lib/components/Alert2.js +1 -1
- package/lib/components/AnchorNav.d.ts +20 -20
- package/lib/components/AnchorNav.js +1 -1
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.d.ts +10 -10
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +120 -120
- package/lib/components/AssociatedSelection.js +1 -1
- package/lib/components/Avatar.d.ts +110 -110
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.d.ts +1 -1
- package/lib/components/Badge.js +1 -1
- package/lib/components/BaiduMapPicker.js +27 -23
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.d.ts +30 -30
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.d.ts +41 -40
- package/lib/components/CalendarMobile.js +21 -5
- package/lib/components/Card.d.ts +100 -100
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.d.ts +4 -3
- package/lib/components/Cascader.js +105 -104
- package/lib/components/ChainedDropdownSelection.d.ts +559 -0
- package/lib/components/ChainedDropdownSelection.js +114 -0
- package/lib/components/ChainedSelection.d.ts +120 -120
- package/lib/components/ChainedSelection.js +1 -1
- package/lib/components/Checkbox.d.ts +11 -10
- package/lib/components/Checkbox.js +2 -1
- package/lib/components/CityArea.js +3 -3
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.d.ts +152 -130
- package/lib/components/Collapse.js +9 -5
- package/lib/components/CollapseGroup.d.ts +53 -31
- package/lib/components/CollapseGroup.js +18 -13
- package/lib/components/ColorPicker.d.ts +84 -80
- package/lib/components/ColorPicker.js +32 -5
- package/lib/components/Combo.js +1 -1
- package/lib/components/ConfirmBox.d.ts +82 -81
- package/lib/components/ConfirmBox.js +10 -3
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +124 -121
- package/lib/components/DatePicker.js +5 -5
- package/lib/components/DateRangePicker.d.ts +280 -280
- package/lib/components/DateRangePicker.js +40 -19
- package/lib/components/DndContainer.js +1 -1
- package/lib/components/Drawer.d.ts +30 -30
- package/lib/components/Drawer.js +1 -1
- package/lib/components/DropDownSelection.d.ts +555 -0
- package/lib/components/DropDownSelection.js +85 -0
- package/lib/components/Editor.d.ts +120 -120
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.js +1 -1
- package/lib/components/GaodeMapPicker.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.d.ts +120 -120
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.d.ts +40 -40
- package/lib/components/ImageGallery.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +21 -20
- package/lib/components/InputBox.js +4 -2
- package/lib/components/InputBoxWithSuggestion.d.ts +1 -0
- package/lib/components/InputBoxWithSuggestion.js +3 -3
- package/lib/components/InputTable.js +3 -3
- package/lib/components/Layout.d.ts +10 -10
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +81 -80
- package/lib/components/ListMenu.js +5 -4
- package/lib/components/LocationPicker.d.ts +84 -80
- package/lib/components/LocationPicker.js +34 -7
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Modal.d.ts +80 -80
- package/lib/components/Modal.js +1 -1
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +200 -200
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +28 -31
- package/lib/components/NumberInput.js +8 -4
- package/lib/components/Pagination.d.ts +86 -81
- package/lib/components/Pagination.js +12 -3
- package/lib/components/Picker.js +3 -3
- package/lib/components/PickerColumn.d.ts +1 -1
- package/lib/components/PickerColumn.js +2 -2
- package/lib/components/PickerContainer.d.ts +1 -0
- package/lib/components/PickerContainer.js +4 -4
- package/lib/components/PopOverContainer.d.ts +3 -0
- package/lib/components/PopOverContainer.js +14 -3
- package/lib/components/PopUp.d.ts +80 -80
- package/lib/components/PopUp.js +3 -3
- package/lib/components/Progress.d.ts +60 -60
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.d.ts +30 -30
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.d.ts +2 -1
- package/lib/components/Range.js +64 -13
- package/lib/components/Rating.d.ts +30 -30
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +123 -81
- package/lib/components/ResultBox.js +6 -5
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.d.ts +120 -120
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +1 -1
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.d.ts +81 -80
- package/lib/components/SearchBox.js +4 -3
- package/lib/components/Select.d.ts +1738 -1738
- package/lib/components/Select.js +12 -7
- package/lib/components/SelectMobile.d.ts +37 -0
- package/lib/components/SelectMobile.js +371 -0
- package/lib/components/Selection.d.ts +120 -120
- package/lib/components/Selection.js +1 -1
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.d.ts +70 -70
- package/lib/components/Spinner.js +1 -1
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +10 -10
- package/lib/components/Switch.js +1 -1
- package/lib/components/TableSelection.d.ts +120 -120
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +92 -80
- package/lib/components/Tabs.js +86 -11
- package/lib/components/TabsTransfer.d.ts +41 -40
- package/lib/components/TabsTransfer.js +6 -5
- package/lib/components/TabsTransferPicker.d.ts +2 -0
- package/lib/components/TabsTransferPicker.js +7 -7
- package/lib/components/Tag.d.ts +70 -70
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +41 -40
- package/lib/components/Textarea.js +1 -1
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +1 -1
- package/lib/components/Tinymce.js +1 -1
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.d.ts +80 -80
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.d.ts +31 -31
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +134 -132
- package/lib/components/Transfer.js +19 -14
- package/lib/components/TransferDropDown.d.ts +124 -120
- package/lib/components/TransferDropDown.js +52 -18
- package/lib/components/TransferPicker.d.ts +2 -0
- package/lib/components/TransferPicker.js +7 -7
- package/lib/components/TransferSearch.js +2 -2
- package/lib/components/Tree.d.ts +161 -160
- package/lib/components/Tree.js +24 -15
- package/lib/components/TreeSelection.d.ts +120 -120
- package/lib/components/TreeSelection.js +3 -3
- package/lib/components/UserSelect.d.ts +80 -80
- package/lib/components/UserSelect.js +16 -8
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/WithRemoteConfig.d.ts +1 -0
- package/lib/components/WithRemoteConfig.js +7 -7
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.d.ts +2 -0
- package/lib/components/calendar/Calendar.js +7 -3
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.d.ts +3 -0
- package/lib/components/calendar/DaysView.js +17 -5
- package/lib/components/calendar/MonthsView.js +1 -1
- package/lib/components/calendar/QuartersView.d.ts +11 -0
- package/lib/components/calendar/QuartersView.js +45 -3
- package/lib/components/calendar/TimeView.js +4 -2
- package/lib/components/calendar/YearsView.js +1 -1
- package/lib/components/condition-builder/Expression.d.ts +1 -1
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.d.ts +3 -7
- package/lib/components/condition-builder/Field.js +13 -71
- package/lib/components/condition-builder/Formula.js +2 -2
- package/lib/components/condition-builder/Func.js +2 -2
- package/lib/components/condition-builder/Group.d.ts +10 -1
- package/lib/components/condition-builder/Group.js +9 -5
- package/lib/components/condition-builder/GroupOrItem.d.ts +10 -1
- package/lib/components/condition-builder/GroupOrItem.js +8 -5
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.d.ts +1 -1
- package/lib/components/condition-builder/Item.js +4 -5
- package/lib/components/condition-builder/Value.js +7 -7
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.d.ts +10 -1
- package/lib/components/condition-builder/index.js +8 -4
- package/lib/components/formula/Editor.d.ts +54 -40
- package/lib/components/formula/Editor.js +92 -19
- package/lib/components/formula/FuncList.js +19 -9
- package/lib/components/formula/Picker.d.ts +44 -42
- package/lib/components/formula/Picker.js +38 -16
- package/lib/components/formula/VariableList.d.ts +1 -0
- package/lib/components/formula/VariableList.js +104 -20
- package/lib/components/formula/plugin.d.ts +4 -2
- package/lib/components/formula/plugin.js +48 -24
- package/lib/components/icons.js +1 -1
- package/lib/components/json-schema/Array.js +4 -2
- package/lib/components/json-schema/Item.js +4 -4
- package/lib/components/json-schema/Object.js +7 -3
- package/lib/components/json-schema/index.d.ts +1 -0
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.js +3 -2
- package/lib/components/menu/SubMenu.js +3 -3
- package/lib/components/menu/index.d.ts +85 -80
- package/lib/components/menu/index.js +34 -14
- package/lib/components/schema-editor/Array.js +3 -3
- package/lib/components/schema-editor/Common.d.ts +1 -0
- package/lib/components/schema-editor/Common.js +7 -7
- package/lib/components/schema-editor/Item.d.ts +1 -0
- package/lib/components/schema-editor/Item.js +1 -1
- package/lib/components/schema-editor/Object.js +5 -5
- package/lib/components/schema-editor/SchemaVariableList.js +1 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/lib/components/schema-editor/index.d.ts +41 -40
- package/lib/components/schema-editor/index.js +3 -3
- package/lib/components/table/Cell.d.ts +40 -40
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.d.ts +40 -40
- package/lib/components/table/HeadCellFilter.js +1 -1
- package/lib/components/table/HeadCellSelect.d.ts +40 -40
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.d.ts +5 -2
- package/lib/components/table/HeadCellSort.js +11 -11
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/index.d.ts +81 -81
- package/lib/components/table/index.js +1 -1
- package/lib/components/virtual-list/AutoSizer.js +1 -1
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/helper.css +9569 -1234
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-sub-form.js +1 -1
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +1 -1
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +1 -1
- package/lib/icons/alert-warning.svg.js +1 -1
- package/lib/icons/back.svg.js +1 -1
- package/lib/icons/calendar.svg.js +1 -1
- package/lib/icons/caret.svg.js +1 -1
- package/lib/icons/check.svg.js +1 -1
- package/lib/icons/clock.svg.js +1 -1
- package/lib/icons/close-small.svg.js +1 -1
- package/lib/icons/close.svg.js +1 -1
- package/lib/icons/cloud-upload.svg.js +1 -1
- package/lib/icons/column-filter.svg.js +1 -1
- package/lib/icons/columns.svg.js +1 -1
- package/lib/icons/compress-alt.svg.js +1 -1
- package/lib/icons/copy.svg.js +1 -1
- package/lib/icons/date.svg.js +1 -1
- package/lib/icons/department.svg.js +1 -1
- package/lib/icons/desk-empty.svg.js +1 -1
- package/lib/icons/dot.svg.js +1 -1
- package/lib/icons/down-arrow-bold.svg.js +1 -1
- package/lib/icons/down.svg.js +1 -1
- package/lib/icons/download.svg.js +1 -1
- package/lib/icons/drag-bar.svg.js +1 -1
- package/lib/icons/drag.svg.js +1 -1
- package/lib/icons/edit.svg.js +1 -1
- package/lib/icons/ellipsis-v.svg.js +1 -1
- package/lib/icons/enter.svg.js +1 -1
- package/lib/icons/exchange.svg.js +1 -1
- package/lib/icons/expand-alt.svg.js +1 -1
- package/lib/icons/fail.svg.js +1 -1
- package/lib/icons/file.svg.js +1 -1
- package/lib/icons/filter.svg.js +1 -1
- package/lib/icons/folder.svg.js +1 -1
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/image.svg.js +1 -1
- package/lib/icons/info-circle.svg.js +1 -1
- package/lib/icons/info.svg.js +1 -1
- package/lib/icons/input-clear.svg.js +1 -1
- package/lib/icons/invisible.svg.js +1 -1
- package/lib/icons/left-arrow.svg.js +1 -1
- package/lib/icons/loading-outline.svg.js +1 -1
- package/lib/icons/location.svg.js +1 -1
- package/lib/icons/menu.svg.js +1 -1
- package/lib/icons/minus.svg.js +1 -1
- package/lib/icons/move.svg.js +1 -1
- package/lib/icons/mute.svg.js +1 -1
- package/lib/icons/new-edit.svg.js +1 -1
- package/lib/icons/pause.svg.js +1 -1
- package/lib/icons/pencil.svg.js +1 -1
- package/lib/icons/play.svg.js +1 -1
- package/lib/icons/plus-cicle.svg.js +1 -1
- package/lib/icons/plus-fine.svg.js +1 -1
- package/lib/icons/plus.svg.js +1 -1
- package/lib/icons/post.svg.js +1 -1
- package/lib/icons/question-mark.svg.js +1 -1
- package/lib/icons/question.svg.js +1 -1
- package/lib/icons/redo.svg.js +1 -1
- package/lib/icons/refresh.svg.js +1 -1
- package/lib/icons/reload.svg.js +1 -1
- package/lib/icons/remove.svg.js +1 -1
- package/lib/icons/retry.svg.js +1 -1
- package/lib/icons/right-arrow-bold.svg.js +1 -1
- package/lib/icons/right-arrow.svg.js +1 -1
- package/lib/icons/right-double-arrow.svg.js +1 -1
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +1 -1
- package/lib/icons/rotate-right.svg.js +1 -1
- package/lib/icons/scale-origin.svg.js +1 -1
- package/lib/icons/schedule.svg.js +1 -1
- package/lib/icons/search.svg.js +1 -1
- package/lib/icons/setting.svg.js +1 -1
- package/lib/icons/slider-handle-icon.svg.js +1 -1
- package/lib/icons/sort-asc.svg.js +1 -1
- package/lib/icons/sort-default.svg.js +1 -1
- package/lib/icons/sort-desc.svg.js +1 -1
- package/lib/icons/star.svg.js +1 -1
- package/lib/icons/status-close.svg.js +1 -1
- package/lib/icons/steps-finsh.svg.js +1 -1
- package/lib/icons/success.svg.js +1 -1
- package/lib/icons/transparent.svg.js +1 -1
- package/lib/icons/trash.svg.js +1 -1
- package/lib/icons/tree-down.svg.js +1 -1
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/upload.svg.js +1 -1
- package/lib/icons/user-remove.svg.js +1 -1
- package/lib/icons/view.svg.js +1 -1
- package/lib/icons/volume.svg.js +1 -1
- package/lib/icons/warning-mark.svg.js +1 -1
- package/lib/icons/warning.svg.js +1 -1
- package/lib/icons/window-restore.svg.js +1 -1
- package/lib/icons/zoom-in.svg.js +1 -1
- package/lib/icons/zoom-out.svg.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/de-DE.js +3 -1
- package/lib/locale/en-US.js +3 -1
- package/lib/locale/zh-CN.js +4 -2
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/lib/node_modules/rc-overflow/es/Item.js +1 -1
- package/lib/node_modules/rc-overflow/es/Overflow.js +5 -5
- package/lib/node_modules/rc-overflow/es/RawItem.js +7 -7
- package/lib/node_modules/rc-overflow/es/context.js +18 -0
- package/lib/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
- package/lib/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
- package/lib/node_modules/rc-overflow/es/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/Collection.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
- package/lib/node_modules/rc-util/es/Children/toArray.js +1 -1
- package/lib/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/lib/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useEvent.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useLayoutEffect.js +16 -2
- package/lib/node_modules/rc-util/es/raf.js +1 -1
- package/lib/node_modules/rc-util/es/ref.js +1 -1
- package/lib/node_modules/rc-util/es/warning.js +1 -1
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/lib/node_modules/rc-util/node_modules/react-is/index.js +1 -1
- package/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
- package/lib/packages/amis-ui/scss/helper.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/ang.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/antd.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/cxd.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/dark.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +1177 -442
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +1177 -442
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +1177 -442
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +1177 -442
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +1177 -442
- package/package.json +9 -4
- package/scss/_components.scss +13 -3
- package/scss/_properties.scss +24 -0
- package/scss/components/_button-group.scss +1 -0
- package/scss/components/_calendar.scss +24 -14
- package/scss/components/_cascader.scss +26 -3
- package/scss/components/_city-area.scss +6 -0
- package/scss/components/_collapse-group.scss +11 -1
- package/scss/components/_collapse.scss +34 -1
- package/scss/components/_column-toggler.scss +7 -5
- package/scss/components/_condition-builder.scss +29 -3
- package/scss/components/_crud.scss +22 -12
- package/scss/components/_dropdown.scss +8 -5
- package/scss/components/_formula.scss +100 -34
- package/scss/components/_input-box.scss +24 -0
- package/scss/components/_json-schema.scss +28 -0
- package/scss/components/_list-menu.scss +40 -0
- package/scss/components/_nav.scss +1 -0
- package/scss/components/_panel.scss +1 -1
- package/scss/components/_picker-columns.scss +2 -4
- package/scss/components/_popup.scss +8 -1
- package/scss/components/_result-box.scss +5 -0
- package/scss/components/_search-box.scss +6 -0
- package/scss/components/_table.scss +23 -0
- package/scss/components/_tabs.scss +12 -0
- package/scss/components/form/_checks.scss +8 -0
- package/scss/components/form/_color.scss +31 -5
- package/scss/components/form/_combo.scss +27 -0
- package/scss/components/form/_date-range.scss +24 -5
- package/scss/components/form/_date.scss +10 -10
- package/scss/components/form/_editor.scss +4 -0
- package/scss/components/form/_fieldset.scss +13 -0
- package/scss/components/form/_form.scss +253 -110
- package/scss/components/form/_input-group.scss +6 -0
- package/scss/components/form/_location.scss +39 -0
- package/scss/components/form/_matrix.scss +2 -0
- package/scss/components/form/_nested-select.scss +6 -1
- package/scss/components/form/_number.scss +8 -0
- package/scss/components/form/_picker.scss +12 -0
- package/scss/components/form/_range.scss +47 -5
- package/scss/components/form/_select.scss +39 -1
- package/scss/components/form/_selection.scss +38 -2
- package/scss/components/form/_text.scss +5 -6
- package/scss/components/form/_transfer.scss +50 -1
- package/scss/components/form/_tree.scss +34 -4
- package/scss/components/react-datetime.scss +8 -0
|
@@ -45,6 +45,7 @@ export interface CalendarMobileProps extends ThemeProps, LocaleProps {
|
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
defaultDate?: moment.Moment;
|
|
48
|
+
isEndDate?: boolean;
|
|
48
49
|
}
|
|
49
50
|
export interface CalendarMobileState {
|
|
50
51
|
startDate?: moment.Moment;
|
|
@@ -94,7 +95,7 @@ export declare class CalendarMobile extends React.Component<CalendarMobileProps,
|
|
|
94
95
|
render(): React.JSX.Element;
|
|
95
96
|
}
|
|
96
97
|
declare const _default: {
|
|
97
|
-
new (props: Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
98
|
+
new (props: Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
98
99
|
showViewMode?: "years" | "months" | undefined;
|
|
99
100
|
} & {} & {
|
|
100
101
|
locale?: string | undefined;
|
|
@@ -105,14 +106,14 @@ declare const _default: {
|
|
|
105
106
|
getWrappedInstance(): any;
|
|
106
107
|
render(): React.JSX.Element;
|
|
107
108
|
context: unknown;
|
|
108
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
109
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
109
110
|
showViewMode?: "years" | "months" | undefined;
|
|
110
111
|
} & {} & {
|
|
111
112
|
locale?: string | undefined;
|
|
112
113
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
113
114
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
114
115
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
115
|
-
readonly props: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
116
|
+
readonly props: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
116
117
|
showViewMode?: "years" | "months" | undefined;
|
|
117
118
|
} & {} & {
|
|
118
119
|
locale?: string | undefined;
|
|
@@ -123,7 +124,7 @@ declare const _default: {
|
|
|
123
124
|
[key: string]: React.ReactInstance;
|
|
124
125
|
};
|
|
125
126
|
componentDidMount?(): void;
|
|
126
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
127
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
127
128
|
showViewMode?: "years" | "months" | undefined;
|
|
128
129
|
} & {} & {
|
|
129
130
|
locale?: string | undefined;
|
|
@@ -131,13 +132,13 @@ declare const _default: {
|
|
|
131
132
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
132
133
|
componentWillUnmount?(): void;
|
|
133
134
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
134
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
135
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
135
136
|
showViewMode?: "years" | "months" | undefined;
|
|
136
137
|
} & {} & {
|
|
137
138
|
locale?: string | undefined;
|
|
138
139
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
139
140
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
140
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
141
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
141
142
|
showViewMode?: "years" | "months" | undefined;
|
|
142
143
|
} & {} & {
|
|
143
144
|
locale?: string | undefined;
|
|
@@ -145,25 +146,25 @@ declare const _default: {
|
|
|
145
146
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
146
147
|
componentWillMount?(): void;
|
|
147
148
|
UNSAFE_componentWillMount?(): void;
|
|
148
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
149
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
149
150
|
showViewMode?: "years" | "months" | undefined;
|
|
150
151
|
} & {} & {
|
|
151
152
|
locale?: string | undefined;
|
|
152
153
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
153
154
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
154
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
155
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
155
156
|
showViewMode?: "years" | "months" | undefined;
|
|
156
157
|
} & {} & {
|
|
157
158
|
locale?: string | undefined;
|
|
158
159
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
159
160
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
160
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
161
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
161
162
|
showViewMode?: "years" | "months" | undefined;
|
|
162
163
|
} & {} & {
|
|
163
164
|
locale?: string | undefined;
|
|
164
165
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
165
166
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
166
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
167
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
167
168
|
showViewMode?: "years" | "months" | undefined;
|
|
168
169
|
} & {} & {
|
|
169
170
|
locale?: string | undefined;
|
|
@@ -173,7 +174,7 @@ declare const _default: {
|
|
|
173
174
|
displayName: string;
|
|
174
175
|
contextType: React.Context<string>;
|
|
175
176
|
ComposedComponent: React.ComponentType<{
|
|
176
|
-
new (props: Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
177
|
+
new (props: Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
177
178
|
showViewMode?: "years" | "months" | undefined;
|
|
178
179
|
} & {} & {
|
|
179
180
|
locale?: string | undefined;
|
|
@@ -184,14 +185,14 @@ declare const _default: {
|
|
|
184
185
|
getWrappedInstance(): any;
|
|
185
186
|
render(): React.JSX.Element;
|
|
186
187
|
context: unknown;
|
|
187
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
188
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
188
189
|
showViewMode?: "years" | "months" | undefined;
|
|
189
190
|
} & {} & {
|
|
190
191
|
locale?: string | undefined;
|
|
191
192
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
192
193
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
193
194
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
194
|
-
readonly props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
195
|
+
readonly props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
195
196
|
showViewMode?: "years" | "months" | undefined;
|
|
196
197
|
} & {} & {
|
|
197
198
|
locale?: string | undefined;
|
|
@@ -202,7 +203,7 @@ declare const _default: {
|
|
|
202
203
|
[key: string]: React.ReactInstance;
|
|
203
204
|
};
|
|
204
205
|
componentDidMount?(): void;
|
|
205
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
206
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
206
207
|
showViewMode?: "years" | "months" | undefined;
|
|
207
208
|
} & {} & {
|
|
208
209
|
locale?: string | undefined;
|
|
@@ -210,13 +211,13 @@ declare const _default: {
|
|
|
210
211
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
211
212
|
componentWillUnmount?(): void;
|
|
212
213
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
213
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
214
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
214
215
|
showViewMode?: "years" | "months" | undefined;
|
|
215
216
|
} & {} & {
|
|
216
217
|
locale?: string | undefined;
|
|
217
218
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
218
219
|
}>, prevState: Readonly<{}>): any;
|
|
219
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
220
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
220
221
|
showViewMode?: "years" | "months" | undefined;
|
|
221
222
|
} & {} & {
|
|
222
223
|
locale?: string | undefined;
|
|
@@ -224,25 +225,25 @@ declare const _default: {
|
|
|
224
225
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
225
226
|
componentWillMount?(): void;
|
|
226
227
|
UNSAFE_componentWillMount?(): void;
|
|
227
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
228
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
228
229
|
showViewMode?: "years" | "months" | undefined;
|
|
229
230
|
} & {} & {
|
|
230
231
|
locale?: string | undefined;
|
|
231
232
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
232
233
|
}>, nextContext: any): void;
|
|
233
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
234
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
234
235
|
showViewMode?: "years" | "months" | undefined;
|
|
235
236
|
} & {} & {
|
|
236
237
|
locale?: string | undefined;
|
|
237
238
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
238
239
|
}>, nextContext: any): void;
|
|
239
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
240
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
240
241
|
showViewMode?: "years" | "months" | undefined;
|
|
241
242
|
} & {} & {
|
|
242
243
|
locale?: string | undefined;
|
|
243
244
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
244
245
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
245
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
246
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
246
247
|
showViewMode?: "years" | "months" | undefined;
|
|
247
248
|
} & {} & {
|
|
248
249
|
locale?: string | undefined;
|
|
@@ -256,7 +257,7 @@ declare const _default: {
|
|
|
256
257
|
ComposedComponent: typeof CalendarMobile;
|
|
257
258
|
}>;
|
|
258
259
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
259
|
-
new (props: Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
260
|
+
new (props: Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
260
261
|
showViewMode?: "years" | "months" | undefined;
|
|
261
262
|
} & {} & {
|
|
262
263
|
locale?: string | undefined;
|
|
@@ -267,14 +268,14 @@ declare const _default: {
|
|
|
267
268
|
getWrappedInstance(): any;
|
|
268
269
|
render(): React.JSX.Element;
|
|
269
270
|
context: unknown;
|
|
270
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
271
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
271
272
|
showViewMode?: "years" | "months" | undefined;
|
|
272
273
|
} & {} & {
|
|
273
274
|
locale?: string | undefined;
|
|
274
275
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
275
276
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
276
277
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
277
|
-
readonly props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
278
|
+
readonly props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
278
279
|
showViewMode?: "years" | "months" | undefined;
|
|
279
280
|
} & {} & {
|
|
280
281
|
locale?: string | undefined;
|
|
@@ -285,7 +286,7 @@ declare const _default: {
|
|
|
285
286
|
[key: string]: React.ReactInstance;
|
|
286
287
|
};
|
|
287
288
|
componentDidMount?(): void;
|
|
288
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
289
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
289
290
|
showViewMode?: "years" | "months" | undefined;
|
|
290
291
|
} & {} & {
|
|
291
292
|
locale?: string | undefined;
|
|
@@ -293,13 +294,13 @@ declare const _default: {
|
|
|
293
294
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
294
295
|
componentWillUnmount?(): void;
|
|
295
296
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
296
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
297
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
297
298
|
showViewMode?: "years" | "months" | undefined;
|
|
298
299
|
} & {} & {
|
|
299
300
|
locale?: string | undefined;
|
|
300
301
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
301
302
|
}>, prevState: Readonly<{}>): any;
|
|
302
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
303
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
303
304
|
showViewMode?: "years" | "months" | undefined;
|
|
304
305
|
} & {} & {
|
|
305
306
|
locale?: string | undefined;
|
|
@@ -307,25 +308,25 @@ declare const _default: {
|
|
|
307
308
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
308
309
|
componentWillMount?(): void;
|
|
309
310
|
UNSAFE_componentWillMount?(): void;
|
|
310
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
311
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
311
312
|
showViewMode?: "years" | "months" | undefined;
|
|
312
313
|
} & {} & {
|
|
313
314
|
locale?: string | undefined;
|
|
314
315
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
315
316
|
}>, nextContext: any): void;
|
|
316
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
317
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
317
318
|
showViewMode?: "years" | "months" | undefined;
|
|
318
319
|
} & {} & {
|
|
319
320
|
locale?: string | undefined;
|
|
320
321
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
321
322
|
}>, nextContext: any): void;
|
|
322
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
323
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
323
324
|
showViewMode?: "years" | "months" | undefined;
|
|
324
325
|
} & {} & {
|
|
325
326
|
locale?: string | undefined;
|
|
326
327
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
327
328
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
328
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
329
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
329
330
|
showViewMode?: "years" | "months" | undefined;
|
|
330
331
|
} & {} & {
|
|
331
332
|
locale?: string | undefined;
|
|
@@ -339,7 +340,7 @@ declare const _default: {
|
|
|
339
340
|
ComposedComponent: typeof CalendarMobile;
|
|
340
341
|
}, {}> & {
|
|
341
342
|
ComposedComponent: {
|
|
342
|
-
new (props: Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
343
|
+
new (props: Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
343
344
|
showViewMode?: "years" | "months" | undefined;
|
|
344
345
|
} & {} & {
|
|
345
346
|
locale?: string | undefined;
|
|
@@ -350,14 +351,14 @@ declare const _default: {
|
|
|
350
351
|
getWrappedInstance(): any;
|
|
351
352
|
render(): React.JSX.Element;
|
|
352
353
|
context: unknown;
|
|
353
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
354
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
354
355
|
showViewMode?: "years" | "months" | undefined;
|
|
355
356
|
} & {} & {
|
|
356
357
|
locale?: string | undefined;
|
|
357
358
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
358
359
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
359
360
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
360
|
-
readonly props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
361
|
+
readonly props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
361
362
|
showViewMode?: "years" | "months" | undefined;
|
|
362
363
|
} & {} & {
|
|
363
364
|
locale?: string | undefined;
|
|
@@ -368,7 +369,7 @@ declare const _default: {
|
|
|
368
369
|
[key: string]: React.ReactInstance;
|
|
369
370
|
};
|
|
370
371
|
componentDidMount?(): void;
|
|
371
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
372
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
372
373
|
showViewMode?: "years" | "months" | undefined;
|
|
373
374
|
} & {} & {
|
|
374
375
|
locale?: string | undefined;
|
|
@@ -376,13 +377,13 @@ declare const _default: {
|
|
|
376
377
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
377
378
|
componentWillUnmount?(): void;
|
|
378
379
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
379
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
380
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
380
381
|
showViewMode?: "years" | "months" | undefined;
|
|
381
382
|
} & {} & {
|
|
382
383
|
locale?: string | undefined;
|
|
383
384
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
384
385
|
}>, prevState: Readonly<{}>): any;
|
|
385
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
386
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
386
387
|
showViewMode?: "years" | "months" | undefined;
|
|
387
388
|
} & {} & {
|
|
388
389
|
locale?: string | undefined;
|
|
@@ -390,25 +391,25 @@ declare const _default: {
|
|
|
390
391
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
391
392
|
componentWillMount?(): void;
|
|
392
393
|
UNSAFE_componentWillMount?(): void;
|
|
393
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
394
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
394
395
|
showViewMode?: "years" | "months" | undefined;
|
|
395
396
|
} & {} & {
|
|
396
397
|
locale?: string | undefined;
|
|
397
398
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
398
399
|
}>, nextContext: any): void;
|
|
399
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
400
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
400
401
|
showViewMode?: "years" | "months" | undefined;
|
|
401
402
|
} & {} & {
|
|
402
403
|
locale?: string | undefined;
|
|
403
404
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
404
405
|
}>, nextContext: any): void;
|
|
405
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
406
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
406
407
|
showViewMode?: "years" | "months" | undefined;
|
|
407
408
|
} & {} & {
|
|
408
409
|
locale?: string | undefined;
|
|
409
410
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
410
411
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
411
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
412
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
|
|
412
413
|
showViewMode?: "years" | "months" | undefined;
|
|
413
414
|
} & {} & {
|
|
414
415
|
locale?: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.2.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -73,6 +73,7 @@ var CalendarMobile = /** @class */ (function (_super) {
|
|
|
73
73
|
CalendarMobile.prototype.componentDidUpdate = function (prevProps) {
|
|
74
74
|
var _this = this;
|
|
75
75
|
var props = this.props;
|
|
76
|
+
var ns = props.classPrefix;
|
|
76
77
|
if (prevProps.minDate !== props.minDate ||
|
|
77
78
|
prevProps.maxDate !== props.maxDate) {
|
|
78
79
|
var currentDate = this.state.currentDate;
|
|
@@ -83,6 +84,21 @@ var CalendarMobile = /** @class */ (function (_super) {
|
|
|
83
84
|
currentDate: dateRange.currentDate
|
|
84
85
|
}, function () { return _this.initMonths(); });
|
|
85
86
|
}
|
|
87
|
+
if ((prevProps.startDate !== props.startDate &&
|
|
88
|
+
props.startDate !== this.state.startDate) ||
|
|
89
|
+
(prevProps.endDate !== props.endDate &&
|
|
90
|
+
props.endDate !== this.state.endDate)) {
|
|
91
|
+
this.setState({
|
|
92
|
+
startDate: props.startDate,
|
|
93
|
+
endDate: props.endDate
|
|
94
|
+
}, function () {
|
|
95
|
+
return requestAnimationFrame(function () {
|
|
96
|
+
var _a;
|
|
97
|
+
(_a = document
|
|
98
|
+
.querySelector(".".concat(ns, "CalendarMobile:not(.").concat(ns, "CalendarMobile-embed) .rdtRangeStart:not(.rdtNew)"))) === null || _a === void 0 ? void 0 : _a.scrollIntoView();
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
}
|
|
86
102
|
};
|
|
87
103
|
CalendarMobile.prototype.componentWillUnmount = function () {
|
|
88
104
|
this.setState({ showToast: false });
|
|
@@ -369,7 +385,7 @@ var CalendarMobile = /** @class */ (function (_super) {
|
|
|
369
385
|
};
|
|
370
386
|
CalendarMobile.prototype.renderMobileCalendarBody = function () {
|
|
371
387
|
var _this = this;
|
|
372
|
-
var _a = this.props, cx = _a.classnames, dateFormat = _a.dateFormat; _a.timeFormat; var inputFormat = _a.inputFormat, locale = _a.locale, _b = _a.viewMode, viewMode = _b === void 0 ? 'days' : _b, close = _a.close, defaultDate = _a.defaultDate, showViewMode = _a.showViewMode;
|
|
388
|
+
var _a = this.props, cx = _a.classnames, dateFormat = _a.dateFormat; _a.timeFormat; var inputFormat = _a.inputFormat, locale = _a.locale, _b = _a.viewMode, viewMode = _b === void 0 ? 'days' : _b, close = _a.close, defaultDate = _a.defaultDate, showViewMode = _a.showViewMode, isEndDate = _a.isEndDate;
|
|
373
389
|
var __ = this.props.translate;
|
|
374
390
|
var _c = this.state, minDate = _c.minDate, maxDate = _c.maxDate;
|
|
375
391
|
if (!minDate || !maxDate) {
|
|
@@ -396,11 +412,11 @@ var CalendarMobile = /** @class */ (function (_super) {
|
|
|
396
412
|
React__default.createElement("div", { className: cx('CalendarMobile-calendar-header') },
|
|
397
413
|
React__default.createElement("span", { className: "rdtSwitch" }, calendarDate.format(__('dateformat.year'))),
|
|
398
414
|
showViewMode === 'months' && (React__default.createElement("span", { className: "rdtSwitch" }, calendarDate.format(__('MMM'))))),
|
|
399
|
-
React__default.createElement(Calendar, { className: cx('CalendarMobile-calendar', rdtOldNone), viewDate: calendarDate, value: calendarDate, onChange: _this.handleMobileChange, requiredConfirm: false, dateFormat: dateFormat, inputFormat: inputFormat, timeFormat: "", isValidDate: _this.checkIsValidDate, viewMode: viewMode, input: false, onClose: close, renderDay: _this.renderMobileDay, renderMonth: _this.renderMonth, renderQuarter: _this.renderQuarter, locale: locale, hideHeader: true, updateOn: viewMode, key: 'calendar' + index })));
|
|
415
|
+
React__default.createElement(Calendar, { className: cx('CalendarMobile-calendar', rdtOldNone), viewDate: calendarDate, value: calendarDate, onChange: _this.handleMobileChange, requiredConfirm: false, dateFormat: dateFormat, inputFormat: inputFormat, timeFormat: "", isValidDate: _this.checkIsValidDate, viewMode: viewMode, input: false, onClose: close, renderDay: _this.renderMobileDay, renderMonth: _this.renderMonth, renderQuarter: _this.renderQuarter, locale: locale, hideHeader: true, updateOn: viewMode, key: 'calendar' + index, isEndDate: isEndDate })));
|
|
400
416
|
})));
|
|
401
417
|
};
|
|
402
418
|
CalendarMobile.prototype.renderMobileTimePicker = function () {
|
|
403
|
-
var _a = this.props, cx = _a.classnames, timeFormat = _a.timeFormat, locale = _a.locale, close = _a.close, timeConstraints = _a.timeConstraints, defaultDate = _a.defaultDate, isDatePicker = _a.isDatePicker;
|
|
419
|
+
var _a = this.props, cx = _a.classnames, timeFormat = _a.timeFormat, locale = _a.locale, close = _a.close, timeConstraints = _a.timeConstraints, defaultDate = _a.defaultDate, isDatePicker = _a.isDatePicker, isEndDate = _a.isEndDate;
|
|
404
420
|
var __ = this.props.translate;
|
|
405
421
|
var _b = this.state, startDate = _b.startDate, endDate = _b.endDate, dateTime = _b.dateTime;
|
|
406
422
|
return (React__default.createElement("div", { className: cx('CalendarMobile-time') },
|
|
@@ -413,7 +429,7 @@ var CalendarMobile = /** @class */ (function (_super) {
|
|
|
413
429
|
hour: dateTime[0],
|
|
414
430
|
minute: dateTime[1],
|
|
415
431
|
second: dateTime[2] || 0
|
|
416
|
-
}), timeConstraints: timeConstraints, isValidDate: this.checkIsValidDate })));
|
|
432
|
+
}), timeConstraints: timeConstraints, isValidDate: this.checkIsValidDate, isEndDate: isEndDate })));
|
|
417
433
|
};
|
|
418
434
|
CalendarMobile.prototype.render = function () {
|
|
419
435
|
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;
|
package/esm/components/Card.js
CHANGED
|
@@ -9,6 +9,7 @@ import type { OptionsControlProps } from 'amis-core';
|
|
|
9
9
|
export type CascaderOption = {
|
|
10
10
|
text?: string;
|
|
11
11
|
value?: string | number;
|
|
12
|
+
valueField?: string;
|
|
12
13
|
color?: string;
|
|
13
14
|
disabled?: boolean;
|
|
14
15
|
children?: Options;
|
|
@@ -37,11 +38,11 @@ export type CascaderTab = {
|
|
|
37
38
|
};
|
|
38
39
|
export interface CascaderState {
|
|
39
40
|
selectedOptions: Options;
|
|
40
|
-
activeTab: number;
|
|
41
41
|
tabs: Array<{
|
|
42
42
|
options: Options;
|
|
43
43
|
}>;
|
|
44
44
|
disableConfirm: boolean;
|
|
45
|
+
activePaths: CascaderOption[];
|
|
45
46
|
}
|
|
46
47
|
export declare class Cascader extends React.Component<CascaderProps, CascaderState> {
|
|
47
48
|
static defaultProps: {
|
|
@@ -52,17 +53,17 @@ export declare class Cascader extends React.Component<CascaderProps, CascaderSta
|
|
|
52
53
|
tabRef: React.RefObject<HTMLDivElement>;
|
|
53
54
|
constructor(props: CascaderProps);
|
|
54
55
|
componentDidMount(): void;
|
|
55
|
-
handleTabSelect(index: number): void;
|
|
56
56
|
getOptionParent(option: Option): any;
|
|
57
57
|
dealParentSelect(option: Option, selectedOptions: Options): Options;
|
|
58
58
|
flattenTreeWithLeafNodes(option: Option): any[];
|
|
59
59
|
adjustOptionSelect(option: Option): boolean;
|
|
60
|
+
getOnlyChildrenSelect(option: Option, selectedOptions?: Option[]): boolean | undefined;
|
|
60
61
|
getSelectedChildNum(option: Option): number;
|
|
61
62
|
dealOptionDisable(selectedOptions: Options): void;
|
|
62
63
|
dealChildrenSelect(option: Option, selectedOptions: Options): Options;
|
|
63
64
|
getParentTree: (option: Option, arr: Options) => Options;
|
|
64
65
|
onSelect(option: CascaderOption, tabIndex: number): void;
|
|
65
|
-
|
|
66
|
+
handleExpand(option: Option, tabIndex: number): void;
|
|
66
67
|
getSubmitOptions(selectedOptions: Options): Options;
|
|
67
68
|
confirm(): void;
|
|
68
69
|
getSelectedOptions(): Option[];
|