amis-ui 3.1.1 → 3.3.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.d.ts +122 -122
- package/esm/components/Alert.js +55 -17
- package/esm/components/Alert2.d.ts +20 -20
- package/esm/components/Alert2.js +5 -8
- package/esm/components/AnchorNav.d.ts +20 -20
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/ArrayInput.d.ts +40 -40
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.d.ts +120 -120
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.d.ts +102 -101
- package/esm/components/Avatar.js +4 -3
- package/esm/components/Badge.d.ts +1 -1
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.js +27 -23
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +5 -9
- package/esm/components/Button.d.ts +20 -20
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.d.ts +41 -40
- package/esm/components/CalendarMobile.js +21 -5
- package/esm/components/Card.d.ts +100 -100
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.d.ts +4 -3
- package/esm/components/Cascader.js +106 -105
- package/esm/components/ChainedDropdownSelection.d.ts +559 -0
- package/esm/components/ChainedDropdownSelection.js +104 -0
- package/esm/components/ChainedSelection.d.ts +120 -120
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.d.ts +11 -10
- package/esm/components/Checkbox.js +3 -2
- package/esm/components/CityArea.js +3 -3
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.d.ts +162 -140
- package/esm/components/Collapse.js +11 -7
- package/esm/components/CollapseGroup.d.ts +53 -31
- package/esm/components/CollapseGroup.js +19 -14
- package/esm/components/ColorPicker.d.ts +84 -80
- package/esm/components/ColorPicker.js +32 -5
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConfirmBox.d.ts +82 -81
- package/esm/components/ConfirmBox.js +11 -4
- package/esm/components/ContextMenu.d.ts +2 -2
- package/esm/components/ContextMenu.js +25 -10
- package/esm/components/DatePicker.d.ts +85 -81
- package/esm/components/DatePicker.js +9 -6
- package/esm/components/DateRangePicker.d.ts +120 -120
- package/esm/components/DateRangePicker.js +38 -17
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.d.ts +30 -30
- package/esm/components/Drawer.js +1 -1
- package/esm/components/DropDownSelection.d.ts +555 -0
- package/esm/components/DropDownSelection.js +77 -0
- package/esm/components/Editor.d.ts +120 -120
- 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 +120 -120
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.d.ts +40 -40
- package/esm/components/ImageGallery.js +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.d.ts +11 -10
- package/esm/components/InputBox.js +5 -3
- package/esm/components/InputBoxWithSuggestion.d.ts +1 -0
- package/esm/components/InputBoxWithSuggestion.js +4 -4
- package/esm/components/InputTable.js +3 -3
- package/esm/components/Layout.d.ts +10 -10
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +5 -4
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.d.ts +81 -80
- package/esm/components/ListMenu.js +6 -5
- package/esm/components/LocationPicker.d.ts +44 -40
- package/esm/components/LocationPicker.js +35 -8
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Modal.d.ts +80 -80
- package/esm/components/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +120 -120
- package/esm/components/MultilineText.d.ts +40 -40
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.d.ts +22 -25
- package/esm/components/NumberInput.js +14 -7
- package/esm/components/Pagination.d.ts +86 -81
- package/esm/components/Pagination.js +13 -4
- package/esm/components/Picker.js +3 -3
- package/esm/components/PickerColumn.d.ts +1 -1
- package/esm/components/PickerColumn.js +2 -2
- package/esm/components/PickerContainer.d.ts +1 -0
- package/esm/components/PickerContainer.js +4 -4
- package/esm/components/PopOverContainer.d.ts +3 -0
- package/esm/components/PopOverContainer.js +14 -3
- package/esm/components/PopUp.d.ts +120 -120
- package/esm/components/PopUp.js +3 -3
- package/esm/components/Progress.d.ts +30 -30
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.d.ts +11 -10
- package/esm/components/Radios.js +7 -6
- package/esm/components/Range.d.ts +2 -1
- package/esm/components/Range.js +67 -16
- package/esm/components/Rating.d.ts +20 -20
- package/esm/components/Rating.js +2 -2
- package/esm/components/ResultBox.d.ts +83 -41
- package/esm/components/ResultBox.js +6 -5
- package/esm/components/ResultList.d.ts +40 -40
- package/esm/components/ResultList.js +2 -2
- package/esm/components/ResultTableList.d.ts +120 -120
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.d.ts +40 -40
- package/esm/components/ResultTreeList.js +4 -2
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.d.ts +83 -82
- package/esm/components/SearchBox.js +8 -7
- package/esm/components/Select.d.ts +1353 -1353
- package/esm/components/Select.js +16 -9
- package/esm/components/SelectMobile.d.ts +37 -0
- package/esm/components/SelectMobile.js +362 -0
- package/esm/components/Selection.d.ts +120 -120
- package/esm/components/Selection.js +1 -1
- package/esm/components/SparkLine.d.ts +40 -40
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.d.ts +50 -50
- package/esm/components/Spinner.js +4 -4
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.d.ts +10 -10
- package/esm/components/Switch.js +1 -1
- package/esm/components/TableSelection.d.ts +120 -120
- package/esm/components/TableSelection.js +3 -2
- package/esm/components/Tabs.d.ts +92 -80
- package/esm/components/Tabs.js +88 -13
- package/esm/components/TabsTransfer.d.ts +41 -40
- package/esm/components/TabsTransfer.js +7 -6
- package/esm/components/TabsTransferPicker.d.ts +2 -0
- package/esm/components/TabsTransferPicker.js +8 -8
- package/esm/components/Tag.d.ts +80 -80
- package/esm/components/Tag.js +5 -10
- package/esm/components/Textarea.d.ts +41 -40
- package/esm/components/Textarea.js +1 -1
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.d.ts +1 -1
- package/esm/components/TimelineItem.js +4 -3
- package/esm/components/Tinymce.d.ts +1 -0
- package/esm/components/Tinymce.js +7 -3
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.d.ts +80 -80
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.d.ts +31 -31
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.d.ts +134 -132
- package/esm/components/Transfer.js +26 -16
- package/esm/components/TransferDropDown.d.ts +124 -120
- package/esm/components/TransferDropDown.js +52 -18
- package/esm/components/TransferPicker.d.ts +2 -0
- package/esm/components/TransferPicker.js +8 -8
- package/esm/components/TransferSearch.js +3 -3
- package/esm/components/Tree.d.ts +161 -160
- package/esm/components/Tree.js +58 -23
- package/esm/components/TreeSelection.d.ts +120 -120
- package/esm/components/TreeSelection.js +3 -3
- package/esm/components/UserSelect.d.ts +40 -40
- package/esm/components/UserSelect.js +17 -9
- package/esm/components/UserTabSelect.d.ts +40 -40
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.js +7 -7
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.d.ts +2 -0
- package/esm/components/calendar/Calendar.js +8 -4
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.d.ts +3 -0
- package/esm/components/calendar/DaysView.js +17 -5
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.d.ts +11 -0
- package/esm/components/calendar/QuartersView.js +47 -5
- package/esm/components/calendar/TimeView.js +4 -2
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.d.ts +1 -1
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.d.ts +3 -7
- package/esm/components/condition-builder/Field.js +14 -72
- package/esm/components/condition-builder/Formula.js +2 -2
- package/esm/components/condition-builder/Func.js +2 -2
- package/esm/components/condition-builder/Group.d.ts +10 -1
- package/esm/components/condition-builder/Group.js +9 -5
- package/esm/components/condition-builder/GroupOrItem.d.ts +10 -1
- package/esm/components/condition-builder/GroupOrItem.js +9 -6
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.d.ts +1 -1
- package/esm/components/condition-builder/Item.js +5 -6
- package/esm/components/condition-builder/Value.js +13 -8
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.d.ts +10 -1
- package/esm/components/condition-builder/index.js +8 -4
- package/esm/components/formula/Editor.d.ts +57 -40
- package/esm/components/formula/Editor.js +124 -24
- package/esm/components/formula/FuncList.js +24 -10
- package/esm/components/formula/Input.d.ts +272 -0
- package/esm/components/formula/Input.js +115 -0
- package/esm/components/formula/Picker.d.ts +64 -45
- package/esm/components/formula/Picker.js +120 -28
- package/esm/components/formula/VariableList.d.ts +1 -0
- package/esm/components/formula/VariableList.js +127 -23
- package/esm/components/formula/plugin.d.ts +4 -2
- package/esm/components/formula/plugin.js +49 -25
- package/esm/components/icons.d.ts +11 -2
- package/esm/components/icons.js +64 -22
- package/esm/components/json-schema/Array.js +6 -4
- package/esm/components/json-schema/Item.js +4 -4
- package/esm/components/json-schema/Object.js +9 -5
- package/esm/components/json-schema/index.d.ts +1 -0
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.js +3 -2
- package/esm/components/menu/SubMenu.js +3 -3
- package/esm/components/menu/index.d.ts +65 -60
- package/esm/components/menu/index.js +34 -14
- package/esm/components/schema-editor/Array.js +3 -3
- package/esm/components/schema-editor/Common.d.ts +1 -0
- package/esm/components/schema-editor/Common.js +7 -7
- package/esm/components/schema-editor/Item.d.ts +1 -0
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.js +5 -5
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.d.ts +41 -40
- package/esm/components/schema-editor/index.js +3 -3
- package/esm/components/table/Cell.d.ts +80 -80
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.d.ts +40 -40
- package/esm/components/table/HeadCellFilter.js +1 -1
- package/esm/components/table/HeadCellSelect.d.ts +40 -40
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.d.ts +5 -2
- package/esm/components/table/HeadCellSort.js +11 -11
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/index.d.ts +121 -121
- package/esm/components/table/index.js +1 -1
- package/esm/components/virtual-list/AutoSizer.js +1 -1
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-sub-form.js +1 -1
- package/esm/hooks/use-touch.js +1 -1
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +1 -1
- package/esm/icons/alert-danger.svg.js +1 -1
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +1 -1
- package/esm/icons/alert-warning.svg.js +1 -1
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check.svg.js +1 -1
- package/esm/icons/clock.svg.js +1 -1
- package/esm/icons/close-small.svg.js +1 -1
- package/esm/icons/close.svg.js +1 -1
- package/esm/icons/cloud-upload.svg.js +1 -1
- package/esm/icons/column-filter.svg.js +1 -1
- package/esm/icons/columns.svg.js +1 -1
- package/esm/icons/compress-alt.svg.js +1 -1
- package/esm/icons/copy.svg.js +1 -1
- package/esm/icons/date.svg.js +1 -1
- package/esm/icons/department.svg.js +1 -1
- package/esm/icons/desk-empty.svg.js +1 -1
- package/esm/icons/dot.svg.js +1 -1
- package/esm/icons/down-arrow-bold.svg.js +1 -1
- package/esm/icons/down.svg.js +1 -1
- package/esm/icons/download.svg.js +1 -1
- package/esm/icons/drag-bar.svg.js +1 -1
- package/esm/icons/drag.svg.js +1 -1
- package/esm/icons/edit.svg.js +1 -1
- package/esm/icons/ellipsis-v.svg.js +1 -1
- package/esm/icons/enter.svg.js +1 -1
- package/esm/icons/exchange.svg.js +1 -1
- package/esm/icons/expand-alt.svg.js +1 -1
- package/esm/icons/fail.svg.js +1 -1
- package/esm/icons/file.svg.js +1 -1
- package/esm/icons/filter.svg.js +1 -1
- package/esm/icons/folder.svg.js +1 -1
- package/esm/icons/function.svg.js +15 -8
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +1 -1
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +1 -1
- package/esm/icons/pause.svg.js +1 -1
- package/esm/icons/pencil.svg.js +1 -1
- package/esm/icons/play.svg.js +1 -1
- package/esm/icons/plus-cicle.svg.js +1 -1
- package/esm/icons/plus-fine.svg.js +1 -1
- package/esm/icons/plus.svg.js +1 -1
- package/esm/icons/post.svg.js +1 -1
- package/esm/icons/question-mark.svg.js +1 -1
- package/esm/icons/question.svg.js +1 -1
- package/esm/icons/redo.svg.js +1 -1
- package/esm/icons/refresh.svg.js +1 -1
- package/esm/icons/reload.svg.js +1 -1
- package/esm/icons/remove.svg.js +1 -1
- package/esm/icons/retry.svg.js +1 -1
- package/esm/icons/right-arrow-bold.svg.js +1 -1
- package/esm/icons/right-arrow.svg.js +1 -1
- package/esm/icons/right-double-arrow.svg.js +1 -1
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +1 -1
- package/esm/icons/rotate-right.svg.js +1 -1
- package/esm/icons/scale-origin.svg.js +1 -1
- package/esm/icons/schedule.svg.js +1 -1
- package/esm/icons/search.svg.js +1 -1
- package/esm/icons/setting.svg.js +1 -1
- package/esm/icons/slider-handle-icon.svg.js +1 -1
- package/esm/icons/sort-asc.svg.js +1 -1
- package/esm/icons/sort-default.svg.js +1 -1
- package/esm/icons/sort-desc.svg.js +1 -1
- package/esm/icons/star.svg.js +1 -1
- package/esm/icons/status-close.svg.js +1 -1
- package/esm/icons/steps-finsh.svg.js +1 -1
- package/esm/icons/success.svg.js +1 -1
- package/esm/icons/transparent.svg.js +1 -1
- package/esm/icons/trash.svg.js +1 -1
- package/esm/icons/tree-down.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/upload.svg.js +1 -1
- package/esm/icons/user-remove.svg.js +1 -1
- package/esm/icons/view.svg.js +1 -1
- package/esm/icons/volume.svg.js +1 -1
- package/esm/icons/warning-mark.svg.js +1 -1
- package/esm/icons/warning.svg.js +1 -1
- package/esm/icons/window-restore.svg.js +1 -1
- package/esm/icons/zoom-in.svg.js +1 -1
- package/esm/icons/zoom-out.svg.js +1 -1
- package/esm/index.js +1 -1
- package/esm/locale/de-DE.js +7 -2
- package/esm/locale/en-US.js +7 -2
- package/esm/locale/zh-CN.js +8 -3
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/esm/node_modules/rc-overflow/es/Item.js +1 -1
- package/esm/node_modules/rc-overflow/es/Overflow.js +4 -3
- package/esm/node_modules/rc-overflow/es/RawItem.js +2 -2
- package/esm/node_modules/rc-overflow/es/context.js +10 -0
- package/esm/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
- package/esm/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
- package/esm/node_modules/rc-overflow/es/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/Collection.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
- package/esm/node_modules/rc-util/es/Children/toArray.js +3 -4
- package/esm/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/esm/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useEvent.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useLayoutEffect.js +16 -2
- package/esm/node_modules/rc-util/es/raf.js +1 -1
- package/esm/node_modules/rc-util/es/ref.js +3 -4
- package/esm/node_modules/rc-util/es/warning.js +1 -1
- package/esm/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/lib/components/404.js +12 -13
- package/lib/components/Alert.d.ts +122 -122
- package/lib/components/Alert.js +64 -27
- package/lib/components/Alert2.d.ts +20 -20
- package/lib/components/Alert2.js +13 -17
- package/lib/components/AnchorNav.d.ts +20 -20
- package/lib/components/AnchorNav.js +10 -12
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +17 -14
- package/lib/components/AsideNav.d.ts +10 -10
- package/lib/components/AsideNav.js +13 -15
- package/lib/components/AssociatedSelection.d.ts +80 -80
- package/lib/components/AssociatedSelection.js +11 -17
- package/lib/components/Avatar.d.ts +102 -101
- package/lib/components/Avatar.js +10 -6
- package/lib/components/Badge.d.ts +1 -1
- package/lib/components/Badge.js +13 -13
- package/lib/components/BaiduMapPicker.js +41 -34
- package/lib/components/BarCode.js +5 -5
- package/lib/components/Breadcrumb.js +21 -25
- package/lib/components/Button.d.ts +30 -30
- package/lib/components/Button.js +7 -8
- package/lib/components/CalendarMobile.d.ts +81 -80
- package/lib/components/CalendarMobile.js +55 -41
- package/lib/components/Card.d.ts +110 -110
- package/lib/components/Card.js +22 -19
- package/lib/components/Cascader.d.ts +4 -3
- package/lib/components/Cascader.js +114 -114
- package/lib/components/ChainedDropdownSelection.d.ts +559 -0
- package/lib/components/ChainedDropdownSelection.js +116 -0
- package/lib/components/ChainedSelection.d.ts +80 -80
- package/lib/components/ChainedSelection.js +23 -20
- package/lib/components/Checkbox.d.ts +11 -10
- package/lib/components/Checkbox.js +10 -10
- package/lib/components/CityArea.js +10 -11
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +5 -2
- package/lib/components/Collapse.d.ts +152 -130
- package/lib/components/Collapse.js +19 -17
- package/lib/components/CollapseGroup.d.ts +53 -31
- package/lib/components/CollapseGroup.js +22 -19
- package/lib/components/ColorPicker.d.ts +84 -80
- package/lib/components/ColorPicker.js +44 -19
- package/lib/components/Combo.js +16 -73
- package/lib/components/ConfirmBox.d.ts +82 -81
- package/lib/components/ConfirmBox.js +31 -21
- package/lib/components/ContextMenu.d.ts +2 -2
- package/lib/components/ContextMenu.js +37 -19
- package/lib/components/DatePicker.d.ts +125 -121
- package/lib/components/DatePicker.js +28 -27
- package/lib/components/DateRangePicker.d.ts +280 -280
- package/lib/components/DateRangePicker.js +67 -48
- package/lib/components/DndContainer.js +6 -8
- package/lib/components/Drawer.d.ts +30 -30
- package/lib/components/Drawer.js +13 -15
- package/lib/components/DropDownSelection.d.ts +555 -0
- package/lib/components/DropDownSelection.js +84 -0
- package/lib/components/Editor.d.ts +40 -40
- package/lib/components/Editor.js +9 -11
- package/lib/components/Form.js +8 -5
- package/lib/components/FormField.js +20 -21
- package/lib/components/GaodeMapPicker.js +10 -7
- package/lib/components/GridNav.js +15 -16
- package/lib/components/GroupedSelection.d.ts +80 -80
- package/lib/components/GroupedSelection.js +22 -19
- package/lib/components/Html.js +5 -7
- package/lib/components/ImageGallery.d.ts +40 -40
- package/lib/components/ImageGallery.js +28 -25
- package/lib/components/Input.js +6 -3
- package/lib/components/InputBox.d.ts +21 -20
- package/lib/components/InputBox.js +11 -6
- package/lib/components/InputBoxWithSuggestion.d.ts +1 -0
- package/lib/components/InputBoxWithSuggestion.js +12 -9
- package/lib/components/InputTable.js +25 -22
- package/lib/components/Layout.d.ts +10 -10
- package/lib/components/Layout.js +13 -26
- package/lib/components/Link.js +8 -4
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +8 -5
- package/lib/components/ListMenu.d.ts +81 -80
- package/lib/components/ListMenu.js +14 -10
- package/lib/components/LocationPicker.d.ts +84 -80
- package/lib/components/LocationPicker.js +45 -15
- package/lib/components/Markdown.js +5 -2
- package/lib/components/Modal.d.ts +40 -40
- package/lib/components/Modal.js +15 -17
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +200 -200
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +9 -6
- package/lib/components/NumberInput.d.ts +32 -35
- package/lib/components/NumberInput.js +20 -10
- package/lib/components/Pagination.d.ts +86 -81
- package/lib/components/Pagination.js +40 -28
- package/lib/components/Picker.js +13 -14
- package/lib/components/PickerColumn.d.ts +1 -1
- package/lib/components/PickerColumn.js +7 -5
- package/lib/components/PickerContainer.d.ts +1 -0
- package/lib/components/PickerContainer.js +8 -5
- package/lib/components/PopOverContainer.d.ts +3 -0
- package/lib/components/PopOverContainer.js +19 -5
- package/lib/components/PopUp.d.ts +80 -80
- package/lib/components/PopUp.js +18 -20
- package/lib/components/Progress.d.ts +80 -80
- package/lib/components/Progress.js +14 -11
- package/lib/components/PullRefresh.js +8 -14
- package/lib/components/Radios.d.ts +41 -40
- package/lib/components/Radios.js +13 -24
- package/lib/components/Range.d.ts +2 -1
- package/lib/components/Range.js +83 -34
- package/lib/components/Rating.d.ts +30 -30
- package/lib/components/Rating.js +14 -15
- package/lib/components/ResultBox.d.ts +123 -81
- package/lib/components/ResultBox.js +34 -30
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +19 -15
- package/lib/components/ResultTableList.d.ts +80 -80
- package/lib/components/ResultTableList.js +13 -13
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +21 -13
- package/lib/components/RichText.js +6 -8
- package/lib/components/SearchBox.d.ts +83 -82
- package/lib/components/SearchBox.js +28 -24
- package/lib/components/Select.d.ts +1933 -1933
- package/lib/components/Select.js +66 -62
- package/lib/components/SelectMobile.d.ts +37 -0
- package/lib/components/SelectMobile.js +374 -0
- package/lib/components/Selection.d.ts +80 -80
- package/lib/components/Selection.js +7 -9
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +8 -5
- package/lib/components/Spinner.d.ts +50 -50
- package/lib/components/Spinner.js +13 -16
- package/lib/components/Steps.js +20 -21
- package/lib/components/Switch.d.ts +10 -10
- package/lib/components/Switch.js +8 -10
- package/lib/components/TableSelection.d.ts +80 -80
- package/lib/components/TableSelection.js +35 -29
- package/lib/components/Tabs.d.ts +92 -80
- package/lib/components/Tabs.js +122 -49
- package/lib/components/TabsTransfer.d.ts +41 -40
- package/lib/components/TabsTransfer.js +20 -16
- package/lib/components/TabsTransferPicker.d.ts +2 -0
- package/lib/components/TabsTransferPicker.js +10 -7
- package/lib/components/Tag.d.ts +90 -90
- package/lib/components/Tag.js +12 -17
- package/lib/components/Textarea.d.ts +41 -40
- package/lib/components/Textarea.js +9 -6
- package/lib/components/Timeline.js +6 -7
- package/lib/components/TimelineItem.d.ts +1 -1
- package/lib/components/TimelineItem.js +18 -14
- package/lib/components/Tinymce.d.ts +1 -0
- package/lib/components/Tinymce.js +11 -4
- package/lib/components/TitleBar.js +10 -16
- package/lib/components/Toast.d.ts +120 -120
- package/lib/components/Toast.js +14 -16
- package/lib/components/Tooltip.js +8 -10
- package/lib/components/TooltipWrapper.d.ts +31 -31
- package/lib/components/TooltipWrapper.js +6 -8
- package/lib/components/Transfer.d.ts +174 -172
- package/lib/components/Transfer.js +61 -42
- package/lib/components/TransferDropDown.d.ts +164 -160
- package/lib/components/TransferDropDown.js +59 -26
- package/lib/components/TransferPicker.d.ts +2 -0
- package/lib/components/TransferPicker.js +10 -7
- package/lib/components/TransferSearch.js +10 -6
- package/lib/components/Tree.d.ts +241 -240
- package/lib/components/Tree.js +104 -84
- package/lib/components/TreeSelection.d.ts +80 -80
- package/lib/components/TreeSelection.js +17 -18
- package/lib/components/UserSelect.d.ts +40 -40
- package/lib/components/UserSelect.js +98 -91
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +17 -18
- package/lib/components/WithRemoteConfig.js +11 -8
- package/lib/components/WithStore.js +5 -2
- package/lib/components/calendar/Calendar.d.ts +2 -0
- package/lib/components/calendar/Calendar.js +12 -5
- package/lib/components/calendar/CalendarContainer.js +5 -2
- package/lib/components/calendar/DaysView.d.ts +3 -0
- package/lib/components/calendar/DaysView.js +70 -56
- package/lib/components/calendar/MonthsView.js +18 -15
- package/lib/components/calendar/QuartersView.d.ts +11 -0
- package/lib/components/calendar/QuartersView.js +59 -14
- package/lib/components/calendar/TimeView.js +35 -30
- package/lib/components/calendar/YearsView.js +18 -15
- package/lib/components/condition-builder/Expression.d.ts +1 -1
- package/lib/components/condition-builder/Expression.js +10 -7
- package/lib/components/condition-builder/Field.d.ts +3 -7
- package/lib/components/condition-builder/Field.js +16 -71
- package/lib/components/condition-builder/Formula.js +6 -3
- package/lib/components/condition-builder/Func.js +16 -13
- package/lib/components/condition-builder/Group.d.ts +10 -1
- package/lib/components/condition-builder/Group.js +27 -20
- package/lib/components/condition-builder/GroupOrItem.d.ts +10 -1
- package/lib/components/condition-builder/GroupOrItem.js +19 -13
- package/lib/components/condition-builder/InputSwitch.js +10 -11
- package/lib/components/condition-builder/Item.d.ts +1 -1
- package/lib/components/condition-builder/Item.js +19 -17
- package/lib/components/condition-builder/Value.js +18 -10
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.d.ts +10 -1
- package/lib/components/condition-builder/index.js +13 -6
- package/lib/components/formula/Editor.d.ts +57 -40
- package/lib/components/formula/Editor.js +128 -25
- package/lib/components/formula/FuncList.js +33 -16
- package/lib/components/formula/Input.d.ts +272 -0
- package/lib/components/formula/Input.js +128 -0
- package/lib/components/formula/Picker.d.ts +64 -45
- package/lib/components/formula/Picker.js +140 -44
- package/lib/components/formula/VariableList.d.ts +1 -0
- package/lib/components/formula/VariableList.js +128 -21
- package/lib/components/formula/plugin.d.ts +4 -2
- package/lib/components/formula/plugin.js +48 -24
- package/lib/components/icons.d.ts +11 -2
- package/lib/components/icons.js +76 -30
- package/lib/components/json-schema/Array.js +18 -13
- package/lib/components/json-schema/Item.js +11 -12
- package/lib/components/json-schema/Object.js +22 -15
- package/lib/components/json-schema/index.d.ts +1 -0
- package/lib/components/json-schema/index.js +6 -7
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.js +18 -19
- package/lib/components/menu/SubMenu.js +19 -21
- package/lib/components/menu/index.d.ts +75 -70
- package/lib/components/menu/index.js +46 -28
- package/lib/components/schema-editor/Array.js +11 -8
- package/lib/components/schema-editor/Common.d.ts +1 -0
- package/lib/components/schema-editor/Common.js +20 -17
- package/lib/components/schema-editor/Item.d.ts +1 -0
- package/lib/components/schema-editor/Item.js +5 -2
- package/lib/components/schema-editor/Object.js +16 -13
- package/lib/components/schema-editor/SchemaVariableList.js +9 -6
- package/lib/components/schema-editor/SchemaVariableListPicker.js +7 -4
- package/lib/components/schema-editor/index.d.ts +41 -40
- package/lib/components/schema-editor/index.js +7 -7
- package/lib/components/table/Cell.d.ts +40 -40
- package/lib/components/table/Cell.js +5 -6
- package/lib/components/table/HeadCellDropDown.js +8 -9
- package/lib/components/table/HeadCellFilter.d.ts +40 -40
- package/lib/components/table/HeadCellFilter.js +12 -13
- package/lib/components/table/HeadCellSelect.d.ts +40 -40
- package/lib/components/table/HeadCellSelect.js +6 -7
- package/lib/components/table/HeadCellSort.d.ts +5 -2
- package/lib/components/table/HeadCellSort.js +19 -20
- package/lib/components/table/ItemActionsWrapper.js +5 -2
- package/lib/components/table/index.d.ts +81 -81
- package/lib/components/table/index.js +62 -63
- package/lib/components/virtual-list/AutoSizer.js +5 -2
- 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 +6 -6
- package/lib/helper.css +159 -0
- 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 +7 -24
- package/lib/icons/alert-info.svg.js +7 -24
- package/lib/icons/alert-success.svg.js +7 -24
- package/lib/icons/alert-warning.svg.js +7 -24
- package/lib/icons/back.svg.js +7 -24
- package/lib/icons/calendar.svg.js +11 -28
- package/lib/icons/caret.svg.js +7 -24
- package/lib/icons/check.svg.js +7 -24
- package/lib/icons/clock.svg.js +9 -26
- package/lib/icons/close-small.svg.js +8 -25
- package/lib/icons/close.svg.js +7 -24
- package/lib/icons/cloud-upload.svg.js +7 -24
- package/lib/icons/column-filter.svg.js +7 -24
- package/lib/icons/columns.svg.js +7 -24
- package/lib/icons/compress-alt.svg.js +7 -24
- package/lib/icons/copy.svg.js +9 -26
- package/lib/icons/date.svg.js +9 -26
- package/lib/icons/department.svg.js +12 -29
- package/lib/icons/desk-empty.svg.js +19 -36
- package/lib/icons/dot.svg.js +10 -27
- package/lib/icons/down-arrow-bold.svg.js +7 -24
- package/lib/icons/down.svg.js +7 -24
- package/lib/icons/download.svg.js +7 -24
- package/lib/icons/drag-bar.svg.js +15 -32
- package/lib/icons/drag.svg.js +7 -24
- package/lib/icons/edit.svg.js +7 -24
- package/lib/icons/ellipsis-v.svg.js +7 -24
- package/lib/icons/enter.svg.js +7 -24
- package/lib/icons/exchange.svg.js +7 -24
- package/lib/icons/expand-alt.svg.js +7 -24
- package/lib/icons/fail.svg.js +9 -26
- package/lib/icons/file.svg.js +8 -25
- package/lib/icons/filter.svg.js +7 -24
- package/lib/icons/folder.svg.js +9 -26
- package/lib/icons/function.svg.js +20 -30
- package/lib/icons/home.svg.js +7 -24
- package/lib/icons/image.svg.js +7 -24
- package/lib/icons/info-circle.svg.js +7 -24
- package/lib/icons/info.svg.js +8 -25
- package/lib/icons/input-clear.svg.js +7 -24
- package/lib/icons/invisible.svg.js +7 -24
- package/lib/icons/left-arrow.svg.js +7 -24
- package/lib/icons/loading-outline.svg.js +7 -24
- package/lib/icons/location.svg.js +7 -24
- package/lib/icons/menu.svg.js +7 -24
- package/lib/icons/minus.svg.js +7 -24
- package/lib/icons/move.svg.js +7 -24
- package/lib/icons/mute.svg.js +7 -24
- package/lib/icons/new-edit.svg.js +7 -24
- package/lib/icons/pause.svg.js +7 -24
- package/lib/icons/pencil.svg.js +7 -24
- package/lib/icons/play.svg.js +7 -24
- package/lib/icons/plus-cicle.svg.js +7 -24
- package/lib/icons/plus-fine.svg.js +7 -24
- package/lib/icons/plus.svg.js +7 -24
- package/lib/icons/post.svg.js +12 -29
- package/lib/icons/question-mark.svg.js +8 -25
- package/lib/icons/question.svg.js +7 -24
- package/lib/icons/redo.svg.js +7 -24
- package/lib/icons/refresh.svg.js +7 -24
- package/lib/icons/reload.svg.js +7 -24
- package/lib/icons/remove.svg.js +7 -24
- package/lib/icons/retry.svg.js +9 -26
- package/lib/icons/right-arrow-bold.svg.js +7 -24
- package/lib/icons/right-arrow.svg.js +7 -24
- package/lib/icons/right-double-arrow.svg.js +7 -24
- package/lib/icons/role.svg.js +11 -28
- package/lib/icons/rotate-left.svg.js +8 -25
- package/lib/icons/rotate-right.svg.js +8 -25
- package/lib/icons/scale-origin.svg.js +9 -26
- package/lib/icons/schedule.svg.js +9 -26
- package/lib/icons/search.svg.js +7 -24
- package/lib/icons/setting.svg.js +7 -24
- package/lib/icons/slider-handle-icon.svg.js +7 -24
- package/lib/icons/sort-asc.svg.js +7 -24
- package/lib/icons/sort-default.svg.js +8 -25
- package/lib/icons/sort-desc.svg.js +7 -24
- package/lib/icons/star.svg.js +7 -24
- package/lib/icons/status-close.svg.js +7 -24
- package/lib/icons/steps-finsh.svg.js +7 -24
- package/lib/icons/success.svg.js +9 -26
- package/lib/icons/transparent.svg.js +12 -29
- package/lib/icons/trash.svg.js +7 -24
- package/lib/icons/tree-down.svg.js +7 -24
- package/lib/icons/undo.svg.js +7 -24
- package/lib/icons/upload.svg.js +7 -24
- package/lib/icons/user-remove.svg.js +9 -26
- package/lib/icons/view.svg.js +7 -24
- package/lib/icons/volume.svg.js +8 -25
- package/lib/icons/warning-mark.svg.js +8 -25
- package/lib/icons/warning.svg.js +7 -24
- package/lib/icons/window-restore.svg.js +7 -24
- package/lib/icons/zoom-in.svg.js +7 -24
- package/lib/icons/zoom-out.svg.js +7 -24
- package/lib/index.js +1 -1
- package/lib/locale/de-DE.js +7 -2
- package/lib/locale/en-US.js +7 -2
- package/lib/locale/zh-CN.js +8 -3
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/lib/node_modules/rc-overflow/es/Item.js +1 -1
- package/lib/node_modules/rc-overflow/es/Overflow.js +5 -5
- package/lib/node_modules/rc-overflow/es/RawItem.js +7 -7
- package/lib/node_modules/rc-overflow/es/context.js +18 -0
- package/lib/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
- package/lib/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
- package/lib/node_modules/rc-overflow/es/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/Collection.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
- package/lib/node_modules/rc-util/es/Children/toArray.js +3 -4
- package/lib/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/lib/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useEvent.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useLayoutEffect.js +16 -2
- package/lib/node_modules/rc-util/es/raf.js +1 -1
- package/lib/node_modules/rc-util/es/ref.js +3 -4
- package/lib/node_modules/rc-util/es/warning.js +1 -1
- package/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
- package/lib/packages/amis-ui/scss/helper.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/ang.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/antd.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/cxd.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/dark.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +1280 -691
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +1280 -691
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +1280 -691
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +1280 -691
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +1280 -691
- package/package.json +10 -5
- package/scss/_components.scss +20 -9
- package/scss/_mixins.scss +0 -1
- package/scss/_properties.scss +30 -4
- package/scss/_variables.scss +20 -0
- package/scss/base/_common.scss +4 -0
- package/scss/components/_button-group.scss +1 -0
- package/scss/components/_calendar.scss +24 -14
- package/scss/components/_cards.scss +3 -10
- package/scss/components/_cascader.scss +26 -3
- package/scss/components/_city-area.scss +6 -0
- package/scss/components/_collapse-group.scss +11 -1
- package/scss/components/_collapse.scss +34 -1
- package/scss/components/_column-toggler.scss +11 -9
- package/scss/components/_condition-builder.scss +30 -4
- package/scss/components/_crud.scss +22 -12
- package/scss/components/_debug.scss +34 -1
- package/scss/components/_drawer.scss +10 -1
- package/scss/components/_dropdown.scss +13 -9
- package/scss/components/_formula.scss +139 -37
- package/scss/components/_input-box.scss +26 -1
- package/scss/components/_json-schema-editor.scss +2 -2
- package/scss/components/_json-schema.scss +30 -2
- package/scss/components/_list-menu.scss +40 -0
- package/scss/components/_list.scss +3 -10
- package/scss/components/_menu.scss +1 -0
- package/scss/components/_nav.scss +1 -0
- package/scss/components/_panel.scss +1 -1
- package/scss/components/_picker-columns.scss +2 -4
- package/scss/components/_popup.scss +8 -1
- package/scss/components/_progress.scss +1 -1
- package/scss/components/_result-box.scss +5 -0
- package/scss/components/_search-box.scss +12 -0
- package/scss/components/_steps.scss +5 -3
- package/scss/components/_table.scss +127 -129
- package/scss/components/_tabs.scss +12 -0
- package/scss/components/_timeline.scss +2 -1
- package/scss/components/form/_checks.scss +11 -1
- package/scss/components/form/_color.scss +31 -5
- package/scss/components/form/_combo.scss +27 -0
- package/scss/components/form/_date-range.scss +24 -5
- package/scss/components/form/_date.scss +13 -10
- package/scss/components/form/_editor.scss +4 -0
- package/scss/components/form/_fieldset.scss +13 -0
- package/scss/components/form/_form.scss +259 -109
- package/scss/components/form/_input-group.scss +6 -0
- package/scss/components/form/_list.scss +1 -1
- package/scss/components/form/_location.scss +39 -0
- package/scss/components/form/_matrix.scss +2 -0
- package/scss/components/form/_nested-select.scss +9 -3
- package/scss/components/form/_number.scss +8 -0
- package/scss/components/form/_picker.scss +12 -0
- package/scss/components/form/_range.scss +47 -5
- package/scss/components/form/_select.scss +39 -1
- package/scss/components/form/_selection.scss +46 -2
- package/scss/components/form/_text.scss +5 -6
- package/scss/components/form/_transfer.scss +50 -1
- package/scss/components/form/_tree.scss +34 -4
- package/scss/components/react-datetime.scss +8 -0
- package/scss/helper/sizing/_width.md +105 -94
- package/scss/helper/sizing/_width.scss +16 -0
- package/esm/_virtual/index.js +0 -8
- package/esm/_virtual/react-is.development.js +0 -8
- package/esm/_virtual/react-is.production.min.js +0 -8
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +0 -195
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +0 -31
- package/esm/node_modules/rc-util/node_modules/react-is/index.js +0 -17
- package/lib/_virtual/index.js +0 -12
- package/lib/_virtual/react-is.development.js +0 -12
- package/lib/_virtual/react-is.production.min.js +0 -12
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +0 -199
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +0 -35
- package/lib/node_modules/rc-util/node_modules/react-is/index.js +0 -19
package/esm/components/PopUp.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.3.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -63,9 +63,9 @@ var PopUp = /** @class */ (function (_super) {
|
|
|
63
63
|
React__default.createElement("span", { className: cx("PopUp-closeBox"), onClick: onHide },
|
|
64
64
|
React__default.createElement(Icon, { icon: "close", className: cx('icon', "".concat(ns, "PopUp-close")) })))) : null,
|
|
65
65
|
showConfirm && (React__default.createElement("div", { className: cx("".concat(ns, "PopUp-toolbar")) },
|
|
66
|
-
React__default.createElement(Button, { className: cx("".concat(ns, "PopUp-cancel")), level: "
|
|
66
|
+
React__default.createElement(Button, { className: cx("".concat(ns, "PopUp-cancel")), level: "link", onClick: onHide }, __('cancel')),
|
|
67
67
|
title && (React__default.createElement("span", { className: cx("".concat(ns, "PopUp-title")) }, title)),
|
|
68
|
-
React__default.createElement(Button, { className: cx("".concat(ns, "PopUp-confirm")), level: "
|
|
68
|
+
React__default.createElement(Button, { className: cx("".concat(ns, "PopUp-confirm")), level: "link", onClick: onConfirm }, __('confirm')))),
|
|
69
69
|
React__default.createElement("div", { className: cx("".concat(ns, "PopUp-content"), "justify-".concat(placement)) }, isShow ? children : null),
|
|
70
70
|
React__default.createElement("div", { className: cx("PopUp-safearea") }))));
|
|
71
71
|
})));
|
|
@@ -46,18 +46,18 @@ declare const _default: {
|
|
|
46
46
|
showLabel?: boolean | undefined;
|
|
47
47
|
stripe?: boolean | undefined;
|
|
48
48
|
gapDegree?: number | undefined;
|
|
49
|
-
gapPosition?: "left" | "right" | "
|
|
49
|
+
gapPosition?: "left" | "right" | "top" | "bottom" | undefined;
|
|
50
50
|
strokeWidth?: number | undefined;
|
|
51
51
|
progressClassName?: ClassName | undefined;
|
|
52
52
|
threshold?: ThresholdProps | ThresholdProps[] | undefined;
|
|
53
53
|
showThresholdText?: boolean | undefined;
|
|
54
54
|
} & {
|
|
55
|
-
classPrefix?: string | undefined;
|
|
56
55
|
classnames?: ClassNamesFn | undefined;
|
|
57
|
-
|
|
56
|
+
classPrefix?: string | undefined;
|
|
58
57
|
style?: {
|
|
59
58
|
[propName: string]: any;
|
|
60
59
|
} | undefined;
|
|
60
|
+
className?: string | undefined;
|
|
61
61
|
theme?: string | undefined;
|
|
62
62
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps): {
|
|
63
63
|
ref: any;
|
|
@@ -75,18 +75,18 @@ declare const _default: {
|
|
|
75
75
|
showLabel?: boolean | undefined;
|
|
76
76
|
stripe?: boolean | undefined;
|
|
77
77
|
gapDegree?: number | undefined;
|
|
78
|
-
gapPosition?: "left" | "right" | "
|
|
78
|
+
gapPosition?: "left" | "right" | "top" | "bottom" | undefined;
|
|
79
79
|
strokeWidth?: number | undefined;
|
|
80
80
|
progressClassName?: ClassName | undefined;
|
|
81
81
|
threshold?: ThresholdProps | ThresholdProps[] | undefined;
|
|
82
82
|
showThresholdText?: boolean | undefined;
|
|
83
83
|
} & {
|
|
84
|
-
classPrefix?: string | undefined;
|
|
85
84
|
classnames?: ClassNamesFn | undefined;
|
|
86
|
-
|
|
85
|
+
classPrefix?: string | undefined;
|
|
87
86
|
style?: {
|
|
88
87
|
[propName: string]: any;
|
|
89
88
|
} | undefined;
|
|
89
|
+
className?: string | undefined;
|
|
90
90
|
theme?: string | undefined;
|
|
91
91
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
92
92
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
@@ -100,18 +100,18 @@ declare const _default: {
|
|
|
100
100
|
showLabel?: boolean | undefined;
|
|
101
101
|
stripe?: boolean | undefined;
|
|
102
102
|
gapDegree?: number | undefined;
|
|
103
|
-
gapPosition?: "left" | "right" | "
|
|
103
|
+
gapPosition?: "left" | "right" | "top" | "bottom" | undefined;
|
|
104
104
|
strokeWidth?: number | undefined;
|
|
105
105
|
progressClassName?: ClassName | undefined;
|
|
106
106
|
threshold?: ThresholdProps | ThresholdProps[] | undefined;
|
|
107
107
|
showThresholdText?: boolean | undefined;
|
|
108
108
|
} & {
|
|
109
|
-
classPrefix?: string | undefined;
|
|
110
109
|
classnames?: ClassNamesFn | undefined;
|
|
111
|
-
|
|
110
|
+
classPrefix?: string | undefined;
|
|
112
111
|
style?: {
|
|
113
112
|
[propName: string]: any;
|
|
114
113
|
} | undefined;
|
|
114
|
+
className?: string | undefined;
|
|
115
115
|
theme?: string | undefined;
|
|
116
116
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps>;
|
|
117
117
|
state: Readonly<{}>;
|
|
@@ -129,18 +129,18 @@ declare const _default: {
|
|
|
129
129
|
showLabel?: boolean | undefined;
|
|
130
130
|
stripe?: boolean | undefined;
|
|
131
131
|
gapDegree?: number | undefined;
|
|
132
|
-
gapPosition?: "left" | "right" | "
|
|
132
|
+
gapPosition?: "left" | "right" | "top" | "bottom" | undefined;
|
|
133
133
|
strokeWidth?: number | undefined;
|
|
134
134
|
progressClassName?: ClassName | undefined;
|
|
135
135
|
threshold?: ThresholdProps | ThresholdProps[] | undefined;
|
|
136
136
|
showThresholdText?: boolean | undefined;
|
|
137
137
|
} & {
|
|
138
|
-
classPrefix?: string | undefined;
|
|
139
138
|
classnames?: ClassNamesFn | undefined;
|
|
140
|
-
|
|
139
|
+
classPrefix?: string | undefined;
|
|
141
140
|
style?: {
|
|
142
141
|
[propName: string]: any;
|
|
143
142
|
} | undefined;
|
|
143
|
+
className?: string | undefined;
|
|
144
144
|
theme?: string | undefined;
|
|
145
145
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
146
146
|
componentWillUnmount?(): void;
|
|
@@ -155,18 +155,18 @@ declare const _default: {
|
|
|
155
155
|
showLabel?: boolean | undefined;
|
|
156
156
|
stripe?: boolean | undefined;
|
|
157
157
|
gapDegree?: number | undefined;
|
|
158
|
-
gapPosition?: "left" | "right" | "
|
|
158
|
+
gapPosition?: "left" | "right" | "top" | "bottom" | undefined;
|
|
159
159
|
strokeWidth?: number | undefined;
|
|
160
160
|
progressClassName?: ClassName | undefined;
|
|
161
161
|
threshold?: ThresholdProps | ThresholdProps[] | undefined;
|
|
162
162
|
showThresholdText?: boolean | undefined;
|
|
163
163
|
} & {
|
|
164
|
-
classPrefix?: string | undefined;
|
|
165
164
|
classnames?: ClassNamesFn | undefined;
|
|
166
|
-
|
|
165
|
+
classPrefix?: string | undefined;
|
|
167
166
|
style?: {
|
|
168
167
|
[propName: string]: any;
|
|
169
168
|
} | undefined;
|
|
169
|
+
className?: string | undefined;
|
|
170
170
|
theme?: string | undefined;
|
|
171
171
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
172
172
|
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & {
|
|
@@ -179,18 +179,18 @@ declare const _default: {
|
|
|
179
179
|
showLabel?: boolean | undefined;
|
|
180
180
|
stripe?: boolean | undefined;
|
|
181
181
|
gapDegree?: number | undefined;
|
|
182
|
-
gapPosition?: "left" | "right" | "
|
|
182
|
+
gapPosition?: "left" | "right" | "top" | "bottom" | undefined;
|
|
183
183
|
strokeWidth?: number | undefined;
|
|
184
184
|
progressClassName?: ClassName | undefined;
|
|
185
185
|
threshold?: ThresholdProps | ThresholdProps[] | undefined;
|
|
186
186
|
showThresholdText?: boolean | undefined;
|
|
187
187
|
} & {
|
|
188
|
-
classPrefix?: string | undefined;
|
|
189
188
|
classnames?: ClassNamesFn | undefined;
|
|
190
|
-
|
|
189
|
+
classPrefix?: string | undefined;
|
|
191
190
|
style?: {
|
|
192
191
|
[propName: string]: any;
|
|
193
192
|
} | undefined;
|
|
193
|
+
className?: string | undefined;
|
|
194
194
|
theme?: string | undefined;
|
|
195
195
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
196
196
|
componentWillMount?(): void;
|
|
@@ -205,18 +205,18 @@ declare const _default: {
|
|
|
205
205
|
showLabel?: boolean | undefined;
|
|
206
206
|
stripe?: boolean | undefined;
|
|
207
207
|
gapDegree?: number | undefined;
|
|
208
|
-
gapPosition?: "left" | "right" | "
|
|
208
|
+
gapPosition?: "left" | "right" | "top" | "bottom" | undefined;
|
|
209
209
|
strokeWidth?: number | undefined;
|
|
210
210
|
progressClassName?: ClassName | undefined;
|
|
211
211
|
threshold?: ThresholdProps | ThresholdProps[] | undefined;
|
|
212
212
|
showThresholdText?: boolean | undefined;
|
|
213
213
|
} & {
|
|
214
|
-
classPrefix?: string | undefined;
|
|
215
214
|
classnames?: ClassNamesFn | undefined;
|
|
216
|
-
|
|
215
|
+
classPrefix?: string | undefined;
|
|
217
216
|
style?: {
|
|
218
217
|
[propName: string]: any;
|
|
219
218
|
} | undefined;
|
|
219
|
+
className?: string | undefined;
|
|
220
220
|
theme?: string | undefined;
|
|
221
221
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
222
222
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & {
|
|
@@ -229,18 +229,18 @@ declare const _default: {
|
|
|
229
229
|
showLabel?: boolean | undefined;
|
|
230
230
|
stripe?: boolean | undefined;
|
|
231
231
|
gapDegree?: number | undefined;
|
|
232
|
-
gapPosition?: "left" | "right" | "
|
|
232
|
+
gapPosition?: "left" | "right" | "top" | "bottom" | undefined;
|
|
233
233
|
strokeWidth?: number | undefined;
|
|
234
234
|
progressClassName?: ClassName | undefined;
|
|
235
235
|
threshold?: ThresholdProps | ThresholdProps[] | undefined;
|
|
236
236
|
showThresholdText?: boolean | undefined;
|
|
237
237
|
} & {
|
|
238
|
-
classPrefix?: string | undefined;
|
|
239
238
|
classnames?: ClassNamesFn | undefined;
|
|
240
|
-
|
|
239
|
+
classPrefix?: string | undefined;
|
|
241
240
|
style?: {
|
|
242
241
|
[propName: string]: any;
|
|
243
242
|
} | undefined;
|
|
243
|
+
className?: string | undefined;
|
|
244
244
|
theme?: string | undefined;
|
|
245
245
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
246
246
|
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & {
|
|
@@ -253,18 +253,18 @@ declare const _default: {
|
|
|
253
253
|
showLabel?: boolean | undefined;
|
|
254
254
|
stripe?: boolean | undefined;
|
|
255
255
|
gapDegree?: number | undefined;
|
|
256
|
-
gapPosition?: "left" | "right" | "
|
|
256
|
+
gapPosition?: "left" | "right" | "top" | "bottom" | undefined;
|
|
257
257
|
strokeWidth?: number | undefined;
|
|
258
258
|
progressClassName?: ClassName | undefined;
|
|
259
259
|
threshold?: ThresholdProps | ThresholdProps[] | undefined;
|
|
260
260
|
showThresholdText?: boolean | undefined;
|
|
261
261
|
} & {
|
|
262
|
-
classPrefix?: string | undefined;
|
|
263
262
|
classnames?: ClassNamesFn | undefined;
|
|
264
|
-
|
|
263
|
+
classPrefix?: string | undefined;
|
|
265
264
|
style?: {
|
|
266
265
|
[propName: string]: any;
|
|
267
266
|
} | undefined;
|
|
267
|
+
className?: string | undefined;
|
|
268
268
|
theme?: string | undefined;
|
|
269
269
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
270
270
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & {
|
|
@@ -277,18 +277,18 @@ declare const _default: {
|
|
|
277
277
|
showLabel?: boolean | undefined;
|
|
278
278
|
stripe?: boolean | undefined;
|
|
279
279
|
gapDegree?: number | undefined;
|
|
280
|
-
gapPosition?: "left" | "right" | "
|
|
280
|
+
gapPosition?: "left" | "right" | "top" | "bottom" | undefined;
|
|
281
281
|
strokeWidth?: number | undefined;
|
|
282
282
|
progressClassName?: ClassName | undefined;
|
|
283
283
|
threshold?: ThresholdProps | ThresholdProps[] | undefined;
|
|
284
284
|
showThresholdText?: boolean | undefined;
|
|
285
285
|
} & {
|
|
286
|
-
classPrefix?: string | undefined;
|
|
287
286
|
classnames?: ClassNamesFn | undefined;
|
|
288
|
-
|
|
287
|
+
classPrefix?: string | undefined;
|
|
289
288
|
style?: {
|
|
290
289
|
[propName: string]: any;
|
|
291
290
|
} | undefined;
|
|
291
|
+
className?: string | undefined;
|
|
292
292
|
theme?: string | undefined;
|
|
293
293
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
294
294
|
};
|
|
@@ -35,6 +35,7 @@ interface RadioProps extends OptionProps {
|
|
|
35
35
|
labelClassName?: string;
|
|
36
36
|
classPrefix: string;
|
|
37
37
|
classnames: ClassNamesFn;
|
|
38
|
+
renderLabel?: (item: Option, props: RadioProps) => JSX.Element;
|
|
38
39
|
}
|
|
39
40
|
export declare class Radios extends React.Component<RadioProps, any> {
|
|
40
41
|
static defaultProps: {
|
|
@@ -53,7 +54,7 @@ export declare class Radios extends React.Component<RadioProps, any> {
|
|
|
53
54
|
render(): React.JSX.Element;
|
|
54
55
|
}
|
|
55
56
|
declare const _default: {
|
|
56
|
-
new (props: Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "
|
|
57
|
+
new (props: Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "value" | "level" | "id" | "disabled" | "block" | "loading" | "onChange" | "labelClassName" | "options" | "placeholder" | "multiple" | "labelField" | "valueField" | "itemClassName" | "itemHeight" | "virtualThreshold" | "delimiter" | "onAdd" | "editable" | "onEdit" | "renderLabel" | "multi" | "simpleValue" | "extractValue" | "creatable" | "pathSeparator" | "hasError" | "removable" | "onDelete"> & {
|
|
57
58
|
type?: string | undefined;
|
|
58
59
|
inline?: boolean | undefined;
|
|
59
60
|
optionType?: string | undefined;
|
|
@@ -68,7 +69,7 @@ declare const _default: {
|
|
|
68
69
|
getWrappedInstance(): any;
|
|
69
70
|
render(): React.JSX.Element;
|
|
70
71
|
context: unknown;
|
|
71
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "
|
|
72
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "value" | "level" | "id" | "disabled" | "block" | "loading" | "onChange" | "labelClassName" | "options" | "placeholder" | "multiple" | "labelField" | "valueField" | "itemClassName" | "itemHeight" | "virtualThreshold" | "delimiter" | "onAdd" | "editable" | "onEdit" | "renderLabel" | "multi" | "simpleValue" | "extractValue" | "creatable" | "pathSeparator" | "hasError" | "removable" | "onDelete"> & {
|
|
72
73
|
type?: string | undefined;
|
|
73
74
|
inline?: boolean | undefined;
|
|
74
75
|
optionType?: string | undefined;
|
|
@@ -79,7 +80,7 @@ declare const _default: {
|
|
|
79
80
|
columnsCount?: number | number[] | undefined;
|
|
80
81
|
} & {} & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
81
82
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
82
|
-
readonly props: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "
|
|
83
|
+
readonly props: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "value" | "level" | "id" | "disabled" | "block" | "loading" | "onChange" | "labelClassName" | "options" | "placeholder" | "multiple" | "labelField" | "valueField" | "itemClassName" | "itemHeight" | "virtualThreshold" | "delimiter" | "onAdd" | "editable" | "onEdit" | "renderLabel" | "multi" | "simpleValue" | "extractValue" | "creatable" | "pathSeparator" | "hasError" | "removable" | "onDelete"> & {
|
|
83
84
|
type?: string | undefined;
|
|
84
85
|
inline?: boolean | undefined;
|
|
85
86
|
optionType?: string | undefined;
|
|
@@ -94,7 +95,7 @@ declare const _default: {
|
|
|
94
95
|
[key: string]: React.ReactInstance;
|
|
95
96
|
};
|
|
96
97
|
componentDidMount?(): void;
|
|
97
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "
|
|
98
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "value" | "level" | "id" | "disabled" | "block" | "loading" | "onChange" | "labelClassName" | "options" | "placeholder" | "multiple" | "labelField" | "valueField" | "itemClassName" | "itemHeight" | "virtualThreshold" | "delimiter" | "onAdd" | "editable" | "onEdit" | "renderLabel" | "multi" | "simpleValue" | "extractValue" | "creatable" | "pathSeparator" | "hasError" | "removable" | "onDelete"> & {
|
|
98
99
|
type?: string | undefined;
|
|
99
100
|
inline?: boolean | undefined;
|
|
100
101
|
optionType?: string | undefined;
|
|
@@ -106,7 +107,7 @@ declare const _default: {
|
|
|
106
107
|
} & {} & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
107
108
|
componentWillUnmount?(): void;
|
|
108
109
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
109
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "
|
|
110
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "value" | "level" | "id" | "disabled" | "block" | "loading" | "onChange" | "labelClassName" | "options" | "placeholder" | "multiple" | "labelField" | "valueField" | "itemClassName" | "itemHeight" | "virtualThreshold" | "delimiter" | "onAdd" | "editable" | "onEdit" | "renderLabel" | "multi" | "simpleValue" | "extractValue" | "creatable" | "pathSeparator" | "hasError" | "removable" | "onDelete"> & {
|
|
110
111
|
type?: string | undefined;
|
|
111
112
|
inline?: boolean | undefined;
|
|
112
113
|
optionType?: string | undefined;
|
|
@@ -116,7 +117,7 @@ declare const _default: {
|
|
|
116
117
|
btnActiveLevel?: string | undefined;
|
|
117
118
|
columnsCount?: number | number[] | undefined;
|
|
118
119
|
} & {} & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
119
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "
|
|
120
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "value" | "level" | "id" | "disabled" | "block" | "loading" | "onChange" | "labelClassName" | "options" | "placeholder" | "multiple" | "labelField" | "valueField" | "itemClassName" | "itemHeight" | "virtualThreshold" | "delimiter" | "onAdd" | "editable" | "onEdit" | "renderLabel" | "multi" | "simpleValue" | "extractValue" | "creatable" | "pathSeparator" | "hasError" | "removable" | "onDelete"> & {
|
|
120
121
|
type?: string | undefined;
|
|
121
122
|
inline?: boolean | undefined;
|
|
122
123
|
optionType?: string | undefined;
|
|
@@ -128,7 +129,7 @@ declare const _default: {
|
|
|
128
129
|
} & {} & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
129
130
|
componentWillMount?(): void;
|
|
130
131
|
UNSAFE_componentWillMount?(): void;
|
|
131
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "
|
|
132
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "value" | "level" | "id" | "disabled" | "block" | "loading" | "onChange" | "labelClassName" | "options" | "placeholder" | "multiple" | "labelField" | "valueField" | "itemClassName" | "itemHeight" | "virtualThreshold" | "delimiter" | "onAdd" | "editable" | "onEdit" | "renderLabel" | "multi" | "simpleValue" | "extractValue" | "creatable" | "pathSeparator" | "hasError" | "removable" | "onDelete"> & {
|
|
132
133
|
type?: string | undefined;
|
|
133
134
|
inline?: boolean | undefined;
|
|
134
135
|
optionType?: string | undefined;
|
|
@@ -138,7 +139,7 @@ declare const _default: {
|
|
|
138
139
|
btnActiveLevel?: string | undefined;
|
|
139
140
|
columnsCount?: number | number[] | undefined;
|
|
140
141
|
} & {} & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
141
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "
|
|
142
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "value" | "level" | "id" | "disabled" | "block" | "loading" | "onChange" | "labelClassName" | "options" | "placeholder" | "multiple" | "labelField" | "valueField" | "itemClassName" | "itemHeight" | "virtualThreshold" | "delimiter" | "onAdd" | "editable" | "onEdit" | "renderLabel" | "multi" | "simpleValue" | "extractValue" | "creatable" | "pathSeparator" | "hasError" | "removable" | "onDelete"> & {
|
|
142
143
|
type?: string | undefined;
|
|
143
144
|
inline?: boolean | undefined;
|
|
144
145
|
optionType?: string | undefined;
|
|
@@ -148,7 +149,7 @@ declare const _default: {
|
|
|
148
149
|
btnActiveLevel?: string | undefined;
|
|
149
150
|
columnsCount?: number | number[] | undefined;
|
|
150
151
|
} & {} & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
151
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "
|
|
152
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "value" | "level" | "id" | "disabled" | "block" | "loading" | "onChange" | "labelClassName" | "options" | "placeholder" | "multiple" | "labelField" | "valueField" | "itemClassName" | "itemHeight" | "virtualThreshold" | "delimiter" | "onAdd" | "editable" | "onEdit" | "renderLabel" | "multi" | "simpleValue" | "extractValue" | "creatable" | "pathSeparator" | "hasError" | "removable" | "onDelete"> & {
|
|
152
153
|
type?: string | undefined;
|
|
153
154
|
inline?: boolean | undefined;
|
|
154
155
|
optionType?: string | undefined;
|
|
@@ -158,7 +159,7 @@ declare const _default: {
|
|
|
158
159
|
btnActiveLevel?: string | undefined;
|
|
159
160
|
columnsCount?: number | number[] | undefined;
|
|
160
161
|
} & {} & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
161
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "
|
|
162
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("amis-core").ThemeProps>, "value" | "level" | "id" | "disabled" | "block" | "loading" | "onChange" | "labelClassName" | "options" | "placeholder" | "multiple" | "labelField" | "valueField" | "itemClassName" | "itemHeight" | "virtualThreshold" | "delimiter" | "onAdd" | "editable" | "onEdit" | "renderLabel" | "multi" | "simpleValue" | "extractValue" | "creatable" | "pathSeparator" | "hasError" | "removable" | "onDelete"> & {
|
|
162
163
|
type?: string | undefined;
|
|
163
164
|
inline?: boolean | undefined;
|
|
164
165
|
optionType?: string | undefined;
|
package/esm/components/Radios.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.3.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -25,6 +25,7 @@ import { value2array } from './Select.js';
|
|
|
25
25
|
* ]
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
|
+
var defaultLabelRender = function (item, props) { return (React__default.createElement(React__default.Fragment, null, "".concat(item[props.labelField || 'label']))); };
|
|
28
29
|
var Radios = /** @class */ (function (_super) {
|
|
29
30
|
__extends(Radios, _super);
|
|
30
31
|
function Radios() {
|
|
@@ -50,9 +51,9 @@ var Radios = /** @class */ (function (_super) {
|
|
|
50
51
|
};
|
|
51
52
|
Radios.prototype.renderGroup = function (option, index, valueArray) {
|
|
52
53
|
var _this = this;
|
|
53
|
-
var _a = this.props, cx = _a.classnames; _a.optionType; _a.classPrefix;
|
|
54
|
+
var _a = this.props, cx = _a.classnames; _a.optionType; _a.classPrefix; var _b = _a.renderLabel, renderLabel = _b === void 0 ? defaultLabelRender : _b;
|
|
54
55
|
return (React__default.createElement("div", { key: index, className: cx('RadiosControl-group', option.className) },
|
|
55
|
-
React__default.createElement("label", { className: cx('RadiosControl-groupLabel', option.labelClassName) }, option.
|
|
56
|
+
React__default.createElement("label", { className: cx('RadiosControl-groupLabel', option.labelClassName) }, renderLabel(option, this.props)),
|
|
56
57
|
option.children && option.children.length
|
|
57
58
|
? option.children.map(function (option, index) {
|
|
58
59
|
return _this.renderItem(option, index, valueArray);
|
|
@@ -64,13 +65,13 @@ var Radios = /** @class */ (function (_super) {
|
|
|
64
65
|
if (option.children) {
|
|
65
66
|
return this.renderGroup(option, index, valueArray);
|
|
66
67
|
}
|
|
67
|
-
var _a = this.props, disabled = _a.disabled, inline = _a.inline, itemClassName = _a.itemClassName, cx = _a.classnames, labelClassName = _a.labelClassName
|
|
68
|
+
var _a = this.props, disabled = _a.disabled, inline = _a.inline, itemClassName = _a.itemClassName, cx = _a.classnames, labelClassName = _a.labelClassName; _a.labelField; var optionType = _a.optionType, level = _a.level, btnActiveLevel = _a.btnActiveLevel; _a.classPrefix; var _b = _a.renderLabel, renderLabel = _b === void 0 ? defaultLabelRender : _b;
|
|
68
69
|
if (optionType === 'button') {
|
|
69
70
|
var active = !!~valueArray.indexOf(option);
|
|
70
71
|
return (React__default.createElement(Button, { key: index, active: active, onClick: function () { return _this.toggleOption(option); }, className: cx(itemClassName, option.className), disabled: disabled || option.disabled, level: (active ? btnActiveLevel : '') || level },
|
|
71
|
-
React__default.createElement("span", null,
|
|
72
|
+
React__default.createElement("span", null, renderLabel(option, this.props))));
|
|
72
73
|
}
|
|
73
|
-
return (React__default.createElement(Checkbox, { type: "radio", key: index, onChange: function () { return _this.toggleOption(option); }, checked: !!~valueArray.indexOf(option), className: cx(itemClassName, option.className), disabled: disabled || option.disabled, description: option.description, inline: inline, labelClassName: labelClassName },
|
|
74
|
+
return (React__default.createElement(Checkbox, { type: "radio", key: index, onChange: function () { return _this.toggleOption(option); }, checked: !!~valueArray.indexOf(option), className: cx(itemClassName, option.className), disabled: disabled || option.disabled, description: option.description, inline: inline, labelClassName: labelClassName }, renderLabel(option, this.props)));
|
|
74
75
|
};
|
|
75
76
|
Radios.prototype.render = function () {
|
|
76
77
|
var _this = this;
|
|
@@ -23,6 +23,7 @@ export type InputRangeRendererEvent = 'change' | 'blur' | 'focus';
|
|
|
23
23
|
export type InputRangeRendererAction = 'clear';
|
|
24
24
|
export interface RangeItemProps extends ThemeProps {
|
|
25
25
|
[propName: string]: any;
|
|
26
|
+
useMobileUI?: boolean;
|
|
26
27
|
}
|
|
27
28
|
export declare class Range extends React.Component<RangeItemProps, any> {
|
|
28
29
|
multipleValue: MultipleValue;
|
|
@@ -84,7 +85,7 @@ export declare class Range extends React.Component<RangeItemProps, any> {
|
|
|
84
85
|
* @param value 滑块值
|
|
85
86
|
* @returns
|
|
86
87
|
*/
|
|
87
|
-
getOffsetLeft(value: number | string): string;
|
|
88
|
+
getOffsetLeft(value: number | string, getNumber?: boolean): string | number;
|
|
88
89
|
/**
|
|
89
90
|
* 计算每个刻度标记mark 的最大宽度 max-width
|
|
90
91
|
* 通过给父元素div的width赋值,从而继承
|
package/esm/components/Range.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.3.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -10,7 +10,7 @@ import isString from 'lodash/isString';
|
|
|
10
10
|
import difference from 'lodash/difference';
|
|
11
11
|
import React__default from 'react';
|
|
12
12
|
import TooltipWrapper from './TooltipWrapper.js';
|
|
13
|
-
import { Overlay, autobind, camel, stripNumber, themeable, uncontrollable } from 'amis-core';
|
|
13
|
+
import { isMobile, Overlay, autobind, camel, stripNumber, safeSub, safeAdd, themeable, uncontrollable } from 'amis-core';
|
|
14
14
|
import { findDOMNode } from 'react-dom';
|
|
15
15
|
import { Icon } from './icons.js';
|
|
16
16
|
|
|
@@ -106,18 +106,40 @@ var HandleItem = /** @class */ (function (_super) {
|
|
|
106
106
|
labelActive: false
|
|
107
107
|
});
|
|
108
108
|
};
|
|
109
|
+
HandleItem.prototype.onTouchStart = function () {
|
|
110
|
+
this.setState({
|
|
111
|
+
isDrag: true,
|
|
112
|
+
labelActive: true
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
HandleItem.prototype.onTouchMove = function (e) {
|
|
116
|
+
var isDrag = this.state.isDrag;
|
|
117
|
+
var _a = this.props.type, type = _a === void 0 ? 'min' : _a;
|
|
118
|
+
if (!isDrag) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
this.props.onChange(e.touches[0].clientX, type);
|
|
122
|
+
};
|
|
123
|
+
HandleItem.prototype.onTouchEnd = function () {
|
|
124
|
+
this.setState({
|
|
125
|
+
labelActive: false
|
|
126
|
+
});
|
|
127
|
+
};
|
|
109
128
|
HandleItem.prototype.render = function () {
|
|
110
129
|
var _this = this;
|
|
111
|
-
var _a = this.props, cx = _a.classnames, disabled = _a.disabled, value = _a.value, min = _a.min, max = _a.max, tooltipVisible = _a.tooltipVisible, tipFormatter = _a.tipFormatter, unit = _a.unit, _b = _a.tooltipPlacement, tooltipPlacement = _b === void 0 ? 'auto' : _b;
|
|
130
|
+
var _a = this.props, cx = _a.classnames, disabled = _a.disabled, value = _a.value, min = _a.min, max = _a.max, tooltipVisible = _a.tooltipVisible, tipFormatter = _a.tipFormatter, unit = _a.unit, _b = _a.tooltipPlacement, tooltipPlacement = _b === void 0 ? 'auto' : _b, useMobileUI = _a.useMobileUI;
|
|
112
131
|
var _c = this.state, isDrag = _c.isDrag, labelActive = _c.labelActive;
|
|
113
132
|
var style = {
|
|
114
133
|
left: valueToOffsetLeft(value, min, max),
|
|
115
134
|
zIndex: isDrag ? 2 : 1
|
|
116
135
|
};
|
|
136
|
+
var mobileUI = useMobileUI && isMobile();
|
|
117
137
|
return disabled ? (React__default.createElement("div", { className: cx('InputRange-handle'), style: style },
|
|
118
138
|
React__default.createElement("div", { className: cx('InputRange-handle-icon') },
|
|
119
|
-
React__default.createElement(Icon, { icon: "slider-handle", className: "icon" })))) : (React__default.createElement("div", { className: cx('InputRange-handle'
|
|
120
|
-
|
|
139
|
+
React__default.createElement(Icon, { icon: "slider-handle", className: "icon" })))) : (React__default.createElement("div", { className: cx('InputRange-handle', {
|
|
140
|
+
'is-mobile': mobileUI
|
|
141
|
+
}), style: style, ref: this.handleRef },
|
|
142
|
+
React__default.createElement("div", { className: cx(isDrag ? 'InputRange-handle-drage' : 'InputRange-handle-icon'), onMouseDown: this.onMouseDown, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onTouchStart: this.onTouchStart, onTouchMove: this.onTouchMove, onTouchEnd: this.onTouchEnd },
|
|
121
143
|
React__default.createElement(Icon, { icon: "slider-handle", className: "icon" })),
|
|
122
144
|
React__default.createElement(Overlay, { placement: tooltipPlacement, target: function () { return findDOMNode(_this); }, container: function () { return findDOMNode(_this); }, rootClose: false, show: true },
|
|
123
145
|
React__default.createElement(Label, { show: labelActive, classPrefix: this.props.classPrefix, classnames: cx, value: value, tooltipVisible: tooltipVisible, tipFormatter: tipFormatter, unit: unit, placement: tooltipPlacement }))));
|
|
@@ -152,6 +174,24 @@ var HandleItem = /** @class */ (function (_super) {
|
|
|
152
174
|
__metadata("design:paramtypes", []),
|
|
153
175
|
__metadata("design:returntype", void 0)
|
|
154
176
|
], HandleItem.prototype, "onMouseLeave", null);
|
|
177
|
+
__decorate([
|
|
178
|
+
autobind,
|
|
179
|
+
__metadata("design:type", Function),
|
|
180
|
+
__metadata("design:paramtypes", []),
|
|
181
|
+
__metadata("design:returntype", void 0)
|
|
182
|
+
], HandleItem.prototype, "onTouchStart", null);
|
|
183
|
+
__decorate([
|
|
184
|
+
autobind,
|
|
185
|
+
__metadata("design:type", Function),
|
|
186
|
+
__metadata("design:paramtypes", [Object]),
|
|
187
|
+
__metadata("design:returntype", void 0)
|
|
188
|
+
], HandleItem.prototype, "onTouchMove", null);
|
|
189
|
+
__decorate([
|
|
190
|
+
autobind,
|
|
191
|
+
__metadata("design:type", Function),
|
|
192
|
+
__metadata("design:paramtypes", []),
|
|
193
|
+
__metadata("design:returntype", void 0)
|
|
194
|
+
], HandleItem.prototype, "onTouchEnd", null);
|
|
155
195
|
return HandleItem;
|
|
156
196
|
}(React__default.Component));
|
|
157
197
|
/**
|
|
@@ -259,9 +299,9 @@ var Range = /** @class */ (function (_super) {
|
|
|
259
299
|
var result = 0;
|
|
260
300
|
// 余数 >= 步长一半 -> 向上取
|
|
261
301
|
// 余数 < 步长一半 -> 向下取
|
|
262
|
-
var _value = surplus >= step / 2 ? value : value
|
|
302
|
+
var _value = surplus >= step / 2 ? value : safeSub(value, step);
|
|
263
303
|
while (result <= _value) {
|
|
264
|
-
result
|
|
304
|
+
result = safeAdd(result, step);
|
|
265
305
|
}
|
|
266
306
|
return result;
|
|
267
307
|
};
|
|
@@ -326,13 +366,15 @@ var Range = /** @class */ (function (_super) {
|
|
|
326
366
|
* @param value 滑块值
|
|
327
367
|
* @returns
|
|
328
368
|
*/
|
|
329
|
-
Range.prototype.getOffsetLeft = function (value) {
|
|
369
|
+
Range.prototype.getOffsetLeft = function (value, getNumber) {
|
|
330
370
|
var _a = this.props, max = _a.max, min = _a.min;
|
|
331
371
|
if (isString(value) && MARKS_REG.test(value)) {
|
|
332
|
-
return value;
|
|
372
|
+
return getNumber ? parseFloat(value) : value;
|
|
333
373
|
}
|
|
334
374
|
value = Math.min(Math.max(+value, min), max);
|
|
335
|
-
return
|
|
375
|
+
return getNumber
|
|
376
|
+
? ((value - min) * 100) / (max - min)
|
|
377
|
+
: ((value - min) * 100) / (max - min) + '%';
|
|
336
378
|
};
|
|
337
379
|
/**
|
|
338
380
|
* 计算每个刻度标记mark 的最大宽度 max-width
|
|
@@ -342,7 +384,8 @@ var Range = /** @class */ (function (_super) {
|
|
|
342
384
|
* @returns 刻度标记的最大宽度 string
|
|
343
385
|
*/
|
|
344
386
|
Range.prototype.getMarkMaxWidth = function (value, marks) {
|
|
345
|
-
var _a = this.props, max = _a.max, min = _a.min;
|
|
387
|
+
var _a = this.props, max = _a.max, min = _a.min, useMobileUI = _a.useMobileUI;
|
|
388
|
+
var mobileUI = useMobileUI && isMobile();
|
|
346
389
|
var curNum = isString(value) ? parseInt(value, 10) : value;
|
|
347
390
|
// 给最大宽度赋初始值 默认最大
|
|
348
391
|
var maxWidth = Math.abs(max - min);
|
|
@@ -354,11 +397,13 @@ var Range = /** @class */ (function (_super) {
|
|
|
354
397
|
}
|
|
355
398
|
});
|
|
356
399
|
// 差值的1/2 即为此刻度标记的最大宽度
|
|
357
|
-
return
|
|
400
|
+
return mobileUI
|
|
401
|
+
? Math.floor(maxWidth) + '%'
|
|
402
|
+
: Math.floor(maxWidth / 2) + '%';
|
|
358
403
|
};
|
|
359
404
|
Range.prototype.render = function () {
|
|
360
405
|
var _this = this;
|
|
361
|
-
var _a = this.props, cx = _a.classnames, marks = _a.marks, multiple = _a.multiple, value = _a.value, max = _a.max, min = _a.min, disabled = _a.disabled, tooltipVisible = _a.tooltipVisible, unit = _a.unit, tooltipPlacement = _a.tooltipPlacement, tipFormatter = _a.tipFormatter, onAfterChange = _a.onAfterChange;
|
|
406
|
+
var _a = this.props, cx = _a.classnames, marks = _a.marks, multiple = _a.multiple, value = _a.value, max = _a.max, min = _a.min, disabled = _a.disabled, tooltipVisible = _a.tooltipVisible, unit = _a.unit, tooltipPlacement = _a.tooltipPlacement, tipFormatter = _a.tipFormatter, onAfterChange = _a.onAfterChange, useMobileUI = _a.useMobileUI;
|
|
362
407
|
// trace
|
|
363
408
|
var traceActiveStyle = {
|
|
364
409
|
width: valueToOffsetLeft(multiple
|
|
@@ -374,12 +419,18 @@ var Range = /** @class */ (function (_super) {
|
|
|
374
419
|
max: value.max
|
|
375
420
|
};
|
|
376
421
|
}
|
|
422
|
+
var sortMaks = marks
|
|
423
|
+
? keys(marks).sort(function (a, b) {
|
|
424
|
+
return _this.getOffsetLeft(a, true) -
|
|
425
|
+
_this.getOffsetLeft(b, true);
|
|
426
|
+
})
|
|
427
|
+
: [];
|
|
377
428
|
return (React__default.createElement("div", { className: cx('InputRange-wrap') },
|
|
378
429
|
React__default.createElement("div", { ref: this.trackRef, className: cx('InputRange-track', 'InputRange-track--background'), onClick: this.onClickTrack },
|
|
379
430
|
React__default.createElement("div", { className: cx('InputRange-track-active'), style: traceActiveStyle }),
|
|
380
431
|
this.renderSteps(),
|
|
381
|
-
multiple ? (['min', 'max'].map(function (type) { return (React__default.createElement(HandleItem, { key: type, value: _this.multipleValue[type], type: type, min: min, max: max, classPrefix: _this.props.classPrefix, classnames: cx, disabled: disabled, tooltipVisible: tooltipVisible, tipFormatter: tipFormatter, unit: unit, tooltipPlacement: tooltipPlacement, onAfterChange: onAfterChange, onChange: _this.onGetChangeValue.bind(_this) })); })) : (React__default.createElement(HandleItem, { value: +value, min: min, max: max, classPrefix: this.props.classPrefix, classnames: cx, disabled: disabled, tooltipVisible: tooltipVisible, tipFormatter: tipFormatter, unit: unit, tooltipPlacement: tooltipPlacement, onAfterChange: onAfterChange, onChange: this.onChange.bind(this) })),
|
|
382
|
-
marks && (React__default.createElement("div", { className: cx('InputRange-marks') },
|
|
432
|
+
multiple ? (['min', 'max'].map(function (type) { return (React__default.createElement(HandleItem, { key: type, value: _this.multipleValue[type], type: type, min: min, max: max, classPrefix: _this.props.classPrefix, classnames: cx, disabled: disabled, tooltipVisible: tooltipVisible, tipFormatter: tipFormatter, unit: unit, useMobileUI: useMobileUI, tooltipPlacement: tooltipPlacement, onAfterChange: onAfterChange, onChange: _this.onGetChangeValue.bind(_this) })); })) : (React__default.createElement(HandleItem, { value: +value, min: min, max: max, classPrefix: this.props.classPrefix, classnames: cx, disabled: disabled, tooltipVisible: tooltipVisible, tipFormatter: tipFormatter, unit: unit, useMobileUI: useMobileUI, tooltipPlacement: tooltipPlacement, onAfterChange: onAfterChange, onChange: this.onChange.bind(this) })),
|
|
433
|
+
marks && (React__default.createElement("div", { className: cx('InputRange-marks') }, sortMaks.map(function (key) {
|
|
383
434
|
var _a, _b, _c;
|
|
384
435
|
var offsetLeft = _this.getOffsetLeft(key);
|
|
385
436
|
var markMaxWidth = _this.getMarkMaxWidth(key, marks);
|
|
@@ -432,7 +483,7 @@ var Range = /** @class */ (function (_super) {
|
|
|
432
483
|
__decorate([
|
|
433
484
|
autobind,
|
|
434
485
|
__metadata("design:type", Function),
|
|
435
|
-
__metadata("design:paramtypes", [Object]),
|
|
486
|
+
__metadata("design:paramtypes", [Object, Boolean]),
|
|
436
487
|
__metadata("design:returntype", void 0)
|
|
437
488
|
], Range.prototype, "getOffsetLeft", null);
|
|
438
489
|
__decorate([
|