amis-ui 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.js +1 -1
- package/esm/components/AnchorNav.js +2 -2
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.d.ts +11 -11
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.d.ts +40 -40
- package/esm/components/AssociatedSelection.js +3 -3
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.js +1 -1
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.js +4 -5
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedSelection.d.ts +40 -40
- package/esm/components/ChainedSelection.js +7 -5
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +1 -1
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.js +1 -1
- package/esm/components/DateRangePicker.js +4 -2
- package/esm/components/Drawer.js +1 -1
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.d.ts +41 -41
- package/esm/components/GroupedSelection.js +12 -5
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.d.ts +10 -3
- package/esm/components/ImageGallery.js +18 -6
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.js +1 -1
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Modal.d.ts +18 -18
- package/esm/components/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/NumberInput.d.ts +19 -10
- package/esm/components/NumberInput.js +38 -9
- package/esm/components/Pagination.js +2 -2
- package/esm/components/Picker.js +1 -1
- package/esm/components/PickerColumn.js +1 -1
- package/esm/components/PickerContainer.js +1 -1
- package/esm/components/PopOverContainer.js +1 -1
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.js +5 -3
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.js +1 -1
- package/esm/components/ResultList.d.ts +45 -42
- package/esm/components/ResultList.js +10 -8
- package/esm/components/ResultTableList.d.ts +41 -40
- package/esm/components/ResultTableList.js +3 -3
- package/esm/components/ResultTreeList.d.ts +41 -40
- package/esm/components/ResultTreeList.js +4 -4
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.js +1 -1
- package/esm/components/Select.d.ts +193 -193
- package/esm/components/Select.js +1 -1
- package/esm/components/Selection.d.ts +42 -40
- package/esm/components/Selection.js +6 -3
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.d.ts +12 -0
- package/esm/components/Spinner.js +111 -23
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.js +1 -1
- package/esm/components/TableSelection.d.ts +40 -40
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.js +1 -1
- package/esm/components/TabsTransfer.js +1 -1
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.js +2 -2
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +1 -1
- package/esm/components/Tinymce.js +2 -2
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.d.ts +50 -50
- package/esm/components/Transfer.js +12 -12
- package/esm/components/TransferDropDown.d.ts +40 -40
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.d.ts +40 -42
- package/esm/components/TransferSearch.js +2 -8
- package/esm/components/Tree.js +3 -2
- package/esm/components/TreeSelection.d.ts +40 -40
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.d.ts +5 -1
- package/esm/components/UserSelect.js +87 -28
- package/esm/components/UserTabSelect.d.ts +4 -3
- package/esm/components/UserTabSelect.js +64 -18
- package/esm/components/WithRemoteConfig.js +1 -1
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.js +1 -1
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.js +1 -1
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.js +1 -1
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.d.ts +1 -0
- package/esm/components/condition-builder/Expression.js +3 -3
- package/esm/components/condition-builder/Field.d.ts +2 -1
- package/esm/components/condition-builder/Field.js +9 -5
- package/esm/components/condition-builder/Formula.js +1 -1
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.d.ts +1 -0
- package/esm/components/condition-builder/Group.js +3 -3
- package/esm/components/condition-builder/GroupOrItem.d.ts +1 -0
- package/esm/components/condition-builder/GroupOrItem.js +3 -3
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.d.ts +1 -0
- package/esm/components/condition-builder/Item.js +3 -3
- package/esm/components/condition-builder/Value.js +1 -1
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.d.ts +1 -0
- package/esm/components/condition-builder/index.js +3 -3
- package/esm/components/formula/Editor.d.ts +2 -0
- package/esm/components/formula/Editor.js +17 -6
- package/esm/components/formula/FuncList.js +1 -1
- package/esm/components/formula/Picker.d.ts +65 -54
- package/esm/components/formula/Picker.js +22 -9
- package/esm/components/formula/VariableList.js +1 -1
- package/esm/components/formula/plugin.d.ts +1 -1
- package/esm/components/formula/plugin.js +6 -4
- package/esm/components/icons.js +1 -1
- package/esm/components/json-schema/Array.js +1 -1
- package/esm/components/json-schema/Item.js +1 -1
- package/esm/components/json-schema/Object.js +1 -1
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/schema-editor/Array.js +1 -1
- package/esm/components/schema-editor/Common.js +1 -1
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.js +1 -1
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.js +1 -1
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.js +1 -1
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.js +1 -1
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/index.d.ts +49 -43
- package/esm/components/table/index.js +98 -51
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-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-circle.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 +1 -1
- package/esm/icons/status-fail.svg.js +1 -1
- package/esm/icons/status-info.svg.js +1 -1
- package/esm/icons/status-success.svg.js +1 -1
- package/esm/icons/status-warning.svg.js +1 -1
- package/esm/icons/steps-finsh.svg.js +1 -1
- package/esm/icons/success.svg.js +1 -1
- package/esm/icons/transparent.svg.js +1 -1
- package/esm/icons/trash.svg.js +1 -1
- package/esm/icons/tree-down.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/upload.svg.js +1 -1
- package/esm/icons/user-remove.svg.js +1 -1
- package/esm/icons/view.svg.js +1 -1
- package/esm/icons/volume.svg.js +1 -1
- package/esm/icons/warning-mark.svg.js +1 -1
- package/esm/icons/warning.svg.js +1 -1
- package/esm/icons/window-restore.svg.js +1 -1
- package/esm/icons/zoom-in.svg.js +1 -1
- package/esm/icons/zoom-out.svg.js +1 -1
- package/esm/index.js +1 -1
- package/esm/locale/de-DE.js +7 -2
- package/esm/locale/en-US.js +7 -3
- package/esm/locale/zh-CN.js +7 -3
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.d.ts +10 -10
- package/lib/components/Alert2.js +1 -1
- package/lib/components/AnchorNav.d.ts +10 -10
- package/lib/components/AnchorNav.js +2 -2
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.d.ts +11 -11
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +40 -40
- package/lib/components/AssociatedSelection.js +3 -3
- package/lib/components/Avatar.d.ts +10 -10
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.js +1 -1
- package/lib/components/BaiduMapPicker.js +1 -1
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.js +1 -1
- package/lib/components/Button.d.ts +10 -10
- package/lib/components/Button.js +4 -5
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.d.ts +10 -10
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedSelection.d.ts +40 -40
- package/lib/components/ChainedSelection.js +7 -5
- package/lib/components/Checkbox.d.ts +10 -10
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CityArea.js +1 -1
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.d.ts +10 -10
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +40 -40
- package/lib/components/DatePicker.js +1 -1
- package/lib/components/DateRangePicker.d.ts +40 -40
- package/lib/components/DateRangePicker.js +4 -2
- package/lib/components/Drawer.d.ts +10 -10
- package/lib/components/Drawer.js +1 -1
- package/lib/components/Editor.d.ts +40 -40
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.d.ts +41 -41
- package/lib/components/GroupedSelection.js +12 -5
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.d.ts +10 -3
- package/lib/components/ImageGallery.js +18 -6
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +40 -40
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.d.ts +40 -40
- package/lib/components/LocationPicker.js +1 -1
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Modal.d.ts +58 -58
- package/lib/components/Modal.js +1 -1
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +40 -40
- package/lib/components/NumberInput.d.ts +19 -10
- package/lib/components/NumberInput.js +38 -9
- package/lib/components/Pagination.js +2 -2
- package/lib/components/Picker.js +1 -1
- package/lib/components/PickerColumn.js +1 -1
- package/lib/components/PickerContainer.js +1 -1
- package/lib/components/PopOverContainer.js +1 -1
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +10 -10
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.d.ts +10 -10
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.js +5 -3
- package/lib/components/Rating.d.ts +10 -10
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +40 -40
- package/lib/components/ResultBox.js +1 -1
- package/lib/components/ResultList.d.ts +45 -42
- package/lib/components/ResultList.js +10 -8
- package/lib/components/ResultTableList.d.ts +41 -40
- package/lib/components/ResultTableList.js +3 -3
- package/lib/components/ResultTreeList.d.ts +41 -40
- package/lib/components/ResultTreeList.js +4 -4
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.d.ts +40 -40
- package/lib/components/SearchBox.js +1 -1
- package/lib/components/Select.d.ts +193 -193
- package/lib/components/Select.js +1 -1
- package/lib/components/Selection.d.ts +42 -40
- package/lib/components/Selection.js +6 -3
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.d.ts +22 -10
- package/lib/components/Spinner.js +111 -23
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +10 -10
- package/lib/components/Switch.js +1 -1
- package/lib/components/TableSelection.d.ts +40 -40
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +40 -40
- package/lib/components/Tabs.js +1 -1
- package/lib/components/TabsTransfer.js +1 -1
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +10 -10
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +2 -2
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +1 -1
- package/lib/components/Tinymce.js +2 -2
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +50 -50
- package/lib/components/Transfer.js +12 -12
- package/lib/components/TransferDropDown.d.ts +40 -40
- package/lib/components/TransferDropDown.js +1 -1
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.d.ts +40 -42
- package/lib/components/TransferSearch.js +2 -8
- package/lib/components/Tree.d.ts +40 -40
- package/lib/components/Tree.js +3 -2
- package/lib/components/TreeSelection.d.ts +40 -40
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.d.ts +45 -41
- package/lib/components/UserSelect.js +86 -27
- package/lib/components/UserTabSelect.d.ts +44 -43
- package/lib/components/UserTabSelect.js +64 -18
- package/lib/components/WithRemoteConfig.js +1 -1
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.js +1 -1
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.js +1 -1
- package/lib/components/calendar/MonthsView.js +1 -1
- package/lib/components/calendar/QuartersView.js +1 -1
- package/lib/components/calendar/TimeView.js +1 -1
- package/lib/components/calendar/YearsView.js +1 -1
- package/lib/components/condition-builder/Expression.d.ts +1 -0
- package/lib/components/condition-builder/Expression.js +3 -3
- package/lib/components/condition-builder/Field.d.ts +2 -1
- package/lib/components/condition-builder/Field.js +9 -5
- package/lib/components/condition-builder/Formula.js +1 -1
- package/lib/components/condition-builder/Func.js +1 -1
- package/lib/components/condition-builder/Group.d.ts +1 -0
- package/lib/components/condition-builder/Group.js +3 -3
- package/lib/components/condition-builder/GroupOrItem.d.ts +1 -0
- package/lib/components/condition-builder/GroupOrItem.js +3 -3
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.d.ts +1 -0
- package/lib/components/condition-builder/Item.js +3 -3
- package/lib/components/condition-builder/Value.js +1 -1
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.d.ts +1 -0
- package/lib/components/condition-builder/index.js +3 -3
- package/lib/components/formula/Editor.d.ts +42 -40
- package/lib/components/formula/Editor.js +17 -6
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Picker.d.ts +65 -54
- package/lib/components/formula/Picker.js +22 -9
- package/lib/components/formula/VariableList.js +1 -1
- package/lib/components/formula/plugin.d.ts +1 -1
- package/lib/components/formula/plugin.js +6 -4
- package/lib/components/icons.js +1 -1
- package/lib/components/json-schema/Array.js +1 -1
- package/lib/components/json-schema/Item.js +1 -1
- package/lib/components/json-schema/Object.js +1 -1
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/schema-editor/Array.js +1 -1
- package/lib/components/schema-editor/Common.js +1 -1
- package/lib/components/schema-editor/Item.js +1 -1
- package/lib/components/schema-editor/Object.js +1 -1
- package/lib/components/schema-editor/SchemaVariableList.js +1 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/lib/components/schema-editor/index.d.ts +40 -40
- package/lib/components/schema-editor/index.js +1 -1
- package/lib/components/table/Cell.d.ts +40 -40
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.js +1 -1
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.js +1 -1
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/index.d.ts +49 -43
- package/lib/components/table/index.js +98 -51
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/helper.css +8335 -38
- package/lib/hooks/use-set-state.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-circle.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 +1 -1
- package/lib/icons/status-fail.svg.js +1 -1
- package/lib/icons/status-info.svg.js +1 -1
- package/lib/icons/status-success.svg.js +1 -1
- package/lib/icons/status-warning.svg.js +1 -1
- package/lib/icons/steps-finsh.svg.js +1 -1
- package/lib/icons/success.svg.js +1 -1
- package/lib/icons/transparent.svg.js +1 -1
- package/lib/icons/trash.svg.js +1 -1
- package/lib/icons/tree-down.svg.js +1 -1
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/upload.svg.js +1 -1
- package/lib/icons/user-remove.svg.js +1 -1
- package/lib/icons/view.svg.js +1 -1
- package/lib/icons/volume.svg.js +1 -1
- package/lib/icons/warning-mark.svg.js +1 -1
- package/lib/icons/warning.svg.js +1 -1
- package/lib/icons/window-restore.svg.js +1 -1
- package/lib/icons/zoom-in.svg.js +1 -1
- package/lib/icons/zoom-out.svg.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/de-DE.js +7 -2
- package/lib/locale/en-US.js +7 -3
- package/lib/locale/zh-CN.js +7 -3
- package/lib/scss/helper.scss.js +1 -1
- package/lib/scss/themes/ang.scss.js +1 -1
- package/lib/scss/themes/antd.scss.js +1 -1
- package/lib/scss/themes/cxd.scss.js +1 -1
- package/lib/scss/themes/dark.scss.js +1 -1
- package/lib/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +8847 -5617
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +8955 -5731
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +8855 -5630
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +8940 -5709
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +8855 -5630
- package/package.json +22 -22
- package/scss/_mixins.scss +10 -0
- package/scss/_thirds.scss +6 -6
- package/scss/components/_anchor-nav.scss +9 -2
- package/scss/components/_collapse.scss +4 -4
- package/scss/components/_spinner.scss +6 -0
- package/scss/components/_table.scss +1 -1
- package/scss/components/form/_fieldset.scss +20 -0
- package/scss/components/form/_input-group.scss +5 -0
- package/scss/components/form/_selection.scss +6 -1
- package/scss/components/form/_textarea.scss +4 -2
- package/scss/components/form/_user-select.scss +35 -2
- package/scss/themes/_antd-variables.scss +4 -2
- package/scss/themes/_cxd-variables.scss +5 -1
- package/scss/themes/_dark-variables.scss +3 -0
|
@@ -79,6 +79,8 @@ export declare class FormulaEditor extends React.Component<FormulaEditorProps, F
|
|
|
79
79
|
[propName: string]: any;
|
|
80
80
|
}>): FuncGroup[];
|
|
81
81
|
static defaultProps: Pick<FormulaEditorProps, 'variables' | 'evalMode'>;
|
|
82
|
+
static replaceStrByIndex(str: string, idx: number, key: string, replaceKey: string): string;
|
|
83
|
+
static getRegExpByMode(evalMode: boolean, key: string): RegExp;
|
|
82
84
|
static highlightValue(value: string, variables: Array<VariableItem>, evalMode?: boolean): {
|
|
83
85
|
html: string;
|
|
84
86
|
} | undefined;
|
|
@@ -95,7 +97,7 @@ export declare class FormulaEditor extends React.Component<FormulaEditorProps, F
|
|
|
95
97
|
render(): JSX.Element;
|
|
96
98
|
}
|
|
97
99
|
declare const _default: {
|
|
98
|
-
new (props: Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
100
|
+
new (props: Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
99
101
|
locale?: string | undefined;
|
|
100
102
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
101
103
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps): {
|
|
@@ -104,12 +106,12 @@ declare const _default: {
|
|
|
104
106
|
getWrappedInstance(): any;
|
|
105
107
|
render(): JSX.Element;
|
|
106
108
|
context: any;
|
|
107
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
109
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
108
110
|
locale?: string | undefined;
|
|
109
111
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
110
112
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
111
113
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
112
|
-
readonly props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
114
|
+
readonly props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
113
115
|
locale?: string | undefined;
|
|
114
116
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
115
117
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
@@ -120,35 +122,35 @@ declare const _default: {
|
|
|
120
122
|
[key: string]: React.ReactInstance;
|
|
121
123
|
};
|
|
122
124
|
componentDidMount?(): void;
|
|
123
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
125
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
124
126
|
locale?: string | undefined;
|
|
125
127
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
126
128
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
127
129
|
componentWillUnmount?(): void;
|
|
128
130
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
129
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
131
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
130
132
|
locale?: string | undefined;
|
|
131
133
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
132
134
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
133
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
135
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
134
136
|
locale?: string | undefined;
|
|
135
137
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
136
138
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
137
139
|
componentWillMount?(): void;
|
|
138
140
|
UNSAFE_componentWillMount?(): void;
|
|
139
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
141
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
140
142
|
locale?: string | undefined;
|
|
141
143
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
142
144
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
143
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
145
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
144
146
|
locale?: string | undefined;
|
|
145
147
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
146
148
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
147
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
149
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
148
150
|
locale?: string | undefined;
|
|
149
151
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
150
152
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
151
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
153
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
152
154
|
locale?: string | undefined;
|
|
153
155
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
154
156
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -156,7 +158,7 @@ declare const _default: {
|
|
|
156
158
|
displayName: string;
|
|
157
159
|
contextType: React.Context<string>;
|
|
158
160
|
ComposedComponent: React.ComponentType<{
|
|
159
|
-
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
161
|
+
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
160
162
|
locale?: string | undefined;
|
|
161
163
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
162
164
|
}): {
|
|
@@ -165,12 +167,12 @@ declare const _default: {
|
|
|
165
167
|
getWrappedInstance(): any;
|
|
166
168
|
render(): JSX.Element;
|
|
167
169
|
context: any;
|
|
168
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
170
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
169
171
|
locale?: string | undefined;
|
|
170
172
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
171
173
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
172
174
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
173
|
-
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
175
|
+
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
174
176
|
locale?: string | undefined;
|
|
175
177
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
176
178
|
}> & Readonly<{
|
|
@@ -181,35 +183,35 @@ declare const _default: {
|
|
|
181
183
|
[key: string]: React.ReactInstance;
|
|
182
184
|
};
|
|
183
185
|
componentDidMount?(): void;
|
|
184
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
186
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
185
187
|
locale?: string | undefined;
|
|
186
188
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
187
189
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
188
190
|
componentWillUnmount?(): void;
|
|
189
191
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
190
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
192
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
191
193
|
locale?: string | undefined;
|
|
192
194
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
193
195
|
}>, prevState: Readonly<{}>): any;
|
|
194
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
196
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
195
197
|
locale?: string | undefined;
|
|
196
198
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
197
199
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
198
200
|
componentWillMount?(): void;
|
|
199
201
|
UNSAFE_componentWillMount?(): void;
|
|
200
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
202
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
201
203
|
locale?: string | undefined;
|
|
202
204
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
203
205
|
}>, nextContext: any): void;
|
|
204
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
206
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
205
207
|
locale?: string | undefined;
|
|
206
208
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
207
209
|
}>, nextContext: any): void;
|
|
208
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
210
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
209
211
|
locale?: string | undefined;
|
|
210
212
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
211
213
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
212
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
214
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
213
215
|
locale?: string | undefined;
|
|
214
216
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
215
217
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -221,7 +223,7 @@ declare const _default: {
|
|
|
221
223
|
ComposedComponent: typeof FormulaEditor;
|
|
222
224
|
}>;
|
|
223
225
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
224
|
-
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
226
|
+
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
225
227
|
locale?: string | undefined;
|
|
226
228
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
227
229
|
}): {
|
|
@@ -230,12 +232,12 @@ declare const _default: {
|
|
|
230
232
|
getWrappedInstance(): any;
|
|
231
233
|
render(): JSX.Element;
|
|
232
234
|
context: any;
|
|
233
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
235
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
234
236
|
locale?: string | undefined;
|
|
235
237
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
236
238
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
237
239
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
238
|
-
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
240
|
+
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
239
241
|
locale?: string | undefined;
|
|
240
242
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
241
243
|
}> & Readonly<{
|
|
@@ -246,35 +248,35 @@ declare const _default: {
|
|
|
246
248
|
[key: string]: React.ReactInstance;
|
|
247
249
|
};
|
|
248
250
|
componentDidMount?(): void;
|
|
249
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
251
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
250
252
|
locale?: string | undefined;
|
|
251
253
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
252
254
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
253
255
|
componentWillUnmount?(): void;
|
|
254
256
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
255
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
257
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
256
258
|
locale?: string | undefined;
|
|
257
259
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
258
260
|
}>, prevState: Readonly<{}>): any;
|
|
259
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
261
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
260
262
|
locale?: string | undefined;
|
|
261
263
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
262
264
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
263
265
|
componentWillMount?(): void;
|
|
264
266
|
UNSAFE_componentWillMount?(): void;
|
|
265
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
267
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
266
268
|
locale?: string | undefined;
|
|
267
269
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
268
270
|
}>, nextContext: any): void;
|
|
269
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
271
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
270
272
|
locale?: string | undefined;
|
|
271
273
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
272
274
|
}>, nextContext: any): void;
|
|
273
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
275
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
274
276
|
locale?: string | undefined;
|
|
275
277
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
276
278
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
277
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
279
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
278
280
|
locale?: string | undefined;
|
|
279
281
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
280
282
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -286,7 +288,7 @@ declare const _default: {
|
|
|
286
288
|
ComposedComponent: typeof FormulaEditor;
|
|
287
289
|
}, {}> & {
|
|
288
290
|
ComposedComponent: {
|
|
289
|
-
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
291
|
+
new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
290
292
|
locale?: string | undefined;
|
|
291
293
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
292
294
|
}): {
|
|
@@ -295,12 +297,12 @@ declare const _default: {
|
|
|
295
297
|
getWrappedInstance(): any;
|
|
296
298
|
render(): JSX.Element;
|
|
297
299
|
context: any;
|
|
298
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
300
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
299
301
|
locale?: string | undefined;
|
|
300
302
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
301
303
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
302
304
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
303
|
-
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
305
|
+
readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
304
306
|
locale?: string | undefined;
|
|
305
307
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
306
308
|
}> & Readonly<{
|
|
@@ -311,35 +313,35 @@ declare const _default: {
|
|
|
311
313
|
[key: string]: React.ReactInstance;
|
|
312
314
|
};
|
|
313
315
|
componentDidMount?(): void;
|
|
314
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
316
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
315
317
|
locale?: string | undefined;
|
|
316
318
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
317
319
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
318
320
|
componentWillUnmount?(): void;
|
|
319
321
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
320
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
322
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
321
323
|
locale?: string | undefined;
|
|
322
324
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
323
325
|
}>, prevState: Readonly<{}>): any;
|
|
324
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
326
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
325
327
|
locale?: string | undefined;
|
|
326
328
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
327
329
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
328
330
|
componentWillMount?(): void;
|
|
329
331
|
UNSAFE_componentWillMount?(): void;
|
|
330
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
332
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
331
333
|
locale?: string | undefined;
|
|
332
334
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
333
335
|
}>, nextContext: any): void;
|
|
334
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
336
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
335
337
|
locale?: string | undefined;
|
|
336
338
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
337
339
|
}>, nextContext: any): void;
|
|
338
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
340
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
339
341
|
locale?: string | undefined;
|
|
340
342
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
341
343
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
342
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "
|
|
344
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
|
|
343
345
|
locale?: string | undefined;
|
|
344
346
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
345
347
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.3.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -46,7 +46,19 @@ var FormulaEditor = /** @class */ (function (_super) {
|
|
|
46
46
|
});
|
|
47
47
|
return funcs;
|
|
48
48
|
};
|
|
49
|
+
FormulaEditor.replaceStrByIndex = function (str, idx, key, replaceKey) {
|
|
50
|
+
var from = str.slice(0, idx);
|
|
51
|
+
var left = str.slice(idx);
|
|
52
|
+
return from + left.replace(key, replaceKey);
|
|
53
|
+
};
|
|
54
|
+
FormulaEditor.getRegExpByMode = function (evalMode, key) {
|
|
55
|
+
var reg = evalMode
|
|
56
|
+
? "\\b".concat(key, "\\b")
|
|
57
|
+
: "\\$\\{[^\\{\\}]*\\b".concat(key, "\\b[^\\{\\}]*\\}");
|
|
58
|
+
return new RegExp(reg);
|
|
59
|
+
};
|
|
49
60
|
FormulaEditor.highlightValue = function (value, variables, evalMode) {
|
|
61
|
+
if (evalMode === void 0) { evalMode = true; }
|
|
50
62
|
if (!Array.isArray(variables) || !variables.length || !value) {
|
|
51
63
|
return;
|
|
52
64
|
}
|
|
@@ -71,12 +83,11 @@ var FormulaEditor = /** @class */ (function (_super) {
|
|
|
71
83
|
var from = 0;
|
|
72
84
|
var idx = -1;
|
|
73
85
|
while (~(idx = content.indexOf(v, from))) {
|
|
74
|
-
|
|
75
|
-
var
|
|
76
|
-
var curNameEg = new RegExp("\\b".concat(REPLACE_KEY, "\\b"), 'g'); // 避免变量识别冲突,比如:name、me 被识别成 na「me」
|
|
86
|
+
var encodeHtml = FormulaEditor.replaceStrByIndex(html, idx, v, REPLACE_KEY);
|
|
87
|
+
var reg = FormulaEditor.getRegExpByMode(evalMode, REPLACE_KEY);
|
|
77
88
|
// 如果匹配到则高亮,没有匹配到替换成原值
|
|
78
|
-
if (
|
|
79
|
-
html = encodeHtml.replace(
|
|
89
|
+
if (reg.test(encodeHtml)) {
|
|
90
|
+
html = encodeHtml.replace(REPLACE_KEY, "<span class=\"c-field\">".concat(varMap[v], "</span>"));
|
|
80
91
|
}
|
|
81
92
|
else {
|
|
82
93
|
html = encodeHtml.replace(REPLACE_KEY, v);
|