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
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="hoist-non-react-statics" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { LocaleProps } from 'amis-core';
|
|
4
|
-
import { ThemeProps } from 'amis-core';
|
|
3
|
+
import { LocaleProps, ThemeProps } from 'amis-core';
|
|
5
4
|
import type { PlainObject } from 'amis-core';
|
|
6
5
|
export interface SparkLineProps extends ThemeProps, LocaleProps {
|
|
7
6
|
className?: string;
|
|
@@ -13,6 +12,9 @@ export interface SparkLineProps extends ThemeProps, LocaleProps {
|
|
|
13
12
|
}>;
|
|
14
13
|
placeholder?: string;
|
|
15
14
|
onClick?: (e: React.MouseEvent, value?: PlainObject) => void;
|
|
15
|
+
id?: string;
|
|
16
|
+
wrapperCustomStyle?: any;
|
|
17
|
+
themeCss?: any;
|
|
16
18
|
}
|
|
17
19
|
export declare class SparkLine extends React.Component<SparkLineProps> {
|
|
18
20
|
static defaultProps: {
|
|
@@ -24,7 +26,7 @@ export declare class SparkLine extends React.Component<SparkLineProps> {
|
|
|
24
26
|
render(): React.JSX.Element;
|
|
25
27
|
}
|
|
26
28
|
declare const _default: {
|
|
27
|
-
new (props: Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
29
|
+
new (props: Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
28
30
|
width?: number | undefined;
|
|
29
31
|
height?: number | undefined;
|
|
30
32
|
} & {} & {
|
|
@@ -36,7 +38,7 @@ declare const _default: {
|
|
|
36
38
|
getWrappedInstance(): any;
|
|
37
39
|
render(): React.JSX.Element;
|
|
38
40
|
context: unknown;
|
|
39
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
41
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
40
42
|
width?: number | undefined;
|
|
41
43
|
height?: number | undefined;
|
|
42
44
|
} & {} & {
|
|
@@ -44,7 +46,7 @@ declare const _default: {
|
|
|
44
46
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
45
47
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
46
48
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
47
|
-
readonly props: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
49
|
+
readonly props: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
48
50
|
width?: number | undefined;
|
|
49
51
|
height?: number | undefined;
|
|
50
52
|
} & {} & {
|
|
@@ -56,7 +58,7 @@ declare const _default: {
|
|
|
56
58
|
[key: string]: React.ReactInstance;
|
|
57
59
|
};
|
|
58
60
|
componentDidMount?(): void;
|
|
59
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
61
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
60
62
|
width?: number | undefined;
|
|
61
63
|
height?: number | undefined;
|
|
62
64
|
} & {} & {
|
|
@@ -65,14 +67,14 @@ declare const _default: {
|
|
|
65
67
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
66
68
|
componentWillUnmount?(): void;
|
|
67
69
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
68
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
70
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
69
71
|
width?: number | undefined;
|
|
70
72
|
height?: number | undefined;
|
|
71
73
|
} & {} & {
|
|
72
74
|
locale?: string | undefined;
|
|
73
75
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
74
76
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
|
|
75
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
77
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
76
78
|
width?: number | undefined;
|
|
77
79
|
height?: number | undefined;
|
|
78
80
|
} & {} & {
|
|
@@ -81,28 +83,28 @@ declare const _default: {
|
|
|
81
83
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
82
84
|
componentWillMount?(): void;
|
|
83
85
|
UNSAFE_componentWillMount?(): void;
|
|
84
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
86
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
85
87
|
width?: number | undefined;
|
|
86
88
|
height?: number | undefined;
|
|
87
89
|
} & {} & {
|
|
88
90
|
locale?: string | undefined;
|
|
89
91
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
90
92
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
91
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
93
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
92
94
|
width?: number | undefined;
|
|
93
95
|
height?: number | undefined;
|
|
94
96
|
} & {} & {
|
|
95
97
|
locale?: string | undefined;
|
|
96
98
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
97
99
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
98
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
100
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
99
101
|
width?: number | undefined;
|
|
100
102
|
height?: number | undefined;
|
|
101
103
|
} & {} & {
|
|
102
104
|
locale?: string | undefined;
|
|
103
105
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
104
106
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
105
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
107
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
106
108
|
width?: number | undefined;
|
|
107
109
|
height?: number | undefined;
|
|
108
110
|
} & {} & {
|
|
@@ -113,7 +115,7 @@ declare const _default: {
|
|
|
113
115
|
displayName: string;
|
|
114
116
|
contextType: React.Context<string>;
|
|
115
117
|
ComposedComponent: React.ComponentType<{
|
|
116
|
-
new (props: Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
118
|
+
new (props: Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
117
119
|
width?: number | undefined;
|
|
118
120
|
height?: number | undefined;
|
|
119
121
|
} & {} & {
|
|
@@ -125,7 +127,7 @@ declare const _default: {
|
|
|
125
127
|
getWrappedInstance(): any;
|
|
126
128
|
render(): React.JSX.Element;
|
|
127
129
|
context: unknown;
|
|
128
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
130
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
129
131
|
width?: number | undefined;
|
|
130
132
|
height?: number | undefined;
|
|
131
133
|
} & {} & {
|
|
@@ -133,7 +135,7 @@ declare const _default: {
|
|
|
133
135
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
134
136
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
135
137
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
136
|
-
readonly props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
138
|
+
readonly props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
137
139
|
width?: number | undefined;
|
|
138
140
|
height?: number | undefined;
|
|
139
141
|
} & {} & {
|
|
@@ -145,7 +147,7 @@ declare const _default: {
|
|
|
145
147
|
[key: string]: React.ReactInstance;
|
|
146
148
|
};
|
|
147
149
|
componentDidMount?(): void;
|
|
148
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
150
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
149
151
|
width?: number | undefined;
|
|
150
152
|
height?: number | undefined;
|
|
151
153
|
} & {} & {
|
|
@@ -154,14 +156,14 @@ declare const _default: {
|
|
|
154
156
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
155
157
|
componentWillUnmount?(): void;
|
|
156
158
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
157
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
159
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
158
160
|
width?: number | undefined;
|
|
159
161
|
height?: number | undefined;
|
|
160
162
|
} & {} & {
|
|
161
163
|
locale?: string | undefined;
|
|
162
164
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
163
165
|
}>, prevState: Readonly<{}>): any;
|
|
164
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
166
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
165
167
|
width?: number | undefined;
|
|
166
168
|
height?: number | undefined;
|
|
167
169
|
} & {} & {
|
|
@@ -170,28 +172,28 @@ declare const _default: {
|
|
|
170
172
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
171
173
|
componentWillMount?(): void;
|
|
172
174
|
UNSAFE_componentWillMount?(): void;
|
|
173
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
175
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
174
176
|
width?: number | undefined;
|
|
175
177
|
height?: number | undefined;
|
|
176
178
|
} & {} & {
|
|
177
179
|
locale?: string | undefined;
|
|
178
180
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
179
181
|
}>, nextContext: any): void;
|
|
180
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
182
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
181
183
|
width?: number | undefined;
|
|
182
184
|
height?: number | undefined;
|
|
183
185
|
} & {} & {
|
|
184
186
|
locale?: string | undefined;
|
|
185
187
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
186
188
|
}>, nextContext: any): void;
|
|
187
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
189
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
188
190
|
width?: number | undefined;
|
|
189
191
|
height?: number | undefined;
|
|
190
192
|
} & {} & {
|
|
191
193
|
locale?: string | undefined;
|
|
192
194
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
193
195
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
194
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
196
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
195
197
|
width?: number | undefined;
|
|
196
198
|
height?: number | undefined;
|
|
197
199
|
} & {} & {
|
|
@@ -206,7 +208,7 @@ declare const _default: {
|
|
|
206
208
|
ComposedComponent: typeof SparkLine;
|
|
207
209
|
}>;
|
|
208
210
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
209
|
-
new (props: Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
211
|
+
new (props: Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
210
212
|
width?: number | undefined;
|
|
211
213
|
height?: number | undefined;
|
|
212
214
|
} & {} & {
|
|
@@ -218,7 +220,7 @@ declare const _default: {
|
|
|
218
220
|
getWrappedInstance(): any;
|
|
219
221
|
render(): React.JSX.Element;
|
|
220
222
|
context: unknown;
|
|
221
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
223
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
222
224
|
width?: number | undefined;
|
|
223
225
|
height?: number | undefined;
|
|
224
226
|
} & {} & {
|
|
@@ -226,7 +228,7 @@ declare const _default: {
|
|
|
226
228
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
227
229
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
228
230
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
229
|
-
readonly props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
231
|
+
readonly props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
230
232
|
width?: number | undefined;
|
|
231
233
|
height?: number | undefined;
|
|
232
234
|
} & {} & {
|
|
@@ -238,7 +240,7 @@ declare const _default: {
|
|
|
238
240
|
[key: string]: React.ReactInstance;
|
|
239
241
|
};
|
|
240
242
|
componentDidMount?(): void;
|
|
241
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
243
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
242
244
|
width?: number | undefined;
|
|
243
245
|
height?: number | undefined;
|
|
244
246
|
} & {} & {
|
|
@@ -247,14 +249,14 @@ declare const _default: {
|
|
|
247
249
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
248
250
|
componentWillUnmount?(): void;
|
|
249
251
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
250
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
252
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
251
253
|
width?: number | undefined;
|
|
252
254
|
height?: number | undefined;
|
|
253
255
|
} & {} & {
|
|
254
256
|
locale?: string | undefined;
|
|
255
257
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
256
258
|
}>, prevState: Readonly<{}>): any;
|
|
257
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
259
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
258
260
|
width?: number | undefined;
|
|
259
261
|
height?: number | undefined;
|
|
260
262
|
} & {} & {
|
|
@@ -263,28 +265,28 @@ declare const _default: {
|
|
|
263
265
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
264
266
|
componentWillMount?(): void;
|
|
265
267
|
UNSAFE_componentWillMount?(): void;
|
|
266
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
268
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
267
269
|
width?: number | undefined;
|
|
268
270
|
height?: number | undefined;
|
|
269
271
|
} & {} & {
|
|
270
272
|
locale?: string | undefined;
|
|
271
273
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
272
274
|
}>, nextContext: any): void;
|
|
273
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
275
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
274
276
|
width?: number | undefined;
|
|
275
277
|
height?: number | undefined;
|
|
276
278
|
} & {} & {
|
|
277
279
|
locale?: string | undefined;
|
|
278
280
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
279
281
|
}>, nextContext: any): void;
|
|
280
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
282
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
281
283
|
width?: number | undefined;
|
|
282
284
|
height?: number | undefined;
|
|
283
285
|
} & {} & {
|
|
284
286
|
locale?: string | undefined;
|
|
285
287
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
286
288
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
287
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
289
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
288
290
|
width?: number | undefined;
|
|
289
291
|
height?: number | undefined;
|
|
290
292
|
} & {} & {
|
|
@@ -299,7 +301,7 @@ declare const _default: {
|
|
|
299
301
|
ComposedComponent: typeof SparkLine;
|
|
300
302
|
}, {}> & {
|
|
301
303
|
ComposedComponent: {
|
|
302
|
-
new (props: Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
304
|
+
new (props: Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
303
305
|
width?: number | undefined;
|
|
304
306
|
height?: number | undefined;
|
|
305
307
|
} & {} & {
|
|
@@ -311,7 +313,7 @@ declare const _default: {
|
|
|
311
313
|
getWrappedInstance(): any;
|
|
312
314
|
render(): React.JSX.Element;
|
|
313
315
|
context: unknown;
|
|
314
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
316
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
315
317
|
width?: number | undefined;
|
|
316
318
|
height?: number | undefined;
|
|
317
319
|
} & {} & {
|
|
@@ -319,7 +321,7 @@ declare const _default: {
|
|
|
319
321
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
320
322
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
321
323
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
322
|
-
readonly props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
324
|
+
readonly props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
323
325
|
width?: number | undefined;
|
|
324
326
|
height?: number | undefined;
|
|
325
327
|
} & {} & {
|
|
@@ -331,7 +333,7 @@ declare const _default: {
|
|
|
331
333
|
[key: string]: React.ReactInstance;
|
|
332
334
|
};
|
|
333
335
|
componentDidMount?(): void;
|
|
334
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
336
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
335
337
|
width?: number | undefined;
|
|
336
338
|
height?: number | undefined;
|
|
337
339
|
} & {} & {
|
|
@@ -340,14 +342,14 @@ declare const _default: {
|
|
|
340
342
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
341
343
|
componentWillUnmount?(): void;
|
|
342
344
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
343
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
345
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
344
346
|
width?: number | undefined;
|
|
345
347
|
height?: number | undefined;
|
|
346
348
|
} & {} & {
|
|
347
349
|
locale?: string | undefined;
|
|
348
350
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
349
351
|
}>, prevState: Readonly<{}>): any;
|
|
350
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
352
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
351
353
|
width?: number | undefined;
|
|
352
354
|
height?: number | undefined;
|
|
353
355
|
} & {} & {
|
|
@@ -356,28 +358,28 @@ declare const _default: {
|
|
|
356
358
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
357
359
|
componentWillMount?(): void;
|
|
358
360
|
UNSAFE_componentWillMount?(): void;
|
|
359
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
361
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
360
362
|
width?: number | undefined;
|
|
361
363
|
height?: number | undefined;
|
|
362
364
|
} & {} & {
|
|
363
365
|
locale?: string | undefined;
|
|
364
366
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
365
367
|
}>, nextContext: any): void;
|
|
366
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
368
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
367
369
|
width?: number | undefined;
|
|
368
370
|
height?: number | undefined;
|
|
369
371
|
} & {} & {
|
|
370
372
|
locale?: string | undefined;
|
|
371
373
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
372
374
|
}>, nextContext: any): void;
|
|
373
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
375
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
374
376
|
width?: number | undefined;
|
|
375
377
|
height?: number | undefined;
|
|
376
378
|
} & {} & {
|
|
377
379
|
locale?: string | undefined;
|
|
378
380
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
379
381
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
380
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "placeholder"> & {
|
|
382
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "value" | "onClick" | "id" | "placeholder" | "wrapperCustomStyle" | "themeCss"> & {
|
|
381
383
|
width?: number | undefined;
|
|
382
384
|
height?: number | undefined;
|
|
383
385
|
} & {} & {
|
|
@@ -1,11 +1,11 @@
|
|
|
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, __spreadArray, __read } from 'tslib';
|
|
7
7
|
import React__default from 'react';
|
|
8
|
-
import { themeable, localeable } from 'amis-core';
|
|
8
|
+
import { setThemeClassName, themeable, localeable } from 'amis-core';
|
|
9
9
|
|
|
10
10
|
var SparkLine = /** @class */ (function (_super) {
|
|
11
11
|
__extends(SparkLine, _super);
|
|
@@ -48,8 +48,8 @@ var SparkLine = /** @class */ (function (_super) {
|
|
|
48
48
|
React__default.createElement("path", { className: cx("Sparkline-line"), d: lineD, fill: "none" })));
|
|
49
49
|
};
|
|
50
50
|
SparkLine.prototype.render = function () {
|
|
51
|
-
var _a = this.props, cx = _a.classnames, className = _a.className, style = _a.style, value = _a.value, width = _a.width, height = _a.height, placeholder = _a.placeholder, __ = _a.translate, onClick = _a.onClick;
|
|
52
|
-
return (React__default.createElement("div", { className: cx('Sparkline', className, onClick ? 'Sparkline--clickable' : ''), style: style, onClick: onClick }, Array.isArray(value) && value.length > 1 ? (React__default.createElement("svg", { className: cx('Sparkline-svg'), width: width, height: height, viewBox: "0 0 ".concat(width, " ").concat(height) }, this.renderLines())) : (placeholder !== null && placeholder !== void 0 ? placeholder : __('placeholder.empty'))));
|
|
51
|
+
var _a = this.props, cx = _a.classnames, className = _a.className, style = _a.style, value = _a.value, width = _a.width, height = _a.height, placeholder = _a.placeholder, __ = _a.translate, onClick = _a.onClick, id = _a.id, wrapperCustomStyle = _a.wrapperCustomStyle, themeCss = _a.themeCss;
|
|
52
|
+
return (React__default.createElement("div", { className: cx('Sparkline', className, onClick ? 'Sparkline--clickable' : '', setThemeClassName('baseControlClassName', id, themeCss), setThemeClassName('wrapperCustomStyle', id, wrapperCustomStyle)), style: style, onClick: onClick }, Array.isArray(value) && value.length > 1 ? (React__default.createElement("svg", { className: cx('Sparkline-svg'), width: width, height: height, viewBox: "0 0 ".concat(width, " ").concat(height) }, this.renderLines())) : (placeholder !== null && placeholder !== void 0 ? placeholder : __('placeholder.empty'))));
|
|
53
53
|
};
|
|
54
54
|
SparkLine.defaultProps = {
|
|
55
55
|
width: 100,
|
|
@@ -21,6 +21,8 @@ export interface SpinnerProps extends ThemeProps, SpinnerExtraProps {
|
|
|
21
21
|
tipPlacement?: 'top' | 'right' | 'bottom' | 'left';
|
|
22
22
|
delay?: number;
|
|
23
23
|
overlay?: boolean;
|
|
24
|
+
/** 是否处于禁用状态 */
|
|
25
|
+
disabled?: boolean;
|
|
24
26
|
}
|
|
25
27
|
export interface SpinnerExtraProps {
|
|
26
28
|
loadingConfig?: {
|
|
@@ -43,6 +45,7 @@ export declare class Spinner extends React.Component<SpinnerProps, {
|
|
|
43
45
|
delay: number;
|
|
44
46
|
overlay: boolean;
|
|
45
47
|
loadingConfig: {};
|
|
48
|
+
disabled: boolean;
|
|
46
49
|
};
|
|
47
50
|
state: {
|
|
48
51
|
spinning: boolean;
|
|
@@ -70,6 +73,7 @@ declare const _default: {
|
|
|
70
73
|
icon?: React.ReactNode;
|
|
71
74
|
size?: "" | "sm" | "lg" | undefined;
|
|
72
75
|
show?: boolean | undefined;
|
|
76
|
+
disabled?: boolean | undefined;
|
|
73
77
|
loadingConfig?: {
|
|
74
78
|
root?: string | undefined;
|
|
75
79
|
show?: boolean | undefined;
|
|
@@ -91,6 +95,7 @@ declare const _default: {
|
|
|
91
95
|
icon?: React.ReactNode;
|
|
92
96
|
size?: "" | "sm" | "lg" | undefined;
|
|
93
97
|
show?: boolean | undefined;
|
|
98
|
+
disabled?: boolean | undefined;
|
|
94
99
|
loadingConfig?: {
|
|
95
100
|
root?: string | undefined;
|
|
96
101
|
show?: boolean | undefined;
|
|
@@ -108,6 +113,7 @@ declare const _default: {
|
|
|
108
113
|
icon?: React.ReactNode;
|
|
109
114
|
size?: "" | "sm" | "lg" | undefined;
|
|
110
115
|
show?: boolean | undefined;
|
|
116
|
+
disabled?: boolean | undefined;
|
|
111
117
|
loadingConfig?: {
|
|
112
118
|
root?: string | undefined;
|
|
113
119
|
show?: boolean | undefined;
|
|
@@ -129,6 +135,7 @@ declare const _default: {
|
|
|
129
135
|
icon?: React.ReactNode;
|
|
130
136
|
size?: "" | "sm" | "lg" | undefined;
|
|
131
137
|
show?: boolean | undefined;
|
|
138
|
+
disabled?: boolean | undefined;
|
|
132
139
|
loadingConfig?: {
|
|
133
140
|
root?: string | undefined;
|
|
134
141
|
show?: boolean | undefined;
|
|
@@ -147,6 +154,7 @@ declare const _default: {
|
|
|
147
154
|
icon?: React.ReactNode;
|
|
148
155
|
size?: "" | "sm" | "lg" | undefined;
|
|
149
156
|
show?: boolean | undefined;
|
|
157
|
+
disabled?: boolean | undefined;
|
|
150
158
|
loadingConfig?: {
|
|
151
159
|
root?: string | undefined;
|
|
152
160
|
show?: boolean | undefined;
|
|
@@ -163,6 +171,7 @@ declare const _default: {
|
|
|
163
171
|
icon?: React.ReactNode;
|
|
164
172
|
size?: "" | "sm" | "lg" | undefined;
|
|
165
173
|
show?: boolean | undefined;
|
|
174
|
+
disabled?: boolean | undefined;
|
|
166
175
|
loadingConfig?: {
|
|
167
176
|
root?: string | undefined;
|
|
168
177
|
show?: boolean | undefined;
|
|
@@ -181,6 +190,7 @@ declare const _default: {
|
|
|
181
190
|
icon?: React.ReactNode;
|
|
182
191
|
size?: "" | "sm" | "lg" | undefined;
|
|
183
192
|
show?: boolean | undefined;
|
|
193
|
+
disabled?: boolean | undefined;
|
|
184
194
|
loadingConfig?: {
|
|
185
195
|
root?: string | undefined;
|
|
186
196
|
show?: boolean | undefined;
|
|
@@ -197,6 +207,7 @@ declare const _default: {
|
|
|
197
207
|
icon?: React.ReactNode;
|
|
198
208
|
size?: "" | "sm" | "lg" | undefined;
|
|
199
209
|
show?: boolean | undefined;
|
|
210
|
+
disabled?: boolean | undefined;
|
|
200
211
|
loadingConfig?: {
|
|
201
212
|
root?: string | undefined;
|
|
202
213
|
show?: boolean | undefined;
|
|
@@ -213,6 +224,7 @@ declare const _default: {
|
|
|
213
224
|
icon?: React.ReactNode;
|
|
214
225
|
size?: "" | "sm" | "lg" | undefined;
|
|
215
226
|
show?: boolean | undefined;
|
|
227
|
+
disabled?: boolean | undefined;
|
|
216
228
|
loadingConfig?: {
|
|
217
229
|
root?: string | undefined;
|
|
218
230
|
show?: boolean | undefined;
|
|
@@ -229,6 +241,7 @@ declare const _default: {
|
|
|
229
241
|
icon?: React.ReactNode;
|
|
230
242
|
size?: "" | "sm" | "lg" | undefined;
|
|
231
243
|
show?: boolean | undefined;
|
|
244
|
+
disabled?: boolean | undefined;
|
|
232
245
|
loadingConfig?: {
|
|
233
246
|
root?: string | undefined;
|
|
234
247
|
show?: boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.6.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -129,7 +129,7 @@ var Spinner = /** @class */ (function (_super) {
|
|
|
129
129
|
store.remove(this.parent);
|
|
130
130
|
};
|
|
131
131
|
Spinner.prototype.renderBody = function () {
|
|
132
|
-
var _a = this.props, cx = _a.classnames, className = _a.className, spinnerClassName = _a.spinnerClassName, _b = _a.size, size = _b === void 0 ? '' : _b, overlay = _a.overlay, delay = _a.delay, iconConfig = _a.icon, tip = _a.tip, _c = _a.tipPlacement, tipPlacement = _c === void 0 ? '' : _c, loadingConfig = _a.loadingConfig;
|
|
132
|
+
var _a = this.props, cx = _a.classnames, className = _a.className, spinnerClassName = _a.spinnerClassName, _b = _a.size, size = _b === void 0 ? '' : _b, overlay = _a.overlay, delay = _a.delay, iconConfig = _a.icon, tip = _a.tip, _c = _a.tipPlacement, tipPlacement = _c === void 0 ? '' : _c, loadingConfig = _a.loadingConfig, disabled = _a.disabled;
|
|
133
133
|
// 定义了挂载位置时只能使用默认icon
|
|
134
134
|
var icon = (loadingConfig === null || loadingConfig === void 0 ? void 0 : loadingConfig.root) ? undefined : iconConfig;
|
|
135
135
|
var isCustomIcon = icon && React__default.isValidElement(icon);
|
|
@@ -151,9 +151,10 @@ var Spinner = /** @class */ (function (_super) {
|
|
|
151
151
|
_a), (_b = {}, _b["Spinner--overlay"] = showOverlay, _b), fadeStyles[status], className) },
|
|
152
152
|
React__default.createElement("div", { className: cx("Spinner-icon", (_c = {},
|
|
153
153
|
_c["Spinner-icon--".concat(size)] = ['lg', 'sm'].includes(size),
|
|
154
|
-
_c[
|
|
155
|
-
_c[
|
|
156
|
-
_c[
|
|
154
|
+
_c['Spinner-icon--default'] = !icon,
|
|
155
|
+
_c['Spinner-icon--simple'] = !isCustomIcon && icon,
|
|
156
|
+
_c['Spinner-icon--custom'] = isCustomIcon,
|
|
157
|
+
_c['Spinner-icon--disabled'] = disabled,
|
|
157
158
|
_c), spinnerClassName) }, icon ? (React__default.createElement(Icon, { cx: cx, icon: icon, className: "icon" })) : null),
|
|
158
159
|
tip ? React__default.createElement("span", { className: cx("Spinner-tip") }, tip) : '')));
|
|
159
160
|
})));
|
|
@@ -179,7 +180,8 @@ var Spinner = /** @class */ (function (_super) {
|
|
|
179
180
|
tipPlacement: 'bottom',
|
|
180
181
|
delay: 0,
|
|
181
182
|
overlay: false,
|
|
182
|
-
loadingConfig: {}
|
|
183
|
+
loadingConfig: {},
|
|
184
|
+
disabled: false
|
|
183
185
|
};
|
|
184
186
|
return Spinner;
|
|
185
187
|
}(React__default.Component));
|
package/esm/components/Steps.js
CHANGED