amis-ui 6.2.2 → 6.4.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/_commonjsHelpers.js +10 -0
- package/esm/_virtual/pdf.worker.min.js +8 -0
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.d.ts +124 -122
- package/esm/components/Alert.js +10 -6
- package/esm/components/Alert2.d.ts +20 -20
- package/esm/components/Alert2.js +1 -1
- package/esm/components/AnchorNav.d.ts +20 -20
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/ArrayInput.d.ts +40 -40
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.d.ts +2 -1
- package/esm/components/AsideNav.js +6 -3
- package/esm/components/AssociatedSelection.d.ts +120 -120
- package/esm/components/AssociatedSelection.js +4 -4
- package/esm/components/Avatar.d.ts +140 -140
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.js +1 -1
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.d.ts +3 -0
- package/esm/components/Breadcrumb.js +7 -6
- package/esm/components/Button.d.ts +32 -31
- package/esm/components/Button.js +4 -4
- package/esm/components/CalendarMobile.d.ts +45 -40
- package/esm/components/CalendarMobile.js +41 -6
- package/esm/components/Card.d.ts +140 -140
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedDropdownSelection.d.ts +120 -120
- package/esm/components/ChainedDropdownSelection.js +1 -1
- package/esm/components/ChainedSelection.d.ts +120 -120
- package/esm/components/ChainedSelection.js +8 -6
- package/esm/components/Checkbox.d.ts +12 -11
- package/esm/components/Checkbox.js +7 -7
- package/esm/components/CityArea.js +1 -1
- package/esm/components/CityDB.d.ts +1 -1
- package/esm/components/CityDB.js +377 -889
- package/esm/components/CodeMirror.d.ts +1 -0
- package/esm/components/CodeMirror.js +16 -5
- package/esm/components/Collapse.d.ts +140 -140
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.d.ts +30 -30
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.d.ts +80 -80
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConfirmBox.d.ts +81 -80
- package/esm/components/ConfirmBox.js +6 -3
- package/esm/components/ContextMenu.d.ts +17 -3
- package/esm/components/ContextMenu.js +72 -20
- package/esm/components/DatePicker.d.ts +84 -82
- package/esm/components/DatePicker.js +12 -12
- package/esm/components/DateRangePicker.d.ts +133 -129
- package/esm/components/DateRangePicker.js +40 -27
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.d.ts +30 -30
- package/esm/components/Drawer.js +1 -1
- package/esm/components/DropDownSelection.d.ts +120 -120
- package/esm/components/DropDownSelection.js +1 -1
- package/esm/components/Editor.d.ts +120 -120
- package/esm/components/Editor.js +3 -3
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/GaodeMapPicker.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.d.ts +120 -120
- package/esm/components/GroupedSelection.js +5 -4
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.d.ts +40 -40
- package/esm/components/ImageGallery.js +2 -1
- package/esm/components/Input.d.ts +3 -1
- package/esm/components/Input.js +3 -3
- package/esm/components/InputBox.d.ts +14 -13
- package/esm/components/InputBox.js +7 -7
- package/esm/components/InputBoxWithSuggestion.js +7 -7
- package/esm/components/InputTable.js +1 -1
- package/esm/components/Layout.d.ts +10 -10
- 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 +82 -80
- package/esm/components/ListMenu.js +3 -3
- package/esm/components/LocationPicker.d.ts +40 -40
- package/esm/components/LocationPicker.js +1 -1
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Modal.d.ts +120 -120
- package/esm/components/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +120 -120
- package/esm/components/MultilineText.d.ts +40 -40
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.d.ts +30 -21
- package/esm/components/NumberInput.js +36 -6
- package/esm/components/OverflowTpl.js +1 -1
- package/esm/components/Pagination.d.ts +200 -110
- package/esm/components/Pagination.js +21 -21
- package/esm/components/PdfViewer.d.ts +49 -0
- package/esm/components/PdfViewer.js +85 -0
- package/esm/components/Picker.d.ts +1 -0
- package/esm/components/Picker.js +4 -4
- package/esm/components/PickerColumn.d.ts +1 -0
- package/esm/components/PickerColumn.js +8 -6
- package/esm/components/PickerContainer.d.ts +1 -2
- package/esm/components/PickerContainer.js +26 -16
- package/esm/components/PopOverContainer.d.ts +1 -0
- package/esm/components/PopOverContainer.js +3 -3
- package/esm/components/PopUp.d.ts +120 -120
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.d.ts +60 -60
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.d.ts +12 -10
- package/esm/components/Radios.js +4 -3
- package/esm/components/Range.js +1 -1
- package/esm/components/Rating.d.ts +20 -20
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.d.ts +82 -81
- package/esm/components/ResultBox.js +25 -21
- package/esm/components/ResultList.d.ts +42 -40
- package/esm/components/ResultList.js +5 -4
- package/esm/components/ResultTableList.d.ts +120 -120
- package/esm/components/ResultTableList.js +5 -4
- package/esm/components/ResultTreeList.d.ts +40 -40
- package/esm/components/ResultTreeList.js +3 -3
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.d.ts +82 -81
- package/esm/components/SearchBox.js +8 -8
- package/esm/components/Select.d.ts +1363 -1354
- package/esm/components/Select.js +13 -12
- package/esm/components/SelectMobile.js +22 -19
- package/esm/components/Selection.d.ts +122 -120
- package/esm/components/Selection.js +1 -1
- package/esm/components/Signature.d.ts +280 -0
- package/esm/components/Signature.js +271 -0
- package/esm/components/SparkLine.d.ts +40 -40
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.d.ts +60 -60
- package/esm/components/Spinner.js +1 -1
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.d.ts +12 -12
- package/esm/components/Switch.js +4 -4
- package/esm/components/TableSelection.d.ts +120 -120
- package/esm/components/TableSelection.js +6 -5
- package/esm/components/Tabs.d.ts +83 -81
- package/esm/components/Tabs.js +21 -22
- package/esm/components/TabsTransfer.d.ts +40 -40
- package/esm/components/TabsTransfer.js +16 -14
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.d.ts +70 -70
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.d.ts +42 -42
- package/esm/components/Textarea.js +4 -4
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.d.ts +1 -1
- package/esm/components/TimelineItem.js +1 -1
- package/esm/components/Tinymce.js +7 -4
- package/esm/components/TitleBar.d.ts +10 -10
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.d.ts +120 -120
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.d.ts +32 -32
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.d.ts +174 -172
- package/esm/components/Transfer.js +16 -16
- package/esm/components/TransferDropDown.d.ts +160 -160
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.d.ts +206 -210
- package/esm/components/Tree.js +32 -30
- package/esm/components/TreeSelection.d.ts +120 -120
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.d.ts +40 -40
- package/esm/components/UserSelect.js +1 -1
- package/esm/components/UserTabSelect.d.ts +40 -40
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.d.ts +9 -0
- package/esm/components/WithRemoteConfig.js +19 -3
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.d.ts +2 -1
- package/esm/components/calendar/Calendar.js +7 -6
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.d.ts +2 -1
- package/esm/components/calendar/DaysView.js +17 -15
- package/esm/components/calendar/MonthsView.d.ts +2 -0
- package/esm/components/calendar/MonthsView.js +8 -6
- package/esm/components/calendar/QuartersView.d.ts +2 -0
- package/esm/components/calendar/QuartersView.js +7 -6
- package/esm/components/calendar/TimeView.d.ts +2 -0
- package/esm/components/calendar/TimeView.js +8 -7
- package/esm/components/calendar/YearsView.d.ts +2 -0
- package/esm/components/calendar/YearsView.js +6 -5
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.js +1 -1
- package/esm/components/condition-builder/GroupOrItem.js +1 -1
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.js +1 -1
- package/esm/components/condition-builder/Value.d.ts +1 -0
- package/esm/components/condition-builder/Value.js +30 -14
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.js +1 -1
- package/esm/components/formula/CodeEditor.d.ts +92 -0
- package/esm/components/formula/CodeEditor.js +99 -0
- package/esm/components/formula/Editor.d.ts +64 -69
- package/esm/components/formula/Editor.js +173 -81
- package/esm/components/formula/FuncList.d.ts +1 -1
- package/esm/components/formula/FuncList.js +10 -9
- package/esm/components/formula/Input.d.ts +68 -54
- package/esm/components/formula/Input.js +45 -102
- package/esm/components/formula/Picker.d.ts +74 -60
- package/esm/components/formula/Picker.js +129 -69
- package/esm/components/formula/VariableList.d.ts +1 -1
- package/esm/components/formula/VariableList.js +26 -12
- package/esm/components/formula/plugin.d.ts +28 -7
- package/esm/components/formula/plugin.js +217 -90
- package/esm/components/icons.d.ts +4 -2
- package/esm/components/icons.js +14 -5
- package/esm/components/index.d.ts +5 -3
- package/esm/components/json-schema/Array.js +2 -2
- package/esm/components/json-schema/Item.d.ts +3 -1
- package/esm/components/json-schema/Item.js +35 -9
- package/esm/components/json-schema/Object.d.ts +3 -1
- package/esm/components/json-schema/Object.js +112 -52
- package/esm/components/json-schema/index.d.ts +53 -50
- package/esm/components/json-schema/index.js +14 -5
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.d.ts +2 -1
- package/esm/components/menu/MenuItem.js +4 -4
- package/esm/components/menu/SubMenu.d.ts +2 -1
- package/esm/components/menu/SubMenu.js +6 -6
- package/esm/components/menu/index.d.ts +66 -63
- package/esm/components/menu/index.js +10 -7
- package/esm/components/schema-editor/Array.js +23 -8
- package/esm/components/schema-editor/Common.d.ts +17 -1
- package/esm/components/schema-editor/Common.js +84 -37
- package/esm/components/schema-editor/Item.js +2 -2
- package/esm/components/schema-editor/Object.d.ts +7 -1
- package/esm/components/schema-editor/Object.js +106 -14
- package/esm/components/schema-editor/SchemaVariableList.d.ts +1 -1
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.d.ts +48 -40
- package/esm/components/schema-editor/index.js +4 -4
- package/esm/components/table/Cell.d.ts +2 -0
- package/esm/components/table/Cell.js +4 -4
- package/esm/components/table/ColGroup.js +1 -1
- package/esm/components/table/Head.d.ts +2 -0
- package/esm/components/table/Head.js +12 -9
- package/esm/components/table/HeadCellDropDown.d.ts +2 -0
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.d.ts +42 -40
- package/esm/components/table/HeadCellFilter.js +8 -8
- package/esm/components/table/HeadCellSelect.d.ts +40 -40
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.d.ts +2 -0
- package/esm/components/table/HeadCellSort.js +8 -8
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/Row.d.ts +2 -0
- package/esm/components/table/Row.js +4 -3
- package/esm/components/table/SummaryRow.js +1 -1
- package/esm/components/table/index.d.ts +162 -160
- package/esm/components/table/index.js +7 -5
- package/esm/components/table/util.d.ts +7 -7
- package/esm/components/table/util.js +4 -2
- 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/arrow-double-left.svg.js +1 -1
- package/esm/icons/arrow-double-right.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/fullscreen.svg.js +21 -0
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/if.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +1 -1
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +1 -1
- package/esm/icons/pause.svg.js +1 -1
- package/esm/icons/pencil.svg.js +1 -1
- package/esm/icons/play.svg.js +1 -1
- package/esm/icons/plus-cicle.svg.js +1 -1
- package/esm/icons/plus-fine.svg.js +1 -1
- package/esm/icons/plus.svg.js +1 -1
- package/esm/icons/post.svg.js +1 -1
- package/esm/icons/question-mark.svg.js +1 -1
- package/esm/icons/question.svg.js +1 -1
- package/esm/icons/redo.svg.js +1 -1
- package/esm/icons/refresh.svg.js +1 -1
- package/esm/icons/reload.svg.js +1 -1
- package/esm/icons/remove.svg.js +1 -1
- package/esm/icons/retry.svg.js +1 -1
- package/esm/icons/right-arrow-bold.svg.js +1 -1
- package/esm/icons/right-arrow.svg.js +1 -1
- package/esm/icons/right-double-arrow.svg.js +1 -1
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +1 -1
- package/esm/icons/rotate-right.svg.js +1 -1
- package/esm/icons/scale-origin.svg.js +1 -1
- package/esm/icons/schedule.svg.js +1 -1
- package/esm/icons/search.svg.js +1 -1
- package/esm/icons/setting.svg.js +1 -1
- package/esm/icons/slider-handle-icon.svg.js +1 -1
- package/esm/icons/sort-asc.svg.js +1 -1
- package/esm/icons/sort-default.svg.js +1 -1
- package/esm/icons/sort-desc.svg.js +1 -1
- package/esm/icons/star.svg.js +1 -1
- package/esm/icons/status-close.svg.js +1 -1
- package/esm/icons/steps-finsh.svg.js +1 -1
- package/esm/icons/sub-plus.svg.js +20 -0
- 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-normal.svg.js +25 -0
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/unfullscreen.svg.js +21 -0
- 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 +4 -2
- package/esm/locale/de-DE.js +27 -11
- package/esm/locale/en-US.js +18 -2
- package/esm/locale/zh-CN.js +19 -3
- package/esm/node_modules/pdfjs-dist/build/pdf.worker.min.js +37 -0
- package/esm/node_modules/smooth-signature/es/index.js +506 -0
- 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/_commonjsHelpers.js +14 -0
- package/lib/_virtual/pdf.worker.min.js +12 -0
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.d.ts +124 -122
- package/lib/components/Alert.js +10 -6
- 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 +12 -11
- package/lib/components/AsideNav.js +5 -2
- package/lib/components/AssociatedSelection.d.ts +80 -80
- package/lib/components/AssociatedSelection.js +4 -4
- package/lib/components/Avatar.d.ts +70 -70
- 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 +1 -1
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.d.ts +3 -0
- package/lib/components/Breadcrumb.js +7 -6
- package/lib/components/Button.d.ts +42 -41
- package/lib/components/Button.js +3 -3
- package/lib/components/CalendarMobile.d.ts +85 -80
- package/lib/components/CalendarMobile.js +41 -6
- package/lib/components/Card.d.ts +110 -110
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedDropdownSelection.d.ts +80 -80
- package/lib/components/ChainedDropdownSelection.js +1 -1
- package/lib/components/ChainedSelection.d.ts +80 -80
- package/lib/components/ChainedSelection.js +8 -6
- package/lib/components/Checkbox.d.ts +12 -11
- package/lib/components/Checkbox.js +6 -6
- package/lib/components/CityArea.js +1 -1
- package/lib/components/CityDB.d.ts +1 -1
- package/lib/components/CityDB.js +377 -889
- package/lib/components/CodeMirror.d.ts +1 -0
- package/lib/components/CodeMirror.js +15 -4
- package/lib/components/Collapse.d.ts +140 -140
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.d.ts +20 -20
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/Combo.js +1 -1
- package/lib/components/ConfirmBox.d.ts +81 -80
- package/lib/components/ConfirmBox.js +6 -3
- package/lib/components/ContextMenu.d.ts +17 -3
- package/lib/components/ContextMenu.js +73 -20
- package/lib/components/DatePicker.d.ts +124 -122
- package/lib/components/DatePicker.js +12 -12
- package/lib/components/DateRangePicker.d.ts +293 -289
- package/lib/components/DateRangePicker.js +40 -27
- 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 +80 -80
- package/lib/components/DropDownSelection.js +1 -1
- package/lib/components/Editor.d.ts +120 -120
- package/lib/components/Editor.js +3 -3
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.js +1 -1
- package/lib/components/GaodeMapPicker.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.d.ts +80 -80
- package/lib/components/GroupedSelection.js +5 -4
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.d.ts +40 -40
- package/lib/components/ImageGallery.js +2 -1
- package/lib/components/Input.d.ts +3 -1
- package/lib/components/Input.js +3 -3
- package/lib/components/InputBox.d.ts +14 -13
- package/lib/components/InputBox.js +6 -6
- package/lib/components/InputBoxWithSuggestion.js +7 -7
- package/lib/components/InputTable.js +1 -1
- package/lib/components/Layout.d.ts +10 -10
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +82 -80
- package/lib/components/ListMenu.js +3 -3
- package/lib/components/LocationPicker.d.ts +40 -40
- package/lib/components/LocationPicker.js +1 -1
- 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 +160 -160
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +30 -21
- package/lib/components/NumberInput.js +36 -6
- package/lib/components/OverflowTpl.js +1 -1
- package/lib/components/Pagination.d.ts +200 -110
- package/lib/components/Pagination.js +20 -20
- package/lib/components/PdfViewer.d.ts +49 -0
- package/lib/components/PdfViewer.js +91 -0
- package/lib/components/Picker.d.ts +1 -0
- package/lib/components/Picker.js +4 -4
- package/lib/components/PickerColumn.d.ts +1 -0
- package/lib/components/PickerColumn.js +7 -5
- package/lib/components/PickerContainer.d.ts +1 -2
- package/lib/components/PickerContainer.js +26 -16
- package/lib/components/PopOverContainer.d.ts +1 -0
- package/lib/components/PopOverContainer.js +3 -3
- package/lib/components/PopUp.d.ts +40 -40
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +50 -50
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.d.ts +12 -10
- package/lib/components/Radios.js +4 -3
- package/lib/components/Range.js +1 -1
- package/lib/components/Rating.d.ts +10 -10
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +82 -81
- package/lib/components/ResultBox.js +25 -21
- package/lib/components/ResultList.d.ts +42 -40
- package/lib/components/ResultList.js +5 -4
- package/lib/components/ResultTableList.d.ts +80 -80
- package/lib/components/ResultTableList.js +5 -4
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +3 -3
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.d.ts +82 -81
- package/lib/components/SearchBox.js +7 -7
- package/lib/components/Select.d.ts +1366 -1357
- package/lib/components/Select.js +12 -11
- package/lib/components/SelectMobile.js +22 -19
- package/lib/components/Selection.d.ts +82 -80
- package/lib/components/Selection.js +1 -1
- package/lib/components/Signature.d.ts +280 -0
- package/lib/components/Signature.js +275 -0
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.d.ts +60 -60
- package/lib/components/Spinner.js +1 -1
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +12 -12
- package/lib/components/Switch.js +3 -3
- package/lib/components/TableSelection.d.ts +80 -80
- package/lib/components/TableSelection.js +6 -5
- package/lib/components/Tabs.d.ts +83 -81
- package/lib/components/Tabs.js +21 -22
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +16 -14
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +70 -70
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +42 -42
- package/lib/components/Textarea.js +3 -3
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.d.ts +1 -1
- package/lib/components/TimelineItem.js +1 -1
- package/lib/components/Tinymce.js +7 -4
- package/lib/components/TitleBar.d.ts +10 -10
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.d.ts +80 -80
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.d.ts +42 -42
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +192 -190
- package/lib/components/Transfer.js +16 -16
- package/lib/components/TransferDropDown.d.ts +160 -160
- package/lib/components/TransferDropDown.js +1 -1
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +1 -1
- package/lib/components/Tree.d.ts +286 -290
- package/lib/components/Tree.js +31 -29
- package/lib/components/TreeSelection.d.ts +120 -120
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.d.ts +40 -40
- package/lib/components/UserSelect.js +1 -1
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/WithRemoteConfig.d.ts +9 -0
- package/lib/components/WithRemoteConfig.js +19 -3
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.d.ts +2 -1
- package/lib/components/calendar/Calendar.js +6 -5
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.d.ts +2 -1
- package/lib/components/calendar/DaysView.js +17 -15
- package/lib/components/calendar/MonthsView.d.ts +2 -0
- package/lib/components/calendar/MonthsView.js +8 -6
- package/lib/components/calendar/QuartersView.d.ts +2 -0
- package/lib/components/calendar/QuartersView.js +7 -6
- package/lib/components/calendar/TimeView.d.ts +2 -0
- package/lib/components/calendar/TimeView.js +8 -7
- package/lib/components/calendar/YearsView.d.ts +2 -0
- package/lib/components/calendar/YearsView.js +6 -5
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.js +1 -1
- package/lib/components/condition-builder/Func.js +1 -1
- package/lib/components/condition-builder/Group.js +1 -1
- package/lib/components/condition-builder/GroupOrItem.js +1 -1
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.js +1 -1
- package/lib/components/condition-builder/Value.d.ts +1 -0
- package/lib/components/condition-builder/Value.js +28 -12
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.d.ts +1 -1
- package/lib/components/condition-builder/index.js +1 -1
- package/lib/components/formula/CodeEditor.d.ts +92 -0
- package/lib/components/formula/CodeEditor.js +110 -0
- package/lib/components/formula/Editor.d.ts +64 -69
- package/lib/components/formula/Editor.js +172 -78
- package/lib/components/formula/FuncList.d.ts +1 -1
- package/lib/components/formula/FuncList.js +10 -9
- package/lib/components/formula/Input.d.ts +68 -54
- package/lib/components/formula/Input.js +43 -101
- package/lib/components/formula/Picker.d.ts +74 -60
- package/lib/components/formula/Picker.js +128 -68
- package/lib/components/formula/VariableList.d.ts +1 -1
- package/lib/components/formula/VariableList.js +24 -10
- package/lib/components/formula/plugin.d.ts +28 -7
- package/lib/components/formula/plugin.js +220 -89
- package/lib/components/icons.d.ts +4 -2
- package/lib/components/icons.js +14 -5
- package/lib/components/index.d.ts +5 -3
- package/lib/components/json-schema/Array.js +3 -3
- package/lib/components/json-schema/Item.d.ts +3 -1
- package/lib/components/json-schema/Item.js +39 -8
- package/lib/components/json-schema/Object.d.ts +3 -1
- package/lib/components/json-schema/Object.js +113 -51
- package/lib/components/json-schema/index.d.ts +53 -50
- package/lib/components/json-schema/index.js +18 -5
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.d.ts +2 -1
- package/lib/components/menu/MenuItem.js +3 -3
- package/lib/components/menu/SubMenu.d.ts +2 -1
- package/lib/components/menu/SubMenu.js +5 -5
- package/lib/components/menu/index.d.ts +86 -83
- package/lib/components/menu/index.js +10 -7
- package/lib/components/schema-editor/Array.js +23 -8
- package/lib/components/schema-editor/Common.d.ts +17 -1
- package/lib/components/schema-editor/Common.js +83 -36
- package/lib/components/schema-editor/Item.js +2 -2
- package/lib/components/schema-editor/Object.d.ts +7 -1
- package/lib/components/schema-editor/Object.js +105 -13
- package/lib/components/schema-editor/SchemaVariableList.d.ts +1 -1
- package/lib/components/schema-editor/SchemaVariableList.js +1 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/lib/components/schema-editor/index.d.ts +48 -40
- package/lib/components/schema-editor/index.js +4 -4
- package/lib/components/table/Cell.d.ts +2 -0
- package/lib/components/table/Cell.js +4 -4
- package/lib/components/table/ColGroup.js +1 -1
- package/lib/components/table/Head.d.ts +2 -0
- package/lib/components/table/Head.js +12 -9
- package/lib/components/table/HeadCellDropDown.d.ts +2 -0
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.d.ts +82 -80
- package/lib/components/table/HeadCellFilter.js +8 -8
- package/lib/components/table/HeadCellSelect.d.ts +40 -40
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.d.ts +2 -0
- package/lib/components/table/HeadCellSort.js +7 -7
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/Row.d.ts +2 -0
- package/lib/components/table/Row.js +4 -3
- package/lib/components/table/SummaryRow.js +1 -1
- package/lib/components/table/index.d.ts +122 -120
- package/lib/components/table/index.js +7 -5
- package/lib/components/table/util.d.ts +7 -7
- package/lib/components/table/util.js +4 -2
- package/lib/components/virtual-list/AutoSizer.js +1 -1
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-sub-form.js +1 -1
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +1 -1
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +1 -1
- package/lib/icons/alert-warning.svg.js +1 -1
- package/lib/icons/arrow-double-left.svg.js +1 -1
- package/lib/icons/arrow-double-right.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/fullscreen.svg.js +28 -0
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/if.svg.js +1 -1
- package/lib/icons/image.svg.js +1 -1
- package/lib/icons/info-circle.svg.js +1 -1
- package/lib/icons/info.svg.js +1 -1
- package/lib/icons/input-clear.svg.js +1 -1
- package/lib/icons/invisible.svg.js +1 -1
- package/lib/icons/left-arrow.svg.js +1 -1
- package/lib/icons/loading-outline.svg.js +1 -1
- package/lib/icons/location.svg.js +1 -1
- package/lib/icons/menu.svg.js +1 -1
- package/lib/icons/minus.svg.js +1 -1
- package/lib/icons/move.svg.js +1 -1
- package/lib/icons/mute.svg.js +1 -1
- package/lib/icons/new-edit.svg.js +1 -1
- package/lib/icons/pause.svg.js +1 -1
- package/lib/icons/pencil.svg.js +1 -1
- package/lib/icons/play.svg.js +1 -1
- package/lib/icons/plus-cicle.svg.js +1 -1
- package/lib/icons/plus-fine.svg.js +1 -1
- package/lib/icons/plus.svg.js +1 -1
- package/lib/icons/post.svg.js +1 -1
- package/lib/icons/question-mark.svg.js +1 -1
- package/lib/icons/question.svg.js +1 -1
- package/lib/icons/redo.svg.js +1 -1
- package/lib/icons/refresh.svg.js +1 -1
- package/lib/icons/reload.svg.js +1 -1
- package/lib/icons/remove.svg.js +1 -1
- package/lib/icons/retry.svg.js +1 -1
- package/lib/icons/right-arrow-bold.svg.js +1 -1
- package/lib/icons/right-arrow.svg.js +1 -1
- package/lib/icons/right-double-arrow.svg.js +1 -1
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +1 -1
- package/lib/icons/rotate-right.svg.js +1 -1
- package/lib/icons/scale-origin.svg.js +1 -1
- package/lib/icons/schedule.svg.js +1 -1
- package/lib/icons/search.svg.js +1 -1
- package/lib/icons/setting.svg.js +1 -1
- package/lib/icons/slider-handle-icon.svg.js +1 -1
- package/lib/icons/sort-asc.svg.js +1 -1
- package/lib/icons/sort-default.svg.js +1 -1
- package/lib/icons/sort-desc.svg.js +1 -1
- package/lib/icons/star.svg.js +1 -1
- package/lib/icons/status-close.svg.js +1 -1
- package/lib/icons/steps-finsh.svg.js +1 -1
- package/lib/icons/sub-plus.svg.js +27 -0
- 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-normal.svg.js +32 -0
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/unfullscreen.svg.js +28 -0
- 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 +6 -1
- package/lib/locale/de-DE.js +27 -11
- package/lib/locale/en-US.js +18 -2
- package/lib/locale/zh-CN.js +19 -3
- package/lib/node_modules/pdfjs-dist/build/pdf.worker.min.js +41 -0
- package/lib/node_modules/smooth-signature/es/index.js +510 -0
- package/lib/{scss → packages/amis-ui/scss}/helper.scss.js +1 -1
- package/lib/{scss → packages/amis-ui/scss}/themes/ang.scss.js +1 -1
- package/lib/{scss → packages/amis-ui/scss}/themes/antd.scss.js +1 -1
- package/lib/{scss → packages/amis-ui/scss}/themes/cxd.scss.js +1 -1
- package/lib/{scss → packages/amis-ui/scss}/themes/dark.scss.js +1 -1
- package/lib/{scss → packages/amis-ui/scss}/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +1032 -38
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +1032 -38
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +1032 -38
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +1032 -38
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +1032 -38
- package/package.json +4 -3
- package/scss/_components.scss +7 -0
- package/scss/_mixins.scss +1 -0
- package/scss/_thirds.scss +3 -0
- package/scss/components/_collapse.scss +1 -1
- package/scss/components/_condition-builder.scss +18 -0
- package/scss/components/_crud2.scss +4 -0
- package/scss/components/_formula.scss +148 -26
- package/scss/components/_image-gallery.scss +7 -1
- package/scss/components/_input-box.scss +6 -0
- package/scss/components/_json-schema-editor.scss +24 -3
- package/scss/components/_json-schema.scss +5 -0
- package/scss/components/_menu.scss +3 -0
- package/scss/components/_pdf_viewer.scss +47 -0
- package/scss/components/_signature.scss +97 -0
- package/scss/components/_table.scss +6 -1
- package/scss/components/_tabs.scss +10 -4
- package/scss/components/form/_combo.scss +1 -0
- package/scss/components/form/_form.scss +10 -0
- package/scss/components/form/_icon-select.scss +3 -0
- package/scss/components/form/_picker.scss +2 -1
- package/scss/components/form/_tag.scss +2 -1
- package/scss/components/form/_text.scss +4 -4
- package/scss/themes/_common.scss +2 -0
|
@@ -48,6 +48,7 @@ export interface CalendarMobileProps extends ThemeProps, LocaleProps {
|
|
|
48
48
|
};
|
|
49
49
|
defaultDate?: moment.Moment;
|
|
50
50
|
isEndDate?: boolean;
|
|
51
|
+
popOverContainer?: any;
|
|
51
52
|
}
|
|
52
53
|
export interface CalendarMobileState {
|
|
53
54
|
startDate?: moment.Moment;
|
|
@@ -59,6 +60,7 @@ export interface CalendarMobileState {
|
|
|
59
60
|
dateTime: any;
|
|
60
61
|
minDate?: moment.Moment;
|
|
61
62
|
maxDate?: moment.Moment;
|
|
63
|
+
isPopupOpen: boolean;
|
|
62
64
|
}
|
|
63
65
|
export declare class CalendarMobile extends React.Component<CalendarMobileProps, CalendarMobileState> {
|
|
64
66
|
mobileBody: any;
|
|
@@ -94,10 +96,13 @@ export declare class CalendarMobile extends React.Component<CalendarMobileProps,
|
|
|
94
96
|
handleMobileChange(newValue: moment.Moment): void;
|
|
95
97
|
renderMobileCalendarBody(): React.JSX.Element | undefined;
|
|
96
98
|
renderMobileTimePicker(): React.JSX.Element;
|
|
99
|
+
openDatePicker(): void;
|
|
100
|
+
closePopup(): void;
|
|
101
|
+
handleDateChange(currentDate: moment.Moment): void;
|
|
97
102
|
render(): React.JSX.Element;
|
|
98
103
|
}
|
|
99
104
|
declare const _default: {
|
|
100
|
-
new (props: Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
105
|
+
new (props: Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
101
106
|
showViewMode?: "years" | "months" | undefined;
|
|
102
107
|
} & {} & {
|
|
103
108
|
locale?: string | undefined;
|
|
@@ -108,14 +113,14 @@ declare const _default: {
|
|
|
108
113
|
getWrappedInstance(): any;
|
|
109
114
|
render(): React.JSX.Element;
|
|
110
115
|
context: unknown;
|
|
111
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
116
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
112
117
|
showViewMode?: "years" | "months" | undefined;
|
|
113
118
|
} & {} & {
|
|
114
119
|
locale?: string | undefined;
|
|
115
120
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
116
121
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
117
122
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
118
|
-
readonly props: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
123
|
+
readonly props: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
119
124
|
showViewMode?: "years" | "months" | undefined;
|
|
120
125
|
} & {} & {
|
|
121
126
|
locale?: string | undefined;
|
|
@@ -126,7 +131,7 @@ declare const _default: {
|
|
|
126
131
|
[key: string]: React.ReactInstance;
|
|
127
132
|
};
|
|
128
133
|
componentDidMount?(): void;
|
|
129
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
134
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
130
135
|
showViewMode?: "years" | "months" | undefined;
|
|
131
136
|
} & {} & {
|
|
132
137
|
locale?: string | undefined;
|
|
@@ -134,13 +139,13 @@ declare const _default: {
|
|
|
134
139
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
135
140
|
componentWillUnmount?(): void;
|
|
136
141
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
137
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
142
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
138
143
|
showViewMode?: "years" | "months" | undefined;
|
|
139
144
|
} & {} & {
|
|
140
145
|
locale?: string | undefined;
|
|
141
146
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
142
147
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
|
|
143
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
148
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
144
149
|
showViewMode?: "years" | "months" | undefined;
|
|
145
150
|
} & {} & {
|
|
146
151
|
locale?: string | undefined;
|
|
@@ -148,25 +153,25 @@ declare const _default: {
|
|
|
148
153
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
149
154
|
componentWillMount?(): void;
|
|
150
155
|
UNSAFE_componentWillMount?(): void;
|
|
151
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
156
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
152
157
|
showViewMode?: "years" | "months" | undefined;
|
|
153
158
|
} & {} & {
|
|
154
159
|
locale?: string | undefined;
|
|
155
160
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
156
161
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
157
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
162
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
158
163
|
showViewMode?: "years" | "months" | undefined;
|
|
159
164
|
} & {} & {
|
|
160
165
|
locale?: string | undefined;
|
|
161
166
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
162
167
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
163
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
168
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
164
169
|
showViewMode?: "years" | "months" | undefined;
|
|
165
170
|
} & {} & {
|
|
166
171
|
locale?: string | undefined;
|
|
167
172
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
168
173
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
169
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
174
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
170
175
|
showViewMode?: "years" | "months" | undefined;
|
|
171
176
|
} & {} & {
|
|
172
177
|
locale?: string | undefined;
|
|
@@ -176,7 +181,7 @@ declare const _default: {
|
|
|
176
181
|
displayName: string;
|
|
177
182
|
contextType: React.Context<string>;
|
|
178
183
|
ComposedComponent: React.ComponentType<{
|
|
179
|
-
new (props: Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
184
|
+
new (props: Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
180
185
|
showViewMode?: "years" | "months" | undefined;
|
|
181
186
|
} & {} & {
|
|
182
187
|
locale?: string | undefined;
|
|
@@ -187,14 +192,14 @@ declare const _default: {
|
|
|
187
192
|
getWrappedInstance(): any;
|
|
188
193
|
render(): React.JSX.Element;
|
|
189
194
|
context: unknown;
|
|
190
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
195
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
191
196
|
showViewMode?: "years" | "months" | undefined;
|
|
192
197
|
} & {} & {
|
|
193
198
|
locale?: string | undefined;
|
|
194
199
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
195
200
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
196
201
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
197
|
-
readonly props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
202
|
+
readonly props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
198
203
|
showViewMode?: "years" | "months" | undefined;
|
|
199
204
|
} & {} & {
|
|
200
205
|
locale?: string | undefined;
|
|
@@ -205,7 +210,7 @@ declare const _default: {
|
|
|
205
210
|
[key: string]: React.ReactInstance;
|
|
206
211
|
};
|
|
207
212
|
componentDidMount?(): void;
|
|
208
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
213
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
209
214
|
showViewMode?: "years" | "months" | undefined;
|
|
210
215
|
} & {} & {
|
|
211
216
|
locale?: string | undefined;
|
|
@@ -213,13 +218,13 @@ declare const _default: {
|
|
|
213
218
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
214
219
|
componentWillUnmount?(): void;
|
|
215
220
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
216
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
221
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
217
222
|
showViewMode?: "years" | "months" | undefined;
|
|
218
223
|
} & {} & {
|
|
219
224
|
locale?: string | undefined;
|
|
220
225
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
221
226
|
}>, prevState: Readonly<{}>): any;
|
|
222
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
227
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
223
228
|
showViewMode?: "years" | "months" | undefined;
|
|
224
229
|
} & {} & {
|
|
225
230
|
locale?: string | undefined;
|
|
@@ -227,25 +232,25 @@ declare const _default: {
|
|
|
227
232
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
228
233
|
componentWillMount?(): void;
|
|
229
234
|
UNSAFE_componentWillMount?(): void;
|
|
230
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
235
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
231
236
|
showViewMode?: "years" | "months" | undefined;
|
|
232
237
|
} & {} & {
|
|
233
238
|
locale?: string | undefined;
|
|
234
239
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
235
240
|
}>, nextContext: any): void;
|
|
236
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
241
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
237
242
|
showViewMode?: "years" | "months" | undefined;
|
|
238
243
|
} & {} & {
|
|
239
244
|
locale?: string | undefined;
|
|
240
245
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
241
246
|
}>, nextContext: any): void;
|
|
242
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
247
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
243
248
|
showViewMode?: "years" | "months" | undefined;
|
|
244
249
|
} & {} & {
|
|
245
250
|
locale?: string | undefined;
|
|
246
251
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
247
252
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
248
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
253
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
249
254
|
showViewMode?: "years" | "months" | undefined;
|
|
250
255
|
} & {} & {
|
|
251
256
|
locale?: string | undefined;
|
|
@@ -259,7 +264,7 @@ declare const _default: {
|
|
|
259
264
|
ComposedComponent: typeof CalendarMobile;
|
|
260
265
|
}>;
|
|
261
266
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
262
|
-
new (props: Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
267
|
+
new (props: Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
263
268
|
showViewMode?: "years" | "months" | undefined;
|
|
264
269
|
} & {} & {
|
|
265
270
|
locale?: string | undefined;
|
|
@@ -270,14 +275,14 @@ declare const _default: {
|
|
|
270
275
|
getWrappedInstance(): any;
|
|
271
276
|
render(): React.JSX.Element;
|
|
272
277
|
context: unknown;
|
|
273
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
278
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
274
279
|
showViewMode?: "years" | "months" | undefined;
|
|
275
280
|
} & {} & {
|
|
276
281
|
locale?: string | undefined;
|
|
277
282
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
278
283
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
279
284
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
280
|
-
readonly props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
285
|
+
readonly props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
281
286
|
showViewMode?: "years" | "months" | undefined;
|
|
282
287
|
} & {} & {
|
|
283
288
|
locale?: string | undefined;
|
|
@@ -288,7 +293,7 @@ declare const _default: {
|
|
|
288
293
|
[key: string]: React.ReactInstance;
|
|
289
294
|
};
|
|
290
295
|
componentDidMount?(): void;
|
|
291
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
296
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
292
297
|
showViewMode?: "years" | "months" | undefined;
|
|
293
298
|
} & {} & {
|
|
294
299
|
locale?: string | undefined;
|
|
@@ -296,13 +301,13 @@ declare const _default: {
|
|
|
296
301
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
297
302
|
componentWillUnmount?(): void;
|
|
298
303
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
299
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
304
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
300
305
|
showViewMode?: "years" | "months" | undefined;
|
|
301
306
|
} & {} & {
|
|
302
307
|
locale?: string | undefined;
|
|
303
308
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
304
309
|
}>, prevState: Readonly<{}>): any;
|
|
305
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
310
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
306
311
|
showViewMode?: "years" | "months" | undefined;
|
|
307
312
|
} & {} & {
|
|
308
313
|
locale?: string | undefined;
|
|
@@ -310,25 +315,25 @@ declare const _default: {
|
|
|
310
315
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
311
316
|
componentWillMount?(): void;
|
|
312
317
|
UNSAFE_componentWillMount?(): void;
|
|
313
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
318
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
314
319
|
showViewMode?: "years" | "months" | undefined;
|
|
315
320
|
} & {} & {
|
|
316
321
|
locale?: string | undefined;
|
|
317
322
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
318
323
|
}>, nextContext: any): void;
|
|
319
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
324
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
320
325
|
showViewMode?: "years" | "months" | undefined;
|
|
321
326
|
} & {} & {
|
|
322
327
|
locale?: string | undefined;
|
|
323
328
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
324
329
|
}>, nextContext: any): void;
|
|
325
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
330
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
326
331
|
showViewMode?: "years" | "months" | undefined;
|
|
327
332
|
} & {} & {
|
|
328
333
|
locale?: string | undefined;
|
|
329
334
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
330
335
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
331
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
336
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
332
337
|
showViewMode?: "years" | "months" | undefined;
|
|
333
338
|
} & {} & {
|
|
334
339
|
locale?: string | undefined;
|
|
@@ -342,7 +347,7 @@ declare const _default: {
|
|
|
342
347
|
ComposedComponent: typeof CalendarMobile;
|
|
343
348
|
}, {}> & {
|
|
344
349
|
ComposedComponent: {
|
|
345
|
-
new (props: Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
350
|
+
new (props: Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
346
351
|
showViewMode?: "years" | "months" | undefined;
|
|
347
352
|
} & {} & {
|
|
348
353
|
locale?: string | undefined;
|
|
@@ -353,14 +358,14 @@ declare const _default: {
|
|
|
353
358
|
getWrappedInstance(): any;
|
|
354
359
|
render(): React.JSX.Element;
|
|
355
360
|
context: unknown;
|
|
356
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
361
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
357
362
|
showViewMode?: "years" | "months" | undefined;
|
|
358
363
|
} & {} & {
|
|
359
364
|
locale?: string | undefined;
|
|
360
365
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
361
366
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
362
367
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
363
|
-
readonly props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
368
|
+
readonly props: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
364
369
|
showViewMode?: "years" | "months" | undefined;
|
|
365
370
|
} & {} & {
|
|
366
371
|
locale?: string | undefined;
|
|
@@ -371,7 +376,7 @@ declare const _default: {
|
|
|
371
376
|
[key: string]: React.ReactInstance;
|
|
372
377
|
};
|
|
373
378
|
componentDidMount?(): void;
|
|
374
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
379
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
375
380
|
showViewMode?: "years" | "months" | undefined;
|
|
376
381
|
} & {} & {
|
|
377
382
|
locale?: string | undefined;
|
|
@@ -379,13 +384,13 @@ declare const _default: {
|
|
|
379
384
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
380
385
|
componentWillUnmount?(): void;
|
|
381
386
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
382
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
387
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
383
388
|
showViewMode?: "years" | "months" | undefined;
|
|
384
389
|
} & {} & {
|
|
385
390
|
locale?: string | undefined;
|
|
386
391
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
387
392
|
}>, prevState: Readonly<{}>): any;
|
|
388
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
393
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
389
394
|
showViewMode?: "years" | "months" | undefined;
|
|
390
395
|
} & {} & {
|
|
391
396
|
locale?: string | undefined;
|
|
@@ -393,25 +398,25 @@ declare const _default: {
|
|
|
393
398
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
394
399
|
componentWillMount?(): void;
|
|
395
400
|
UNSAFE_componentWillMount?(): void;
|
|
396
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
401
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
397
402
|
showViewMode?: "years" | "months" | undefined;
|
|
398
403
|
} & {} & {
|
|
399
404
|
locale?: string | undefined;
|
|
400
405
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
401
406
|
}>, nextContext: any): void;
|
|
402
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
407
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
403
408
|
showViewMode?: "years" | "months" | undefined;
|
|
404
409
|
} & {} & {
|
|
405
410
|
locale?: string | undefined;
|
|
406
411
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
407
412
|
}>, nextContext: any): void;
|
|
408
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
413
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
409
414
|
showViewMode?: "years" | "months" | undefined;
|
|
410
415
|
} & {} & {
|
|
411
416
|
locale?: string | undefined;
|
|
412
417
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
413
418
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
414
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "
|
|
419
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CalendarMobileProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "embed" | "close" | "onChange" | "confirm" | "dateFormat" | "minDate" | "maxDate" | "timeFormat" | "isEndDate" | "timeConstraints" | "inputFormat" | "viewMode" | "displayForamt" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate" | "popOverContainer"> & {
|
|
415
420
|
showViewMode?: "years" | "months" | undefined;
|
|
416
421
|
} & {} & {
|
|
417
422
|
locale?: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v6.
|
|
2
|
+
* amis-ui v6.4.0
|
|
3
3
|
* Copyright 2018-2024 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -8,6 +8,7 @@ import React__default from 'react';
|
|
|
8
8
|
import moment from 'moment';
|
|
9
9
|
import Calendar from './calendar/Calendar.js';
|
|
10
10
|
import { autobind, themeable, localeable } from 'amis-core';
|
|
11
|
+
import PopUp from './PopUp.js';
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* @file CalendarMobile
|
|
@@ -30,7 +31,8 @@ var CalendarMobile = /** @class */ (function (_super) {
|
|
|
30
31
|
showToast: false,
|
|
31
32
|
currentDate: dateRange.currentDate,
|
|
32
33
|
isScrollToBottom: false,
|
|
33
|
-
dateTime: endDate ? [endDate.hour(), endDate.minute()] : [0, 0]
|
|
34
|
+
dateTime: endDate ? [endDate.hour(), endDate.minute()] : [0, 0],
|
|
35
|
+
isPopupOpen: false
|
|
34
36
|
};
|
|
35
37
|
return _this;
|
|
36
38
|
}
|
|
@@ -431,10 +433,23 @@ var CalendarMobile = /** @class */ (function (_super) {
|
|
|
431
433
|
second: dateTime[2] || 0
|
|
432
434
|
}), timeConstraints: timeConstraints, isValidDate: this.checkIsValidDate, isEndDate: isEndDate })));
|
|
433
435
|
};
|
|
436
|
+
CalendarMobile.prototype.openDatePicker = function () {
|
|
437
|
+
this.setState({ isPopupOpen: true });
|
|
438
|
+
};
|
|
439
|
+
CalendarMobile.prototype.closePopup = function () {
|
|
440
|
+
this.setState({ isPopupOpen: false });
|
|
441
|
+
};
|
|
442
|
+
CalendarMobile.prototype.handleDateChange = function (currentDate) {
|
|
443
|
+
this.setState({
|
|
444
|
+
currentDate: currentDate
|
|
445
|
+
});
|
|
446
|
+
this.scollToDate(currentDate);
|
|
447
|
+
this.closePopup();
|
|
448
|
+
};
|
|
434
449
|
CalendarMobile.prototype.render = function () {
|
|
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;
|
|
450
|
+
var _a = this.props, className = _a.className, cx = _a.classnames, embed = _a.embed, close = _a.close, confirm = _a.confirm, footerExtra = _a.footerExtra, timeFormat = _a.timeFormat, showViewMode = _a.showViewMode, isDatePicker = _a.isDatePicker, locale = _a.locale, popOverContainer = _a.popOverContainer, timeConstraints = _a.timeConstraints;
|
|
436
451
|
var __ = this.props.translate;
|
|
437
|
-
var _b = this.state, startDate = _b.startDate, endDate = _b.endDate, currentDate = _b.currentDate, showToast = _b.showToast, isScrollToBottom = _b.isScrollToBottom, minDate = _b.minDate, maxDate = _b.maxDate;
|
|
452
|
+
var _b = this.state, startDate = _b.startDate, endDate = _b.endDate, currentDate = _b.currentDate, showToast = _b.showToast, isScrollToBottom = _b.isScrollToBottom, minDate = _b.minDate, maxDate = _b.maxDate, isPopupOpen = _b.isPopupOpen;
|
|
438
453
|
var dateNow = currentDate
|
|
439
454
|
? currentDate.format(__("Calendar.".concat(showViewMode === 'months' ? 'yearmonth' : 'year')))
|
|
440
455
|
: moment().format(__("Calendar.".concat(showViewMode === 'months' ? 'yearmonth' : 'year')));
|
|
@@ -443,7 +458,7 @@ var CalendarMobile = /** @class */ (function (_super) {
|
|
|
443
458
|
React__default.createElement("span", { className: "subtitle-text" },
|
|
444
459
|
currentDate &&
|
|
445
460
|
currentDate.isSameOrBefore(minDate, showViewMode) ? null : (React__default.createElement("a", { className: "rdtPrev", onClick: this.scrollPreYear }, "\u2039")),
|
|
446
|
-
dateNow,
|
|
461
|
+
React__default.createElement("span", { onClick: this.openDatePicker }, dateNow),
|
|
447
462
|
(currentDate &&
|
|
448
463
|
currentDate.isSameOrAfter(maxDate, showViewMode)) ||
|
|
449
464
|
isScrollToBottom ? null : (React__default.createElement("a", { className: "rdtNext", onClick: this.scrollAfterYear }, "\u203A")))),
|
|
@@ -463,7 +478,9 @@ var CalendarMobile = /** @class */ (function (_super) {
|
|
|
463
478
|
header,
|
|
464
479
|
this.renderMobileCalendarBody(),
|
|
465
480
|
footer),
|
|
466
|
-
showToast ? (React__default.createElement("div", { className: cx('CalendarMobile-toast') }, __('Calendar.toast'))) : null
|
|
481
|
+
showToast ? (React__default.createElement("div", { className: cx('CalendarMobile-toast') }, __('Calendar.toast'))) : null,
|
|
482
|
+
React__default.createElement(PopUp, { className: cx("DatePicker-popup DatePicker-mobile"), container: popOverContainer, isShow: isPopupOpen, showClose: false, onHide: this.closePopup },
|
|
483
|
+
React__default.createElement(Calendar, { value: currentDate, onChange: this.handleDateChange, requiredConfirm: false, isValidDate: this.checkIsValidDate, viewMode: "months", timeConstraints: timeConstraints, input: false, onClose: this.closePopup, locale: locale, minDate: minDate, maxDate: maxDate, mobileUI: true }))));
|
|
467
484
|
};
|
|
468
485
|
CalendarMobile.defaultProps = {
|
|
469
486
|
showViewMode: 'months'
|
|
@@ -540,6 +557,24 @@ var CalendarMobile = /** @class */ (function (_super) {
|
|
|
540
557
|
__metadata("design:paramtypes", []),
|
|
541
558
|
__metadata("design:returntype", void 0)
|
|
542
559
|
], CalendarMobile.prototype, "renderMobileTimePicker", null);
|
|
560
|
+
__decorate([
|
|
561
|
+
autobind,
|
|
562
|
+
__metadata("design:type", Function),
|
|
563
|
+
__metadata("design:paramtypes", []),
|
|
564
|
+
__metadata("design:returntype", void 0)
|
|
565
|
+
], CalendarMobile.prototype, "openDatePicker", null);
|
|
566
|
+
__decorate([
|
|
567
|
+
autobind,
|
|
568
|
+
__metadata("design:type", Function),
|
|
569
|
+
__metadata("design:paramtypes", []),
|
|
570
|
+
__metadata("design:returntype", void 0)
|
|
571
|
+
], CalendarMobile.prototype, "closePopup", null);
|
|
572
|
+
__decorate([
|
|
573
|
+
autobind,
|
|
574
|
+
__metadata("design:type", Function),
|
|
575
|
+
__metadata("design:paramtypes", [Object]),
|
|
576
|
+
__metadata("design:returntype", void 0)
|
|
577
|
+
], CalendarMobile.prototype, "handleDateChange", null);
|
|
543
578
|
return CalendarMobile;
|
|
544
579
|
}(React__default.Component));
|
|
545
580
|
var CalendarMobile$1 = themeable(localeable(CalendarMobile));
|