amis-ui 6.0.0 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/404.js +2 -2
- package/esm/components/Alert.d.ts +120 -120
- package/esm/components/Alert.js +2 -2
- package/esm/components/Alert2.d.ts +20 -20
- package/esm/components/Alert2.js +2 -2
- package/esm/components/AnchorNav.d.ts +20 -20
- package/esm/components/AnchorNav.js +10 -6
- package/esm/components/ArrayInput.d.ts +40 -40
- package/esm/components/ArrayInput.js +4 -8
- package/esm/components/AsideNav.d.ts +1 -0
- package/esm/components/AsideNav.js +4 -4
- package/esm/components/AssociatedSelection.d.ts +120 -120
- package/esm/components/AssociatedSelection.js +2 -2
- package/esm/components/Avatar.d.ts +162 -120
- package/esm/components/Avatar.js +4 -4
- package/esm/components/Badge.js +2 -2
- package/esm/components/BaiduMapPicker.js +2 -2
- package/esm/components/BarCode.js +2 -2
- package/esm/components/Breadcrumb.js +2 -2
- package/esm/components/Button.d.ts +21 -20
- package/esm/components/Button.js +5 -5
- package/esm/components/CalendarMobile.d.ts +40 -40
- package/esm/components/CalendarMobile.js +2 -2
- package/esm/components/Card.d.ts +140 -140
- package/esm/components/Card.js +2 -2
- package/esm/components/Cascader.js +2 -2
- package/esm/components/ChainedDropdownSelection.d.ts +120 -120
- package/esm/components/ChainedDropdownSelection.js +2 -2
- package/esm/components/ChainedSelection.d.ts +120 -120
- package/esm/components/ChainedSelection.js +2 -2
- package/esm/components/Checkbox.d.ts +10 -10
- package/esm/components/Checkbox.js +2 -2
- package/esm/components/CityArea.js +2 -2
- package/esm/components/CityDB.js +2 -2
- package/esm/components/CodeMirror.js +2 -2
- package/esm/components/Collapse.d.ts +140 -140
- package/esm/components/Collapse.js +2 -2
- package/esm/components/CollapseGroup.d.ts +30 -30
- package/esm/components/CollapseGroup.js +2 -2
- package/esm/components/ColorPicker.d.ts +80 -80
- package/esm/components/ColorPicker.js +2 -2
- package/esm/components/Combo.js +2 -2
- package/esm/components/ConfirmBox.d.ts +80 -80
- package/esm/components/ConfirmBox.js +2 -2
- package/esm/components/ContextMenu.d.ts +4 -3
- package/esm/components/ContextMenu.js +8 -4
- package/esm/components/DatePicker.d.ts +81 -81
- package/esm/components/DatePicker.js +2 -2
- package/esm/components/DateRangePicker.d.ts +121 -121
- package/esm/components/DateRangePicker.js +50 -16
- package/esm/components/DndContainer.js +2 -2
- package/esm/components/Drawer.d.ts +30 -30
- package/esm/components/Drawer.js +2 -2
- package/esm/components/DropDownSelection.d.ts +120 -120
- package/esm/components/DropDownSelection.js +2 -2
- package/esm/components/Editor.d.ts +120 -120
- package/esm/components/Editor.js +2 -2
- package/esm/components/Form.js +2 -2
- package/esm/components/FormField.js +2 -2
- package/esm/components/GaodeMapPicker.js +2 -2
- package/esm/components/GridNav.js +2 -2
- package/esm/components/GroupedSelection.d.ts +120 -120
- package/esm/components/GroupedSelection.js +2 -2
- package/esm/components/Html.js +2 -2
- package/esm/components/ImageGallery.d.ts +40 -40
- package/esm/components/ImageGallery.js +2 -2
- package/esm/components/Input.js +2 -2
- package/esm/components/InputBox.d.ts +11 -10
- package/esm/components/InputBox.js +5 -5
- package/esm/components/InputBoxWithSuggestion.js +2 -2
- package/esm/components/InputTable.js +2 -2
- package/esm/components/Layout.d.ts +10 -10
- package/esm/components/Layout.js +2 -2
- package/esm/components/Link.js +2 -2
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +2 -2
- package/esm/components/ListMenu.d.ts +80 -80
- package/esm/components/ListMenu.js +2 -2
- package/esm/components/LocationPicker.d.ts +40 -40
- package/esm/components/LocationPicker.js +2 -2
- package/esm/components/Markdown.js +2 -2
- package/esm/components/Modal.d.ts +120 -120
- package/esm/components/Modal.js +2 -2
- package/esm/components/ModalManager.js +2 -2
- package/esm/components/MonthRangePicker.d.ts +120 -120
- package/esm/components/MultilineText.d.ts +40 -40
- package/esm/components/MultilineText.js +2 -2
- package/esm/components/NumberInput.d.ts +21 -20
- package/esm/components/NumberInput.js +4 -4
- package/esm/components/OverflowTpl.js +2 -2
- package/esm/components/Pagination.d.ts +80 -80
- package/esm/components/Pagination.js +2 -2
- package/esm/components/PdfViewer.d.ts +48 -0
- package/esm/components/PdfViewer.js +87 -0
- package/esm/components/Picker.js +2 -2
- package/esm/components/PickerColumn.js +2 -2
- package/esm/components/PickerContainer.js +4 -4
- package/esm/components/PopOverContainer.js +2 -2
- package/esm/components/PopUp.d.ts +120 -120
- package/esm/components/PopUp.js +2 -2
- package/esm/components/Progress.d.ts +60 -60
- package/esm/components/Progress.js +2 -2
- package/esm/components/PullRefresh.js +2 -2
- package/esm/components/Radios.d.ts +10 -10
- package/esm/components/Radios.js +2 -2
- package/esm/components/Range.js +2 -2
- package/esm/components/Rating.d.ts +20 -20
- package/esm/components/Rating.js +2 -2
- package/esm/components/ResultBox.d.ts +80 -80
- package/esm/components/ResultBox.js +2 -2
- package/esm/components/ResultList.d.ts +40 -40
- package/esm/components/ResultList.js +4 -8
- package/esm/components/ResultTableList.d.ts +120 -120
- package/esm/components/ResultTableList.js +2 -2
- package/esm/components/ResultTreeList.d.ts +40 -40
- package/esm/components/ResultTreeList.js +2 -2
- package/esm/components/RichText.js +2 -2
- package/esm/components/SearchBox.d.ts +80 -80
- package/esm/components/SearchBox.js +2 -2
- package/esm/components/Select.d.ts +1352 -1351
- package/esm/components/Select.js +44 -37
- package/esm/components/SelectMobile.d.ts +1 -0
- package/esm/components/SelectMobile.js +4 -4
- package/esm/components/Selection.d.ts +120 -120
- package/esm/components/Selection.js +2 -2
- package/esm/components/SparkLine.d.ts +40 -40
- package/esm/components/SparkLine.js +4 -4
- package/esm/components/Spinner.d.ts +62 -60
- package/esm/components/Spinner.js +16 -4
- package/esm/components/Steps.js +2 -2
- package/esm/components/Switch.d.ts +11 -10
- package/esm/components/Switch.js +6 -6
- package/esm/components/TableSelection.d.ts +120 -120
- package/esm/components/TableSelection.js +2 -2
- package/esm/components/Tabs.d.ts +80 -80
- package/esm/components/Tabs.js +5 -3
- package/esm/components/TabsTransfer.d.ts +44 -40
- package/esm/components/TabsTransfer.js +7 -6
- package/esm/components/TabsTransferPicker.js +4 -4
- package/esm/components/Tag.d.ts +70 -70
- package/esm/components/Tag.js +2 -2
- package/esm/components/Textarea.d.ts +41 -40
- package/esm/components/Textarea.js +7 -7
- package/esm/components/Timeline.js +2 -2
- package/esm/components/TimelineItem.d.ts +1 -1
- package/esm/components/TimelineItem.js +2 -2
- package/esm/components/Tinymce.js +2 -2
- package/esm/components/TitleBar.d.ts +10 -10
- package/esm/components/TitleBar.js +2 -2
- package/esm/components/Toast.d.ts +120 -120
- package/esm/components/Toast.js +2 -2
- package/esm/components/Tooltip.js +3 -3
- package/esm/components/TooltipWrapper.d.ts +30 -30
- package/esm/components/TooltipWrapper.js +2 -2
- package/esm/components/Transfer.d.ts +248 -194
- package/esm/components/Transfer.js +89 -36
- package/esm/components/TransferDropDown.d.ts +160 -160
- package/esm/components/TransferDropDown.js +2 -2
- package/esm/components/TransferPicker.d.ts +5 -1
- package/esm/components/TransferPicker.js +24 -7
- package/esm/components/TransferSearch.js +2 -2
- package/esm/components/Tree.d.ts +200 -200
- package/esm/components/Tree.js +2 -2
- package/esm/components/TreeSelection.d.ts +120 -120
- package/esm/components/TreeSelection.js +2 -2
- package/esm/components/UserSelect.d.ts +40 -40
- package/esm/components/UserSelect.js +3 -3
- package/esm/components/UserTabSelect.d.ts +40 -40
- package/esm/components/UserTabSelect.js +2 -2
- package/esm/components/WithRemoteConfig.js +2 -2
- package/esm/components/WithStore.js +2 -2
- package/esm/components/calendar/Calendar.js +9 -3
- package/esm/components/calendar/CalendarContainer.js +2 -2
- package/esm/components/calendar/DaysView.js +2 -2
- package/esm/components/calendar/MonthsView.js +2 -2
- package/esm/components/calendar/QuartersView.js +2 -2
- package/esm/components/calendar/TimeView.js +2 -2
- package/esm/components/calendar/YearsView.js +2 -2
- package/esm/components/condition-builder/Expression.js +2 -2
- package/esm/components/condition-builder/Field.js +2 -2
- package/esm/components/condition-builder/Func.js +2 -2
- package/esm/components/condition-builder/Group.js +2 -2
- package/esm/components/condition-builder/GroupOrItem.js +2 -2
- package/esm/components/condition-builder/InputSwitch.js +2 -2
- package/esm/components/condition-builder/Item.js +14 -12
- package/esm/components/condition-builder/Value.js +2 -2
- package/esm/components/condition-builder/config.js +2 -2
- package/esm/components/condition-builder/index.js +2 -2
- package/esm/components/formula/Editor.d.ts +40 -40
- package/esm/components/formula/Editor.js +2 -2
- package/esm/components/formula/FuncList.js +2 -2
- package/esm/components/formula/Input.js +5 -3
- package/esm/components/formula/Picker.d.ts +57 -56
- package/esm/components/formula/Picker.js +61 -26
- package/esm/components/formula/VariableList.js +2 -2
- package/esm/components/formula/plugin.js +2 -2
- package/esm/components/icons.d.ts +1 -1
- package/esm/components/icons.js +28 -19
- package/esm/components/json-schema/Array.js +2 -2
- package/esm/components/json-schema/Item.js +2 -2
- package/esm/components/json-schema/Object.js +2 -2
- package/esm/components/json-schema/index.js +2 -2
- package/esm/components/menu/MenuContext.js +2 -2
- package/esm/components/menu/MenuItem.d.ts +1 -0
- package/esm/components/menu/MenuItem.js +5 -5
- package/esm/components/menu/SubMenu.d.ts +0 -1
- package/esm/components/menu/SubMenu.js +5 -5
- package/esm/components/menu/index.d.ts +64 -65
- package/esm/components/menu/index.js +5 -5
- package/esm/components/schema-editor/Array.js +2 -2
- package/esm/components/schema-editor/Common.js +2 -2
- package/esm/components/schema-editor/Item.js +2 -2
- package/esm/components/schema-editor/Object.js +2 -2
- package/esm/components/schema-editor/SchemaVariableList.js +2 -2
- package/esm/components/schema-editor/SchemaVariableListPicker.js +2 -2
- package/esm/components/schema-editor/index.d.ts +40 -40
- package/esm/components/schema-editor/index.js +2 -2
- package/esm/components/table/Cell.js +2 -2
- package/esm/components/table/ColGroup.js +2 -2
- package/esm/components/table/Head.js +3 -3
- package/esm/components/table/HeadCellDropDown.js +2 -2
- package/esm/components/table/HeadCellFilter.d.ts +40 -40
- package/esm/components/table/HeadCellFilter.js +2 -2
- package/esm/components/table/HeadCellSelect.d.ts +40 -40
- package/esm/components/table/HeadCellSelect.js +2 -2
- package/esm/components/table/HeadCellSort.js +2 -2
- package/esm/components/table/ItemActionsWrapper.js +2 -2
- package/esm/components/table/Row.js +2 -4
- package/esm/components/table/SummaryRow.js +2 -2
- package/esm/components/table/index.d.ts +160 -160
- package/esm/components/table/index.js +2 -2
- package/esm/components/table/util.d.ts +7 -7
- package/esm/components/table/util.js +2 -2
- package/esm/components/virtual-list/AutoSizer.js +2 -2
- package/esm/components/virtual-list/SizeAndPositionManager.js +2 -2
- package/esm/components/virtual-list/constants.js +2 -2
- package/esm/components/virtual-list/index.js +2 -2
- package/esm/hooks/use-set-state.js +2 -2
- package/esm/hooks/use-sub-form.js +2 -2
- package/esm/hooks/use-touch.js +2 -2
- package/esm/hooks/use-update-effect.js +2 -2
- package/esm/hooks/use-validation-resolver.js +2 -2
- package/esm/icons/alert-danger.svg.js +2 -2
- package/esm/icons/alert-info.svg.js +2 -2
- package/esm/icons/alert-success.svg.js +2 -2
- package/esm/icons/alert-warning.svg.js +2 -2
- package/esm/icons/arrow-double-left.svg.js +2 -2
- package/esm/icons/arrow-double-right.svg.js +2 -2
- package/esm/icons/back.svg.js +2 -2
- package/esm/icons/calendar.svg.js +2 -2
- package/esm/icons/caret.svg.js +2 -2
- package/esm/icons/check.svg.js +2 -2
- package/esm/icons/clock.svg.js +2 -2
- package/esm/icons/close-small.svg.js +2 -2
- package/esm/icons/close.svg.js +2 -2
- package/esm/icons/cloud-upload.svg.js +2 -2
- package/esm/icons/column-filter.svg.js +2 -2
- package/esm/icons/columns.svg.js +2 -2
- package/esm/icons/compress-alt.svg.js +2 -2
- package/esm/icons/copy.svg.js +2 -2
- package/esm/icons/date.svg.js +2 -2
- package/esm/icons/department.svg.js +2 -2
- package/esm/icons/desk-empty.svg.js +2 -2
- package/esm/icons/dot.svg.js +2 -2
- package/esm/icons/down-arrow-bold.svg.js +2 -2
- package/esm/icons/down.svg.js +2 -2
- package/esm/icons/download.svg.js +2 -2
- package/esm/icons/drag-bar.svg.js +2 -2
- package/esm/icons/drag.svg.js +2 -2
- package/esm/icons/edit.svg.js +2 -2
- package/esm/icons/ellipsis-v.svg.js +2 -2
- package/esm/icons/enter.svg.js +2 -2
- package/esm/icons/exchange.svg.js +2 -2
- package/esm/icons/expand-alt.svg.js +2 -2
- package/esm/icons/fail.svg.js +2 -2
- package/esm/icons/file.svg.js +2 -2
- package/esm/icons/filter.svg.js +2 -2
- package/esm/icons/folder.svg.js +2 -2
- package/esm/icons/function.svg.js +6 -12
- package/esm/icons/home.svg.js +2 -2
- package/esm/icons/if.svg.js +2 -2
- package/esm/icons/image.svg.js +2 -2
- package/esm/icons/info-circle.svg.js +2 -2
- package/esm/icons/info.svg.js +2 -2
- package/esm/icons/input-clear.svg.js +2 -2
- package/esm/icons/invisible.svg.js +2 -2
- package/esm/icons/left-arrow.svg.js +2 -2
- package/esm/icons/loading-outline.svg.js +2 -2
- package/esm/icons/location.svg.js +2 -2
- package/esm/icons/menu.svg.js +2 -2
- package/esm/icons/minus.svg.js +2 -2
- package/esm/icons/move.svg.js +2 -2
- package/esm/icons/mute.svg.js +2 -2
- package/esm/icons/new-edit.svg.js +2 -2
- package/esm/icons/pause.svg.js +2 -2
- package/esm/icons/pencil.svg.js +2 -2
- package/esm/icons/play.svg.js +2 -2
- package/esm/icons/plus-cicle.svg.js +2 -2
- package/esm/icons/plus-fine.svg.js +2 -2
- package/esm/icons/plus.svg.js +2 -2
- package/esm/icons/post.svg.js +2 -2
- package/esm/icons/question-mark.svg.js +2 -2
- package/esm/icons/question.svg.js +2 -2
- package/esm/icons/redo.svg.js +2 -2
- package/esm/icons/refresh.svg.js +2 -2
- package/esm/icons/reload.svg.js +2 -2
- package/esm/icons/remove.svg.js +2 -2
- package/esm/icons/retry.svg.js +2 -2
- package/esm/icons/right-arrow-bold.svg.js +2 -2
- package/esm/icons/right-arrow.svg.js +2 -2
- package/esm/icons/right-double-arrow.svg.js +2 -2
- package/esm/icons/role.svg.js +2 -2
- package/esm/icons/rotate-left.svg.js +2 -2
- package/esm/icons/rotate-right.svg.js +2 -2
- package/esm/icons/scale-origin.svg.js +2 -2
- package/esm/icons/schedule.svg.js +2 -2
- package/esm/icons/search.svg.js +3 -2
- package/esm/icons/setting.svg.js +2 -2
- package/esm/icons/slider-handle-icon.svg.js +2 -2
- package/esm/icons/sort-asc.svg.js +2 -2
- package/esm/icons/sort-default.svg.js +2 -2
- package/esm/icons/sort-desc.svg.js +2 -2
- package/esm/icons/star.svg.js +2 -2
- package/esm/icons/status-close.svg.js +2 -2
- package/esm/icons/steps-finsh.svg.js +2 -2
- package/esm/icons/success.svg.js +2 -2
- package/esm/icons/transparent.svg.js +2 -2
- package/esm/icons/trash.svg.js +3 -3
- package/esm/icons/tree-down.svg.js +2 -2
- package/esm/icons/undo.svg.js +2 -2
- package/esm/icons/upload.svg.js +2 -2
- package/esm/icons/user-remove.svg.js +2 -2
- package/esm/icons/view.svg.js +2 -2
- package/esm/icons/volume.svg.js +2 -2
- package/esm/icons/warning-mark.svg.js +2 -2
- package/esm/icons/warning.svg.js +2 -2
- package/esm/icons/window-restore.svg.js +2 -2
- package/esm/icons/zoom-in.svg.js +2 -2
- package/esm/icons/zoom-out.svg.js +2 -2
- package/esm/index.js +2 -2
- package/esm/locale/de-DE.js +3 -2
- package/esm/locale/en-US.js +3 -2
- package/esm/locale/zh-CN.js +3 -2
- package/esm/themes/ang.js +2 -2
- package/esm/themes/antd.js +2 -2
- package/esm/themes/cxd.js +2 -2
- package/esm/themes/dark.js +2 -2
- package/lib/components/404.js +2 -2
- package/lib/components/Alert.d.ts +120 -120
- package/lib/components/Alert.js +2 -2
- package/lib/components/Alert2.d.ts +20 -20
- package/lib/components/Alert2.js +2 -2
- package/lib/components/AnchorNav.d.ts +20 -20
- package/lib/components/AnchorNav.js +10 -6
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +4 -8
- package/lib/components/AsideNav.d.ts +1 -0
- package/lib/components/AsideNav.js +3 -3
- package/lib/components/AssociatedSelection.d.ts +80 -80
- package/lib/components/AssociatedSelection.js +2 -2
- package/lib/components/Avatar.d.ts +132 -90
- package/lib/components/Avatar.js +4 -4
- package/lib/components/Badge.js +2 -2
- package/lib/components/BaiduMapPicker.js +2 -2
- package/lib/components/BarCode.js +2 -2
- package/lib/components/Breadcrumb.js +2 -2
- package/lib/components/Button.d.ts +21 -20
- package/lib/components/Button.js +4 -4
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +2 -2
- package/lib/components/Card.d.ts +120 -120
- package/lib/components/Card.js +2 -2
- package/lib/components/Cascader.js +2 -2
- package/lib/components/ChainedDropdownSelection.d.ts +80 -80
- package/lib/components/ChainedDropdownSelection.js +2 -2
- package/lib/components/ChainedSelection.d.ts +80 -80
- package/lib/components/ChainedSelection.js +2 -2
- package/lib/components/Checkbox.d.ts +10 -10
- package/lib/components/Checkbox.js +2 -2
- package/lib/components/CityArea.js +2 -2
- package/lib/components/CityDB.js +2 -2
- package/lib/components/CodeMirror.js +2 -2
- package/lib/components/Collapse.d.ts +120 -120
- package/lib/components/Collapse.js +2 -2
- package/lib/components/CollapseGroup.d.ts +30 -30
- package/lib/components/CollapseGroup.js +2 -2
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +2 -2
- package/lib/components/Combo.js +2 -2
- package/lib/components/ConfirmBox.d.ts +80 -80
- package/lib/components/ConfirmBox.js +2 -2
- package/lib/components/ContextMenu.d.ts +4 -3
- package/lib/components/ContextMenu.js +8 -4
- package/lib/components/DatePicker.d.ts +120 -120
- package/lib/components/DatePicker.js +2 -2
- package/lib/components/DateRangePicker.d.ts +321 -321
- package/lib/components/DateRangePicker.js +49 -15
- package/lib/components/DndContainer.js +2 -2
- package/lib/components/Drawer.d.ts +20 -20
- package/lib/components/Drawer.js +2 -2
- package/lib/components/DropDownSelection.d.ts +80 -80
- package/lib/components/DropDownSelection.js +2 -2
- package/lib/components/Editor.d.ts +40 -40
- package/lib/components/Editor.js +2 -2
- package/lib/components/Form.js +2 -2
- package/lib/components/FormField.js +2 -2
- package/lib/components/GaodeMapPicker.js +2 -2
- package/lib/components/GridNav.js +2 -2
- package/lib/components/GroupedSelection.d.ts +80 -80
- package/lib/components/GroupedSelection.js +2 -2
- package/lib/components/Html.js +2 -2
- package/lib/components/ImageGallery.d.ts +40 -40
- package/lib/components/ImageGallery.js +2 -2
- package/lib/components/Input.js +2 -2
- package/lib/components/InputBox.d.ts +11 -10
- package/lib/components/InputBox.js +4 -4
- package/lib/components/InputBoxWithSuggestion.js +2 -2
- package/lib/components/InputTable.js +2 -2
- package/lib/components/Layout.d.ts +10 -10
- package/lib/components/Layout.js +2 -2
- package/lib/components/Link.js +2 -2
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +2 -2
- package/lib/components/ListMenu.d.ts +80 -80
- package/lib/components/ListMenu.js +2 -2
- package/lib/components/LocationPicker.d.ts +40 -40
- package/lib/components/LocationPicker.js +2 -2
- package/lib/components/Markdown.js +2 -2
- package/lib/components/Modal.d.ts +80 -80
- package/lib/components/Modal.js +2 -2
- package/lib/components/ModalManager.js +2 -2
- package/lib/components/MonthRangePicker.d.ts +160 -160
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +2 -2
- package/lib/components/NumberInput.d.ts +21 -20
- package/lib/components/NumberInput.js +4 -4
- package/lib/components/OverflowTpl.js +2 -2
- package/lib/components/Pagination.d.ts +80 -80
- package/lib/components/Pagination.js +2 -2
- package/lib/components/PdfViewer.d.ts +48 -0
- package/lib/components/PdfViewer.js +94 -0
- package/lib/components/Picker.js +2 -2
- package/lib/components/PickerColumn.js +2 -2
- package/lib/components/PickerContainer.js +4 -4
- package/lib/components/PopOverContainer.js +2 -2
- package/lib/components/PopUp.d.ts +80 -80
- package/lib/components/PopUp.js +2 -2
- package/lib/components/Progress.d.ts +50 -50
- package/lib/components/Progress.js +2 -2
- package/lib/components/PullRefresh.js +2 -2
- package/lib/components/Radios.d.ts +30 -30
- package/lib/components/Radios.js +2 -2
- package/lib/components/Range.js +2 -2
- package/lib/components/Rating.d.ts +10 -10
- package/lib/components/Rating.js +2 -2
- package/lib/components/ResultBox.d.ts +80 -80
- package/lib/components/ResultBox.js +2 -2
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +4 -8
- package/lib/components/ResultTableList.d.ts +80 -80
- package/lib/components/ResultTableList.js +2 -2
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +2 -2
- package/lib/components/RichText.js +2 -2
- package/lib/components/SearchBox.d.ts +120 -120
- package/lib/components/SearchBox.js +2 -2
- package/lib/components/Select.d.ts +1554 -1554
- package/lib/components/Select.js +43 -36
- package/lib/components/SelectMobile.d.ts +1 -0
- package/lib/components/SelectMobile.js +4 -4
- package/lib/components/Selection.d.ts +80 -80
- package/lib/components/Selection.js +2 -2
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +3 -3
- package/lib/components/Spinner.d.ts +62 -60
- package/lib/components/Spinner.js +16 -4
- package/lib/components/Steps.js +2 -2
- package/lib/components/Switch.d.ts +11 -10
- package/lib/components/Switch.js +5 -5
- package/lib/components/TableSelection.d.ts +80 -80
- package/lib/components/TableSelection.js +2 -2
- package/lib/components/Tabs.d.ts +120 -120
- package/lib/components/Tabs.js +5 -3
- package/lib/components/TabsTransfer.d.ts +44 -40
- package/lib/components/TabsTransfer.js +7 -6
- package/lib/components/TabsTransferPicker.js +4 -4
- package/lib/components/Tag.d.ts +50 -50
- package/lib/components/Tag.js +2 -2
- package/lib/components/Textarea.d.ts +41 -40
- package/lib/components/Textarea.js +5 -5
- package/lib/components/Timeline.js +2 -2
- package/lib/components/TimelineItem.d.ts +1 -1
- package/lib/components/TimelineItem.js +2 -2
- package/lib/components/Tinymce.js +2 -2
- package/lib/components/TitleBar.d.ts +10 -10
- package/lib/components/TitleBar.js +2 -2
- package/lib/components/Toast.d.ts +120 -120
- package/lib/components/Toast.js +2 -2
- package/lib/components/Tooltip.js +3 -3
- package/lib/components/TooltipWrapper.d.ts +40 -40
- package/lib/components/TooltipWrapper.js +2 -2
- package/lib/components/Transfer.d.ts +248 -194
- package/lib/components/Transfer.js +88 -35
- package/lib/components/TransferDropDown.d.ts +160 -160
- package/lib/components/TransferDropDown.js +2 -2
- package/lib/components/TransferPicker.d.ts +5 -1
- package/lib/components/TransferPicker.js +24 -7
- package/lib/components/TransferSearch.js +2 -2
- package/lib/components/Tree.d.ts +280 -280
- package/lib/components/Tree.js +2 -2
- package/lib/components/TreeSelection.d.ts +80 -80
- package/lib/components/TreeSelection.js +2 -2
- package/lib/components/UserSelect.d.ts +40 -40
- package/lib/components/UserSelect.js +3 -3
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +2 -2
- package/lib/components/WithRemoteConfig.d.ts +0 -1
- package/lib/components/WithRemoteConfig.js +2 -2
- package/lib/components/WithStore.js +2 -2
- package/lib/components/calendar/Calendar.js +9 -3
- package/lib/components/calendar/CalendarContainer.js +2 -2
- package/lib/components/calendar/DaysView.js +2 -2
- package/lib/components/calendar/MonthsView.js +2 -2
- package/lib/components/calendar/QuartersView.js +2 -2
- package/lib/components/calendar/TimeView.js +2 -2
- package/lib/components/calendar/YearsView.js +2 -2
- package/lib/components/condition-builder/Expression.js +2 -2
- package/lib/components/condition-builder/Field.js +2 -2
- package/lib/components/condition-builder/Func.js +2 -2
- package/lib/components/condition-builder/Group.js +2 -2
- package/lib/components/condition-builder/GroupOrItem.js +2 -2
- package/lib/components/condition-builder/InputSwitch.js +2 -2
- package/lib/components/condition-builder/Item.js +14 -12
- package/lib/components/condition-builder/Value.js +2 -2
- package/lib/components/condition-builder/config.js +2 -2
- package/lib/components/condition-builder/index.d.ts +1 -1
- package/lib/components/condition-builder/index.js +2 -2
- package/lib/components/formula/Editor.d.ts +40 -40
- package/lib/components/formula/Editor.js +2 -2
- package/lib/components/formula/FuncList.js +2 -2
- package/lib/components/formula/Input.js +5 -3
- package/lib/components/formula/Picker.d.ts +57 -56
- package/lib/components/formula/Picker.js +60 -25
- package/lib/components/formula/VariableList.js +2 -2
- package/lib/components/formula/plugin.js +2 -2
- package/lib/components/icons.d.ts +1 -1
- package/lib/components/icons.js +28 -19
- package/lib/components/json-schema/Array.js +2 -2
- package/lib/components/json-schema/Item.js +2 -2
- package/lib/components/json-schema/Object.js +2 -2
- package/lib/components/json-schema/index.js +2 -2
- package/lib/components/menu/MenuContext.js +2 -2
- package/lib/components/menu/MenuItem.d.ts +1 -0
- package/lib/components/menu/MenuItem.js +4 -4
- package/lib/components/menu/SubMenu.d.ts +0 -1
- package/lib/components/menu/SubMenu.js +4 -4
- package/lib/components/menu/index.d.ts +64 -65
- package/lib/components/menu/index.js +5 -5
- package/lib/components/schema-editor/Array.js +2 -2
- package/lib/components/schema-editor/Common.js +2 -2
- package/lib/components/schema-editor/Item.js +2 -2
- package/lib/components/schema-editor/Object.js +2 -2
- package/lib/components/schema-editor/SchemaVariableList.js +2 -2
- package/lib/components/schema-editor/SchemaVariableListPicker.js +2 -2
- package/lib/components/schema-editor/index.d.ts +40 -40
- package/lib/components/schema-editor/index.js +2 -2
- package/lib/components/table/Cell.js +2 -2
- package/lib/components/table/ColGroup.js +2 -2
- package/lib/components/table/Head.js +3 -3
- package/lib/components/table/HeadCellDropDown.js +2 -2
- package/lib/components/table/HeadCellFilter.d.ts +40 -40
- package/lib/components/table/HeadCellFilter.js +2 -2
- package/lib/components/table/HeadCellSelect.d.ts +40 -40
- package/lib/components/table/HeadCellSelect.js +2 -2
- package/lib/components/table/HeadCellSort.js +2 -2
- package/lib/components/table/ItemActionsWrapper.js +2 -2
- package/lib/components/table/Row.js +2 -4
- package/lib/components/table/SummaryRow.js +2 -2
- package/lib/components/table/index.d.ts +120 -120
- package/lib/components/table/index.js +2 -2
- package/lib/components/table/util.d.ts +7 -7
- package/lib/components/table/util.js +2 -2
- package/lib/components/virtual-list/AutoSizer.js +2 -2
- package/lib/components/virtual-list/SizeAndPositionManager.js +2 -2
- package/lib/components/virtual-list/constants.js +2 -2
- package/lib/components/virtual-list/index.js +2 -2
- package/lib/helper.css +1234 -9603
- package/lib/hooks/use-set-state.js +2 -2
- package/lib/hooks/use-sub-form.js +2 -2
- package/lib/hooks/use-touch.js +2 -2
- package/lib/hooks/use-update-effect.js +2 -2
- package/lib/hooks/use-validation-resolver.js +2 -2
- package/lib/icons/alert-danger.svg.js +2 -2
- package/lib/icons/alert-info.svg.js +2 -2
- package/lib/icons/alert-success.svg.js +2 -2
- package/lib/icons/alert-warning.svg.js +2 -2
- package/lib/icons/arrow-double-left.svg.js +2 -2
- package/lib/icons/arrow-double-right.svg.js +2 -2
- package/lib/icons/back.svg.js +2 -2
- package/lib/icons/calendar.svg.js +2 -2
- package/lib/icons/caret.svg.js +2 -2
- package/lib/icons/check.svg.js +2 -2
- package/lib/icons/clock.svg.js +2 -2
- package/lib/icons/close-small.svg.js +2 -2
- package/lib/icons/close.svg.js +2 -2
- package/lib/icons/cloud-upload.svg.js +2 -2
- package/lib/icons/column-filter.svg.js +2 -2
- package/lib/icons/columns.svg.js +2 -2
- package/lib/icons/compress-alt.svg.js +2 -2
- package/lib/icons/copy.svg.js +2 -2
- package/lib/icons/date.svg.js +2 -2
- package/lib/icons/department.svg.js +2 -2
- package/lib/icons/desk-empty.svg.js +2 -2
- package/lib/icons/dot.svg.js +2 -2
- package/lib/icons/down-arrow-bold.svg.js +2 -2
- package/lib/icons/down.svg.js +2 -2
- package/lib/icons/download.svg.js +2 -2
- package/lib/icons/drag-bar.svg.js +2 -2
- package/lib/icons/drag.svg.js +2 -2
- package/lib/icons/edit.svg.js +2 -2
- package/lib/icons/ellipsis-v.svg.js +2 -2
- package/lib/icons/enter.svg.js +2 -2
- package/lib/icons/exchange.svg.js +2 -2
- package/lib/icons/expand-alt.svg.js +2 -2
- package/lib/icons/fail.svg.js +2 -2
- package/lib/icons/file.svg.js +2 -2
- package/lib/icons/filter.svg.js +2 -2
- package/lib/icons/folder.svg.js +2 -2
- package/lib/icons/function.svg.js +6 -12
- package/lib/icons/home.svg.js +2 -2
- package/lib/icons/if.svg.js +2 -2
- package/lib/icons/image.svg.js +2 -2
- package/lib/icons/info-circle.svg.js +2 -2
- package/lib/icons/info.svg.js +2 -2
- package/lib/icons/input-clear.svg.js +2 -2
- package/lib/icons/invisible.svg.js +2 -2
- package/lib/icons/left-arrow.svg.js +2 -2
- package/lib/icons/loading-outline.svg.js +2 -2
- package/lib/icons/location.svg.js +2 -2
- package/lib/icons/menu.svg.js +2 -2
- package/lib/icons/minus.svg.js +2 -2
- package/lib/icons/move.svg.js +2 -2
- package/lib/icons/mute.svg.js +2 -2
- package/lib/icons/new-edit.svg.js +2 -2
- package/lib/icons/pause.svg.js +2 -2
- package/lib/icons/pencil.svg.js +2 -2
- package/lib/icons/play.svg.js +2 -2
- package/lib/icons/plus-cicle.svg.js +2 -2
- package/lib/icons/plus-fine.svg.js +2 -2
- package/lib/icons/plus.svg.js +2 -2
- package/lib/icons/post.svg.js +2 -2
- package/lib/icons/question-mark.svg.js +2 -2
- package/lib/icons/question.svg.js +2 -2
- package/lib/icons/redo.svg.js +2 -2
- package/lib/icons/refresh.svg.js +2 -2
- package/lib/icons/reload.svg.js +2 -2
- package/lib/icons/remove.svg.js +2 -2
- package/lib/icons/retry.svg.js +2 -2
- package/lib/icons/right-arrow-bold.svg.js +2 -2
- package/lib/icons/right-arrow.svg.js +2 -2
- package/lib/icons/right-double-arrow.svg.js +2 -2
- package/lib/icons/role.svg.js +2 -2
- package/lib/icons/rotate-left.svg.js +2 -2
- package/lib/icons/rotate-right.svg.js +2 -2
- package/lib/icons/scale-origin.svg.js +2 -2
- package/lib/icons/schedule.svg.js +2 -2
- package/lib/icons/search.svg.js +3 -2
- package/lib/icons/setting.svg.js +2 -2
- package/lib/icons/slider-handle-icon.svg.js +2 -2
- package/lib/icons/sort-asc.svg.js +2 -2
- package/lib/icons/sort-default.svg.js +2 -2
- package/lib/icons/sort-desc.svg.js +2 -2
- package/lib/icons/star.svg.js +2 -2
- package/lib/icons/status-close.svg.js +2 -2
- package/lib/icons/steps-finsh.svg.js +2 -2
- package/lib/icons/success.svg.js +2 -2
- package/lib/icons/transparent.svg.js +2 -2
- package/lib/icons/trash.svg.js +3 -3
- package/lib/icons/tree-down.svg.js +2 -2
- package/lib/icons/undo.svg.js +2 -2
- package/lib/icons/upload.svg.js +2 -2
- package/lib/icons/user-remove.svg.js +2 -2
- package/lib/icons/view.svg.js +2 -2
- package/lib/icons/volume.svg.js +2 -2
- package/lib/icons/warning-mark.svg.js +2 -2
- package/lib/icons/warning.svg.js +2 -2
- package/lib/icons/window-restore.svg.js +2 -2
- package/lib/icons/zoom-in.svg.js +2 -2
- package/lib/icons/zoom-out.svg.js +2 -2
- package/lib/index.js +2 -2
- package/lib/locale/de-DE.js +3 -2
- package/lib/locale/en-US.js +3 -2
- package/lib/locale/zh-CN.js +3 -2
- package/lib/scss/helper.scss.js +2 -2
- package/lib/scss/themes/ang.scss.js +2 -2
- package/lib/scss/themes/antd.scss.js +2 -2
- package/lib/scss/themes/cxd.scss.js +2 -2
- package/lib/scss/themes/dark.scss.js +2 -2
- package/lib/scss/themes/default.scss.js +2 -2
- package/lib/themes/ang.css +499 -545
- package/lib/themes/ang.js +2 -2
- package/lib/themes/antd.css +499 -545
- package/lib/themes/antd.js +2 -2
- package/lib/themes/cxd.css +499 -545
- package/lib/themes/cxd.js +2 -2
- package/lib/themes/dark.css +622 -642
- package/lib/themes/dark.js +2 -2
- package/lib/themes/default.css +499 -545
- package/package.json +6 -10
- package/scss/_components.scss +25 -20
- package/scss/_properties.scss +17 -19
- package/scss/components/_anchor-nav.scss +3 -0
- package/scss/components/_app.scss +5 -0
- package/scss/components/_array-input.scss +1 -1
- package/scss/components/_breadcrumb.scss +6 -5
- package/scss/components/_button-group.scss +10 -1
- package/scss/components/_card.scss +11 -4
- package/scss/components/_color.scss +0 -1
- package/scss/components/_drawer.scss +4 -0
- package/scss/components/_dropdown.scss +2 -1
- package/scss/components/_formula.scss +5 -6
- package/scss/components/_image-gallery.scss +4 -2
- package/scss/components/_menu.scss +21 -17
- package/scss/components/_modal.scss +0 -1
- package/scss/components/_nav.scss +3 -2
- package/scss/components/_pagination.scss +14 -10
- package/scss/components/_pdf_viewer.scss +45 -0
- package/scss/components/_popover.scss +1 -1
- package/scss/components/_print.scss +13 -0
- package/scss/components/_quick-edit.scss +6 -9
- package/scss/components/_search-box.scss +8 -4
- package/scss/components/_spinner.scss +6 -0
- package/scss/components/_steps.scss +13 -16
- package/scss/components/_table.scss +5 -0
- package/scss/components/_tooltip.scss +2 -1
- package/scss/components/_wrapper.scss +4 -0
- package/scss/components/form/_checks.scss +1 -1
- package/scss/components/form/_date-range.scss +1 -1
- package/scss/components/form/_date.scss +13 -13
- package/scss/components/form/_editor.scss +0 -1
- package/scss/components/form/_excel.scss +3 -3
- package/scss/components/form/_form.scss +1 -7
- package/scss/components/form/_list.scss +5 -5
- package/scss/components/form/_nested-select.scss +1 -1
- package/scss/components/form/_number.scss +5 -5
- package/scss/components/form/_select.scss +7 -4
- package/scss/components/form/_selection.scss +1 -0
- package/scss/components/form/_tag.scss +0 -2
- package/scss/components/form/_text.scss +1 -1
- package/scss/components/form/_textarea.scss +1 -1
- package/scss/components/form/_transfer.scss +0 -4
- package/scss/components/form/_tree-select.scss +2 -1
- package/scss/components/react-datetime.scss +1 -1
- package/scss/layout/_layout.scss +3 -3
- package/scss/themes/_common.scss +3 -0
- package/scss/themes/_dark-variables.scss +94 -97
- package/scss/themes/dark.scss +30 -0
- package/LICENSE +0 -201
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v6.
|
|
3
|
-
* Copyright 2018-
|
|
2
|
+
* amis-ui v6.2.0
|
|
3
|
+
* Copyright 2018-2024 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
'use strict';
|
|
@@ -49,11 +49,13 @@ var ConditionItem = /** @class */ (function (_super) {
|
|
|
49
49
|
onChange(value, this.props.index);
|
|
50
50
|
};
|
|
51
51
|
ConditionItem.prototype.handleLeftChange = function (leftValue) {
|
|
52
|
-
var _a;
|
|
53
|
-
var
|
|
52
|
+
var _a, _b, _c, _d;
|
|
53
|
+
var _e = this.props, fields = _e.fields, config = _e.config;
|
|
54
54
|
// 获取默认Op
|
|
55
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)
|
|
56
|
+
var value = tslib.__assign(tslib.__assign({}, this.props.value), { left: leftValue, op: (_d = (_b = (_a = field === null || field === void 0 ? void 0 : field.defaultOp) !== null && _a !== void 0 ? _a : (Array.isArray(field === null || field === void 0 ? void 0 : field.operators) && field.operators.length === 1
|
|
57
|
+
? field.operators[0].value || field.operators[0]
|
|
58
|
+
: undefined)) !== null && _b !== void 0 ? _b : (_c = config.types[field === null || field === void 0 ? void 0 : field.type]) === null || _c === void 0 ? void 0 : _c.defaultOp) !== null && _d !== void 0 ? _d : undefined, right: undefined });
|
|
57
59
|
var onChange = this.props.onChange;
|
|
58
60
|
onChange(value, this.props.index);
|
|
59
61
|
};
|
|
@@ -126,15 +128,15 @@ var ConditionItem = /** @class */ (function (_super) {
|
|
|
126
128
|
return operator;
|
|
127
129
|
}
|
|
128
130
|
});
|
|
129
|
-
return (_J$X_(PopOverContainer.PopOverContainer, { mobileUI: mobileUI, disabled: operators.length < 2, popOverContainer: popOverContainer || (function () { return ReactDOM.findDOMNode(_this); }), popOverRender: function (_a) {
|
|
131
|
+
return (_J$X_(PopOverContainer.PopOverContainer, { mobileUI: mobileUI, disabled: !!((value === null || value === void 0 ? void 0 : value.op) && operators.length < 2), popOverContainer: popOverContainer || (function () { return ReactDOM.findDOMNode(_this); }), popOverRender: function (_a) {
|
|
130
132
|
var onClose = _a.onClose;
|
|
131
133
|
return (_J$X_(GroupedSelection["default"], { onClick: onClose, option2value: option2value, onChange: _this.handleOperatorChange, options: options_1, value: value.op, multiple: false }));
|
|
132
134
|
} }, function (_a) {
|
|
133
135
|
var _b;
|
|
134
136
|
var onClick = _a.onClick, isOpened = _a.isOpened, ref = _a.ref; _a.disabled;
|
|
135
137
|
return (_J$X_("div", { className: cx('CBGroup-operator') },
|
|
136
|
-
_J$X_(ResultBox["default"], { className: cx('CBGroup-operatorInput', isOpened ? 'is-active' : ''), ref: ref, allowInput: false, result:
|
|
137
|
-
(
|
|
138
|
+
_J$X_(ResultBox["default"], { className: cx('CBGroup-operatorInput', isOpened ? 'is-active' : ''), ref: ref, allowInput: false, result: ((_b = options_1.find(function (option) { return option.value === value.op; })) === null || _b === void 0 ? void 0 : _b.label) ||
|
|
139
|
+
__1(config.OperationMap[value === null || value === void 0 ? void 0 : value.op]), onResultChange: amisCore.noop, onResultClick: onClick, disabled: disabled, placeholder: __1('Condition.cond_placeholder'), mobileUI: mobileUI }, !mobileUI ? (_J$X_("span", { className: cx('CBGroup-operatorCaret') },
|
|
138
140
|
_J$X_(icons.Icon, { icon: "right-arrow-bold", className: "icon" }))) : null)));
|
|
139
141
|
}));
|
|
140
142
|
}
|
|
@@ -182,20 +184,20 @@ var ConditionItem = /** @class */ (function (_super) {
|
|
|
182
184
|
}
|
|
183
185
|
else if (op === 'between' || op === 'not_between') {
|
|
184
186
|
return (_J$X_(React__default["default"].Fragment, null,
|
|
185
|
-
_J$X_(Expression["default"], { config: config, funcs: funcs, valueField: field, value: (_c = value.right) === null || _c === void 0 ? void 0 : _c[0], data: data, onChange: this.handleRightSubChange.bind(this, 0), fields: fields, allowedTypes: (field === null || field === void 0 ? void 0 : field.valueTypes) ||
|
|
187
|
+
_J$X_(Expression["default"], { key: "".concat(field.name, "-0"), config: config, funcs: funcs, valueField: field, value: (_c = value.right) === null || _c === void 0 ? void 0 : _c[0], data: data, onChange: this.handleRightSubChange.bind(this, 0), fields: fields, allowedTypes: (field === null || field === void 0 ? void 0 : field.valueTypes) ||
|
|
186
188
|
config.valueTypes || ['value', 'field', 'func'], disabled: disabled, formula: formula, popOverContainer: popOverContainer, renderEtrValue: renderEtrValue }),
|
|
187
189
|
_J$X_("span", { className: cx('CBSeprator') }, "~"),
|
|
188
|
-
_J$X_(Expression["default"], { config: config, funcs: funcs, valueField: field, value: (_d = value.right) === null || _d === void 0 ? void 0 : _d[1], data: data, onChange: this.handleRightSubChange.bind(this, 1), fields: fields, allowedTypes: (field === null || field === void 0 ? void 0 : field.valueTypes) ||
|
|
190
|
+
_J$X_(Expression["default"], { key: "".concat(field.name, "-1"), config: config, funcs: funcs, valueField: field, value: (_d = value.right) === null || _d === void 0 ? void 0 : _d[1], data: data, onChange: this.handleRightSubChange.bind(this, 1), fields: fields, allowedTypes: (field === null || field === void 0 ? void 0 : field.valueTypes) ||
|
|
189
191
|
config.valueTypes || ['value', 'field', 'func'], disabled: disabled, formula: formula, popOverContainer: popOverContainer, renderEtrValue: renderEtrValue })));
|
|
190
192
|
}
|
|
191
193
|
else if (option && typeof option !== 'string' && option.values) {
|
|
192
194
|
return option.values.map(function (schema, i) {
|
|
193
195
|
return (_J$X_("span", { key: i },
|
|
194
|
-
_J$X_(Expression["default"], { config: config, op: op, funcs: funcs, valueField: tslib.__assign(tslib.__assign({}, field), { value: schema }), value: amisCore.getVariable(value.right, schema.name), data: data, onChange: _this.handleRightSubChange.bind(_this, schema.name), fields: fields, allowedTypes: (field === null || field === void 0 ? void 0 : field.valueTypes) ||
|
|
196
|
+
_J$X_(Expression["default"], { key: "".concat(field.name, "-").concat(i), config: config, op: op, funcs: funcs, valueField: tslib.__assign(tslib.__assign({}, field), { value: schema }), value: amisCore.getVariable(value.right, schema.name), data: data, onChange: _this.handleRightSubChange.bind(_this, schema.name), fields: fields, allowedTypes: (field === null || field === void 0 ? void 0 : field.valueTypes) ||
|
|
195
197
|
config.valueTypes || ['value', 'field', 'func'], disabled: disabled, formula: formula, popOverContainer: popOverContainer, renderEtrValue: renderEtrValue })));
|
|
196
198
|
});
|
|
197
199
|
}
|
|
198
|
-
return (_J$X_(Expression["default"], { config: config, op: op, funcs: funcs, valueField: field, value: value.right, data: data, onChange: this.handleRightChange, fields: fields, allowedTypes: (field === null || field === void 0 ? void 0 : field.valueTypes) || config.valueTypes || ['value', 'field', 'func'], disabled: disabled, formula: formula, popOverContainer: popOverContainer, renderEtrValue: renderEtrValue }));
|
|
200
|
+
return (_J$X_(Expression["default"], { key: "".concat(field.name, "-0"), config: config, op: op, funcs: funcs, valueField: field, value: value.right, data: data, onChange: this.handleRightChange, fields: fields, allowedTypes: (field === null || field === void 0 ? void 0 : field.valueTypes) || config.valueTypes || ['value', 'field', 'func'], disabled: disabled, formula: formula, popOverContainer: popOverContainer, renderEtrValue: renderEtrValue }));
|
|
199
201
|
};
|
|
200
202
|
ConditionItem.prototype.render = function () {
|
|
201
203
|
var cx = this.props.classnames;
|
|
@@ -43,7 +43,7 @@ export interface ConditionBuilderState {
|
|
|
43
43
|
}
|
|
44
44
|
export declare class QueryBuilder extends React.Component<ConditionBuilderProps, ConditionBuilderState> {
|
|
45
45
|
config: {
|
|
46
|
-
valueTypes?: ("value" | "
|
|
46
|
+
valueTypes?: ("value" | "field" | "func")[] | undefined;
|
|
47
47
|
fields?: ConditionBuilderFields | undefined;
|
|
48
48
|
funcs?: ConditionBuilderFuncs | undefined;
|
|
49
49
|
maxLevel?: number | undefined;
|
|
@@ -119,7 +119,7 @@ export declare class FormulaEditor extends React.Component<FormulaEditorProps, F
|
|
|
119
119
|
render(): React.JSX.Element;
|
|
120
120
|
}
|
|
121
121
|
declare const _default: {
|
|
122
|
-
new (props: Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
122
|
+
new (props: Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
123
123
|
variables?: VariableItem[] | undefined;
|
|
124
124
|
evalMode?: boolean | undefined;
|
|
125
125
|
} & {} & {
|
|
@@ -131,7 +131,7 @@ declare const _default: {
|
|
|
131
131
|
getWrappedInstance(): any;
|
|
132
132
|
render(): React.JSX.Element;
|
|
133
133
|
context: unknown;
|
|
134
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
134
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
135
135
|
variables?: VariableItem[] | undefined;
|
|
136
136
|
evalMode?: boolean | undefined;
|
|
137
137
|
} & {} & {
|
|
@@ -139,7 +139,7 @@ declare const _default: {
|
|
|
139
139
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
140
140
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
141
141
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
142
|
-
readonly props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
142
|
+
readonly props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
143
143
|
variables?: VariableItem[] | undefined;
|
|
144
144
|
evalMode?: boolean | undefined;
|
|
145
145
|
} & {} & {
|
|
@@ -151,7 +151,7 @@ declare const _default: {
|
|
|
151
151
|
[key: string]: React.ReactInstance;
|
|
152
152
|
};
|
|
153
153
|
componentDidMount?(): void;
|
|
154
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
154
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
155
155
|
variables?: VariableItem[] | undefined;
|
|
156
156
|
evalMode?: boolean | undefined;
|
|
157
157
|
} & {} & {
|
|
@@ -160,14 +160,14 @@ declare const _default: {
|
|
|
160
160
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
161
161
|
componentWillUnmount?(): void;
|
|
162
162
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
163
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
163
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
164
164
|
variables?: VariableItem[] | undefined;
|
|
165
165
|
evalMode?: boolean | undefined;
|
|
166
166
|
} & {} & {
|
|
167
167
|
locale?: string | undefined;
|
|
168
168
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
169
169
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
|
|
170
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
170
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
171
171
|
variables?: VariableItem[] | undefined;
|
|
172
172
|
evalMode?: boolean | undefined;
|
|
173
173
|
} & {} & {
|
|
@@ -176,28 +176,28 @@ declare const _default: {
|
|
|
176
176
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
177
177
|
componentWillMount?(): void;
|
|
178
178
|
UNSAFE_componentWillMount?(): void;
|
|
179
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
179
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
180
180
|
variables?: VariableItem[] | undefined;
|
|
181
181
|
evalMode?: boolean | undefined;
|
|
182
182
|
} & {} & {
|
|
183
183
|
locale?: string | undefined;
|
|
184
184
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
185
185
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
186
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
186
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
187
187
|
variables?: VariableItem[] | undefined;
|
|
188
188
|
evalMode?: boolean | undefined;
|
|
189
189
|
} & {} & {
|
|
190
190
|
locale?: string | undefined;
|
|
191
191
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
192
192
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
|
|
193
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
193
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
194
194
|
variables?: VariableItem[] | undefined;
|
|
195
195
|
evalMode?: boolean | undefined;
|
|
196
196
|
} & {} & {
|
|
197
197
|
locale?: string | undefined;
|
|
198
198
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
199
199
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
200
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
200
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
201
201
|
variables?: VariableItem[] | undefined;
|
|
202
202
|
evalMode?: boolean | undefined;
|
|
203
203
|
} & {} & {
|
|
@@ -208,7 +208,7 @@ declare const _default: {
|
|
|
208
208
|
displayName: string;
|
|
209
209
|
contextType: React.Context<string>;
|
|
210
210
|
ComposedComponent: React.ComponentType<{
|
|
211
|
-
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
211
|
+
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
212
212
|
variables?: VariableItem[] | undefined;
|
|
213
213
|
evalMode?: boolean | undefined;
|
|
214
214
|
} & {} & {
|
|
@@ -220,7 +220,7 @@ declare const _default: {
|
|
|
220
220
|
getWrappedInstance(): any;
|
|
221
221
|
render(): React.JSX.Element;
|
|
222
222
|
context: unknown;
|
|
223
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
223
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
224
224
|
variables?: VariableItem[] | undefined;
|
|
225
225
|
evalMode?: boolean | undefined;
|
|
226
226
|
} & {} & {
|
|
@@ -228,7 +228,7 @@ declare const _default: {
|
|
|
228
228
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
229
229
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
230
230
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
231
|
-
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
231
|
+
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
232
232
|
variables?: VariableItem[] | undefined;
|
|
233
233
|
evalMode?: boolean | undefined;
|
|
234
234
|
} & {} & {
|
|
@@ -240,7 +240,7 @@ declare const _default: {
|
|
|
240
240
|
[key: string]: React.ReactInstance;
|
|
241
241
|
};
|
|
242
242
|
componentDidMount?(): void;
|
|
243
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
243
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
244
244
|
variables?: VariableItem[] | undefined;
|
|
245
245
|
evalMode?: boolean | undefined;
|
|
246
246
|
} & {} & {
|
|
@@ -249,14 +249,14 @@ declare const _default: {
|
|
|
249
249
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
250
250
|
componentWillUnmount?(): void;
|
|
251
251
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
252
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
252
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
253
253
|
variables?: VariableItem[] | undefined;
|
|
254
254
|
evalMode?: boolean | undefined;
|
|
255
255
|
} & {} & {
|
|
256
256
|
locale?: string | undefined;
|
|
257
257
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
258
258
|
}>, prevState: Readonly<{}>): any;
|
|
259
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
259
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
260
260
|
variables?: VariableItem[] | undefined;
|
|
261
261
|
evalMode?: boolean | undefined;
|
|
262
262
|
} & {} & {
|
|
@@ -265,28 +265,28 @@ declare const _default: {
|
|
|
265
265
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
266
266
|
componentWillMount?(): void;
|
|
267
267
|
UNSAFE_componentWillMount?(): void;
|
|
268
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
268
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
269
269
|
variables?: VariableItem[] | undefined;
|
|
270
270
|
evalMode?: boolean | undefined;
|
|
271
271
|
} & {} & {
|
|
272
272
|
locale?: string | undefined;
|
|
273
273
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
274
274
|
}>, nextContext: any): void;
|
|
275
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
275
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
276
276
|
variables?: VariableItem[] | undefined;
|
|
277
277
|
evalMode?: boolean | undefined;
|
|
278
278
|
} & {} & {
|
|
279
279
|
locale?: string | undefined;
|
|
280
280
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
281
281
|
}>, nextContext: any): void;
|
|
282
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
282
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
283
283
|
variables?: VariableItem[] | undefined;
|
|
284
284
|
evalMode?: boolean | undefined;
|
|
285
285
|
} & {} & {
|
|
286
286
|
locale?: string | undefined;
|
|
287
287
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
288
288
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
289
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
289
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
290
290
|
variables?: VariableItem[] | undefined;
|
|
291
291
|
evalMode?: boolean | undefined;
|
|
292
292
|
} & {} & {
|
|
@@ -301,7 +301,7 @@ declare const _default: {
|
|
|
301
301
|
ComposedComponent: typeof FormulaEditor;
|
|
302
302
|
}>;
|
|
303
303
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
304
|
-
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
304
|
+
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
305
305
|
variables?: VariableItem[] | undefined;
|
|
306
306
|
evalMode?: boolean | undefined;
|
|
307
307
|
} & {} & {
|
|
@@ -313,7 +313,7 @@ declare const _default: {
|
|
|
313
313
|
getWrappedInstance(): any;
|
|
314
314
|
render(): React.JSX.Element;
|
|
315
315
|
context: unknown;
|
|
316
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
316
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
317
317
|
variables?: VariableItem[] | undefined;
|
|
318
318
|
evalMode?: boolean | undefined;
|
|
319
319
|
} & {} & {
|
|
@@ -321,7 +321,7 @@ declare const _default: {
|
|
|
321
321
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
322
322
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
323
323
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
324
|
-
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
324
|
+
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
325
325
|
variables?: VariableItem[] | undefined;
|
|
326
326
|
evalMode?: boolean | undefined;
|
|
327
327
|
} & {} & {
|
|
@@ -333,7 +333,7 @@ declare const _default: {
|
|
|
333
333
|
[key: string]: React.ReactInstance;
|
|
334
334
|
};
|
|
335
335
|
componentDidMount?(): void;
|
|
336
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
336
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
337
337
|
variables?: VariableItem[] | undefined;
|
|
338
338
|
evalMode?: boolean | undefined;
|
|
339
339
|
} & {} & {
|
|
@@ -342,14 +342,14 @@ declare const _default: {
|
|
|
342
342
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
343
343
|
componentWillUnmount?(): void;
|
|
344
344
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
345
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
345
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
346
346
|
variables?: VariableItem[] | undefined;
|
|
347
347
|
evalMode?: boolean | undefined;
|
|
348
348
|
} & {} & {
|
|
349
349
|
locale?: string | undefined;
|
|
350
350
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
351
351
|
}>, prevState: Readonly<{}>): any;
|
|
352
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
352
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
353
353
|
variables?: VariableItem[] | undefined;
|
|
354
354
|
evalMode?: boolean | undefined;
|
|
355
355
|
} & {} & {
|
|
@@ -358,28 +358,28 @@ declare const _default: {
|
|
|
358
358
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
359
359
|
componentWillMount?(): void;
|
|
360
360
|
UNSAFE_componentWillMount?(): void;
|
|
361
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
361
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
362
362
|
variables?: VariableItem[] | undefined;
|
|
363
363
|
evalMode?: boolean | undefined;
|
|
364
364
|
} & {} & {
|
|
365
365
|
locale?: string | undefined;
|
|
366
366
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
367
367
|
}>, nextContext: any): void;
|
|
368
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
368
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
369
369
|
variables?: VariableItem[] | undefined;
|
|
370
370
|
evalMode?: boolean | undefined;
|
|
371
371
|
} & {} & {
|
|
372
372
|
locale?: string | undefined;
|
|
373
373
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
374
374
|
}>, nextContext: any): void;
|
|
375
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
375
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
376
376
|
variables?: VariableItem[] | undefined;
|
|
377
377
|
evalMode?: boolean | undefined;
|
|
378
378
|
} & {} & {
|
|
379
379
|
locale?: string | undefined;
|
|
380
380
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
381
381
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
382
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
382
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
383
383
|
variables?: VariableItem[] | undefined;
|
|
384
384
|
evalMode?: boolean | undefined;
|
|
385
385
|
} & {} & {
|
|
@@ -394,7 +394,7 @@ declare const _default: {
|
|
|
394
394
|
ComposedComponent: typeof FormulaEditor;
|
|
395
395
|
}, {}> & {
|
|
396
396
|
ComposedComponent: {
|
|
397
|
-
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
397
|
+
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
398
398
|
variables?: VariableItem[] | undefined;
|
|
399
399
|
evalMode?: boolean | undefined;
|
|
400
400
|
} & {} & {
|
|
@@ -406,7 +406,7 @@ declare const _default: {
|
|
|
406
406
|
getWrappedInstance(): any;
|
|
407
407
|
render(): React.JSX.Element;
|
|
408
408
|
context: unknown;
|
|
409
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
409
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
410
410
|
variables?: VariableItem[] | undefined;
|
|
411
411
|
evalMode?: boolean | undefined;
|
|
412
412
|
} & {} & {
|
|
@@ -414,7 +414,7 @@ declare const _default: {
|
|
|
414
414
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
415
415
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
416
416
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
417
|
-
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
417
|
+
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
418
418
|
variables?: VariableItem[] | undefined;
|
|
419
419
|
evalMode?: boolean | undefined;
|
|
420
420
|
} & {} & {
|
|
@@ -426,7 +426,7 @@ declare const _default: {
|
|
|
426
426
|
[key: string]: React.ReactInstance;
|
|
427
427
|
};
|
|
428
428
|
componentDidMount?(): void;
|
|
429
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
429
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
430
430
|
variables?: VariableItem[] | undefined;
|
|
431
431
|
evalMode?: boolean | undefined;
|
|
432
432
|
} & {} & {
|
|
@@ -435,14 +435,14 @@ declare const _default: {
|
|
|
435
435
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
436
436
|
componentWillUnmount?(): void;
|
|
437
437
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
438
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
438
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
439
439
|
variables?: VariableItem[] | undefined;
|
|
440
440
|
evalMode?: boolean | undefined;
|
|
441
441
|
} & {} & {
|
|
442
442
|
locale?: string | undefined;
|
|
443
443
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
444
444
|
}>, prevState: Readonly<{}>): any;
|
|
445
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
445
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
446
446
|
variables?: VariableItem[] | undefined;
|
|
447
447
|
evalMode?: boolean | undefined;
|
|
448
448
|
} & {} & {
|
|
@@ -451,28 +451,28 @@ declare const _default: {
|
|
|
451
451
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
452
452
|
componentWillMount?(): void;
|
|
453
453
|
UNSAFE_componentWillMount?(): void;
|
|
454
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
454
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
455
455
|
variables?: VariableItem[] | undefined;
|
|
456
456
|
evalMode?: boolean | undefined;
|
|
457
457
|
} & {} & {
|
|
458
458
|
locale?: string | undefined;
|
|
459
459
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
460
460
|
}>, nextContext: any): void;
|
|
461
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
461
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
462
462
|
variables?: VariableItem[] | undefined;
|
|
463
463
|
evalMode?: boolean | undefined;
|
|
464
464
|
} & {} & {
|
|
465
465
|
locale?: string | undefined;
|
|
466
466
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
467
467
|
}>, nextContext: any): void;
|
|
468
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
468
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
469
469
|
variables?: VariableItem[] | undefined;
|
|
470
470
|
evalMode?: boolean | undefined;
|
|
471
471
|
} & {} & {
|
|
472
472
|
locale?: string | undefined;
|
|
473
473
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
474
474
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
475
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "
|
|
475
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
|
|
476
476
|
variables?: VariableItem[] | undefined;
|
|
477
477
|
evalMode?: boolean | undefined;
|
|
478
478
|
} & {} & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v6.
|
|
3
|
-
* Copyright 2018-
|
|
2
|
+
* amis-ui v6.2.0
|
|
3
|
+
* Copyright 2018-2024 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
'use strict';
|
|
@@ -140,7 +140,9 @@ var FormulaInput = function (props) {
|
|
|
140
140
|
? cmptValue.replace(/^\$\{/, '').replace(/\}$/, '')
|
|
141
141
|
: cmptValue;
|
|
142
142
|
var resultValue = (_a = targetVariable === null || targetVariable === void 0 ? void 0 : targetVariable.value) !== null && _a !== void 0 ? _a : varName;
|
|
143
|
-
return (_J$X_(ResultBox["default"], { className: cx("FormulaPicker-input-variable"), allowInput: allowInput,
|
|
143
|
+
return (_J$X_(ResultBox["default"], { className: cx("FormulaPicker-input-variable"), allowInput: allowInput,
|
|
144
|
+
// value={resultValue}
|
|
145
|
+
result: resultValue == null
|
|
144
146
|
? void 0
|
|
145
147
|
: Editor.FormulaEditor.highlightValue(resultValue, variables, evalMode), itemRender: function (item) {
|
|
146
148
|
return (_J$X_("div", { className: cx('FormulaPicker-ResultBox'), dangerouslySetInnerHTML: { __html: item.html } }));
|