amis-ui 6.2.2 → 6.4.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/_commonjsHelpers.js +10 -0
- package/esm/_virtual/pdf.worker.min.js +8 -0
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.d.ts +124 -122
- package/esm/components/Alert.js +10 -6
- package/esm/components/Alert2.d.ts +20 -20
- package/esm/components/Alert2.js +1 -1
- package/esm/components/AnchorNav.d.ts +20 -20
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/ArrayInput.d.ts +40 -40
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.d.ts +2 -1
- package/esm/components/AsideNav.js +6 -3
- package/esm/components/AssociatedSelection.d.ts +120 -120
- package/esm/components/AssociatedSelection.js +4 -4
- package/esm/components/Avatar.d.ts +140 -140
- 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.d.ts +3 -0
- package/esm/components/Breadcrumb.js +7 -6
- package/esm/components/Button.d.ts +32 -31
- package/esm/components/Button.js +4 -4
- package/esm/components/CalendarMobile.d.ts +45 -40
- package/esm/components/CalendarMobile.js +41 -6
- package/esm/components/Card.d.ts +140 -140
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedDropdownSelection.d.ts +120 -120
- package/esm/components/ChainedDropdownSelection.js +1 -1
- package/esm/components/ChainedSelection.d.ts +120 -120
- package/esm/components/ChainedSelection.js +8 -6
- package/esm/components/Checkbox.d.ts +12 -11
- package/esm/components/Checkbox.js +7 -7
- package/esm/components/CityArea.js +1 -1
- package/esm/components/CityDB.d.ts +1 -1
- package/esm/components/CityDB.js +377 -889
- package/esm/components/CodeMirror.d.ts +1 -0
- package/esm/components/CodeMirror.js +16 -5
- package/esm/components/Collapse.d.ts +140 -140
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.d.ts +30 -30
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.d.ts +80 -80
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConfirmBox.d.ts +81 -80
- package/esm/components/ConfirmBox.js +6 -3
- package/esm/components/ContextMenu.d.ts +17 -3
- package/esm/components/ContextMenu.js +72 -20
- package/esm/components/DatePicker.d.ts +84 -82
- package/esm/components/DatePicker.js +12 -12
- package/esm/components/DateRangePicker.d.ts +133 -129
- package/esm/components/DateRangePicker.js +40 -27
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.d.ts +30 -30
- package/esm/components/Drawer.js +1 -1
- package/esm/components/DropDownSelection.d.ts +120 -120
- package/esm/components/DropDownSelection.js +1 -1
- package/esm/components/Editor.d.ts +120 -120
- package/esm/components/Editor.js +3 -3
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/GaodeMapPicker.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.d.ts +120 -120
- package/esm/components/GroupedSelection.js +5 -4
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.d.ts +40 -40
- package/esm/components/ImageGallery.js +2 -1
- package/esm/components/Input.d.ts +3 -1
- package/esm/components/Input.js +3 -3
- package/esm/components/InputBox.d.ts +14 -13
- package/esm/components/InputBox.js +7 -7
- package/esm/components/InputBoxWithSuggestion.js +7 -7
- package/esm/components/InputTable.js +1 -1
- package/esm/components/Layout.d.ts +10 -10
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.d.ts +82 -80
- package/esm/components/ListMenu.js +3 -3
- package/esm/components/LocationPicker.d.ts +40 -40
- package/esm/components/LocationPicker.js +1 -1
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Modal.d.ts +120 -120
- package/esm/components/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +120 -120
- package/esm/components/MultilineText.d.ts +40 -40
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.d.ts +30 -21
- package/esm/components/NumberInput.js +36 -6
- package/esm/components/OverflowTpl.js +1 -1
- package/esm/components/Pagination.d.ts +200 -110
- package/esm/components/Pagination.js +21 -21
- package/esm/components/PdfViewer.d.ts +49 -0
- package/esm/components/PdfViewer.js +85 -0
- package/esm/components/Picker.d.ts +1 -0
- package/esm/components/Picker.js +4 -4
- package/esm/components/PickerColumn.d.ts +1 -0
- package/esm/components/PickerColumn.js +8 -6
- package/esm/components/PickerContainer.d.ts +1 -2
- package/esm/components/PickerContainer.js +26 -16
- package/esm/components/PopOverContainer.d.ts +1 -0
- package/esm/components/PopOverContainer.js +3 -3
- package/esm/components/PopUp.d.ts +120 -120
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.d.ts +60 -60
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.d.ts +12 -10
- package/esm/components/Radios.js +4 -3
- package/esm/components/Range.js +1 -1
- package/esm/components/Rating.d.ts +20 -20
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.d.ts +82 -81
- package/esm/components/ResultBox.js +25 -21
- package/esm/components/ResultList.d.ts +42 -40
- package/esm/components/ResultList.js +5 -4
- package/esm/components/ResultTableList.d.ts +120 -120
- package/esm/components/ResultTableList.js +5 -4
- package/esm/components/ResultTreeList.d.ts +40 -40
- package/esm/components/ResultTreeList.js +3 -3
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.d.ts +82 -81
- package/esm/components/SearchBox.js +8 -8
- package/esm/components/Select.d.ts +1363 -1354
- package/esm/components/Select.js +13 -12
- package/esm/components/SelectMobile.js +22 -19
- package/esm/components/Selection.d.ts +122 -120
- package/esm/components/Selection.js +1 -1
- package/esm/components/Signature.d.ts +280 -0
- package/esm/components/Signature.js +271 -0
- package/esm/components/SparkLine.d.ts +40 -40
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.d.ts +60 -60
- package/esm/components/Spinner.js +1 -1
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.d.ts +12 -12
- package/esm/components/Switch.js +4 -4
- package/esm/components/TableSelection.d.ts +120 -120
- package/esm/components/TableSelection.js +6 -5
- package/esm/components/Tabs.d.ts +83 -81
- package/esm/components/Tabs.js +21 -22
- package/esm/components/TabsTransfer.d.ts +40 -40
- package/esm/components/TabsTransfer.js +16 -14
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.d.ts +70 -70
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.d.ts +42 -42
- package/esm/components/Textarea.js +4 -4
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.d.ts +1 -1
- package/esm/components/TimelineItem.js +1 -1
- package/esm/components/Tinymce.js +7 -4
- package/esm/components/TitleBar.d.ts +10 -10
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.d.ts +120 -120
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.d.ts +32 -32
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.d.ts +174 -172
- package/esm/components/Transfer.js +16 -16
- package/esm/components/TransferDropDown.d.ts +160 -160
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.d.ts +206 -210
- package/esm/components/Tree.js +32 -30
- package/esm/components/TreeSelection.d.ts +120 -120
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.d.ts +40 -40
- package/esm/components/UserSelect.js +1 -1
- package/esm/components/UserTabSelect.d.ts +40 -40
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.d.ts +9 -0
- package/esm/components/WithRemoteConfig.js +19 -3
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.d.ts +2 -1
- package/esm/components/calendar/Calendar.js +7 -6
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.d.ts +2 -1
- package/esm/components/calendar/DaysView.js +17 -15
- package/esm/components/calendar/MonthsView.d.ts +2 -0
- package/esm/components/calendar/MonthsView.js +8 -6
- package/esm/components/calendar/QuartersView.d.ts +2 -0
- package/esm/components/calendar/QuartersView.js +7 -6
- package/esm/components/calendar/TimeView.d.ts +2 -0
- package/esm/components/calendar/TimeView.js +8 -7
- package/esm/components/calendar/YearsView.d.ts +2 -0
- package/esm/components/calendar/YearsView.js +6 -5
- package/esm/components/condition-builder/Expression.js +1 -1
- 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 +1 -0
- package/esm/components/condition-builder/Value.js +30 -14
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.js +1 -1
- package/esm/components/formula/CodeEditor.d.ts +92 -0
- package/esm/components/formula/CodeEditor.js +99 -0
- package/esm/components/formula/Editor.d.ts +64 -69
- package/esm/components/formula/Editor.js +173 -81
- package/esm/components/formula/FuncList.d.ts +1 -1
- package/esm/components/formula/FuncList.js +10 -9
- package/esm/components/formula/Input.d.ts +68 -54
- package/esm/components/formula/Input.js +45 -102
- package/esm/components/formula/Picker.d.ts +74 -60
- package/esm/components/formula/Picker.js +129 -69
- package/esm/components/formula/VariableList.d.ts +1 -1
- package/esm/components/formula/VariableList.js +26 -12
- package/esm/components/formula/plugin.d.ts +28 -7
- package/esm/components/formula/plugin.js +217 -90
- package/esm/components/icons.d.ts +4 -2
- package/esm/components/icons.js +14 -5
- package/esm/components/index.d.ts +5 -3
- package/esm/components/json-schema/Array.js +2 -2
- package/esm/components/json-schema/Item.d.ts +3 -1
- package/esm/components/json-schema/Item.js +35 -9
- package/esm/components/json-schema/Object.d.ts +3 -1
- package/esm/components/json-schema/Object.js +112 -52
- package/esm/components/json-schema/index.d.ts +53 -50
- package/esm/components/json-schema/index.js +14 -5
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.d.ts +2 -1
- package/esm/components/menu/MenuItem.js +4 -4
- package/esm/components/menu/SubMenu.d.ts +2 -1
- package/esm/components/menu/SubMenu.js +6 -6
- package/esm/components/menu/index.d.ts +66 -63
- package/esm/components/menu/index.js +10 -7
- package/esm/components/schema-editor/Array.js +23 -8
- package/esm/components/schema-editor/Common.d.ts +17 -1
- package/esm/components/schema-editor/Common.js +84 -37
- package/esm/components/schema-editor/Item.js +2 -2
- package/esm/components/schema-editor/Object.d.ts +7 -1
- package/esm/components/schema-editor/Object.js +106 -14
- package/esm/components/schema-editor/SchemaVariableList.d.ts +1 -1
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.d.ts +48 -40
- package/esm/components/schema-editor/index.js +4 -4
- package/esm/components/table/Cell.d.ts +2 -0
- package/esm/components/table/Cell.js +4 -4
- package/esm/components/table/ColGroup.js +1 -1
- package/esm/components/table/Head.d.ts +2 -0
- package/esm/components/table/Head.js +12 -9
- package/esm/components/table/HeadCellDropDown.d.ts +2 -0
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.d.ts +42 -40
- package/esm/components/table/HeadCellFilter.js +8 -8
- package/esm/components/table/HeadCellSelect.d.ts +40 -40
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.d.ts +2 -0
- package/esm/components/table/HeadCellSort.js +8 -8
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/Row.d.ts +2 -0
- package/esm/components/table/Row.js +4 -3
- package/esm/components/table/SummaryRow.js +1 -1
- package/esm/components/table/index.d.ts +162 -160
- package/esm/components/table/index.js +7 -5
- package/esm/components/table/util.d.ts +7 -7
- package/esm/components/table/util.js +4 -2
- 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/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 +21 -0
- 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/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 +20 -0
- 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 +25 -0
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/unfullscreen.svg.js +21 -0
- 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 +4 -2
- package/esm/locale/de-DE.js +27 -11
- package/esm/locale/en-US.js +18 -2
- package/esm/locale/zh-CN.js +19 -3
- package/esm/node_modules/pdfjs-dist/build/pdf.worker.min.js +37 -0
- package/esm/node_modules/smooth-signature/es/index.js +506 -0
- 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/_commonjsHelpers.js +14 -0
- package/lib/_virtual/pdf.worker.min.js +12 -0
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.d.ts +124 -122
- package/lib/components/Alert.js +10 -6
- 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 +12 -11
- package/lib/components/AsideNav.js +5 -2
- package/lib/components/AssociatedSelection.d.ts +80 -80
- package/lib/components/AssociatedSelection.js +4 -4
- package/lib/components/Avatar.d.ts +70 -70
- 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 +1 -1
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.d.ts +3 -0
- package/lib/components/Breadcrumb.js +7 -6
- package/lib/components/Button.d.ts +42 -41
- package/lib/components/Button.js +3 -3
- package/lib/components/CalendarMobile.d.ts +85 -80
- package/lib/components/CalendarMobile.js +41 -6
- package/lib/components/Card.d.ts +110 -110
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedDropdownSelection.d.ts +80 -80
- package/lib/components/ChainedDropdownSelection.js +1 -1
- package/lib/components/ChainedSelection.d.ts +80 -80
- package/lib/components/ChainedSelection.js +8 -6
- package/lib/components/Checkbox.d.ts +12 -11
- package/lib/components/Checkbox.js +6 -6
- package/lib/components/CityArea.js +1 -1
- package/lib/components/CityDB.d.ts +1 -1
- package/lib/components/CityDB.js +377 -889
- package/lib/components/CodeMirror.d.ts +1 -0
- package/lib/components/CodeMirror.js +15 -4
- package/lib/components/Collapse.d.ts +140 -140
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.d.ts +20 -20
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/Combo.js +1 -1
- package/lib/components/ConfirmBox.d.ts +81 -80
- package/lib/components/ConfirmBox.js +6 -3
- package/lib/components/ContextMenu.d.ts +17 -3
- package/lib/components/ContextMenu.js +73 -20
- package/lib/components/DatePicker.d.ts +124 -122
- package/lib/components/DatePicker.js +12 -12
- package/lib/components/DateRangePicker.d.ts +293 -289
- package/lib/components/DateRangePicker.js +40 -27
- 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 +80 -80
- package/lib/components/DropDownSelection.js +1 -1
- package/lib/components/Editor.d.ts +120 -120
- package/lib/components/Editor.js +3 -3
- 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 +80 -80
- package/lib/components/GroupedSelection.js +5 -4
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.d.ts +40 -40
- package/lib/components/ImageGallery.js +2 -1
- package/lib/components/Input.d.ts +3 -1
- package/lib/components/Input.js +3 -3
- package/lib/components/InputBox.d.ts +14 -13
- package/lib/components/InputBox.js +6 -6
- package/lib/components/InputBoxWithSuggestion.js +7 -7
- package/lib/components/InputTable.js +1 -1
- 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 +82 -80
- package/lib/components/ListMenu.js +3 -3
- package/lib/components/LocationPicker.d.ts +40 -40
- package/lib/components/LocationPicker.js +1 -1
- 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 +160 -160
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +30 -21
- package/lib/components/NumberInput.js +36 -6
- package/lib/components/OverflowTpl.js +1 -1
- package/lib/components/Pagination.d.ts +200 -110
- package/lib/components/Pagination.js +20 -20
- package/lib/components/PdfViewer.d.ts +49 -0
- package/lib/components/PdfViewer.js +91 -0
- package/lib/components/Picker.d.ts +1 -0
- package/lib/components/Picker.js +4 -4
- package/lib/components/PickerColumn.d.ts +1 -0
- package/lib/components/PickerColumn.js +7 -5
- package/lib/components/PickerContainer.d.ts +1 -2
- package/lib/components/PickerContainer.js +26 -16
- package/lib/components/PopOverContainer.d.ts +1 -0
- package/lib/components/PopOverContainer.js +3 -3
- package/lib/components/PopUp.d.ts +40 -40
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +50 -50
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.d.ts +12 -10
- package/lib/components/Radios.js +4 -3
- package/lib/components/Range.js +1 -1
- package/lib/components/Rating.d.ts +10 -10
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +82 -81
- package/lib/components/ResultBox.js +25 -21
- package/lib/components/ResultList.d.ts +42 -40
- package/lib/components/ResultList.js +5 -4
- package/lib/components/ResultTableList.d.ts +80 -80
- package/lib/components/ResultTableList.js +5 -4
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +3 -3
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.d.ts +82 -81
- package/lib/components/SearchBox.js +7 -7
- package/lib/components/Select.d.ts +1366 -1357
- package/lib/components/Select.js +12 -11
- package/lib/components/SelectMobile.js +22 -19
- package/lib/components/Selection.d.ts +82 -80
- package/lib/components/Selection.js +1 -1
- package/lib/components/Signature.d.ts +280 -0
- package/lib/components/Signature.js +275 -0
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.d.ts +60 -60
- package/lib/components/Spinner.js +1 -1
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +12 -12
- package/lib/components/Switch.js +3 -3
- package/lib/components/TableSelection.d.ts +80 -80
- package/lib/components/TableSelection.js +6 -5
- package/lib/components/Tabs.d.ts +83 -81
- package/lib/components/Tabs.js +21 -22
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +16 -14
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +70 -70
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +42 -42
- package/lib/components/Textarea.js +3 -3
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.d.ts +1 -1
- package/lib/components/TimelineItem.js +1 -1
- package/lib/components/Tinymce.js +7 -4
- package/lib/components/TitleBar.d.ts +10 -10
- 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 +42 -42
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +192 -190
- package/lib/components/Transfer.js +16 -16
- package/lib/components/TransferDropDown.d.ts +160 -160
- 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 +286 -290
- package/lib/components/Tree.js +31 -29
- package/lib/components/TreeSelection.d.ts +120 -120
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.d.ts +40 -40
- package/lib/components/UserSelect.js +1 -1
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/WithRemoteConfig.d.ts +9 -0
- package/lib/components/WithRemoteConfig.js +19 -3
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.d.ts +2 -1
- package/lib/components/calendar/Calendar.js +6 -5
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.d.ts +2 -1
- package/lib/components/calendar/DaysView.js +17 -15
- package/lib/components/calendar/MonthsView.d.ts +2 -0
- package/lib/components/calendar/MonthsView.js +8 -6
- package/lib/components/calendar/QuartersView.d.ts +2 -0
- package/lib/components/calendar/QuartersView.js +7 -6
- package/lib/components/calendar/TimeView.d.ts +2 -0
- package/lib/components/calendar/TimeView.js +8 -7
- package/lib/components/calendar/YearsView.d.ts +2 -0
- package/lib/components/calendar/YearsView.js +6 -5
- 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 +1 -0
- package/lib/components/condition-builder/Value.js +28 -12
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.d.ts +1 -1
- package/lib/components/condition-builder/index.js +1 -1
- package/lib/components/formula/CodeEditor.d.ts +92 -0
- package/lib/components/formula/CodeEditor.js +110 -0
- package/lib/components/formula/Editor.d.ts +64 -69
- package/lib/components/formula/Editor.js +172 -78
- package/lib/components/formula/FuncList.d.ts +1 -1
- package/lib/components/formula/FuncList.js +10 -9
- package/lib/components/formula/Input.d.ts +68 -54
- package/lib/components/formula/Input.js +43 -101
- package/lib/components/formula/Picker.d.ts +74 -60
- package/lib/components/formula/Picker.js +128 -68
- package/lib/components/formula/VariableList.d.ts +1 -1
- package/lib/components/formula/VariableList.js +24 -10
- package/lib/components/formula/plugin.d.ts +28 -7
- package/lib/components/formula/plugin.js +220 -89
- package/lib/components/icons.d.ts +4 -2
- package/lib/components/icons.js +14 -5
- package/lib/components/index.d.ts +5 -3
- package/lib/components/json-schema/Array.js +3 -3
- package/lib/components/json-schema/Item.d.ts +3 -1
- package/lib/components/json-schema/Item.js +39 -8
- package/lib/components/json-schema/Object.d.ts +3 -1
- package/lib/components/json-schema/Object.js +113 -51
- package/lib/components/json-schema/index.d.ts +53 -50
- package/lib/components/json-schema/index.js +18 -5
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.d.ts +2 -1
- package/lib/components/menu/MenuItem.js +3 -3
- package/lib/components/menu/SubMenu.d.ts +2 -1
- package/lib/components/menu/SubMenu.js +5 -5
- package/lib/components/menu/index.d.ts +86 -83
- package/lib/components/menu/index.js +10 -7
- package/lib/components/schema-editor/Array.js +23 -8
- package/lib/components/schema-editor/Common.d.ts +17 -1
- package/lib/components/schema-editor/Common.js +83 -36
- package/lib/components/schema-editor/Item.js +2 -2
- package/lib/components/schema-editor/Object.d.ts +7 -1
- package/lib/components/schema-editor/Object.js +105 -13
- package/lib/components/schema-editor/SchemaVariableList.d.ts +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.d.ts +48 -40
- package/lib/components/schema-editor/index.js +4 -4
- package/lib/components/table/Cell.d.ts +2 -0
- package/lib/components/table/Cell.js +4 -4
- package/lib/components/table/ColGroup.js +1 -1
- package/lib/components/table/Head.d.ts +2 -0
- package/lib/components/table/Head.js +12 -9
- package/lib/components/table/HeadCellDropDown.d.ts +2 -0
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.d.ts +82 -80
- package/lib/components/table/HeadCellFilter.js +8 -8
- package/lib/components/table/HeadCellSelect.d.ts +40 -40
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.d.ts +2 -0
- package/lib/components/table/HeadCellSort.js +7 -7
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/Row.d.ts +2 -0
- package/lib/components/table/Row.js +4 -3
- package/lib/components/table/SummaryRow.js +1 -1
- package/lib/components/table/index.d.ts +122 -120
- package/lib/components/table/index.js +7 -5
- package/lib/components/table/util.d.ts +7 -7
- package/lib/components/table/util.js +4 -2
- 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/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 +28 -0
- 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/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 +27 -0
- 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 +32 -0
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/unfullscreen.svg.js +28 -0
- 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 +6 -1
- package/lib/locale/de-DE.js +27 -11
- package/lib/locale/en-US.js +18 -2
- package/lib/locale/zh-CN.js +19 -3
- package/lib/node_modules/pdfjs-dist/build/pdf.worker.min.js +41 -0
- package/lib/node_modules/smooth-signature/es/index.js +510 -0
- package/lib/{scss → packages/amis-ui/scss}/helper.scss.js +1 -1
- package/lib/{scss → packages/amis-ui/scss}/themes/ang.scss.js +1 -1
- package/lib/{scss → packages/amis-ui/scss}/themes/antd.scss.js +1 -1
- package/lib/{scss → packages/amis-ui/scss}/themes/cxd.scss.js +1 -1
- package/lib/{scss → packages/amis-ui/scss}/themes/dark.scss.js +1 -1
- package/lib/{scss → packages/amis-ui/scss}/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +1032 -38
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +1032 -38
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +1032 -38
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +1032 -38
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +1032 -38
- package/package.json +4 -3
- package/scss/_components.scss +7 -0
- package/scss/_mixins.scss +1 -0
- package/scss/_thirds.scss +3 -0
- package/scss/components/_collapse.scss +1 -1
- package/scss/components/_condition-builder.scss +18 -0
- package/scss/components/_crud2.scss +4 -0
- package/scss/components/_formula.scss +148 -26
- package/scss/components/_image-gallery.scss +7 -1
- package/scss/components/_input-box.scss +6 -0
- package/scss/components/_json-schema-editor.scss +24 -3
- package/scss/components/_json-schema.scss +5 -0
- package/scss/components/_menu.scss +3 -0
- package/scss/components/_pdf_viewer.scss +47 -0
- package/scss/components/_signature.scss +97 -0
- package/scss/components/_table.scss +6 -1
- package/scss/components/_tabs.scss +10 -4
- package/scss/components/form/_combo.scss +1 -0
- package/scss/components/form/_form.scss +10 -0
- package/scss/components/form/_icon-select.scss +3 -0
- package/scss/components/form/_picker.scss +2 -1
- package/scss/components/form/_tag.scss +2 -1
- package/scss/components/form/_text.scss +4 -4
- package/scss/themes/_common.scss +2 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v6.
|
|
2
|
+
* amis-ui v6.4.0
|
|
3
3
|
* Copyright 2018-2024 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -66,7 +66,7 @@ var ResultBox = /** @class */ (function (_super) {
|
|
|
66
66
|
};
|
|
67
67
|
ResultBox.prototype.renderMultipeTags = function (tags) {
|
|
68
68
|
var _this = this;
|
|
69
|
-
var _a = this.props, maxTagCount = _a.maxTagCount, overflowTagPopover = _a.overflowTagPopover, itemRender = _a.itemRender, cx = _a.classnames, showInvalidMatch = _a.showInvalidMatch, popOverContainer = _a.popOverContainer;
|
|
69
|
+
var _a = this.props, maxTagCount = _a.maxTagCount, overflowTagPopover = _a.overflowTagPopover, itemRender = _a.itemRender, cx = _a.classnames, showInvalidMatch = _a.showInvalidMatch, popOverContainer = _a.popOverContainer, testIdBuilder = _a.testIdBuilder;
|
|
70
70
|
if (maxTagCount != null &&
|
|
71
71
|
isInteger(Math.floor(maxTagCount)) &&
|
|
72
72
|
Math.floor(maxTagCount) >= 0 &&
|
|
@@ -77,43 +77,47 @@ var ResultBox = /** @class */ (function (_super) {
|
|
|
77
77
|
{ label: "+ ".concat(tags.length - maxVisibleCount_1, " ...") }
|
|
78
78
|
], false).map(function (item, index) {
|
|
79
79
|
var isShowInvalid = showInvalidMatch && (item === null || item === void 0 ? void 0 : item.__unmatched);
|
|
80
|
+
var itemTIB = testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild(item.value || index);
|
|
80
81
|
return index === maxVisibleCount_1 ? (React__default.createElement(TooltipWrapper, { key: tags.length, container: popOverContainer, tooltip: __assign(__assign({}, tooltipProps_1), { children: function () { return (React__default.createElement("div", { className: cx('ResultBox-overflow-wrapper') }, tags
|
|
81
82
|
.slice(maxVisibleCount_1, tags.length)
|
|
82
83
|
.map(function (item, index) {
|
|
83
84
|
var itemIndex = index + maxVisibleCount_1;
|
|
84
|
-
return (React__default.createElement("div", { className: cx('ResultBox-value', {
|
|
85
|
+
return (React__default.createElement("div", __assign({ className: cx('ResultBox-value', {
|
|
85
86
|
'is-invalid': showInvalidMatch && (item === null || item === void 0 ? void 0 : item.__unmatched)
|
|
86
|
-
}), key: itemIndex },
|
|
87
|
+
}), key: itemIndex }, itemTIB === null || itemTIB === void 0 ? void 0 : itemTIB.getTestId()),
|
|
87
88
|
React__default.createElement("span", { className: cx('ResultBox-valueLabel') }, itemRender(item)),
|
|
88
|
-
React__default.createElement("a", { "data-index": itemIndex, onClick: _this.removeItem },
|
|
89
|
+
React__default.createElement("a", __assign({ "data-index": itemIndex, onClick: _this.removeItem }, itemTIB === null || itemTIB === void 0 ? void 0 : itemTIB.getChild('close').getTestId()),
|
|
89
90
|
React__default.createElement(Icon, { icon: "close", className: "icon" }))));
|
|
90
91
|
}))); } }) },
|
|
91
92
|
React__default.createElement("div", { className: cx('ResultBox-value', {
|
|
92
93
|
'is-invalid': isShowInvalid
|
|
93
94
|
}), key: index },
|
|
94
95
|
React__default.createElement("span", { className: cx('ResultBox-valueLabel') }, item.label)))) : (React__default.createElement(TooltipWrapper, { container: popOverContainer, placement: 'top', tooltip: item['label'], trigger: 'hover', key: index },
|
|
95
|
-
React__default.createElement("div", { className: cx('ResultBox-value', {
|
|
96
|
+
React__default.createElement("div", __assign({ className: cx('ResultBox-value', {
|
|
96
97
|
'is-invalid': isShowInvalid
|
|
97
|
-
}) },
|
|
98
|
+
}) }, itemTIB === null || itemTIB === void 0 ? void 0 : itemTIB.getTestId()),
|
|
98
99
|
React__default.createElement("span", { className: cx('ResultBox-valueLabel') }, itemRender(item)),
|
|
99
|
-
React__default.createElement("a", { "data-index": index, onClick: _this.removeItem },
|
|
100
|
+
React__default.createElement("a", __assign({ "data-index": index, onClick: _this.removeItem }, itemTIB === null || itemTIB === void 0 ? void 0 : itemTIB.getChild('close').getTestId()),
|
|
100
101
|
React__default.createElement(Icon, { icon: "close", className: "icon" })))));
|
|
101
102
|
});
|
|
102
103
|
}
|
|
103
|
-
return tags.map(function (item, index) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
React__default.createElement(
|
|
104
|
+
return tags.map(function (item, index) {
|
|
105
|
+
var itemTIB = testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild(index);
|
|
106
|
+
return (React__default.createElement(TooltipWrapper, { container: popOverContainer, placement: 'top', tooltip: item['label'], trigger: 'hover', key: index },
|
|
107
|
+
React__default.createElement("div", __assign({ className: cx('ResultBox-value', {
|
|
108
|
+
'is-invalid': showInvalidMatch && (item === null || item === void 0 ? void 0 : item.__unmatched)
|
|
109
|
+
}) }, itemTIB === null || itemTIB === void 0 ? void 0 : itemTIB.getTestId()),
|
|
110
|
+
React__default.createElement("span", { className: cx('ResultBox-valueLabel') }, itemRender(item)),
|
|
111
|
+
React__default.createElement("a", __assign({ "data-index": index, onClick: _this.removeItem }, itemTIB === null || itemTIB === void 0 ? void 0 : itemTIB.getChild('close').getTestId()),
|
|
112
|
+
React__default.createElement(Icon, { icon: "close", className: "icon" })))));
|
|
113
|
+
});
|
|
110
114
|
};
|
|
111
115
|
ResultBox.prototype.render = function () {
|
|
112
116
|
var _a;
|
|
113
117
|
/** 不需要透传给Input的属性要解构出来 */
|
|
114
|
-
var _b = this.props, className = _b.className, cx = _b.classnames; _b.classPrefix; var clearable = _b.clearable, disabled = _b.disabled, hasError = _b.hasError, result = _b.result, value = _b.value, placeholder = _b.placeholder, children = _b.children, itemRender = _b.itemRender, allowInput = _b.allowInput, inputPlaceholder = _b.inputPlaceholder; _b.onResultChange; _b.onChange; var onResultClick = _b.onResultClick, __ = _b.translate; _b.locale; var onKeyPress = _b.onKeyPress, onFocus = _b.onFocus, onBlur = _b.onBlur, borderMode = _b.borderMode, mobileUI = _b.mobileUI, hasDropDownArrow = _b.hasDropDownArrow, actions = _b.actions; _b.onClear; _b.maxTagCount; _b.overflowTagPopover; var showArrow = _b.showArrow; _b.popOverContainer; var rest = __rest(_b, ["className", "classnames", "classPrefix", "clearable", "disabled", "hasError", "result", "value", "placeholder", "children", "itemRender", "allowInput", "inputPlaceholder", "onResultChange", "onChange", "onResultClick", "translate", "locale", "onKeyPress", "onFocus", "onBlur", "borderMode", "mobileUI", "hasDropDownArrow", "actions", "onClear", "maxTagCount", "overflowTagPopover", "showArrow", "popOverContainer"]);
|
|
118
|
+
var _b = this.props, className = _b.className, cx = _b.classnames; _b.classPrefix; var clearable = _b.clearable, disabled = _b.disabled, hasError = _b.hasError, result = _b.result, value = _b.value, placeholder = _b.placeholder, children = _b.children, itemRender = _b.itemRender, allowInput = _b.allowInput, inputPlaceholder = _b.inputPlaceholder; _b.onResultChange; _b.onChange; var onResultClick = _b.onResultClick, __ = _b.translate; _b.locale; var onKeyPress = _b.onKeyPress, onFocus = _b.onFocus, onBlur = _b.onBlur, borderMode = _b.borderMode, mobileUI = _b.mobileUI, hasDropDownArrow = _b.hasDropDownArrow, actions = _b.actions; _b.onClear; _b.maxTagCount; _b.overflowTagPopover; var showArrow = _b.showArrow; _b.popOverContainer; var testIdBuilder = _b.testIdBuilder, rest = __rest(_b, ["className", "classnames", "classPrefix", "clearable", "disabled", "hasError", "result", "value", "placeholder", "children", "itemRender", "allowInput", "inputPlaceholder", "onResultChange", "onChange", "onResultClick", "translate", "locale", "onKeyPress", "onFocus", "onBlur", "borderMode", "mobileUI", "hasDropDownArrow", "actions", "onClear", "maxTagCount", "overflowTagPopover", "showArrow", "popOverContainer", "testIdBuilder"]);
|
|
115
119
|
var isFocused = this.state.isFocused;
|
|
116
|
-
return (React__default.createElement("div", { className: cx('ResultBox', className, (_a = {
|
|
120
|
+
return (React__default.createElement("div", __assign({ className: cx('ResultBox', className, (_a = {
|
|
117
121
|
'is-focused': isFocused,
|
|
118
122
|
'is-disabled': disabled,
|
|
119
123
|
'is-error': hasError,
|
|
@@ -123,7 +127,7 @@ var ResultBox = /** @class */ (function (_super) {
|
|
|
123
127
|
'is-group': Array.isArray(result)
|
|
124
128
|
},
|
|
125
129
|
_a["ResultBox--border".concat(ucFirst(borderMode))] = borderMode,
|
|
126
|
-
_a)), onClick: onResultClick, tabIndex: !allowInput && !disabled && onFocus ? 0 : -1, onKeyPress: allowInput ? undefined : onKeyPress, onFocus: allowInput ? undefined : onFocus, onBlur: allowInput ? undefined : onBlur },
|
|
130
|
+
_a)), onClick: onResultClick, tabIndex: !allowInput && !disabled && onFocus ? 0 : -1, onKeyPress: allowInput ? undefined : onKeyPress, onFocus: allowInput ? undefined : onFocus, onBlur: allowInput ? undefined : onBlur }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getTestId()),
|
|
127
131
|
React__default.createElement("div", { className: cx('ResultBox-value-wrap') },
|
|
128
132
|
Array.isArray(result) && result.length ? (this.renderMultipeTags(result)) : result && !Array.isArray(result) ? (React__default.createElement("span", { className: cx('ResultBox-singleValue') }, isPlainObject(result) ? itemRender(result) : result)) : allowInput && !disabled ? null : (React__default.createElement("span", { className: cx('ResultBox-placeholder') }, __(placeholder || 'placeholder.noData'))),
|
|
129
133
|
allowInput && !disabled ? (React__default.createElement(Input, __assign({}, rest, { className: cx('ResultBox-value-input'), onKeyPress: onKeyPress, ref: this.inputRef, value: value || '', onChange: this.handleChange, placeholder: __(
|
|
@@ -134,14 +138,14 @@ var ResultBox = /** @class */ (function (_super) {
|
|
|
134
138
|
: placeholder
|
|
135
139
|
: result
|
|
136
140
|
? ''
|
|
137
|
-
: placeholder), onFocus: this.handleFocus, onBlur: this.handleBlur }))) : null,
|
|
141
|
+
: placeholder), onFocus: this.handleFocus, onBlur: this.handleBlur, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('input') }))) : null,
|
|
138
142
|
children),
|
|
139
143
|
React__default.createElement("div", { className: cx('ResultBox-actions') },
|
|
140
144
|
clearable &&
|
|
141
145
|
!disabled &&
|
|
142
|
-
(Array.isArray(result) ? result.length : result) ? (React__default.createElement("a", { onClick: this.clearValue, className: cx('ResultBox-clear', {
|
|
146
|
+
(Array.isArray(result) ? result.length : result) ? (React__default.createElement("a", __assign({ onClick: this.clearValue, className: cx('ResultBox-clear', {
|
|
143
147
|
'ResultBox-clear-with-arrow': hasDropDownArrow
|
|
144
|
-
}) },
|
|
148
|
+
}) }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('clear').getTestId()),
|
|
145
149
|
React__default.createElement("div", { className: cx('ResultBox-clear-wrap') },
|
|
146
150
|
React__default.createElement(Icon, { icon: "input-clear", className: "icon" })))) : null,
|
|
147
151
|
actions,
|
|
@@ -7,6 +7,7 @@ import Sortable from 'sortablejs';
|
|
|
7
7
|
import { Option, Options } from './Select';
|
|
8
8
|
import { ThemeProps } from 'amis-core';
|
|
9
9
|
import { LocaleProps, ClassNamesFn } from 'amis-core';
|
|
10
|
+
import type { TestIdBuilder } from 'amis-core';
|
|
10
11
|
export interface ResultListProps extends ThemeProps, LocaleProps {
|
|
11
12
|
className?: string;
|
|
12
13
|
value?: Array<Option>;
|
|
@@ -25,6 +26,7 @@ export interface ResultListProps extends ThemeProps, LocaleProps {
|
|
|
25
26
|
itemHeight?: number;
|
|
26
27
|
virtualThreshold?: number;
|
|
27
28
|
showInvalidMatch?: boolean;
|
|
29
|
+
testIdBuilder?: TestIdBuilder;
|
|
28
30
|
}
|
|
29
31
|
export interface ItemRenderStates {
|
|
30
32
|
index: number;
|
|
@@ -61,7 +63,7 @@ export declare class ResultList extends React.Component<ResultListProps, ResultL
|
|
|
61
63
|
render(): React.JSX.Element;
|
|
62
64
|
}
|
|
63
65
|
declare const _default: {
|
|
64
|
-
new (props: Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
66
|
+
new (props: Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
65
67
|
placeholder?: string | undefined;
|
|
66
68
|
itemHeight?: number | undefined;
|
|
67
69
|
virtualThreshold?: number | undefined;
|
|
@@ -76,7 +78,7 @@ declare const _default: {
|
|
|
76
78
|
getWrappedInstance(): any;
|
|
77
79
|
render(): React.JSX.Element;
|
|
78
80
|
context: unknown;
|
|
79
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
81
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
80
82
|
placeholder?: string | undefined;
|
|
81
83
|
itemHeight?: number | undefined;
|
|
82
84
|
virtualThreshold?: number | undefined;
|
|
@@ -87,7 +89,7 @@ declare const _default: {
|
|
|
87
89
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
88
90
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
89
91
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
90
|
-
readonly props: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
92
|
+
readonly props: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
91
93
|
placeholder?: string | undefined;
|
|
92
94
|
itemHeight?: number | undefined;
|
|
93
95
|
virtualThreshold?: number | undefined;
|
|
@@ -102,7 +104,7 @@ declare const _default: {
|
|
|
102
104
|
[key: string]: React.ReactInstance;
|
|
103
105
|
};
|
|
104
106
|
componentDidMount?(): void;
|
|
105
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
107
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
106
108
|
placeholder?: string | undefined;
|
|
107
109
|
itemHeight?: number | undefined;
|
|
108
110
|
virtualThreshold?: number | undefined;
|
|
@@ -114,7 +116,7 @@ declare const _default: {
|
|
|
114
116
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
115
117
|
componentWillUnmount?(): void;
|
|
116
118
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
117
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
119
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
118
120
|
placeholder?: string | undefined;
|
|
119
121
|
itemHeight?: number | undefined;
|
|
120
122
|
virtualThreshold?: number | undefined;
|
|
@@ -124,7 +126,7 @@ declare const _default: {
|
|
|
124
126
|
locale?: string | undefined;
|
|
125
127
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
126
128
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
|
|
127
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
129
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
128
130
|
placeholder?: string | undefined;
|
|
129
131
|
itemHeight?: number | undefined;
|
|
130
132
|
virtualThreshold?: number | undefined;
|
|
@@ -136,7 +138,7 @@ declare const _default: {
|
|
|
136
138
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
137
139
|
componentWillMount?(): void;
|
|
138
140
|
UNSAFE_componentWillMount?(): void;
|
|
139
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
141
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
140
142
|
placeholder?: string | undefined;
|
|
141
143
|
itemHeight?: number | undefined;
|
|
142
144
|
virtualThreshold?: number | undefined;
|
|
@@ -146,7 +148,7 @@ declare const _default: {
|
|
|
146
148
|
locale?: string | undefined;
|
|
147
149
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
148
150
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
149
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
151
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
150
152
|
placeholder?: string | undefined;
|
|
151
153
|
itemHeight?: number | undefined;
|
|
152
154
|
virtualThreshold?: number | undefined;
|
|
@@ -156,7 +158,7 @@ declare const _default: {
|
|
|
156
158
|
locale?: string | undefined;
|
|
157
159
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
158
160
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
159
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
161
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
160
162
|
placeholder?: string | undefined;
|
|
161
163
|
itemHeight?: number | undefined;
|
|
162
164
|
virtualThreshold?: number | undefined;
|
|
@@ -166,7 +168,7 @@ declare const _default: {
|
|
|
166
168
|
locale?: string | undefined;
|
|
167
169
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
168
170
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
169
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
171
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
170
172
|
placeholder?: string | undefined;
|
|
171
173
|
itemHeight?: number | undefined;
|
|
172
174
|
virtualThreshold?: number | undefined;
|
|
@@ -180,7 +182,7 @@ declare const _default: {
|
|
|
180
182
|
displayName: string;
|
|
181
183
|
contextType: React.Context<string>;
|
|
182
184
|
ComposedComponent: React.ComponentType<{
|
|
183
|
-
new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
185
|
+
new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
184
186
|
placeholder?: string | undefined;
|
|
185
187
|
itemHeight?: number | undefined;
|
|
186
188
|
virtualThreshold?: number | undefined;
|
|
@@ -195,7 +197,7 @@ declare const _default: {
|
|
|
195
197
|
getWrappedInstance(): any;
|
|
196
198
|
render(): React.JSX.Element;
|
|
197
199
|
context: unknown;
|
|
198
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
200
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
199
201
|
placeholder?: string | undefined;
|
|
200
202
|
itemHeight?: number | undefined;
|
|
201
203
|
virtualThreshold?: number | undefined;
|
|
@@ -206,7 +208,7 @@ declare const _default: {
|
|
|
206
208
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
207
209
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
208
210
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
209
|
-
readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
211
|
+
readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
210
212
|
placeholder?: string | undefined;
|
|
211
213
|
itemHeight?: number | undefined;
|
|
212
214
|
virtualThreshold?: number | undefined;
|
|
@@ -221,7 +223,7 @@ declare const _default: {
|
|
|
221
223
|
[key: string]: React.ReactInstance;
|
|
222
224
|
};
|
|
223
225
|
componentDidMount?(): void;
|
|
224
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
226
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
225
227
|
placeholder?: string | undefined;
|
|
226
228
|
itemHeight?: number | undefined;
|
|
227
229
|
virtualThreshold?: number | undefined;
|
|
@@ -233,7 +235,7 @@ declare const _default: {
|
|
|
233
235
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
234
236
|
componentWillUnmount?(): void;
|
|
235
237
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
236
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
238
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
237
239
|
placeholder?: string | undefined;
|
|
238
240
|
itemHeight?: number | undefined;
|
|
239
241
|
virtualThreshold?: number | undefined;
|
|
@@ -243,7 +245,7 @@ declare const _default: {
|
|
|
243
245
|
locale?: string | undefined;
|
|
244
246
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
245
247
|
}>, prevState: Readonly<{}>): any;
|
|
246
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
248
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
247
249
|
placeholder?: string | undefined;
|
|
248
250
|
itemHeight?: number | undefined;
|
|
249
251
|
virtualThreshold?: number | undefined;
|
|
@@ -255,7 +257,7 @@ declare const _default: {
|
|
|
255
257
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
256
258
|
componentWillMount?(): void;
|
|
257
259
|
UNSAFE_componentWillMount?(): void;
|
|
258
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
260
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
259
261
|
placeholder?: string | undefined;
|
|
260
262
|
itemHeight?: number | undefined;
|
|
261
263
|
virtualThreshold?: number | undefined;
|
|
@@ -265,7 +267,7 @@ declare const _default: {
|
|
|
265
267
|
locale?: string | undefined;
|
|
266
268
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
267
269
|
}>, nextContext: any): void;
|
|
268
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
270
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
269
271
|
placeholder?: string | undefined;
|
|
270
272
|
itemHeight?: number | undefined;
|
|
271
273
|
virtualThreshold?: number | undefined;
|
|
@@ -275,7 +277,7 @@ declare const _default: {
|
|
|
275
277
|
locale?: string | undefined;
|
|
276
278
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
277
279
|
}>, nextContext: any): void;
|
|
278
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
280
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
279
281
|
placeholder?: string | undefined;
|
|
280
282
|
itemHeight?: number | undefined;
|
|
281
283
|
virtualThreshold?: number | undefined;
|
|
@@ -285,7 +287,7 @@ declare const _default: {
|
|
|
285
287
|
locale?: string | undefined;
|
|
286
288
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
287
289
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
288
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
290
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
289
291
|
placeholder?: string | undefined;
|
|
290
292
|
itemHeight?: number | undefined;
|
|
291
293
|
virtualThreshold?: number | undefined;
|
|
@@ -303,7 +305,7 @@ declare const _default: {
|
|
|
303
305
|
ComposedComponent: typeof ResultList;
|
|
304
306
|
}>;
|
|
305
307
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
306
|
-
new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
308
|
+
new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
307
309
|
placeholder?: string | undefined;
|
|
308
310
|
itemHeight?: number | undefined;
|
|
309
311
|
virtualThreshold?: number | undefined;
|
|
@@ -318,7 +320,7 @@ declare const _default: {
|
|
|
318
320
|
getWrappedInstance(): any;
|
|
319
321
|
render(): React.JSX.Element;
|
|
320
322
|
context: unknown;
|
|
321
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
323
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
322
324
|
placeholder?: string | undefined;
|
|
323
325
|
itemHeight?: number | undefined;
|
|
324
326
|
virtualThreshold?: number | undefined;
|
|
@@ -329,7 +331,7 @@ declare const _default: {
|
|
|
329
331
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
330
332
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
331
333
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
332
|
-
readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
334
|
+
readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
333
335
|
placeholder?: string | undefined;
|
|
334
336
|
itemHeight?: number | undefined;
|
|
335
337
|
virtualThreshold?: number | undefined;
|
|
@@ -344,7 +346,7 @@ declare const _default: {
|
|
|
344
346
|
[key: string]: React.ReactInstance;
|
|
345
347
|
};
|
|
346
348
|
componentDidMount?(): void;
|
|
347
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
349
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
348
350
|
placeholder?: string | undefined;
|
|
349
351
|
itemHeight?: number | undefined;
|
|
350
352
|
virtualThreshold?: number | undefined;
|
|
@@ -356,7 +358,7 @@ declare const _default: {
|
|
|
356
358
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
357
359
|
componentWillUnmount?(): void;
|
|
358
360
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
359
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
361
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
360
362
|
placeholder?: string | undefined;
|
|
361
363
|
itemHeight?: number | undefined;
|
|
362
364
|
virtualThreshold?: number | undefined;
|
|
@@ -366,7 +368,7 @@ declare const _default: {
|
|
|
366
368
|
locale?: string | undefined;
|
|
367
369
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
368
370
|
}>, prevState: Readonly<{}>): any;
|
|
369
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
371
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
370
372
|
placeholder?: string | undefined;
|
|
371
373
|
itemHeight?: number | undefined;
|
|
372
374
|
virtualThreshold?: number | undefined;
|
|
@@ -378,7 +380,7 @@ declare const _default: {
|
|
|
378
380
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
379
381
|
componentWillMount?(): void;
|
|
380
382
|
UNSAFE_componentWillMount?(): void;
|
|
381
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
383
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
382
384
|
placeholder?: string | undefined;
|
|
383
385
|
itemHeight?: number | undefined;
|
|
384
386
|
virtualThreshold?: number | undefined;
|
|
@@ -388,7 +390,7 @@ declare const _default: {
|
|
|
388
390
|
locale?: string | undefined;
|
|
389
391
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
390
392
|
}>, nextContext: any): void;
|
|
391
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
393
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
392
394
|
placeholder?: string | undefined;
|
|
393
395
|
itemHeight?: number | undefined;
|
|
394
396
|
virtualThreshold?: number | undefined;
|
|
@@ -398,7 +400,7 @@ declare const _default: {
|
|
|
398
400
|
locale?: string | undefined;
|
|
399
401
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
400
402
|
}>, nextContext: any): void;
|
|
401
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
403
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
402
404
|
placeholder?: string | undefined;
|
|
403
405
|
itemHeight?: number | undefined;
|
|
404
406
|
virtualThreshold?: number | undefined;
|
|
@@ -408,7 +410,7 @@ declare const _default: {
|
|
|
408
410
|
locale?: string | undefined;
|
|
409
411
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
410
412
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
411
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
413
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
412
414
|
placeholder?: string | undefined;
|
|
413
415
|
itemHeight?: number | undefined;
|
|
414
416
|
virtualThreshold?: number | undefined;
|
|
@@ -426,7 +428,7 @@ declare const _default: {
|
|
|
426
428
|
ComposedComponent: typeof ResultList;
|
|
427
429
|
}, {}> & {
|
|
428
430
|
ComposedComponent: {
|
|
429
|
-
new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
431
|
+
new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
430
432
|
placeholder?: string | undefined;
|
|
431
433
|
itemHeight?: number | undefined;
|
|
432
434
|
virtualThreshold?: number | undefined;
|
|
@@ -441,7 +443,7 @@ declare const _default: {
|
|
|
441
443
|
getWrappedInstance(): any;
|
|
442
444
|
render(): React.JSX.Element;
|
|
443
445
|
context: unknown;
|
|
444
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
446
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
445
447
|
placeholder?: string | undefined;
|
|
446
448
|
itemHeight?: number | undefined;
|
|
447
449
|
virtualThreshold?: number | undefined;
|
|
@@ -452,7 +454,7 @@ declare const _default: {
|
|
|
452
454
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
453
455
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
454
456
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
455
|
-
readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
457
|
+
readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
456
458
|
placeholder?: string | undefined;
|
|
457
459
|
itemHeight?: number | undefined;
|
|
458
460
|
virtualThreshold?: number | undefined;
|
|
@@ -467,7 +469,7 @@ declare const _default: {
|
|
|
467
469
|
[key: string]: React.ReactInstance;
|
|
468
470
|
};
|
|
469
471
|
componentDidMount?(): void;
|
|
470
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
472
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
471
473
|
placeholder?: string | undefined;
|
|
472
474
|
itemHeight?: number | undefined;
|
|
473
475
|
virtualThreshold?: number | undefined;
|
|
@@ -479,7 +481,7 @@ declare const _default: {
|
|
|
479
481
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
480
482
|
componentWillUnmount?(): void;
|
|
481
483
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
482
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
484
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
483
485
|
placeholder?: string | undefined;
|
|
484
486
|
itemHeight?: number | undefined;
|
|
485
487
|
virtualThreshold?: number | undefined;
|
|
@@ -489,7 +491,7 @@ declare const _default: {
|
|
|
489
491
|
locale?: string | undefined;
|
|
490
492
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
491
493
|
}>, prevState: Readonly<{}>): any;
|
|
492
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
494
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
493
495
|
placeholder?: string | undefined;
|
|
494
496
|
itemHeight?: number | undefined;
|
|
495
497
|
virtualThreshold?: number | undefined;
|
|
@@ -501,7 +503,7 @@ declare const _default: {
|
|
|
501
503
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
502
504
|
componentWillMount?(): void;
|
|
503
505
|
UNSAFE_componentWillMount?(): void;
|
|
504
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
506
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
505
507
|
placeholder?: string | undefined;
|
|
506
508
|
itemHeight?: number | undefined;
|
|
507
509
|
virtualThreshold?: number | undefined;
|
|
@@ -511,7 +513,7 @@ declare const _default: {
|
|
|
511
513
|
locale?: string | undefined;
|
|
512
514
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
513
515
|
}>, nextContext: any): void;
|
|
514
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
516
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
515
517
|
placeholder?: string | undefined;
|
|
516
518
|
itemHeight?: number | undefined;
|
|
517
519
|
virtualThreshold?: number | undefined;
|
|
@@ -521,7 +523,7 @@ declare const _default: {
|
|
|
521
523
|
locale?: string | undefined;
|
|
522
524
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
523
525
|
}>, nextContext: any): void;
|
|
524
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
526
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
525
527
|
placeholder?: string | undefined;
|
|
526
528
|
itemHeight?: number | undefined;
|
|
527
529
|
virtualThreshold?: number | undefined;
|
|
@@ -531,7 +533,7 @@ declare const _default: {
|
|
|
531
533
|
locale?: string | undefined;
|
|
532
534
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
533
535
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
534
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "
|
|
536
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "title" | "disabled" | "testIdBuilder" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "showInvalidMatch" | "searchable" | "onSearch" | "sortable"> & {
|
|
535
537
|
placeholder?: string | undefined;
|
|
536
538
|
itemHeight?: number | undefined;
|
|
537
539
|
virtualThreshold?: number | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v6.
|
|
2
|
+
* amis-ui v6.4.0
|
|
3
3
|
* Copyright 2018-2024 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -165,7 +165,8 @@ var ResultList = /** @class */ (function (_super) {
|
|
|
165
165
|
ResultList.prototype.renderOption = function (option, index, value, styles) {
|
|
166
166
|
var _this = this;
|
|
167
167
|
if (styles === void 0) { styles = {}; }
|
|
168
|
-
var _b = this.props, cx = _b.classnames, itemRender = _b.itemRender, disabled = _b.disabled, itemClassName = _b.itemClassName, sortable = _b.sortable, labelField = _b.labelField; _b.translate; var showInvalidMatch = _b.showInvalidMatch;
|
|
168
|
+
var _b = this.props, cx = _b.classnames, itemRender = _b.itemRender, disabled = _b.disabled, itemClassName = _b.itemClassName, sortable = _b.sortable, labelField = _b.labelField; _b.translate; var showInvalidMatch = _b.showInvalidMatch, testIdBuilder = _b.testIdBuilder;
|
|
169
|
+
var itemTIB = testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild("item-".concat(option.value || index));
|
|
169
170
|
return (React__default.createElement("div", { style: styles, className: cx('Selections-item', itemClassName, option === null || option === void 0 ? void 0 : option.className), key: index },
|
|
170
171
|
sortable && !disabled && value.length > 1 ? (React__default.createElement(Icon, { className: cx('Selections-dragbar icon'), icon: "drag-bar" })) : null,
|
|
171
172
|
React__default.createElement("label", { className: cx('Selections-label', {
|
|
@@ -177,9 +178,9 @@ var ResultList = /** @class */ (function (_super) {
|
|
|
177
178
|
labelField: labelField,
|
|
178
179
|
classnames: cx
|
|
179
180
|
})),
|
|
180
|
-
!disabled ? (React__default.createElement("a", { className: cx('Selections-delBtn'), "data-index": index, onClick: function (e) {
|
|
181
|
+
!disabled ? (React__default.createElement("a", __assign({ className: cx('Selections-delBtn'), "data-index": index, onClick: function (e) {
|
|
181
182
|
return _this.handleCloseItem(e, option);
|
|
182
|
-
} },
|
|
183
|
+
} }, itemTIB === null || itemTIB === void 0 ? void 0 : itemTIB.getChild('close').getTestId()),
|
|
183
184
|
React__default.createElement(Icon, { icon: "close", className: "icon" }))) : null));
|
|
184
185
|
};
|
|
185
186
|
ResultList.prototype.renderNormalList = function (value) {
|