amis-ui 3.1.0 → 3.2.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/_virtual/index.js +1 -1
- package/esm/_virtual/react-is.development.js +1 -1
- package/esm/_virtual/react-is.production.min.js +1 -1
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.js +1 -1
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.d.ts +1 -1
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.js +27 -23
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.d.ts +41 -40
- package/esm/components/CalendarMobile.js +21 -5
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.d.ts +4 -3
- package/esm/components/Cascader.js +106 -105
- package/esm/components/ChainedDropdownSelection.d.ts +559 -0
- package/esm/components/ChainedDropdownSelection.js +104 -0
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.d.ts +11 -10
- package/esm/components/Checkbox.js +3 -2
- package/esm/components/CityArea.js +3 -3
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.d.ts +22 -0
- package/esm/components/Collapse.js +10 -6
- package/esm/components/CollapseGroup.d.ts +23 -1
- package/esm/components/CollapseGroup.js +19 -14
- package/esm/components/ColorPicker.d.ts +4 -0
- package/esm/components/ColorPicker.js +32 -5
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConfirmBox.d.ts +42 -41
- package/esm/components/ConfirmBox.js +11 -4
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +43 -40
- package/esm/components/DatePicker.js +5 -5
- package/esm/components/DateRangePicker.d.ts +40 -40
- package/esm/components/DateRangePicker.js +41 -20
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.js +1 -1
- package/esm/components/DropDownSelection.d.ts +555 -0
- package/esm/components/DropDownSelection.js +77 -0
- package/esm/components/Editor.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.js +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.js +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.d.ts +11 -10
- package/esm/components/InputBox.js +5 -3
- package/esm/components/InputBoxWithSuggestion.d.ts +1 -0
- package/esm/components/InputBoxWithSuggestion.js +3 -3
- package/esm/components/InputTable.js +3 -3
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.d.ts +41 -40
- package/esm/components/ListMenu.js +6 -5
- package/esm/components/LocationPicker.d.ts +44 -40
- package/esm/components/LocationPicker.js +35 -8
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +40 -40
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.d.ts +12 -15
- package/esm/components/NumberInput.js +9 -5
- package/esm/components/Pagination.d.ts +46 -41
- package/esm/components/Pagination.js +13 -4
- package/esm/components/Picker.js +3 -3
- package/esm/components/PickerColumn.d.ts +1 -1
- package/esm/components/PickerColumn.js +2 -2
- package/esm/components/PickerContainer.d.ts +1 -0
- package/esm/components/PickerContainer.js +4 -4
- package/esm/components/PopOverContainer.d.ts +3 -0
- package/esm/components/PopOverContainer.js +14 -3
- package/esm/components/PopUp.js +3 -3
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.d.ts +10 -10
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.d.ts +2 -1
- package/esm/components/Range.js +65 -14
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.d.ts +83 -41
- package/esm/components/ResultBox.js +6 -5
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.d.ts +40 -40
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.d.ts +41 -40
- package/esm/components/SearchBox.js +5 -4
- package/esm/components/Select.d.ts +580 -580
- package/esm/components/Select.js +13 -8
- package/esm/components/SelectMobile.d.ts +37 -0
- package/esm/components/SelectMobile.js +362 -0
- package/esm/components/Selection.js +1 -1
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.js +1 -1
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.js +1 -1
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.d.ts +52 -40
- package/esm/components/Tabs.js +87 -12
- package/esm/components/TabsTransfer.d.ts +41 -40
- package/esm/components/TabsTransfer.js +7 -6
- package/esm/components/TabsTransferPicker.d.ts +2 -0
- package/esm/components/TabsTransferPicker.js +8 -8
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.d.ts +41 -40
- package/esm/components/Textarea.js +1 -1
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +1 -1
- package/esm/components/Tinymce.js +1 -1
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.d.ts +1 -1
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.d.ts +94 -92
- package/esm/components/Transfer.js +20 -15
- package/esm/components/TransferDropDown.d.ts +84 -80
- package/esm/components/TransferDropDown.js +52 -18
- package/esm/components/TransferPicker.d.ts +2 -0
- package/esm/components/TransferPicker.js +8 -8
- package/esm/components/TransferSearch.js +2 -2
- package/esm/components/Tree.d.ts +41 -40
- package/esm/components/Tree.js +25 -16
- package/esm/components/TreeSelection.js +3 -3
- package/esm/components/UserSelect.d.ts +40 -40
- package/esm/components/UserSelect.js +17 -9
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.js +7 -7
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.d.ts +2 -0
- package/esm/components/calendar/Calendar.js +8 -4
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.d.ts +3 -0
- package/esm/components/calendar/DaysView.js +17 -5
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.d.ts +11 -0
- package/esm/components/calendar/QuartersView.js +47 -5
- package/esm/components/calendar/TimeView.js +4 -2
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.d.ts +1 -1
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.d.ts +3 -7
- package/esm/components/condition-builder/Field.js +14 -72
- package/esm/components/condition-builder/Formula.js +2 -2
- package/esm/components/condition-builder/Func.js +2 -2
- package/esm/components/condition-builder/Group.d.ts +10 -1
- package/esm/components/condition-builder/Group.js +9 -5
- package/esm/components/condition-builder/GroupOrItem.d.ts +10 -1
- package/esm/components/condition-builder/GroupOrItem.js +9 -6
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.d.ts +1 -1
- package/esm/components/condition-builder/Item.js +5 -6
- package/esm/components/condition-builder/Value.js +7 -7
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.d.ts +10 -1
- package/esm/components/condition-builder/index.js +8 -4
- package/esm/components/formula/Editor.d.ts +54 -40
- package/esm/components/formula/Editor.js +94 -21
- package/esm/components/formula/FuncList.js +19 -9
- package/esm/components/formula/Picker.d.ts +43 -41
- package/esm/components/formula/Picker.js +39 -17
- package/esm/components/formula/VariableList.d.ts +1 -0
- package/esm/components/formula/VariableList.js +107 -23
- package/esm/components/formula/plugin.d.ts +4 -2
- package/esm/components/formula/plugin.js +49 -25
- package/esm/components/icons.js +1 -1
- package/esm/components/json-schema/Array.js +5 -3
- package/esm/components/json-schema/Item.js +4 -4
- package/esm/components/json-schema/Object.js +8 -4
- package/esm/components/json-schema/index.d.ts +1 -0
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.js +3 -2
- package/esm/components/menu/SubMenu.js +3 -3
- package/esm/components/menu/index.d.ts +15 -10
- package/esm/components/menu/index.js +34 -14
- package/esm/components/schema-editor/Array.js +3 -3
- package/esm/components/schema-editor/Common.d.ts +1 -0
- package/esm/components/schema-editor/Common.js +7 -7
- package/esm/components/schema-editor/Item.d.ts +1 -0
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.js +5 -5
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.d.ts +41 -40
- package/esm/components/schema-editor/index.js +3 -3
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.js +1 -1
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.d.ts +5 -2
- package/esm/components/table/HeadCellSort.js +11 -11
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/index.d.ts +1 -1
- 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 +1 -1
- 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 +3 -1
- package/esm/locale/en-US.js +3 -1
- package/esm/locale/zh-CN.js +4 -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 +4 -3
- package/esm/node_modules/rc-overflow/es/RawItem.js +2 -2
- package/esm/node_modules/rc-overflow/es/context.js +10 -0
- package/esm/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
- package/esm/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
- package/esm/node_modules/rc-overflow/es/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/Collection.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
- package/esm/node_modules/rc-util/es/Children/toArray.js +1 -1
- package/esm/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/esm/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useEvent.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useLayoutEffect.js +16 -2
- package/esm/node_modules/rc-util/es/raf.js +1 -1
- package/esm/node_modules/rc-util/es/ref.js +1 -1
- package/esm/node_modules/rc-util/es/warning.js +1 -1
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/esm/node_modules/rc-util/node_modules/react-is/index.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/_virtual/index.js +1 -1
- package/lib/_virtual/react-is.development.js +1 -1
- package/lib/_virtual/react-is.production.min.js +1 -1
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.d.ts +120 -120
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.d.ts +20 -20
- package/lib/components/Alert2.js +1 -1
- package/lib/components/AnchorNav.d.ts +20 -20
- package/lib/components/AnchorNav.js +1 -1
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.d.ts +10 -10
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +120 -120
- package/lib/components/AssociatedSelection.js +1 -1
- package/lib/components/Avatar.d.ts +110 -110
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.d.ts +1 -1
- package/lib/components/Badge.js +1 -1
- package/lib/components/BaiduMapPicker.js +27 -23
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.d.ts +30 -30
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.d.ts +41 -40
- package/lib/components/CalendarMobile.js +21 -5
- package/lib/components/Card.d.ts +100 -100
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.d.ts +4 -3
- package/lib/components/Cascader.js +105 -104
- package/lib/components/ChainedDropdownSelection.d.ts +559 -0
- package/lib/components/ChainedDropdownSelection.js +114 -0
- package/lib/components/ChainedSelection.d.ts +120 -120
- package/lib/components/ChainedSelection.js +1 -1
- package/lib/components/Checkbox.d.ts +11 -10
- package/lib/components/Checkbox.js +2 -1
- package/lib/components/CityArea.js +3 -3
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.d.ts +152 -130
- package/lib/components/Collapse.js +9 -5
- package/lib/components/CollapseGroup.d.ts +53 -31
- package/lib/components/CollapseGroup.js +18 -13
- package/lib/components/ColorPicker.d.ts +84 -80
- package/lib/components/ColorPicker.js +32 -5
- package/lib/components/Combo.js +1 -1
- package/lib/components/ConfirmBox.d.ts +82 -81
- package/lib/components/ConfirmBox.js +10 -3
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +124 -121
- package/lib/components/DatePicker.js +5 -5
- package/lib/components/DateRangePicker.d.ts +280 -280
- package/lib/components/DateRangePicker.js +40 -19
- package/lib/components/DndContainer.js +1 -1
- package/lib/components/Drawer.d.ts +30 -30
- package/lib/components/Drawer.js +1 -1
- package/lib/components/DropDownSelection.d.ts +555 -0
- package/lib/components/DropDownSelection.js +85 -0
- package/lib/components/Editor.d.ts +120 -120
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.js +1 -1
- package/lib/components/GaodeMapPicker.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.d.ts +120 -120
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.d.ts +40 -40
- package/lib/components/ImageGallery.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +21 -20
- package/lib/components/InputBox.js +4 -2
- package/lib/components/InputBoxWithSuggestion.d.ts +1 -0
- package/lib/components/InputBoxWithSuggestion.js +3 -3
- package/lib/components/InputTable.js +3 -3
- package/lib/components/Layout.d.ts +10 -10
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +81 -80
- package/lib/components/ListMenu.js +5 -4
- package/lib/components/LocationPicker.d.ts +84 -80
- package/lib/components/LocationPicker.js +34 -7
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Modal.d.ts +80 -80
- package/lib/components/Modal.js +1 -1
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +200 -200
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +28 -31
- package/lib/components/NumberInput.js +8 -4
- package/lib/components/Pagination.d.ts +86 -81
- package/lib/components/Pagination.js +12 -3
- package/lib/components/Picker.js +3 -3
- package/lib/components/PickerColumn.d.ts +1 -1
- package/lib/components/PickerColumn.js +2 -2
- package/lib/components/PickerContainer.d.ts +1 -0
- package/lib/components/PickerContainer.js +4 -4
- package/lib/components/PopOverContainer.d.ts +3 -0
- package/lib/components/PopOverContainer.js +14 -3
- package/lib/components/PopUp.d.ts +80 -80
- package/lib/components/PopUp.js +3 -3
- package/lib/components/Progress.d.ts +60 -60
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.d.ts +30 -30
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.d.ts +2 -1
- package/lib/components/Range.js +64 -13
- package/lib/components/Rating.d.ts +30 -30
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +123 -81
- package/lib/components/ResultBox.js +6 -5
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.d.ts +120 -120
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +1 -1
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.d.ts +81 -80
- package/lib/components/SearchBox.js +4 -3
- package/lib/components/Select.d.ts +1738 -1738
- package/lib/components/Select.js +12 -7
- package/lib/components/SelectMobile.d.ts +37 -0
- package/lib/components/SelectMobile.js +371 -0
- package/lib/components/Selection.d.ts +120 -120
- package/lib/components/Selection.js +1 -1
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.d.ts +70 -70
- package/lib/components/Spinner.js +1 -1
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +10 -10
- package/lib/components/Switch.js +1 -1
- package/lib/components/TableSelection.d.ts +120 -120
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +92 -80
- package/lib/components/Tabs.js +86 -11
- package/lib/components/TabsTransfer.d.ts +41 -40
- package/lib/components/TabsTransfer.js +6 -5
- package/lib/components/TabsTransferPicker.d.ts +2 -0
- package/lib/components/TabsTransferPicker.js +7 -7
- package/lib/components/Tag.d.ts +70 -70
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +41 -40
- package/lib/components/Textarea.js +1 -1
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +1 -1
- package/lib/components/Tinymce.js +1 -1
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.d.ts +80 -80
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.d.ts +31 -31
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +134 -132
- package/lib/components/Transfer.js +19 -14
- package/lib/components/TransferDropDown.d.ts +124 -120
- package/lib/components/TransferDropDown.js +52 -18
- package/lib/components/TransferPicker.d.ts +2 -0
- package/lib/components/TransferPicker.js +7 -7
- package/lib/components/TransferSearch.js +2 -2
- package/lib/components/Tree.d.ts +161 -160
- package/lib/components/Tree.js +24 -15
- package/lib/components/TreeSelection.d.ts +120 -120
- package/lib/components/TreeSelection.js +3 -3
- package/lib/components/UserSelect.d.ts +80 -80
- package/lib/components/UserSelect.js +16 -8
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/WithRemoteConfig.d.ts +1 -0
- package/lib/components/WithRemoteConfig.js +7 -7
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.d.ts +2 -0
- package/lib/components/calendar/Calendar.js +7 -3
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.d.ts +3 -0
- package/lib/components/calendar/DaysView.js +17 -5
- package/lib/components/calendar/MonthsView.js +1 -1
- package/lib/components/calendar/QuartersView.d.ts +11 -0
- package/lib/components/calendar/QuartersView.js +45 -3
- package/lib/components/calendar/TimeView.js +4 -2
- package/lib/components/calendar/YearsView.js +1 -1
- package/lib/components/condition-builder/Expression.d.ts +1 -1
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.d.ts +3 -7
- package/lib/components/condition-builder/Field.js +13 -71
- package/lib/components/condition-builder/Formula.js +2 -2
- package/lib/components/condition-builder/Func.js +2 -2
- package/lib/components/condition-builder/Group.d.ts +10 -1
- package/lib/components/condition-builder/Group.js +9 -5
- package/lib/components/condition-builder/GroupOrItem.d.ts +10 -1
- package/lib/components/condition-builder/GroupOrItem.js +8 -5
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.d.ts +1 -1
- package/lib/components/condition-builder/Item.js +4 -5
- package/lib/components/condition-builder/Value.js +7 -7
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.d.ts +10 -1
- package/lib/components/condition-builder/index.js +8 -4
- package/lib/components/formula/Editor.d.ts +54 -40
- package/lib/components/formula/Editor.js +92 -19
- package/lib/components/formula/FuncList.js +19 -9
- package/lib/components/formula/Picker.d.ts +44 -42
- package/lib/components/formula/Picker.js +38 -16
- package/lib/components/formula/VariableList.d.ts +1 -0
- package/lib/components/formula/VariableList.js +104 -20
- package/lib/components/formula/plugin.d.ts +4 -2
- package/lib/components/formula/plugin.js +48 -24
- package/lib/components/icons.js +1 -1
- package/lib/components/json-schema/Array.js +4 -2
- package/lib/components/json-schema/Item.js +4 -4
- package/lib/components/json-schema/Object.js +7 -3
- package/lib/components/json-schema/index.d.ts +1 -0
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.js +3 -2
- package/lib/components/menu/SubMenu.js +3 -3
- package/lib/components/menu/index.d.ts +85 -80
- package/lib/components/menu/index.js +34 -14
- package/lib/components/schema-editor/Array.js +3 -3
- package/lib/components/schema-editor/Common.d.ts +1 -0
- package/lib/components/schema-editor/Common.js +7 -7
- package/lib/components/schema-editor/Item.d.ts +1 -0
- package/lib/components/schema-editor/Item.js +1 -1
- package/lib/components/schema-editor/Object.js +5 -5
- package/lib/components/schema-editor/SchemaVariableList.js +1 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/lib/components/schema-editor/index.d.ts +41 -40
- package/lib/components/schema-editor/index.js +3 -3
- package/lib/components/table/Cell.d.ts +40 -40
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.d.ts +40 -40
- package/lib/components/table/HeadCellFilter.js +1 -1
- package/lib/components/table/HeadCellSelect.d.ts +40 -40
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.d.ts +5 -2
- package/lib/components/table/HeadCellSort.js +11 -11
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/index.d.ts +81 -81
- package/lib/components/table/index.js +1 -1
- package/lib/components/virtual-list/AutoSizer.js +1 -1
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/helper.css +9569 -1234
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-sub-form.js +1 -1
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +1 -1
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +1 -1
- package/lib/icons/alert-warning.svg.js +1 -1
- package/lib/icons/back.svg.js +1 -1
- package/lib/icons/calendar.svg.js +1 -1
- package/lib/icons/caret.svg.js +1 -1
- package/lib/icons/check.svg.js +1 -1
- package/lib/icons/clock.svg.js +1 -1
- package/lib/icons/close-small.svg.js +1 -1
- package/lib/icons/close.svg.js +1 -1
- package/lib/icons/cloud-upload.svg.js +1 -1
- package/lib/icons/column-filter.svg.js +1 -1
- package/lib/icons/columns.svg.js +1 -1
- package/lib/icons/compress-alt.svg.js +1 -1
- package/lib/icons/copy.svg.js +1 -1
- package/lib/icons/date.svg.js +1 -1
- package/lib/icons/department.svg.js +1 -1
- package/lib/icons/desk-empty.svg.js +1 -1
- package/lib/icons/dot.svg.js +1 -1
- package/lib/icons/down-arrow-bold.svg.js +1 -1
- package/lib/icons/down.svg.js +1 -1
- package/lib/icons/download.svg.js +1 -1
- package/lib/icons/drag-bar.svg.js +1 -1
- package/lib/icons/drag.svg.js +1 -1
- package/lib/icons/edit.svg.js +1 -1
- package/lib/icons/ellipsis-v.svg.js +1 -1
- package/lib/icons/enter.svg.js +1 -1
- package/lib/icons/exchange.svg.js +1 -1
- package/lib/icons/expand-alt.svg.js +1 -1
- package/lib/icons/fail.svg.js +1 -1
- package/lib/icons/file.svg.js +1 -1
- package/lib/icons/filter.svg.js +1 -1
- package/lib/icons/folder.svg.js +1 -1
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/image.svg.js +1 -1
- package/lib/icons/info-circle.svg.js +1 -1
- package/lib/icons/info.svg.js +1 -1
- package/lib/icons/input-clear.svg.js +1 -1
- package/lib/icons/invisible.svg.js +1 -1
- package/lib/icons/left-arrow.svg.js +1 -1
- package/lib/icons/loading-outline.svg.js +1 -1
- package/lib/icons/location.svg.js +1 -1
- package/lib/icons/menu.svg.js +1 -1
- package/lib/icons/minus.svg.js +1 -1
- package/lib/icons/move.svg.js +1 -1
- package/lib/icons/mute.svg.js +1 -1
- package/lib/icons/new-edit.svg.js +1 -1
- package/lib/icons/pause.svg.js +1 -1
- package/lib/icons/pencil.svg.js +1 -1
- package/lib/icons/play.svg.js +1 -1
- package/lib/icons/plus-cicle.svg.js +1 -1
- package/lib/icons/plus-fine.svg.js +1 -1
- package/lib/icons/plus.svg.js +1 -1
- package/lib/icons/post.svg.js +1 -1
- package/lib/icons/question-mark.svg.js +1 -1
- package/lib/icons/question.svg.js +1 -1
- package/lib/icons/redo.svg.js +1 -1
- package/lib/icons/refresh.svg.js +1 -1
- package/lib/icons/reload.svg.js +1 -1
- package/lib/icons/remove.svg.js +1 -1
- package/lib/icons/retry.svg.js +1 -1
- package/lib/icons/right-arrow-bold.svg.js +1 -1
- package/lib/icons/right-arrow.svg.js +1 -1
- package/lib/icons/right-double-arrow.svg.js +1 -1
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +1 -1
- package/lib/icons/rotate-right.svg.js +1 -1
- package/lib/icons/scale-origin.svg.js +1 -1
- package/lib/icons/schedule.svg.js +1 -1
- package/lib/icons/search.svg.js +1 -1
- package/lib/icons/setting.svg.js +1 -1
- package/lib/icons/slider-handle-icon.svg.js +1 -1
- package/lib/icons/sort-asc.svg.js +1 -1
- package/lib/icons/sort-default.svg.js +1 -1
- package/lib/icons/sort-desc.svg.js +1 -1
- package/lib/icons/star.svg.js +1 -1
- package/lib/icons/status-close.svg.js +1 -1
- package/lib/icons/steps-finsh.svg.js +1 -1
- package/lib/icons/success.svg.js +1 -1
- package/lib/icons/transparent.svg.js +1 -1
- package/lib/icons/trash.svg.js +1 -1
- package/lib/icons/tree-down.svg.js +1 -1
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/upload.svg.js +1 -1
- package/lib/icons/user-remove.svg.js +1 -1
- package/lib/icons/view.svg.js +1 -1
- package/lib/icons/volume.svg.js +1 -1
- package/lib/icons/warning-mark.svg.js +1 -1
- package/lib/icons/warning.svg.js +1 -1
- package/lib/icons/window-restore.svg.js +1 -1
- package/lib/icons/zoom-in.svg.js +1 -1
- package/lib/icons/zoom-out.svg.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/de-DE.js +3 -1
- package/lib/locale/en-US.js +3 -1
- package/lib/locale/zh-CN.js +4 -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 +5 -5
- package/lib/node_modules/rc-overflow/es/RawItem.js +7 -7
- package/lib/node_modules/rc-overflow/es/context.js +18 -0
- package/lib/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
- package/lib/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
- package/lib/node_modules/rc-overflow/es/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/Collection.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
- package/lib/node_modules/rc-util/es/Children/toArray.js +1 -1
- package/lib/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/lib/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useEvent.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useLayoutEffect.js +16 -2
- package/lib/node_modules/rc-util/es/raf.js +1 -1
- package/lib/node_modules/rc-util/es/ref.js +1 -1
- package/lib/node_modules/rc-util/es/warning.js +1 -1
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/lib/node_modules/rc-util/node_modules/react-is/index.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 +1177 -442
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +1177 -442
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +1177 -442
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +1177 -442
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +1177 -442
- package/package.json +9 -4
- package/scss/_components.scss +13 -3
- package/scss/_properties.scss +24 -0
- package/scss/components/_button-group.scss +1 -0
- package/scss/components/_calendar.scss +24 -14
- package/scss/components/_cascader.scss +26 -3
- package/scss/components/_city-area.scss +6 -0
- package/scss/components/_collapse-group.scss +11 -1
- package/scss/components/_collapse.scss +34 -1
- package/scss/components/_column-toggler.scss +7 -5
- package/scss/components/_condition-builder.scss +29 -3
- package/scss/components/_crud.scss +22 -12
- package/scss/components/_dropdown.scss +8 -5
- package/scss/components/_formula.scss +100 -34
- package/scss/components/_input-box.scss +24 -0
- package/scss/components/_json-schema.scss +28 -0
- package/scss/components/_list-menu.scss +40 -0
- package/scss/components/_nav.scss +1 -0
- package/scss/components/_panel.scss +1 -1
- package/scss/components/_picker-columns.scss +2 -4
- package/scss/components/_popup.scss +8 -1
- package/scss/components/_result-box.scss +5 -0
- package/scss/components/_search-box.scss +6 -0
- package/scss/components/_table.scss +23 -0
- package/scss/components/_tabs.scss +12 -0
- package/scss/components/form/_checks.scss +8 -0
- package/scss/components/form/_color.scss +31 -5
- package/scss/components/form/_combo.scss +27 -0
- package/scss/components/form/_date-range.scss +24 -5
- package/scss/components/form/_date.scss +10 -10
- package/scss/components/form/_editor.scss +4 -0
- package/scss/components/form/_fieldset.scss +13 -0
- package/scss/components/form/_form.scss +253 -110
- package/scss/components/form/_input-group.scss +6 -0
- package/scss/components/form/_location.scss +39 -0
- package/scss/components/form/_matrix.scss +2 -0
- package/scss/components/form/_nested-select.scss +6 -1
- package/scss/components/form/_number.scss +8 -0
- package/scss/components/form/_picker.scss +12 -0
- package/scss/components/form/_range.scss +47 -5
- package/scss/components/form/_select.scss +39 -1
- package/scss/components/form/_selection.scss +38 -2
- package/scss/components/form/_text.scss +5 -6
- package/scss/components/form/_transfer.scss +50 -1
- package/scss/components/form/_tree.scss +34 -4
- package/scss/components/react-datetime.scss +8 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.2.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -8,7 +8,7 @@ import React__default from 'react';
|
|
|
8
8
|
import CustomCalendarContainer from './CalendarContainer.js';
|
|
9
9
|
import cx from 'classnames';
|
|
10
10
|
import moment from 'moment';
|
|
11
|
-
import { utils, convertArrayValueToMoment, themeable } from 'amis-core';
|
|
11
|
+
import { utils, convertArrayValueToMoment, isMobile, themeable } from 'amis-core';
|
|
12
12
|
import 'moment/locale/zh-cn';
|
|
13
13
|
import 'moment/locale/de';
|
|
14
14
|
|
|
@@ -236,6 +236,9 @@ var BaseDatePicker = /** @class */ (function (_super) {
|
|
|
236
236
|
_this.state.viewDate ||
|
|
237
237
|
moment()).clone();
|
|
238
238
|
var date = convertArrayValueToMoment(value, types, currentDate);
|
|
239
|
+
if ((types === null || types === void 0 ? void 0 : types[1]) === 'quarter') {
|
|
240
|
+
date = date.startOf('quarter').date(currentDate.date());
|
|
241
|
+
}
|
|
239
242
|
if (!_this.props.value) {
|
|
240
243
|
_this.setState({
|
|
241
244
|
selectedDate: date,
|
|
@@ -437,7 +440,8 @@ var BaseDatePicker = /** @class */ (function (_super) {
|
|
|
437
440
|
'updateOn',
|
|
438
441
|
'useMobileUI',
|
|
439
442
|
'showToolbar',
|
|
440
|
-
'embed'
|
|
443
|
+
'embed',
|
|
444
|
+
'env'
|
|
441
445
|
].forEach(function (key) { return (props[key] = _this.props[key]); });
|
|
442
446
|
return props;
|
|
443
447
|
};
|
|
@@ -476,7 +480,7 @@ var BaseDatePicker = /** @class */ (function (_super) {
|
|
|
476
480
|
: timeFormat
|
|
477
481
|
? 'rdtTime'
|
|
478
482
|
: '') },
|
|
479
|
-
React__default.createElement("div", { key: "dt", className: cx('rdtPicker', timeFormat && !dateFormat
|
|
483
|
+
React__default.createElement("div", { key: "dt", className: cx('rdtPicker', { 'is-mobile-year': isMobile() && viewMode === 'years' }, { 'is-mobile-embed': isMobile() && viewProps.embed }, timeFormat && !dateFormat
|
|
480
484
|
? 'rdtPickerTimeWithoutD'
|
|
481
485
|
: timeFormat && dateFormat
|
|
482
486
|
? 'rdtPickerTime'
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import moment from 'moment';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { LocaleProps, ClassNamesFn } from 'amis-core';
|
|
5
|
+
import type { RendererEnv } from 'amis-core';
|
|
5
6
|
import { PickerOption } from '../PickerColumn';
|
|
6
7
|
import { DateType } from './Calendar';
|
|
7
8
|
import type { TimeScale } from './TimeView';
|
|
@@ -39,6 +40,7 @@ interface CustomDaysViewProps extends LocaleProps {
|
|
|
39
40
|
content: any;
|
|
40
41
|
className?: string;
|
|
41
42
|
}>;
|
|
43
|
+
env?: RendererEnv;
|
|
42
44
|
largeMode?: boolean;
|
|
43
45
|
todayActiveStyle?: React.CSSProperties;
|
|
44
46
|
onScheduleClick?: (scheduleData: any) => void;
|
|
@@ -89,6 +91,7 @@ export declare class CustomDaysView extends React.Component<CustomDaysViewProps>
|
|
|
89
91
|
scrollToTop: (type: 'hours' | 'minutes' | 'seconds' | 'milliseconds', value: number, i: number, label?: string) => void;
|
|
90
92
|
confirm: () => void;
|
|
91
93
|
cancel: () => void;
|
|
94
|
+
curfilterHtml: (content: any) => any;
|
|
92
95
|
renderDay: (props: any, currentDate: moment.Moment) => React.JSX.Element;
|
|
93
96
|
/** 时间选择器数据源 */
|
|
94
97
|
computedTimeOptions(timeScale: TimeScale): {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.2.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -114,9 +114,16 @@ var CustomDaysView = /** @class */ (function (_super) {
|
|
|
114
114
|
_this.cancel = function () {
|
|
115
115
|
_this.props.onClose && _this.props.onClose();
|
|
116
116
|
};
|
|
117
|
+
_this.curfilterHtml = function (content) {
|
|
118
|
+
var env = _this.props.env;
|
|
119
|
+
if (env === null || env === void 0 ? void 0 : env.filterHtml) {
|
|
120
|
+
return env.filterHtml(content);
|
|
121
|
+
}
|
|
122
|
+
return content;
|
|
123
|
+
};
|
|
117
124
|
_this.renderDay = function (props, currentDate) {
|
|
118
125
|
var todayActiveStyle = props.todayActiveStyle; /** 只有today才会传入这个属性 */
|
|
119
|
-
var _a = _this.props, cx = _a.classnames, __ = _a.translate;
|
|
126
|
+
var _a = _this.props, cx = _a.classnames, __ = _a.translate; _a.env;
|
|
120
127
|
var injectedProps = omit(props, ['todayActiveStyle']);
|
|
121
128
|
/** 某些情况下需要用inline style覆盖动态class,需要hack important的样式 */
|
|
122
129
|
var todayDomRef = function (node) {
|
|
@@ -196,6 +203,9 @@ var CustomDaysView = /** @class */ (function (_super) {
|
|
|
196
203
|
});
|
|
197
204
|
// 最多展示3个
|
|
198
205
|
showSchedule_1 = showSchedule_1.slice(0, 3);
|
|
206
|
+
var locale = _this.props.viewDate.localeData();
|
|
207
|
+
// 以周几作为一周的开始,0表示周日,1表示周一
|
|
208
|
+
var firstDayOfWeek_1 = locale.firstDayOfWeek();
|
|
199
209
|
var scheduleDiv = showSchedule_1.map(function (item, index) {
|
|
200
210
|
var diffDays = moment(item.endTime).diff(moment(item.startTime), 'days');
|
|
201
211
|
/* 存在天数跨度小于1,但是横跨2天的case */
|
|
@@ -206,13 +216,15 @@ var CustomDaysView = /** @class */ (function (_super) {
|
|
|
206
216
|
}
|
|
207
217
|
/* 前面的计算结果是闭区间,所以最终结果要补足1 */
|
|
208
218
|
diffDays += 1;
|
|
209
|
-
var
|
|
210
|
-
|
|
219
|
+
var endWidth = 7 - (moment(item.startTime).weekday() - firstDayOfWeek_1 + 1);
|
|
220
|
+
var width = item.width || Math.min(diffDays, endWidth) || 1;
|
|
211
221
|
return (React__default.createElement("div", { key: injectedProps.key + 'content' + index, className: cx('ScheduleCalendar-large-schedule-content', item.className), style: { width: width + '00%' }, onClick: function () {
|
|
212
222
|
return _this.props.onScheduleClick &&
|
|
213
223
|
_this.props.onScheduleClick(scheduleData_1);
|
|
214
224
|
} },
|
|
215
|
-
React__default.createElement("div", { className: cx('ScheduleCalendar-text-overflow')
|
|
225
|
+
React__default.createElement("div", { className: cx('ScheduleCalendar-text-overflow'), dangerouslySetInnerHTML: {
|
|
226
|
+
__html: _this.curfilterHtml(item.content)
|
|
227
|
+
} })));
|
|
216
228
|
});
|
|
217
229
|
return (React__default.createElement("td", __assign({}, injectedProps),
|
|
218
230
|
React__default.createElement("div", { className: cx('ScheduleCalendar-large-day-wrap') },
|
|
@@ -15,13 +15,24 @@ export interface QuarterViewProps extends LocaleProps, ThemeProps {
|
|
|
15
15
|
renderQuarter: any;
|
|
16
16
|
isValidDate: (date: moment.Moment) => boolean;
|
|
17
17
|
hideHeader?: boolean;
|
|
18
|
+
useMobileUI?: boolean;
|
|
19
|
+
onConfirm?: (value: number[], types?: string[]) => void;
|
|
20
|
+
onClose?: () => void;
|
|
18
21
|
}
|
|
19
22
|
export declare class QuarterView extends React.Component<QuarterViewProps> {
|
|
23
|
+
state: {
|
|
24
|
+
columns: never[];
|
|
25
|
+
pickerValue: number[];
|
|
26
|
+
};
|
|
20
27
|
renderYear(): React.JSX.Element | null;
|
|
21
28
|
renderQuarters(): React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement>[];
|
|
22
29
|
renderQuarter: (props: any, quartar: number, year: number, date: moment.Moment) => React.JSX.Element;
|
|
23
30
|
updateSelectedQuarter: (event: any) => void;
|
|
24
31
|
alwaysValidDate(): boolean;
|
|
32
|
+
onPickerConfirm: (value: number[]) => void;
|
|
33
|
+
onPickerChange: (value: number[], index: number) => void;
|
|
34
|
+
cancel(): void;
|
|
35
|
+
renderPicker(): React.JSX.Element;
|
|
25
36
|
render(): React.JSX.Element;
|
|
26
37
|
}
|
|
27
38
|
declare const _default: {
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.2.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { __extends, __assign } from 'tslib';
|
|
6
|
+
import { __extends, __assign, __decorate, __metadata } from 'tslib';
|
|
7
7
|
import moment from 'moment';
|
|
8
8
|
import React__default from 'react';
|
|
9
|
-
import { localeable } from 'amis-core';
|
|
9
|
+
import { getRange, isMobile, autobind, localeable } from 'amis-core';
|
|
10
|
+
import Picker from '../Picker.js';
|
|
10
11
|
|
|
11
12
|
var QuarterView = /** @class */ (function (_super) {
|
|
12
13
|
__extends(QuarterView, _super);
|
|
13
14
|
function QuarterView() {
|
|
14
15
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
16
|
+
_this.state = {
|
|
17
|
+
columns: [],
|
|
18
|
+
pickerValue: [_this.props.viewDate.year(), _this.props.viewDate.quarter()]
|
|
19
|
+
};
|
|
15
20
|
_this.renderQuarter = function (props, quartar, year, date) {
|
|
16
21
|
return (React__default.createElement("td", __assign({}, props),
|
|
17
22
|
React__default.createElement("span", null,
|
|
@@ -21,6 +26,12 @@ var QuarterView = /** @class */ (function (_super) {
|
|
|
21
26
|
_this.updateSelectedQuarter = function (event) {
|
|
22
27
|
_this.props.updateSelectedDate(event);
|
|
23
28
|
};
|
|
29
|
+
_this.onPickerConfirm = function (value) {
|
|
30
|
+
_this.props.onConfirm && _this.props.onConfirm(value, ['year', 'quarter']);
|
|
31
|
+
};
|
|
32
|
+
_this.onPickerChange = function (value, index) {
|
|
33
|
+
_this.setState({ pickerValue: value });
|
|
34
|
+
};
|
|
24
35
|
return _this;
|
|
25
36
|
}
|
|
26
37
|
QuarterView.prototype.renderYear = function () {
|
|
@@ -69,13 +80,44 @@ var QuarterView = /** @class */ (function (_super) {
|
|
|
69
80
|
QuarterView.prototype.alwaysValidDate = function () {
|
|
70
81
|
return true;
|
|
71
82
|
};
|
|
83
|
+
QuarterView.prototype.cancel = function () {
|
|
84
|
+
var _a, _b;
|
|
85
|
+
(_b = (_a = this.props).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
86
|
+
};
|
|
87
|
+
QuarterView.prototype.renderPicker = function () {
|
|
88
|
+
var __ = this.props.translate;
|
|
89
|
+
var title = __('Date.titleQuarter');
|
|
90
|
+
var minYear = new Date().getFullYear() - 100;
|
|
91
|
+
var maxYear = new Date().getFullYear() + 100;
|
|
92
|
+
var columns = [
|
|
93
|
+
{
|
|
94
|
+
options: getRange(minYear, maxYear, 1)
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
options: getRange(1, 4).map(function (item) {
|
|
98
|
+
return {
|
|
99
|
+
text: 'Q' + item,
|
|
100
|
+
value: item
|
|
101
|
+
};
|
|
102
|
+
})
|
|
103
|
+
}
|
|
104
|
+
];
|
|
105
|
+
return (React__default.createElement(Picker, { translate: this.props.translate, locale: this.props.locale, title: title, columns: columns, value: this.state.pickerValue, onChange: this.onPickerChange, onConfirm: this.onPickerConfirm, onClose: this.cancel }));
|
|
106
|
+
};
|
|
72
107
|
QuarterView.prototype.render = function () {
|
|
73
|
-
var _a = this.props, cx = _a.classnames, hideHeader = _a.hideHeader;
|
|
74
|
-
|
|
108
|
+
var _a = this.props, cx = _a.classnames, hideHeader = _a.hideHeader, useMobileUI = _a.useMobileUI;
|
|
109
|
+
var mobileUI = useMobileUI && isMobile();
|
|
110
|
+
return mobileUI ? (this.renderPicker()) : (React__default.createElement("div", { className: cx('ClalendarQuarter') },
|
|
75
111
|
hideHeader ? null : this.renderYear(),
|
|
76
112
|
React__default.createElement("table", null,
|
|
77
113
|
React__default.createElement("tbody", null, this.renderQuarters()))));
|
|
78
114
|
};
|
|
115
|
+
__decorate([
|
|
116
|
+
autobind,
|
|
117
|
+
__metadata("design:type", Function),
|
|
118
|
+
__metadata("design:paramtypes", []),
|
|
119
|
+
__metadata("design:returntype", void 0)
|
|
120
|
+
], QuarterView.prototype, "cancel", null);
|
|
79
121
|
return QuarterView;
|
|
80
122
|
}(React__default.Component));
|
|
81
123
|
var QuartersView = localeable(QuarterView);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.2.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -427,9 +427,11 @@ var CustomTimeView = /** @class */ (function (_super) {
|
|
|
427
427
|
: 'CalendarInput-sugsTimes'), id: "".concat(_this.state.uniqueTag, "-").concat(i, "-input") }, options_1.map(function (option) {
|
|
428
428
|
var _a;
|
|
429
429
|
return (React__default.createElement("div", { key: option.value, className: cx('CalendarInput-sugsItem', {
|
|
430
|
+
'is-mobile': isMobile(),
|
|
430
431
|
'is-highlight': selectedDate
|
|
431
432
|
? option.value === date.format(formatMap_1[type])
|
|
432
|
-
: option.value === ((_a = options_1 === null || options_1 === void 0 ? void 0 : options_1[0]) === null || _a === void 0 ? void 0 : _a.value)
|
|
433
|
+
: option.value === ((_a = options_1 === null || options_1 === void 0 ? void 0 : options_1[0]) === null || _a === void 0 ? void 0 : _a.value) &&
|
|
434
|
+
!isMobile()
|
|
433
435
|
}), onClick: function () {
|
|
434
436
|
_this.setTime(type, parseInt(option.value, 10));
|
|
435
437
|
_this.scrollToTop(type, parseInt(option.value, 10), i);
|
|
@@ -30,7 +30,7 @@ export interface ExpressionProps extends ThemeProps, LocaleProps {
|
|
|
30
30
|
formula?: FormulaPickerProps;
|
|
31
31
|
popOverContainer?: any;
|
|
32
32
|
renderEtrValue?: any;
|
|
33
|
-
selectMode?: 'list' | 'tree';
|
|
33
|
+
selectMode?: 'list' | 'tree' | 'chained';
|
|
34
34
|
}
|
|
35
35
|
export declare class Expression extends React.Component<ExpressionProps> {
|
|
36
36
|
handleInputTypeChange(type: 'value' | 'field' | 'func' | 'formula'): void;
|
|
@@ -10,16 +10,12 @@ export interface ConditionFieldProps extends ThemeProps, LocaleProps, SpinnerExt
|
|
|
10
10
|
fieldClassName?: string;
|
|
11
11
|
searchable?: boolean;
|
|
12
12
|
popOverContainer?: any;
|
|
13
|
-
selectMode?: 'list' | 'tree';
|
|
13
|
+
selectMode?: 'list' | 'tree' | 'chained';
|
|
14
14
|
}
|
|
15
|
-
export interface
|
|
15
|
+
export interface FieldState {
|
|
16
16
|
searchText: string;
|
|
17
17
|
}
|
|
18
|
-
export declare class ConditionField extends React.Component<ConditionFieldProps,
|
|
19
|
-
constructor(props: ConditionFieldProps);
|
|
20
|
-
onSearch(text: string): void;
|
|
21
|
-
filterOptions(options: any[]): any[];
|
|
22
|
-
onPopClose(onClose: () => void): void;
|
|
18
|
+
export declare class ConditionField extends React.Component<ConditionFieldProps, FieldState> {
|
|
23
19
|
render(): React.JSX.Element;
|
|
24
20
|
}
|
|
25
21
|
declare const _default: {
|
|
@@ -1,87 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.2.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { __extends } from 'tslib';
|
|
7
7
|
import React__default from 'react';
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import ResultBox from '../ResultBox.js';
|
|
12
|
-
import { findTree, noop, themeable, localeable } from 'amis-core';
|
|
13
|
-
import { Icon } from '../icons.js';
|
|
14
|
-
import SearchBox from '../SearchBox.js';
|
|
15
|
-
import TreeSelection from '../TreeSelection.js';
|
|
8
|
+
import { themeable, localeable } from 'amis-core';
|
|
9
|
+
import DropDownSelection from '../DropDownSelection.js';
|
|
10
|
+
import ChainedDropdownSelection from '../ChainedDropdownSelection.js';
|
|
16
11
|
|
|
17
12
|
var option2value = function (item) { return item.name; };
|
|
18
13
|
var ConditionField = /** @class */ (function (_super) {
|
|
19
14
|
__extends(ConditionField, _super);
|
|
20
|
-
function ConditionField(
|
|
21
|
-
|
|
22
|
-
_this.state = {
|
|
23
|
-
searchText: ''
|
|
24
|
-
};
|
|
25
|
-
_this.onSearch = _this.onSearch.bind(_this);
|
|
26
|
-
_this.filterOptions = _this.filterOptions.bind(_this);
|
|
27
|
-
return _this;
|
|
15
|
+
function ConditionField() {
|
|
16
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
28
17
|
}
|
|
29
|
-
ConditionField.prototype.onSearch = function (text) {
|
|
30
|
-
var txt = text.toLowerCase();
|
|
31
|
-
this.setState({ searchText: txt });
|
|
32
|
-
};
|
|
33
|
-
ConditionField.prototype.filterOptions = function (options) {
|
|
34
|
-
var txt = this.state.searchText;
|
|
35
|
-
if (!txt) {
|
|
36
|
-
return this.props.options;
|
|
37
|
-
}
|
|
38
|
-
return options
|
|
39
|
-
.map(function (item) {
|
|
40
|
-
if (item.children) {
|
|
41
|
-
var children = item.children.filter(function (child) {
|
|
42
|
-
return (child.name.toLowerCase().includes(txt) ||
|
|
43
|
-
child.label.toLowerCase().includes(txt));
|
|
44
|
-
});
|
|
45
|
-
return children.length > 0
|
|
46
|
-
? Object.assign({}, item, { children: children }) // 需要copy一份,防止覆盖原始数据
|
|
47
|
-
: false;
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
return item.name.toLowerCase().includes(txt) ||
|
|
51
|
-
item.label.toLowerCase().includes(txt)
|
|
52
|
-
? item
|
|
53
|
-
: false;
|
|
54
|
-
}
|
|
55
|
-
})
|
|
56
|
-
.filter(function (item) {
|
|
57
|
-
return !!item;
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
// 选了值,还原options
|
|
61
|
-
ConditionField.prototype.onPopClose = function (onClose) {
|
|
62
|
-
this.setState({ searchText: '' });
|
|
63
|
-
onClose();
|
|
64
|
-
};
|
|
65
18
|
ConditionField.prototype.render = function () {
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
onChange(value.name);
|
|
75
|
-
} })) : (React__default.createElement(GroupedSelection, { multiple: false, onClick: function () { return _this.onPopClose(onClose); }, options: _this.filterOptions(_this.props.options), value: [value], option2value: option2value, onChange: function (value) {
|
|
76
|
-
return onChange(Array.isArray(value) ? value[0] : value);
|
|
77
|
-
} }))));
|
|
78
|
-
} }, function (_a) {
|
|
79
|
-
var onClick = _a.onClick, ref = _a.ref, isOpened = _a.isOpened;
|
|
80
|
-
return (React__default.createElement("div", { className: cx('CBGroup-field') },
|
|
81
|
-
React__default.createElement(ResultBox, { className: cx('CBGroup-fieldInput', fieldClassName, isOpened ? 'is-active' : ''), ref: ref, allowInput: false, result: value ? findTree(options, function (item) { return item.name === value; }) : '', onResultChange: noop, onResultClick: onClick, placeholder: __('Condition.field_placeholder'), disabled: disabled },
|
|
82
|
-
React__default.createElement("span", { className: cx('CBGroup-fieldCaret') },
|
|
83
|
-
React__default.createElement(Icon, { icon: "caret", className: "icon" })))));
|
|
84
|
-
}));
|
|
19
|
+
var _a = this.props, onChange = _a.onChange, value = _a.value, cx = _a.classnames, disabled = _a.disabled, translate = _a.translate, searchable = _a.searchable, _b = _a.selectMode, selectMode = _b === void 0 ? 'list' : _b, options = _a.options, loadingConfig = _a.loadingConfig;
|
|
20
|
+
return selectMode === 'chained' ? (React__default.createElement(ChainedDropdownSelection, { multiple: false, classnames: cx, translate: translate, options: options, value: value, valueField: "name", option2value: option2value, searchable: searchable, disabled: disabled, onChange: function (value) {
|
|
21
|
+
onChange(Array.isArray(value) ? value[0] : value);
|
|
22
|
+
} })) : selectMode === 'tree' ? (React__default.createElement(DropDownSelection, { className: 'is-scrollable', classnames: cx, translate: translate, multiple: false, option2value: option2value, searchable: searchable, disabled: disabled, valueField: 'name', mode: 'tree', options: options, value: value, loadingConfig: loadingConfig, onChange: function (value) {
|
|
23
|
+
onChange(value);
|
|
24
|
+
} })) : (React__default.createElement(DropDownSelection, { classnames: cx, translate: translate, options: options, value: value, valueField: 'name', option2value: option2value, searchable: searchable, disabled: disabled, onChange: function (value) {
|
|
25
|
+
return onChange(Array.isArray(value) ? value[0] : value);
|
|
26
|
+
} }));
|
|
85
27
|
};
|
|
86
28
|
return ConditionField;
|
|
87
29
|
}(React__default.Component));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.2.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -16,7 +16,7 @@ var Formula = /** @class */ (function (_super) {
|
|
|
16
16
|
Formula.prototype.render = function () {
|
|
17
17
|
var _a = this.props, cx = _a.classnames, value = _a.value, onChange = _a.onChange, disabled = _a.disabled, __ = _a.translate;
|
|
18
18
|
return (React__default.createElement("div", { className: cx('CBFormula') },
|
|
19
|
-
React__default.createElement(InputBox, { disabled: disabled, value: value, onChange: onChange, placeholder: __('Condition.formula_placeholder'), prefix: React__default.createElement("span", { className: cx('CBFormula-label') }, __('Condition.expression')) })));
|
|
19
|
+
React__default.createElement(InputBox, { disabled: disabled, value: value, onChange: onChange, placeholder: __('Condition.formula_placeholder'), prefix: React__default.createElement("span", { className: cx('CBFormula-label') }, __('Condition.expression')), useMobileUI: true })));
|
|
20
20
|
};
|
|
21
21
|
return Formula;
|
|
22
22
|
}(React__default.Component));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.2.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -52,7 +52,7 @@ var ConditionFunc = /** @class */ (function (_super) {
|
|
|
52
52
|
return (React__default.createElement("div", { className: cx('CBFunc-select') },
|
|
53
53
|
React__default.createElement(ResultBox, { className: cx('CBGroup-fieldInput', fieldClassName, isOpened ? 'is-active' : ''), ref: ref, allowInput: false, result: func, onResultChange: noop, onResultClick: onClick, placeholder: __('Condition.field_placeholder'), disabled: disabled },
|
|
54
54
|
React__default.createElement("span", { className: cx('CBGroup-fieldCaret') },
|
|
55
|
-
React__default.createElement(Icon, { icon: "
|
|
55
|
+
React__default.createElement(Icon, { icon: "right-arrow-bold", className: "icon" })))));
|
|
56
56
|
}),
|
|
57
57
|
func ? (this.renderFunc(func)) : (React__default.createElement("span", { className: cx('CBFunc-error') }, __('Condition.fun_error')))));
|
|
58
58
|
};
|
|
@@ -27,8 +27,17 @@ export interface ConditionGroupProps extends ThemeProps, LocaleProps {
|
|
|
27
27
|
formula?: FormulaPickerProps;
|
|
28
28
|
popOverContainer?: any;
|
|
29
29
|
renderEtrValue?: any;
|
|
30
|
-
selectMode?: 'list' | 'tree';
|
|
30
|
+
selectMode?: 'list' | 'tree' | 'chained';
|
|
31
31
|
isCollapsed?: boolean;
|
|
32
|
+
depth: number;
|
|
33
|
+
isAddBtnVisibleOn?: (param: {
|
|
34
|
+
depth: number;
|
|
35
|
+
breadth: number;
|
|
36
|
+
}) => boolean;
|
|
37
|
+
isAddGroupBtnVisibleOn?: (param: {
|
|
38
|
+
depth: number;
|
|
39
|
+
breadth: number;
|
|
40
|
+
}) => boolean;
|
|
32
41
|
}
|
|
33
42
|
export declare class ConditionGroup extends React.Component<ConditionGroupProps, ConditionGroupState> {
|
|
34
43
|
constructor(props: ConditionGroupProps);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.2.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -99,13 +99,17 @@ var ConditionGroup = /** @class */ (function (_super) {
|
|
|
99
99
|
};
|
|
100
100
|
ConditionGroup.prototype.render = function () {
|
|
101
101
|
var _this = this;
|
|
102
|
-
var _a
|
|
102
|
+
var _a, _b, _c;
|
|
103
|
+
var _d = this.props, builderMode = _d.builderMode, cx = _d.classnames, fieldClassName = _d.fieldClassName, value = _d.value, data = _d.data, fields = _d.fields, funcs = _d.funcs, config = _d.config, removeable = _d.removeable, onRemove = _d.onRemove, onDragStart = _d.onDragStart, showNot = _d.showNot, _e = _d.showANDOR, showANDOR = _e === void 0 ? false : _e, disabled = _d.disabled, searchable = _d.searchable, __ = _d.translate, formula = _d.formula, popOverContainer = _d.popOverContainer, selectMode = _d.selectMode, renderEtrValue = _d.renderEtrValue, draggable = _d.draggable, depth = _d.depth, isAddBtnVisibleOn = _d.isAddBtnVisibleOn, isAddGroupBtnVisibleOn = _d.isAddGroupBtnVisibleOn;
|
|
103
104
|
var isCollapsed = this.state.isCollapsed;
|
|
104
105
|
var body = Array.isArray(value === null || value === void 0 ? void 0 : value.children) && value.children.length
|
|
105
106
|
? isCollapsed
|
|
106
107
|
? value.children.slice(0, 1)
|
|
107
108
|
: value.children
|
|
108
109
|
: null;
|
|
110
|
+
var param = { depth: depth, breadth: (_a = body === null || body === void 0 ? void 0 : body.length) !== null && _a !== void 0 ? _a : 0 };
|
|
111
|
+
var addConditionVisibleBool = (_b = isAddBtnVisibleOn === null || isAddBtnVisibleOn === void 0 ? void 0 : isAddBtnVisibleOn(param)) !== null && _b !== void 0 ? _b : true;
|
|
112
|
+
var addConditionGroupVisibleBool = (_c = isAddGroupBtnVisibleOn === null || isAddGroupBtnVisibleOn === void 0 ? void 0 : isAddGroupBtnVisibleOn(param)) !== null && _c !== void 0 ? _c : true;
|
|
109
113
|
return (React__default.createElement("div", { className: cx('CBGroup'), "data-group-id": value === null || value === void 0 ? void 0 : value.id },
|
|
110
114
|
builderMode === 'simple' && showANDOR === false ? null : (React__default.createElement("div", { className: cx('CBGroup-toolbarCondition'), draggable: draggable, onDragStart: onDragStart },
|
|
111
115
|
Array.isArray(value === null || value === void 0 ? void 0 : value.children) && value.children.length > 1 ? (React__default.createElement("div", { className: cx('CBGroup-toolbarCondition-arrow', {
|
|
@@ -125,7 +129,7 @@ var ConditionGroup = /** @class */ (function (_super) {
|
|
|
125
129
|
], value: (value === null || value === void 0 ? void 0 : value.conjunction) || 'and', disabled: disabled, onChange: this.handleConjunctionChange, clearable: false }))),
|
|
126
130
|
React__default.createElement("div", { className: cx('CBGroup-body-wrapper') },
|
|
127
131
|
React__default.createElement("div", { className: cx('CBGroup-body') },
|
|
128
|
-
body ? (body.map(function (item, index) { return (React__default.createElement(GroupOrItem, { draggable: value.children.length > 1, onDragStart: onDragStart, config: config, key: item.id, fields: fields, fieldClassName: fieldClassName, value: item, index: index, onChange: _this.handleItemChange, funcs: funcs, onRemove: _this.handleItemRemove, data: data, disabled: disabled, searchable: searchable, builderMode: builderMode, formula: formula, popOverContainer: popOverContainer, renderEtrValue: renderEtrValue, selectMode: selectMode, isCollapsed: isCollapsed })); })) : (React__default.createElement("div", { className: cx("CBGroup-placeholder ".concat(builderMode === 'simple' ? 'simple' : '')) }, __('Condition.blank'))),
|
|
132
|
+
body ? (body.map(function (item, index) { return (React__default.createElement(GroupOrItem, { draggable: draggable && value.children.length > 1, onDragStart: onDragStart, config: config, key: item.id, fields: fields, fieldClassName: fieldClassName, value: item, index: index, onChange: _this.handleItemChange, funcs: funcs, onRemove: _this.handleItemRemove, data: data, disabled: disabled, searchable: searchable, builderMode: builderMode, formula: formula, popOverContainer: popOverContainer, renderEtrValue: renderEtrValue, selectMode: selectMode, isCollapsed: isCollapsed, depth: depth, isAddBtnVisibleOn: isAddBtnVisibleOn, isAddGroupBtnVisibleOn: isAddGroupBtnVisibleOn })); })) : (React__default.createElement("div", { className: cx("CBGroup-placeholder ".concat(builderMode === 'simple' ? 'simple' : '')) }, __('Condition.blank'))),
|
|
129
133
|
isCollapsed ? (React__default.createElement("div", { className: cx('CBGroup-body-collapse') },
|
|
130
134
|
React__default.createElement("span", { onClick: this.toggleCollapse },
|
|
131
135
|
__('Condition.collapse'),
|
|
@@ -134,8 +138,8 @@ var ConditionGroup = /** @class */ (function (_super) {
|
|
|
134
138
|
isCollapsed ? null : (React__default.createElement("div", { className: cx('CBGroup-toolbar'), draggable: draggable, onDragStart: onDragStart },
|
|
135
139
|
React__default.createElement("div", { className: cx("CBGroup-toolbarConditionAdd".concat(builderMode === 'simple' ? '-simple' : '')) },
|
|
136
140
|
React__default.createElement("div", { className: cx('ButtonGroup') },
|
|
137
|
-
React__default.createElement(Button, { level: "link", onClick: this.handleAdd, size: "xs", disabled: disabled }, __('Condition.add_cond')),
|
|
138
|
-
builderMode
|
|
141
|
+
addConditionVisibleBool ? (React__default.createElement(Button, { level: "link", onClick: this.handleAdd, size: "xs", disabled: disabled }, __('Condition.add_cond'))) : null,
|
|
142
|
+
addConditionGroupVisibleBool && builderMode !== 'simple' ? (React__default.createElement(Button, { onClick: this.handleAddGroup, size: "xs", disabled: disabled, level: "link" }, __('Condition.add_cond_group'))) : null,
|
|
139
143
|
removeable ? (React__default.createElement(Button, { onClick: onRemove, size: "xs", disabled: disabled, level: "link" }, __('Condition.delete_cond_group'))) : null)))))));
|
|
140
144
|
};
|
|
141
145
|
__decorate([
|
|
@@ -24,8 +24,17 @@ export interface CBGroupOrItemProps extends ThemeProps {
|
|
|
24
24
|
formula?: FormulaPickerProps;
|
|
25
25
|
popOverContainer?: any;
|
|
26
26
|
renderEtrValue?: any;
|
|
27
|
-
selectMode?: 'list' | 'tree';
|
|
27
|
+
selectMode?: 'list' | 'tree' | 'chained';
|
|
28
28
|
isCollapsed?: boolean;
|
|
29
|
+
depth: number;
|
|
30
|
+
isAddBtnVisibleOn?: (param: {
|
|
31
|
+
depth: number;
|
|
32
|
+
breadth: number;
|
|
33
|
+
}) => boolean;
|
|
34
|
+
isAddGroupBtnVisibleOn?: (param: {
|
|
35
|
+
depth: number;
|
|
36
|
+
breadth: number;
|
|
37
|
+
}) => boolean;
|
|
29
38
|
}
|
|
30
39
|
export declare class CBGroupOrItem extends React.Component<CBGroupOrItemProps> {
|
|
31
40
|
state: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.2.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { __extends, __decorate, __metadata } from 'tslib';
|
|
7
|
-
import { autobind, themeable } from 'amis-core';
|
|
7
|
+
import { isMobile, autobind, themeable } from 'amis-core';
|
|
8
8
|
import React__default from 'react';
|
|
9
9
|
import { Icon } from '../icons.js';
|
|
10
10
|
import ConditionGroup from './Group.js';
|
|
@@ -28,6 +28,9 @@ var CBGroupOrItem = /** @class */ (function (_super) {
|
|
|
28
28
|
(_b = (_a = this.props).onRemove) === null || _b === void 0 ? void 0 : _b.call(_a, this.props.index);
|
|
29
29
|
};
|
|
30
30
|
CBGroupOrItem.prototype.handlerHoverIn = function (e) {
|
|
31
|
+
if (isMobile()) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
31
34
|
e.stopPropagation();
|
|
32
35
|
this.setState({
|
|
33
36
|
hover: true
|
|
@@ -39,14 +42,14 @@ var CBGroupOrItem = /** @class */ (function (_super) {
|
|
|
39
42
|
});
|
|
40
43
|
};
|
|
41
44
|
CBGroupOrItem.prototype.render = function () {
|
|
42
|
-
var _a = this.props, builderMode = _a.builderMode, cx = _a.classnames, fieldClassName = _a.fieldClassName, value = _a.value, config = _a.config, fields = _a.fields, funcs = _a.funcs, draggable = _a.draggable, data = _a.data, disabled = _a.disabled, searchable = _a.searchable, onDragStart = _a.onDragStart, formula = _a.formula, popOverContainer = _a.popOverContainer, selectMode = _a.selectMode, renderEtrValue = _a.renderEtrValue, isCollapsed = _a.isCollapsed;
|
|
43
|
-
return (React__default.createElement("div", { className: cx("CBGroupOrItem".concat(builderMode === 'simple' ? '-simple' : '')), "data-id": value === null || value === void 0 ? void 0 : value.id },
|
|
45
|
+
var _a = this.props, builderMode = _a.builderMode, cx = _a.classnames, fieldClassName = _a.fieldClassName, value = _a.value, config = _a.config, fields = _a.fields, funcs = _a.funcs, draggable = _a.draggable, data = _a.data, disabled = _a.disabled, searchable = _a.searchable, onDragStart = _a.onDragStart, formula = _a.formula, popOverContainer = _a.popOverContainer, selectMode = _a.selectMode, renderEtrValue = _a.renderEtrValue, isCollapsed = _a.isCollapsed, depth = _a.depth, isAddBtnVisibleOn = _a.isAddBtnVisibleOn, isAddGroupBtnVisibleOn = _a.isAddGroupBtnVisibleOn;
|
|
46
|
+
return (React__default.createElement("div", { className: cx("CBGroupOrItem".concat(builderMode === 'simple' ? '-simple' : ''), { 'is-mobile': isMobile() }), "data-id": value === null || value === void 0 ? void 0 : value.id },
|
|
44
47
|
React__default.createElement("div", { className: cx('CBGroupOrItem-body') }, (value === null || value === void 0 ? void 0 : value.conjunction) ? (React__default.createElement("div", { className: cx('CBGroupOrItem-body-group', {
|
|
45
|
-
'is-hover': this.state.hover
|
|
48
|
+
'is-hover': this.state.hover || isMobile()
|
|
46
49
|
}), onMouseOver: this.handlerHoverIn, onMouseOut: this.handlerHoverOut },
|
|
47
50
|
draggable && !disabled ? (React__default.createElement("a", { draggable: true, onDragStart: onDragStart, className: cx('CBGroupOrItem-dragbar') },
|
|
48
51
|
React__default.createElement(Icon, { icon: "drag-bar", className: "icon" }))) : null,
|
|
49
|
-
React__default.createElement(ConditionGroup, { isCollapsed: isCollapsed, draggable: draggable, disabled: disabled, searchable: searchable, onDragStart: onDragStart, config: config, fields: fields, value: value, onChange: this.handleItemChange, fieldClassName: fieldClassName, funcs: funcs, removeable: true, onRemove: this.handleItemRemove, data: data, renderEtrValue: renderEtrValue }))) : (React__default.createElement("div", { className: cx('CBGroupOrItem-body-item') },
|
|
52
|
+
React__default.createElement(ConditionGroup, { isCollapsed: isCollapsed, draggable: draggable, disabled: disabled, searchable: searchable, selectMode: selectMode, onDragStart: onDragStart, config: config, fields: fields, value: value, onChange: this.handleItemChange, fieldClassName: fieldClassName, funcs: funcs, removeable: true, onRemove: this.handleItemRemove, data: data, renderEtrValue: renderEtrValue, depth: depth + 1, isAddBtnVisibleOn: isAddBtnVisibleOn, isAddGroupBtnVisibleOn: isAddGroupBtnVisibleOn }))) : (React__default.createElement("div", { className: cx('CBGroupOrItem-body-item') },
|
|
50
53
|
draggable && !disabled ? (React__default.createElement("a", { draggable: true, onDragStart: onDragStart, className: cx('CBGroupOrItem-dragbar') },
|
|
51
54
|
React__default.createElement(Icon, { icon: "drag-bar", className: "icon" }))) : null,
|
|
52
55
|
React__default.createElement(ConditionItem, { disabled: disabled, searchable: searchable, config: config, fields: fields, value: value, onChange: this.handleItemChange, fieldClassName: fieldClassName, funcs: funcs, data: data, formula: formula, popOverContainer: popOverContainer, renderEtrValue: renderEtrValue, selectMode: selectMode }),
|
|
@@ -19,7 +19,7 @@ export interface ConditionItemProps extends ThemeProps, LocaleProps {
|
|
|
19
19
|
formula?: FormulaPickerProps;
|
|
20
20
|
popOverContainer?: any;
|
|
21
21
|
renderEtrValue?: any;
|
|
22
|
-
selectMode?: 'list' | 'tree';
|
|
22
|
+
selectMode?: 'list' | 'tree' | 'chained';
|
|
23
23
|
}
|
|
24
24
|
export declare class ConditionItem extends React.Component<ConditionItemProps> {
|
|
25
25
|
handleLeftFieldSelect(field: any): void;
|