amis-ui 3.5.2 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.d.ts +11 -10
- package/esm/components/Alert2.js +3 -2
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.d.ts +40 -40
- package/esm/components/AssociatedSelection.js +7 -7
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.d.ts +3 -1
- package/esm/components/BaiduMapPicker.js +37 -18
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.d.ts +10 -10
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.d.ts +10 -10
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedDropdownSelection.d.ts +40 -40
- package/esm/components/ChainedDropdownSelection.js +1 -1
- package/esm/components/ChainedSelection.d.ts +40 -40
- package/esm/components/ChainedSelection.js +6 -6
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +1 -1
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConfirmBox.js +1 -1
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +52 -41
- package/esm/components/DatePicker.js +114 -27
- package/esm/components/DateRangePicker.d.ts +18 -10
- package/esm/components/DateRangePicker.js +39 -11
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.js +3 -2
- package/esm/components/DropDownSelection.d.ts +40 -40
- package/esm/components/DropDownSelection.js +1 -1
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/GaodeMapPicker.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.d.ts +40 -40
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.js +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.d.ts +10 -10
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/InputTable.js +1 -1
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.d.ts +84 -40
- package/esm/components/LocationPicker.js +7 -6
- package/esm/components/Markdown.js +11 -1
- package/esm/components/Modal.d.ts +54 -0
- package/esm/components/Modal.js +93 -7
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.js +1 -1
- package/esm/components/Pagination.d.ts +40 -41
- package/esm/components/Pagination.js +9 -18
- package/esm/components/Picker.js +1 -1
- package/esm/components/PickerColumn.js +1 -1
- package/esm/components/PickerContainer.js +1 -1
- package/esm/components/PopOverContainer.js +1 -1
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.js +9 -3
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.d.ts +40 -40
- package/esm/components/ResultBox.js +1 -1
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.d.ts +40 -40
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.d.ts +40 -40
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.js +13 -4
- package/esm/components/SearchBox.js +1 -1
- package/esm/components/Select.d.ts +4 -0
- package/esm/components/Select.js +44 -40
- package/esm/components/SelectMobile.js +1 -1
- package/esm/components/Selection.d.ts +41 -40
- package/esm/components/Selection.js +1 -1
- package/esm/components/SparkLine.d.ts +44 -42
- package/esm/components/SparkLine.js +4 -4
- package/esm/components/Spinner.d.ts +13 -0
- package/esm/components/Spinner.js +8 -6
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.d.ts +15 -10
- package/esm/components/Switch.js +13 -5
- package/esm/components/TableSelection.d.ts +40 -40
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.d.ts +1 -0
- package/esm/components/Tabs.js +2 -2
- package/esm/components/TabsTransfer.d.ts +40 -40
- package/esm/components/TabsTransfer.js +3 -3
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.js +6 -2
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +1 -1
- package/esm/components/Tinymce.d.ts +2 -1
- package/esm/components/Tinymce.js +30 -15
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.d.ts +11 -10
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.d.ts +96 -40
- package/esm/components/Transfer.js +25 -11
- package/esm/components/TransferDropDown.d.ts +40 -40
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.d.ts +51 -3
- package/esm/components/Tree.js +12 -11
- package/esm/components/TreeSelection.d.ts +40 -40
- package/esm/components/TreeSelection.js +11 -11
- package/esm/components/UserSelect.d.ts +42 -0
- package/esm/components/UserSelect.js +5 -4
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.js +14 -2
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.d.ts +9 -1
- package/esm/components/calendar/Calendar.js +27 -5
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.d.ts +11 -0
- package/esm/components/calendar/DaysView.js +44 -8
- package/esm/components/calendar/MonthsView.d.ts +5 -0
- package/esm/components/calendar/MonthsView.js +18 -3
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.js +1 -1
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.js +1 -1
- package/esm/components/condition-builder/GroupOrItem.js +1 -1
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.js +6 -2
- package/esm/components/condition-builder/Value.js +1 -1
- package/esm/components/condition-builder/config.js +7 -1
- package/esm/components/condition-builder/index.js +1 -1
- package/esm/components/formula/Editor.js +1 -1
- package/esm/components/formula/FuncList.js +1 -1
- package/esm/components/formula/Input.js +2 -2
- package/esm/components/formula/Picker.js +1 -1
- package/esm/components/formula/VariableList.js +1 -1
- package/esm/components/formula/plugin.js +1 -1
- package/esm/components/icons.js +23 -6
- package/esm/components/json-schema/Array.js +1 -1
- package/esm/components/json-schema/Item.js +1 -1
- package/esm/components/json-schema/Object.js +1 -1
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.js +1 -1
- package/esm/components/menu/SubMenu.js +1 -1
- package/esm/components/menu/index.d.ts +17 -17
- package/esm/components/menu/index.js +5 -4
- package/esm/components/schema-editor/Array.js +1 -1
- package/esm/components/schema-editor/Common.js +1 -1
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.js +1 -1
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.js +1 -1
- package/esm/components/table/Cell.d.ts +3 -455
- package/esm/components/table/Cell.js +6 -8
- package/esm/components/table/ColGroup.d.ts +8 -3
- package/esm/components/table/ColGroup.js +28 -22
- package/esm/components/table/Head.d.ts +42 -0
- package/esm/components/table/Head.js +142 -0
- package/esm/components/table/HeadCellDropDown.d.ts +1 -1
- package/esm/components/table/HeadCellDropDown.js +5 -3
- package/esm/components/table/HeadCellFilter.d.ts +41 -41
- package/esm/components/table/HeadCellFilter.js +2 -2
- package/esm/components/table/HeadCellSelect.d.ts +1 -1
- package/esm/components/table/HeadCellSelect.js +2 -2
- package/esm/components/table/HeadCellSort.d.ts +1 -1
- package/esm/components/table/HeadCellSort.js +2 -2
- package/esm/components/table/ItemActionsWrapper.d.ts +1 -1
- package/esm/components/table/ItemActionsWrapper.js +2 -2
- package/esm/components/table/Row.d.ts +60 -0
- package/esm/components/table/Row.js +183 -0
- package/esm/components/table/SummaryRow.d.ts +28 -0
- package/esm/components/table/SummaryRow.js +73 -0
- package/esm/components/table/index.d.ts +62 -67
- package/esm/components/table/index.js +347 -646
- package/esm/components/table/util.d.ts +54 -0
- package/esm/components/table/util.js +207 -0
- package/esm/components/virtual-list/AutoSizer.js +1 -1
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-sub-form.js +1 -1
- package/esm/hooks/use-touch.js +1 -1
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +1 -1
- package/esm/icons/alert-danger.svg.js +1 -1
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +1 -1
- package/esm/icons/alert-warning.svg.js +1 -1
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check.svg.js +1 -1
- package/esm/icons/clock.svg.js +1 -1
- package/esm/icons/close-small.svg.js +1 -1
- package/esm/icons/close.svg.js +1 -1
- package/esm/icons/cloud-upload.svg.js +1 -1
- package/esm/icons/column-filter.svg.js +1 -1
- package/esm/icons/columns.svg.js +1 -1
- package/esm/icons/compress-alt.svg.js +1 -1
- package/esm/icons/copy.svg.js +1 -1
- package/esm/icons/date.svg.js +1 -1
- package/esm/icons/department.svg.js +1 -1
- package/esm/icons/desk-empty.svg.js +1 -1
- package/esm/icons/dot.svg.js +1 -1
- package/esm/icons/down-arrow-bold.svg.js +1 -1
- package/esm/icons/down.svg.js +1 -1
- package/esm/icons/download.svg.js +1 -1
- package/esm/icons/drag-bar.svg.js +1 -1
- package/esm/icons/drag.svg.js +1 -1
- package/esm/icons/edit.svg.js +1 -1
- package/esm/icons/ellipsis-v.svg.js +1 -1
- package/esm/icons/enter.svg.js +1 -1
- package/esm/icons/exchange.svg.js +1 -1
- package/esm/icons/expand-alt.svg.js +1 -1
- package/esm/icons/fail.svg.js +1 -1
- package/esm/icons/file.svg.js +1 -1
- package/esm/icons/filter.svg.js +1 -1
- package/esm/icons/folder.svg.js +1 -1
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/if.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +1 -1
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +1 -1
- package/esm/icons/pause.svg.js +1 -1
- package/esm/icons/pencil.svg.js +1 -1
- package/esm/icons/play.svg.js +1 -1
- package/esm/icons/plus-cicle.svg.js +1 -1
- package/esm/icons/plus-fine.svg.js +1 -1
- package/esm/icons/plus.svg.js +1 -1
- package/esm/icons/post.svg.js +1 -1
- package/esm/icons/question-mark.svg.js +1 -1
- package/esm/icons/question.svg.js +1 -1
- package/esm/icons/redo.svg.js +1 -1
- package/esm/icons/refresh.svg.js +1 -1
- package/esm/icons/reload.svg.js +1 -1
- package/esm/icons/remove.svg.js +1 -1
- package/esm/icons/retry.svg.js +1 -1
- package/esm/icons/right-arrow-bold.svg.js +1 -1
- package/esm/icons/right-arrow.svg.js +1 -1
- package/esm/icons/right-double-arrow.svg.js +1 -1
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +1 -1
- package/esm/icons/rotate-right.svg.js +1 -1
- package/esm/icons/scale-origin.svg.js +1 -1
- package/esm/icons/schedule.svg.js +1 -1
- package/esm/icons/search.svg.js +1 -1
- package/esm/icons/setting.svg.js +1 -1
- package/esm/icons/slider-handle-icon.svg.js +1 -1
- package/esm/icons/sort-asc.svg.js +1 -1
- package/esm/icons/sort-default.svg.js +1 -1
- package/esm/icons/sort-desc.svg.js +1 -1
- package/esm/icons/star.svg.js +1 -1
- package/esm/icons/status-close.svg.js +1 -1
- package/esm/icons/steps-finsh.svg.js +1 -1
- package/esm/icons/success.svg.js +1 -1
- package/esm/icons/transparent.svg.js +1 -1
- package/esm/icons/trash.svg.js +1 -1
- package/esm/icons/tree-down.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/upload.svg.js +1 -1
- package/esm/icons/user-remove.svg.js +1 -1
- package/esm/icons/view.svg.js +1 -1
- package/esm/icons/volume.svg.js +1 -1
- package/esm/icons/warning-mark.svg.js +1 -1
- package/esm/icons/warning.svg.js +1 -1
- package/esm/icons/window-restore.svg.js +1 -1
- package/esm/icons/zoom-in.svg.js +1 -1
- package/esm/icons/zoom-out.svg.js +1 -1
- package/esm/index.js +1 -1
- package/esm/locale/de-DE.js +4 -1
- package/esm/locale/en-US.js +4 -1
- package/esm/locale/zh-CN.js +4 -1
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.d.ts +120 -120
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.d.ts +21 -20
- package/lib/components/Alert2.js +3 -2
- package/lib/components/AnchorNav.d.ts +20 -20
- package/lib/components/AnchorNav.js +1 -1
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +80 -80
- package/lib/components/AssociatedSelection.js +7 -7
- package/lib/components/Avatar.d.ts +90 -90
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.js +1 -1
- package/lib/components/BaiduMapPicker.d.ts +3 -1
- package/lib/components/BaiduMapPicker.js +37 -18
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.d.ts +20 -20
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.d.ts +100 -100
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedDropdownSelection.d.ts +80 -80
- package/lib/components/ChainedDropdownSelection.js +1 -1
- package/lib/components/ChainedSelection.d.ts +80 -80
- package/lib/components/ChainedSelection.js +6 -6
- package/lib/components/Checkbox.d.ts +10 -10
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CityArea.js +1 -1
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.d.ts +120 -120
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.d.ts +20 -20
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/Combo.js +1 -1
- package/lib/components/ConfirmBox.d.ts +80 -80
- package/lib/components/ConfirmBox.js +1 -1
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +132 -121
- package/lib/components/DatePicker.js +112 -25
- package/lib/components/DateRangePicker.d.ts +338 -330
- package/lib/components/DateRangePicker.js +39 -11
- package/lib/components/DndContainer.js +1 -1
- package/lib/components/Drawer.d.ts +30 -30
- package/lib/components/Drawer.js +3 -2
- package/lib/components/DropDownSelection.d.ts +80 -80
- package/lib/components/DropDownSelection.js +1 -1
- package/lib/components/Editor.d.ts +120 -120
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.js +1 -1
- package/lib/components/GaodeMapPicker.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.d.ts +80 -80
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.d.ts +40 -40
- package/lib/components/ImageGallery.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/InputTable.js +1 -1
- package/lib/components/Layout.d.ts +10 -10
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +80 -80
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.d.ts +84 -40
- package/lib/components/LocationPicker.js +7 -6
- package/lib/components/Markdown.js +11 -1
- package/lib/components/Modal.d.ts +134 -80
- package/lib/components/Modal.js +93 -5
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +160 -160
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +30 -30
- package/lib/components/NumberInput.js +1 -1
- package/lib/components/Pagination.d.ts +80 -81
- package/lib/components/Pagination.js +8 -17
- package/lib/components/Picker.js +1 -1
- package/lib/components/PickerColumn.js +1 -1
- package/lib/components/PickerContainer.js +1 -1
- package/lib/components/PopOverContainer.js +1 -1
- package/lib/components/PopUp.d.ts +80 -80
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +60 -60
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.d.ts +40 -40
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.js +9 -3
- package/lib/components/Rating.d.ts +20 -20
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +80 -80
- package/lib/components/ResultBox.js +1 -1
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.d.ts +80 -80
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +1 -1
- package/lib/components/RichText.js +13 -4
- package/lib/components/SearchBox.d.ts +120 -120
- package/lib/components/SearchBox.js +1 -1
- package/lib/components/Select.d.ts +1741 -1738
- package/lib/components/Select.js +44 -40
- package/lib/components/SelectMobile.js +1 -1
- package/lib/components/Selection.d.ts +81 -80
- package/lib/components/Selection.js +1 -1
- package/lib/components/SparkLine.d.ts +44 -42
- package/lib/components/SparkLine.js +3 -3
- package/lib/components/Spinner.d.ts +73 -60
- package/lib/components/Spinner.js +8 -6
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +15 -10
- package/lib/components/Switch.js +13 -5
- package/lib/components/TableSelection.d.ts +80 -80
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +81 -80
- package/lib/components/Tabs.js +2 -2
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +3 -3
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +60 -60
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +6 -2
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +1 -1
- package/lib/components/Tinymce.d.ts +2 -1
- package/lib/components/Tinymce.js +29 -14
- package/lib/components/TitleBar.d.ts +10 -10
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.d.ts +80 -80
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.d.ts +31 -30
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +225 -169
- package/lib/components/Transfer.js +25 -11
- package/lib/components/TransferDropDown.d.ts +160 -160
- package/lib/components/TransferDropDown.js +1 -1
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +1 -1
- package/lib/components/Tree.d.ts +291 -243
- package/lib/components/Tree.js +12 -11
- package/lib/components/TreeSelection.d.ts +120 -120
- package/lib/components/TreeSelection.js +11 -11
- package/lib/components/UserSelect.d.ts +82 -40
- package/lib/components/UserSelect.js +5 -4
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/WithRemoteConfig.d.ts +0 -1
- package/lib/components/WithRemoteConfig.js +14 -2
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.d.ts +9 -1
- package/lib/components/calendar/Calendar.js +27 -5
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.d.ts +11 -0
- package/lib/components/calendar/DaysView.js +44 -8
- package/lib/components/calendar/MonthsView.d.ts +5 -0
- package/lib/components/calendar/MonthsView.js +18 -3
- package/lib/components/calendar/QuartersView.js +1 -1
- package/lib/components/calendar/TimeView.js +1 -1
- package/lib/components/calendar/YearsView.js +1 -1
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.js +1 -1
- package/lib/components/condition-builder/Func.js +1 -1
- package/lib/components/condition-builder/Group.js +1 -1
- package/lib/components/condition-builder/GroupOrItem.js +1 -1
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.js +6 -2
- package/lib/components/condition-builder/Value.js +1 -1
- package/lib/components/condition-builder/config.js +7 -1
- package/lib/components/condition-builder/index.d.ts +1 -1
- package/lib/components/condition-builder/index.js +1 -1
- package/lib/components/formula/Editor.d.ts +40 -40
- package/lib/components/formula/Editor.js +1 -1
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Input.js +2 -2
- package/lib/components/formula/Picker.d.ts +40 -40
- package/lib/components/formula/Picker.js +1 -1
- package/lib/components/formula/VariableList.js +1 -1
- package/lib/components/formula/plugin.js +1 -1
- package/lib/components/icons.js +22 -5
- package/lib/components/json-schema/Array.js +1 -1
- package/lib/components/json-schema/Item.js +1 -1
- package/lib/components/json-schema/Object.js +1 -1
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.js +1 -1
- package/lib/components/menu/SubMenu.js +1 -1
- package/lib/components/menu/index.d.ts +77 -77
- package/lib/components/menu/index.js +5 -5
- package/lib/components/schema-editor/Array.js +1 -1
- package/lib/components/schema-editor/Common.js +1 -1
- package/lib/components/schema-editor/Item.js +1 -1
- package/lib/components/schema-editor/Object.js +1 -1
- package/lib/components/schema-editor/SchemaVariableList.js +1 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/lib/components/schema-editor/index.d.ts +40 -40
- package/lib/components/schema-editor/index.js +1 -1
- package/lib/components/table/Cell.d.ts +3 -455
- package/lib/components/table/Cell.js +6 -9
- package/lib/components/table/ColGroup.d.ts +8 -3
- package/lib/components/table/ColGroup.js +28 -23
- package/lib/components/table/Head.d.ts +42 -0
- package/lib/components/table/Head.js +149 -0
- package/lib/components/table/HeadCellDropDown.d.ts +1 -1
- package/lib/components/table/HeadCellDropDown.js +5 -3
- package/lib/components/table/HeadCellFilter.d.ts +81 -81
- package/lib/components/table/HeadCellFilter.js +2 -2
- package/lib/components/table/HeadCellSelect.d.ts +41 -41
- package/lib/components/table/HeadCellSelect.js +2 -2
- package/lib/components/table/HeadCellSort.d.ts +1 -1
- package/lib/components/table/HeadCellSort.js +2 -2
- package/lib/components/table/ItemActionsWrapper.d.ts +1 -1
- package/lib/components/table/ItemActionsWrapper.js +2 -2
- package/lib/components/table/Row.d.ts +60 -0
- package/lib/components/table/Row.js +190 -0
- package/lib/components/table/SummaryRow.d.ts +28 -0
- package/lib/components/table/SummaryRow.js +81 -0
- package/lib/components/table/index.d.ts +62 -67
- package/lib/components/table/index.js +344 -644
- package/lib/components/table/util.d.ts +54 -0
- package/lib/components/table/util.js +227 -0
- package/lib/components/virtual-list/AutoSizer.js +1 -1
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-sub-form.js +1 -1
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +1 -1
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +1 -1
- package/lib/icons/alert-warning.svg.js +1 -1
- package/lib/icons/back.svg.js +1 -1
- package/lib/icons/calendar.svg.js +1 -1
- package/lib/icons/caret.svg.js +1 -1
- package/lib/icons/check.svg.js +1 -1
- package/lib/icons/clock.svg.js +1 -1
- package/lib/icons/close-small.svg.js +1 -1
- package/lib/icons/close.svg.js +1 -1
- package/lib/icons/cloud-upload.svg.js +1 -1
- package/lib/icons/column-filter.svg.js +1 -1
- package/lib/icons/columns.svg.js +1 -1
- package/lib/icons/compress-alt.svg.js +1 -1
- package/lib/icons/copy.svg.js +1 -1
- package/lib/icons/date.svg.js +1 -1
- package/lib/icons/department.svg.js +1 -1
- package/lib/icons/desk-empty.svg.js +1 -1
- package/lib/icons/dot.svg.js +1 -1
- package/lib/icons/down-arrow-bold.svg.js +1 -1
- package/lib/icons/down.svg.js +1 -1
- package/lib/icons/download.svg.js +1 -1
- package/lib/icons/drag-bar.svg.js +1 -1
- package/lib/icons/drag.svg.js +1 -1
- package/lib/icons/edit.svg.js +1 -1
- package/lib/icons/ellipsis-v.svg.js +1 -1
- package/lib/icons/enter.svg.js +1 -1
- package/lib/icons/exchange.svg.js +1 -1
- package/lib/icons/expand-alt.svg.js +1 -1
- package/lib/icons/fail.svg.js +1 -1
- package/lib/icons/file.svg.js +1 -1
- package/lib/icons/filter.svg.js +1 -1
- package/lib/icons/folder.svg.js +1 -1
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/if.svg.js +1 -1
- package/lib/icons/image.svg.js +1 -1
- package/lib/icons/info-circle.svg.js +1 -1
- package/lib/icons/info.svg.js +1 -1
- package/lib/icons/input-clear.svg.js +1 -1
- package/lib/icons/invisible.svg.js +1 -1
- package/lib/icons/left-arrow.svg.js +1 -1
- package/lib/icons/loading-outline.svg.js +1 -1
- package/lib/icons/location.svg.js +1 -1
- package/lib/icons/menu.svg.js +1 -1
- package/lib/icons/minus.svg.js +1 -1
- package/lib/icons/move.svg.js +1 -1
- package/lib/icons/mute.svg.js +1 -1
- package/lib/icons/new-edit.svg.js +1 -1
- package/lib/icons/pause.svg.js +1 -1
- package/lib/icons/pencil.svg.js +1 -1
- package/lib/icons/play.svg.js +1 -1
- package/lib/icons/plus-cicle.svg.js +1 -1
- package/lib/icons/plus-fine.svg.js +1 -1
- package/lib/icons/plus.svg.js +1 -1
- package/lib/icons/post.svg.js +1 -1
- package/lib/icons/question-mark.svg.js +1 -1
- package/lib/icons/question.svg.js +1 -1
- package/lib/icons/redo.svg.js +1 -1
- package/lib/icons/refresh.svg.js +1 -1
- package/lib/icons/reload.svg.js +1 -1
- package/lib/icons/remove.svg.js +1 -1
- package/lib/icons/retry.svg.js +1 -1
- package/lib/icons/right-arrow-bold.svg.js +1 -1
- package/lib/icons/right-arrow.svg.js +1 -1
- package/lib/icons/right-double-arrow.svg.js +1 -1
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +1 -1
- package/lib/icons/rotate-right.svg.js +1 -1
- package/lib/icons/scale-origin.svg.js +1 -1
- package/lib/icons/schedule.svg.js +1 -1
- package/lib/icons/search.svg.js +1 -1
- package/lib/icons/setting.svg.js +1 -1
- package/lib/icons/slider-handle-icon.svg.js +1 -1
- package/lib/icons/sort-asc.svg.js +1 -1
- package/lib/icons/sort-default.svg.js +1 -1
- package/lib/icons/sort-desc.svg.js +1 -1
- package/lib/icons/star.svg.js +1 -1
- package/lib/icons/status-close.svg.js +1 -1
- package/lib/icons/steps-finsh.svg.js +1 -1
- package/lib/icons/success.svg.js +1 -1
- package/lib/icons/transparent.svg.js +1 -1
- package/lib/icons/trash.svg.js +1 -1
- package/lib/icons/tree-down.svg.js +1 -1
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/upload.svg.js +1 -1
- package/lib/icons/user-remove.svg.js +1 -1
- package/lib/icons/view.svg.js +1 -1
- package/lib/icons/volume.svg.js +1 -1
- package/lib/icons/warning-mark.svg.js +1 -1
- package/lib/icons/warning.svg.js +1 -1
- package/lib/icons/window-restore.svg.js +1 -1
- package/lib/icons/zoom-in.svg.js +1 -1
- package/lib/icons/zoom-out.svg.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/de-DE.js +4 -1
- package/lib/locale/en-US.js +4 -1
- package/lib/locale/zh-CN.js +4 -1
- package/lib/scss/helper.scss.js +1 -1
- package/lib/scss/themes/ang.scss.js +1 -1
- package/lib/scss/themes/antd.scss.js +1 -1
- package/lib/scss/themes/cxd.scss.js +1 -1
- package/lib/scss/themes/dark.scss.js +1 -1
- package/lib/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +220 -69
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +222 -71
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +220 -69
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +220 -69
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +220 -69
- package/package.json +5 -6
- package/scss/_components.scss +22 -14
- package/scss/_properties.scss +7 -11
- package/scss/base/_common.scss +8 -0
- package/scss/components/_alert.scss +4 -0
- package/scss/components/_audio.scss +1 -1
- package/scss/components/_card.scss +2 -1
- package/scss/components/_dropdown.scss +4 -2
- package/scss/components/_menu.scss +7 -2
- package/scss/components/_modal.scss +4 -0
- package/scss/components/_page.scss +6 -6
- package/scss/components/_pagination.scss +41 -44
- package/scss/components/_progress.scss +1 -1
- package/scss/components/_spinner.scss +12 -0
- package/scss/components/_steps.scss +7 -5
- package/scss/components/_table.scss +16 -2
- package/scss/components/_table2.scss +7 -0
- package/scss/components/_tabs.scss +21 -24
- package/scss/components/form/_combo.scss +6 -0
- package/scss/components/form/_date-range.scss +3 -6
- package/scss/components/form/_date.scss +3 -5
- package/scss/components/form/_excel.scss +2 -2
- package/scss/components/form/_fieldset.scss +1 -1
- package/scss/components/form/_form.scss +2 -0
- package/scss/components/form/_location.scss +19 -1
- package/scss/components/form/_nested-select.scss +20 -7
- package/scss/components/form/_picker.scss +3 -1
- package/scss/components/form/_range.scss +2 -2
- package/scss/components/form/_rating.scss +17 -3
- package/scss/components/form/_select.scss +0 -11
- package/scss/components/form/_selection.scss +2 -1
- package/scss/components/form/_switch.scss +38 -0
- package/scss/components/form/_text.scss +9 -8
- package/scss/components/form/_textarea.scss +4 -0
- package/scss/components/form/_transfer.scss +40 -0
- package/scss/themes/_ang-variables.scss +63 -61
- package/scss/themes/_antd-variables.scss +63 -61
- package/scss/themes/_cxd-variables.scss +64 -61
- package/scss/themes/_dark-variables.scss +63 -61
|
@@ -70,7 +70,6 @@ export interface BasicPaginationProps {
|
|
|
70
70
|
*/
|
|
71
71
|
popOverContainerSelector?: string;
|
|
72
72
|
onPageChange?: (page: number, perPage?: number, dir?: string) => void;
|
|
73
|
-
dispatchEvent?: Function;
|
|
74
73
|
}
|
|
75
74
|
export interface PaginationProps extends BasicPaginationProps, ThemeProps, LocaleProps {
|
|
76
75
|
popOverContainer?: any;
|
|
@@ -122,7 +121,7 @@ export declare class Pagination extends React.Component<PaginationProps, Paginat
|
|
|
122
121
|
render(): React.JSX.Element;
|
|
123
122
|
}
|
|
124
123
|
declare const _default: {
|
|
125
|
-
new (props: Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
124
|
+
new (props: Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
126
125
|
mode?: MODE_TYPE | undefined;
|
|
127
126
|
layout?: string | string[] | undefined;
|
|
128
127
|
maxButtons?: number | undefined;
|
|
@@ -138,7 +137,7 @@ declare const _default: {
|
|
|
138
137
|
getWrappedInstance(): any;
|
|
139
138
|
render(): React.JSX.Element;
|
|
140
139
|
context: unknown;
|
|
141
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
140
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
142
141
|
mode?: MODE_TYPE | undefined;
|
|
143
142
|
layout?: string | string[] | undefined;
|
|
144
143
|
maxButtons?: number | undefined;
|
|
@@ -150,7 +149,7 @@ declare const _default: {
|
|
|
150
149
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
151
150
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
152
151
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
153
|
-
readonly props: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
152
|
+
readonly props: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
154
153
|
mode?: MODE_TYPE | undefined;
|
|
155
154
|
layout?: string | string[] | undefined;
|
|
156
155
|
maxButtons?: number | undefined;
|
|
@@ -166,7 +165,7 @@ declare const _default: {
|
|
|
166
165
|
[key: string]: React.ReactInstance;
|
|
167
166
|
};
|
|
168
167
|
componentDidMount?(): void;
|
|
169
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
168
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
170
169
|
mode?: MODE_TYPE | undefined;
|
|
171
170
|
layout?: string | string[] | undefined;
|
|
172
171
|
maxButtons?: number | undefined;
|
|
@@ -179,7 +178,7 @@ declare const _default: {
|
|
|
179
178
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
180
179
|
componentWillUnmount?(): void;
|
|
181
180
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
182
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
181
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
183
182
|
mode?: MODE_TYPE | undefined;
|
|
184
183
|
layout?: string | string[] | undefined;
|
|
185
184
|
maxButtons?: number | undefined;
|
|
@@ -190,7 +189,7 @@ declare const _default: {
|
|
|
190
189
|
locale?: string | undefined;
|
|
191
190
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
192
191
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
|
|
193
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
192
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
194
193
|
mode?: MODE_TYPE | undefined;
|
|
195
194
|
layout?: string | string[] | undefined;
|
|
196
195
|
maxButtons?: number | undefined;
|
|
@@ -203,7 +202,7 @@ declare const _default: {
|
|
|
203
202
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
204
203
|
componentWillMount?(): void;
|
|
205
204
|
UNSAFE_componentWillMount?(): void;
|
|
206
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
205
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
207
206
|
mode?: MODE_TYPE | undefined;
|
|
208
207
|
layout?: string | string[] | undefined;
|
|
209
208
|
maxButtons?: number | undefined;
|
|
@@ -214,7 +213,7 @@ declare const _default: {
|
|
|
214
213
|
locale?: string | undefined;
|
|
215
214
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
216
215
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
217
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
216
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
218
217
|
mode?: MODE_TYPE | undefined;
|
|
219
218
|
layout?: string | string[] | undefined;
|
|
220
219
|
maxButtons?: number | undefined;
|
|
@@ -225,7 +224,7 @@ declare const _default: {
|
|
|
225
224
|
locale?: string | undefined;
|
|
226
225
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
227
226
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
228
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
227
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
229
228
|
mode?: MODE_TYPE | undefined;
|
|
230
229
|
layout?: string | string[] | undefined;
|
|
231
230
|
maxButtons?: number | undefined;
|
|
@@ -236,7 +235,7 @@ declare const _default: {
|
|
|
236
235
|
locale?: string | undefined;
|
|
237
236
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
238
237
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
239
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
238
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
240
239
|
mode?: MODE_TYPE | undefined;
|
|
241
240
|
layout?: string | string[] | undefined;
|
|
242
241
|
maxButtons?: number | undefined;
|
|
@@ -251,7 +250,7 @@ declare const _default: {
|
|
|
251
250
|
displayName: string;
|
|
252
251
|
contextType: React.Context<string>;
|
|
253
252
|
ComposedComponent: React.ComponentType<{
|
|
254
|
-
new (props: Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
253
|
+
new (props: Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
255
254
|
mode?: MODE_TYPE | undefined;
|
|
256
255
|
layout?: string | string[] | undefined;
|
|
257
256
|
maxButtons?: number | undefined;
|
|
@@ -267,7 +266,7 @@ declare const _default: {
|
|
|
267
266
|
getWrappedInstance(): any;
|
|
268
267
|
render(): React.JSX.Element;
|
|
269
268
|
context: unknown;
|
|
270
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
269
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
271
270
|
mode?: MODE_TYPE | undefined;
|
|
272
271
|
layout?: string | string[] | undefined;
|
|
273
272
|
maxButtons?: number | undefined;
|
|
@@ -279,7 +278,7 @@ declare const _default: {
|
|
|
279
278
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
280
279
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
281
280
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
282
|
-
readonly props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
281
|
+
readonly props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
283
282
|
mode?: MODE_TYPE | undefined;
|
|
284
283
|
layout?: string | string[] | undefined;
|
|
285
284
|
maxButtons?: number | undefined;
|
|
@@ -295,7 +294,7 @@ declare const _default: {
|
|
|
295
294
|
[key: string]: React.ReactInstance;
|
|
296
295
|
};
|
|
297
296
|
componentDidMount?(): void;
|
|
298
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
297
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
299
298
|
mode?: MODE_TYPE | undefined;
|
|
300
299
|
layout?: string | string[] | undefined;
|
|
301
300
|
maxButtons?: number | undefined;
|
|
@@ -308,7 +307,7 @@ declare const _default: {
|
|
|
308
307
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
309
308
|
componentWillUnmount?(): void;
|
|
310
309
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
311
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
310
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
312
311
|
mode?: MODE_TYPE | undefined;
|
|
313
312
|
layout?: string | string[] | undefined;
|
|
314
313
|
maxButtons?: number | undefined;
|
|
@@ -319,7 +318,7 @@ declare const _default: {
|
|
|
319
318
|
locale?: string | undefined;
|
|
320
319
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
321
320
|
}>, prevState: Readonly<{}>): any;
|
|
322
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
321
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
323
322
|
mode?: MODE_TYPE | undefined;
|
|
324
323
|
layout?: string | string[] | undefined;
|
|
325
324
|
maxButtons?: number | undefined;
|
|
@@ -332,7 +331,7 @@ declare const _default: {
|
|
|
332
331
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
333
332
|
componentWillMount?(): void;
|
|
334
333
|
UNSAFE_componentWillMount?(): void;
|
|
335
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
334
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
336
335
|
mode?: MODE_TYPE | undefined;
|
|
337
336
|
layout?: string | string[] | undefined;
|
|
338
337
|
maxButtons?: number | undefined;
|
|
@@ -343,7 +342,7 @@ declare const _default: {
|
|
|
343
342
|
locale?: string | undefined;
|
|
344
343
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
345
344
|
}>, nextContext: any): void;
|
|
346
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
345
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
347
346
|
mode?: MODE_TYPE | undefined;
|
|
348
347
|
layout?: string | string[] | undefined;
|
|
349
348
|
maxButtons?: number | undefined;
|
|
@@ -354,7 +353,7 @@ declare const _default: {
|
|
|
354
353
|
locale?: string | undefined;
|
|
355
354
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
356
355
|
}>, nextContext: any): void;
|
|
357
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
356
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
358
357
|
mode?: MODE_TYPE | undefined;
|
|
359
358
|
layout?: string | string[] | undefined;
|
|
360
359
|
maxButtons?: number | undefined;
|
|
@@ -365,7 +364,7 @@ declare const _default: {
|
|
|
365
364
|
locale?: string | undefined;
|
|
366
365
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
367
366
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
368
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
367
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
369
368
|
mode?: MODE_TYPE | undefined;
|
|
370
369
|
layout?: string | string[] | undefined;
|
|
371
370
|
maxButtons?: number | undefined;
|
|
@@ -384,7 +383,7 @@ declare const _default: {
|
|
|
384
383
|
ComposedComponent: typeof Pagination;
|
|
385
384
|
}>;
|
|
386
385
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
387
|
-
new (props: Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
386
|
+
new (props: Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
388
387
|
mode?: MODE_TYPE | undefined;
|
|
389
388
|
layout?: string | string[] | undefined;
|
|
390
389
|
maxButtons?: number | undefined;
|
|
@@ -400,7 +399,7 @@ declare const _default: {
|
|
|
400
399
|
getWrappedInstance(): any;
|
|
401
400
|
render(): React.JSX.Element;
|
|
402
401
|
context: unknown;
|
|
403
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
402
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
404
403
|
mode?: MODE_TYPE | undefined;
|
|
405
404
|
layout?: string | string[] | undefined;
|
|
406
405
|
maxButtons?: number | undefined;
|
|
@@ -412,7 +411,7 @@ declare const _default: {
|
|
|
412
411
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
413
412
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
414
413
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
415
|
-
readonly props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
414
|
+
readonly props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
416
415
|
mode?: MODE_TYPE | undefined;
|
|
417
416
|
layout?: string | string[] | undefined;
|
|
418
417
|
maxButtons?: number | undefined;
|
|
@@ -428,7 +427,7 @@ declare const _default: {
|
|
|
428
427
|
[key: string]: React.ReactInstance;
|
|
429
428
|
};
|
|
430
429
|
componentDidMount?(): void;
|
|
431
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
430
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
432
431
|
mode?: MODE_TYPE | undefined;
|
|
433
432
|
layout?: string | string[] | undefined;
|
|
434
433
|
maxButtons?: number | undefined;
|
|
@@ -441,7 +440,7 @@ declare const _default: {
|
|
|
441
440
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
442
441
|
componentWillUnmount?(): void;
|
|
443
442
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
444
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
443
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
445
444
|
mode?: MODE_TYPE | undefined;
|
|
446
445
|
layout?: string | string[] | undefined;
|
|
447
446
|
maxButtons?: number | undefined;
|
|
@@ -452,7 +451,7 @@ declare const _default: {
|
|
|
452
451
|
locale?: string | undefined;
|
|
453
452
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
454
453
|
}>, prevState: Readonly<{}>): any;
|
|
455
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
454
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
456
455
|
mode?: MODE_TYPE | undefined;
|
|
457
456
|
layout?: string | string[] | undefined;
|
|
458
457
|
maxButtons?: number | undefined;
|
|
@@ -465,7 +464,7 @@ declare const _default: {
|
|
|
465
464
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
466
465
|
componentWillMount?(): void;
|
|
467
466
|
UNSAFE_componentWillMount?(): void;
|
|
468
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
467
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
469
468
|
mode?: MODE_TYPE | undefined;
|
|
470
469
|
layout?: string | string[] | undefined;
|
|
471
470
|
maxButtons?: number | undefined;
|
|
@@ -476,7 +475,7 @@ declare const _default: {
|
|
|
476
475
|
locale?: string | undefined;
|
|
477
476
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
478
477
|
}>, nextContext: any): void;
|
|
479
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
478
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
480
479
|
mode?: MODE_TYPE | undefined;
|
|
481
480
|
layout?: string | string[] | undefined;
|
|
482
481
|
maxButtons?: number | undefined;
|
|
@@ -487,7 +486,7 @@ declare const _default: {
|
|
|
487
486
|
locale?: string | undefined;
|
|
488
487
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
489
488
|
}>, nextContext: any): void;
|
|
490
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
489
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
491
490
|
mode?: MODE_TYPE | undefined;
|
|
492
491
|
layout?: string | string[] | undefined;
|
|
493
492
|
maxButtons?: number | undefined;
|
|
@@ -498,7 +497,7 @@ declare const _default: {
|
|
|
498
497
|
locale?: string | undefined;
|
|
499
498
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
500
499
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
501
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
500
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
502
501
|
mode?: MODE_TYPE | undefined;
|
|
503
502
|
layout?: string | string[] | undefined;
|
|
504
503
|
maxButtons?: number | undefined;
|
|
@@ -517,7 +516,7 @@ declare const _default: {
|
|
|
517
516
|
ComposedComponent: typeof Pagination;
|
|
518
517
|
}, {}> & {
|
|
519
518
|
ComposedComponent: {
|
|
520
|
-
new (props: Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
519
|
+
new (props: Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
521
520
|
mode?: MODE_TYPE | undefined;
|
|
522
521
|
layout?: string | string[] | undefined;
|
|
523
522
|
maxButtons?: number | undefined;
|
|
@@ -533,7 +532,7 @@ declare const _default: {
|
|
|
533
532
|
getWrappedInstance(): any;
|
|
534
533
|
render(): React.JSX.Element;
|
|
535
534
|
context: unknown;
|
|
536
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
535
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
537
536
|
mode?: MODE_TYPE | undefined;
|
|
538
537
|
layout?: string | string[] | undefined;
|
|
539
538
|
maxButtons?: number | undefined;
|
|
@@ -545,7 +544,7 @@ declare const _default: {
|
|
|
545
544
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
546
545
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
547
546
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
548
|
-
readonly props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
547
|
+
readonly props: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
549
548
|
mode?: MODE_TYPE | undefined;
|
|
550
549
|
layout?: string | string[] | undefined;
|
|
551
550
|
maxButtons?: number | undefined;
|
|
@@ -561,7 +560,7 @@ declare const _default: {
|
|
|
561
560
|
[key: string]: React.ReactInstance;
|
|
562
561
|
};
|
|
563
562
|
componentDidMount?(): void;
|
|
564
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
563
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
565
564
|
mode?: MODE_TYPE | undefined;
|
|
566
565
|
layout?: string | string[] | undefined;
|
|
567
566
|
maxButtons?: number | undefined;
|
|
@@ -574,7 +573,7 @@ declare const _default: {
|
|
|
574
573
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
575
574
|
componentWillUnmount?(): void;
|
|
576
575
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
577
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
576
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
578
577
|
mode?: MODE_TYPE | undefined;
|
|
579
578
|
layout?: string | string[] | undefined;
|
|
580
579
|
maxButtons?: number | undefined;
|
|
@@ -585,7 +584,7 @@ declare const _default: {
|
|
|
585
584
|
locale?: string | undefined;
|
|
586
585
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
587
586
|
}>, prevState: Readonly<{}>): any;
|
|
588
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
587
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
589
588
|
mode?: MODE_TYPE | undefined;
|
|
590
589
|
layout?: string | string[] | undefined;
|
|
591
590
|
maxButtons?: number | undefined;
|
|
@@ -598,7 +597,7 @@ declare const _default: {
|
|
|
598
597
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
599
598
|
componentWillMount?(): void;
|
|
600
599
|
UNSAFE_componentWillMount?(): void;
|
|
601
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
600
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
602
601
|
mode?: MODE_TYPE | undefined;
|
|
603
602
|
layout?: string | string[] | undefined;
|
|
604
603
|
maxButtons?: number | undefined;
|
|
@@ -609,7 +608,7 @@ declare const _default: {
|
|
|
609
608
|
locale?: string | undefined;
|
|
610
609
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
611
610
|
}>, nextContext: any): void;
|
|
612
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
611
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
613
612
|
mode?: MODE_TYPE | undefined;
|
|
614
613
|
layout?: string | string[] | undefined;
|
|
615
614
|
maxButtons?: number | undefined;
|
|
@@ -620,7 +619,7 @@ declare const _default: {
|
|
|
620
619
|
locale?: string | undefined;
|
|
621
620
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
622
621
|
}>, nextContext: any): void;
|
|
623
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
622
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
624
623
|
mode?: MODE_TYPE | undefined;
|
|
625
624
|
layout?: string | string[] | undefined;
|
|
626
625
|
maxButtons?: number | undefined;
|
|
@@ -631,7 +630,7 @@ declare const _default: {
|
|
|
631
630
|
locale?: string | undefined;
|
|
632
631
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
633
632
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
634
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"
|
|
633
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PaginationProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "disabled" | "popOverContainer" | "popOverContainerSelector" | "onPageChange" | "total" | "lastPage" | "showPerPage" | "showPageInput" | "hasNext"> & {
|
|
635
634
|
mode?: MODE_TYPE | undefined;
|
|
636
635
|
layout?: string | string[] | undefined;
|
|
637
636
|
maxButtons?: number | undefined;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.6.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { __extends, __awaiter, __generator, __decorate, __metadata } from 'tslib';
|
|
7
7
|
import React__default from 'react';
|
|
8
8
|
import isInteger from 'lodash/isInteger';
|
|
9
|
-
import {
|
|
9
|
+
import { autobind, themeable, localeable } from 'amis-core';
|
|
10
10
|
import { Icon } from './icons.js';
|
|
11
11
|
import EnhancedSelect from './Select.js';
|
|
12
12
|
|
|
@@ -32,24 +32,15 @@ var Pagination = /** @class */ (function (_super) {
|
|
|
32
32
|
};
|
|
33
33
|
Pagination.prototype.handlePageNumChange = function (page, perPage, dir) {
|
|
34
34
|
return __awaiter(this, void 0, void 0, function () {
|
|
35
|
-
var _a, disabled, onPageChange,
|
|
35
|
+
var _a, disabled, onPageChange, _page;
|
|
36
36
|
return __generator(this, function (_b) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
if (disabled) {
|
|
42
|
-
return [2 /*return*/];
|
|
43
|
-
}
|
|
44
|
-
return [4 /*yield*/, (dispatchEvent === null || dispatchEvent === void 0 ? void 0 : dispatchEvent('change', resolveEventData(this.props, { _page: _page })))];
|
|
45
|
-
case 1:
|
|
46
|
-
rendererEvent = _b.sent();
|
|
47
|
-
if (rendererEvent === null || rendererEvent === void 0 ? void 0 : rendererEvent.prevented) {
|
|
48
|
-
return [2 /*return*/];
|
|
49
|
-
}
|
|
50
|
-
onPageChange === null || onPageChange === void 0 ? void 0 : onPageChange(_page, perPage, dir);
|
|
51
|
-
return [2 /*return*/];
|
|
37
|
+
_a = this.props, disabled = _a.disabled, onPageChange = _a.onPageChange;
|
|
38
|
+
_page = isNaN(Number(page)) || Number(page) < 1 ? 1 : page;
|
|
39
|
+
if (disabled) {
|
|
40
|
+
return [2 /*return*/];
|
|
52
41
|
}
|
|
42
|
+
onPageChange === null || onPageChange === void 0 ? void 0 : onPageChange(_page, perPage, dir);
|
|
43
|
+
return [2 /*return*/];
|
|
53
44
|
});
|
|
54
45
|
});
|
|
55
46
|
};
|
package/esm/components/Picker.js
CHANGED
package/esm/components/PopUp.js
CHANGED
package/esm/components/Radios.js
CHANGED
package/esm/components/Range.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.6.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -296,11 +296,17 @@ var Range = /** @class */ (function (_super) {
|
|
|
296
296
|
Range.prototype.getStepValue = function (value, step) {
|
|
297
297
|
var surplus = value % step;
|
|
298
298
|
var result = 0;
|
|
299
|
+
var closeNum = Math.floor(value - (value % step));
|
|
299
300
|
// 余数 >= 步长一半 -> 向上取
|
|
300
301
|
// 余数 < 步长一半 -> 向下取
|
|
301
302
|
var _value = surplus >= step / 2 ? value : safeSub(value, step);
|
|
302
303
|
while (result <= _value) {
|
|
303
|
-
result
|
|
304
|
+
if (step < 1 || result === 0 || result === closeNum) {
|
|
305
|
+
result = safeAdd(result, step);
|
|
306
|
+
}
|
|
307
|
+
else {
|
|
308
|
+
result = closeNum;
|
|
309
|
+
}
|
|
304
310
|
}
|
|
305
311
|
return result;
|
|
306
312
|
};
|
|
@@ -390,7 +396,7 @@ var Range = /** @class */ (function (_super) {
|
|
|
390
396
|
// 遍历刻度标记masks 寻找距离当前节点最近的刻度标记 并记录差值
|
|
391
397
|
keys(marks).forEach(function (mKey) {
|
|
392
398
|
var mNum = isString(mKey) ? parseInt(mKey, 10) : mKey;
|
|
393
|
-
if (mKey !== value) {
|
|
399
|
+
if (mKey !== value && !isNaN(mNum)) {
|
|
394
400
|
maxWidth = Math.min(Math.abs(curNum - mNum), maxWidth);
|
|
395
401
|
}
|
|
396
402
|
});
|
package/esm/components/Rating.js
CHANGED