amis-ui 6.13.0-beta.2 → 6.13.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.js +1 -1
- package/esm/components/AlphabetIndexer.js +1 -1
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/AnchorNavSection.js +1 -1
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.js +7 -3
- package/esm/components/AutoFoldedList.d.ts +87 -0
- package/esm/components/AutoFoldedList.js +124 -0
- package/esm/components/AutoSizer.js +1 -1
- package/esm/components/Avatar.js +1 -1
- 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 +1 -1
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedDropdownSelection.js +1 -1
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +1 -1
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConditionBuilder.js +1 -1
- package/esm/components/ConfirmBox.js +1 -1
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.js +1 -1
- package/esm/components/DateRangePicker.js +6 -9
- package/esm/components/DiffEditor.js +1 -1
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.js +1 -1
- package/esm/components/DropDownSelection.js +1 -1
- package/esm/components/DropdownContextMenus.js +1 -1
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/FormulaPicker.js +1 -1
- package/esm/components/GaodeMapPicker.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GridNavItem.js +1 -1
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/HeadCellDropDown.js +1 -1
- package/esm/components/HorizontalScroll.js +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/Icon.js +1 -1
- package/esm/components/ImageGallery.js +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/InputJSONSchema.js +1 -1
- package/esm/components/InputTable.js +1 -1
- package/esm/components/JSONSchemaEditor.js +1 -1
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.js +1 -1
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Menu.js +1 -1
- package/esm/components/MixedInput.d.ts +55 -0
- package/esm/components/MixedInput.js +88 -0
- package/esm/components/MobileDevTool.js +1 -1
- package/esm/components/Modal.js +2 -2
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.js +1 -1
- package/esm/components/OverflowTpl.js +1 -1
- package/esm/components/Pagination.js +1 -1
- package/esm/components/PdfViewer.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.js +1 -1
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.js +1 -1
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.d.ts +1 -1
- package/esm/components/ResultBox.js +14 -34
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.js +5 -3
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.js +1 -1
- package/esm/components/Select.js +29 -63
- package/esm/components/SelectMobile.js +1 -1
- package/esm/components/Selection.js +1 -1
- package/esm/components/Shape.js +1 -1
- package/esm/components/Signature.js +3 -1
- package/esm/components/Slider.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/Tab.js +1 -1
- package/esm/components/Table.js +1 -1
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.js +1 -1
- package/esm/components/TabsTransfer.js +4 -2
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.d.ts +11 -0
- package/esm/components/Tag.js +5 -5
- 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.js +1 -1
- package/esm/components/Transfer.js +7 -3
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.d.ts +7 -45
- package/esm/components/Tree.js +78 -38
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.js +1 -1
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/VerificationCode.js +1 -1
- package/esm/components/VirtualList.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 +7 -6
- 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 +3 -3
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.js +1 -1
- package/esm/components/condition-builder/GroupOrItem.js +1 -1
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.js +1 -1
- package/esm/components/condition-builder/Value.d.ts +2 -0
- package/esm/components/condition-builder/Value.js +18 -12
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.js +1 -1
- package/esm/components/condition-builder/types.d.ts +1 -0
- package/esm/components/formula/CodeEditor.js +1 -1
- package/esm/components/formula/Editor.js +1 -1
- package/esm/components/formula/FuncList.js +1 -1
- package/esm/components/formula/Input.js +1 -1
- package/esm/components/formula/Picker.js +1 -1
- package/esm/components/formula/VariableList.js +1 -1
- package/esm/components/formula/plugin.js +1 -1
- package/esm/components/icons.js +1 -1
- package/esm/components/index.d.ts +3 -1
- package/esm/components/json-schema/Array.js +1 -1
- package/esm/components/json-schema/Item.js +1 -1
- package/esm/components/json-schema/Object.js +1 -1
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.js +1 -1
- package/esm/components/menu/PanelMenu.js +1 -1
- package/esm/components/menu/SubMenu.js +1 -1
- 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.js +1 -1
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/ColGroup.js +1 -1
- package/esm/components/table/Head.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.js +1 -1
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/Row.js +1 -1
- package/esm/components/table/SummaryRow.js +1 -1
- package/esm/components/table/index.js +6 -4
- package/esm/components/table/util.js +29 -16
- 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/components/withBadge.js +1 -1
- package/esm/hooks/use-click-away.js +1 -1
- package/esm/hooks/use-on-screen.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/arrow-double-left.svg.js +1 -1
- package/esm/icons/arrow-double-right.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/fullscreen.svg.js +1 -1
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/if.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +1 -1
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +1 -1
- package/esm/icons/pause.svg.js +1 -1
- package/esm/icons/pencil.svg.js +1 -1
- package/esm/icons/play.svg.js +1 -1
- package/esm/icons/plus-cicle.svg.js +1 -1
- package/esm/icons/plus-fine.svg.js +1 -1
- package/esm/icons/plus.svg.js +1 -1
- package/esm/icons/post.svg.js +1 -1
- package/esm/icons/question-mark.svg.js +1 -1
- package/esm/icons/question.svg.js +1 -1
- package/esm/icons/redo.svg.js +1 -1
- package/esm/icons/refresh.svg.js +1 -1
- package/esm/icons/reload.svg.js +1 -1
- package/esm/icons/remove.svg.js +1 -1
- package/esm/icons/retry.svg.js +1 -1
- package/esm/icons/right-arrow-bold.svg.js +1 -1
- package/esm/icons/right-arrow.svg.js +1 -1
- package/esm/icons/right-double-arrow.svg.js +1 -1
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +1 -1
- package/esm/icons/rotate-right.svg.js +1 -1
- package/esm/icons/rotate-screen.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/sub-plus.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-normal.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/unfullscreen.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 +3 -1
- package/esm/locale/de-DE.js +3 -1
- package/esm/locale/en-US.js +3 -1
- package/esm/locale/zh-CN.js +3 -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/esm/utils/vectorComputed.js +1 -1
- package/esm/withRemoteConfig.js +1 -1
- package/esm/withStore.js +1 -1
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.js +1 -1
- package/lib/components/AlphabetIndexer.js +1 -1
- package/lib/components/AnchorNav.js +1 -1
- package/lib/components/AnchorNavSection.js +1 -1
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.js +7 -3
- package/lib/components/AutoFoldedList.d.ts +87 -0
- package/lib/components/AutoFoldedList.js +128 -0
- package/lib/components/AutoSizer.js +1 -1
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.js +1 -1
- package/lib/components/BaiduMapPicker.js +1 -1
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedDropdownSelection.js +1 -1
- package/lib/components/ChainedSelection.js +1 -1
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CityArea.js +1 -1
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/Combo.js +1 -1
- package/lib/components/ConditionBuilder.js +1 -1
- package/lib/components/ConfirmBox.js +1 -1
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.js +1 -1
- package/lib/components/DateRangePicker.js +5 -8
- package/lib/components/DiffEditor.js +1 -1
- package/lib/components/DndContainer.js +1 -1
- package/lib/components/Drawer.js +1 -1
- package/lib/components/DropDownSelection.js +1 -1
- package/lib/components/DropdownContextMenus.js +1 -1
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.js +1 -1
- package/lib/components/FormulaPicker.js +1 -1
- package/lib/components/GaodeMapPicker.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GridNavItem.js +1 -1
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/HeadCellDropDown.js +1 -1
- package/lib/components/HorizontalScroll.js +1 -1
- package/lib/components/Html.js +1 -1
- package/lib/components/Icon.js +1 -1
- package/lib/components/ImageGallery.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/InputJSONSchema.js +1 -1
- package/lib/components/InputTable.js +1 -1
- package/lib/components/JSONSchemaEditor.js +1 -1
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.js +1 -1
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Menu.js +1 -1
- package/lib/components/MixedInput.d.ts +55 -0
- package/lib/components/MixedInput.js +99 -0
- package/lib/components/MobileDevTool.js +1 -1
- package/lib/components/Modal.js +2 -2
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.js +1 -1
- package/lib/components/OverflowTpl.js +1 -1
- package/lib/components/Pagination.js +1 -1
- package/lib/components/PdfViewer.js +1 -1
- package/lib/components/Picker.js +1 -1
- package/lib/components/PickerColumn.js +1 -1
- package/lib/components/PickerContainer.js +1 -1
- package/lib/components/PopOverContainer.js +1 -1
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.js +1 -1
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +1 -1
- package/lib/components/ResultBox.js +13 -34
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.js +5 -3
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.js +1 -1
- package/lib/components/Select.js +28 -63
- package/lib/components/SelectMobile.js +1 -1
- package/lib/components/Selection.js +1 -1
- package/lib/components/Shape.js +1 -1
- package/lib/components/Signature.js +3 -1
- package/lib/components/Slider.js +1 -1
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.js +1 -1
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.js +1 -1
- package/lib/components/Tab.js +1 -1
- package/lib/components/Table.js +1 -1
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.js +1 -1
- package/lib/components/TabsTransfer.js +4 -2
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +11 -0
- package/lib/components/Tag.js +5 -5
- 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.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.js +7 -3
- package/lib/components/TransferDropDown.js +1 -1
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +1 -1
- package/lib/components/Tree.d.ts +7 -45
- package/lib/components/Tree.js +77 -37
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.js +1 -1
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/VerificationCode.js +1 -1
- package/lib/components/VirtualList.js +1 -1
- package/lib/components/WithRemoteConfig.js +1 -1
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.js +1 -1
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.js +7 -6
- package/lib/components/calendar/MonthsView.js +1 -1
- package/lib/components/calendar/QuartersView.js +1 -1
- package/lib/components/calendar/TimeView.js +1 -1
- package/lib/components/calendar/YearsView.js +1 -1
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.js +1 -1
- package/lib/components/condition-builder/Func.js +1 -1
- package/lib/components/condition-builder/Group.js +1 -1
- package/lib/components/condition-builder/GroupOrItem.js +1 -1
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.js +1 -1
- package/lib/components/condition-builder/Value.d.ts +2 -0
- package/lib/components/condition-builder/Value.js +18 -12
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.js +1 -1
- package/lib/components/condition-builder/types.d.ts +1 -0
- package/lib/components/formula/CodeEditor.js +1 -1
- package/lib/components/formula/Editor.js +1 -1
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Input.js +1 -1
- package/lib/components/formula/Picker.js +1 -1
- package/lib/components/formula/VariableList.js +1 -1
- package/lib/components/formula/plugin.js +1 -1
- package/lib/components/icons.js +1 -1
- package/lib/components/index.d.ts +3 -1
- package/lib/components/json-schema/Array.js +1 -1
- package/lib/components/json-schema/Item.js +1 -1
- package/lib/components/json-schema/Object.js +1 -1
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.js +1 -1
- package/lib/components/menu/PanelMenu.js +1 -1
- package/lib/components/menu/SubMenu.js +1 -1
- package/lib/components/menu/index.js +1 -1
- package/lib/components/schema-editor/Array.js +1 -1
- package/lib/components/schema-editor/Common.js +1 -1
- package/lib/components/schema-editor/Item.js +1 -1
- package/lib/components/schema-editor/Object.js +1 -1
- package/lib/components/schema-editor/SchemaVariableList.js +1 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/lib/components/schema-editor/index.js +1 -1
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/ColGroup.js +1 -1
- package/lib/components/table/Head.js +1 -1
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.js +1 -1
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.js +1 -1
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/Row.js +1 -1
- package/lib/components/table/SummaryRow.js +1 -1
- package/lib/components/table/index.js +6 -4
- package/lib/components/table/util.js +29 -16
- 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/components/withBadge.js +1 -1
- package/lib/hooks/use-click-away.js +1 -1
- package/lib/hooks/use-on-screen.js +1 -1
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-sub-form.js +1 -1
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +1 -1
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +1 -1
- package/lib/icons/alert-warning.svg.js +1 -1
- package/lib/icons/arrow-double-left.svg.js +1 -1
- package/lib/icons/arrow-double-right.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/fullscreen.svg.js +1 -1
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/if.svg.js +1 -1
- package/lib/icons/image.svg.js +1 -1
- package/lib/icons/info-circle.svg.js +1 -1
- package/lib/icons/info.svg.js +1 -1
- package/lib/icons/input-clear.svg.js +1 -1
- package/lib/icons/invisible.svg.js +1 -1
- package/lib/icons/left-arrow.svg.js +1 -1
- package/lib/icons/loading-outline.svg.js +1 -1
- package/lib/icons/location.svg.js +1 -1
- package/lib/icons/menu.svg.js +1 -1
- package/lib/icons/minus.svg.js +1 -1
- package/lib/icons/move.svg.js +1 -1
- package/lib/icons/mute.svg.js +1 -1
- package/lib/icons/new-edit.svg.js +1 -1
- package/lib/icons/pause.svg.js +1 -1
- package/lib/icons/pencil.svg.js +1 -1
- package/lib/icons/play.svg.js +1 -1
- package/lib/icons/plus-cicle.svg.js +1 -1
- package/lib/icons/plus-fine.svg.js +1 -1
- package/lib/icons/plus.svg.js +1 -1
- package/lib/icons/post.svg.js +1 -1
- package/lib/icons/question-mark.svg.js +1 -1
- package/lib/icons/question.svg.js +1 -1
- package/lib/icons/redo.svg.js +1 -1
- package/lib/icons/refresh.svg.js +1 -1
- package/lib/icons/reload.svg.js +1 -1
- package/lib/icons/remove.svg.js +1 -1
- package/lib/icons/retry.svg.js +1 -1
- package/lib/icons/right-arrow-bold.svg.js +1 -1
- package/lib/icons/right-arrow.svg.js +1 -1
- package/lib/icons/right-double-arrow.svg.js +1 -1
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +1 -1
- package/lib/icons/rotate-right.svg.js +1 -1
- package/lib/icons/rotate-screen.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/sub-plus.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-normal.svg.js +1 -1
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/unfullscreen.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 +5 -1
- package/lib/locale/de-DE.js +3 -1
- package/lib/locale/en-US.js +3 -1
- package/lib/locale/zh-CN.js +3 -1
- package/lib/scss/helper.scss.js +1 -1
- package/lib/scss/themes/ang.scss.js +1 -1
- package/lib/scss/themes/antd.scss.js +1 -1
- package/lib/scss/themes/cxd.scss.js +1 -1
- package/lib/scss/themes/dark.scss.js +1 -1
- package/lib/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +307 -28
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +307 -28
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +307 -28
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +307 -28
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +307 -28
- package/lib/utils/vectorComputed.js +1 -1
- package/lib/withRemoteConfig.js +1 -1
- package/lib/withStore.js +1 -1
- package/package.json +8 -4
- package/scss/_components.scss +4 -7
- package/scss/_mixins.scss +1 -0
- package/scss/_properties.scss +1 -1
- package/scss/components/_auto-folder.scss +40 -0
- package/scss/components/_cascader.scss +22 -2
- package/scss/components/_condition-builder.scss +1 -0
- package/scss/components/_crud.scss +32 -0
- package/scss/components/_modal.scss +13 -0
- package/scss/components/_page.scss +0 -1
- package/scss/components/_popoverable.scss +1 -0
- package/scss/components/_result-box.scss +15 -3
- package/scss/components/_table.scss +41 -0
- package/scss/components/_tooltip.scss +1 -1
- package/scss/components/form/_combo.scss +13 -0
- package/scss/components/form/_excel.scss +110 -4
- package/scss/components/form/_icon-picker.scss +1 -0
- package/scss/components/form/_input-group.scss +23 -2
- package/scss/components/form/_nested-select.scss +10 -0
- package/scss/components/form/_picker.scss +33 -0
- package/scss/components/form/_select.scss +17 -4
- package/scss/components/form/_selection.scss +2 -0
- package/scss/components/form/_tree.scss +8 -9
- package/scss/themes/_common.scss +1 -0
package/esm/components/Select.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v6.13.0-beta.
|
|
2
|
+
* amis-ui v6.13.0-beta.21
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { __extends, __assign,
|
|
6
|
+
import { __extends, __assign, __decorate, __metadata, __rest } from 'tslib';
|
|
7
7
|
import { normalizeNodePath, isObject, findTree, getOptionValueBindField, getOptionValue, labelToString, Overlay, PopOver, noop, ucFirst, autobind, uncontrollable, themeable, localeable, highlight } from 'amis-core';
|
|
8
8
|
import React__default from 'react';
|
|
9
|
-
import isInteger from 'lodash/isInteger';
|
|
10
9
|
import omit from 'lodash/omit';
|
|
11
10
|
import merge from 'lodash/merge';
|
|
12
11
|
import VirtualList from './virtual-list/index.js';
|
|
@@ -22,6 +21,7 @@ import Spinner from './Spinner.js';
|
|
|
22
21
|
import { withRemoteConfig } from './WithRemoteConfig.js';
|
|
23
22
|
import { PopOverContainer } from './PopOverContainer.js';
|
|
24
23
|
import SelectMobile from './SelectMobile.js';
|
|
24
|
+
import AutoFoldedList from './AutoFoldedList.js';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* @file Select
|
|
@@ -419,57 +419,42 @@ var Select = /** @class */ (function (_super) {
|
|
|
419
419
|
onDelete && onDelete(item);
|
|
420
420
|
};
|
|
421
421
|
Select.prototype.renderValue = function (_a) {
|
|
422
|
-
var _b;
|
|
423
422
|
var _this = this;
|
|
424
423
|
_a.inputValue; _a.isOpen;
|
|
425
|
-
var
|
|
424
|
+
var _b = this.props, cx = _b.classnames, multiple = _b.multiple, valuesNoWrap = _b.valuesNoWrap, placeholder = _b.placeholder, labelField = _b.labelField, disabled = _b.disabled, maxTagCount = _b.maxTagCount, overflowTagPopover = _b.overflowTagPopover, showInvalidMatch = _b.showInvalidMatch, renderValueLabel = _b.renderValueLabel, popOverContainer = _b.popOverContainer, __ = _b.translate;
|
|
426
425
|
var selection = this.state.selection;
|
|
427
426
|
var labelKey = labelField || 'label';
|
|
428
427
|
if (!selection.length) {
|
|
429
428
|
return (React__default.createElement("div", { key: "placeholder", className: cx('Select-placeholder') }, __(placeholder)));
|
|
430
429
|
}
|
|
431
|
-
if (multiple &&
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
430
|
+
else if (multiple && typeof maxTagCount === 'number' && maxTagCount > 0) {
|
|
431
|
+
var tooltipProps = __assign({ tooltipClassName: cx('Select-overflow', overflowTagPopover === null || overflowTagPopover === void 0 ? void 0 : overflowTagPopover.tooltipClassName) }, omit(overflowTagPopover, ['children', 'content', 'tooltipClassName']));
|
|
432
|
+
return (React__default.createElement(AutoFoldedList, { tooltipClassName: cx('Select-overflow-wrapper'), items: selection, popOverContainer: popOverContainer, tooltipOptions: tooltipProps, maxVisibleCount: maxTagCount, renderItem: function (item, index, folded) {
|
|
433
|
+
var label = labelToString(item[labelKey]);
|
|
434
|
+
var body = (React__default.createElement("div", { key: index, className: cx('Select-value', {
|
|
435
|
+
'is-disabled': disabled || item.disabled,
|
|
436
|
+
'is-invalid': showInvalidMatch ? item.__unmatched : false
|
|
437
|
+
}) },
|
|
438
|
+
React__default.createElement("span", { className: cx('Select-valueLabel') }, renderValueLabel ? renderValueLabel(item) : label),
|
|
439
|
+
React__default.createElement("span", { className: cx('Select-valueIcon', {
|
|
440
|
+
'is-disabled': disabled || item.disabled
|
|
441
|
+
}), onClick: _this.removeItem.bind(_this, index) },
|
|
442
|
+
React__default.createElement(Icon, { icon: "close", className: "icon" }))));
|
|
443
|
+
return folded ? (body) : (React__default.createElement(TooltipWrapper, { container: popOverContainer, placement: 'top', tooltip: label, trigger: 'hover', key: index }, body));
|
|
444
|
+
} }));
|
|
445
|
+
}
|
|
446
|
+
else {
|
|
447
|
+
return selection.map(function (item, index) {
|
|
441
448
|
var label = labelToString(item[labelKey]);
|
|
442
|
-
if (
|
|
443
|
-
return (React__default.createElement(
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
var label = labelToString(item[labelKey]);
|
|
448
|
-
return (React__default.createElement("div", { key: itemIndex, className: cx('Select-value', {
|
|
449
|
-
'is-disabled': disabled,
|
|
450
|
-
'is-invalid': showInvalidMatch
|
|
451
|
-
? item.__unmatched
|
|
452
|
-
: false
|
|
453
|
-
}) },
|
|
454
|
-
React__default.createElement("span", { className: cx('Select-valueLabel') }, renderValueLabel
|
|
455
|
-
? renderValueLabel(item)
|
|
456
|
-
: label),
|
|
457
|
-
React__default.createElement("span", { className: cx('Select-valueIcon', {
|
|
458
|
-
'is-disabled': disabled || item.disabled
|
|
459
|
-
}), onClick: _this.removeItem.bind(_this, itemIndex) },
|
|
460
|
-
React__default.createElement(Icon, { icon: "close", className: "icon" }))));
|
|
461
|
-
}))); } }) },
|
|
462
|
-
React__default.createElement("div", { className: cx('Select-value', {
|
|
463
|
-
'is-disabled': disabled,
|
|
464
|
-
'is-invalid': showInvalidMatch ? item.__unmatched : false
|
|
465
|
-
}), onClick: function (e) {
|
|
466
|
-
return e.stopPropagation();
|
|
467
|
-
} },
|
|
468
|
-
React__default.createElement("span", { className: cx('Select-valueLabel') }, renderValueLabel ? renderValueLabel(item) : label))));
|
|
449
|
+
if (!multiple) {
|
|
450
|
+
return (React__default.createElement("div", { className: cx('Select-value', {
|
|
451
|
+
'is-disabled': disabled,
|
|
452
|
+
'is-invalid': showInvalidMatch ? item.__unmatched : false
|
|
453
|
+
}), key: index }, renderValueLabel ? renderValueLabel(item) : label));
|
|
469
454
|
}
|
|
470
|
-
return (React__default.createElement(TooltipWrapper, { container: popOverContainer, placement: 'top', tooltip: label, trigger: 'hover', key: index },
|
|
455
|
+
return valuesNoWrap ? ("".concat(label).concat(index === selection.length - 1 ? '' : ' + ')) : (React__default.createElement(TooltipWrapper, { container: popOverContainer, placement: 'top', tooltip: label, trigger: 'hover', key: index },
|
|
471
456
|
React__default.createElement("div", { className: cx('Select-value', {
|
|
472
|
-
'is-disabled': disabled,
|
|
457
|
+
'is-disabled': disabled || item.disabled,
|
|
473
458
|
'is-invalid': showInvalidMatch ? item.__unmatched : false
|
|
474
459
|
}) },
|
|
475
460
|
React__default.createElement("span", { className: cx('Select-valueLabel') }, renderValueLabel ? renderValueLabel(item) : label),
|
|
@@ -479,25 +464,6 @@ var Select = /** @class */ (function (_super) {
|
|
|
479
464
|
React__default.createElement(Icon, { icon: "close", className: "icon" })))));
|
|
480
465
|
});
|
|
481
466
|
}
|
|
482
|
-
return selection.map(function (item, index) {
|
|
483
|
-
var label = labelToString(item[labelKey]);
|
|
484
|
-
if (!multiple) {
|
|
485
|
-
return (React__default.createElement("div", { className: cx('Select-value', {
|
|
486
|
-
'is-disabled': disabled,
|
|
487
|
-
'is-invalid': showInvalidMatch ? item.__unmatched : false
|
|
488
|
-
}), key: index }, renderValueLabel ? renderValueLabel(item) : label));
|
|
489
|
-
}
|
|
490
|
-
return valuesNoWrap ? ("".concat(label).concat(index === selection.length - 1 ? '' : ' + ')) : (React__default.createElement(TooltipWrapper, { container: popOverContainer, placement: 'top', tooltip: label, trigger: 'hover', key: index },
|
|
491
|
-
React__default.createElement("div", { className: cx('Select-value', {
|
|
492
|
-
'is-disabled': disabled,
|
|
493
|
-
'is-invalid': showInvalidMatch ? item.__unmatched : false
|
|
494
|
-
}) },
|
|
495
|
-
React__default.createElement("span", { className: cx('Select-valueLabel') }, renderValueLabel ? renderValueLabel(item) : label),
|
|
496
|
-
React__default.createElement("span", { className: cx('Select-valueIcon', {
|
|
497
|
-
'is-disabled': disabled || item.disabled
|
|
498
|
-
}), onClick: _this.removeItem.bind(_this, index) },
|
|
499
|
-
React__default.createElement(Icon, { icon: "close", className: "icon" })))));
|
|
500
|
-
});
|
|
501
467
|
};
|
|
502
468
|
Select.prototype.renderOuter = function (_a) {
|
|
503
469
|
var _this = this;
|
package/esm/components/Shape.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v6.13.0-beta.
|
|
2
|
+
* amis-ui v6.13.0-beta.21
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -117,6 +117,8 @@ import 'lodash/debounce';
|
|
|
117
117
|
import 'react-overlays';
|
|
118
118
|
import './DropdownContextMenus.js';
|
|
119
119
|
import './HorizontalScroll.js';
|
|
120
|
+
import './AutoFoldedList.js';
|
|
121
|
+
import './MixedInput.js';
|
|
120
122
|
import 'lodash/isFunction';
|
|
121
123
|
import 'lodash/pick';
|
|
122
124
|
import '../locale/zh-CN.js';
|
package/esm/components/Slider.js
CHANGED
package/esm/components/Steps.js
CHANGED
package/esm/components/Switch.js
CHANGED
package/esm/components/Tab.js
CHANGED
package/esm/components/Table.js
CHANGED
package/esm/components/Tabs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v6.13.0-beta.
|
|
2
|
+
* amis-ui v6.13.0-beta.21
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -145,7 +145,9 @@ var TabsTransfer = /** @class */ (function (_super) {
|
|
|
145
145
|
tag: option
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
: undefined,
|
|
148
|
+
: undefined,
|
|
149
|
+
// itemHeight={itemHeight}
|
|
150
|
+
virtualThreshold: virtualThreshold, valueField: valueField, labelField: labelField, initiallyOpen: initiallyOpen, testIdBuilder: selTIB })) : selectMode === 'chained' ? (React__default.createElement(ChainedCheckboxes, { className: cx('Transfer-checkboxes'), options: option.children || [], value: value, multiple: multiple, disabled: disabled, onChange: onChange, option2value: option2value, onDeferLoad: onDeferLoad, defaultSelectedIndex: option.defaultSelectedIndex, itemRender: optionItemRender
|
|
149
151
|
? function (item, states) {
|
|
150
152
|
return optionItemRender(item, states, {
|
|
151
153
|
panel: 'tab',
|
package/esm/components/Tag.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export interface TagProps extends ThemeProps {
|
|
|
18
18
|
onMouseEnter?: (e: React.MouseEvent) => void;
|
|
19
19
|
onMouseLeave?: (e: React.MouseEvent) => void;
|
|
20
20
|
children?: React.ReactNode | Array<React.ReactNode>;
|
|
21
|
+
dataIndex?: number;
|
|
21
22
|
}
|
|
22
23
|
export interface CheckableTagProps extends TagProps {
|
|
23
24
|
onClick?: (e: React.MouseEvent) => void;
|
|
@@ -85,6 +86,7 @@ declare const _default: {
|
|
|
85
86
|
closable?: boolean | undefined;
|
|
86
87
|
displayMode?: "status" | "normal" | "rounded" | undefined;
|
|
87
88
|
closeIcon?: React.ReactNode;
|
|
89
|
+
dataIndex?: number | undefined;
|
|
88
90
|
} & {
|
|
89
91
|
className?: string | undefined;
|
|
90
92
|
style?: React.CSSProperties | undefined;
|
|
@@ -111,6 +113,7 @@ declare const _default: {
|
|
|
111
113
|
closable?: boolean | undefined;
|
|
112
114
|
displayMode?: "status" | "normal" | "rounded" | undefined;
|
|
113
115
|
closeIcon?: React.ReactNode;
|
|
116
|
+
dataIndex?: number | undefined;
|
|
114
117
|
} & {
|
|
115
118
|
className?: string | undefined;
|
|
116
119
|
style?: React.CSSProperties | undefined;
|
|
@@ -133,6 +136,7 @@ declare const _default: {
|
|
|
133
136
|
closable?: boolean | undefined;
|
|
134
137
|
displayMode?: "status" | "normal" | "rounded" | undefined;
|
|
135
138
|
closeIcon?: React.ReactNode;
|
|
139
|
+
dataIndex?: number | undefined;
|
|
136
140
|
} & {
|
|
137
141
|
className?: string | undefined;
|
|
138
142
|
style?: React.CSSProperties | undefined;
|
|
@@ -159,6 +163,7 @@ declare const _default: {
|
|
|
159
163
|
closable?: boolean | undefined;
|
|
160
164
|
displayMode?: "status" | "normal" | "rounded" | undefined;
|
|
161
165
|
closeIcon?: React.ReactNode;
|
|
166
|
+
dataIndex?: number | undefined;
|
|
162
167
|
} & {
|
|
163
168
|
className?: string | undefined;
|
|
164
169
|
style?: React.CSSProperties | undefined;
|
|
@@ -182,6 +187,7 @@ declare const _default: {
|
|
|
182
187
|
closable?: boolean | undefined;
|
|
183
188
|
displayMode?: "status" | "normal" | "rounded" | undefined;
|
|
184
189
|
closeIcon?: React.ReactNode;
|
|
190
|
+
dataIndex?: number | undefined;
|
|
185
191
|
} & {
|
|
186
192
|
className?: string | undefined;
|
|
187
193
|
style?: React.CSSProperties | undefined;
|
|
@@ -203,6 +209,7 @@ declare const _default: {
|
|
|
203
209
|
closable?: boolean | undefined;
|
|
204
210
|
displayMode?: "status" | "normal" | "rounded" | undefined;
|
|
205
211
|
closeIcon?: React.ReactNode;
|
|
212
|
+
dataIndex?: number | undefined;
|
|
206
213
|
} & {
|
|
207
214
|
className?: string | undefined;
|
|
208
215
|
style?: React.CSSProperties | undefined;
|
|
@@ -226,6 +233,7 @@ declare const _default: {
|
|
|
226
233
|
closable?: boolean | undefined;
|
|
227
234
|
displayMode?: "status" | "normal" | "rounded" | undefined;
|
|
228
235
|
closeIcon?: React.ReactNode;
|
|
236
|
+
dataIndex?: number | undefined;
|
|
229
237
|
} & {
|
|
230
238
|
className?: string | undefined;
|
|
231
239
|
style?: React.CSSProperties | undefined;
|
|
@@ -247,6 +255,7 @@ declare const _default: {
|
|
|
247
255
|
closable?: boolean | undefined;
|
|
248
256
|
displayMode?: "status" | "normal" | "rounded" | undefined;
|
|
249
257
|
closeIcon?: React.ReactNode;
|
|
258
|
+
dataIndex?: number | undefined;
|
|
250
259
|
} & {
|
|
251
260
|
className?: string | undefined;
|
|
252
261
|
style?: React.CSSProperties | undefined;
|
|
@@ -268,6 +277,7 @@ declare const _default: {
|
|
|
268
277
|
closable?: boolean | undefined;
|
|
269
278
|
displayMode?: "status" | "normal" | "rounded" | undefined;
|
|
270
279
|
closeIcon?: React.ReactNode;
|
|
280
|
+
dataIndex?: number | undefined;
|
|
271
281
|
} & {
|
|
272
282
|
className?: string | undefined;
|
|
273
283
|
style?: React.CSSProperties | undefined;
|
|
@@ -289,6 +299,7 @@ declare const _default: {
|
|
|
289
299
|
closable?: boolean | undefined;
|
|
290
300
|
displayMode?: "status" | "normal" | "rounded" | undefined;
|
|
291
301
|
closeIcon?: React.ReactNode;
|
|
302
|
+
dataIndex?: number | undefined;
|
|
292
303
|
} & {
|
|
293
304
|
className?: string | undefined;
|
|
294
305
|
style?: React.CSSProperties | undefined;
|
package/esm/components/Tag.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v6.13.0-beta.
|
|
2
|
+
* amis-ui v6.13.0-beta.21
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -51,7 +51,7 @@ var Tag = /** @class */ (function (_super) {
|
|
|
51
51
|
};
|
|
52
52
|
Tag.prototype.render = function () {
|
|
53
53
|
var _a;
|
|
54
|
-
var _b = this.props, children = _b.children, cx = _b.classnames, className = _b.className, displayMode = _b.displayMode, disabled = _b.disabled, color = _b.color, icon = _b.icon, style = _b.style, label = _b.label;
|
|
54
|
+
var _b = this.props, children = _b.children, cx = _b.classnames, className = _b.className, displayMode = _b.displayMode, disabled = _b.disabled, color = _b.color, icon = _b.icon, style = _b.style, label = _b.label, dataIndex = _b.dataIndex;
|
|
55
55
|
var isPresetColor = color && PRESET_COLOR.indexOf(color) !== -1;
|
|
56
56
|
var customColor = color && !isPresetColor ? color : undefined;
|
|
57
57
|
var tagStyle = __assign({ backgroundColor: displayMode === 'normal' ? customColor : undefined, borderColor: displayMode === 'rounded' ? customColor : undefined, color: displayMode === 'rounded' ? customColor : undefined }, style);
|
|
@@ -71,7 +71,7 @@ var Tag = /** @class */ (function (_super) {
|
|
|
71
71
|
_a["Tag--".concat(displayMode, "--").concat(color)] = isPresetColor,
|
|
72
72
|
_a["Tag--".concat(displayMode, "--hasColor")] = color,
|
|
73
73
|
_a["Tag--disabled"] = disabled,
|
|
74
|
-
_a)), style: tagStyle, onClick: this.handleClick, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave },
|
|
74
|
+
_a)), style: tagStyle, onClick: this.handleClick, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, "data-index": dataIndex },
|
|
75
75
|
React__default.createElement("span", { className: cx('Tag-text'), title: typeof label === 'string' ? label : undefined },
|
|
76
76
|
prevIcon,
|
|
77
77
|
label || children),
|
|
@@ -117,11 +117,11 @@ var CheckableTagComp = /** @class */ (function (_super) {
|
|
|
117
117
|
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
118
118
|
};
|
|
119
119
|
CheckableTagComp.prototype.render = function () {
|
|
120
|
-
var _a = this.props, cx = _a.classnames, className = _a.className, disabled = _a.disabled, label = _a.label, children = _a.children, checked = _a.checked, _b = _a.style, style = _b === void 0 ? {} : _b;
|
|
120
|
+
var _a = this.props, cx = _a.classnames, className = _a.className, disabled = _a.disabled, label = _a.label, children = _a.children, checked = _a.checked, _b = _a.style, style = _b === void 0 ? {} : _b, dataIndex = _a.dataIndex;
|
|
121
121
|
return (React__default.createElement("span", { className: cx(className, 'Tag', 'Tag--checkable', {
|
|
122
122
|
'Tag--checkable--checked': checked,
|
|
123
123
|
'Tag--checkable--disabled': disabled
|
|
124
|
-
}), onClick: disabled ? noop : this.handleClick, style: style, title: typeof label === 'string' ? label : undefined }, label || children));
|
|
124
|
+
}), onClick: disabled ? noop : this.handleClick, style: style, title: typeof label === 'string' ? label : undefined, "data-index": dataIndex }, label || children));
|
|
125
125
|
};
|
|
126
126
|
__decorate([
|
|
127
127
|
autobind,
|
package/esm/components/Toast.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v6.13.0-beta.
|
|
2
|
+
* amis-ui v6.13.0-beta.21
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -334,11 +334,15 @@ var Transfer = /** @class */ (function (_super) {
|
|
|
334
334
|
var highlightTxt = searchResult ? inputValue : undefined;
|
|
335
335
|
return mode === 'table' ? (React__default.createElement(TableCheckboxes, { placeholder: noResultsText, className: cx('Transfer-selection'), columns: resultColumns, options: options, value: value, disabled: disabled, onChange: onChange, option2value: option2value, cellRender: cellRender, itemRender: this.optionItemRender, valueField: valueField, multiple: multiple, virtualThreshold: virtualThreshold, itemHeight: itemHeight, virtualListHeight: virtualListHeight, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('search-result') })) : mode === 'tree' ? (React__default.createElement(Tree, { ref: this.domRef, placeholder: noResultsText, className: cx('Transfer-selection'), options: options, value: value, disabled: disabled, onChange: function (value) {
|
|
336
336
|
return _this.handleSearchTreeChange(value, options, props);
|
|
337
|
-
}, joinValues: false, showIcon: false, multiple: multiple, cascade: true, onlyChildren: onlyChildren !== null && onlyChildren !== void 0 ? onlyChildren : !isTreeDeferLoad, highlightTxt: highlightTxt, itemRender: treeItemRender, labelField: labelField, valueField: valueField, virtualThreshold: virtualThreshold,
|
|
337
|
+
}, joinValues: false, showIcon: false, multiple: multiple, cascade: true, onlyChildren: onlyChildren !== null && onlyChildren !== void 0 ? onlyChildren : !isTreeDeferLoad, highlightTxt: highlightTxt, itemRender: treeItemRender, labelField: labelField, valueField: valueField, virtualThreshold: virtualThreshold,
|
|
338
|
+
// itemHeight={itemHeight}
|
|
339
|
+
checkAllLabel: checkAllLabel, checkAll: checkAll, autoCheckChildren: autoCheckChildren })) : mode === 'chained' ? (React__default.createElement(ChainedCheckboxes, { placeholder: noResultsText, className: cx('Transfer-selection'), options: options, value: value, disabled: disabled, onChange: onChange, option2value: option2value, itemRender: this.optionItemRender, multiple: multiple, labelField: labelField, valueField: valueField, virtualThreshold: virtualThreshold, itemHeight: itemHeight, virtualListHeight: virtualListHeight, checkAllLabel: checkAllLabel, checkAll: checkAll })) : (React__default.createElement(GroupedSelection, { placeholder: noResultsText, className: cx('Transfer-selection'), options: options, value: value, disabled: disabled, onChange: onChange, option2value: option2value, itemRender: this.optionItemRender, multiple: multiple, labelField: labelField, valueField: valueField, virtualThreshold: virtualThreshold, itemHeight: itemHeight, virtualListHeight: virtualListHeight, checkAllLabel: checkAllLabel, checkAll: checkAll, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('search-result') }));
|
|
338
340
|
};
|
|
339
341
|
Transfer.prototype.renderOptions = function (props) {
|
|
340
342
|
var selectMode = props.selectMode, columns = props.columns, options = props.options, value = props.value, disabled = props.disabled, onChange = props.onChange, option2value = props.option2value, cx = props.classnames, onDeferLoad = props.onDeferLoad, leftOptions = props.leftOptions, leftMode = props.leftMode, rightMode = props.rightMode, cellRender = props.cellRender, leftDefaultValue = props.leftDefaultValue, multiple = props.multiple, noResultsText = props.noResultsText, labelField = props.labelField, _a = props.valueField, valueField = _a === void 0 ? 'value' : _a, _b = props.deferField, deferField = _b === void 0 ? 'defer' : _b, virtualThreshold = props.virtualThreshold, itemHeight = props.itemHeight, virtualListHeight = props.virtualListHeight, loadingConfig = props.loadingConfig, checkAll = props.checkAll, checkAllLabel = props.checkAllLabel, onlyChildren = props.onlyChildren, _c = props.autoCheckChildren, autoCheckChildren = _c === void 0 ? true : _c, _d = props.initiallyOpen, initiallyOpen = _d === void 0 ? true : _d, testIdBuilder = props.testIdBuilder;
|
|
341
|
-
return selectMode === 'table' ? (React__default.createElement(TableCheckboxes, { className: cx('Transfer-selection'), columns: columns, options: options || [], value: value, disabled: disabled, onChange: onChange, option2value: option2value, onDeferLoad: onDeferLoad, cellRender: cellRender, multiple: multiple, virtualThreshold: virtualThreshold, itemHeight: itemHeight, virtualListHeight: virtualListHeight, checkAllLabel: checkAllLabel, checkAll: checkAll, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('selection') })) : selectMode === 'tree' ? (React__default.createElement(Tree, { ref: this.domRef, placeholder: noResultsText, className: cx('Transfer-selection'), options: options, value: value, onChange: onChange, onlyChildren: onlyChildren !== null && onlyChildren !== void 0 ? onlyChildren : !this.state.isTreeDeferLoad, itemRender: this.optionItemRender, onDeferLoad: onDeferLoad, joinValues: false, showIcon: false, multiple: multiple, cascade: true, labelField: labelField, valueField: valueField, virtualThreshold: virtualThreshold,
|
|
343
|
+
return selectMode === 'table' ? (React__default.createElement(TableCheckboxes, { className: cx('Transfer-selection'), columns: columns, options: options || [], value: value, disabled: disabled, onChange: onChange, option2value: option2value, onDeferLoad: onDeferLoad, cellRender: cellRender, multiple: multiple, virtualThreshold: virtualThreshold, itemHeight: itemHeight, virtualListHeight: virtualListHeight, checkAllLabel: checkAllLabel, checkAll: checkAll, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('selection') })) : selectMode === 'tree' ? (React__default.createElement(Tree, { ref: this.domRef, placeholder: noResultsText, className: cx('Transfer-selection'), options: options, value: value, onChange: onChange, onlyChildren: onlyChildren !== null && onlyChildren !== void 0 ? onlyChildren : !this.state.isTreeDeferLoad, itemRender: this.optionItemRender, onDeferLoad: onDeferLoad, joinValues: false, showIcon: false, multiple: multiple, cascade: true, labelField: labelField, valueField: valueField, virtualThreshold: virtualThreshold,
|
|
344
|
+
// itemHeight={itemHeight}
|
|
345
|
+
loadingConfig: loadingConfig, checkAllLabel: checkAllLabel, checkAll: checkAll, initiallyOpen: initiallyOpen, autoCheckChildren: autoCheckChildren, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('selection') })) : selectMode === 'chained' ? (React__default.createElement(ChainedCheckboxes, { className: cx('Transfer-selection'), options: options || [], value: value, disabled: disabled, onChange: onChange, option2value: option2value, onDeferLoad: onDeferLoad, itemRender: this.optionItemRender, multiple: multiple, labelField: labelField, valueField: valueField, virtualThreshold: virtualThreshold, itemHeight: itemHeight, virtualListHeight: virtualListHeight, loadingConfig: loadingConfig, checkAllLabel: checkAllLabel, checkAll: checkAll, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('selection') })) : selectMode === 'associated' ? (React__default.createElement(AssociatedCheckboxes, { className: cx('Transfer-selection'), options: options || [], value: value, disabled: disabled, onChange: onChange, option2value: option2value, onDeferLoad: onDeferLoad, columns: columns, leftOptions: leftOptions || [], leftMode: leftMode, rightMode: rightMode, leftDefaultValue: leftDefaultValue, itemRender: this.optionItemRender, multiple: multiple, labelField: labelField, valueField: valueField, deferField: deferField, virtualThreshold: virtualThreshold, itemHeight: itemHeight, virtualListHeight: virtualListHeight, loadingConfig: loadingConfig, checkAllLabel: checkAllLabel, checkAll: checkAll, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('selection') })) : (React__default.createElement(GroupedSelection, { className: cx('Transfer-selection'), options: options || [], value: value, disabled: disabled, onChange: onChange, option2value: option2value, onDeferLoad: onDeferLoad, itemRender: this.optionItemRender, multiple: multiple, labelField: labelField, valueField: valueField, virtualThreshold: virtualThreshold, itemHeight: itemHeight, virtualListHeight: virtualListHeight, checkAllLabel: checkAllLabel, checkAll: checkAll, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('selection') }));
|
|
342
346
|
};
|
|
343
347
|
Transfer.prototype.renderResult = function () {
|
|
344
348
|
var _a = this.props, columns = _a.columns, options = _a.options, disabled = _a.disabled, option2value = _a.option2value, cx = _a.classnames, cellRender = _a.cellRender, onChange = _a.onChange, value = _a.value, resultSearchable = _a.resultSearchable, resultSearchPlaceholder = _a.resultSearchPlaceholder, onResultSearch = _a.onResultSearch, sortable = _a.sortable, labelField = _a.labelField, __ = _a.translate, _b = _a.placeholder, placeholder = _b === void 0 ? __('Transfer.selectFromLeft') : _b, virtualThreshold = _a.virtualThreshold, itemHeight = _a.itemHeight, loadingConfig = _a.loadingConfig, showInvalidMatch = _a.showInvalidMatch, pagination = _a.pagination, accumulatedOptions = _a.accumulatedOptions, testIdBuilder = _a.testIdBuilder;
|