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
|
@@ -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
|
|
|
@@ -19,6 +19,9 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
19
19
|
|
|
20
20
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
21
21
|
|
|
22
|
+
var __react_jsx__ = require('react');
|
|
23
|
+
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
|
|
24
|
+
(__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
22
25
|
var GroupedSelection = /** @class */ (function (_super) {
|
|
23
26
|
tslib.__extends(GroupedSelection, _super);
|
|
24
27
|
function GroupedSelection() {
|
|
@@ -31,12 +34,12 @@ var GroupedSelection = /** @class */ (function (_super) {
|
|
|
31
34
|
var _a = this.props, disabled = _a.disabled, cx = _a.classnames, itemRender = _a.itemRender, multiple = _a.multiple, _b = _a.labelField, labelField = _b === void 0 ? 'label' : _b;
|
|
32
35
|
if (Array.isArray(option.children)) {
|
|
33
36
|
if (!option[labelField]) {
|
|
34
|
-
return (
|
|
37
|
+
return (_J$X_(React__default["default"].Fragment, null, option.children.map(function (child, index) {
|
|
35
38
|
return _this.renderOption(child, index);
|
|
36
39
|
})));
|
|
37
40
|
}
|
|
38
|
-
return (
|
|
39
|
-
|
|
41
|
+
return (_J$X_("div", { key: index, className: cx('GroupedSelection-group', option.className) },
|
|
42
|
+
_J$X_("div", { className: cx('GroupedSelection-itemLabel') }, itemRender(option, {
|
|
40
43
|
index: index,
|
|
41
44
|
multiple: multiple,
|
|
42
45
|
checked: false,
|
|
@@ -44,7 +47,7 @@ var GroupedSelection = /** @class */ (function (_super) {
|
|
|
44
47
|
disabled: disabled || option.disabled,
|
|
45
48
|
labelField: labelField
|
|
46
49
|
})),
|
|
47
|
-
|
|
50
|
+
_J$X_("div", { className: cx('GroupedSelection-items', option.className) }, option.children.map(function (child, index) {
|
|
48
51
|
return _this.renderOption(child, index);
|
|
49
52
|
}))));
|
|
50
53
|
}
|
|
@@ -55,8 +58,8 @@ var GroupedSelection = /** @class */ (function (_super) {
|
|
|
55
58
|
if (styles === void 0) { styles = {}; }
|
|
56
59
|
var _a = this.props, disabled = _a.disabled, cx = _a.classnames, itemRender = _a.itemRender, multiple = _a.multiple, labelField = _a.labelField;
|
|
57
60
|
if (option.children) {
|
|
58
|
-
return (
|
|
59
|
-
|
|
61
|
+
return (_J$X_("div", { key: index, style: styles, className: cx('GroupedSelection-group', option.className) },
|
|
62
|
+
_J$X_("div", { className: cx('GroupedSelection-itemLabel') }, itemRender(option, {
|
|
60
63
|
index: index,
|
|
61
64
|
multiple: multiple,
|
|
62
65
|
checked: false,
|
|
@@ -65,17 +68,17 @@ var GroupedSelection = /** @class */ (function (_super) {
|
|
|
65
68
|
labelField: labelField
|
|
66
69
|
}))));
|
|
67
70
|
}
|
|
68
|
-
return hasParent ? (
|
|
69
|
-
|
|
71
|
+
return hasParent ? (_J$X_("div", { key: 'group' + index, style: styles, className: cx('GroupedSelection-group', option.className) },
|
|
72
|
+
_J$X_("div", { className: cx('GroupedSelection-items', option.className) }, this.renderPureOption(option, index)))) : (this.renderPureOption(option, index, undefined, styles));
|
|
70
73
|
};
|
|
71
74
|
GroupedSelection.prototype.renderPureOption = function (option, index, key, styles) {
|
|
72
75
|
var _this = this;
|
|
73
76
|
if (styles === void 0) { styles = {}; }
|
|
74
77
|
var _a = this.props, labelClassName = _a.labelClassName, disabled = _a.disabled, cx = _a.classnames, itemClassName = _a.itemClassName, itemRender = _a.itemRender, multiple = _a.multiple, labelField = _a.labelField;
|
|
75
78
|
var valueArray = this.valueArray;
|
|
76
|
-
return (
|
|
77
|
-
multiple ? (
|
|
78
|
-
|
|
79
|
+
return (_J$X_("div", { key: index, style: styles, className: cx('GroupedSelection-item', itemClassName, option.className, disabled || option.disabled ? 'is-disabled' : '', !!~valueArray.indexOf(option) ? 'is-active' : ''), onClick: function () { return _this.toggleOption(option); } },
|
|
80
|
+
multiple ? (_J$X_(Checkbox["default"], { size: "sm", checked: !!~valueArray.indexOf(option), disabled: disabled || option.disabled, labelClassName: labelClassName, description: option.description })) : null,
|
|
81
|
+
_J$X_("div", { className: cx('GroupedSelection-itemLabel') }, itemRender(option, {
|
|
79
82
|
index: index,
|
|
80
83
|
multiple: multiple,
|
|
81
84
|
checked: !!~valueArray.indexOf(option),
|
|
@@ -93,9 +96,9 @@ var GroupedSelection = /** @class */ (function (_super) {
|
|
|
93
96
|
var valueArray = this.valueArray;
|
|
94
97
|
var checkedAll = availableOptions.every(function (option) { return valueArray.indexOf(option) > -1; });
|
|
95
98
|
var checkedPartial = availableOptions.some(function (option) { return valueArray.indexOf(option) > -1; });
|
|
96
|
-
return (
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
return (_J$X_("div", { className: cx('GroupedSelection-item', itemClassName), onClick: this.toggleAll },
|
|
100
|
+
_J$X_(Checkbox["default"], { checked: checkedPartial, partial: checkedPartial && !checkedAll, size: "sm", labelClassName: labelClassName }),
|
|
101
|
+
_J$X_("div", { className: cx('GroupedSelection-itemLabel') }, __(checkAllLabel))));
|
|
99
102
|
};
|
|
100
103
|
GroupedSelection.prototype.render = function () {
|
|
101
104
|
var _this = this;
|
|
@@ -112,9 +115,9 @@ var GroupedSelection = /** @class */ (function (_super) {
|
|
|
112
115
|
};
|
|
113
116
|
});
|
|
114
117
|
body =
|
|
115
|
-
flattendOptions_1.length > virtualThreshold ? (
|
|
118
|
+
flattendOptions_1.length > virtualThreshold ? (_J$X_(AutoSizer["default"], { minHeight: virtualListHeight }, function (_a) {
|
|
116
119
|
var height = _a.height;
|
|
117
|
-
return (
|
|
120
|
+
return (_J$X_(index["default"], { height: height, itemCount: flattendOptions_1.length, itemSize: itemHeight, prefix: _this.renderCheckAll(), renderItem: function (_a) {
|
|
118
121
|
var index = _a.index, style = _a.style;
|
|
119
122
|
var _b = flattendOptions_1[index] || {}, option = _b.option, hasParent = _b.hasParent;
|
|
120
123
|
if (!option) {
|
|
@@ -122,11 +125,11 @@ var GroupedSelection = /** @class */ (function (_super) {
|
|
|
122
125
|
}
|
|
123
126
|
return _this.renderOptionOrLabel(option, index, hasParent, tslib.__assign(tslib.__assign({}, style), { width: '100%' }));
|
|
124
127
|
} }));
|
|
125
|
-
})) : (
|
|
128
|
+
})) : (_J$X_(React__default["default"].Fragment, null,
|
|
126
129
|
this.renderCheckAll(),
|
|
127
130
|
options.map(function (option, key) { return _this.renderOption(option, key); })));
|
|
128
131
|
}
|
|
129
|
-
return (
|
|
132
|
+
return (_J$X_("div", { className: cx('GroupedSelection', className), onClick: onClick }, body ? (body) : (_J$X_("div", { className: cx('GroupedSelection-placeholder') }, (_a = placeholderRender === null || placeholderRender === void 0 ? void 0 : placeholderRender(this.props)) !== null && _a !== void 0 ? _a : __(placeholder)))));
|
|
130
133
|
};
|
|
131
134
|
return GroupedSelection;
|
|
132
135
|
}(Selection.BaseSelection));
|
package/lib/components/Html.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,11 +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
|
-
* @author fex
|
|
22
|
-
*/
|
|
18
|
+
var __react_jsx__ = require('react');
|
|
19
|
+
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
|
|
20
|
+
(__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
23
21
|
var Html = /** @class */ (function (_super) {
|
|
24
22
|
tslib.__extends(Html, _super);
|
|
25
23
|
function Html(props) {
|
|
@@ -48,7 +46,7 @@ var Html = /** @class */ (function (_super) {
|
|
|
48
46
|
Html.prototype.render = function () {
|
|
49
47
|
var _a = this.props, className = _a.className, wrapperComponent = _a.wrapperComponent, inline = _a.inline; _a.classPrefix; var cx = _a.classnames;
|
|
50
48
|
var Component = wrapperComponent || (inline ? 'span' : 'div');
|
|
51
|
-
return (
|
|
49
|
+
return (_J$X_(Component, { ref: this.htmlRef, className: cx("Html", className) }));
|
|
52
50
|
};
|
|
53
51
|
Html.defaultProps = {
|
|
54
52
|
inline: true
|
|
@@ -85,7 +85,7 @@ export declare class ImageGallery extends React.Component<ImageGalleryProps, Ima
|
|
|
85
85
|
render(): React.JSX.Element;
|
|
86
86
|
}
|
|
87
87
|
declare const _default: {
|
|
88
|
-
new (props: Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
88
|
+
new (props: Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
89
89
|
actions?: ImageAction[] | undefined;
|
|
90
90
|
} & {} & {
|
|
91
91
|
locale?: string | undefined;
|
|
@@ -96,14 +96,14 @@ declare const _default: {
|
|
|
96
96
|
getWrappedInstance(): any;
|
|
97
97
|
render(): React.JSX.Element;
|
|
98
98
|
context: unknown;
|
|
99
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
99
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
100
100
|
actions?: ImageAction[] | undefined;
|
|
101
101
|
} & {} & {
|
|
102
102
|
locale?: string | undefined;
|
|
103
103
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
104
104
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
105
105
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
106
|
-
readonly props: Readonly<Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
106
|
+
readonly props: Readonly<Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
107
107
|
actions?: ImageAction[] | undefined;
|
|
108
108
|
} & {} & {
|
|
109
109
|
locale?: string | undefined;
|
|
@@ -114,7 +114,7 @@ declare const _default: {
|
|
|
114
114
|
[key: string]: React.ReactInstance;
|
|
115
115
|
};
|
|
116
116
|
componentDidMount?(): void;
|
|
117
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
117
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
118
118
|
actions?: ImageAction[] | undefined;
|
|
119
119
|
} & {} & {
|
|
120
120
|
locale?: string | undefined;
|
|
@@ -122,13 +122,13 @@ declare const _default: {
|
|
|
122
122
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
123
123
|
componentWillUnmount?(): void;
|
|
124
124
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
125
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
125
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
126
126
|
actions?: ImageAction[] | undefined;
|
|
127
127
|
} & {} & {
|
|
128
128
|
locale?: string | undefined;
|
|
129
129
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
130
130
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
131
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
131
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
132
132
|
actions?: ImageAction[] | undefined;
|
|
133
133
|
} & {} & {
|
|
134
134
|
locale?: string | undefined;
|
|
@@ -136,25 +136,25 @@ declare const _default: {
|
|
|
136
136
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
137
137
|
componentWillMount?(): void;
|
|
138
138
|
UNSAFE_componentWillMount?(): void;
|
|
139
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
139
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
140
140
|
actions?: ImageAction[] | undefined;
|
|
141
141
|
} & {} & {
|
|
142
142
|
locale?: string | undefined;
|
|
143
143
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
144
144
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
145
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
145
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
146
146
|
actions?: ImageAction[] | undefined;
|
|
147
147
|
} & {} & {
|
|
148
148
|
locale?: string | undefined;
|
|
149
149
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
150
150
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
151
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
151
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
152
152
|
actions?: ImageAction[] | undefined;
|
|
153
153
|
} & {} & {
|
|
154
154
|
locale?: string | undefined;
|
|
155
155
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
156
156
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
157
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
157
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
158
158
|
actions?: ImageAction[] | undefined;
|
|
159
159
|
} & {} & {
|
|
160
160
|
locale?: string | undefined;
|
|
@@ -164,7 +164,7 @@ declare const _default: {
|
|
|
164
164
|
displayName: string;
|
|
165
165
|
contextType: React.Context<string>;
|
|
166
166
|
ComposedComponent: React.ComponentType<{
|
|
167
|
-
new (props: Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
167
|
+
new (props: Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
168
168
|
actions?: ImageAction[] | undefined;
|
|
169
169
|
} & {} & {
|
|
170
170
|
locale?: string | undefined;
|
|
@@ -176,14 +176,14 @@ declare const _default: {
|
|
|
176
176
|
/** 是否显示底部图片集 */
|
|
177
177
|
render(): React.JSX.Element;
|
|
178
178
|
context: unknown;
|
|
179
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
179
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
180
180
|
actions?: ImageAction[] | undefined;
|
|
181
181
|
} & {} & {
|
|
182
182
|
locale?: string | undefined;
|
|
183
183
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
184
184
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
185
185
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
186
|
-
readonly props: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
186
|
+
readonly props: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
187
187
|
actions?: ImageAction[] | undefined;
|
|
188
188
|
} & {} & {
|
|
189
189
|
locale?: string | undefined;
|
|
@@ -194,7 +194,7 @@ declare const _default: {
|
|
|
194
194
|
[key: string]: React.ReactInstance;
|
|
195
195
|
};
|
|
196
196
|
componentDidMount?(): void;
|
|
197
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
197
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
198
198
|
actions?: ImageAction[] | undefined;
|
|
199
199
|
} & {} & {
|
|
200
200
|
locale?: string | undefined;
|
|
@@ -202,13 +202,13 @@ declare const _default: {
|
|
|
202
202
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
203
203
|
componentWillUnmount?(): void;
|
|
204
204
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
205
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
205
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
206
206
|
actions?: ImageAction[] | undefined;
|
|
207
207
|
} & {} & {
|
|
208
208
|
locale?: string | undefined;
|
|
209
209
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
210
210
|
}>, prevState: Readonly<{}>): any;
|
|
211
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
211
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
212
212
|
actions?: ImageAction[] | undefined;
|
|
213
213
|
} & {} & {
|
|
214
214
|
locale?: string | undefined;
|
|
@@ -216,25 +216,25 @@ declare const _default: {
|
|
|
216
216
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
217
217
|
componentWillMount?(): void;
|
|
218
218
|
UNSAFE_componentWillMount?(): void;
|
|
219
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
219
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
220
220
|
actions?: ImageAction[] | undefined;
|
|
221
221
|
} & {} & {
|
|
222
222
|
locale?: string | undefined;
|
|
223
223
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
224
224
|
}>, nextContext: any): void;
|
|
225
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
225
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
226
226
|
actions?: ImageAction[] | undefined;
|
|
227
227
|
} & {} & {
|
|
228
228
|
locale?: string | undefined;
|
|
229
229
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
230
230
|
}>, nextContext: any): void;
|
|
231
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
231
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
232
232
|
actions?: ImageAction[] | undefined;
|
|
233
233
|
} & {} & {
|
|
234
234
|
locale?: string | undefined;
|
|
235
235
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
236
236
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
237
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
237
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
238
238
|
actions?: ImageAction[] | undefined;
|
|
239
239
|
} & {} & {
|
|
240
240
|
locale?: string | undefined;
|
|
@@ -248,7 +248,7 @@ declare const _default: {
|
|
|
248
248
|
ComposedComponent: typeof ImageGallery;
|
|
249
249
|
}>;
|
|
250
250
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
251
|
-
new (props: Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
251
|
+
new (props: Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
252
252
|
actions?: ImageAction[] | undefined;
|
|
253
253
|
} & {} & {
|
|
254
254
|
locale?: string | undefined;
|
|
@@ -260,14 +260,14 @@ declare const _default: {
|
|
|
260
260
|
/** 是否显示底部图片集 */
|
|
261
261
|
render(): React.JSX.Element;
|
|
262
262
|
context: unknown;
|
|
263
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
263
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
264
264
|
actions?: ImageAction[] | undefined;
|
|
265
265
|
} & {} & {
|
|
266
266
|
locale?: string | undefined;
|
|
267
267
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
268
268
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
269
269
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
270
|
-
readonly props: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
270
|
+
readonly props: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
271
271
|
actions?: ImageAction[] | undefined;
|
|
272
272
|
} & {} & {
|
|
273
273
|
locale?: string | undefined;
|
|
@@ -278,7 +278,7 @@ declare const _default: {
|
|
|
278
278
|
[key: string]: React.ReactInstance;
|
|
279
279
|
};
|
|
280
280
|
componentDidMount?(): void;
|
|
281
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
281
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
282
282
|
actions?: ImageAction[] | undefined;
|
|
283
283
|
} & {} & {
|
|
284
284
|
locale?: string | undefined;
|
|
@@ -286,13 +286,13 @@ declare const _default: {
|
|
|
286
286
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
287
287
|
componentWillUnmount?(): void;
|
|
288
288
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
289
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
289
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
290
290
|
actions?: ImageAction[] | undefined;
|
|
291
291
|
} & {} & {
|
|
292
292
|
locale?: string | undefined;
|
|
293
293
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
294
294
|
}>, prevState: Readonly<{}>): any;
|
|
295
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
295
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
296
296
|
actions?: ImageAction[] | undefined;
|
|
297
297
|
} & {} & {
|
|
298
298
|
locale?: string | undefined;
|
|
@@ -300,25 +300,25 @@ declare const _default: {
|
|
|
300
300
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
301
301
|
componentWillMount?(): void;
|
|
302
302
|
UNSAFE_componentWillMount?(): void;
|
|
303
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
303
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
304
304
|
actions?: ImageAction[] | undefined;
|
|
305
305
|
} & {} & {
|
|
306
306
|
locale?: string | undefined;
|
|
307
307
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
308
308
|
}>, nextContext: any): void;
|
|
309
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
309
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
310
310
|
actions?: ImageAction[] | undefined;
|
|
311
311
|
} & {} & {
|
|
312
312
|
locale?: string | undefined;
|
|
313
313
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
314
314
|
}>, nextContext: any): void;
|
|
315
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
315
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
316
316
|
actions?: ImageAction[] | undefined;
|
|
317
317
|
} & {} & {
|
|
318
318
|
locale?: string | undefined;
|
|
319
319
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
320
320
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
321
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
321
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
322
322
|
actions?: ImageAction[] | undefined;
|
|
323
323
|
} & {} & {
|
|
324
324
|
locale?: string | undefined;
|
|
@@ -332,7 +332,7 @@ declare const _default: {
|
|
|
332
332
|
ComposedComponent: typeof ImageGallery;
|
|
333
333
|
}, {}> & {
|
|
334
334
|
ComposedComponent: {
|
|
335
|
-
new (props: Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
335
|
+
new (props: Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
336
336
|
actions?: ImageAction[] | undefined;
|
|
337
337
|
} & {} & {
|
|
338
338
|
locale?: string | undefined;
|
|
@@ -344,14 +344,14 @@ declare const _default: {
|
|
|
344
344
|
/** 是否显示底部图片集 */
|
|
345
345
|
render(): React.JSX.Element;
|
|
346
346
|
context: unknown;
|
|
347
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
347
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
348
348
|
actions?: ImageAction[] | undefined;
|
|
349
349
|
} & {} & {
|
|
350
350
|
locale?: string | undefined;
|
|
351
351
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
352
352
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
353
353
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
354
|
-
readonly props: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
354
|
+
readonly props: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
355
355
|
actions?: ImageAction[] | undefined;
|
|
356
356
|
} & {} & {
|
|
357
357
|
locale?: string | undefined;
|
|
@@ -362,7 +362,7 @@ declare const _default: {
|
|
|
362
362
|
[key: string]: React.ReactInstance;
|
|
363
363
|
};
|
|
364
364
|
componentDidMount?(): void;
|
|
365
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
365
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
366
366
|
actions?: ImageAction[] | undefined;
|
|
367
367
|
} & {} & {
|
|
368
368
|
locale?: string | undefined;
|
|
@@ -370,13 +370,13 @@ declare const _default: {
|
|
|
370
370
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
371
371
|
componentWillUnmount?(): void;
|
|
372
372
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
373
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
373
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
374
374
|
actions?: ImageAction[] | undefined;
|
|
375
375
|
} & {} & {
|
|
376
376
|
locale?: string | undefined;
|
|
377
377
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
378
378
|
}>, prevState: Readonly<{}>): any;
|
|
379
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
379
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
380
380
|
actions?: ImageAction[] | undefined;
|
|
381
381
|
} & {} & {
|
|
382
382
|
locale?: string | undefined;
|
|
@@ -384,25 +384,25 @@ declare const _default: {
|
|
|
384
384
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
385
385
|
componentWillMount?(): void;
|
|
386
386
|
UNSAFE_componentWillMount?(): void;
|
|
387
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
387
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
388
388
|
actions?: ImageAction[] | undefined;
|
|
389
389
|
} & {} & {
|
|
390
390
|
locale?: string | undefined;
|
|
391
391
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
392
392
|
}>, nextContext: any): void;
|
|
393
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
393
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
394
394
|
actions?: ImageAction[] | undefined;
|
|
395
395
|
} & {} & {
|
|
396
396
|
locale?: string | undefined;
|
|
397
397
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
398
398
|
}>, nextContext: any): void;
|
|
399
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
399
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
400
400
|
actions?: ImageAction[] | undefined;
|
|
401
401
|
} & {} & {
|
|
402
402
|
locale?: string | undefined;
|
|
403
403
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
404
404
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
405
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "
|
|
405
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ImageGalleryProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "children" | "modalContainer" | "imageGallaryClassName"> & {
|
|
406
406
|
actions?: ImageAction[] | undefined;
|
|
407
407
|
} & {} & {
|
|
408
408
|
locale?: string | 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
|
|
|
@@ -19,6 +19,9 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
19
19
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
20
20
|
var debounce__default = /*#__PURE__*/_interopDefaultLegacy(debounce);
|
|
21
21
|
|
|
22
|
+
var __react_jsx__ = require('react');
|
|
23
|
+
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
|
|
24
|
+
(__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
22
25
|
exports.ImageActionKey = void 0;
|
|
23
26
|
(function (ImageActionKey) {
|
|
24
27
|
/** 右旋转 */
|
|
@@ -151,46 +154,46 @@ var ImageGallery = /** @class */ (function (_super) {
|
|
|
151
154
|
var _this = this;
|
|
152
155
|
var _a = this.props, cx = _a.classnames, __ = _a.translate, className = _a.className;
|
|
153
156
|
var scale = this.state.scale;
|
|
154
|
-
return (
|
|
157
|
+
return (_J$X_("div", { className: cx('ImageGallery-toolbar', className) }, actions.map(function (action) { return (_J$X_("div", { className: cx('ImageGallery-toolbar-action', {
|
|
155
158
|
'is-disabled': action.disabled ||
|
|
156
159
|
(action.key === exports.ImageActionKey.ZOOM_OUT && scale - 0.5 <= 0)
|
|
157
160
|
}), key: action.key, onClick: function () { return _this.handleToolbarAction(action); } },
|
|
158
|
-
|
|
161
|
+
_J$X_("a", { className: cx('ImageGallery-toolbar-action-icon'), "data-tooltip": __(action.label), "data-position": "top" }, React__default["default"].isValidElement(action.icon) ? (React__default["default"].cloneElement(action.icon, {
|
|
159
162
|
className: cx('icon', action.iconClassName)
|
|
160
|
-
})) : (
|
|
163
|
+
})) : (_J$X_(icons.Icon, { icon: action.icon, className: cx('icon', action.iconClassName) }))))); })));
|
|
161
164
|
};
|
|
162
165
|
ImageGallery.prototype.render = function () {
|
|
163
166
|
var _this = this;
|
|
164
167
|
var _a = this.props, children = _a.children, cx = _a.classnames, modalContainer = _a.modalContainer;
|
|
165
168
|
var _b = this.state, index = _b.index, items = _b.items, rotate = _b.rotate, scale = _b.scale, showToolbar = _b.showToolbar, enlargeWithGallary = _b.enlargeWithGallary, actions = _b.actions, imageGallaryClassName = _b.imageGallaryClassName;
|
|
166
169
|
var __ = this.props.translate;
|
|
167
|
-
return (
|
|
170
|
+
return (_J$X_(React__default["default"].Fragment, null,
|
|
168
171
|
React__default["default"].cloneElement(children, {
|
|
169
172
|
onImageEnlarge: this.handleImageEnlarge
|
|
170
173
|
}),
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
~index && items[index] ? (
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
174
|
+
_J$X_(Modal["default"], { closeOnEsc: true, size: "full", onHide: this.close, show: this.state.isOpened, contentClassName: cx('ImageGallery', imageGallaryClassName), container: modalContainer },
|
|
175
|
+
_J$X_("a", { "data-tooltip": __('Dialog.close'), "data-position": "left", className: cx('ImageGallery-close'), onClick: this.close },
|
|
176
|
+
_J$X_(icons.Icon, { icon: "close", className: "icon" })),
|
|
177
|
+
~index && items[index] ? (_J$X_(React__default["default"].Fragment, null,
|
|
178
|
+
_J$X_("div", { className: cx('ImageGallery-title') }, items[index].title),
|
|
179
|
+
_J$X_("div", { className: cx('ImageGallery-main'), ref: this.galleryMainRef },
|
|
180
|
+
_J$X_("img", { src: items[index].originalSrc, style: { transform: "scale(".concat(scale, ") rotate(").concat(rotate, "deg)") } }),
|
|
178
181
|
showToolbar && Array.isArray(actions) && actions.length > 0
|
|
179
182
|
? this.renderToolbar(actions)
|
|
180
183
|
: null,
|
|
181
|
-
items.length > 1 && enlargeWithGallary !== false ? (
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
items.length > 1 && enlargeWithGallary !== false ? (
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
184
|
+
items.length > 1 && enlargeWithGallary !== false ? (_J$X_(React__default["default"].Fragment, null,
|
|
185
|
+
_J$X_("a", { className: cx('ImageGallery-prevBtn', index <= 0 ? 'is-disabled' : ''), onClick: this.prev },
|
|
186
|
+
_J$X_(icons.Icon, { icon: "prev", className: "icon" })),
|
|
187
|
+
_J$X_("a", { className: cx('ImageGallery-nextBtn', index >= items.length - 1 ? 'is-disabled' : ''), onClick: this.next },
|
|
188
|
+
_J$X_(icons.Icon, { icon: "next", className: "icon" })))) : null))) : null,
|
|
189
|
+
items.length > 1 && enlargeWithGallary !== false ? (_J$X_("div", { className: cx('ImageGallery-footer') },
|
|
190
|
+
_J$X_("a", { className: cx('ImageGallery-prevList is-disabled') },
|
|
191
|
+
_J$X_(icons.Icon, { icon: "prev", className: "icon" })),
|
|
192
|
+
_J$X_("div", { className: cx('ImageGallery-itemsWrap') },
|
|
193
|
+
_J$X_("div", { className: cx('ImageGallery-items') }, items.map(function (item, i) { return (_J$X_("div", { key: i, "data-index": i, onClick: _this.handleItemClick, className: cx('ImageGallery-item', i === index ? 'is-active' : '') },
|
|
194
|
+
_J$X_("img", { src: item.src }))); }))),
|
|
195
|
+
_J$X_("a", { className: cx('ImageGallery-nextList is-disabled') },
|
|
196
|
+
_J$X_(icons.Icon, { icon: "next", className: "icon" })))) : null)));
|
|
194
197
|
};
|
|
195
198
|
ImageGallery.defaultProps = {
|
|
196
199
|
actions: [
|