amis-ui 6.11.0-beta.1 → 6.11.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.js +1 -1
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/AnchorNavSection.js +1 -1
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/AutoSizer.js +1 -1
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.js +1 -1
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +1 -1
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedDropdownSelection.js +1 -1
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +1 -1
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConditionBuilder.js +1 -1
- package/esm/components/ConfirmBox.js +1 -1
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.js +1 -1
- package/esm/components/DateRangePicker.js +1 -1
- package/esm/components/DiffEditor.js +1 -1
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.js +1 -1
- package/esm/components/DropDownSelection.js +1 -1
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/FormulaPicker.js +1 -1
- package/esm/components/GaodeMapPicker.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GridNavItem.js +1 -1
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/HeadCellDropDown.js +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/Icon.js +1 -1
- package/esm/components/ImageGallery.js +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/InputJSONSchema.js +1 -1
- package/esm/components/InputTable.js +1 -1
- package/esm/components/JSONSchemaEditor.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/Menu.js +1 -1
- package/esm/components/MobileDevTool.js +1 -1
- package/esm/components/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.js +1 -1
- package/esm/components/OverflowTpl.js +1 -1
- package/esm/components/Pagination.js +1 -1
- package/esm/components/PdfViewer.js +1 -1
- package/esm/components/Picker.js +1 -1
- package/esm/components/PickerColumn.js +1 -1
- package/esm/components/PickerContainer.js +1 -1
- package/esm/components/PopOverContainer.js +1 -1
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.js +1 -1
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.js +1 -1
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.js +1 -1
- package/esm/components/Select.js +1 -1
- package/esm/components/SelectMobile.js +1 -1
- package/esm/components/Selection.js +1 -1
- package/esm/components/Shape.d.ts +53 -0
- package/esm/components/Shape.js +404 -0
- package/esm/components/Signature.js +2 -1
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.js +1 -1
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.js +1 -1
- package/esm/components/Tab.js +1 -1
- package/esm/components/Table.js +1 -1
- 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 +1 -1
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +1 -1
- package/esm/components/Tinymce.js +1 -1
- 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.js +1 -1
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.js +1 -1
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.js +1 -1
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/VerificationCode.js +1 -1
- package/esm/components/VirtualList.js +1 -1
- 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.js +1 -1
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.js +1 -1
- package/esm/components/condition-builder/GroupOrItem.js +1 -1
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.js +1 -1
- package/esm/components/condition-builder/Value.js +1 -1
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.js +1 -1
- package/esm/components/formula/CodeEditor.js +1 -1
- package/esm/components/formula/Editor.js +1 -1
- package/esm/components/formula/FuncList.js +1 -1
- package/esm/components/formula/Input.js +1 -1
- package/esm/components/formula/Picker.js +1 -1
- package/esm/components/formula/VariableList.js +1 -1
- package/esm/components/formula/plugin.js +1 -1
- package/esm/components/icons.js +1 -1
- package/esm/components/index.d.ts +3 -1
- package/esm/components/json-schema/Array.js +1 -1
- package/esm/components/json-schema/Item.js +1 -1
- package/esm/components/json-schema/Object.js +1 -1
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.js +1 -1
- package/esm/components/menu/SubMenu.js +1 -1
- package/esm/components/menu/index.js +1 -1
- package/esm/components/schema-editor/Array.js +1 -1
- package/esm/components/schema-editor/Common.js +1 -1
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.js +1 -1
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.js +1 -1
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/ColGroup.js +1 -1
- package/esm/components/table/Head.js +1 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.js +1 -1
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.js +1 -1
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/Row.js +1 -1
- package/esm/components/table/SummaryRow.js +1 -1
- package/esm/components/table/index.js +1 -1
- package/esm/components/table/util.js +1 -1
- package/esm/components/virtual-list/AutoSizer.js +1 -1
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/components/withBadge.js +1 -1
- package/esm/hooks/use-on-screen.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-sub-form.js +1 -1
- package/esm/hooks/use-touch.js +1 -1
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +1 -1
- package/esm/icons/alert-danger.svg.js +1 -1
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +1 -1
- package/esm/icons/alert-warning.svg.js +1 -1
- package/esm/icons/arrow-double-left.svg.js +1 -1
- package/esm/icons/arrow-double-right.svg.js +1 -1
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check.svg.js +1 -1
- package/esm/icons/clock.svg.js +1 -1
- package/esm/icons/close-small.svg.js +1 -1
- package/esm/icons/close.svg.js +1 -1
- package/esm/icons/cloud-upload.svg.js +1 -1
- package/esm/icons/column-filter.svg.js +1 -1
- package/esm/icons/columns.svg.js +1 -1
- package/esm/icons/compress-alt.svg.js +1 -1
- package/esm/icons/copy.svg.js +1 -1
- package/esm/icons/date.svg.js +1 -1
- package/esm/icons/department.svg.js +1 -1
- package/esm/icons/desk-empty.svg.js +1 -1
- package/esm/icons/dot.svg.js +1 -1
- package/esm/icons/down-arrow-bold.svg.js +1 -1
- package/esm/icons/down.svg.js +1 -1
- package/esm/icons/download.svg.js +1 -1
- package/esm/icons/drag-bar.svg.js +1 -1
- package/esm/icons/drag.svg.js +1 -1
- package/esm/icons/edit.svg.js +1 -1
- package/esm/icons/ellipsis-v.svg.js +1 -1
- package/esm/icons/enter.svg.js +1 -1
- package/esm/icons/exchange.svg.js +1 -1
- package/esm/icons/expand-alt.svg.js +1 -1
- package/esm/icons/fail.svg.js +1 -1
- package/esm/icons/file.svg.js +1 -1
- package/esm/icons/filter.svg.js +1 -1
- package/esm/icons/folder.svg.js +1 -1
- package/esm/icons/fullscreen.svg.js +1 -1
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/if.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +1 -1
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +1 -1
- package/esm/icons/pause.svg.js +1 -1
- package/esm/icons/pencil.svg.js +1 -1
- package/esm/icons/play.svg.js +1 -1
- package/esm/icons/plus-cicle.svg.js +1 -1
- package/esm/icons/plus-fine.svg.js +1 -1
- package/esm/icons/plus.svg.js +1 -1
- package/esm/icons/post.svg.js +1 -1
- package/esm/icons/question-mark.svg.js +1 -1
- package/esm/icons/question.svg.js +1 -1
- package/esm/icons/redo.svg.js +1 -1
- package/esm/icons/refresh.svg.js +1 -1
- package/esm/icons/reload.svg.js +1 -1
- package/esm/icons/remove.svg.js +1 -1
- package/esm/icons/retry.svg.js +1 -1
- package/esm/icons/right-arrow-bold.svg.js +1 -1
- package/esm/icons/right-arrow.svg.js +1 -1
- package/esm/icons/right-double-arrow.svg.js +1 -1
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +1 -1
- package/esm/icons/rotate-right.svg.js +1 -1
- package/esm/icons/rotate-screen.svg.js +1 -1
- package/esm/icons/scale-origin.svg.js +1 -1
- package/esm/icons/schedule.svg.js +1 -1
- package/esm/icons/search.svg.js +1 -1
- package/esm/icons/setting.svg.js +1 -1
- package/esm/icons/slider-handle-icon.svg.js +1 -1
- package/esm/icons/sort-asc.svg.js +1 -1
- package/esm/icons/sort-default.svg.js +1 -1
- package/esm/icons/sort-desc.svg.js +1 -1
- package/esm/icons/star.svg.js +1 -1
- package/esm/icons/status-close.svg.js +1 -1
- package/esm/icons/steps-finsh.svg.js +1 -1
- package/esm/icons/sub-plus.svg.js +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-normal.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/unfullscreen.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 +2 -1
- package/esm/locale/de-DE.js +2 -1
- package/esm/locale/en-US.js +2 -1
- package/esm/locale/zh-CN.js +2 -1
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/esm/utils/smoothSignature.js +1 -1
- package/esm/utils/vectorComputed.d.ts +20 -0
- package/esm/utils/vectorComputed.js +75 -0
- package/esm/withRemoteConfig.js +1 -1
- package/esm/withStore.js +1 -1
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.js +1 -1
- package/lib/components/AnchorNav.js +1 -1
- package/lib/components/AnchorNavSection.js +1 -1
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.js +1 -1
- package/lib/components/AutoSizer.js +1 -1
- 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.js +1 -1
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedDropdownSelection.js +1 -1
- package/lib/components/ChainedSelection.js +1 -1
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CityArea.js +1 -1
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/Combo.js +1 -1
- package/lib/components/ConditionBuilder.js +1 -1
- package/lib/components/ConfirmBox.js +1 -1
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.js +1 -1
- package/lib/components/DateRangePicker.js +1 -1
- package/lib/components/DiffEditor.js +1 -1
- package/lib/components/DndContainer.js +1 -1
- package/lib/components/Drawer.js +1 -1
- package/lib/components/DropDownSelection.js +1 -1
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.js +1 -1
- package/lib/components/FormulaPicker.js +1 -1
- package/lib/components/GaodeMapPicker.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GridNavItem.js +1 -1
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/HeadCellDropDown.js +1 -1
- package/lib/components/Html.js +1 -1
- package/lib/components/Icon.js +1 -1
- package/lib/components/ImageGallery.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/InputJSONSchema.js +1 -1
- package/lib/components/InputTable.js +1 -1
- package/lib/components/JSONSchemaEditor.js +1 -1
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.js +1 -1
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Menu.js +1 -1
- package/lib/components/MobileDevTool.js +1 -1
- package/lib/components/Modal.js +1 -1
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.js +1 -1
- package/lib/components/OverflowTpl.js +1 -1
- package/lib/components/Pagination.js +1 -1
- package/lib/components/PdfViewer.js +1 -1
- package/lib/components/Picker.js +1 -1
- package/lib/components/PickerColumn.js +1 -1
- package/lib/components/PickerContainer.js +1 -1
- package/lib/components/PopOverContainer.js +1 -1
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.js +1 -1
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.js +1 -1
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.js +1 -1
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.js +1 -1
- package/lib/components/Select.js +1 -1
- package/lib/components/SelectMobile.js +1 -1
- package/lib/components/Selection.js +1 -1
- package/lib/components/Shape.d.ts +53 -0
- package/lib/components/Shape.js +409 -0
- package/lib/components/Signature.js +2 -1
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.js +1 -1
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.js +1 -1
- package/lib/components/Tab.js +1 -1
- package/lib/components/Table.js +1 -1
- package/lib/components/TableSelection.js +1 -1
- 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.js +1 -1
- package/lib/components/Textarea.js +1 -1
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +1 -1
- package/lib/components/Tinymce.js +1 -1
- 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.js +1 -1
- package/lib/components/TransferDropDown.js +1 -1
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +1 -1
- package/lib/components/Tree.js +1 -1
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.js +1 -1
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/VerificationCode.js +1 -1
- package/lib/components/VirtualList.js +1 -1
- 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.js +1 -1
- package/lib/components/condition-builder/Field.js +1 -1
- package/lib/components/condition-builder/Func.js +1 -1
- package/lib/components/condition-builder/Group.js +1 -1
- package/lib/components/condition-builder/GroupOrItem.js +1 -1
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.js +1 -1
- package/lib/components/condition-builder/Value.js +1 -1
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.js +1 -1
- package/lib/components/formula/CodeEditor.js +1 -1
- package/lib/components/formula/Editor.js +1 -1
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Input.js +1 -1
- package/lib/components/formula/Picker.js +1 -1
- package/lib/components/formula/VariableList.js +1 -1
- package/lib/components/formula/plugin.js +1 -1
- package/lib/components/icons.js +1 -1
- package/lib/components/index.d.ts +3 -1
- package/lib/components/json-schema/Array.js +1 -1
- package/lib/components/json-schema/Item.js +1 -1
- package/lib/components/json-schema/Object.js +1 -1
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.js +1 -1
- package/lib/components/menu/SubMenu.js +1 -1
- package/lib/components/menu/index.js +1 -1
- package/lib/components/schema-editor/Array.js +1 -1
- package/lib/components/schema-editor/Common.js +1 -1
- package/lib/components/schema-editor/Item.js +1 -1
- package/lib/components/schema-editor/Object.js +1 -1
- package/lib/components/schema-editor/SchemaVariableList.js +1 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/lib/components/schema-editor/index.js +1 -1
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/ColGroup.js +1 -1
- package/lib/components/table/Head.js +1 -1
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.js +1 -1
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.js +1 -1
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/Row.js +1 -1
- package/lib/components/table/SummaryRow.js +1 -1
- package/lib/components/table/index.js +1 -1
- package/lib/components/table/util.js +1 -1
- package/lib/components/virtual-list/AutoSizer.js +1 -1
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/components/withBadge.js +1 -1
- package/lib/hooks/use-on-screen.js +1 -1
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-sub-form.js +1 -1
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +1 -1
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +1 -1
- package/lib/icons/alert-warning.svg.js +1 -1
- package/lib/icons/arrow-double-left.svg.js +1 -1
- package/lib/icons/arrow-double-right.svg.js +1 -1
- package/lib/icons/back.svg.js +1 -1
- package/lib/icons/calendar.svg.js +1 -1
- package/lib/icons/caret.svg.js +1 -1
- package/lib/icons/check.svg.js +1 -1
- package/lib/icons/clock.svg.js +1 -1
- package/lib/icons/close-small.svg.js +1 -1
- package/lib/icons/close.svg.js +1 -1
- package/lib/icons/cloud-upload.svg.js +1 -1
- package/lib/icons/column-filter.svg.js +1 -1
- package/lib/icons/columns.svg.js +1 -1
- package/lib/icons/compress-alt.svg.js +1 -1
- package/lib/icons/copy.svg.js +1 -1
- package/lib/icons/date.svg.js +1 -1
- package/lib/icons/department.svg.js +1 -1
- package/lib/icons/desk-empty.svg.js +1 -1
- package/lib/icons/dot.svg.js +1 -1
- package/lib/icons/down-arrow-bold.svg.js +1 -1
- package/lib/icons/down.svg.js +1 -1
- package/lib/icons/download.svg.js +1 -1
- package/lib/icons/drag-bar.svg.js +1 -1
- package/lib/icons/drag.svg.js +1 -1
- package/lib/icons/edit.svg.js +1 -1
- package/lib/icons/ellipsis-v.svg.js +1 -1
- package/lib/icons/enter.svg.js +1 -1
- package/lib/icons/exchange.svg.js +1 -1
- package/lib/icons/expand-alt.svg.js +1 -1
- package/lib/icons/fail.svg.js +1 -1
- package/lib/icons/file.svg.js +1 -1
- package/lib/icons/filter.svg.js +1 -1
- package/lib/icons/folder.svg.js +1 -1
- package/lib/icons/fullscreen.svg.js +1 -1
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/if.svg.js +1 -1
- package/lib/icons/image.svg.js +1 -1
- package/lib/icons/info-circle.svg.js +1 -1
- package/lib/icons/info.svg.js +1 -1
- package/lib/icons/input-clear.svg.js +1 -1
- package/lib/icons/invisible.svg.js +1 -1
- package/lib/icons/left-arrow.svg.js +1 -1
- package/lib/icons/loading-outline.svg.js +1 -1
- package/lib/icons/location.svg.js +1 -1
- package/lib/icons/menu.svg.js +1 -1
- package/lib/icons/minus.svg.js +1 -1
- package/lib/icons/move.svg.js +1 -1
- package/lib/icons/mute.svg.js +1 -1
- package/lib/icons/new-edit.svg.js +1 -1
- package/lib/icons/pause.svg.js +1 -1
- package/lib/icons/pencil.svg.js +1 -1
- package/lib/icons/play.svg.js +1 -1
- package/lib/icons/plus-cicle.svg.js +1 -1
- package/lib/icons/plus-fine.svg.js +1 -1
- package/lib/icons/plus.svg.js +1 -1
- package/lib/icons/post.svg.js +1 -1
- package/lib/icons/question-mark.svg.js +1 -1
- package/lib/icons/question.svg.js +1 -1
- package/lib/icons/redo.svg.js +1 -1
- package/lib/icons/refresh.svg.js +1 -1
- package/lib/icons/reload.svg.js +1 -1
- package/lib/icons/remove.svg.js +1 -1
- package/lib/icons/retry.svg.js +1 -1
- package/lib/icons/right-arrow-bold.svg.js +1 -1
- package/lib/icons/right-arrow.svg.js +1 -1
- package/lib/icons/right-double-arrow.svg.js +1 -1
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +1 -1
- package/lib/icons/rotate-right.svg.js +1 -1
- package/lib/icons/rotate-screen.svg.js +1 -1
- package/lib/icons/scale-origin.svg.js +1 -1
- package/lib/icons/schedule.svg.js +1 -1
- package/lib/icons/search.svg.js +1 -1
- package/lib/icons/setting.svg.js +1 -1
- package/lib/icons/slider-handle-icon.svg.js +1 -1
- package/lib/icons/sort-asc.svg.js +1 -1
- package/lib/icons/sort-default.svg.js +1 -1
- package/lib/icons/sort-desc.svg.js +1 -1
- package/lib/icons/star.svg.js +1 -1
- package/lib/icons/status-close.svg.js +1 -1
- package/lib/icons/steps-finsh.svg.js +1 -1
- package/lib/icons/sub-plus.svg.js +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-normal.svg.js +1 -1
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/unfullscreen.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 +3 -1
- package/lib/locale/de-DE.js +2 -1
- package/lib/locale/en-US.js +2 -1
- package/lib/locale/zh-CN.js +2 -1
- package/lib/scss/helper.scss.js +1 -1
- package/lib/scss/themes/ang.scss.js +1 -1
- package/lib/scss/themes/antd.scss.js +1 -1
- package/lib/scss/themes/cxd.scss.js +1 -1
- package/lib/scss/themes/dark.scss.js +1 -1
- package/lib/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +51 -30
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +51 -30
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +51 -30
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +51 -30
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +51 -30
- package/lib/utils/smoothSignature.js +1 -1
- package/lib/utils/vectorComputed.d.ts +20 -0
- package/lib/utils/vectorComputed.js +84 -0
- package/lib/withRemoteConfig.js +1 -1
- package/lib/withStore.js +1 -1
- package/package.json +3 -3
- package/scss/_mixins.scss +7 -6
- package/scss/_properties.scss +1 -0
- package/scss/components/_button.scss +1 -0
- package/scss/components/_crud.scss +5 -0
- package/scss/components/_shape.scss +18 -0
- package/scss/components/form/_picker.scss +14 -9
- package/scss/components/form/_user-select.scss +1 -1
- package/scss/themes/_common.scss +1 -0
package/lib/themes/dark.css
CHANGED
|
@@ -140,6 +140,7 @@
|
|
|
140
140
|
--ButtonGroup-divider-width: 0.0625rem;
|
|
141
141
|
--ButtonGroup-divider-color: #fff;
|
|
142
142
|
--ButtonGroup-borderWidth: var(--borders-width-2);
|
|
143
|
+
--Button-onDisabled-opacity: 0.3;
|
|
143
144
|
--Breadcrumb-item-fontSize: var(--fontSizeMd);
|
|
144
145
|
--Breadcrumb-item-default-color: var(--colors-neutral-text-5);
|
|
145
146
|
--Breadcrumb-item-hover-color: var(--colors-brand-5);
|
|
@@ -18543,6 +18544,7 @@ img.dark-AsideNav-itemIcon {
|
|
|
18543
18544
|
display: inline-flex;
|
|
18544
18545
|
align-items: center;
|
|
18545
18546
|
justify-content: center;
|
|
18547
|
+
text-align: center;
|
|
18546
18548
|
vertical-align: middle;
|
|
18547
18549
|
-webkit-user-select: none;
|
|
18548
18550
|
-moz-user-select: none;
|
|
@@ -25180,6 +25182,10 @@ input[type=button].dark-Button--block {
|
|
|
25180
25182
|
}
|
|
25181
25183
|
.dark-Crud-selection {
|
|
25182
25184
|
margin-bottom: var(--gap-base);
|
|
25185
|
+
display: flex;
|
|
25186
|
+
flex-wrap: wrap;
|
|
25187
|
+
gap: var(--gap-xs);
|
|
25188
|
+
line-height: 1;
|
|
25183
25189
|
}
|
|
25184
25190
|
.dark-Crud-selection-overflow-wrapper {
|
|
25185
25191
|
display: flex;
|
|
@@ -25190,6 +25196,7 @@ input[type=button].dark-Button--block {
|
|
|
25190
25196
|
overflow-y: auto;
|
|
25191
25197
|
height: calc((var(--Picker-tag-height) + var(--Picker-tag-marginBottom) * 4) * 3);
|
|
25192
25198
|
max-height: calc((var(--Picker-tag-height) + var(--Picker-tag-marginBottom)) * 5);
|
|
25199
|
+
gap: var(--gap-xs);
|
|
25193
25200
|
}
|
|
25194
25201
|
.dark-Crud-selection-overflow-wrapper .dark-Crud-value {
|
|
25195
25202
|
cursor: pointer;
|
|
@@ -25199,7 +25206,8 @@ input[type=button].dark-Button--block {
|
|
|
25199
25206
|
white-space: nowrap;
|
|
25200
25207
|
vertical-align: middle;
|
|
25201
25208
|
line-height: calc(var(--Form-input-lineHeight) * var(--Form-input-fontSize) - 0.125rem);
|
|
25202
|
-
display: inline-
|
|
25209
|
+
display: inline-flex;
|
|
25210
|
+
align-items: center;
|
|
25203
25211
|
font-size: var(--Pick-base-value-fontSize);
|
|
25204
25212
|
color: var(--Pick-base-value-color);
|
|
25205
25213
|
font-weight: var(--Pick-base-value-fontWeight);
|
|
@@ -25208,9 +25216,6 @@ input[type=button].dark-Button--block {
|
|
|
25208
25216
|
border-style: var(--Pick-base-value-top-border-style) var(--Pick-base-value-right-border-style) var(--Pick-base-value-bottom-border-style) var(--Pick-base-value-left-border-style);
|
|
25209
25217
|
border-color: var(--Pick-base-value-top-border-color) var(--Pick-base-value-right-border-color) var(--Pick-base-value-bottom-border-color) var(--Pick-base-value-left-border-color);
|
|
25210
25218
|
border-radius: var(--Pick-base-top-left-border-radius) var(--Pick-base-top-right-border-radius) var(--Pick-base-bottom-right-border-radius) var(--Pick-base-bottom-left-border-radius);
|
|
25211
|
-
margin-right: var(--gap-xs);
|
|
25212
|
-
margin-bottom: var(--gap-xs);
|
|
25213
|
-
margin-top: var(--gap-xs);
|
|
25214
25219
|
max-width: 9.375rem;
|
|
25215
25220
|
overflow: hidden;
|
|
25216
25221
|
text-overflow: ellipsis;
|
|
@@ -25221,13 +25226,15 @@ input[type=button].dark-Button--block {
|
|
|
25221
25226
|
}
|
|
25222
25227
|
.dark-Crud-selection-overflow-wrapper .dark-Crud-value.is-disabled {
|
|
25223
25228
|
pointer-events: none;
|
|
25229
|
+
}
|
|
25230
|
+
.dark-Crud-selection-overflow-wrapper .dark-Crud-value.is-disabled .dark-Crud-valueIcon {
|
|
25224
25231
|
opacity: var(--Button-onDisabled-opacity);
|
|
25225
25232
|
}
|
|
25226
25233
|
.dark-Crud-selection-overflow-wrapper .dark-Crud-valueIcon {
|
|
25227
25234
|
color: var(--Pick-base-value-icon-color);
|
|
25228
25235
|
cursor: pointer;
|
|
25229
25236
|
border-right: 0.0625rem solid var(--Form-selectValue-borderColor);
|
|
25230
|
-
padding:
|
|
25237
|
+
padding: 0 5px;
|
|
25231
25238
|
}
|
|
25232
25239
|
.dark-Crud-selection-overflow-wrapper .dark-Crud-valueIcon:hover {
|
|
25233
25240
|
background: var(--Pick-base-value-hover-icon-color);
|
|
@@ -25248,7 +25255,8 @@ input[type=button].dark-Button--block {
|
|
|
25248
25255
|
white-space: nowrap;
|
|
25249
25256
|
vertical-align: middle;
|
|
25250
25257
|
line-height: calc(var(--Form-input-lineHeight) * var(--Form-input-fontSize) - 0.125rem);
|
|
25251
|
-
display: inline-
|
|
25258
|
+
display: inline-flex;
|
|
25259
|
+
align-items: center;
|
|
25252
25260
|
font-size: var(--Pick-base-value-fontSize);
|
|
25253
25261
|
color: var(--Pick-base-value-color);
|
|
25254
25262
|
font-weight: var(--Pick-base-value-fontWeight);
|
|
@@ -25257,9 +25265,6 @@ input[type=button].dark-Button--block {
|
|
|
25257
25265
|
border-style: var(--Pick-base-value-top-border-style) var(--Pick-base-value-right-border-style) var(--Pick-base-value-bottom-border-style) var(--Pick-base-value-left-border-style);
|
|
25258
25266
|
border-color: var(--Pick-base-value-top-border-color) var(--Pick-base-value-right-border-color) var(--Pick-base-value-bottom-border-color) var(--Pick-base-value-left-border-color);
|
|
25259
25267
|
border-radius: var(--Pick-base-top-left-border-radius) var(--Pick-base-top-right-border-radius) var(--Pick-base-bottom-right-border-radius) var(--Pick-base-bottom-left-border-radius);
|
|
25260
|
-
margin-right: var(--gap-xs);
|
|
25261
|
-
margin-bottom: var(--gap-xs);
|
|
25262
|
-
margin-top: var(--gap-xs);
|
|
25263
25268
|
max-width: 9.375rem;
|
|
25264
25269
|
overflow: hidden;
|
|
25265
25270
|
text-overflow: ellipsis;
|
|
@@ -25270,13 +25275,15 @@ input[type=button].dark-Button--block {
|
|
|
25270
25275
|
}
|
|
25271
25276
|
.dark-Crud .dark-Crud-value.is-disabled {
|
|
25272
25277
|
pointer-events: none;
|
|
25278
|
+
}
|
|
25279
|
+
.dark-Crud .dark-Crud-value.is-disabled .dark-Crud-valueIcon {
|
|
25273
25280
|
opacity: var(--Button-onDisabled-opacity);
|
|
25274
25281
|
}
|
|
25275
25282
|
.dark-Crud .dark-Crud-valueIcon {
|
|
25276
25283
|
color: var(--Pick-base-value-icon-color);
|
|
25277
25284
|
cursor: pointer;
|
|
25278
25285
|
border-right: 0.0625rem solid var(--Form-selectValue-borderColor);
|
|
25279
|
-
padding:
|
|
25286
|
+
padding: 0 5px;
|
|
25280
25287
|
}
|
|
25281
25288
|
.dark-Crud .dark-Crud-valueIcon:hover {
|
|
25282
25289
|
background: var(--Pick-base-value-hover-icon-color);
|
|
@@ -32128,6 +32135,23 @@ input[type=button].dark-Button--block {
|
|
|
32128
32135
|
.dark-GridNavItem-content--clickable {
|
|
32129
32136
|
cursor: pointer;
|
|
32130
32137
|
}
|
|
32138
|
+
/**
|
|
32139
|
+
* @file _shape.scss
|
|
32140
|
+
*
|
|
32141
|
+
* @author allenve(yupeng12@baidu.com)
|
|
32142
|
+
* @created: 2024/12/12
|
|
32143
|
+
*/
|
|
32144
|
+
.dark-Shape {
|
|
32145
|
+
position: relative;
|
|
32146
|
+
display: inline-flex;
|
|
32147
|
+
align-items: center;
|
|
32148
|
+
justify-content: center;
|
|
32149
|
+
width: 200px;
|
|
32150
|
+
height: 200px;
|
|
32151
|
+
}
|
|
32152
|
+
.dark-Shape-svg {
|
|
32153
|
+
position: absolute;
|
|
32154
|
+
}
|
|
32131
32155
|
fieldset.dark-Collapse--lg, fieldset.dark-Collapse--md, fieldset.dark-Collapse--base, fieldset.dark-Collapse--sm, fieldset.dark-Collapse--xs {
|
|
32132
32156
|
position: relative;
|
|
32133
32157
|
}
|
|
@@ -38954,7 +38978,8 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
38954
38978
|
-webkit-user-select: none;
|
|
38955
38979
|
-moz-user-select: none;
|
|
38956
38980
|
user-select: none;
|
|
38957
|
-
|
|
38981
|
+
flex: 1;
|
|
38982
|
+
min-width: 0;
|
|
38958
38983
|
line-height: var(--Form-input-lineHeight);
|
|
38959
38984
|
padding: var(--Pick-base-paddingTop) var(--Pick-base-paddingRight) var(--Pick-base-paddingBottom) var(--Pick-base-paddingLeft);
|
|
38960
38985
|
}
|
|
@@ -38968,12 +38993,6 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
38968
38993
|
border-style: var(--Pick-base-top-border-style) var(--Pick-base-right-border-style) var(--Pick-base-bottom-border-style) var(--Pick-base-left-border-style);
|
|
38969
38994
|
border-color: var(--Pick-base-top-border-color) var(--Pick-base-right-border-color) var(--Pick-base-bottom-border-color) var(--Pick-base-left-border-color);
|
|
38970
38995
|
}
|
|
38971
|
-
.dark-Picker .dark-Picker-values {
|
|
38972
|
-
display: inline;
|
|
38973
|
-
}
|
|
38974
|
-
.dark-Picker .dark-Picker-values .dark-Picker-valueLabel {
|
|
38975
|
-
pointer-events: auto;
|
|
38976
|
-
}
|
|
38977
38996
|
.dark-Picker-valueWrap {
|
|
38978
38997
|
flex-grow: 1;
|
|
38979
38998
|
position: relative;
|
|
@@ -38984,8 +39003,9 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
38984
39003
|
display: inline-block;
|
|
38985
39004
|
}
|
|
38986
39005
|
.dark-Picker .dark-Picker-valueWrap {
|
|
38987
|
-
|
|
38988
|
-
|
|
39006
|
+
display: flex;
|
|
39007
|
+
flex-wrap: wrap;
|
|
39008
|
+
gap: var(--gap-xs);
|
|
38989
39009
|
}
|
|
38990
39010
|
.dark-Picker .dark-Picker-value {
|
|
38991
39011
|
cursor: pointer;
|
|
@@ -38995,7 +39015,8 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
38995
39015
|
white-space: nowrap;
|
|
38996
39016
|
vertical-align: middle;
|
|
38997
39017
|
line-height: calc(var(--Form-input-lineHeight) * var(--Form-input-fontSize) - 0.125rem);
|
|
38998
|
-
display: inline-
|
|
39018
|
+
display: inline-flex;
|
|
39019
|
+
align-items: center;
|
|
38999
39020
|
font-size: var(--Pick-base-value-fontSize);
|
|
39000
39021
|
color: var(--Pick-base-value-color);
|
|
39001
39022
|
font-weight: var(--Pick-base-value-fontWeight);
|
|
@@ -39004,9 +39025,6 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
39004
39025
|
border-style: var(--Pick-base-value-top-border-style) var(--Pick-base-value-right-border-style) var(--Pick-base-value-bottom-border-style) var(--Pick-base-value-left-border-style);
|
|
39005
39026
|
border-color: var(--Pick-base-value-top-border-color) var(--Pick-base-value-right-border-color) var(--Pick-base-value-bottom-border-color) var(--Pick-base-value-left-border-color);
|
|
39006
39027
|
border-radius: var(--Pick-base-top-left-border-radius) var(--Pick-base-top-right-border-radius) var(--Pick-base-bottom-right-border-radius) var(--Pick-base-bottom-left-border-radius);
|
|
39007
|
-
margin-right: var(--gap-xs);
|
|
39008
|
-
margin-bottom: var(--gap-xs);
|
|
39009
|
-
margin-top: var(--gap-xs);
|
|
39010
39028
|
max-width: 9.375rem;
|
|
39011
39029
|
overflow: hidden;
|
|
39012
39030
|
text-overflow: ellipsis;
|
|
@@ -39017,13 +39035,15 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
39017
39035
|
}
|
|
39018
39036
|
.dark-Picker .dark-Picker-value.is-disabled {
|
|
39019
39037
|
pointer-events: none;
|
|
39038
|
+
}
|
|
39039
|
+
.dark-Picker .dark-Picker-value.is-disabled .dark-Picker-valueIcon {
|
|
39020
39040
|
opacity: var(--Button-onDisabled-opacity);
|
|
39021
39041
|
}
|
|
39022
39042
|
.dark-Picker .dark-Picker-valueIcon {
|
|
39023
39043
|
color: var(--Pick-base-value-icon-color);
|
|
39024
39044
|
cursor: pointer;
|
|
39025
39045
|
border-right: 0.0625rem solid var(--Form-selectValue-borderColor);
|
|
39026
|
-
padding:
|
|
39046
|
+
padding: 0 5px;
|
|
39027
39047
|
}
|
|
39028
39048
|
.dark-Picker .dark-Picker-valueIcon:hover {
|
|
39029
39049
|
background: var(--Pick-base-value-hover-icon-color);
|
|
@@ -39090,6 +39110,7 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
39090
39110
|
overflow-y: auto;
|
|
39091
39111
|
height: calc((var(--Picker-tag-height) + var(--Picker-tag-marginBottom) * 4) * 3);
|
|
39092
39112
|
max-height: calc((var(--Picker-tag-height) + var(--Picker-tag-marginBottom)) * 5);
|
|
39113
|
+
gap: var(--gap-xs);
|
|
39093
39114
|
}
|
|
39094
39115
|
.dark-Picker-overflow-wrapper .dark-Picker-value {
|
|
39095
39116
|
cursor: pointer;
|
|
@@ -39099,7 +39120,8 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
39099
39120
|
white-space: nowrap;
|
|
39100
39121
|
vertical-align: middle;
|
|
39101
39122
|
line-height: calc(var(--Form-input-lineHeight) * var(--Form-input-fontSize) - 0.125rem);
|
|
39102
|
-
display: inline-
|
|
39123
|
+
display: inline-flex;
|
|
39124
|
+
align-items: center;
|
|
39103
39125
|
font-size: var(--Pick-base-value-fontSize);
|
|
39104
39126
|
color: var(--Pick-base-value-color);
|
|
39105
39127
|
font-weight: var(--Pick-base-value-fontWeight);
|
|
@@ -39108,9 +39130,6 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
39108
39130
|
border-style: var(--Pick-base-value-top-border-style) var(--Pick-base-value-right-border-style) var(--Pick-base-value-bottom-border-style) var(--Pick-base-value-left-border-style);
|
|
39109
39131
|
border-color: var(--Pick-base-value-top-border-color) var(--Pick-base-value-right-border-color) var(--Pick-base-value-bottom-border-color) var(--Pick-base-value-left-border-color);
|
|
39110
39132
|
border-radius: var(--Pick-base-top-left-border-radius) var(--Pick-base-top-right-border-radius) var(--Pick-base-bottom-right-border-radius) var(--Pick-base-bottom-left-border-radius);
|
|
39111
|
-
margin-right: var(--gap-xs);
|
|
39112
|
-
margin-bottom: var(--gap-xs);
|
|
39113
|
-
margin-top: var(--gap-xs);
|
|
39114
39133
|
max-width: 9.375rem;
|
|
39115
39134
|
overflow: hidden;
|
|
39116
39135
|
text-overflow: ellipsis;
|
|
@@ -39121,13 +39140,15 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
39121
39140
|
}
|
|
39122
39141
|
.dark-Picker-overflow-wrapper .dark-Picker-value.is-disabled {
|
|
39123
39142
|
pointer-events: none;
|
|
39143
|
+
}
|
|
39144
|
+
.dark-Picker-overflow-wrapper .dark-Picker-value.is-disabled .dark-Picker-valueIcon {
|
|
39124
39145
|
opacity: var(--Button-onDisabled-opacity);
|
|
39125
39146
|
}
|
|
39126
39147
|
.dark-Picker-overflow-wrapper .dark-Picker-valueIcon {
|
|
39127
39148
|
color: var(--Pick-base-value-icon-color);
|
|
39128
39149
|
cursor: pointer;
|
|
39129
39150
|
border-right: 0.0625rem solid var(--Form-selectValue-borderColor);
|
|
39130
|
-
padding:
|
|
39151
|
+
padding: 0 5px;
|
|
39131
39152
|
}
|
|
39132
39153
|
.dark-Picker-overflow-wrapper .dark-Picker-valueIcon:hover {
|
|
39133
39154
|
background: var(--Pick-base-value-hover-icon-color);
|
|
@@ -41460,7 +41481,7 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
41460
41481
|
.dark-UserSelect-selectPopup {
|
|
41461
41482
|
width: 100vw;
|
|
41462
41483
|
height: 100vh;
|
|
41463
|
-
z-index: var(3000)1;
|
|
41484
|
+
z-index: calc(var(3000) + 1);
|
|
41464
41485
|
}
|
|
41465
41486
|
.dark-UserSelect-searchBox {
|
|
41466
41487
|
height: 3.25rem;
|
package/lib/themes/dark.js
CHANGED
package/lib/themes/default.css
CHANGED
|
@@ -140,6 +140,7 @@
|
|
|
140
140
|
--ButtonGroup-divider-width: 0.0625rem;
|
|
141
141
|
--ButtonGroup-divider-color: #fff;
|
|
142
142
|
--ButtonGroup-borderWidth: var(--borders-width-2);
|
|
143
|
+
--Button-onDisabled-opacity: 0.3;
|
|
143
144
|
--Breadcrumb-item-fontSize: var(--fontSizeMd);
|
|
144
145
|
--Breadcrumb-item-default-color: var(--colors-neutral-text-5);
|
|
145
146
|
--Breadcrumb-item-hover-color: var(--colors-brand-5);
|
|
@@ -18541,6 +18542,7 @@ img.cxd-AsideNav-itemIcon {
|
|
|
18541
18542
|
display: inline-flex;
|
|
18542
18543
|
align-items: center;
|
|
18543
18544
|
justify-content: center;
|
|
18545
|
+
text-align: center;
|
|
18544
18546
|
vertical-align: middle;
|
|
18545
18547
|
-webkit-user-select: none;
|
|
18546
18548
|
-moz-user-select: none;
|
|
@@ -25178,6 +25180,10 @@ input[type=button].cxd-Button--block {
|
|
|
25178
25180
|
}
|
|
25179
25181
|
.cxd-Crud-selection {
|
|
25180
25182
|
margin-bottom: var(--gap-base);
|
|
25183
|
+
display: flex;
|
|
25184
|
+
flex-wrap: wrap;
|
|
25185
|
+
gap: var(--gap-xs);
|
|
25186
|
+
line-height: 1;
|
|
25181
25187
|
}
|
|
25182
25188
|
.cxd-Crud-selection-overflow-wrapper {
|
|
25183
25189
|
display: flex;
|
|
@@ -25188,6 +25194,7 @@ input[type=button].cxd-Button--block {
|
|
|
25188
25194
|
overflow-y: auto;
|
|
25189
25195
|
height: calc((var(--Picker-tag-height) + var(--Picker-tag-marginBottom) * 4) * 3);
|
|
25190
25196
|
max-height: calc((var(--Picker-tag-height) + var(--Picker-tag-marginBottom)) * 5);
|
|
25197
|
+
gap: var(--gap-xs);
|
|
25191
25198
|
}
|
|
25192
25199
|
.cxd-Crud-selection-overflow-wrapper .cxd-Crud-value {
|
|
25193
25200
|
cursor: pointer;
|
|
@@ -25197,7 +25204,8 @@ input[type=button].cxd-Button--block {
|
|
|
25197
25204
|
white-space: nowrap;
|
|
25198
25205
|
vertical-align: middle;
|
|
25199
25206
|
line-height: calc(var(--Form-input-lineHeight) * var(--Form-input-fontSize) - 0.125rem);
|
|
25200
|
-
display: inline-
|
|
25207
|
+
display: inline-flex;
|
|
25208
|
+
align-items: center;
|
|
25201
25209
|
font-size: var(--Pick-base-value-fontSize);
|
|
25202
25210
|
color: var(--Pick-base-value-color);
|
|
25203
25211
|
font-weight: var(--Pick-base-value-fontWeight);
|
|
@@ -25206,9 +25214,6 @@ input[type=button].cxd-Button--block {
|
|
|
25206
25214
|
border-style: var(--Pick-base-value-top-border-style) var(--Pick-base-value-right-border-style) var(--Pick-base-value-bottom-border-style) var(--Pick-base-value-left-border-style);
|
|
25207
25215
|
border-color: var(--Pick-base-value-top-border-color) var(--Pick-base-value-right-border-color) var(--Pick-base-value-bottom-border-color) var(--Pick-base-value-left-border-color);
|
|
25208
25216
|
border-radius: var(--Pick-base-top-left-border-radius) var(--Pick-base-top-right-border-radius) var(--Pick-base-bottom-right-border-radius) var(--Pick-base-bottom-left-border-radius);
|
|
25209
|
-
margin-right: var(--gap-xs);
|
|
25210
|
-
margin-bottom: var(--gap-xs);
|
|
25211
|
-
margin-top: var(--gap-xs);
|
|
25212
25217
|
max-width: 9.375rem;
|
|
25213
25218
|
overflow: hidden;
|
|
25214
25219
|
text-overflow: ellipsis;
|
|
@@ -25219,13 +25224,15 @@ input[type=button].cxd-Button--block {
|
|
|
25219
25224
|
}
|
|
25220
25225
|
.cxd-Crud-selection-overflow-wrapper .cxd-Crud-value.is-disabled {
|
|
25221
25226
|
pointer-events: none;
|
|
25227
|
+
}
|
|
25228
|
+
.cxd-Crud-selection-overflow-wrapper .cxd-Crud-value.is-disabled .cxd-Crud-valueIcon {
|
|
25222
25229
|
opacity: var(--Button-onDisabled-opacity);
|
|
25223
25230
|
}
|
|
25224
25231
|
.cxd-Crud-selection-overflow-wrapper .cxd-Crud-valueIcon {
|
|
25225
25232
|
color: var(--Pick-base-value-icon-color);
|
|
25226
25233
|
cursor: pointer;
|
|
25227
25234
|
border-right: 0.0625rem solid var(--Form-selectValue-borderColor);
|
|
25228
|
-
padding:
|
|
25235
|
+
padding: 0 5px;
|
|
25229
25236
|
}
|
|
25230
25237
|
.cxd-Crud-selection-overflow-wrapper .cxd-Crud-valueIcon:hover {
|
|
25231
25238
|
background: var(--Pick-base-value-hover-icon-color);
|
|
@@ -25246,7 +25253,8 @@ input[type=button].cxd-Button--block {
|
|
|
25246
25253
|
white-space: nowrap;
|
|
25247
25254
|
vertical-align: middle;
|
|
25248
25255
|
line-height: calc(var(--Form-input-lineHeight) * var(--Form-input-fontSize) - 0.125rem);
|
|
25249
|
-
display: inline-
|
|
25256
|
+
display: inline-flex;
|
|
25257
|
+
align-items: center;
|
|
25250
25258
|
font-size: var(--Pick-base-value-fontSize);
|
|
25251
25259
|
color: var(--Pick-base-value-color);
|
|
25252
25260
|
font-weight: var(--Pick-base-value-fontWeight);
|
|
@@ -25255,9 +25263,6 @@ input[type=button].cxd-Button--block {
|
|
|
25255
25263
|
border-style: var(--Pick-base-value-top-border-style) var(--Pick-base-value-right-border-style) var(--Pick-base-value-bottom-border-style) var(--Pick-base-value-left-border-style);
|
|
25256
25264
|
border-color: var(--Pick-base-value-top-border-color) var(--Pick-base-value-right-border-color) var(--Pick-base-value-bottom-border-color) var(--Pick-base-value-left-border-color);
|
|
25257
25265
|
border-radius: var(--Pick-base-top-left-border-radius) var(--Pick-base-top-right-border-radius) var(--Pick-base-bottom-right-border-radius) var(--Pick-base-bottom-left-border-radius);
|
|
25258
|
-
margin-right: var(--gap-xs);
|
|
25259
|
-
margin-bottom: var(--gap-xs);
|
|
25260
|
-
margin-top: var(--gap-xs);
|
|
25261
25266
|
max-width: 9.375rem;
|
|
25262
25267
|
overflow: hidden;
|
|
25263
25268
|
text-overflow: ellipsis;
|
|
@@ -25268,13 +25273,15 @@ input[type=button].cxd-Button--block {
|
|
|
25268
25273
|
}
|
|
25269
25274
|
.cxd-Crud .cxd-Crud-value.is-disabled {
|
|
25270
25275
|
pointer-events: none;
|
|
25276
|
+
}
|
|
25277
|
+
.cxd-Crud .cxd-Crud-value.is-disabled .cxd-Crud-valueIcon {
|
|
25271
25278
|
opacity: var(--Button-onDisabled-opacity);
|
|
25272
25279
|
}
|
|
25273
25280
|
.cxd-Crud .cxd-Crud-valueIcon {
|
|
25274
25281
|
color: var(--Pick-base-value-icon-color);
|
|
25275
25282
|
cursor: pointer;
|
|
25276
25283
|
border-right: 0.0625rem solid var(--Form-selectValue-borderColor);
|
|
25277
|
-
padding:
|
|
25284
|
+
padding: 0 5px;
|
|
25278
25285
|
}
|
|
25279
25286
|
.cxd-Crud .cxd-Crud-valueIcon:hover {
|
|
25280
25287
|
background: var(--Pick-base-value-hover-icon-color);
|
|
@@ -32126,6 +32133,23 @@ input[type=button].cxd-Button--block {
|
|
|
32126
32133
|
.cxd-GridNavItem-content--clickable {
|
|
32127
32134
|
cursor: pointer;
|
|
32128
32135
|
}
|
|
32136
|
+
/**
|
|
32137
|
+
* @file _shape.scss
|
|
32138
|
+
*
|
|
32139
|
+
* @author allenve(yupeng12@baidu.com)
|
|
32140
|
+
* @created: 2024/12/12
|
|
32141
|
+
*/
|
|
32142
|
+
.cxd-Shape {
|
|
32143
|
+
position: relative;
|
|
32144
|
+
display: inline-flex;
|
|
32145
|
+
align-items: center;
|
|
32146
|
+
justify-content: center;
|
|
32147
|
+
width: 200px;
|
|
32148
|
+
height: 200px;
|
|
32149
|
+
}
|
|
32150
|
+
.cxd-Shape-svg {
|
|
32151
|
+
position: absolute;
|
|
32152
|
+
}
|
|
32129
32153
|
fieldset.cxd-Collapse--lg, fieldset.cxd-Collapse--md, fieldset.cxd-Collapse--base, fieldset.cxd-Collapse--sm, fieldset.cxd-Collapse--xs {
|
|
32130
32154
|
position: relative;
|
|
32131
32155
|
}
|
|
@@ -38952,7 +38976,8 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
38952
38976
|
-webkit-user-select: none;
|
|
38953
38977
|
-moz-user-select: none;
|
|
38954
38978
|
user-select: none;
|
|
38955
|
-
|
|
38979
|
+
flex: 1;
|
|
38980
|
+
min-width: 0;
|
|
38956
38981
|
line-height: var(--Form-input-lineHeight);
|
|
38957
38982
|
padding: var(--Pick-base-paddingTop) var(--Pick-base-paddingRight) var(--Pick-base-paddingBottom) var(--Pick-base-paddingLeft);
|
|
38958
38983
|
}
|
|
@@ -38966,12 +38991,6 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
38966
38991
|
border-style: var(--Pick-base-top-border-style) var(--Pick-base-right-border-style) var(--Pick-base-bottom-border-style) var(--Pick-base-left-border-style);
|
|
38967
38992
|
border-color: var(--Pick-base-top-border-color) var(--Pick-base-right-border-color) var(--Pick-base-bottom-border-color) var(--Pick-base-left-border-color);
|
|
38968
38993
|
}
|
|
38969
|
-
.cxd-Picker .cxd-Picker-values {
|
|
38970
|
-
display: inline;
|
|
38971
|
-
}
|
|
38972
|
-
.cxd-Picker .cxd-Picker-values .cxd-Picker-valueLabel {
|
|
38973
|
-
pointer-events: auto;
|
|
38974
|
-
}
|
|
38975
38994
|
.cxd-Picker-valueWrap {
|
|
38976
38995
|
flex-grow: 1;
|
|
38977
38996
|
position: relative;
|
|
@@ -38982,8 +39001,9 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
38982
39001
|
display: inline-block;
|
|
38983
39002
|
}
|
|
38984
39003
|
.cxd-Picker .cxd-Picker-valueWrap {
|
|
38985
|
-
|
|
38986
|
-
|
|
39004
|
+
display: flex;
|
|
39005
|
+
flex-wrap: wrap;
|
|
39006
|
+
gap: var(--gap-xs);
|
|
38987
39007
|
}
|
|
38988
39008
|
.cxd-Picker .cxd-Picker-value {
|
|
38989
39009
|
cursor: pointer;
|
|
@@ -38993,7 +39013,8 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
38993
39013
|
white-space: nowrap;
|
|
38994
39014
|
vertical-align: middle;
|
|
38995
39015
|
line-height: calc(var(--Form-input-lineHeight) * var(--Form-input-fontSize) - 0.125rem);
|
|
38996
|
-
display: inline-
|
|
39016
|
+
display: inline-flex;
|
|
39017
|
+
align-items: center;
|
|
38997
39018
|
font-size: var(--Pick-base-value-fontSize);
|
|
38998
39019
|
color: var(--Pick-base-value-color);
|
|
38999
39020
|
font-weight: var(--Pick-base-value-fontWeight);
|
|
@@ -39002,9 +39023,6 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
39002
39023
|
border-style: var(--Pick-base-value-top-border-style) var(--Pick-base-value-right-border-style) var(--Pick-base-value-bottom-border-style) var(--Pick-base-value-left-border-style);
|
|
39003
39024
|
border-color: var(--Pick-base-value-top-border-color) var(--Pick-base-value-right-border-color) var(--Pick-base-value-bottom-border-color) var(--Pick-base-value-left-border-color);
|
|
39004
39025
|
border-radius: var(--Pick-base-top-left-border-radius) var(--Pick-base-top-right-border-radius) var(--Pick-base-bottom-right-border-radius) var(--Pick-base-bottom-left-border-radius);
|
|
39005
|
-
margin-right: var(--gap-xs);
|
|
39006
|
-
margin-bottom: var(--gap-xs);
|
|
39007
|
-
margin-top: var(--gap-xs);
|
|
39008
39026
|
max-width: 9.375rem;
|
|
39009
39027
|
overflow: hidden;
|
|
39010
39028
|
text-overflow: ellipsis;
|
|
@@ -39015,13 +39033,15 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
39015
39033
|
}
|
|
39016
39034
|
.cxd-Picker .cxd-Picker-value.is-disabled {
|
|
39017
39035
|
pointer-events: none;
|
|
39036
|
+
}
|
|
39037
|
+
.cxd-Picker .cxd-Picker-value.is-disabled .cxd-Picker-valueIcon {
|
|
39018
39038
|
opacity: var(--Button-onDisabled-opacity);
|
|
39019
39039
|
}
|
|
39020
39040
|
.cxd-Picker .cxd-Picker-valueIcon {
|
|
39021
39041
|
color: var(--Pick-base-value-icon-color);
|
|
39022
39042
|
cursor: pointer;
|
|
39023
39043
|
border-right: 0.0625rem solid var(--Form-selectValue-borderColor);
|
|
39024
|
-
padding:
|
|
39044
|
+
padding: 0 5px;
|
|
39025
39045
|
}
|
|
39026
39046
|
.cxd-Picker .cxd-Picker-valueIcon:hover {
|
|
39027
39047
|
background: var(--Pick-base-value-hover-icon-color);
|
|
@@ -39088,6 +39108,7 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
39088
39108
|
overflow-y: auto;
|
|
39089
39109
|
height: calc((var(--Picker-tag-height) + var(--Picker-tag-marginBottom) * 4) * 3);
|
|
39090
39110
|
max-height: calc((var(--Picker-tag-height) + var(--Picker-tag-marginBottom)) * 5);
|
|
39111
|
+
gap: var(--gap-xs);
|
|
39091
39112
|
}
|
|
39092
39113
|
.cxd-Picker-overflow-wrapper .cxd-Picker-value {
|
|
39093
39114
|
cursor: pointer;
|
|
@@ -39097,7 +39118,8 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
39097
39118
|
white-space: nowrap;
|
|
39098
39119
|
vertical-align: middle;
|
|
39099
39120
|
line-height: calc(var(--Form-input-lineHeight) * var(--Form-input-fontSize) - 0.125rem);
|
|
39100
|
-
display: inline-
|
|
39121
|
+
display: inline-flex;
|
|
39122
|
+
align-items: center;
|
|
39101
39123
|
font-size: var(--Pick-base-value-fontSize);
|
|
39102
39124
|
color: var(--Pick-base-value-color);
|
|
39103
39125
|
font-weight: var(--Pick-base-value-fontWeight);
|
|
@@ -39106,9 +39128,6 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
39106
39128
|
border-style: var(--Pick-base-value-top-border-style) var(--Pick-base-value-right-border-style) var(--Pick-base-value-bottom-border-style) var(--Pick-base-value-left-border-style);
|
|
39107
39129
|
border-color: var(--Pick-base-value-top-border-color) var(--Pick-base-value-right-border-color) var(--Pick-base-value-bottom-border-color) var(--Pick-base-value-left-border-color);
|
|
39108
39130
|
border-radius: var(--Pick-base-top-left-border-radius) var(--Pick-base-top-right-border-radius) var(--Pick-base-bottom-right-border-radius) var(--Pick-base-bottom-left-border-radius);
|
|
39109
|
-
margin-right: var(--gap-xs);
|
|
39110
|
-
margin-bottom: var(--gap-xs);
|
|
39111
|
-
margin-top: var(--gap-xs);
|
|
39112
39131
|
max-width: 9.375rem;
|
|
39113
39132
|
overflow: hidden;
|
|
39114
39133
|
text-overflow: ellipsis;
|
|
@@ -39119,13 +39138,15 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
39119
39138
|
}
|
|
39120
39139
|
.cxd-Picker-overflow-wrapper .cxd-Picker-value.is-disabled {
|
|
39121
39140
|
pointer-events: none;
|
|
39141
|
+
}
|
|
39142
|
+
.cxd-Picker-overflow-wrapper .cxd-Picker-value.is-disabled .cxd-Picker-valueIcon {
|
|
39122
39143
|
opacity: var(--Button-onDisabled-opacity);
|
|
39123
39144
|
}
|
|
39124
39145
|
.cxd-Picker-overflow-wrapper .cxd-Picker-valueIcon {
|
|
39125
39146
|
color: var(--Pick-base-value-icon-color);
|
|
39126
39147
|
cursor: pointer;
|
|
39127
39148
|
border-right: 0.0625rem solid var(--Form-selectValue-borderColor);
|
|
39128
|
-
padding:
|
|
39149
|
+
padding: 0 5px;
|
|
39129
39150
|
}
|
|
39130
39151
|
.cxd-Picker-overflow-wrapper .cxd-Picker-valueIcon:hover {
|
|
39131
39152
|
background: var(--Pick-base-value-hover-icon-color);
|
|
@@ -41458,7 +41479,7 @@ td.rdtQuarter.rdtDisabled:hover > span {
|
|
|
41458
41479
|
.cxd-UserSelect-selectPopup {
|
|
41459
41480
|
width: 100vw;
|
|
41460
41481
|
height: 100vh;
|
|
41461
|
-
z-index: var(3000)1;
|
|
41482
|
+
z-index: calc(var(3000) + 1);
|
|
41462
41483
|
}
|
|
41463
41484
|
.cxd-UserSelect-searchBox {
|
|
41464
41485
|
height: 3.25rem;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare function vectorLength(v: number[]): number;
|
|
2
|
+
export declare function dotProduct(v1: number[], v2: number[]): number;
|
|
3
|
+
export declare function vectorAngle(v1: number[], v2: number[]): number;
|
|
4
|
+
export declare function computeSideLength(side: number, angle: number): number;
|
|
5
|
+
/**
|
|
6
|
+
* 传入起点、终点和距离,返回直线上距离起点距离为distance
|
|
7
|
+
*
|
|
8
|
+
* @param {[number, number]} [startX, startY]
|
|
9
|
+
* @param {[number, number]} [endX, endY]
|
|
10
|
+
* @param {number} distance
|
|
11
|
+
* @returns
|
|
12
|
+
* @memberof SvgPathGenerator
|
|
13
|
+
*/
|
|
14
|
+
export declare function radiusPoint([startX, startY]: number[], [endX, endY]: number[], distance: number): number[];
|
|
15
|
+
export declare function radiusStartEndPoint(v1: number[], v2: number[], radius: number): {
|
|
16
|
+
start: number[];
|
|
17
|
+
end: number[];
|
|
18
|
+
radius: number;
|
|
19
|
+
sweepFlag: number;
|
|
20
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* amis-ui v6.11.0-beta.2
|
|
3
|
+
* Copyright 2018-2024 fex
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
|
+
|
|
10
|
+
var tslib = require('tslib');
|
|
11
|
+
|
|
12
|
+
// 计算向量的模长
|
|
13
|
+
function vectorLength(v) {
|
|
14
|
+
return Math.sqrt(v.reduce(function (sum, cur) { return sum + Math.pow(cur, 2); }, 0));
|
|
15
|
+
}
|
|
16
|
+
// 计算向量的点积
|
|
17
|
+
function dotProduct(v1, v2) {
|
|
18
|
+
return v1.reduce(function (sum, cur, index) { return sum + cur * v2[index]; }, 0);
|
|
19
|
+
}
|
|
20
|
+
// 计算向量的夹角
|
|
21
|
+
function vectorAngle(v1, v2) {
|
|
22
|
+
return Math.acos(dotProduct(v1, v2) / (vectorLength(v1) * vectorLength(v2)));
|
|
23
|
+
}
|
|
24
|
+
// 通过直角边和夹角计算另一直角边长度
|
|
25
|
+
function computeSideLength(side, angle) {
|
|
26
|
+
return side / Math.tan(angle);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 传入起点、终点和距离,返回直线上距离起点距离为distance
|
|
30
|
+
*
|
|
31
|
+
* @param {[number, number]} [startX, startY]
|
|
32
|
+
* @param {[number, number]} [endX, endY]
|
|
33
|
+
* @param {number} distance
|
|
34
|
+
* @returns
|
|
35
|
+
* @memberof SvgPathGenerator
|
|
36
|
+
*/
|
|
37
|
+
function radiusPoint(_a, _b, distance) {
|
|
38
|
+
var _c = tslib.__read(_a, 2), startX = _c[0], startY = _c[1];
|
|
39
|
+
var _d = tslib.__read(_b, 2), endX = _d[0], endY = _d[1];
|
|
40
|
+
// 计算终点与起点的直线距离
|
|
41
|
+
var dx = endX - startX;
|
|
42
|
+
var dy = endY - startY;
|
|
43
|
+
var totalDistance = Math.sqrt(dx * dx + dy * dy);
|
|
44
|
+
// 如果距离大于总距离的一半,则取一半
|
|
45
|
+
if (distance > totalDistance / 2) {
|
|
46
|
+
distance = totalDistance / 2;
|
|
47
|
+
}
|
|
48
|
+
// 计算比例
|
|
49
|
+
var ratio = distance / totalDistance;
|
|
50
|
+
// 计算新点
|
|
51
|
+
var x = startX + dx * ratio;
|
|
52
|
+
var y = startY + dy * ratio;
|
|
53
|
+
return [x, y];
|
|
54
|
+
}
|
|
55
|
+
// 传入2个向量和圆角半径,返回圆角弧线的起始点坐标
|
|
56
|
+
function radiusStartEndPoint(v1, v2, radius) {
|
|
57
|
+
// 计算向量夹角
|
|
58
|
+
var angle = vectorAngle([v1[2] - v1[0], v1[3] - v1[1]], [v2[2] - v1[0], v2[3] - v1[1]]);
|
|
59
|
+
// 计算3点是顺时针还是逆时针
|
|
60
|
+
var sweepFlag = (v1[2] - v1[0]) * (v2[3] - v1[1]) - (v1[3] - v1[1]) * (v2[2] - v1[0]) < 0
|
|
61
|
+
? 1
|
|
62
|
+
: 0;
|
|
63
|
+
// 计算短边一半的长度
|
|
64
|
+
var maxLength = Math.min(vectorLength([v1[2] - v1[0], v1[3] - v1[1]]) / 2, vectorLength([v2[2] - v1[0], v2[3] - v1[1]]) / 2);
|
|
65
|
+
// 计算radius的最大值
|
|
66
|
+
var maxRadius = Math.min(radius, maxLength * Math.tan(angle / 2));
|
|
67
|
+
// 直角边的长度
|
|
68
|
+
var distance = computeSideLength(maxRadius, angle / 2);
|
|
69
|
+
var _a = tslib.__read(radiusPoint([v1[0], v1[1]], [v1[2], v1[3]], distance), 2), startX = _a[0], startY = _a[1];
|
|
70
|
+
var _b = tslib.__read(radiusPoint([v2[0], v2[1]], [v2[2], v2[3]], distance), 2), endX = _b[0], endY = _b[1];
|
|
71
|
+
return {
|
|
72
|
+
start: [startX, startY],
|
|
73
|
+
end: [endX, endY],
|
|
74
|
+
radius: maxRadius,
|
|
75
|
+
sweepFlag: sweepFlag
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
exports.computeSideLength = computeSideLength;
|
|
80
|
+
exports.dotProduct = dotProduct;
|
|
81
|
+
exports.radiusPoint = radiusPoint;
|
|
82
|
+
exports.radiusStartEndPoint = radiusStartEndPoint;
|
|
83
|
+
exports.vectorAngle = vectorAngle;
|
|
84
|
+
exports.vectorLength = vectorLength;
|
package/lib/withRemoteConfig.js
CHANGED
package/lib/withStore.js
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"main": "lib/index.js",
|
|
4
4
|
"module": "esm/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
|
-
"version": "6.11.0-beta.
|
|
6
|
+
"version": "6.11.0-beta.2",
|
|
7
7
|
"description": "",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "npm run clean-dist && cross-env NODE_ENV=production rollup -c ",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@rc-component/mini-decimal": "^1.0.1",
|
|
39
|
-
"amis-core": "^6.11.0-beta.
|
|
40
|
-
"amis-formula": "^6.11.0-beta.
|
|
39
|
+
"amis-core": "^6.11.0-beta.2",
|
|
40
|
+
"amis-formula": "^6.11.0-beta.2",
|
|
41
41
|
"animate.css": "4.1.1",
|
|
42
42
|
"classnames": "2.3.2",
|
|
43
43
|
"codemirror": "^5.63.0",
|