amis-ui 2.9.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/_virtual/index.js +1 -1
- package/esm/_virtual/react-is.development.js +1 -1
- package/esm/_virtual/react-is.production.min.js +1 -1
- package/esm/components/404.d.ts +2 -2
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.d.ts +144 -88
- package/esm/components/Alert.js +37 -14
- package/esm/components/Alert2.d.ts +2 -2
- package/esm/components/Alert2.js +1 -1
- package/esm/components/AnchorNav.d.ts +5 -5
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/ArrayInput.d.ts +47 -47
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.d.ts +4 -4
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.d.ts +45 -45
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.d.ts +2 -2
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.d.ts +5 -5
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.d.ts +2 -2
- package/esm/components/BaiduMapPicker.js +1 -1
- package/esm/components/BarCode.d.ts +2 -2
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.d.ts +6 -6
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.d.ts +3 -3
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.d.ts +10 -10
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.d.ts +12 -12
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.d.ts +5 -5
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedSelection.d.ts +48 -48
- package/esm/components/ChainedSelection.js +2 -1
- package/esm/components/Checkbox.d.ts +2 -2
- package/esm/components/Checkbox.js +2 -2
- package/esm/components/CityArea.d.ts +4 -4
- package/esm/components/CityArea.js +1 -1
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.d.ts +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.d.ts +12 -12
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.d.ts +2 -2
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.d.ts +85 -85
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.d.ts +6 -9
- package/esm/components/Combo.js +8 -2
- package/esm/components/ConfirmBox.d.ts +45 -45
- package/esm/components/ConfirmBox.js +1 -1
- package/esm/components/ContextMenu.d.ts +3 -3
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +94 -91
- package/esm/components/DatePicker.js +39 -26
- package/esm/components/DateRangePicker.d.ts +305 -260
- package/esm/components/DateRangePicker.js +73 -43
- package/esm/components/DndContainer.d.ts +4 -4
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.d.ts +6 -5
- package/esm/components/Drawer.js +26 -10
- package/esm/components/Editor.d.ts +5 -5
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.d.ts +1 -1
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.d.ts +9 -15
- package/esm/components/FormField.js +1 -1
- package/esm/components/GaodeMapPicker.d.ts +89 -0
- package/esm/components/GaodeMapPicker.js +204 -0
- package/esm/components/GridNav.d.ts +4 -4
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.d.ts +46 -46
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/Html.d.ts +13 -12
- package/esm/components/Html.js +3 -3
- package/esm/components/ImageGallery.d.ts +57 -47
- package/esm/components/ImageGallery.js +8 -5
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.d.ts +12 -12
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.d.ts +5 -5
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/InputTable.d.ts +7 -7
- package/esm/components/InputTable.js +21 -14
- package/esm/components/Layout.d.ts +13 -12
- package/esm/components/Layout.js +8 -6
- package/esm/components/Link.d.ts +2 -2
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.d.ts +13 -13
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.d.ts +6 -6
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.d.ts +45 -45
- package/esm/components/LocationPicker.js +14 -2
- package/esm/components/Markdown.d.ts +1 -1
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Modal.d.ts +33 -32
- package/esm/components/Modal.js +25 -9
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +253 -249
- package/esm/components/MultilineText.d.ts +5 -5
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.d.ts +35 -24
- package/esm/components/NumberInput.js +10 -5
- package/esm/components/Pagination.d.ts +7 -28
- package/esm/components/Pagination.js +4 -3
- package/esm/components/Picker.d.ts +4 -4
- package/esm/components/Picker.js +1 -1
- package/esm/components/PickerColumn.d.ts +2 -7
- package/esm/components/PickerColumn.js +1 -1
- package/esm/components/PickerContainer.d.ts +6 -5
- package/esm/components/PickerContainer.js +3 -3
- package/esm/components/PopOverContainer.d.ts +1 -1
- package/esm/components/PopOverContainer.js +1 -1
- package/esm/components/PopUp.d.ts +45 -45
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.d.ts +3 -3
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.d.ts +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.d.ts +24 -24
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.d.ts +16 -2
- package/esm/components/Range.js +35 -4
- package/esm/components/Rating.d.ts +5 -5
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.d.ts +46 -46
- package/esm/components/ResultBox.js +1 -1
- package/esm/components/ResultList.d.ts +8 -8
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.d.ts +47 -47
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.d.ts +7 -7
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.d.ts +2 -1
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.d.ts +8 -8
- package/esm/components/SearchBox.js +1 -1
- package/esm/components/Select.d.ts +416 -408
- package/esm/components/Select.js +7 -6
- package/esm/components/Selection.d.ts +47 -46
- package/esm/components/Selection.js +1 -1
- package/esm/components/SparkLine.d.ts +6 -6
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.d.ts +3 -3
- package/esm/components/Spinner.js +3 -3
- package/esm/components/Steps.d.ts +5 -4
- package/esm/components/Steps.js +8 -6
- package/esm/components/Switch.d.ts +2 -2
- package/esm/components/Switch.js +1 -1
- package/esm/components/TableSelection.d.ts +53 -53
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.d.ts +50 -50
- package/esm/components/Tabs.js +1 -1
- package/esm/components/TabsTransfer.d.ts +49 -48
- package/esm/components/TabsTransfer.js +14 -14
- package/esm/components/TabsTransferPicker.d.ts +5 -5
- package/esm/components/TabsTransferPicker.js +4 -4
- package/esm/components/Tag.d.ts +5 -5
- package/esm/components/Tag.js +20 -4
- package/esm/components/Textarea.d.ts +5 -5
- package/esm/components/Textarea.js +1 -1
- package/esm/components/Timeline.d.ts +2 -2
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.d.ts +5 -5
- package/esm/components/TimelineItem.js +1 -1
- package/esm/components/Tinymce.d.ts +1 -1
- package/esm/components/Tinymce.js +1 -1
- package/esm/components/TitleBar.d.ts +1 -1
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.d.ts +8 -6
- package/esm/components/Toast.js +5 -5
- package/esm/components/Tooltip.d.ts +3 -2
- package/esm/components/Tooltip.js +3 -3
- package/esm/components/TooltipWrapper.d.ts +10 -2
- package/esm/components/TooltipWrapper.js +3 -3
- package/esm/components/Transfer.d.ts +192 -152
- package/esm/components/Transfer.js +20 -18
- package/esm/components/TransferDropDown.d.ts +85 -45
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.d.ts +5 -5
- package/esm/components/TransferPicker.js +4 -4
- package/esm/components/TransferSearch.d.ts +5 -5
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.d.ts +91 -89
- package/esm/components/Tree.js +20 -10
- package/esm/components/TreeSelection.d.ts +46 -46
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.d.ts +49 -49
- package/esm/components/UserSelect.js +7 -96
- package/esm/components/UserTabSelect.d.ts +45 -45
- package/esm/components/UserTabSelect.js +4 -95
- package/esm/components/WithRemoteConfig.d.ts +5 -5
- package/esm/components/WithRemoteConfig.js +7 -3
- package/esm/components/WithStore.d.ts +2 -2
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.d.ts +2 -0
- package/esm/components/calendar/Calendar.js +3 -1
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.d.ts +7 -7
- package/esm/components/calendar/DaysView.js +3 -3
- package/esm/components/calendar/MonthsView.d.ts +4 -4
- package/esm/components/calendar/MonthsView.js +8 -8
- package/esm/components/calendar/QuartersView.d.ts +4 -4
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.d.ts +5 -5
- package/esm/components/calendar/TimeView.js +1 -1
- package/esm/components/calendar/YearsView.d.ts +4 -4
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.d.ts +5 -5
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.d.ts +5 -5
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/Formula.d.ts +5 -5
- package/esm/components/condition-builder/Formula.js +1 -1
- package/esm/components/condition-builder/Func.d.ts +6 -6
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.d.ts +5 -5
- package/esm/components/condition-builder/Group.js +1 -1
- package/esm/components/condition-builder/GroupOrItem.d.ts +2 -2
- package/esm/components/condition-builder/GroupOrItem.js +1 -1
- package/esm/components/condition-builder/InputSwitch.d.ts +2 -2
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.d.ts +10 -10
- package/esm/components/condition-builder/Item.js +12 -9
- package/esm/components/condition-builder/Value.d.ts +5 -5
- package/esm/components/condition-builder/Value.js +3 -12
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.d.ts +8 -8
- package/esm/components/condition-builder/index.js +2 -2
- package/esm/components/condition-builder/types.d.ts +1 -1
- package/esm/components/formula/Editor.d.ts +10 -5
- package/esm/components/formula/Editor.js +14 -3
- package/esm/components/formula/FuncList.d.ts +2 -2
- package/esm/components/formula/FuncList.js +1 -1
- package/esm/components/formula/Picker.d.ts +47 -46
- package/esm/components/formula/Picker.js +3 -3
- package/esm/components/formula/VariableList.d.ts +2 -2
- package/esm/components/formula/VariableList.js +4 -4
- package/esm/components/formula/plugin.js +1 -1
- package/esm/components/icons.d.ts +12 -11
- package/esm/components/icons.js +8 -3
- package/esm/components/index.d.ts +6 -3
- package/esm/components/json-schema/Array.d.ts +2 -1
- package/esm/components/json-schema/Array.js +1 -1
- package/esm/components/json-schema/Item.d.ts +2 -1
- package/esm/components/json-schema/Item.js +1 -1
- package/esm/components/json-schema/Object.d.ts +2 -1
- package/esm/components/json-schema/Object.js +1 -1
- package/esm/components/json-schema/index.d.ts +5 -5
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.d.ts +3 -6
- package/esm/components/menu/MenuItem.js +5 -24
- package/esm/components/menu/SubMenu.d.ts +3 -6
- package/esm/components/menu/SubMenu.js +13 -28
- package/esm/components/menu/index.d.ts +42 -43
- package/esm/components/menu/index.js +9 -13
- package/esm/components/schema-editor/Array.d.ts +3 -2
- package/esm/components/schema-editor/Array.js +3 -3
- package/esm/components/schema-editor/Common.d.ts +3 -2
- package/esm/components/schema-editor/Common.js +3 -3
- package/esm/components/schema-editor/Item.d.ts +1 -1
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.d.ts +3 -2
- package/esm/components/schema-editor/Object.js +3 -3
- package/esm/components/schema-editor/SchemaVariableList.d.ts +6 -6
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.d.ts +5 -5
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.d.ts +55 -45
- package/esm/components/schema-editor/index.js +3 -3
- package/esm/components/table/Cell.d.ts +5 -5
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.d.ts +5 -5
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.d.ts +5 -5
- package/esm/components/table/HeadCellFilter.js +5 -2
- package/esm/components/table/HeadCellSelect.d.ts +5 -5
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.d.ts +5 -5
- package/esm/components/table/HeadCellSort.js +5 -5
- package/esm/components/table/ItemActionsWrapper.d.ts +1 -1
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/index.d.ts +18 -18
- package/esm/components/table/index.js +100 -59
- package/esm/components/virtual-list/AutoSizer.d.ts +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.d.ts +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-sub-form.js +1 -1
- package/esm/hooks/use-touch.js +1 -1
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +1 -1
- package/esm/icons/alert-danger.svg.js +1 -1
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +1 -1
- package/esm/icons/alert-warning.svg.js +1 -1
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check.svg.js +1 -1
- package/esm/icons/clock.svg.js +1 -1
- package/esm/icons/close-small.svg.js +1 -1
- package/esm/icons/close.svg.js +1 -1
- package/esm/icons/cloud-upload.svg.js +1 -1
- package/esm/icons/column-filter.svg.js +1 -1
- package/esm/icons/columns.svg.js +1 -1
- package/esm/icons/compress-alt.svg.js +1 -1
- package/esm/icons/copy.svg.js +1 -1
- package/esm/icons/date.svg.js +1 -1
- package/esm/icons/department.svg.js +1 -1
- package/esm/icons/desk-empty.svg.js +1 -1
- package/esm/icons/dot.svg.js +1 -1
- package/esm/icons/down-arrow-bold.svg.js +1 -1
- package/esm/icons/down.svg.js +1 -1
- package/esm/icons/download.svg.js +1 -1
- package/esm/icons/drag-bar.svg.js +1 -1
- package/esm/icons/drag.svg.js +1 -1
- package/esm/icons/edit.svg.js +1 -1
- package/esm/icons/ellipsis-v.svg.js +1 -1
- package/esm/icons/enter.svg.js +1 -1
- package/esm/icons/exchange.svg.js +1 -1
- package/esm/icons/expand-alt.svg.js +1 -1
- package/esm/icons/fail.svg.js +1 -1
- package/esm/icons/file.svg.js +1 -1
- package/esm/icons/filter.svg.js +1 -1
- package/esm/icons/folder.svg.js +1 -1
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +1 -1
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +1 -1
- package/esm/icons/pause.svg.js +1 -1
- package/esm/icons/pencil.svg.js +1 -1
- package/esm/icons/play.svg.js +1 -1
- package/esm/icons/plus-cicle.svg.js +1 -1
- package/esm/icons/plus-fine.svg.js +1 -1
- package/esm/icons/plus.svg.js +1 -1
- package/esm/icons/post.svg.js +1 -1
- package/esm/icons/question-mark.svg.js +1 -1
- package/esm/icons/question.svg.js +1 -1
- package/esm/icons/redo.svg.js +1 -1
- package/esm/icons/refresh.svg.js +1 -1
- package/esm/icons/reload.svg.js +1 -1
- package/esm/icons/remove.svg.js +1 -1
- package/esm/icons/retry.svg.js +1 -1
- package/esm/icons/right-arrow-bold.svg.js +1 -1
- package/esm/icons/right-arrow.svg.js +1 -1
- package/esm/icons/right-double-arrow.svg.js +1 -1
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +1 -1
- package/esm/icons/rotate-right.svg.js +1 -1
- package/esm/icons/scale-origin.svg.js +1 -1
- package/esm/icons/schedule.svg.js +1 -1
- package/esm/icons/search.svg.js +1 -1
- package/esm/icons/setting.svg.js +1 -1
- package/esm/icons/slider-handle-icon.svg.js +1 -1
- package/esm/icons/sort-asc.svg.js +1 -1
- package/esm/icons/sort-default.svg.js +1 -1
- package/esm/icons/sort-desc.svg.js +1 -1
- package/esm/icons/star.svg.js +1 -1
- package/esm/icons/status-close.svg.js +2 -2
- 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.d.ts +3 -0
- package/esm/index.js +6 -3
- package/esm/locale/de-DE.js +5 -3
- package/esm/locale/en-US.js +6 -3
- package/esm/locale/zh-CN.js +7 -4
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/esm/node_modules/rc-overflow/es/Item.js +1 -1
- package/esm/node_modules/rc-overflow/es/Overflow.js +1 -1
- package/esm/node_modules/rc-overflow/es/RawItem.js +1 -1
- package/esm/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
- package/esm/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
- package/esm/node_modules/rc-overflow/es/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/Collection.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
- package/esm/node_modules/rc-util/es/Children/toArray.js +1 -1
- package/esm/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/esm/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useEvent.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
- package/esm/node_modules/rc-util/es/raf.js +1 -1
- package/esm/node_modules/rc-util/es/ref.js +1 -1
- package/esm/node_modules/rc-util/es/warning.js +8 -2
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/esm/node_modules/rc-util/node_modules/react-is/index.js +1 -1
- package/esm/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/lib/_virtual/index.js +1 -1
- package/lib/_virtual/react-is.development.js +1 -1
- package/lib/_virtual/react-is.production.min.js +1 -1
- package/lib/components/404.d.ts +2 -2
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.d.ts +104 -48
- package/lib/components/Alert.js +37 -14
- package/lib/components/Alert2.d.ts +22 -22
- package/lib/components/Alert2.js +1 -1
- package/lib/components/AnchorNav.d.ts +25 -25
- package/lib/components/AnchorNav.js +1 -1
- package/lib/components/ArrayInput.d.ts +47 -47
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.d.ts +14 -14
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +125 -125
- package/lib/components/AssociatedSelection.js +1 -1
- package/lib/components/Avatar.d.ts +112 -112
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.d.ts +5 -5
- package/lib/components/Badge.js +1 -1
- package/lib/components/BaiduMapPicker.d.ts +2 -2
- package/lib/components/BaiduMapPicker.js +1 -1
- package/lib/components/BarCode.d.ts +2 -2
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.d.ts +6 -6
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.d.ts +33 -33
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.d.ts +50 -50
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.d.ts +102 -102
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.d.ts +5 -5
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedSelection.d.ts +128 -128
- package/lib/components/ChainedSelection.js +2 -1
- package/lib/components/Checkbox.d.ts +12 -12
- package/lib/components/Checkbox.js +2 -2
- package/lib/components/CityArea.d.ts +4 -4
- package/lib/components/CityArea.js +1 -1
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.d.ts +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.d.ts +122 -122
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.d.ts +32 -32
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +85 -85
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/Combo.d.ts +6 -9
- package/lib/components/Combo.js +8 -2
- package/lib/components/ConfirmBox.d.ts +85 -85
- package/lib/components/ConfirmBox.js +1 -1
- package/lib/components/ContextMenu.d.ts +3 -3
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +95 -92
- package/lib/components/DatePicker.js +38 -25
- package/lib/components/DateRangePicker.d.ts +265 -220
- package/lib/components/DateRangePicker.js +73 -43
- package/lib/components/DndContainer.d.ts +4 -4
- package/lib/components/DndContainer.js +1 -1
- package/lib/components/Drawer.d.ts +36 -35
- package/lib/components/Drawer.js +26 -10
- package/lib/components/Editor.d.ts +125 -125
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.d.ts +1 -1
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.d.ts +9 -15
- package/lib/components/FormField.js +1 -1
- package/lib/components/GaodeMapPicker.d.ts +89 -0
- package/lib/components/GaodeMapPicker.js +214 -0
- package/lib/components/GridNav.d.ts +4 -4
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.d.ts +126 -126
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/Html.d.ts +13 -12
- package/lib/components/Html.js +3 -3
- package/lib/components/ImageGallery.d.ts +57 -47
- package/lib/components/ImageGallery.js +8 -5
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +22 -22
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.d.ts +5 -5
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/InputTable.d.ts +7 -7
- package/lib/components/InputTable.js +21 -14
- package/lib/components/Layout.d.ts +13 -12
- package/lib/components/Layout.js +8 -6
- package/lib/components/Link.d.ts +2 -2
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +13 -13
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +86 -86
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.d.ts +85 -85
- package/lib/components/LocationPicker.js +14 -2
- package/lib/components/Markdown.d.ts +1 -1
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Modal.d.ts +113 -112
- package/lib/components/Modal.js +25 -9
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +213 -209
- package/lib/components/MultilineText.d.ts +45 -45
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +45 -34
- package/lib/components/NumberInput.js +10 -5
- package/lib/components/Pagination.d.ts +87 -108
- package/lib/components/Pagination.js +4 -3
- package/lib/components/Picker.d.ts +4 -4
- package/lib/components/Picker.js +1 -1
- package/lib/components/PickerColumn.d.ts +2 -7
- package/lib/components/PickerColumn.js +1 -1
- package/lib/components/PickerContainer.d.ts +6 -5
- package/lib/components/PickerContainer.js +3 -3
- package/lib/components/PopOverContainer.d.ts +1 -1
- package/lib/components/PopOverContainer.js +1 -1
- package/lib/components/PopUp.d.ts +45 -45
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +63 -63
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.d.ts +1 -1
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.d.ts +34 -34
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.d.ts +16 -2
- package/lib/components/Range.js +35 -4
- package/lib/components/Rating.d.ts +35 -35
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +86 -86
- package/lib/components/ResultBox.js +1 -1
- package/lib/components/ResultList.d.ts +48 -48
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.d.ts +127 -127
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.d.ts +47 -47
- package/lib/components/ResultTreeList.js +1 -1
- package/lib/components/RichText.d.ts +2 -1
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.d.ts +88 -88
- package/lib/components/SearchBox.js +1 -1
- package/lib/components/Select.d.ts +1977 -1969
- package/lib/components/Select.js +7 -5
- package/lib/components/Selection.d.ts +127 -126
- package/lib/components/Selection.js +1 -1
- package/lib/components/SparkLine.d.ts +46 -46
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.d.ts +73 -73
- package/lib/components/Spinner.js +3 -3
- package/lib/components/Steps.d.ts +5 -4
- package/lib/components/Steps.js +8 -6
- package/lib/components/Switch.d.ts +12 -12
- package/lib/components/Switch.js +1 -1
- package/lib/components/TableSelection.d.ts +133 -133
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +90 -90
- package/lib/components/Tabs.js +1 -1
- package/lib/components/TabsTransfer.d.ts +49 -48
- package/lib/components/TabsTransfer.js +13 -13
- package/lib/components/TabsTransferPicker.d.ts +5 -5
- package/lib/components/TabsTransferPicker.js +4 -4
- package/lib/components/Tag.d.ts +75 -75
- package/lib/components/Tag.js +20 -4
- package/lib/components/Textarea.d.ts +45 -45
- package/lib/components/Textarea.js +1 -1
- package/lib/components/Timeline.d.ts +2 -2
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.d.ts +5 -5
- package/lib/components/TimelineItem.js +1 -1
- package/lib/components/Tinymce.d.ts +1 -1
- package/lib/components/Tinymce.js +1 -1
- package/lib/components/TitleBar.d.ts +1 -1
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.d.ts +88 -86
- package/lib/components/Toast.js +5 -5
- package/lib/components/Tooltip.d.ts +3 -2
- package/lib/components/Tooltip.js +3 -3
- package/lib/components/TooltipWrapper.d.ts +40 -32
- package/lib/components/TooltipWrapper.js +3 -3
- package/lib/components/Transfer.d.ts +312 -272
- package/lib/components/Transfer.js +20 -18
- package/lib/components/TransferDropDown.d.ts +205 -165
- package/lib/components/TransferDropDown.js +1 -1
- package/lib/components/TransferPicker.d.ts +5 -5
- package/lib/components/TransferPicker.js +4 -4
- package/lib/components/TransferSearch.d.ts +5 -5
- package/lib/components/TransferSearch.js +1 -1
- package/lib/components/Tree.d.ts +211 -209
- package/lib/components/Tree.js +20 -10
- package/lib/components/TreeSelection.d.ts +126 -126
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.d.ts +89 -89
- package/lib/components/UserSelect.js +7 -96
- package/lib/components/UserTabSelect.d.ts +45 -45
- package/lib/components/UserTabSelect.js +4 -95
- package/lib/components/WithRemoteConfig.d.ts +5 -6
- package/lib/components/WithRemoteConfig.js +6 -2
- package/lib/components/WithStore.d.ts +2 -2
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.d.ts +2 -0
- package/lib/components/calendar/Calendar.js +3 -1
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.d.ts +7 -7
- package/lib/components/calendar/DaysView.js +3 -3
- package/lib/components/calendar/MonthsView.d.ts +4 -4
- package/lib/components/calendar/MonthsView.js +7 -7
- package/lib/components/calendar/QuartersView.d.ts +4 -4
- package/lib/components/calendar/QuartersView.js +1 -1
- package/lib/components/calendar/TimeView.d.ts +5 -5
- package/lib/components/calendar/TimeView.js +1 -1
- package/lib/components/calendar/YearsView.d.ts +4 -4
- package/lib/components/calendar/YearsView.js +1 -1
- package/lib/components/condition-builder/Expression.d.ts +5 -5
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.d.ts +5 -5
- package/lib/components/condition-builder/Field.js +1 -1
- package/lib/components/condition-builder/Formula.d.ts +5 -5
- package/lib/components/condition-builder/Formula.js +1 -1
- package/lib/components/condition-builder/Func.d.ts +6 -6
- package/lib/components/condition-builder/Func.js +1 -1
- package/lib/components/condition-builder/Group.d.ts +5 -5
- package/lib/components/condition-builder/Group.js +1 -1
- package/lib/components/condition-builder/GroupOrItem.d.ts +2 -2
- package/lib/components/condition-builder/GroupOrItem.js +1 -1
- package/lib/components/condition-builder/InputSwitch.d.ts +2 -2
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.d.ts +10 -10
- package/lib/components/condition-builder/Item.js +11 -8
- package/lib/components/condition-builder/Value.d.ts +5 -5
- package/lib/components/condition-builder/Value.js +3 -12
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.d.ts +8 -8
- package/lib/components/condition-builder/index.js +2 -2
- package/lib/components/condition-builder/types.d.ts +1 -1
- package/lib/components/formula/Editor.d.ts +50 -45
- package/lib/components/formula/Editor.js +13 -2
- package/lib/components/formula/FuncList.d.ts +2 -2
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Picker.d.ts +47 -46
- package/lib/components/formula/Picker.js +3 -3
- package/lib/components/formula/VariableList.d.ts +2 -2
- package/lib/components/formula/VariableList.js +3 -3
- package/lib/components/formula/plugin.js +1 -1
- package/lib/components/icons.d.ts +12 -11
- package/lib/components/icons.js +8 -2
- package/lib/components/index.d.ts +6 -3
- package/lib/components/json-schema/Array.d.ts +2 -1
- package/lib/components/json-schema/Array.js +1 -1
- package/lib/components/json-schema/Item.d.ts +2 -1
- package/lib/components/json-schema/Item.js +1 -1
- package/lib/components/json-schema/Object.d.ts +2 -1
- package/lib/components/json-schema/Object.js +1 -1
- package/lib/components/json-schema/index.d.ts +5 -5
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.d.ts +3 -6
- package/lib/components/menu/MenuItem.js +5 -24
- package/lib/components/menu/SubMenu.d.ts +3 -6
- package/lib/components/menu/SubMenu.js +13 -28
- package/lib/components/menu/index.d.ts +92 -93
- package/lib/components/menu/index.js +9 -13
- package/lib/components/schema-editor/Array.d.ts +3 -2
- package/lib/components/schema-editor/Array.js +3 -3
- package/lib/components/schema-editor/Common.d.ts +3 -2
- package/lib/components/schema-editor/Common.js +3 -3
- package/lib/components/schema-editor/Item.d.ts +1 -1
- package/lib/components/schema-editor/Item.js +1 -1
- package/lib/components/schema-editor/Object.d.ts +3 -2
- package/lib/components/schema-editor/Object.js +3 -3
- package/lib/components/schema-editor/SchemaVariableList.d.ts +6 -6
- package/lib/components/schema-editor/SchemaVariableList.js +1 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.d.ts +5 -5
- package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/lib/components/schema-editor/index.d.ts +55 -45
- package/lib/components/schema-editor/index.js +3 -3
- package/lib/components/table/Cell.d.ts +45 -45
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/HeadCellDropDown.d.ts +5 -5
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.d.ts +45 -45
- package/lib/components/table/HeadCellFilter.js +5 -2
- package/lib/components/table/HeadCellSelect.d.ts +45 -45
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.d.ts +5 -5
- package/lib/components/table/HeadCellSort.js +5 -5
- package/lib/components/table/ItemActionsWrapper.d.ts +1 -1
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/index.d.ts +98 -98
- package/lib/components/table/index.js +100 -59
- package/lib/components/virtual-list/AutoSizer.d.ts +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.d.ts +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/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 +2 -2
- 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.d.ts +3 -0
- package/lib/index.js +11 -4
- package/lib/locale/de-DE.js +5 -3
- package/lib/locale/en-US.js +6 -3
- package/lib/locale/zh-CN.js +7 -4
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/lib/node_modules/rc-overflow/es/Item.js +1 -1
- package/lib/node_modules/rc-overflow/es/Overflow.js +1 -1
- package/lib/node_modules/rc-overflow/es/RawItem.js +1 -1
- package/lib/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
- package/lib/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
- package/lib/node_modules/rc-overflow/es/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/Collection.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
- package/lib/node_modules/rc-util/es/Children/toArray.js +1 -1
- package/lib/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/lib/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useEvent.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
- package/lib/node_modules/rc-util/es/raf.js +1 -1
- package/lib/node_modules/rc-util/es/ref.js +1 -1
- package/lib/node_modules/rc-util/es/warning.js +8 -2
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/lib/node_modules/rc-util/node_modules/react-is/index.js +1 -1
- package/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
- package/lib/packages/amis-ui/scss/helper.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/ang.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/antd.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/cxd.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/dark.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +2721 -1720
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +2721 -1720
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +2721 -1720
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +2721 -1720
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +2721 -1720
- package/package.json +5 -5
- package/scss/_components.scss +1305 -124
- package/scss/_mixins.scss +33 -1
- package/scss/_properties.scss +5 -374
- package/scss/base/_common.scss +4 -0
- package/scss/components/_alert.scss +30 -9
- package/scss/components/_app.scss +10 -0
- package/scss/components/_button-group.scss +0 -1
- package/scss/components/_button.scss +0 -38
- package/scss/components/_calendar.scss +14 -0
- package/scss/components/_column-toggler.scss +5 -2
- package/scss/components/_condition-builder.scss +38 -22
- package/scss/components/_crud.scss +21 -5
- package/scss/components/_crud2.scss +21 -5
- package/scss/components/_drawer.scss +20 -12
- package/scss/components/_image-gallery.scss +9 -6
- package/scss/components/_images.scss +13 -5
- package/scss/components/_menu.scss +251 -626
- package/scss/components/_modal.scss +23 -13
- package/scss/components/_nav.scss +6 -354
- package/scss/components/_progress.scss +11 -2
- package/scss/components/_result-box.scss +1 -0
- package/scss/components/_spinner.scss +7 -5
- package/scss/components/_status.scss +27 -11
- package/scss/components/_steps.scss +68 -20
- package/scss/components/_table.scss +7 -7
- package/scss/components/_table2.scss +84 -40
- package/scss/components/_tag.scss +42 -36
- package/scss/components/_timeline.scss +20 -9
- package/scss/components/_toast.scss +64 -12
- package/scss/components/_wizard.scss +28 -7
- package/scss/components/form/_checks.scss +17 -3
- package/scss/components/form/_color.scss +5 -0
- package/scss/components/form/_combo.scss +28 -18
- package/scss/components/form/_date-range.scss +5 -0
- package/scss/components/form/_date.scss +8 -1
- package/scss/components/form/_fieldset.scss +62 -28
- package/scss/components/form/_form.scss +32 -3
- package/scss/components/form/_icon-select.scss +21 -0
- package/scss/components/form/_image.scss +50 -7
- package/scss/components/form/_nested-select.scss +2 -0
- package/scss/components/form/_number.scss +14 -6
- package/scss/components/form/_picker.scss +105 -12
- package/scss/components/form/_range.scss +6 -0
- package/scss/components/form/_rich-text.scss +81 -35
- package/scss/components/form/_tag.scss +56 -6
- package/scss/components/form/_text.scss +8 -0
- package/scss/components/form/_transfer.scss +18 -26
- package/scss/components/form/_tree.scss +55 -23
- package/scss/layout/_layout.scss +42 -10
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { ThemeProps, LocaleProps } from 'amis-core';
|
|
8
|
+
import type { FunctionDocMap } from 'amis-formula/lib/types';
|
|
8
9
|
import { FormulaPlugin } from './plugin';
|
|
9
10
|
export interface VariableItem {
|
|
10
11
|
label: string;
|
|
@@ -78,6 +79,10 @@ export declare class FormulaEditor extends React.Component<FormulaEditorProps, F
|
|
|
78
79
|
name: string;
|
|
79
80
|
[propName: string]: any;
|
|
80
81
|
}>): FuncGroup[];
|
|
82
|
+
static buildCustomFunctions(map?: FunctionDocMap): {
|
|
83
|
+
groupName: string;
|
|
84
|
+
items: import("amis-formula/lib/types").FunctionDocItem[];
|
|
85
|
+
}[];
|
|
81
86
|
static defaultProps: Pick<FormulaEditorProps, 'variables' | 'evalMode'>;
|
|
82
87
|
static replaceStrByIndex(str: string, idx: number, key: string, replaceKey: string): string;
|
|
83
88
|
static getRegExpByMode(evalMode: boolean, key: string): RegExp;
|
|
@@ -94,10 +99,10 @@ export declare class FormulaEditor extends React.Component<FormulaEditorProps, F
|
|
|
94
99
|
handleVariableSelect(item: VariableItem): void;
|
|
95
100
|
handleOnChange(value: any): void;
|
|
96
101
|
editorFactory(dom: HTMLElement, cm: any): import("codemirror").Editor;
|
|
97
|
-
render(): JSX.Element;
|
|
102
|
+
render(): React.JSX.Element;
|
|
98
103
|
}
|
|
99
104
|
declare const _default: {
|
|
100
|
-
new (props: Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
105
|
+
new (props: Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
101
106
|
variables?: VariableItem[] | undefined;
|
|
102
107
|
evalMode?: boolean | undefined;
|
|
103
108
|
} & {} & {
|
|
@@ -107,9 +112,9 @@ declare const _default: {
|
|
|
107
112
|
ref: any;
|
|
108
113
|
childRef(ref: any): void;
|
|
109
114
|
getWrappedInstance(): any;
|
|
110
|
-
render(): JSX.Element;
|
|
115
|
+
render(): React.JSX.Element;
|
|
111
116
|
context: unknown;
|
|
112
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
117
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
113
118
|
variables?: VariableItem[] | undefined;
|
|
114
119
|
evalMode?: boolean | undefined;
|
|
115
120
|
} & {} & {
|
|
@@ -117,7 +122,7 @@ declare const _default: {
|
|
|
117
122
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
118
123
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
119
124
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
120
|
-
readonly props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
125
|
+
readonly props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
121
126
|
variables?: VariableItem[] | undefined;
|
|
122
127
|
evalMode?: boolean | undefined;
|
|
123
128
|
} & {} & {
|
|
@@ -129,7 +134,7 @@ declare const _default: {
|
|
|
129
134
|
[key: string]: React.ReactInstance;
|
|
130
135
|
};
|
|
131
136
|
componentDidMount?(): void;
|
|
132
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
137
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
133
138
|
variables?: VariableItem[] | undefined;
|
|
134
139
|
evalMode?: boolean | undefined;
|
|
135
140
|
} & {} & {
|
|
@@ -138,14 +143,14 @@ declare const _default: {
|
|
|
138
143
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
139
144
|
componentWillUnmount?(): void;
|
|
140
145
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
141
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
146
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
142
147
|
variables?: VariableItem[] | undefined;
|
|
143
148
|
evalMode?: boolean | undefined;
|
|
144
149
|
} & {} & {
|
|
145
150
|
locale?: string | undefined;
|
|
146
151
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
147
152
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
148
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
153
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
149
154
|
variables?: VariableItem[] | undefined;
|
|
150
155
|
evalMode?: boolean | undefined;
|
|
151
156
|
} & {} & {
|
|
@@ -154,28 +159,28 @@ declare const _default: {
|
|
|
154
159
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
155
160
|
componentWillMount?(): void;
|
|
156
161
|
UNSAFE_componentWillMount?(): void;
|
|
157
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
162
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
158
163
|
variables?: VariableItem[] | undefined;
|
|
159
164
|
evalMode?: boolean | undefined;
|
|
160
165
|
} & {} & {
|
|
161
166
|
locale?: string | undefined;
|
|
162
167
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
163
168
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
164
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
169
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
165
170
|
variables?: VariableItem[] | undefined;
|
|
166
171
|
evalMode?: boolean | undefined;
|
|
167
172
|
} & {} & {
|
|
168
173
|
locale?: string | undefined;
|
|
169
174
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
170
175
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
171
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
176
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
172
177
|
variables?: VariableItem[] | undefined;
|
|
173
178
|
evalMode?: boolean | undefined;
|
|
174
179
|
} & {} & {
|
|
175
180
|
locale?: string | undefined;
|
|
176
181
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
177
182
|
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
178
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
183
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
179
184
|
variables?: VariableItem[] | undefined;
|
|
180
185
|
evalMode?: boolean | undefined;
|
|
181
186
|
} & {} & {
|
|
@@ -186,7 +191,7 @@ declare const _default: {
|
|
|
186
191
|
displayName: string;
|
|
187
192
|
contextType: React.Context<string>;
|
|
188
193
|
ComposedComponent: React.ComponentType<{
|
|
189
|
-
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
194
|
+
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
190
195
|
variables?: VariableItem[] | undefined;
|
|
191
196
|
evalMode?: boolean | undefined;
|
|
192
197
|
} & {} & {
|
|
@@ -196,9 +201,9 @@ declare const _default: {
|
|
|
196
201
|
ref: any;
|
|
197
202
|
childRef(ref: any): void;
|
|
198
203
|
getWrappedInstance(): any;
|
|
199
|
-
render(): JSX.Element;
|
|
204
|
+
render(): React.JSX.Element;
|
|
200
205
|
context: unknown;
|
|
201
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
206
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
202
207
|
variables?: VariableItem[] | undefined;
|
|
203
208
|
evalMode?: boolean | undefined;
|
|
204
209
|
} & {} & {
|
|
@@ -206,7 +211,7 @@ declare const _default: {
|
|
|
206
211
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
207
212
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
208
213
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
209
|
-
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
214
|
+
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
210
215
|
variables?: VariableItem[] | undefined;
|
|
211
216
|
evalMode?: boolean | undefined;
|
|
212
217
|
} & {} & {
|
|
@@ -218,7 +223,7 @@ declare const _default: {
|
|
|
218
223
|
[key: string]: React.ReactInstance;
|
|
219
224
|
};
|
|
220
225
|
componentDidMount?(): void;
|
|
221
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
226
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
222
227
|
variables?: VariableItem[] | undefined;
|
|
223
228
|
evalMode?: boolean | undefined;
|
|
224
229
|
} & {} & {
|
|
@@ -227,14 +232,14 @@ declare const _default: {
|
|
|
227
232
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
228
233
|
componentWillUnmount?(): void;
|
|
229
234
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
230
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
235
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
231
236
|
variables?: VariableItem[] | undefined;
|
|
232
237
|
evalMode?: boolean | undefined;
|
|
233
238
|
} & {} & {
|
|
234
239
|
locale?: string | undefined;
|
|
235
240
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
236
241
|
}>, prevState: Readonly<{}>): any;
|
|
237
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
242
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
238
243
|
variables?: VariableItem[] | undefined;
|
|
239
244
|
evalMode?: boolean | undefined;
|
|
240
245
|
} & {} & {
|
|
@@ -243,28 +248,28 @@ declare const _default: {
|
|
|
243
248
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
244
249
|
componentWillMount?(): void;
|
|
245
250
|
UNSAFE_componentWillMount?(): void;
|
|
246
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
251
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
247
252
|
variables?: VariableItem[] | undefined;
|
|
248
253
|
evalMode?: boolean | undefined;
|
|
249
254
|
} & {} & {
|
|
250
255
|
locale?: string | undefined;
|
|
251
256
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
252
257
|
}>, nextContext: any): void;
|
|
253
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
258
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
254
259
|
variables?: VariableItem[] | undefined;
|
|
255
260
|
evalMode?: boolean | undefined;
|
|
256
261
|
} & {} & {
|
|
257
262
|
locale?: string | undefined;
|
|
258
263
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
259
264
|
}>, nextContext: any): void;
|
|
260
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
265
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
261
266
|
variables?: VariableItem[] | undefined;
|
|
262
267
|
evalMode?: boolean | undefined;
|
|
263
268
|
} & {} & {
|
|
264
269
|
locale?: string | undefined;
|
|
265
270
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
266
271
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
267
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
272
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
268
273
|
variables?: VariableItem[] | undefined;
|
|
269
274
|
evalMode?: boolean | undefined;
|
|
270
275
|
} & {} & {
|
|
@@ -279,7 +284,7 @@ declare const _default: {
|
|
|
279
284
|
ComposedComponent: typeof FormulaEditor;
|
|
280
285
|
}>;
|
|
281
286
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
282
|
-
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
287
|
+
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
283
288
|
variables?: VariableItem[] | undefined;
|
|
284
289
|
evalMode?: boolean | undefined;
|
|
285
290
|
} & {} & {
|
|
@@ -289,9 +294,9 @@ declare const _default: {
|
|
|
289
294
|
ref: any;
|
|
290
295
|
childRef(ref: any): void;
|
|
291
296
|
getWrappedInstance(): any;
|
|
292
|
-
render(): JSX.Element;
|
|
297
|
+
render(): React.JSX.Element;
|
|
293
298
|
context: unknown;
|
|
294
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
299
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
295
300
|
variables?: VariableItem[] | undefined;
|
|
296
301
|
evalMode?: boolean | undefined;
|
|
297
302
|
} & {} & {
|
|
@@ -299,7 +304,7 @@ declare const _default: {
|
|
|
299
304
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
300
305
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
301
306
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
302
|
-
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
307
|
+
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
303
308
|
variables?: VariableItem[] | undefined;
|
|
304
309
|
evalMode?: boolean | undefined;
|
|
305
310
|
} & {} & {
|
|
@@ -311,7 +316,7 @@ declare const _default: {
|
|
|
311
316
|
[key: string]: React.ReactInstance;
|
|
312
317
|
};
|
|
313
318
|
componentDidMount?(): void;
|
|
314
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
319
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
315
320
|
variables?: VariableItem[] | undefined;
|
|
316
321
|
evalMode?: boolean | undefined;
|
|
317
322
|
} & {} & {
|
|
@@ -320,14 +325,14 @@ declare const _default: {
|
|
|
320
325
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
321
326
|
componentWillUnmount?(): void;
|
|
322
327
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
323
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
328
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
324
329
|
variables?: VariableItem[] | undefined;
|
|
325
330
|
evalMode?: boolean | undefined;
|
|
326
331
|
} & {} & {
|
|
327
332
|
locale?: string | undefined;
|
|
328
333
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
329
334
|
}>, prevState: Readonly<{}>): any;
|
|
330
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
335
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
331
336
|
variables?: VariableItem[] | undefined;
|
|
332
337
|
evalMode?: boolean | undefined;
|
|
333
338
|
} & {} & {
|
|
@@ -336,28 +341,28 @@ declare const _default: {
|
|
|
336
341
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
337
342
|
componentWillMount?(): void;
|
|
338
343
|
UNSAFE_componentWillMount?(): void;
|
|
339
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
344
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
340
345
|
variables?: VariableItem[] | undefined;
|
|
341
346
|
evalMode?: boolean | undefined;
|
|
342
347
|
} & {} & {
|
|
343
348
|
locale?: string | undefined;
|
|
344
349
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
345
350
|
}>, nextContext: any): void;
|
|
346
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
351
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
347
352
|
variables?: VariableItem[] | undefined;
|
|
348
353
|
evalMode?: boolean | undefined;
|
|
349
354
|
} & {} & {
|
|
350
355
|
locale?: string | undefined;
|
|
351
356
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
352
357
|
}>, nextContext: any): void;
|
|
353
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
358
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
354
359
|
variables?: VariableItem[] | undefined;
|
|
355
360
|
evalMode?: boolean | undefined;
|
|
356
361
|
} & {} & {
|
|
357
362
|
locale?: string | undefined;
|
|
358
363
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
359
364
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
360
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
365
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
361
366
|
variables?: VariableItem[] | undefined;
|
|
362
367
|
evalMode?: boolean | undefined;
|
|
363
368
|
} & {} & {
|
|
@@ -372,7 +377,7 @@ declare const _default: {
|
|
|
372
377
|
ComposedComponent: typeof FormulaEditor;
|
|
373
378
|
}, {}> & {
|
|
374
379
|
ComposedComponent: {
|
|
375
|
-
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
380
|
+
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
376
381
|
variables?: VariableItem[] | undefined;
|
|
377
382
|
evalMode?: boolean | undefined;
|
|
378
383
|
} & {} & {
|
|
@@ -382,9 +387,9 @@ declare const _default: {
|
|
|
382
387
|
ref: any;
|
|
383
388
|
childRef(ref: any): void;
|
|
384
389
|
getWrappedInstance(): any;
|
|
385
|
-
render(): JSX.Element;
|
|
390
|
+
render(): React.JSX.Element;
|
|
386
391
|
context: unknown;
|
|
387
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
392
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
388
393
|
variables?: VariableItem[] | undefined;
|
|
389
394
|
evalMode?: boolean | undefined;
|
|
390
395
|
} & {} & {
|
|
@@ -392,7 +397,7 @@ declare const _default: {
|
|
|
392
397
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
393
398
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
394
399
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
395
|
-
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
400
|
+
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
396
401
|
variables?: VariableItem[] | undefined;
|
|
397
402
|
evalMode?: boolean | undefined;
|
|
398
403
|
} & {} & {
|
|
@@ -404,7 +409,7 @@ declare const _default: {
|
|
|
404
409
|
[key: string]: React.ReactInstance;
|
|
405
410
|
};
|
|
406
411
|
componentDidMount?(): void;
|
|
407
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
412
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
408
413
|
variables?: VariableItem[] | undefined;
|
|
409
414
|
evalMode?: boolean | undefined;
|
|
410
415
|
} & {} & {
|
|
@@ -413,14 +418,14 @@ declare const _default: {
|
|
|
413
418
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
414
419
|
componentWillUnmount?(): void;
|
|
415
420
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
416
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
421
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
417
422
|
variables?: VariableItem[] | undefined;
|
|
418
423
|
evalMode?: boolean | undefined;
|
|
419
424
|
} & {} & {
|
|
420
425
|
locale?: string | undefined;
|
|
421
426
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
422
427
|
}>, prevState: Readonly<{}>): any;
|
|
423
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
428
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
424
429
|
variables?: VariableItem[] | undefined;
|
|
425
430
|
evalMode?: boolean | undefined;
|
|
426
431
|
} & {} & {
|
|
@@ -429,28 +434,28 @@ declare const _default: {
|
|
|
429
434
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
430
435
|
componentWillMount?(): void;
|
|
431
436
|
UNSAFE_componentWillMount?(): void;
|
|
432
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
437
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
433
438
|
variables?: VariableItem[] | undefined;
|
|
434
439
|
evalMode?: boolean | undefined;
|
|
435
440
|
} & {} & {
|
|
436
441
|
locale?: string | undefined;
|
|
437
442
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
438
443
|
}>, nextContext: any): void;
|
|
439
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
444
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
440
445
|
variables?: VariableItem[] | undefined;
|
|
441
446
|
evalMode?: boolean | undefined;
|
|
442
447
|
} & {} & {
|
|
443
448
|
locale?: string | undefined;
|
|
444
449
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
445
450
|
}>, nextContext: any): void;
|
|
446
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
451
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
447
452
|
variables?: VariableItem[] | undefined;
|
|
448
453
|
evalMode?: boolean | undefined;
|
|
449
454
|
} & {} & {
|
|
450
455
|
locale?: string | undefined;
|
|
451
456
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
452
457
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
453
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "
|
|
458
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "header" | "style" | "value" | "className" | "classPrefix" | "classnames" | "theme" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName"> & {
|
|
454
459
|
variables?: VariableItem[] | undefined;
|
|
455
460
|
evalMode?: boolean | undefined;
|
|
456
461
|
} & {} & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui
|
|
2
|
+
* amis-ui v3.1.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -10,6 +10,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
10
10
|
var tslib = require('tslib');
|
|
11
11
|
var React = require('react');
|
|
12
12
|
var amisCore = require('amis-core');
|
|
13
|
+
var amisFormula = require('amis-formula');
|
|
13
14
|
var doc = require('amis-formula/lib/doc');
|
|
14
15
|
var plugin = require('./plugin.js');
|
|
15
16
|
var FuncList = require('./FuncList.js');
|
|
@@ -46,6 +47,16 @@ var FormulaEditor = /** @class */ (function (_super) {
|
|
|
46
47
|
});
|
|
47
48
|
return funcs;
|
|
48
49
|
};
|
|
50
|
+
FormulaEditor.buildCustomFunctions = function (map) {
|
|
51
|
+
if (map === void 0) { map = {}; }
|
|
52
|
+
return Object.entries(map).map(function (_a) {
|
|
53
|
+
var _b = tslib.__read(_a, 2), k = _b[0], items = _b[1];
|
|
54
|
+
return ({
|
|
55
|
+
groupName: k,
|
|
56
|
+
items: items
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
};
|
|
49
60
|
FormulaEditor.replaceStrByIndex = function (str, idx, key, replaceKey) {
|
|
50
61
|
var from = str.slice(0, idx);
|
|
51
62
|
var left = str.slice(idx);
|
|
@@ -166,7 +177,7 @@ var FormulaEditor = /** @class */ (function (_super) {
|
|
|
166
177
|
var _a = this.props, variables = _a.variables, header = _a.header, value = _a.value, functions = _a.functions, variableMode = _a.variableMode, __ = _a.translate, cx = _a.classnames, variableClassName = _a.variableClassName, functionClassName = _a.functionClassName, classPrefix = _a.classPrefix, selfVariableName = _a.selfVariableName;
|
|
167
178
|
var focused = this.state.focused;
|
|
168
179
|
var customFunctions = Array.isArray(functions) ? functions : [];
|
|
169
|
-
var functionList = tslib.__spreadArray(tslib.__spreadArray([], tslib.__read(FormulaEditor.buildDefaultFunctions(doc.doc)), false), tslib.__read(customFunctions), false);
|
|
180
|
+
var functionList = tslib.__spreadArray(tslib.__spreadArray(tslib.__spreadArray([], tslib.__read(FormulaEditor.buildDefaultFunctions(doc.doc)), false), tslib.__read(FormulaEditor.buildCustomFunctions(amisFormula.functionDocs)), false), tslib.__read(customFunctions), false);
|
|
170
181
|
return (React__default["default"].createElement("div", { className: cx("FormulaEditor", {
|
|
171
182
|
'is-focused': focused
|
|
172
183
|
}) },
|
|
@@ -9,13 +9,13 @@ export interface FuncListProps extends ThemeProps {
|
|
|
9
9
|
data: Array<FuncGroup>;
|
|
10
10
|
onSelect?: (item: FuncItem) => void;
|
|
11
11
|
}
|
|
12
|
-
export declare function FuncList(props: FuncListProps): JSX.Element;
|
|
12
|
+
export declare function FuncList(props: FuncListProps): React.JSX.Element;
|
|
13
13
|
declare const _default: {
|
|
14
14
|
new (props: Omit<FuncListProps, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps): {
|
|
15
15
|
ref: any;
|
|
16
16
|
childRef(ref: any): void;
|
|
17
17
|
getWrappedInstance(): any;
|
|
18
|
-
render(): JSX.Element;
|
|
18
|
+
render(): React.JSX.Element;
|
|
19
19
|
context: unknown;
|
|
20
20
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<FuncListProps, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
21
21
|
forceUpdate(callback?: (() => void) | undefined): void;
|