amis-ui 3.5.3 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.js +1 -1
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.d.ts +40 -40
- package/esm/components/AssociatedSelection.js +7 -7
- 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.d.ts +40 -40
- package/esm/components/ChainedDropdownSelection.js +1 -1
- package/esm/components/ChainedSelection.d.ts +40 -40
- package/esm/components/ChainedSelection.js +6 -6
- 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/ConfirmBox.js +1 -1
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.js +1 -1
- package/esm/components/DateRangePicker.js +1 -1
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.js +1 -1
- package/esm/components/DropDownSelection.d.ts +40 -40
- package/esm/components/DropDownSelection.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/GaodeMapPicker.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.d.ts +40 -40
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.js +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/InputTable.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/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.js +1 -1
- package/esm/components/Pagination.js +1 -1
- package/esm/components/Picker.js +1 -1
- package/esm/components/PickerColumn.js +1 -1
- package/esm/components/PickerContainer.js +1 -1
- package/esm/components/PopOverContainer.js +1 -1
- package/esm/components/PopUp.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.js +1 -1
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.d.ts +40 -40
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.d.ts +40 -40
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.js +5 -3
- package/esm/components/SearchBox.js +1 -1
- package/esm/components/Select.d.ts +4 -0
- package/esm/components/Select.js +43 -39
- package/esm/components/SelectMobile.js +1 -1
- package/esm/components/Selection.d.ts +41 -40
- package/esm/components/Selection.js +1 -1
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.d.ts +13 -0
- package/esm/components/Spinner.js +8 -6
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.d.ts +15 -10
- package/esm/components/Switch.js +13 -5
- package/esm/components/TableSelection.d.ts +40 -40
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.js +1 -1
- package/esm/components/TabsTransfer.d.ts +40 -40
- package/esm/components/TabsTransfer.js +3 -3
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.js +1 -1
- 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 +4 -3
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.d.ts +11 -10
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.d.ts +40 -40
- package/esm/components/Transfer.js +6 -4
- package/esm/components/TransferDropDown.d.ts +40 -40
- 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 +51 -3
- package/esm/components/Tree.js +12 -11
- package/esm/components/TreeSelection.d.ts +40 -40
- package/esm/components/TreeSelection.js +11 -11
- package/esm/components/UserSelect.d.ts +42 -0
- package/esm/components/UserSelect.js +5 -4
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.js +14 -2
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.js +1 -1
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.js +1 -1
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.js +1 -1
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/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 +6 -2
- package/esm/components/condition-builder/Value.js +1 -1
- package/esm/components/condition-builder/config.js +7 -1
- package/esm/components/condition-builder/index.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 +2 -2
- 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/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/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 +1 -1
- package/esm/components/table/util.js +1 -1
- package/esm/components/virtual-list/AutoSizer.js +1 -1
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-sub-form.js +1 -1
- package/esm/hooks/use-touch.js +1 -1
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +1 -1
- package/esm/icons/alert-danger.svg.js +1 -1
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +1 -1
- package/esm/icons/alert-warning.svg.js +1 -1
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check.svg.js +1 -1
- package/esm/icons/clock.svg.js +1 -1
- package/esm/icons/close-small.svg.js +1 -1
- package/esm/icons/close.svg.js +1 -1
- package/esm/icons/cloud-upload.svg.js +1 -1
- package/esm/icons/column-filter.svg.js +1 -1
- package/esm/icons/columns.svg.js +1 -1
- package/esm/icons/compress-alt.svg.js +1 -1
- package/esm/icons/copy.svg.js +1 -1
- package/esm/icons/date.svg.js +1 -1
- package/esm/icons/department.svg.js +1 -1
- package/esm/icons/desk-empty.svg.js +1 -1
- package/esm/icons/dot.svg.js +1 -1
- package/esm/icons/down-arrow-bold.svg.js +1 -1
- package/esm/icons/down.svg.js +1 -1
- package/esm/icons/download.svg.js +1 -1
- package/esm/icons/drag-bar.svg.js +1 -1
- package/esm/icons/drag.svg.js +1 -1
- package/esm/icons/edit.svg.js +1 -1
- package/esm/icons/ellipsis-v.svg.js +1 -1
- package/esm/icons/enter.svg.js +1 -1
- package/esm/icons/exchange.svg.js +1 -1
- package/esm/icons/expand-alt.svg.js +1 -1
- package/esm/icons/fail.svg.js +1 -1
- package/esm/icons/file.svg.js +1 -1
- package/esm/icons/filter.svg.js +1 -1
- package/esm/icons/folder.svg.js +1 -1
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/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/success.svg.js +1 -1
- package/esm/icons/transparent.svg.js +1 -1
- package/esm/icons/trash.svg.js +1 -1
- package/esm/icons/tree-down.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/upload.svg.js +1 -1
- package/esm/icons/user-remove.svg.js +1 -1
- package/esm/icons/view.svg.js +1 -1
- package/esm/icons/volume.svg.js +1 -1
- package/esm/icons/warning-mark.svg.js +1 -1
- package/esm/icons/warning.svg.js +1 -1
- package/esm/icons/window-restore.svg.js +1 -1
- package/esm/icons/zoom-in.svg.js +1 -1
- package/esm/icons/zoom-out.svg.js +1 -1
- package/esm/index.js +1 -1
- package/esm/locale/de-DE.js +2 -1
- package/esm/locale/en-US.js +2 -1
- package/esm/locale/zh-CN.js +2 -1
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.d.ts +40 -40
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.js +1 -1
- package/lib/components/AnchorNav.js +1 -1
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +40 -40
- package/lib/components/AssociatedSelection.js +7 -7
- 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.d.ts +10 -10
- 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.d.ts +40 -40
- package/lib/components/ChainedDropdownSelection.js +1 -1
- package/lib/components/ChainedSelection.d.ts +40 -40
- package/lib/components/ChainedSelection.js +6 -6
- package/lib/components/Checkbox.d.ts +10 -10
- 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/ConfirmBox.d.ts +40 -40
- 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 +1 -1
- package/lib/components/DndContainer.js +1 -1
- package/lib/components/Drawer.js +1 -1
- package/lib/components/DropDownSelection.d.ts +40 -40
- package/lib/components/DropDownSelection.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/GaodeMapPicker.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.d.ts +40 -40
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.d.ts +40 -40
- package/lib/components/ImageGallery.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/InputTable.js +1 -1
- 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 +40 -40
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.js +1 -1
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Modal.d.ts +40 -40
- package/lib/components/Modal.js +1 -1
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.js +1 -1
- package/lib/components/Pagination.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.d.ts +40 -40
- 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 +40 -40
- package/lib/components/ResultBox.js +1 -1
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.d.ts +40 -40
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +1 -1
- package/lib/components/RichText.js +5 -3
- package/lib/components/SearchBox.js +1 -1
- package/lib/components/Select.d.ts +4 -0
- package/lib/components/Select.js +43 -39
- package/lib/components/SelectMobile.js +1 -1
- package/lib/components/Selection.d.ts +41 -40
- package/lib/components/Selection.js +1 -1
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.d.ts +13 -0
- package/lib/components/Spinner.js +8 -6
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +15 -10
- package/lib/components/Switch.js +13 -5
- package/lib/components/TableSelection.d.ts +40 -40
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +40 -40
- package/lib/components/Tabs.js +1 -1
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +3 -3
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.js +1 -1
- 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 +4 -3
- 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.d.ts +11 -10
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +40 -40
- package/lib/components/Transfer.js +6 -4
- package/lib/components/TransferDropDown.d.ts +40 -40
- 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 +51 -3
- package/lib/components/Tree.js +12 -11
- package/lib/components/TreeSelection.d.ts +40 -40
- package/lib/components/TreeSelection.js +11 -11
- package/lib/components/UserSelect.d.ts +42 -0
- package/lib/components/UserSelect.js +5 -4
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/WithRemoteConfig.js +14 -2
- 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 +1 -1
- 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 +6 -2
- package/lib/components/condition-builder/Value.js +1 -1
- package/lib/components/condition-builder/config.js +7 -1
- package/lib/components/condition-builder/index.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 +2 -2
- package/lib/components/formula/Picker.d.ts +40 -40
- 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/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/SubMenu.js +1 -1
- package/lib/components/menu/index.d.ts +10 -10
- 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 +1 -1
- package/lib/components/table/util.js +1 -1
- package/lib/components/virtual-list/AutoSizer.js +1 -1
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-sub-form.js +1 -1
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +1 -1
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +1 -1
- package/lib/icons/alert-warning.svg.js +1 -1
- package/lib/icons/back.svg.js +1 -1
- package/lib/icons/calendar.svg.js +1 -1
- package/lib/icons/caret.svg.js +1 -1
- package/lib/icons/check.svg.js +1 -1
- package/lib/icons/clock.svg.js +1 -1
- package/lib/icons/close-small.svg.js +1 -1
- package/lib/icons/close.svg.js +1 -1
- package/lib/icons/cloud-upload.svg.js +1 -1
- package/lib/icons/column-filter.svg.js +1 -1
- package/lib/icons/columns.svg.js +1 -1
- package/lib/icons/compress-alt.svg.js +1 -1
- package/lib/icons/copy.svg.js +1 -1
- package/lib/icons/date.svg.js +1 -1
- package/lib/icons/department.svg.js +1 -1
- package/lib/icons/desk-empty.svg.js +1 -1
- package/lib/icons/dot.svg.js +1 -1
- package/lib/icons/down-arrow-bold.svg.js +1 -1
- package/lib/icons/down.svg.js +1 -1
- package/lib/icons/download.svg.js +1 -1
- package/lib/icons/drag-bar.svg.js +1 -1
- package/lib/icons/drag.svg.js +1 -1
- package/lib/icons/edit.svg.js +1 -1
- package/lib/icons/ellipsis-v.svg.js +1 -1
- package/lib/icons/enter.svg.js +1 -1
- package/lib/icons/exchange.svg.js +1 -1
- package/lib/icons/expand-alt.svg.js +1 -1
- package/lib/icons/fail.svg.js +1 -1
- package/lib/icons/file.svg.js +1 -1
- package/lib/icons/filter.svg.js +1 -1
- package/lib/icons/folder.svg.js +1 -1
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/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/success.svg.js +1 -1
- package/lib/icons/transparent.svg.js +1 -1
- package/lib/icons/trash.svg.js +1 -1
- package/lib/icons/tree-down.svg.js +1 -1
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/upload.svg.js +1 -1
- package/lib/icons/user-remove.svg.js +1 -1
- package/lib/icons/view.svg.js +1 -1
- package/lib/icons/volume.svg.js +1 -1
- package/lib/icons/warning-mark.svg.js +1 -1
- package/lib/icons/warning.svg.js +1 -1
- package/lib/icons/window-restore.svg.js +1 -1
- package/lib/icons/zoom-in.svg.js +1 -1
- package/lib/icons/zoom-out.svg.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/de-DE.js +2 -1
- package/lib/locale/en-US.js +2 -1
- package/lib/locale/zh-CN.js +2 -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 +86 -8
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +86 -8
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +86 -8
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +86 -8
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +86 -8
- package/package.json +4 -4
- package/scss/_components.scss +5 -1
- package/scss/base/_common.scss +8 -0
- package/scss/components/_spinner.scss +12 -0
- package/scss/components/_table.scss +6 -2
- package/scss/components/form/_location.scss +11 -0
- package/scss/components/form/_picker.scss +2 -0
- package/scss/components/form/_rating.scss +17 -3
- package/scss/components/form/_selection.scss +1 -0
- package/scss/components/form/_switch.scss +38 -0
- package/scss/themes/_ang-variables.scss +5 -3
- package/scss/themes/_antd-variables.scss +5 -3
- package/scss/themes/_cxd-variables.scss +6 -3
- package/scss/themes/_dark-variables.scss +5 -3
|
@@ -19,6 +19,7 @@ export interface UserSelectProps extends ThemeProps, LocaleProps, SpinnerExtraPr
|
|
|
19
19
|
selection?: Array<Option>;
|
|
20
20
|
valueField?: string;
|
|
21
21
|
labelField?: string;
|
|
22
|
+
deferField?: string;
|
|
22
23
|
multi?: boolean;
|
|
23
24
|
multiple?: boolean;
|
|
24
25
|
isDep?: boolean;
|
|
@@ -57,6 +58,7 @@ export declare class UserSelect extends React.Component<UserSelectProps, UserSel
|
|
|
57
58
|
showResultBox: boolean;
|
|
58
59
|
labelField: string;
|
|
59
60
|
valueField: string;
|
|
61
|
+
deferField: string;
|
|
60
62
|
};
|
|
61
63
|
componentDidMount(): void;
|
|
62
64
|
componentDidUpdate(prevProps: UserSelectProps): void;
|
|
@@ -90,6 +92,7 @@ declare const _default: {
|
|
|
90
92
|
new (props: Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
91
93
|
labelField?: string | undefined;
|
|
92
94
|
valueField?: string | undefined;
|
|
95
|
+
deferField?: string | undefined;
|
|
93
96
|
showResultBox?: boolean | undefined;
|
|
94
97
|
} & {} & {
|
|
95
98
|
locale?: string | undefined;
|
|
@@ -103,6 +106,7 @@ declare const _default: {
|
|
|
103
106
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
104
107
|
labelField?: string | undefined;
|
|
105
108
|
valueField?: string | undefined;
|
|
109
|
+
deferField?: string | undefined;
|
|
106
110
|
showResultBox?: boolean | undefined;
|
|
107
111
|
} & {} & {
|
|
108
112
|
locale?: string | undefined;
|
|
@@ -112,6 +116,7 @@ declare const _default: {
|
|
|
112
116
|
readonly props: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
113
117
|
labelField?: string | undefined;
|
|
114
118
|
valueField?: string | undefined;
|
|
119
|
+
deferField?: string | undefined;
|
|
115
120
|
showResultBox?: boolean | undefined;
|
|
116
121
|
} & {} & {
|
|
117
122
|
locale?: string | undefined;
|
|
@@ -125,6 +130,7 @@ declare const _default: {
|
|
|
125
130
|
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
126
131
|
labelField?: string | undefined;
|
|
127
132
|
valueField?: string | undefined;
|
|
133
|
+
deferField?: string | undefined;
|
|
128
134
|
showResultBox?: boolean | undefined;
|
|
129
135
|
} & {} & {
|
|
130
136
|
locale?: string | undefined;
|
|
@@ -135,6 +141,7 @@ declare const _default: {
|
|
|
135
141
|
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
136
142
|
labelField?: string | undefined;
|
|
137
143
|
valueField?: string | undefined;
|
|
144
|
+
deferField?: string | undefined;
|
|
138
145
|
showResultBox?: boolean | undefined;
|
|
139
146
|
} & {} & {
|
|
140
147
|
locale?: string | undefined;
|
|
@@ -143,6 +150,7 @@ declare const _default: {
|
|
|
143
150
|
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
144
151
|
labelField?: string | undefined;
|
|
145
152
|
valueField?: string | undefined;
|
|
153
|
+
deferField?: string | undefined;
|
|
146
154
|
showResultBox?: boolean | undefined;
|
|
147
155
|
} & {} & {
|
|
148
156
|
locale?: string | undefined;
|
|
@@ -153,6 +161,7 @@ declare const _default: {
|
|
|
153
161
|
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
154
162
|
labelField?: string | undefined;
|
|
155
163
|
valueField?: string | undefined;
|
|
164
|
+
deferField?: string | undefined;
|
|
156
165
|
showResultBox?: boolean | undefined;
|
|
157
166
|
} & {} & {
|
|
158
167
|
locale?: string | undefined;
|
|
@@ -161,6 +170,7 @@ declare const _default: {
|
|
|
161
170
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
162
171
|
labelField?: string | undefined;
|
|
163
172
|
valueField?: string | undefined;
|
|
173
|
+
deferField?: string | undefined;
|
|
164
174
|
showResultBox?: boolean | undefined;
|
|
165
175
|
} & {} & {
|
|
166
176
|
locale?: string | undefined;
|
|
@@ -169,6 +179,7 @@ declare const _default: {
|
|
|
169
179
|
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
170
180
|
labelField?: string | undefined;
|
|
171
181
|
valueField?: string | undefined;
|
|
182
|
+
deferField?: string | undefined;
|
|
172
183
|
showResultBox?: boolean | undefined;
|
|
173
184
|
} & {} & {
|
|
174
185
|
locale?: string | undefined;
|
|
@@ -177,6 +188,7 @@ declare const _default: {
|
|
|
177
188
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
178
189
|
labelField?: string | undefined;
|
|
179
190
|
valueField?: string | undefined;
|
|
191
|
+
deferField?: string | undefined;
|
|
180
192
|
showResultBox?: boolean | undefined;
|
|
181
193
|
} & {} & {
|
|
182
194
|
locale?: string | undefined;
|
|
@@ -189,6 +201,7 @@ declare const _default: {
|
|
|
189
201
|
new (props: Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
190
202
|
labelField?: string | undefined;
|
|
191
203
|
valueField?: string | undefined;
|
|
204
|
+
deferField?: string | undefined;
|
|
192
205
|
showResultBox?: boolean | undefined;
|
|
193
206
|
} & {} & {
|
|
194
207
|
locale?: string | undefined;
|
|
@@ -202,6 +215,7 @@ declare const _default: {
|
|
|
202
215
|
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
203
216
|
labelField?: string | undefined;
|
|
204
217
|
valueField?: string | undefined;
|
|
218
|
+
deferField?: string | undefined;
|
|
205
219
|
showResultBox?: boolean | undefined;
|
|
206
220
|
} & {} & {
|
|
207
221
|
locale?: string | undefined;
|
|
@@ -211,6 +225,7 @@ declare const _default: {
|
|
|
211
225
|
readonly props: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
212
226
|
labelField?: string | undefined;
|
|
213
227
|
valueField?: string | undefined;
|
|
228
|
+
deferField?: string | undefined;
|
|
214
229
|
showResultBox?: boolean | undefined;
|
|
215
230
|
} & {} & {
|
|
216
231
|
locale?: string | undefined;
|
|
@@ -224,6 +239,7 @@ declare const _default: {
|
|
|
224
239
|
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
225
240
|
labelField?: string | undefined;
|
|
226
241
|
valueField?: string | undefined;
|
|
242
|
+
deferField?: string | undefined;
|
|
227
243
|
showResultBox?: boolean | undefined;
|
|
228
244
|
} & {} & {
|
|
229
245
|
locale?: string | undefined;
|
|
@@ -234,6 +250,7 @@ declare const _default: {
|
|
|
234
250
|
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
235
251
|
labelField?: string | undefined;
|
|
236
252
|
valueField?: string | undefined;
|
|
253
|
+
deferField?: string | undefined;
|
|
237
254
|
showResultBox?: boolean | undefined;
|
|
238
255
|
} & {} & {
|
|
239
256
|
locale?: string | undefined;
|
|
@@ -242,6 +259,7 @@ declare const _default: {
|
|
|
242
259
|
componentDidUpdate?(prevProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
243
260
|
labelField?: string | undefined;
|
|
244
261
|
valueField?: string | undefined;
|
|
262
|
+
deferField?: string | undefined;
|
|
245
263
|
showResultBox?: boolean | undefined;
|
|
246
264
|
} & {} & {
|
|
247
265
|
locale?: string | undefined;
|
|
@@ -252,6 +270,7 @@ declare const _default: {
|
|
|
252
270
|
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
253
271
|
labelField?: string | undefined;
|
|
254
272
|
valueField?: string | undefined;
|
|
273
|
+
deferField?: string | undefined;
|
|
255
274
|
showResultBox?: boolean | undefined;
|
|
256
275
|
} & {} & {
|
|
257
276
|
locale?: string | undefined;
|
|
@@ -260,6 +279,7 @@ declare const _default: {
|
|
|
260
279
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
261
280
|
labelField?: string | undefined;
|
|
262
281
|
valueField?: string | undefined;
|
|
282
|
+
deferField?: string | undefined;
|
|
263
283
|
showResultBox?: boolean | undefined;
|
|
264
284
|
} & {} & {
|
|
265
285
|
locale?: string | undefined;
|
|
@@ -268,6 +288,7 @@ declare const _default: {
|
|
|
268
288
|
componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
269
289
|
labelField?: string | undefined;
|
|
270
290
|
valueField?: string | undefined;
|
|
291
|
+
deferField?: string | undefined;
|
|
271
292
|
showResultBox?: boolean | undefined;
|
|
272
293
|
} & {} & {
|
|
273
294
|
locale?: string | undefined;
|
|
@@ -276,6 +297,7 @@ declare const _default: {
|
|
|
276
297
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
277
298
|
labelField?: string | undefined;
|
|
278
299
|
valueField?: string | undefined;
|
|
300
|
+
deferField?: string | undefined;
|
|
279
301
|
showResultBox?: boolean | undefined;
|
|
280
302
|
} & {} & {
|
|
281
303
|
locale?: string | undefined;
|
|
@@ -292,6 +314,7 @@ declare const _default: {
|
|
|
292
314
|
new (props: Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
293
315
|
labelField?: string | undefined;
|
|
294
316
|
valueField?: string | undefined;
|
|
317
|
+
deferField?: string | undefined;
|
|
295
318
|
showResultBox?: boolean | undefined;
|
|
296
319
|
} & {} & {
|
|
297
320
|
locale?: string | undefined;
|
|
@@ -305,6 +328,7 @@ declare const _default: {
|
|
|
305
328
|
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
306
329
|
labelField?: string | undefined;
|
|
307
330
|
valueField?: string | undefined;
|
|
331
|
+
deferField?: string | undefined;
|
|
308
332
|
showResultBox?: boolean | undefined;
|
|
309
333
|
} & {} & {
|
|
310
334
|
locale?: string | undefined;
|
|
@@ -314,6 +338,7 @@ declare const _default: {
|
|
|
314
338
|
readonly props: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
315
339
|
labelField?: string | undefined;
|
|
316
340
|
valueField?: string | undefined;
|
|
341
|
+
deferField?: string | undefined;
|
|
317
342
|
showResultBox?: boolean | undefined;
|
|
318
343
|
} & {} & {
|
|
319
344
|
locale?: string | undefined;
|
|
@@ -327,6 +352,7 @@ declare const _default: {
|
|
|
327
352
|
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
328
353
|
labelField?: string | undefined;
|
|
329
354
|
valueField?: string | undefined;
|
|
355
|
+
deferField?: string | undefined;
|
|
330
356
|
showResultBox?: boolean | undefined;
|
|
331
357
|
} & {} & {
|
|
332
358
|
locale?: string | undefined;
|
|
@@ -337,6 +363,7 @@ declare const _default: {
|
|
|
337
363
|
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
338
364
|
labelField?: string | undefined;
|
|
339
365
|
valueField?: string | undefined;
|
|
366
|
+
deferField?: string | undefined;
|
|
340
367
|
showResultBox?: boolean | undefined;
|
|
341
368
|
} & {} & {
|
|
342
369
|
locale?: string | undefined;
|
|
@@ -345,6 +372,7 @@ declare const _default: {
|
|
|
345
372
|
componentDidUpdate?(prevProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
346
373
|
labelField?: string | undefined;
|
|
347
374
|
valueField?: string | undefined;
|
|
375
|
+
deferField?: string | undefined;
|
|
348
376
|
showResultBox?: boolean | undefined;
|
|
349
377
|
} & {} & {
|
|
350
378
|
locale?: string | undefined;
|
|
@@ -355,6 +383,7 @@ declare const _default: {
|
|
|
355
383
|
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
356
384
|
labelField?: string | undefined;
|
|
357
385
|
valueField?: string | undefined;
|
|
386
|
+
deferField?: string | undefined;
|
|
358
387
|
showResultBox?: boolean | undefined;
|
|
359
388
|
} & {} & {
|
|
360
389
|
locale?: string | undefined;
|
|
@@ -363,6 +392,7 @@ declare const _default: {
|
|
|
363
392
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
364
393
|
labelField?: string | undefined;
|
|
365
394
|
valueField?: string | undefined;
|
|
395
|
+
deferField?: string | undefined;
|
|
366
396
|
showResultBox?: boolean | undefined;
|
|
367
397
|
} & {} & {
|
|
368
398
|
locale?: string | undefined;
|
|
@@ -371,6 +401,7 @@ declare const _default: {
|
|
|
371
401
|
componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
372
402
|
labelField?: string | undefined;
|
|
373
403
|
valueField?: string | undefined;
|
|
404
|
+
deferField?: string | undefined;
|
|
374
405
|
showResultBox?: boolean | undefined;
|
|
375
406
|
} & {} & {
|
|
376
407
|
locale?: string | undefined;
|
|
@@ -379,6 +410,7 @@ declare const _default: {
|
|
|
379
410
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
380
411
|
labelField?: string | undefined;
|
|
381
412
|
valueField?: string | undefined;
|
|
413
|
+
deferField?: string | undefined;
|
|
382
414
|
showResultBox?: boolean | undefined;
|
|
383
415
|
} & {} & {
|
|
384
416
|
locale?: string | undefined;
|
|
@@ -395,6 +427,7 @@ declare const _default: {
|
|
|
395
427
|
new (props: Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
396
428
|
labelField?: string | undefined;
|
|
397
429
|
valueField?: string | undefined;
|
|
430
|
+
deferField?: string | undefined;
|
|
398
431
|
showResultBox?: boolean | undefined;
|
|
399
432
|
} & {} & {
|
|
400
433
|
locale?: string | undefined;
|
|
@@ -408,6 +441,7 @@ declare const _default: {
|
|
|
408
441
|
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
409
442
|
labelField?: string | undefined;
|
|
410
443
|
valueField?: string | undefined;
|
|
444
|
+
deferField?: string | undefined;
|
|
411
445
|
showResultBox?: boolean | undefined;
|
|
412
446
|
} & {} & {
|
|
413
447
|
locale?: string | undefined;
|
|
@@ -417,6 +451,7 @@ declare const _default: {
|
|
|
417
451
|
readonly props: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
418
452
|
labelField?: string | undefined;
|
|
419
453
|
valueField?: string | undefined;
|
|
454
|
+
deferField?: string | undefined;
|
|
420
455
|
showResultBox?: boolean | undefined;
|
|
421
456
|
} & {} & {
|
|
422
457
|
locale?: string | undefined;
|
|
@@ -430,6 +465,7 @@ declare const _default: {
|
|
|
430
465
|
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
431
466
|
labelField?: string | undefined;
|
|
432
467
|
valueField?: string | undefined;
|
|
468
|
+
deferField?: string | undefined;
|
|
433
469
|
showResultBox?: boolean | undefined;
|
|
434
470
|
} & {} & {
|
|
435
471
|
locale?: string | undefined;
|
|
@@ -440,6 +476,7 @@ declare const _default: {
|
|
|
440
476
|
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
441
477
|
labelField?: string | undefined;
|
|
442
478
|
valueField?: string | undefined;
|
|
479
|
+
deferField?: string | undefined;
|
|
443
480
|
showResultBox?: boolean | undefined;
|
|
444
481
|
} & {} & {
|
|
445
482
|
locale?: string | undefined;
|
|
@@ -448,6 +485,7 @@ declare const _default: {
|
|
|
448
485
|
componentDidUpdate?(prevProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
449
486
|
labelField?: string | undefined;
|
|
450
487
|
valueField?: string | undefined;
|
|
488
|
+
deferField?: string | undefined;
|
|
451
489
|
showResultBox?: boolean | undefined;
|
|
452
490
|
} & {} & {
|
|
453
491
|
locale?: string | undefined;
|
|
@@ -458,6 +496,7 @@ declare const _default: {
|
|
|
458
496
|
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
459
497
|
labelField?: string | undefined;
|
|
460
498
|
valueField?: string | undefined;
|
|
499
|
+
deferField?: string | undefined;
|
|
461
500
|
showResultBox?: boolean | undefined;
|
|
462
501
|
} & {} & {
|
|
463
502
|
locale?: string | undefined;
|
|
@@ -466,6 +505,7 @@ declare const _default: {
|
|
|
466
505
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
467
506
|
labelField?: string | undefined;
|
|
468
507
|
valueField?: string | undefined;
|
|
508
|
+
deferField?: string | undefined;
|
|
469
509
|
showResultBox?: boolean | undefined;
|
|
470
510
|
} & {} & {
|
|
471
511
|
locale?: string | undefined;
|
|
@@ -474,6 +514,7 @@ declare const _default: {
|
|
|
474
514
|
componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
475
515
|
labelField?: string | undefined;
|
|
476
516
|
valueField?: string | undefined;
|
|
517
|
+
deferField?: string | undefined;
|
|
477
518
|
showResultBox?: boolean | undefined;
|
|
478
519
|
} & {} & {
|
|
479
520
|
locale?: string | undefined;
|
|
@@ -482,6 +523,7 @@ declare const _default: {
|
|
|
482
523
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<UserSelectProps, keyof LocaleProps>, "style" | "className" | "placeholder" | "theme" | "value" | "onChange" | "classnames" | "classPrefix" | "mobileUI" | "options" | "loadingConfig" | "multiple" | "multi" | "searchable" | "selection" | "searchPlaceholder" | "onSearch" | "deferLoad" | "showNav" | "navTitle" | "isDep" | "isRef" | "controlled" | "displayFields" | "isTab" | "fetcher"> & {
|
|
483
524
|
labelField?: string | undefined;
|
|
484
525
|
valueField?: string | undefined;
|
|
526
|
+
deferField?: string | undefined;
|
|
485
527
|
showResultBox?: boolean | undefined;
|
|
486
528
|
} & {} & {
|
|
487
529
|
locale?: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.6.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -408,7 +408,7 @@ var UserSelect = /** @class */ (function (_super) {
|
|
|
408
408
|
UserSelect.prototype.renderList = function (options, key, isSearch) {
|
|
409
409
|
var _this = this;
|
|
410
410
|
if (options === void 0) { options = []; }
|
|
411
|
-
var _a = this.props, cx = _a.classnames, _b = _a.valueField, valueField = _b === void 0 ? 'value' : _b; _a.labelField; var isDep = _a.isDep, isRef = _a.isRef, __ = _a.translate, controlled = _a.controlled, displayFields = _a.displayFields, isTab = _a.isTab, multiple = _a.multiple;
|
|
411
|
+
var _a = this.props, cx = _a.classnames, _b = _a.valueField, valueField = _b === void 0 ? 'value' : _b; _a.labelField; var isDep = _a.isDep, isRef = _a.isRef, __ = _a.translate, controlled = _a.controlled, displayFields = _a.displayFields, isTab = _a.isTab, multiple = _a.multiple, _d = _a.deferField, deferField = _d === void 0 ? 'defer' : _d;
|
|
412
412
|
var selection = controlled
|
|
413
413
|
? this.props.selection || []
|
|
414
414
|
: this.state.selection;
|
|
@@ -417,7 +417,7 @@ var UserSelect = /** @class */ (function (_super) {
|
|
|
417
417
|
_J$X_("ul", { className: cx("UserSelect-memberList"), key: key }, options.map(function (option, index) {
|
|
418
418
|
var _a, _b;
|
|
419
419
|
var hasChildren = (isRef && !option.isRef) ||
|
|
420
|
-
(isDep && (option
|
|
420
|
+
(isDep && (option[deferField] || ((_a = option.children) === null || _a === void 0 ? void 0 : _a.length)));
|
|
421
421
|
var checkVisible = (isDep && isRef) ||
|
|
422
422
|
(isRef && option.isRef) ||
|
|
423
423
|
(isDep && !isRef) ||
|
|
@@ -582,7 +582,8 @@ var UserSelect = /** @class */ (function (_super) {
|
|
|
582
582
|
UserSelect.defaultProps = {
|
|
583
583
|
showResultBox: true,
|
|
584
584
|
labelField: 'label',
|
|
585
|
-
valueField: 'value'
|
|
585
|
+
valueField: 'value',
|
|
586
|
+
deferField: 'defer'
|
|
586
587
|
};
|
|
587
588
|
tslib.__decorate([
|
|
588
589
|
amisCore.autobind,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.6.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -35,6 +35,7 @@ var Store = mobxStateTree.types
|
|
|
35
35
|
})
|
|
36
36
|
.actions(function (self) {
|
|
37
37
|
var component = undefined;
|
|
38
|
+
var fetchCancel = null;
|
|
38
39
|
var load = mobxStateTree.flow(function (env, api, ctx, config) {
|
|
39
40
|
var ret, data, options, e_1;
|
|
40
41
|
var _a;
|
|
@@ -43,10 +44,21 @@ var Store = mobxStateTree.types
|
|
|
43
44
|
switch (_b.label) {
|
|
44
45
|
case 0:
|
|
45
46
|
_b.trys.push([0, 2, 3, 4]);
|
|
47
|
+
if (fetchCancel) {
|
|
48
|
+
fetchCancel === null || fetchCancel === void 0 ? void 0 : fetchCancel('remote load request cancelled.');
|
|
49
|
+
fetchCancel = null;
|
|
50
|
+
self.fetching = false;
|
|
51
|
+
}
|
|
52
|
+
if (self.fetching) {
|
|
53
|
+
return [2 /*return*/];
|
|
54
|
+
}
|
|
46
55
|
self.fetching = true;
|
|
47
|
-
return [4 /*yield*/, env.fetcher(api, ctx
|
|
56
|
+
return [4 /*yield*/, env.fetcher(api, ctx, {
|
|
57
|
+
cancelExecutor: function (executor) { return (fetchCancel = executor); }
|
|
58
|
+
})];
|
|
48
59
|
case 1:
|
|
49
60
|
ret = _b.sent();
|
|
61
|
+
fetchCancel = null;
|
|
50
62
|
if (!mobxStateTree.isAlive(self)) {
|
|
51
63
|
return [2 /*return*/];
|
|
52
64
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.6.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -49,7 +49,11 @@ var ConditionItem = /** @class */ (function (_super) {
|
|
|
49
49
|
onChange(value, this.props.index);
|
|
50
50
|
};
|
|
51
51
|
ConditionItem.prototype.handleLeftChange = function (leftValue) {
|
|
52
|
-
var
|
|
52
|
+
var _a;
|
|
53
|
+
var _b = this.props, fields = _b.fields, config = _b.config;
|
|
54
|
+
// 获取默认Op
|
|
55
|
+
var field = amisCore.findTree(fields, function (f) { return f.name === leftValue.field; });
|
|
56
|
+
var value = tslib.__assign(tslib.__assign({}, this.props.value), { left: leftValue, op: (field === null || field === void 0 ? void 0 : field.defaultOp) || ((_a = config.types[field === null || field === void 0 ? void 0 : field.type]) === null || _a === void 0 ? void 0 : _a.defaultOp) || undefined, right: undefined });
|
|
53
57
|
var onChange = this.props.onChange;
|
|
54
58
|
onChange(value, this.props.index);
|
|
55
59
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.6.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -45,6 +45,7 @@ var defaultConfig = {
|
|
|
45
45
|
]
|
|
46
46
|
},
|
|
47
47
|
number: {
|
|
48
|
+
defaultOp: 'equal',
|
|
48
49
|
operators: [
|
|
49
50
|
'equal',
|
|
50
51
|
'not_equal',
|
|
@@ -59,6 +60,7 @@ var defaultConfig = {
|
|
|
59
60
|
]
|
|
60
61
|
},
|
|
61
62
|
date: {
|
|
63
|
+
defaultOp: 'equal',
|
|
62
64
|
operators: [
|
|
63
65
|
'equal',
|
|
64
66
|
'not_equal',
|
|
@@ -73,6 +75,7 @@ var defaultConfig = {
|
|
|
73
75
|
]
|
|
74
76
|
},
|
|
75
77
|
time: {
|
|
78
|
+
defaultOp: 'equal',
|
|
76
79
|
operators: [
|
|
77
80
|
'equal',
|
|
78
81
|
'not_equal',
|
|
@@ -87,6 +90,7 @@ var defaultConfig = {
|
|
|
87
90
|
]
|
|
88
91
|
},
|
|
89
92
|
datetime: {
|
|
93
|
+
defaultOp: 'equal',
|
|
90
94
|
operators: [
|
|
91
95
|
'equal',
|
|
92
96
|
'not_equal',
|
|
@@ -101,6 +105,7 @@ var defaultConfig = {
|
|
|
101
105
|
]
|
|
102
106
|
},
|
|
103
107
|
select: {
|
|
108
|
+
defaultOp: 'select_equals',
|
|
104
109
|
operators: [
|
|
105
110
|
'select_equals',
|
|
106
111
|
'select_not_equals',
|
|
@@ -110,6 +115,7 @@ var defaultConfig = {
|
|
|
110
115
|
valueTypes: ['value']
|
|
111
116
|
},
|
|
112
117
|
boolean: {
|
|
118
|
+
defaultOp: 'equal',
|
|
113
119
|
operators: ['equal', 'not_equal']
|
|
114
120
|
}
|
|
115
121
|
}
|