amis-ui 3.2.0 → 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.js +1 -1
- package/esm/components/BaiduMapPicker.js +1 -1
- 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 +40 -40
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.d.ts +100 -100
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedDropdownSelection.d.ts +120 -120
- package/esm/components/ChainedDropdownSelection.js +1 -1
- package/esm/components/ChainedSelection.d.ts +120 -120
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.d.ts +10 -10
- 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.d.ts +140 -140
- package/esm/components/Collapse.js +2 -2
- package/esm/components/CollapseGroup.d.ts +30 -30
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.d.ts +80 -80
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConfirmBox.d.ts +80 -80
- package/esm/components/ConfirmBox.js +1 -1
- package/esm/components/ContextMenu.d.ts +2 -2
- package/esm/components/ContextMenu.js +25 -10
- package/esm/components/DatePicker.d.ts +82 -81
- package/esm/components/DatePicker.js +5 -2
- package/esm/components/DateRangePicker.d.ts +120 -120
- package/esm/components/DateRangePicker.js +1 -1
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.d.ts +30 -30
- package/esm/components/Drawer.js +1 -1
- package/esm/components/DropDownSelection.d.ts +120 -120
- package/esm/components/DropDownSelection.js +1 -1
- package/esm/components/Editor.d.ts +120 -120
- package/esm/components/Editor.js +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 +10 -10
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +2 -2
- package/esm/components/InputTable.js +1 -1
- package/esm/components/Layout.d.ts +10 -10
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +5 -4
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.d.ts +80 -80
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.d.ts +40 -40
- package/esm/components/LocationPicker.js +4 -4
- 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 +20 -20
- package/esm/components/NumberInput.js +6 -3
- package/esm/components/Pagination.d.ts +80 -80
- package/esm/components/Pagination.js +1 -1
- 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.d.ts +120 -120
- package/esm/components/PopUp.js +1 -1
- 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.js +4 -4
- package/esm/components/Rating.d.ts +20 -20
- package/esm/components/Rating.js +2 -2
- package/esm/components/ResultBox.d.ts +80 -80
- package/esm/components/ResultBox.js +1 -1
- 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 +82 -82
- package/esm/components/SearchBox.js +4 -4
- package/esm/components/Select.d.ts +1546 -1546
- package/esm/components/Select.js +4 -2
- package/esm/components/SelectMobile.js +1 -1
- 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 +80 -80
- package/esm/components/Tabs.js +3 -3
- package/esm/components/TabsTransfer.d.ts +40 -40
- package/esm/components/TabsTransfer.js +1 -1
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.d.ts +80 -80
- package/esm/components/Tag.js +5 -10
- package/esm/components/Textarea.d.ts +40 -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 +30 -30
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.d.ts +169 -169
- package/esm/components/Transfer.js +7 -2
- package/esm/components/TransferDropDown.d.ts +160 -160
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +2 -2
- package/esm/components/Tree.d.ts +160 -160
- package/esm/components/Tree.js +35 -9
- package/esm/components/TreeSelection.d.ts +120 -120
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.d.ts +40 -40
- package/esm/components/UserSelect.js +1 -1
- package/esm/components/UserTabSelect.d.ts +40 -40
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.js +1 -1
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.js +1 -1
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.js +1 -1
- package/esm/components/calendar/MonthsView.js +1 -1
- 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/Formula.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 +2 -2
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.js +1 -1
- package/esm/components/condition-builder/Value.js +8 -3
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.js +1 -1
- package/esm/components/formula/Editor.d.ts +43 -40
- package/esm/components/formula/Editor.js +36 -9
- package/esm/components/formula/FuncList.js +8 -4
- package/esm/components/formula/Input.d.ts +272 -0
- package/esm/components/formula/Input.js +115 -0
- package/esm/components/formula/Picker.d.ts +61 -44
- package/esm/components/formula/Picker.js +86 -16
- package/esm/components/formula/VariableList.js +43 -23
- package/esm/components/formula/plugin.js +1 -1
- package/esm/components/icons.d.ts +11 -2
- package/esm/components/icons.js +64 -22
- package/esm/components/json-schema/Array.js +2 -2
- package/esm/components/json-schema/Item.js +1 -1
- package/esm/components/json-schema/Object.js +2 -2
- 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 +60 -60
- package/esm/components/menu/index.js +1 -1
- 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.d.ts +40 -40
- package/esm/components/schema-editor/index.js +1 -1
- 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.js +1 -1
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/index.d.ts +120 -120
- 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 +6 -2
- package/esm/locale/en-US.js +6 -2
- package/esm/locale/zh-CN.js +6 -2
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/esm/node_modules/rc-overflow/es/Item.js +1 -1
- package/esm/node_modules/rc-overflow/es/Overflow.js +1 -1
- package/esm/node_modules/rc-overflow/es/RawItem.js +1 -1
- package/esm/node_modules/rc-overflow/es/context.js +1 -1
- 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 +1 -1
- 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 +42 -42
- package/lib/components/Alert.js +64 -27
- package/lib/components/Alert2.d.ts +10 -10
- package/lib/components/Alert2.js +13 -17
- package/lib/components/AnchorNav.d.ts +10 -10
- 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.js +13 -15
- package/lib/components/AssociatedSelection.d.ts +40 -40
- package/lib/components/AssociatedSelection.js +11 -17
- package/lib/components/Avatar.d.ts +42 -41
- package/lib/components/Avatar.js +10 -6
- package/lib/components/Badge.js +13 -13
- package/lib/components/BaiduMapPicker.js +15 -12
- package/lib/components/BarCode.js +5 -5
- package/lib/components/Breadcrumb.js +21 -25
- package/lib/components/Button.d.ts +10 -10
- package/lib/components/Button.js +7 -8
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +36 -38
- package/lib/components/Card.d.ts +50 -50
- package/lib/components/Card.js +22 -19
- package/lib/components/Cascader.js +18 -19
- package/lib/components/ChainedDropdownSelection.d.ts +40 -40
- package/lib/components/ChainedDropdownSelection.js +7 -5
- package/lib/components/ChainedSelection.d.ts +40 -40
- package/lib/components/ChainedSelection.js +23 -20
- package/lib/components/Checkbox.d.ts +10 -10
- package/lib/components/Checkbox.js +9 -10
- package/lib/components/CityArea.js +9 -10
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +5 -2
- package/lib/components/Collapse.d.ts +50 -50
- package/lib/components/Collapse.js +12 -14
- package/lib/components/CollapseGroup.d.ts +30 -30
- package/lib/components/CollapseGroup.js +5 -7
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +15 -17
- package/lib/components/Combo.js +16 -73
- package/lib/components/ConfirmBox.d.ts +40 -40
- package/lib/components/ConfirmBox.js +24 -21
- package/lib/components/ContextMenu.d.ts +2 -2
- package/lib/components/ContextMenu.js +37 -19
- package/lib/components/DatePicker.d.ts +41 -40
- package/lib/components/DatePicker.js +26 -25
- package/lib/components/DateRangePicker.d.ts +40 -40
- package/lib/components/DateRangePicker.js +40 -42
- package/lib/components/DndContainer.js +6 -8
- package/lib/components/Drawer.js +13 -15
- package/lib/components/DropDownSelection.d.ts +40 -40
- package/lib/components/DropDownSelection.js +14 -15
- 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 +40 -40
- 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 +10 -10
- package/lib/components/InputBox.js +8 -5
- package/lib/components/InputBoxWithSuggestion.js +11 -8
- package/lib/components/InputTable.js +24 -21
- 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 +40 -40
- package/lib/components/ListMenu.js +11 -8
- package/lib/components/LocationPicker.d.ts +40 -40
- package/lib/components/LocationPicker.js +16 -13
- 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 +40 -40
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +9 -6
- package/lib/components/NumberInput.d.ts +10 -10
- package/lib/components/NumberInput.js +13 -7
- package/lib/components/Pagination.d.ts +40 -40
- package/lib/components/Pagination.js +30 -27
- package/lib/components/Picker.js +13 -14
- package/lib/components/PickerColumn.js +7 -5
- package/lib/components/PickerContainer.js +6 -3
- package/lib/components/PopOverContainer.js +7 -4
- package/lib/components/PopUp.d.ts +40 -40
- package/lib/components/PopUp.js +18 -20
- package/lib/components/Progress.d.ts +40 -40
- package/lib/components/Progress.js +14 -11
- package/lib/components/PullRefresh.js +8 -14
- package/lib/components/Radios.d.ts +11 -10
- package/lib/components/Radios.js +13 -24
- package/lib/components/Range.js +24 -26
- package/lib/components/Rating.d.ts +10 -10
- package/lib/components/Rating.js +14 -15
- package/lib/components/ResultBox.d.ts +40 -40
- package/lib/components/ResultBox.js +31 -28
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +19 -15
- package/lib/components/ResultTableList.d.ts +40 -40
- 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 +42 -42
- package/lib/components/SearchBox.js +26 -23
- package/lib/components/Select.d.ts +193 -193
- package/lib/components/Select.js +60 -61
- package/lib/components/SelectMobile.js +20 -17
- package/lib/components/Selection.d.ts +40 -40
- 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 +10 -10
- 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 +40 -40
- package/lib/components/TableSelection.js +35 -29
- package/lib/components/Tabs.d.ts +40 -40
- package/lib/components/Tabs.js +41 -43
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +17 -14
- package/lib/components/TabsTransferPicker.js +8 -5
- package/lib/components/Tag.d.ts +60 -60
- package/lib/components/Tag.js +12 -17
- package/lib/components/Textarea.d.ts +40 -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 +40 -40
- package/lib/components/Toast.js +14 -16
- package/lib/components/Tooltip.js +8 -10
- package/lib/components/TooltipWrapper.js +6 -8
- package/lib/components/Transfer.d.ts +40 -40
- package/lib/components/Transfer.js +47 -33
- package/lib/components/TransferDropDown.d.ts +40 -40
- package/lib/components/TransferDropDown.js +11 -12
- package/lib/components/TransferPicker.js +8 -5
- package/lib/components/TransferSearch.js +10 -6
- package/lib/components/Tree.d.ts +40 -40
- package/lib/components/Tree.js +86 -75
- package/lib/components/TreeSelection.d.ts +40 -40
- package/lib/components/TreeSelection.js +15 -16
- package/lib/components/UserSelect.d.ts +40 -40
- package/lib/components/UserSelect.js +84 -85
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +17 -18
- package/lib/components/WithRemoteConfig.js +5 -2
- package/lib/components/WithStore.js +5 -2
- package/lib/components/calendar/Calendar.js +7 -4
- package/lib/components/calendar/CalendarContainer.js +5 -2
- package/lib/components/calendar/DaysView.js +55 -53
- package/lib/components/calendar/MonthsView.js +18 -15
- package/lib/components/calendar/QuartersView.js +17 -14
- package/lib/components/calendar/TimeView.js +32 -29
- package/lib/components/calendar/YearsView.js +18 -15
- package/lib/components/condition-builder/Expression.js +10 -7
- package/lib/components/condition-builder/Field.js +7 -4
- package/lib/components/condition-builder/Formula.js +6 -3
- package/lib/components/condition-builder/Func.js +16 -13
- package/lib/components/condition-builder/Group.js +22 -19
- package/lib/components/condition-builder/GroupOrItem.js +14 -11
- package/lib/components/condition-builder/InputSwitch.js +10 -11
- package/lib/components/condition-builder/Item.js +19 -16
- package/lib/components/condition-builder/Value.js +18 -10
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.js +8 -5
- package/lib/components/formula/Editor.d.ts +43 -40
- package/lib/components/formula/Editor.js +54 -24
- package/lib/components/formula/FuncList.js +32 -25
- package/lib/components/formula/Input.d.ts +272 -0
- package/lib/components/formula/Input.js +128 -0
- package/lib/components/formula/Picker.d.ts +61 -44
- package/lib/components/formula/Picker.js +113 -39
- package/lib/components/formula/VariableList.js +60 -37
- package/lib/components/formula/plugin.js +1 -1
- package/lib/components/icons.d.ts +11 -2
- package/lib/components/icons.js +76 -30
- package/lib/components/json-schema/Array.js +15 -12
- package/lib/components/json-schema/Item.js +11 -12
- package/lib/components/json-schema/Object.js +18 -15
- package/lib/components/json-schema/index.js +6 -7
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.js +16 -18
- package/lib/components/menu/SubMenu.js +17 -19
- package/lib/components/menu/index.d.ts +10 -10
- package/lib/components/menu/index.js +14 -16
- package/lib/components/schema-editor/Array.js +10 -7
- package/lib/components/schema-editor/Common.js +19 -16
- package/lib/components/schema-editor/Item.js +5 -2
- package/lib/components/schema-editor/Object.js +15 -12
- 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 +40 -40
- package/lib/components/schema-editor/index.js +6 -6
- 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.js +11 -12
- package/lib/components/table/ItemActionsWrapper.js +5 -2
- package/lib/components/table/index.d.ts +80 -80
- 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 +1393 -9569
- 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 +6 -2
- package/lib/locale/en-US.js +6 -2
- package/lib/locale/zh-CN.js +6 -2
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/lib/node_modules/rc-overflow/es/Item.js +1 -1
- package/lib/node_modules/rc-overflow/es/Overflow.js +1 -1
- package/lib/node_modules/rc-overflow/es/RawItem.js +1 -1
- package/lib/node_modules/rc-overflow/es/context.js +1 -1
- 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 +1 -1
- 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 +600 -746
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +600 -746
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +600 -746
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +600 -746
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +600 -746
- package/package.json +6 -6
- package/scss/_components.scss +7 -6
- package/scss/_mixins.scss +0 -1
- package/scss/_properties.scss +6 -4
- package/scss/_variables.scss +20 -0
- package/scss/base/_common.scss +4 -0
- package/scss/components/_cards.scss +3 -10
- package/scss/components/_column-toggler.scss +4 -4
- package/scss/components/_condition-builder.scss +1 -1
- package/scss/components/_debug.scss +34 -1
- package/scss/components/_drawer.scss +10 -1
- package/scss/components/_dropdown.scss +5 -4
- package/scss/components/_formula.scss +39 -3
- package/scss/components/_input-box.scss +2 -1
- package/scss/components/_json-schema-editor.scss +2 -2
- package/scss/components/_json-schema.scss +2 -2
- package/scss/components/_list.scss +3 -10
- package/scss/components/_menu.scss +1 -0
- package/scss/components/_progress.scss +1 -1
- package/scss/components/_search-box.scss +6 -0
- package/scss/components/_steps.scss +5 -3
- package/scss/components/_table.scss +104 -129
- package/scss/components/_timeline.scss +2 -1
- package/scss/components/form/_checks.scss +3 -1
- package/scss/components/form/_date.scss +3 -0
- package/scss/components/form/_form.scss +7 -0
- package/scss/components/form/_list.scss +1 -1
- package/scss/components/form/_nested-select.scss +3 -2
- package/scss/components/form/_selection.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
|
@@ -34,7 +34,7 @@ export declare class Checkbox extends React.Component<CheckboxProps, any> {
|
|
|
34
34
|
render(): React.JSX.Element;
|
|
35
35
|
}
|
|
36
36
|
declare const _default: {
|
|
37
|
-
new (props: Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "
|
|
37
|
+
new (props: Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "label" | "name" | "value" | "children" | "description" | "onChange" | "size" | "disabled" | "inline" | "checked" | "readOnly" | "labelClassName" | "partial" | "optionType" | "useMobileUI"> & {
|
|
38
38
|
type?: "checkbox" | "radio" | undefined;
|
|
39
39
|
trueValue?: string | number | boolean | undefined;
|
|
40
40
|
falseValue?: string | number | boolean | undefined;
|
|
@@ -44,13 +44,13 @@ declare const _default: {
|
|
|
44
44
|
getWrappedInstance(): any;
|
|
45
45
|
render(): React.JSX.Element;
|
|
46
46
|
context: unknown;
|
|
47
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "
|
|
47
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "label" | "name" | "value" | "children" | "description" | "onChange" | "size" | "disabled" | "inline" | "checked" | "readOnly" | "labelClassName" | "partial" | "optionType" | "useMobileUI"> & {
|
|
48
48
|
type?: "checkbox" | "radio" | undefined;
|
|
49
49
|
trueValue?: string | number | boolean | undefined;
|
|
50
50
|
falseValue?: string | number | boolean | undefined;
|
|
51
51
|
} & {} & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
52
52
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
53
|
-
readonly props: Readonly<Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "
|
|
53
|
+
readonly props: Readonly<Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "label" | "name" | "value" | "children" | "description" | "onChange" | "size" | "disabled" | "inline" | "checked" | "readOnly" | "labelClassName" | "partial" | "optionType" | "useMobileUI"> & {
|
|
54
54
|
type?: "checkbox" | "radio" | undefined;
|
|
55
55
|
trueValue?: string | number | boolean | undefined;
|
|
56
56
|
falseValue?: string | number | boolean | undefined;
|
|
@@ -60,41 +60,41 @@ declare const _default: {
|
|
|
60
60
|
[key: string]: React.ReactInstance;
|
|
61
61
|
};
|
|
62
62
|
componentDidMount?(): void;
|
|
63
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "
|
|
63
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "label" | "name" | "value" | "children" | "description" | "onChange" | "size" | "disabled" | "inline" | "checked" | "readOnly" | "labelClassName" | "partial" | "optionType" | "useMobileUI"> & {
|
|
64
64
|
type?: "checkbox" | "radio" | undefined;
|
|
65
65
|
trueValue?: string | number | boolean | undefined;
|
|
66
66
|
falseValue?: string | number | boolean | undefined;
|
|
67
67
|
} & {} & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
68
68
|
componentWillUnmount?(): void;
|
|
69
69
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
70
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "
|
|
70
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "label" | "name" | "value" | "children" | "description" | "onChange" | "size" | "disabled" | "inline" | "checked" | "readOnly" | "labelClassName" | "partial" | "optionType" | "useMobileUI"> & {
|
|
71
71
|
type?: "checkbox" | "radio" | undefined;
|
|
72
72
|
trueValue?: string | number | boolean | undefined;
|
|
73
73
|
falseValue?: string | number | boolean | undefined;
|
|
74
74
|
} & {} & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
75
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "
|
|
75
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "label" | "name" | "value" | "children" | "description" | "onChange" | "size" | "disabled" | "inline" | "checked" | "readOnly" | "labelClassName" | "partial" | "optionType" | "useMobileUI"> & {
|
|
76
76
|
type?: "checkbox" | "radio" | undefined;
|
|
77
77
|
trueValue?: string | number | boolean | undefined;
|
|
78
78
|
falseValue?: string | number | boolean | undefined;
|
|
79
79
|
} & {} & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
80
80
|
componentWillMount?(): void;
|
|
81
81
|
UNSAFE_componentWillMount?(): void;
|
|
82
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "
|
|
82
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "label" | "name" | "value" | "children" | "description" | "onChange" | "size" | "disabled" | "inline" | "checked" | "readOnly" | "labelClassName" | "partial" | "optionType" | "useMobileUI"> & {
|
|
83
83
|
type?: "checkbox" | "radio" | undefined;
|
|
84
84
|
trueValue?: string | number | boolean | undefined;
|
|
85
85
|
falseValue?: string | number | boolean | undefined;
|
|
86
86
|
} & {} & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
87
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "
|
|
87
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "label" | "name" | "value" | "children" | "description" | "onChange" | "size" | "disabled" | "inline" | "checked" | "readOnly" | "labelClassName" | "partial" | "optionType" | "useMobileUI"> & {
|
|
88
88
|
type?: "checkbox" | "radio" | undefined;
|
|
89
89
|
trueValue?: string | number | boolean | undefined;
|
|
90
90
|
falseValue?: string | number | boolean | undefined;
|
|
91
91
|
} & {} & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
92
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "
|
|
92
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "label" | "name" | "value" | "children" | "description" | "onChange" | "size" | "disabled" | "inline" | "checked" | "readOnly" | "labelClassName" | "partial" | "optionType" | "useMobileUI"> & {
|
|
93
93
|
type?: "checkbox" | "radio" | undefined;
|
|
94
94
|
trueValue?: string | number | boolean | undefined;
|
|
95
95
|
falseValue?: string | number | boolean | undefined;
|
|
96
96
|
} & {} & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
97
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "
|
|
97
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CheckboxProps, keyof import("amis-core").ThemeProps>, "label" | "name" | "value" | "children" | "description" | "onChange" | "size" | "disabled" | "inline" | "checked" | "readOnly" | "labelClassName" | "partial" | "optionType" | "useMobileUI"> & {
|
|
98
98
|
type?: "checkbox" | "radio" | undefined;
|
|
99
99
|
trueValue?: string | number | boolean | undefined;
|
|
100
100
|
falseValue?: string | number | boolean | undefined;
|
|
@@ -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
|
|
|
@@ -15,10 +15,9 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
15
|
|
|
16
16
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
*/
|
|
18
|
+
var __react_jsx__ = require('react');
|
|
19
|
+
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
|
|
20
|
+
(__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
22
21
|
var preventEvent = function (e) { return e.stopPropagation(); };
|
|
23
22
|
var Checkbox = /** @class */ (function (_super) {
|
|
24
23
|
tslib.__extends(Checkbox, _super);
|
|
@@ -40,7 +39,7 @@ var Checkbox = /** @class */ (function (_super) {
|
|
|
40
39
|
: typeof value === 'undefined'
|
|
41
40
|
? value
|
|
42
41
|
: value == trueValue;
|
|
43
|
-
return (
|
|
42
|
+
return (_J$X_("label", { className: cx("Checkbox Checkbox--".concat(type), className, (_a = {
|
|
44
43
|
'Checkbox--full': !partial
|
|
45
44
|
},
|
|
46
45
|
// 'Checkbox--partial': partial
|
|
@@ -51,15 +50,15 @@ var Checkbox = /** @class */ (function (_super) {
|
|
|
51
50
|
_a['Checkbox--button--disabled--checked'] = optionType === 'button' && disabled && _checked,
|
|
52
51
|
_a['is-mobile'] = amisCore.isMobile(),
|
|
53
52
|
_a)), "data-role": "checkbox" },
|
|
54
|
-
|
|
53
|
+
_J$X_("input", { type: type, checked: typeof checked !== 'undefined'
|
|
55
54
|
? checked
|
|
56
55
|
: typeof value === 'undefined'
|
|
57
56
|
? value
|
|
58
57
|
: value == trueValue, onChange: this.handleCheck, onClick: preventEvent // 当点击 i 的时候,这个地方也会触发 click,很奇怪,干脆禁掉
|
|
59
58
|
, disabled: disabled, readOnly: readOnly, name: name }),
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
description ? (
|
|
59
|
+
_J$X_("i", null),
|
|
60
|
+
_J$X_("span", { className: cx(labelClassName) }, children || label),
|
|
61
|
+
description ? (_J$X_("div", { className: cx('Checkbox-desc') }, description)) : null));
|
|
63
62
|
};
|
|
64
63
|
Checkbox.defaultProps = {
|
|
65
64
|
trueValue: true,
|
|
@@ -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
|
|
|
@@ -17,10 +17,9 @@ require('lodash/pick');
|
|
|
17
17
|
var amisCore = require('amis-core');
|
|
18
18
|
var PopUp = require('./PopUp.js');
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
var __react_jsx__ = require('react');
|
|
21
|
+
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
|
|
22
|
+
(__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
24
23
|
var CityArea = React.memo(function (props) {
|
|
25
24
|
var _a;
|
|
26
25
|
var _b = props.joinValues, joinValues = _b === void 0 ? true : _b, _c = props.extractValue, extractValue = _c === void 0 ? true : _c, _d = props.delimiter, delimiter = _d === void 0 ? ',' : _d, _e = props.allowCity, allowCity = _e === void 0 ? true : _e, _f = props.allowDistrict, allowDistrict = _f === void 0 ? true : _f, _g = props.allowStreet, allowStreet = _g === void 0 ? false : _g,
|
|
@@ -183,13 +182,13 @@ var CityArea = React.memo(function (props) {
|
|
|
183
182
|
values.length && updateColumns();
|
|
184
183
|
}, [values]);
|
|
185
184
|
var result = (_a = confirmValues === null || confirmValues === void 0 ? void 0 : confirmValues.filter(function (item) { return item === null || item === void 0 ? void 0 : item.value; })) === null || _a === void 0 ? void 0 : _a.map(function (item) { return item.text; }).join(delimiter);
|
|
186
|
-
return (
|
|
187
|
-
|
|
188
|
-
allowStreet && values[0] ? (
|
|
185
|
+
return (_J$X_("div", { className: cx("CityArea"), style: style },
|
|
186
|
+
_J$X_(ResultBox["default"], { className: cx('CityArea-Input', isOpened ? 'is-active' : ''), allowInput: false, result: result, onResultChange: function () { }, onResultClick: function () { return setIsOpened(!isOpened); }, placeholder: __('Select.placeholder'), useMobileUI: useMobileUI }),
|
|
187
|
+
allowStreet && values[0] ? (_J$X_("input", { className: cx('CityArea-Input'), value: street, onChange: function (e) {
|
|
189
188
|
return setStreet(e.currentTarget.value);
|
|
190
189
|
}, placeholder: __('City.street'), disabled: disabled, readOnly: true })) : null,
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
_J$X_(PopUp["default"], { className: cx("CityArea-popup"), container: popOverContainer, isShow: isOpened, showConfirm: true, onConfirm: onConfirm, onHide: onCancel },
|
|
191
|
+
_J$X_(Picker["default"], { className: 'CityArea-picker', columns: state.columns, onChange: onChange, showToolbar: false, labelField: "text", itemHeight: 40, value: values, classnames: props.classnames, classPrefix: props.classPrefix }))));
|
|
193
192
|
});
|
|
194
193
|
var CityArea$1 = amisCore.themeable(amisCore.localeable(amisCore.uncontrollable(CityArea, {
|
|
195
194
|
value: 'onChange'
|
package/lib/components/CityDB.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
|
|
|
@@ -15,6 +15,9 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
15
|
|
|
16
16
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
17
|
|
|
18
|
+
var __react_jsx__ = require('react');
|
|
19
|
+
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
|
|
20
|
+
(__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
18
21
|
var CodeMirrorEditor = /** @class */ (function (_super) {
|
|
19
22
|
tslib.__extends(CodeMirrorEditor, _super);
|
|
20
23
|
function CodeMirrorEditor() {
|
|
@@ -110,7 +113,7 @@ var CodeMirrorEditor = /** @class */ (function (_super) {
|
|
|
110
113
|
};
|
|
111
114
|
CodeMirrorEditor.prototype.render = function () {
|
|
112
115
|
var _a = this.props, className = _a.className, style = _a.style;
|
|
113
|
-
return
|
|
116
|
+
return _J$X_("div", { className: className, style: style, ref: this.dom });
|
|
114
117
|
};
|
|
115
118
|
tslib.__decorate([
|
|
116
119
|
amisCore.autobind,
|
|
@@ -62,16 +62,16 @@ export declare class Collapse extends React.Component<CollapseProps, CollapseSta
|
|
|
62
62
|
}
|
|
63
63
|
declare const _default: {
|
|
64
64
|
new (props: Pick<Omit<CollapseProps, keyof import("amis-core").ThemeProps>, never> & {
|
|
65
|
-
|
|
65
|
+
translate?: TranslateFn<any> | undefined;
|
|
66
|
+
key?: string | undefined;
|
|
66
67
|
body?: any;
|
|
67
68
|
header?: React.ReactNode;
|
|
68
|
-
|
|
69
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
69
70
|
id?: string | undefined;
|
|
70
71
|
size?: "base" | "sm" | "lg" | "xs" | "md" | undefined;
|
|
71
72
|
disabled?: boolean | undefined;
|
|
72
73
|
mountOnEnter?: boolean | undefined;
|
|
73
74
|
unmountOnExit?: boolean | undefined;
|
|
74
|
-
key?: string | undefined;
|
|
75
75
|
wrapperComponent?: any;
|
|
76
76
|
showArrow?: boolean | undefined;
|
|
77
77
|
bodyClassName?: string | undefined;
|
|
@@ -90,10 +90,10 @@ declare const _default: {
|
|
|
90
90
|
propsUpdate?: boolean | undefined;
|
|
91
91
|
divideLine?: boolean | undefined;
|
|
92
92
|
} & {
|
|
93
|
-
classPrefix?: string | undefined;
|
|
94
93
|
classnames?: ClassNamesFn | undefined;
|
|
95
|
-
|
|
94
|
+
classPrefix?: string | undefined;
|
|
96
95
|
style?: any;
|
|
96
|
+
className?: string | undefined;
|
|
97
97
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps): {
|
|
98
98
|
ref: any;
|
|
99
99
|
childRef(ref: any): void;
|
|
@@ -101,16 +101,16 @@ declare const _default: {
|
|
|
101
101
|
render(): React.JSX.Element;
|
|
102
102
|
context: unknown;
|
|
103
103
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CollapseProps, keyof import("amis-core").ThemeProps>, never> & {
|
|
104
|
-
|
|
104
|
+
translate?: TranslateFn<any> | undefined;
|
|
105
|
+
key?: string | undefined;
|
|
105
106
|
body?: any;
|
|
106
107
|
header?: React.ReactNode;
|
|
107
|
-
|
|
108
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
108
109
|
id?: string | undefined;
|
|
109
110
|
size?: "base" | "sm" | "lg" | "xs" | "md" | undefined;
|
|
110
111
|
disabled?: boolean | undefined;
|
|
111
112
|
mountOnEnter?: boolean | undefined;
|
|
112
113
|
unmountOnExit?: boolean | undefined;
|
|
113
|
-
key?: string | undefined;
|
|
114
114
|
wrapperComponent?: any;
|
|
115
115
|
showArrow?: boolean | undefined;
|
|
116
116
|
bodyClassName?: string | undefined;
|
|
@@ -129,23 +129,23 @@ declare const _default: {
|
|
|
129
129
|
propsUpdate?: boolean | undefined;
|
|
130
130
|
divideLine?: boolean | undefined;
|
|
131
131
|
} & {
|
|
132
|
-
classPrefix?: string | undefined;
|
|
133
132
|
classnames?: ClassNamesFn | undefined;
|
|
134
|
-
|
|
133
|
+
classPrefix?: string | undefined;
|
|
135
134
|
style?: any;
|
|
135
|
+
className?: string | undefined;
|
|
136
136
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
137
137
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
138
138
|
readonly props: Readonly<Pick<Omit<CollapseProps, keyof import("amis-core").ThemeProps>, never> & {
|
|
139
|
-
|
|
139
|
+
translate?: TranslateFn<any> | undefined;
|
|
140
|
+
key?: string | undefined;
|
|
140
141
|
body?: any;
|
|
141
142
|
header?: React.ReactNode;
|
|
142
|
-
|
|
143
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
143
144
|
id?: string | undefined;
|
|
144
145
|
size?: "base" | "sm" | "lg" | "xs" | "md" | undefined;
|
|
145
146
|
disabled?: boolean | undefined;
|
|
146
147
|
mountOnEnter?: boolean | undefined;
|
|
147
148
|
unmountOnExit?: boolean | undefined;
|
|
148
|
-
key?: string | undefined;
|
|
149
149
|
wrapperComponent?: any;
|
|
150
150
|
showArrow?: boolean | undefined;
|
|
151
151
|
bodyClassName?: string | undefined;
|
|
@@ -164,10 +164,10 @@ declare const _default: {
|
|
|
164
164
|
propsUpdate?: boolean | undefined;
|
|
165
165
|
divideLine?: boolean | undefined;
|
|
166
166
|
} & {
|
|
167
|
-
classPrefix?: string | undefined;
|
|
168
167
|
classnames?: ClassNamesFn | undefined;
|
|
169
|
-
|
|
168
|
+
classPrefix?: string | undefined;
|
|
170
169
|
style?: any;
|
|
170
|
+
className?: string | undefined;
|
|
171
171
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps>;
|
|
172
172
|
state: Readonly<{}>;
|
|
173
173
|
refs: {
|
|
@@ -175,16 +175,16 @@ declare const _default: {
|
|
|
175
175
|
};
|
|
176
176
|
componentDidMount?(): void;
|
|
177
177
|
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CollapseProps, keyof import("amis-core").ThemeProps>, never> & {
|
|
178
|
-
|
|
178
|
+
translate?: TranslateFn<any> | undefined;
|
|
179
|
+
key?: string | undefined;
|
|
179
180
|
body?: any;
|
|
180
181
|
header?: React.ReactNode;
|
|
181
|
-
|
|
182
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
182
183
|
id?: string | undefined;
|
|
183
184
|
size?: "base" | "sm" | "lg" | "xs" | "md" | undefined;
|
|
184
185
|
disabled?: boolean | undefined;
|
|
185
186
|
mountOnEnter?: boolean | undefined;
|
|
186
187
|
unmountOnExit?: boolean | undefined;
|
|
187
|
-
key?: string | undefined;
|
|
188
188
|
wrapperComponent?: any;
|
|
189
189
|
showArrow?: boolean | undefined;
|
|
190
190
|
bodyClassName?: string | undefined;
|
|
@@ -203,24 +203,24 @@ declare const _default: {
|
|
|
203
203
|
propsUpdate?: boolean | undefined;
|
|
204
204
|
divideLine?: boolean | undefined;
|
|
205
205
|
} & {
|
|
206
|
-
classPrefix?: string | undefined;
|
|
207
206
|
classnames?: ClassNamesFn | undefined;
|
|
208
|
-
|
|
207
|
+
classPrefix?: string | undefined;
|
|
209
208
|
style?: any;
|
|
209
|
+
className?: string | undefined;
|
|
210
210
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
211
211
|
componentWillUnmount?(): void;
|
|
212
212
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
213
213
|
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CollapseProps, keyof import("amis-core").ThemeProps>, never> & {
|
|
214
|
-
|
|
214
|
+
translate?: TranslateFn<any> | undefined;
|
|
215
|
+
key?: string | undefined;
|
|
215
216
|
body?: any;
|
|
216
217
|
header?: React.ReactNode;
|
|
217
|
-
|
|
218
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
218
219
|
id?: string | undefined;
|
|
219
220
|
size?: "base" | "sm" | "lg" | "xs" | "md" | undefined;
|
|
220
221
|
disabled?: boolean | undefined;
|
|
221
222
|
mountOnEnter?: boolean | undefined;
|
|
222
223
|
unmountOnExit?: boolean | undefined;
|
|
223
|
-
key?: string | undefined;
|
|
224
224
|
wrapperComponent?: any;
|
|
225
225
|
showArrow?: boolean | undefined;
|
|
226
226
|
bodyClassName?: string | undefined;
|
|
@@ -239,22 +239,22 @@ declare const _default: {
|
|
|
239
239
|
propsUpdate?: boolean | undefined;
|
|
240
240
|
divideLine?: boolean | undefined;
|
|
241
241
|
} & {
|
|
242
|
-
classPrefix?: string | undefined;
|
|
243
242
|
classnames?: ClassNamesFn | undefined;
|
|
244
|
-
|
|
243
|
+
classPrefix?: string | undefined;
|
|
245
244
|
style?: any;
|
|
245
|
+
className?: string | undefined;
|
|
246
246
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
247
247
|
componentDidUpdate?(prevProps: Readonly<Pick<Omit<CollapseProps, keyof import("amis-core").ThemeProps>, never> & {
|
|
248
|
-
|
|
248
|
+
translate?: TranslateFn<any> | undefined;
|
|
249
|
+
key?: string | undefined;
|
|
249
250
|
body?: any;
|
|
250
251
|
header?: React.ReactNode;
|
|
251
|
-
|
|
252
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
252
253
|
id?: string | undefined;
|
|
253
254
|
size?: "base" | "sm" | "lg" | "xs" | "md" | undefined;
|
|
254
255
|
disabled?: boolean | undefined;
|
|
255
256
|
mountOnEnter?: boolean | undefined;
|
|
256
257
|
unmountOnExit?: boolean | undefined;
|
|
257
|
-
key?: string | undefined;
|
|
258
258
|
wrapperComponent?: any;
|
|
259
259
|
showArrow?: boolean | undefined;
|
|
260
260
|
bodyClassName?: string | undefined;
|
|
@@ -273,24 +273,24 @@ declare const _default: {
|
|
|
273
273
|
propsUpdate?: boolean | undefined;
|
|
274
274
|
divideLine?: boolean | undefined;
|
|
275
275
|
} & {
|
|
276
|
-
classPrefix?: string | undefined;
|
|
277
276
|
classnames?: ClassNamesFn | undefined;
|
|
278
|
-
|
|
277
|
+
classPrefix?: string | undefined;
|
|
279
278
|
style?: any;
|
|
279
|
+
className?: string | undefined;
|
|
280
280
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
281
281
|
componentWillMount?(): void;
|
|
282
282
|
UNSAFE_componentWillMount?(): void;
|
|
283
283
|
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CollapseProps, keyof import("amis-core").ThemeProps>, never> & {
|
|
284
|
-
|
|
284
|
+
translate?: TranslateFn<any> | undefined;
|
|
285
|
+
key?: string | undefined;
|
|
285
286
|
body?: any;
|
|
286
287
|
header?: React.ReactNode;
|
|
287
|
-
|
|
288
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
288
289
|
id?: string | undefined;
|
|
289
290
|
size?: "base" | "sm" | "lg" | "xs" | "md" | undefined;
|
|
290
291
|
disabled?: boolean | undefined;
|
|
291
292
|
mountOnEnter?: boolean | undefined;
|
|
292
293
|
unmountOnExit?: boolean | undefined;
|
|
293
|
-
key?: string | undefined;
|
|
294
294
|
wrapperComponent?: any;
|
|
295
295
|
showArrow?: boolean | undefined;
|
|
296
296
|
bodyClassName?: string | undefined;
|
|
@@ -309,22 +309,22 @@ declare const _default: {
|
|
|
309
309
|
propsUpdate?: boolean | undefined;
|
|
310
310
|
divideLine?: boolean | undefined;
|
|
311
311
|
} & {
|
|
312
|
-
classPrefix?: string | undefined;
|
|
313
312
|
classnames?: ClassNamesFn | undefined;
|
|
314
|
-
|
|
313
|
+
classPrefix?: string | undefined;
|
|
315
314
|
style?: any;
|
|
315
|
+
className?: string | undefined;
|
|
316
316
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
317
317
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CollapseProps, keyof import("amis-core").ThemeProps>, never> & {
|
|
318
|
-
|
|
318
|
+
translate?: TranslateFn<any> | undefined;
|
|
319
|
+
key?: string | undefined;
|
|
319
320
|
body?: any;
|
|
320
321
|
header?: React.ReactNode;
|
|
321
|
-
|
|
322
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
322
323
|
id?: string | undefined;
|
|
323
324
|
size?: "base" | "sm" | "lg" | "xs" | "md" | undefined;
|
|
324
325
|
disabled?: boolean | undefined;
|
|
325
326
|
mountOnEnter?: boolean | undefined;
|
|
326
327
|
unmountOnExit?: boolean | undefined;
|
|
327
|
-
key?: string | undefined;
|
|
328
328
|
wrapperComponent?: any;
|
|
329
329
|
showArrow?: boolean | undefined;
|
|
330
330
|
bodyClassName?: string | undefined;
|
|
@@ -343,22 +343,22 @@ declare const _default: {
|
|
|
343
343
|
propsUpdate?: boolean | undefined;
|
|
344
344
|
divideLine?: boolean | undefined;
|
|
345
345
|
} & {
|
|
346
|
-
classPrefix?: string | undefined;
|
|
347
346
|
classnames?: ClassNamesFn | undefined;
|
|
348
|
-
|
|
347
|
+
classPrefix?: string | undefined;
|
|
349
348
|
style?: any;
|
|
349
|
+
className?: string | undefined;
|
|
350
350
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
351
351
|
componentWillUpdate?(nextProps: Readonly<Pick<Omit<CollapseProps, keyof import("amis-core").ThemeProps>, never> & {
|
|
352
|
-
|
|
352
|
+
translate?: TranslateFn<any> | undefined;
|
|
353
|
+
key?: string | undefined;
|
|
353
354
|
body?: any;
|
|
354
355
|
header?: React.ReactNode;
|
|
355
|
-
|
|
356
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
356
357
|
id?: string | undefined;
|
|
357
358
|
size?: "base" | "sm" | "lg" | "xs" | "md" | undefined;
|
|
358
359
|
disabled?: boolean | undefined;
|
|
359
360
|
mountOnEnter?: boolean | undefined;
|
|
360
361
|
unmountOnExit?: boolean | undefined;
|
|
361
|
-
key?: string | undefined;
|
|
362
362
|
wrapperComponent?: any;
|
|
363
363
|
showArrow?: boolean | undefined;
|
|
364
364
|
bodyClassName?: string | undefined;
|
|
@@ -377,22 +377,22 @@ declare const _default: {
|
|
|
377
377
|
propsUpdate?: boolean | undefined;
|
|
378
378
|
divideLine?: boolean | undefined;
|
|
379
379
|
} & {
|
|
380
|
-
classPrefix?: string | undefined;
|
|
381
380
|
classnames?: ClassNamesFn | undefined;
|
|
382
|
-
|
|
381
|
+
classPrefix?: string | undefined;
|
|
383
382
|
style?: any;
|
|
383
|
+
className?: string | undefined;
|
|
384
384
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
385
385
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CollapseProps, keyof import("amis-core").ThemeProps>, never> & {
|
|
386
|
-
|
|
386
|
+
translate?: TranslateFn<any> | undefined;
|
|
387
|
+
key?: string | undefined;
|
|
387
388
|
body?: any;
|
|
388
389
|
header?: React.ReactNode;
|
|
389
|
-
|
|
390
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
390
391
|
id?: string | undefined;
|
|
391
392
|
size?: "base" | "sm" | "lg" | "xs" | "md" | undefined;
|
|
392
393
|
disabled?: boolean | undefined;
|
|
393
394
|
mountOnEnter?: boolean | undefined;
|
|
394
395
|
unmountOnExit?: boolean | undefined;
|
|
395
|
-
key?: string | undefined;
|
|
396
396
|
wrapperComponent?: any;
|
|
397
397
|
showArrow?: boolean | undefined;
|
|
398
398
|
bodyClassName?: string | undefined;
|
|
@@ -411,10 +411,10 @@ declare const _default: {
|
|
|
411
411
|
propsUpdate?: boolean | undefined;
|
|
412
412
|
divideLine?: boolean | undefined;
|
|
413
413
|
} & {
|
|
414
|
-
classPrefix?: string | undefined;
|
|
415
414
|
classnames?: ClassNamesFn | undefined;
|
|
416
|
-
|
|
415
|
+
classPrefix?: string | undefined;
|
|
417
416
|
style?: any;
|
|
417
|
+
className?: string | undefined;
|
|
418
418
|
} & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
419
419
|
};
|
|
420
420
|
displayName: string;
|
|
@@ -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
|
|
|
@@ -18,11 +18,9 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
18
18
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
19
19
|
var Transition__default = /*#__PURE__*/_interopDefaultLegacy(Transition);
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
* @author fex
|
|
25
|
-
*/
|
|
21
|
+
var __react_jsx__ = require('react');
|
|
22
|
+
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
|
|
23
|
+
(__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
26
24
|
var _a;
|
|
27
25
|
var collapseStyles = (_a = {},
|
|
28
26
|
_a[Transition.EXITED] = 'out',
|
|
@@ -95,23 +93,23 @@ var Collapse = /** @class */ (function (_super) {
|
|
|
95
93
|
: collapseHeader || header;
|
|
96
94
|
var mobileUI = useMobileUI && amisCore.isMobile();
|
|
97
95
|
var dom = [
|
|
98
|
-
finalHeader ? (
|
|
99
|
-
showArrow && collapsable ? (expandIcon ? (React__default["default"].cloneElement(expandIcon, tslib.__assign(tslib.__assign({}, expandIcon.props), { className: cx('Collapse-icon-tranform', (_b = expandIcon.props) === null || _b === void 0 ? void 0 : _b.className) }))) : (
|
|
100
|
-
|
|
96
|
+
finalHeader ? (_J$X_(HeadingComponent, { key: "header", onClick: this.toggleCollapsed, className: cx("Collapse-header", { 'is-mobile': mobileUI }, headingClassName) },
|
|
97
|
+
showArrow && collapsable ? (expandIcon ? (React__default["default"].cloneElement(expandIcon, tslib.__assign(tslib.__assign({}, expandIcon.props), { className: cx('Collapse-icon-tranform', (_b = expandIcon.props) === null || _b === void 0 ? void 0 : _b.className) }))) : (_J$X_("span", { className: cx('Collapse-arrow-wrap') },
|
|
98
|
+
_J$X_(icons.Icon, { icon: "right-arrow-bold", className: cx('Collapse-arrow', 'icon'), classNameProp: cx('Collapse-arrow'), iconContent: "Collapse-arrow" })))) : (''),
|
|
101
99
|
finalHeader)) : null,
|
|
102
|
-
|
|
100
|
+
_J$X_(Transition__default["default"], { key: "body", mountOnEnter: mountOnEnter, unmountOnExit: unmountOnExit, in: !this.state.collapsed, timeout: 300, onEnter: this.handleEnter, onEntering: this.handleEntering, onEntered: this.handleEntered, onExit: this.handleExit, onExiting: this.handleExiting }, function (status) {
|
|
103
101
|
if (status === Transition.ENTERING) {
|
|
104
102
|
_this.contentDom.offsetWidth;
|
|
105
103
|
}
|
|
106
|
-
return (
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
return (_J$X_("div", { className: cx('Collapse-contentWrapper', collapseStyles[status]), ref: _this.contentRef },
|
|
105
|
+
_J$X_("div", { className: cx('Collapse-body', bodyClassName) },
|
|
106
|
+
_J$X_("div", { className: cx('Collapse-content') }, body || children))));
|
|
109
107
|
})
|
|
110
108
|
];
|
|
111
109
|
if (headerPosition === 'bottom') {
|
|
112
110
|
dom.reverse();
|
|
113
111
|
}
|
|
114
|
-
return (
|
|
112
|
+
return (_J$X_(WrapperComponent, { className: cx("Collapse", (_a = {
|
|
115
113
|
'is-mobile': mobileUI,
|
|
116
114
|
'is-active': !this.state.collapsed
|
|
117
115
|
},
|