amis-rev-ui 6.13.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/LICENSE +201 -0
- package/esm/HTMLFilterContext.d.ts +3 -0
- package/esm/HTMLFilterContext.js +10 -0
- package/esm/components/404.js +35 -0
- package/esm/components/Alert.js +266 -0
- package/esm/components/Alert2.js +58 -0
- package/esm/components/AlphabetIndexer.d.ts +11 -0
- package/esm/components/AlphabetIndexer.js +48 -0
- package/esm/components/AnchorNav.js +153 -0
- package/esm/components/AnchorNavSection.d.ts +2 -0
- package/esm/components/AnchorNavSection.js +7 -0
- package/esm/components/ArrayInput.js +146 -0
- package/esm/components/AsideNav.js +133 -0
- package/esm/components/AssociatedSelection.js +107 -0
- package/esm/components/AutoFoldedList.js +124 -0
- package/esm/components/AutoSizer.d.ts +2 -0
- package/esm/components/AutoSizer.js +8 -0
- package/esm/components/Avatar.js +126 -0
- package/esm/components/Badge.d.ts +20 -0
- package/esm/components/Badge.js +154 -0
- package/esm/components/BaiduMapPicker.js +366 -0
- package/esm/components/BarCode.js +42 -0
- package/esm/components/Breadcrumb.js +160 -0
- package/esm/components/Button.js +64 -0
- package/esm/components/CalendarMobile.js +538 -0
- package/esm/components/Card.js +88 -0
- package/esm/components/Cascader.js +515 -0
- package/esm/components/ChainedDropdownSelection.js +104 -0
- package/esm/components/ChainedSelection.js +184 -0
- package/esm/components/Checkbox.js +87 -0
- package/esm/components/CityArea.js +190 -0
- package/esm/components/CityDB.d.ts +13 -0
- package/esm/components/CityDB.js +3942 -0
- package/esm/components/CodeMirror.d.ts +29 -0
- package/esm/components/CodeMirror.js +140 -0
- package/esm/components/Collapse.js +184 -0
- package/esm/components/CollapseGroup.js +117 -0
- package/esm/components/ColorPicker.js +259 -0
- package/esm/components/Combo.js +212 -0
- package/esm/components/ConditionBuilder.d.ts +2 -0
- package/esm/components/ConditionBuilder.js +7 -0
- package/esm/components/ConfirmBox.js +128 -0
- package/esm/components/ContextMenu.js +310 -0
- package/esm/components/DatePicker.js +716 -0
- package/esm/components/DateRangePicker.js +1385 -0
- package/esm/components/DiffEditor.d.ts +21 -0
- package/esm/components/DiffEditor.js +119 -0
- package/esm/components/DndContainer.js +25 -0
- package/esm/components/Drawer.js +272 -0
- package/esm/components/DropDownSelection.js +77 -0
- package/esm/components/DropdownContextMenus.js +93 -0
- package/esm/components/Editor.js +238 -0
- package/esm/components/Form.d.ts +31 -0
- package/esm/components/Form.js +84 -0
- package/esm/components/FormField.js +78 -0
- package/esm/components/FormulaPicker.d.ts +2 -0
- package/esm/components/FormulaPicker.js +7 -0
- package/esm/components/GaodeMapPicker.js +204 -0
- package/esm/components/GridNav.d.ts +53 -0
- package/esm/components/GridNav.js +125 -0
- package/esm/components/GridNavItem.d.ts +2 -0
- package/esm/components/GridNavItem.js +7 -0
- package/esm/components/GroupedSelection.js +138 -0
- package/esm/components/HeadCellDropDown.d.ts +2 -0
- package/esm/components/HeadCellDropDown.js +7 -0
- package/esm/components/HorizontalScroll.d.ts +74 -0
- package/esm/components/HorizontalScroll.js +271 -0
- package/esm/components/Html.js +55 -0
- package/esm/components/Icon.d.ts +2 -0
- package/esm/components/Icon.js +7 -0
- package/esm/components/ImageGallery.js +396 -0
- package/esm/components/Input.d.ts +18 -0
- package/esm/components/Input.js +75 -0
- package/esm/components/InputBox.js +99 -0
- package/esm/components/InputBoxWithSuggestion.js +70 -0
- package/esm/components/InputJSONSchema.d.ts +2 -0
- package/esm/components/InputJSONSchema.js +7 -0
- package/esm/components/InputTable.js +176 -0
- package/esm/components/JSONSchemaEditor.d.ts +2 -0
- package/esm/components/JSONSchemaEditor.js +7 -0
- package/esm/components/Layout.js +60 -0
- package/esm/components/Link.js +44 -0
- package/esm/components/ListGroup.js +31 -0
- package/esm/components/ListMenu.js +62 -0
- package/esm/components/LocationPicker.js +208 -0
- package/esm/components/Markdown.d.ts +25 -0
- package/esm/components/Markdown.js +70 -0
- package/esm/components/Menu.d.ts +2 -0
- package/esm/components/Menu.js +7 -0
- package/esm/components/MixedInput.js +88 -0
- package/esm/components/MobileDevTool.d.ts +12 -0
- package/esm/components/MobileDevTool.js +312 -0
- package/esm/components/Modal.js +261 -0
- package/esm/components/ModalManager.d.ts +16 -0
- package/esm/components/ModalManager.js +42 -0
- package/esm/components/MultilineText.js +90 -0
- package/esm/components/NumberInput.js +274 -0
- package/esm/components/OverflowTpl.js +100 -0
- package/esm/components/Pagination.js +377 -0
- package/esm/components/PdfViewer.js +83 -0
- package/esm/components/Picker.js +73 -0
- package/esm/components/PickerColumn.js +276 -0
- package/esm/components/PickerContainer.js +157 -0
- package/esm/components/PopOverContainer.d.ts +59 -0
- package/esm/components/PopOverContainer.js +148 -0
- package/esm/components/PopUp.js +85 -0
- package/esm/components/Progress.js +136 -0
- package/esm/components/PullRefresh.js +172 -0
- package/esm/components/Radios.js +129 -0
- package/esm/components/Range.js +516 -0
- package/esm/components/Rating.js +341 -0
- package/esm/components/ResultBox.js +195 -0
- package/esm/components/ResultList.js +253 -0
- package/esm/components/ResultTableList.js +152 -0
- package/esm/components/ResultTreeList.js +241 -0
- package/esm/components/RichText.d.ts +48 -0
- package/esm/components/RichText.js +271 -0
- package/esm/components/SearchBox.js +298 -0
- package/esm/components/Select.js +814 -0
- package/esm/components/SelectMobile.d.ts +38 -0
- package/esm/components/SelectMobile.js +369 -0
- package/esm/components/Selection.js +166 -0
- package/esm/components/Shape.js +429 -0
- package/esm/components/Signature.js +294 -0
- package/esm/components/Slider.js +140 -0
- package/esm/components/SparkLine.js +62 -0
- package/esm/components/Spinner.js +202 -0
- package/esm/components/Steps.js +76 -0
- package/esm/components/Switch.js +73 -0
- package/esm/components/Tab.d.ts +2 -0
- package/esm/components/Tab.js +7 -0
- package/esm/components/Table.d.ts +2 -0
- package/esm/components/Table.js +7 -0
- package/esm/components/TableSelection.js +169 -0
- package/esm/components/Tabs.js +607 -0
- package/esm/components/TabsTransfer.js +221 -0
- package/esm/components/TabsTransferPicker.js +81 -0
- package/esm/components/Tag.js +137 -0
- package/esm/components/Textarea.js +146 -0
- package/esm/components/Timeline.js +60 -0
- package/esm/components/TimelineItem.js +101 -0
- package/esm/components/Tinymce.d.ts +66 -0
- package/esm/components/Tinymce.js +634 -0
- package/esm/components/TitleBar.js +48 -0
- package/esm/components/Toast.js +247 -0
- package/esm/components/Tooltip.js +36 -0
- package/esm/components/TooltipWrapper.js +180 -0
- package/esm/components/Transfer.js +485 -0
- package/esm/components/TransferDropDown.js +98 -0
- package/esm/components/TransferPicker.js +98 -0
- package/esm/components/TransferSearch.js +100 -0
- package/esm/components/Tree.js +1256 -0
- package/esm/components/TreeSelection.js +201 -0
- package/esm/components/UserSelect.js +674 -0
- package/esm/components/UserTabSelect.js +227 -0
- package/esm/components/VerificationCode.js +172 -0
- package/esm/components/VirtualList.d.ts +2 -0
- package/esm/components/VirtualList.js +7 -0
- package/esm/components/WithRemoteConfig.d.ts +70 -0
- package/esm/components/WithRemoteConfig.js +301 -0
- package/esm/components/WithStore.d.ts +13 -0
- package/esm/components/WithStore.js +48 -0
- package/esm/components/calendar/Calendar.d.ts +83 -0
- package/esm/components/calendar/Calendar.js +529 -0
- package/esm/components/calendar/CalendarContainer.d.ts +10 -0
- package/esm/components/calendar/CalendarContainer.js +27 -0
- package/esm/components/calendar/DaysView.js +528 -0
- package/esm/components/calendar/MonthsView.js +175 -0
- package/esm/components/calendar/QuartersView.js +125 -0
- package/esm/components/calendar/TimeView.js +559 -0
- package/esm/components/calendar/YearsView.js +122 -0
- package/esm/components/condition-builder/Expression.js +121 -0
- package/esm/components/condition-builder/Field.js +32 -0
- package/esm/components/condition-builder/Func.js +75 -0
- package/esm/components/condition-builder/Group.js +196 -0
- package/esm/components/condition-builder/GroupOrItem.js +107 -0
- package/esm/components/condition-builder/InputSwitch.js +28 -0
- package/esm/components/condition-builder/Item.js +233 -0
- package/esm/components/condition-builder/Value.js +115 -0
- package/esm/components/condition-builder/config.d.ts +36 -0
- package/esm/components/condition-builder/config.js +120 -0
- package/esm/components/condition-builder/index.js +242 -0
- package/esm/components/condition-builder/types.d.ts +116 -0
- package/esm/components/formula/CodeEditor.js +99 -0
- package/esm/components/formula/Editor.js +446 -0
- package/esm/components/formula/FuncList.js +64 -0
- package/esm/components/formula/Input.js +141 -0
- package/esm/components/formula/Picker.js +454 -0
- package/esm/components/formula/VariableList.js +185 -0
- package/esm/components/formula/plugin.d.ts +51 -0
- package/esm/components/formula/plugin.js +445 -0
- package/esm/components/icons.d.ts +61 -0
- package/esm/components/icons.js +458 -0
- package/esm/components/index.d.ts +138 -0
- package/esm/components/json-schema/Array.d.ts +3 -0
- package/esm/components/json-schema/Array.js +129 -0
- package/esm/components/json-schema/Item.d.ts +5 -0
- package/esm/components/json-schema/Item.js +63 -0
- package/esm/components/json-schema/Object.d.ts +5 -0
- package/esm/components/json-schema/Object.js +272 -0
- package/esm/components/json-schema/index.js +29 -0
- package/esm/components/menu/MenuContext.d.ts +82 -0
- package/esm/components/menu/MenuContext.js +25 -0
- package/esm/components/menu/MenuItem.js +112 -0
- package/esm/components/menu/PanelMenu.js +68 -0
- package/esm/components/menu/SubMenu.js +137 -0
- package/esm/components/menu/index.js +368 -0
- package/esm/components/schema-editor/Array.d.ts +11 -0
- package/esm/components/schema-editor/Array.js +84 -0
- package/esm/components/schema-editor/Common.d.ts +61 -0
- package/esm/components/schema-editor/Common.js +162 -0
- package/esm/components/schema-editor/Item.d.ts +8 -0
- package/esm/components/schema-editor/Item.js +24 -0
- package/esm/components/schema-editor/Object.d.ts +51 -0
- package/esm/components/schema-editor/Object.js +294 -0
- package/esm/components/schema-editor/SchemaVariableList.js +74 -0
- package/esm/components/schema-editor/SchemaVariableListPicker.js +34 -0
- package/esm/components/schema-editor/index.js +122 -0
- package/esm/components/table/Cell.d.ts +36 -0
- package/esm/components/table/Cell.js +43 -0
- package/esm/components/table/ColGroup.d.ts +24 -0
- package/esm/components/table/ColGroup.js +77 -0
- package/esm/components/table/Head.d.ts +45 -0
- package/esm/components/table/Head.js +150 -0
- package/esm/components/table/HeadCellDropDown.js +54 -0
- package/esm/components/table/HeadCellFilter.js +130 -0
- package/esm/components/table/HeadCellSelect.js +51 -0
- package/esm/components/table/HeadCellSort.js +88 -0
- package/esm/components/table/ItemActionsWrapper.d.ts +10 -0
- package/esm/components/table/ItemActionsWrapper.js +29 -0
- package/esm/components/table/Row.d.ts +56 -0
- package/esm/components/table/Row.js +224 -0
- package/esm/components/table/SummaryRow.d.ts +28 -0
- package/esm/components/table/SummaryRow.js +73 -0
- package/esm/components/table/index.js +1095 -0
- package/esm/components/table/util.d.ts +25 -0
- package/esm/components/table/util.js +279 -0
- package/esm/components/virtual-list/AutoSizer.d.ts +19 -0
- package/esm/components/virtual-list/AutoSizer.js +48 -0
- package/esm/components/virtual-list/SizeAndPositionManager.d.ts +70 -0
- package/esm/components/virtual-list/SizeAndPositionManager.js +216 -0
- package/esm/components/virtual-list/constants.d.ts +34 -0
- package/esm/components/virtual-list/constants.js +45 -0
- package/esm/components/virtual-list/index.d.ts +98 -0
- package/esm/components/virtual-list/index.js +288 -0
- package/esm/components/withBadge.d.ts +2 -0
- package/esm/components/withBadge.js +7 -0
- package/esm/hooks/index.d.ts +8 -0
- package/esm/hooks/use-click-away.d.ts +12 -0
- package/esm/hooks/use-click-away.js +55 -0
- package/esm/hooks/use-on-screen.d.ts +2 -0
- package/esm/hooks/use-on-screen.js +28 -0
- package/esm/hooks/use-set-state.d.ts +2 -0
- package/esm/hooks/use-set-state.js +19 -0
- package/esm/hooks/use-sub-form.d.ts +4 -0
- package/esm/hooks/use-sub-form.js +39 -0
- package/esm/hooks/use-touch.d.ts +16 -0
- package/esm/hooks/use-touch.js +77 -0
- package/esm/hooks/use-update-effect.d.ts +3 -0
- package/esm/hooks/use-update-effect.js +21 -0
- package/esm/hooks/use-validation-resolver.d.ts +7 -0
- package/esm/hooks/use-validation-resolver.js +115 -0
- package/esm/icons/alert-danger.svg.js +22 -0
- package/esm/icons/alert-info.svg.js +22 -0
- package/esm/icons/alert-success.svg.js +22 -0
- package/esm/icons/alert-warning.svg.js +22 -0
- package/esm/icons/arrow-double-left.svg.js +24 -0
- package/esm/icons/arrow-double-right.svg.js +24 -0
- package/esm/icons/back.svg.js +21 -0
- package/esm/icons/calendar.svg.js +31 -0
- package/esm/icons/caret.svg.js +21 -0
- package/esm/icons/check.svg.js +21 -0
- package/esm/icons/clock.svg.js +29 -0
- package/esm/icons/close-small.svg.js +24 -0
- package/esm/icons/close.svg.js +21 -0
- package/esm/icons/cloud-upload.svg.js +22 -0
- package/esm/icons/column-filter.svg.js +22 -0
- package/esm/icons/columns.svg.js +21 -0
- package/esm/icons/compress-alt.svg.js +21 -0
- package/esm/icons/copy.svg.js +26 -0
- package/esm/icons/date.svg.js +26 -0
- package/esm/icons/department.svg.js +52 -0
- package/esm/icons/desk-empty.svg.js +73 -0
- package/esm/icons/dot.svg.js +36 -0
- package/esm/icons/down-arrow-bold.svg.js +22 -0
- package/esm/icons/down.svg.js +23 -0
- package/esm/icons/download.svg.js +24 -0
- package/esm/icons/drag-bar.svg.js +53 -0
- package/esm/icons/drag.svg.js +22 -0
- package/esm/icons/edit.svg.js +21 -0
- package/esm/icons/ellipsis-v.svg.js +21 -0
- package/esm/icons/enter.svg.js +20 -0
- package/esm/icons/exchange.svg.js +21 -0
- package/esm/icons/expand-alt.svg.js +21 -0
- package/esm/icons/fail.svg.js +31 -0
- package/esm/icons/file.svg.js +22 -0
- package/esm/icons/filter.svg.js +21 -0
- package/esm/icons/folder.svg.js +24 -0
- package/esm/icons/fullscreen.svg.js +21 -0
- package/esm/icons/function.svg.js +21 -0
- package/esm/icons/home.svg.js +21 -0
- package/esm/icons/if.svg.js +21 -0
- package/esm/icons/image.svg.js +20 -0
- package/esm/icons/info-circle.svg.js +21 -0
- package/esm/icons/info.svg.js +27 -0
- package/esm/icons/input-clear.svg.js +20 -0
- package/esm/icons/invisible.svg.js +22 -0
- package/esm/icons/left-arrow.svg.js +23 -0
- package/esm/icons/loading-outline.svg.js +21 -0
- package/esm/icons/location.svg.js +20 -0
- package/esm/icons/menu.svg.js +20 -0
- package/esm/icons/minus.svg.js +21 -0
- package/esm/icons/move.svg.js +22 -0
- package/esm/icons/mute.svg.js +21 -0
- package/esm/icons/new-edit.svg.js +22 -0
- package/esm/icons/pause.svg.js +21 -0
- package/esm/icons/pencil.svg.js +21 -0
- package/esm/icons/play.svg.js +20 -0
- package/esm/icons/plus-cicle.svg.js +20 -0
- package/esm/icons/plus-fine.svg.js +21 -0
- package/esm/icons/plus.svg.js +21 -0
- package/esm/icons/post.svg.js +48 -0
- package/esm/icons/question-mark.svg.js +26 -0
- package/esm/icons/question.svg.js +21 -0
- package/esm/icons/question2.svg.js +34 -0
- package/esm/icons/redo.svg.js +21 -0
- package/esm/icons/refresh.svg.js +21 -0
- package/esm/icons/reload.svg.js +21 -0
- package/esm/icons/remove.svg.js +21 -0
- package/esm/icons/retry.svg.js +24 -0
- package/esm/icons/right-arrow-bold.svg.js +21 -0
- package/esm/icons/right-arrow.svg.js +23 -0
- package/esm/icons/right-double-arrow.svg.js +22 -0
- package/esm/icons/role.svg.js +43 -0
- package/esm/icons/rotate-left.svg.js +22 -0
- package/esm/icons/rotate-right.svg.js +22 -0
- package/esm/icons/rotate-screen.svg.js +21 -0
- package/esm/icons/scale-origin.svg.js +24 -0
- package/esm/icons/schedule.svg.js +24 -0
- package/esm/icons/search.svg.js +21 -0
- package/esm/icons/setting.svg.js +21 -0
- package/esm/icons/slider-handle-icon.svg.js +22 -0
- package/esm/icons/sort-asc.svg.js +21 -0
- package/esm/icons/sort-default.svg.js +21 -0
- package/esm/icons/sort-desc.svg.js +21 -0
- package/esm/icons/star.svg.js +21 -0
- package/esm/icons/status-close.svg.js +23 -0
- package/esm/icons/steps-finsh.svg.js +22 -0
- package/esm/icons/sub-plus.svg.js +20 -0
- package/esm/icons/success.svg.js +29 -0
- package/esm/icons/transparent.svg.js +38 -0
- package/esm/icons/trash.svg.js +22 -0
- package/esm/icons/tree-down.svg.js +21 -0
- package/esm/icons/undo-normal.svg.js +25 -0
- package/esm/icons/undo.svg.js +21 -0
- package/esm/icons/unfullscreen.svg.js +21 -0
- package/esm/icons/upload.svg.js +21 -0
- package/esm/icons/user-remove.svg.js +33 -0
- package/esm/icons/view.svg.js +22 -0
- package/esm/icons/volume.svg.js +24 -0
- package/esm/icons/warning-mark.svg.js +22 -0
- package/esm/icons/warning.svg.js +21 -0
- package/esm/icons/window-restore.svg.js +21 -0
- package/esm/icons/zoom-in.svg.js +21 -0
- package/esm/icons/zoom-out.svg.js +21 -0
- package/esm/index.d.ts +16 -0
- package/esm/index.js +157 -0
- package/esm/locale/de-DE.d.ts +1 -0
- package/esm/locale/de-DE.js +423 -0
- package/esm/locale/en-US.d.ts +1 -0
- package/esm/locale/en-US.js +429 -0
- package/esm/locale/zh-CN.d.ts +1 -0
- package/esm/locale/zh-CN.js +438 -0
- package/esm/themes/ang.d.ts +3 -0
- package/esm/themes/ang.js +15 -0
- package/esm/themes/antd.d.ts +1 -0
- package/esm/themes/antd.js +42 -0
- package/esm/themes/cxd.d.ts +3 -0
- package/esm/themes/cxd.js +455 -0
- package/esm/themes/dark.d.ts +3 -0
- package/esm/themes/dark.js +23 -0
- package/esm/themes/default.d.ts +4 -0
- package/esm/utils/index.d.ts +2 -0
- package/esm/utils/smoothSignature.d.ts +86 -0
- package/esm/utils/vectorComputed.d.ts +20 -0
- package/esm/utils/vectorComputed.js +75 -0
- package/esm/withRemoteConfig.d.ts +2 -0
- package/esm/withRemoteConfig.js +7 -0
- package/esm/withStore.d.ts +2 -0
- package/esm/withStore.js +7 -0
- package/lib/HTMLFilterContext.d.ts +3 -0
- package/lib/components/AlphabetIndexer.d.ts +11 -0
- package/lib/components/AnchorNavSection.d.ts +2 -0
- package/lib/components/AutoSizer.d.ts +2 -0
- package/lib/components/Badge.d.ts +20 -0
- package/lib/components/BarCode.js +44 -0
- package/lib/components/CityDB.d.ts +13 -0
- package/lib/components/CityDB.js +3945 -0
- package/lib/components/CodeMirror.d.ts +29 -0
- package/lib/components/ColorPicker.js +267 -0
- package/lib/components/ConditionBuilder.d.ts +2 -0
- package/lib/components/DiffEditor.d.ts +21 -0
- package/lib/components/Form.d.ts +31 -0
- package/lib/components/FormulaPicker.d.ts +2 -0
- package/lib/components/GridNav.d.ts +53 -0
- package/lib/components/GridNavItem.d.ts +2 -0
- package/lib/components/HeadCellDropDown.d.ts +2 -0
- package/lib/components/HorizontalScroll.d.ts +74 -0
- package/lib/components/Icon.d.ts +2 -0
- package/lib/components/Input.d.ts +18 -0
- package/lib/components/InputJSONSchema.d.ts +2 -0
- package/lib/components/JSONSchemaEditor.d.ts +2 -0
- package/lib/components/Markdown.d.ts +25 -0
- package/lib/components/Markdown.js +76 -0
- package/lib/components/Menu.d.ts +2 -0
- package/lib/components/MobileDevTool.d.ts +12 -0
- package/lib/components/ModalManager.d.ts +16 -0
- package/lib/components/PdfViewer.js +83 -0
- package/lib/components/PopOverContainer.d.ts +59 -0
- package/lib/components/RichText.d.ts +48 -0
- package/lib/components/RichText.js +275 -0
- package/lib/components/SelectMobile.d.ts +38 -0
- package/lib/components/Tab.d.ts +2 -0
- package/lib/components/Table.d.ts +2 -0
- package/lib/components/Tinymce.d.ts +66 -0
- package/lib/components/Tinymce.js +641 -0
- package/lib/components/VirtualList.d.ts +2 -0
- package/lib/components/WithRemoteConfig.d.ts +70 -0
- package/lib/components/WithStore.d.ts +13 -0
- package/lib/components/calendar/Calendar.d.ts +83 -0
- package/lib/components/calendar/CalendarContainer.d.ts +10 -0
- package/lib/components/condition-builder/config.d.ts +36 -0
- package/lib/components/condition-builder/types.d.ts +116 -0
- package/lib/components/formula/plugin.d.ts +51 -0
- package/lib/components/icons.d.ts +61 -0
- package/lib/components/index.d.ts +138 -0
- package/lib/components/json-schema/Array.d.ts +3 -0
- package/lib/components/json-schema/Item.d.ts +5 -0
- package/lib/components/json-schema/Object.d.ts +5 -0
- package/lib/components/menu/MenuContext.d.ts +82 -0
- package/lib/components/schema-editor/Array.d.ts +11 -0
- package/lib/components/schema-editor/Common.d.ts +61 -0
- package/lib/components/schema-editor/Item.d.ts +8 -0
- package/lib/components/schema-editor/Object.d.ts +51 -0
- package/lib/components/table/Cell.d.ts +36 -0
- package/lib/components/table/ColGroup.d.ts +24 -0
- package/lib/components/table/Head.d.ts +45 -0
- package/lib/components/table/ItemActionsWrapper.d.ts +10 -0
- package/lib/components/table/Row.d.ts +56 -0
- package/lib/components/table/SummaryRow.d.ts +28 -0
- package/lib/components/table/util.d.ts +25 -0
- package/lib/components/virtual-list/AutoSizer.d.ts +19 -0
- package/lib/components/virtual-list/SizeAndPositionManager.d.ts +70 -0
- package/lib/components/virtual-list/constants.d.ts +34 -0
- package/lib/components/virtual-list/index.d.ts +98 -0
- package/lib/components/withBadge.d.ts +2 -0
- package/lib/helper.css +47762 -0
- package/lib/hooks/index.d.ts +8 -0
- package/lib/hooks/use-click-away.d.ts +12 -0
- package/lib/hooks/use-on-screen.d.ts +2 -0
- package/lib/hooks/use-set-state.d.ts +2 -0
- package/lib/hooks/use-sub-form.d.ts +4 -0
- package/lib/hooks/use-touch.d.ts +16 -0
- package/lib/hooks/use-update-effect.d.ts +3 -0
- package/lib/hooks/use-validation-resolver.d.ts +7 -0
- package/lib/index.d.ts +16 -0
- package/lib/index.js +28 -0
- package/lib/locale/de-DE.d.ts +1 -0
- package/lib/locale/en-US.d.ts +1 -0
- package/lib/locale/zh-CN.d.ts +1 -0
- package/lib/scss/helper.scss.js +12 -0
- package/lib/scss/themes/ang.scss.js +12 -0
- package/lib/scss/themes/antd.scss.js +12 -0
- package/lib/scss/themes/cxd.scss.js +12 -0
- package/lib/scss/themes/dark.scss.js +12 -0
- package/lib/scss/themes/default.scss.js +12 -0
- package/lib/themes/ang.css +45895 -0
- package/lib/themes/ang.d.ts +3 -0
- package/lib/themes/antd.css +45882 -0
- package/lib/themes/antd.d.ts +1 -0
- package/lib/themes/cxd.css +45871 -0
- package/lib/themes/cxd.d.ts +3 -0
- package/lib/themes/dark.css +45902 -0
- package/lib/themes/dark.d.ts +3 -0
- package/lib/themes/default.css +45871 -0
- package/lib/themes/default.d.ts +4 -0
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/smoothSignature.d.ts +86 -0
- package/lib/utils/vectorComputed.d.ts +20 -0
- package/lib/withRemoteConfig.d.ts +2 -0
- package/lib/withStore.d.ts +2 -0
- package/package.json +158 -0
- package/scss/README.md +9 -0
- package/scss/_components.scss +4346 -0
- package/scss/_functions.scss +137 -0
- package/scss/_mixins.scss +805 -0
- package/scss/_properties.scss +898 -0
- package/scss/_thirds.scss +12 -0
- package/scss/_utilities.scss +1757 -0
- package/scss/_variables.scss +439 -0
- package/scss/base/_animate.scss +84 -0
- package/scss/base/_common.scss +19 -0
- package/scss/base/_normalize.scss +376 -0
- package/scss/base/_reset.scss +18 -0
- package/scss/base/_typography.scss +79 -0
- package/scss/components/_alert.scss +123 -0
- package/scss/components/_anchor-nav.scss +158 -0
- package/scss/components/_app.scss +46 -0
- package/scss/components/_array-input.scss +107 -0
- package/scss/components/_audio.scss +146 -0
- package/scss/components/_auto-folder.scss +40 -0
- package/scss/components/_avatar.scss +55 -0
- package/scss/components/_badge.scss +145 -0
- package/scss/components/_barcode.scss +6 -0
- package/scss/components/_breadcrumb.scss +110 -0
- package/scss/components/_button-group.scss +165 -0
- package/scss/components/_button.scss +871 -0
- package/scss/components/_calendar.scss +442 -0
- package/scss/components/_card.scss +389 -0
- package/scss/components/_card2.scss +28 -0
- package/scss/components/_cards.scss +221 -0
- package/scss/components/_carousel.scss +292 -0
- package/scss/components/_cascader.scss +157 -0
- package/scss/components/_chart.scss +22 -0
- package/scss/components/_city-area.scss +37 -0
- package/scss/components/_code.scss +10 -0
- package/scss/components/_collapse-group.scss +83 -0
- package/scss/components/_collapse.scss +245 -0
- package/scss/components/_color.scss +17 -0
- package/scss/components/_column-toggler.scss +261 -0
- package/scss/components/_condition-builder.scss +521 -0
- package/scss/components/_context-menu.scss +204 -0
- package/scss/components/_copyable.scss +10 -0
- package/scss/components/_crud.scss +195 -0
- package/scss/components/_crud2.scss +345 -0
- package/scss/components/_debug.scss +259 -0
- package/scss/components/_divider.scss +81 -0
- package/scss/components/_drawer.scss +393 -0
- package/scss/components/_dropdown-context-menus.scss +27 -0
- package/scss/components/_dropdown.scss +159 -0
- package/scss/components/_each.scss +7 -0
- package/scss/components/_formula.scss +723 -0
- package/scss/components/_grid-nav.scss +128 -0
- package/scss/components/_horizontal-scroll.scss +51 -0
- package/scss/components/_icon.scss +4 -0
- package/scss/components/_image-gallery.scss +331 -0
- package/scss/components/_images.scss +650 -0
- package/scss/components/_input-box.scss +111 -0
- package/scss/components/_json-schema-editor.scss +149 -0
- package/scss/components/_json-schema.scss +166 -0
- package/scss/components/_json.scss +7 -0
- package/scss/components/_link.scss +22 -0
- package/scss/components/_list-menu.scss +114 -0
- package/scss/components/_list.scss +313 -0
- package/scss/components/_log.scss +169 -0
- package/scss/components/_mapping.scss +6 -0
- package/scss/components/_markdown.scss +266 -0
- package/scss/components/_menu.scss +795 -0
- package/scss/components/_mobile-dev-tool.scss +175 -0
- package/scss/components/_modal.scss +282 -0
- package/scss/components/_multiline-text.scss +20 -0
- package/scss/components/_nav.scss +45 -0
- package/scss/components/_overflow-tpl.scss +5 -0
- package/scss/components/_page.scss +198 -0
- package/scss/components/_pagination.scss +403 -0
- package/scss/components/_panel.scss +263 -0
- package/scss/components/_pdf_viewer.scss +47 -0
- package/scss/components/_picker-columns.scss +140 -0
- package/scss/components/_popover.scss +54 -0
- package/scss/components/_popoverable.scss +100 -0
- package/scss/components/_popup.scss +171 -0
- package/scss/components/_portlet.scss +51 -0
- package/scss/components/_print.scss +13 -0
- package/scss/components/_progress.scss +165 -0
- package/scss/components/_property.scss +47 -0
- package/scss/components/_pull-refresh.scss +30 -0
- package/scss/components/_quick-edit.scss +53 -0
- package/scss/components/_remark.scss +58 -0
- package/scss/components/_result-box.scss +380 -0
- package/scss/components/_search-box.scss +267 -0
- package/scss/components/_service.scss +3 -0
- package/scss/components/_shape.scss +19 -0
- package/scss/components/_signature.scss +98 -0
- package/scss/components/_slider.scss +27 -0
- package/scss/components/_sparkline.scss +18 -0
- package/scss/components/_spinner.scss +214 -0
- package/scss/components/_status.scss +118 -0
- package/scss/components/_steps.scss +481 -0
- package/scss/components/_table.scss +1234 -0
- package/scss/components/_table2.scss +1066 -0
- package/scss/components/_tabs.scss +1410 -0
- package/scss/components/_tag.scss +191 -0
- package/scss/components/_timeline.scss +572 -0
- package/scss/components/_toast.scss +342 -0
- package/scss/components/_tooltip.scss +340 -0
- package/scss/components/_tpl.scss +51 -0
- package/scss/components/_verificationCode.scss +33 -0
- package/scss/components/_video.scss +38 -0
- package/scss/components/_wizard.scss +287 -0
- package/scss/components/_wrapper.scss +26 -0
- package/scss/components/form/_chained-select.scss +10 -0
- package/scss/components/form/_checks.scss +433 -0
- package/scss/components/form/_city.scss +33 -0
- package/scss/components/form/_color.scss +148 -0
- package/scss/components/form/_combo.scss +360 -0
- package/scss/components/form/_date-range.scss +332 -0
- package/scss/components/form/_date.scss +807 -0
- package/scss/components/form/_editor.scss +139 -0
- package/scss/components/form/_excel.scss +150 -0
- package/scss/components/form/_fieldset.scss +202 -0
- package/scss/components/form/_file.scss +308 -0
- package/scss/components/form/_form.scss +936 -0
- package/scss/components/form/_group.scss +116 -0
- package/scss/components/form/_icon-picker.scss +113 -0
- package/scss/components/form/_icon-select.scss +245 -0
- package/scss/components/form/_image.scss +359 -0
- package/scss/components/form/_input-group.scss +213 -0
- package/scss/components/form/_input-table.scss +17 -0
- package/scss/components/form/_list.scss +225 -0
- package/scss/components/form/_location.scss +210 -0
- package/scss/components/form/_matrix.scss +7 -0
- package/scss/components/form/_nested-select.scss +149 -0
- package/scss/components/form/_number.scss +633 -0
- package/scss/components/form/_picker.scss +237 -0
- package/scss/components/form/_qr-code.scss +4 -0
- package/scss/components/form/_range.scss +438 -0
- package/scss/components/form/_rating.scss +94 -0
- package/scss/components/form/_repeat.scss +40 -0
- package/scss/components/form/_result-list.scss +98 -0
- package/scss/components/form/_rich-text.scss +163 -0
- package/scss/components/form/_select.scss +712 -0
- package/scss/components/form/_selection.scss +485 -0
- package/scss/components/form/_sub-form.scss +118 -0
- package/scss/components/form/_switch.scss +228 -0
- package/scss/components/form/_tag.scss +146 -0
- package/scss/components/form/_text.scss +508 -0
- package/scss/components/form/_textarea.scss +78 -0
- package/scss/components/form/_tinymce.scss +6 -0
- package/scss/components/form/_transfer.scss +624 -0
- package/scss/components/form/_tree-select.scss +47 -0
- package/scss/components/form/_tree.scss +458 -0
- package/scss/components/form/_user-select.scss +643 -0
- package/scss/components/react-datetime.scss +267 -0
- package/scss/helper/background/_background-color.md +131 -0
- package/scss/helper/background/_background-color.scss +214 -0
- package/scss/helper/border/_border-color.md +109 -0
- package/scss/helper/border/_border-color.scss +178 -0
- package/scss/helper/border/_border-radius.md +86 -0
- package/scss/helper/border/_border-radius.scss +152 -0
- package/scss/helper/border/_border-style.md +11 -0
- package/scss/helper/border/_border-style.scss +40 -0
- package/scss/helper/border/_border-width.md +31 -0
- package/scss/helper/border/_border-width.scss +72 -0
- package/scss/helper/box-alignment/_align-content.md +12 -0
- package/scss/helper/box-alignment/_align-content.scss +44 -0
- package/scss/helper/box-alignment/_align-items.md +11 -0
- package/scss/helper/box-alignment/_align-items.scss +41 -0
- package/scss/helper/box-alignment/_align-self.md +11 -0
- package/scss/helper/box-alignment/_align-self.scss +40 -0
- package/scss/helper/box-alignment/_justify-content.md +12 -0
- package/scss/helper/box-alignment/_justify-content.scss +44 -0
- package/scss/helper/box-alignment/_justify-items.md +11 -0
- package/scss/helper/box-alignment/_justify-items.scss +40 -0
- package/scss/helper/box-alignment/_justify-self.md +11 -0
- package/scss/helper/box-alignment/_justify-self.scss +40 -0
- package/scss/helper/box-alignment/_place-content.md +13 -0
- package/scss/helper/box-alignment/_place-content.scss +48 -0
- package/scss/helper/box-alignment/_place-items.md +11 -0
- package/scss/helper/box-alignment/_place-items.scss +40 -0
- package/scss/helper/box-alignment/_place-self.md +11 -0
- package/scss/helper/box-alignment/_place-self.scss +40 -0
- package/scss/helper/effect/_box-shadow.md +16 -0
- package/scss/helper/effect/_box-shadow.scss +74 -0
- package/scss/helper/effect/_opacity.md +21 -0
- package/scss/helper/effect/_opacity.scss +66 -0
- package/scss/helper/flex/_direction.md +10 -0
- package/scss/helper/flex/_direction.scss +41 -0
- package/scss/helper/flex/_flex.md +10 -0
- package/scss/helper/flex/_flex.scss +38 -0
- package/scss/helper/flex/_grow.md +8 -0
- package/scss/helper/flex/_grow.scss +28 -0
- package/scss/helper/flex/_order.md +20 -0
- package/scss/helper/flex/_order.scss +56 -0
- package/scss/helper/flex/_shrink.md +8 -0
- package/scss/helper/flex/_shrink.scss +27 -0
- package/scss/helper/flex/_wrap.md +9 -0
- package/scss/helper/flex/_wrap.scss +36 -0
- package/scss/helper/grid/_auto-columns.md +10 -0
- package/scss/helper/grid/_auto-columns.scss +38 -0
- package/scss/helper/grid/_auto-flow.md +10 -0
- package/scss/helper/grid/_auto-flow.scss +38 -0
- package/scss/helper/grid/_auto-rows.md +10 -0
- package/scss/helper/grid/_auto-rows.scss +38 -0
- package/scss/helper/grid/_column-start-end.md +48 -0
- package/scss/helper/grid/_column-start-end.scss +201 -0
- package/scss/helper/grid/_columns.md +19 -0
- package/scss/helper/grid/_columns.scss +74 -0
- package/scss/helper/grid/_gap.md +117 -0
- package/scss/helper/grid/_gap.scss +154 -0
- package/scss/helper/grid/_row-start-end.md +48 -0
- package/scss/helper/grid/_row-start-end.scss +201 -0
- package/scss/helper/grid/_rows.md +13 -0
- package/scss/helper/grid/_rows.scss +50 -0
- package/scss/helper/layout/_box-sizing.md +35 -0
- package/scss/helper/layout/_box-sizing.scss +51 -0
- package/scss/helper/layout/_clear.md +27 -0
- package/scss/helper/layout/_clear.scss +56 -0
- package/scss/helper/layout/_display.md +41 -0
- package/scss/helper/layout/_display.scss +82 -0
- package/scss/helper/layout/_float.md +47 -0
- package/scss/helper/layout/_float.scss +71 -0
- package/scss/helper/layout/_overflow.md +34 -0
- package/scss/helper/layout/_overflow.scss +85 -0
- package/scss/helper/layout/_position.md +27 -0
- package/scss/helper/layout/_position.scss +55 -0
- package/scss/helper/layout/_top-right-bottom-left.md +150 -0
- package/scss/helper/layout/_top-right-bottom-left.scss +292 -0
- package/scss/helper/layout/_visibility.md +21 -0
- package/scss/helper/layout/_visibility.scss +42 -0
- package/scss/helper/layout/_z-index.md +37 -0
- package/scss/helper/layout/_z-index.scss +67 -0
- package/scss/helper/sizing/_height.md +103 -0
- package/scss/helper/sizing/_height.scss +161 -0
- package/scss/helper/sizing/_width.md +109 -0
- package/scss/helper/sizing/_width.scss +174 -0
- package/scss/helper/spacing/_margin.md +527 -0
- package/scss/helper/spacing/_margin.scss +821 -0
- package/scss/helper/spacing/_padding.md +265 -0
- package/scss/helper/spacing/_padding.scss +394 -0
- package/scss/helper/spacing/_space-between.md +155 -0
- package/scss/helper/spacing/_space-between.scss +224 -0
- package/scss/helper/typography/_font-family.md +9 -0
- package/scss/helper/typography/_font-family.scss +28 -0
- package/scss/helper/typography/_font-size.md +19 -0
- package/scss/helper/typography/_font-size.scss +40 -0
- package/scss/helper/typography/_font-style.md +8 -0
- package/scss/helper/typography/_font-style.scss +31 -0
- package/scss/helper/typography/_font-weight.md +15 -0
- package/scss/helper/typography/_font-weight.scss +49 -0
- package/scss/helper/typography/_letter-spacing.md +12 -0
- package/scss/helper/typography/_letter-spacing.scss +43 -0
- package/scss/helper/typography/_line-height.md +20 -0
- package/scss/helper/typography/_line-height.scss +59 -0
- package/scss/helper/typography/_list-style-type.md +11 -0
- package/scss/helper/typography/_list-style-type.scss +43 -0
- package/scss/helper/typography/_text-align.md +10 -0
- package/scss/helper/typography/_text-align.scss +34 -0
- package/scss/helper/typography/_text-color.md +110 -0
- package/scss/helper/typography/_text-color.scss +184 -0
- package/scss/helper/typography/_text-decoration.md +9 -0
- package/scss/helper/typography/_text-decoration.scss +34 -0
- package/scss/helper/typography/_text-overflow.md +9 -0
- package/scss/helper/typography/_text-overflow.scss +40 -0
- package/scss/helper/typography/_text-transform.md +10 -0
- package/scss/helper/typography/_text-transform.scss +40 -0
- package/scss/helper/typography/_vertical-align.md +12 -0
- package/scss/helper/typography/_vertical-align.scss +44 -0
- package/scss/helper/typography/_whitespace.md +11 -0
- package/scss/helper/typography/_whitespace.scss +42 -0
- package/scss/helper/typography/_word-break.md +9 -0
- package/scss/helper/typography/_word-break.scss +36 -0
- package/scss/helper.scss +72 -0
- package/scss/layout/_aside.scss +361 -0
- package/scss/layout/_grid.scss +173 -0
- package/scss/layout/_hbox.scss +127 -0
- package/scss/layout/_header.scss +0 -0
- package/scss/layout/_layout.scss +492 -0
- package/scss/layout/_vbox.scss +38 -0
- package/scss/themes/_ang-variables.scss +224 -0
- package/scss/themes/_antd-variables.scss +238 -0
- package/scss/themes/_common.scss +157 -0
- package/scss/themes/_cxd-variables.scss +222 -0
- package/scss/themes/_dark-variables.scss +229 -0
- package/scss/themes/ang-ie11.scss +1 -0
- package/scss/themes/ang.scss +27 -0
- package/scss/themes/antd-ie11.scss +1 -0
- package/scss/themes/antd.scss +5 -0
- package/scss/themes/cxd-ie11.scss +1 -0
- package/scss/themes/cxd.scss +5 -0
- package/scss/themes/dark-ie11.scss +1 -0
- package/scss/themes/dark.scss +34 -0
- package/scss/themes/default.scss +2 -0
- package/scss/themes/extract-antd-color.py +27 -0
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* amis-rev-ui v6.13.0
|
|
3
|
+
* Copyright 2018-2026 fex
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { __assign, __read } from 'tslib';
|
|
7
|
+
import React__default, { useMemo, createElement, useEffect } from 'react';
|
|
8
|
+
import cx from 'classnames';
|
|
9
|
+
import SvgClose from '../icons/close.svg.js';
|
|
10
|
+
export { default as CloseIcon } from '../icons/close.svg.js';
|
|
11
|
+
import SvgCloseSmall from '../icons/close-small.svg.js';
|
|
12
|
+
import SvgStatusClose from '../icons/status-close.svg.js';
|
|
13
|
+
import SvgUndo from '../icons/undo.svg.js';
|
|
14
|
+
export { default as UnDoIcon } from '../icons/undo.svg.js';
|
|
15
|
+
import SvgUndoNormal from '../icons/undo-normal.svg.js';
|
|
16
|
+
import SvgRedo from '../icons/redo.svg.js';
|
|
17
|
+
export { default as ReDoIcon } from '../icons/redo.svg.js';
|
|
18
|
+
import SvgEnter from '../icons/enter.svg.js';
|
|
19
|
+
export { default as EnterIcon } from '../icons/enter.svg.js';
|
|
20
|
+
import SvgVolume from '../icons/volume.svg.js';
|
|
21
|
+
export { default as VolumeIcon } from '../icons/volume.svg.js';
|
|
22
|
+
import SvgMute from '../icons/mute.svg.js';
|
|
23
|
+
export { default as MuteIcon } from '../icons/mute.svg.js';
|
|
24
|
+
import SvgPlay from '../icons/play.svg.js';
|
|
25
|
+
export { default as PlayIcon } from '../icons/play.svg.js';
|
|
26
|
+
import SvgPause from '../icons/pause.svg.js';
|
|
27
|
+
export { default as PauseIcon } from '../icons/pause.svg.js';
|
|
28
|
+
import SvgLeftArrow from '../icons/left-arrow.svg.js';
|
|
29
|
+
export { default as LeftArrowIcon } from '../icons/left-arrow.svg.js';
|
|
30
|
+
import SvgRightArrow from '../icons/right-arrow.svg.js';
|
|
31
|
+
export { default as RightArrowIcon } from '../icons/right-arrow.svg.js';
|
|
32
|
+
import SvgArrowDoubleLeft from '../icons/arrow-double-left.svg.js';
|
|
33
|
+
import SvgArrowDoubleRight from '../icons/arrow-double-right.svg.js';
|
|
34
|
+
import SvgCheck from '../icons/check.svg.js';
|
|
35
|
+
export { default as CheckIcon } from '../icons/check.svg.js';
|
|
36
|
+
import SvgPlus from '../icons/plus.svg.js';
|
|
37
|
+
export { default as PlusIcon } from '../icons/plus.svg.js';
|
|
38
|
+
import SvgSubPlus from '../icons/sub-plus.svg.js';
|
|
39
|
+
import SvgMinus from '../icons/minus.svg.js';
|
|
40
|
+
export { default as MinusIcon } from '../icons/minus.svg.js';
|
|
41
|
+
import SvgPencil from '../icons/pencil.svg.js';
|
|
42
|
+
export { default as PencilIcon } from '../icons/pencil.svg.js';
|
|
43
|
+
import SvgView from '../icons/view.svg.js';
|
|
44
|
+
import SvgRemove from '../icons/remove.svg.js';
|
|
45
|
+
import SvgRetry from '../icons/retry.svg.js';
|
|
46
|
+
import SvgUpload from '../icons/upload.svg.js';
|
|
47
|
+
import SvgDownload from '../icons/download.svg.js';
|
|
48
|
+
import SvgFile from '../icons/file.svg.js';
|
|
49
|
+
import SvgSuccess from '../icons/success.svg.js';
|
|
50
|
+
import SvgFail from '../icons/fail.svg.js';
|
|
51
|
+
import SvgSearch from '../icons/search.svg.js';
|
|
52
|
+
import SvgBack from '../icons/back.svg.js';
|
|
53
|
+
import SvgMove from '../icons/move.svg.js';
|
|
54
|
+
import SvgInfo from '../icons/info.svg.js';
|
|
55
|
+
import SvgLocation from '../icons/location.svg.js';
|
|
56
|
+
import SvgDragBar from '../icons/drag-bar.svg.js';
|
|
57
|
+
import SvgReload from '../icons/reload.svg.js';
|
|
58
|
+
export { default as ReloadIcon } from '../icons/reload.svg.js';
|
|
59
|
+
import SvgExchange from '../icons/exchange.svg.js';
|
|
60
|
+
import SvgColumns from '../icons/columns.svg.js';
|
|
61
|
+
import SvgCalendar from '../icons/calendar.svg.js';
|
|
62
|
+
import SvgClock from '../icons/clock.svg.js';
|
|
63
|
+
import SvgTreeDown from '../icons/tree-down.svg.js';
|
|
64
|
+
import SvgCloudUpload from '../icons/cloud-upload.svg.js';
|
|
65
|
+
import SvgImage from '../icons/image.svg.js';
|
|
66
|
+
import SvgRefresh from '../icons/refresh.svg.js';
|
|
67
|
+
import SvgDrag from '../icons/drag.svg.js';
|
|
68
|
+
import SvgEdit from '../icons/edit.svg.js';
|
|
69
|
+
import SvgDeskEmpty from '../icons/desk-empty.svg.js';
|
|
70
|
+
import SvgFullscreen from '../icons/fullscreen.svg.js';
|
|
71
|
+
import SvgUnfullscreen from '../icons/unfullscreen.svg.js';
|
|
72
|
+
import SvgCopy from '../icons/copy.svg.js';
|
|
73
|
+
import SvgFilter from '../icons/filter.svg.js';
|
|
74
|
+
import SvgCaret from '../icons/caret.svg.js';
|
|
75
|
+
import SvgRightArrowBold from '../icons/right-arrow-bold.svg.js';
|
|
76
|
+
import SvgDownArrowBold from '../icons/down-arrow-bold.svg.js';
|
|
77
|
+
export { default as DownArrowBoldIcon } from '../icons/down-arrow-bold.svg.js';
|
|
78
|
+
import SvgColumnFilter from '../icons/column-filter.svg.js';
|
|
79
|
+
import SvgZoomIn from '../icons/zoom-in.svg.js';
|
|
80
|
+
import SvgZoomOut from '../icons/zoom-out.svg.js';
|
|
81
|
+
import SvgQuestion from '../icons/question.svg.js';
|
|
82
|
+
import SvgQuestion2 from '../icons/question2.svg.js';
|
|
83
|
+
import SvgQuestionMark from '../icons/question-mark.svg.js';
|
|
84
|
+
import SvgWindowRestore from '../icons/window-restore.svg.js';
|
|
85
|
+
import SvgInfoCircle from '../icons/info-circle.svg.js';
|
|
86
|
+
import SvgWarning from '../icons/warning.svg.js';
|
|
87
|
+
import SvgWarningMark from '../icons/warning-mark.svg.js';
|
|
88
|
+
import SvgSchedule from '../icons/schedule.svg.js';
|
|
89
|
+
import SvgHome from '../icons/home.svg.js';
|
|
90
|
+
import SvgFolder from '../icons/folder.svg.js';
|
|
91
|
+
import SvgSortDefault from '../icons/sort-default.svg.js';
|
|
92
|
+
import SvgSortAsc from '../icons/sort-asc.svg.js';
|
|
93
|
+
import SvgSortDesc from '../icons/sort-desc.svg.js';
|
|
94
|
+
import SvgSetting from '../icons/setting.svg.js';
|
|
95
|
+
import SvgPlusCicle from '../icons/plus-cicle.svg.js';
|
|
96
|
+
import SvgPlusFine from '../icons/plus-fine.svg.js';
|
|
97
|
+
import SvgEllipsisV from '../icons/ellipsis-v.svg.js';
|
|
98
|
+
import SvgExpandAlt from '../icons/expand-alt.svg.js';
|
|
99
|
+
import SvgCompressAlt from '../icons/compress-alt.svg.js';
|
|
100
|
+
import SvgTransparent from '../icons/transparent.svg.js';
|
|
101
|
+
import SvgLoadingOutline from '../icons/loading-outline.svg.js';
|
|
102
|
+
import SvgStar from '../icons/star.svg.js';
|
|
103
|
+
import SvgAlertSuccess from '../icons/alert-success.svg.js';
|
|
104
|
+
import SvgAlertInfo from '../icons/alert-info.svg.js';
|
|
105
|
+
import SvgAlertWarning from '../icons/alert-warning.svg.js';
|
|
106
|
+
import SvgAlertDanger from '../icons/alert-danger.svg.js';
|
|
107
|
+
import SvgFunction from '../icons/function.svg.js';
|
|
108
|
+
export { default as FunctionIcon } from '../icons/function.svg.js';
|
|
109
|
+
import SvgInputClear from '../icons/input-clear.svg.js';
|
|
110
|
+
export { default as InputClearIcon } from '../icons/input-clear.svg.js';
|
|
111
|
+
import SvgSliderHandleIcon from '../icons/slider-handle-icon.svg.js';
|
|
112
|
+
import SvgTrash from '../icons/trash.svg.js';
|
|
113
|
+
import SvgMenu from '../icons/menu.svg.js';
|
|
114
|
+
export { default as MenuIcon } from '../icons/menu.svg.js';
|
|
115
|
+
import SvgUserRemove from '../icons/user-remove.svg.js';
|
|
116
|
+
export { default as UserRemove } from '../icons/user-remove.svg.js';
|
|
117
|
+
import SvgRole from '../icons/role.svg.js';
|
|
118
|
+
export { default as Role } from '../icons/role.svg.js';
|
|
119
|
+
import SvgDepartment from '../icons/department.svg.js';
|
|
120
|
+
export { default as Department } from '../icons/department.svg.js';
|
|
121
|
+
import SvgPost from '../icons/post.svg.js';
|
|
122
|
+
export { default as Post } from '../icons/post.svg.js';
|
|
123
|
+
import SvgDot from '../icons/dot.svg.js';
|
|
124
|
+
import SvgStepsFinsh from '../icons/steps-finsh.svg.js';
|
|
125
|
+
import SvgInvisible from '../icons/invisible.svg.js';
|
|
126
|
+
import SvgDate from '../icons/date.svg.js';
|
|
127
|
+
import SvgDown from '../icons/down.svg.js';
|
|
128
|
+
import SvgRightDoubleArrow from '../icons/right-double-arrow.svg.js';
|
|
129
|
+
export { default as RightDoubleArrowIcon } from '../icons/right-double-arrow.svg.js';
|
|
130
|
+
import SvgNewEdit from '../icons/new-edit.svg.js';
|
|
131
|
+
import SvgRotateLeft from '../icons/rotate-left.svg.js';
|
|
132
|
+
import SvgRotateRight from '../icons/rotate-right.svg.js';
|
|
133
|
+
import SvgScaleOrigin from '../icons/scale-origin.svg.js';
|
|
134
|
+
import SvgIf from '../icons/if.svg.js';
|
|
135
|
+
import SvgRotateScreen from '../icons/rotate-screen.svg.js';
|
|
136
|
+
import isObject from 'lodash/isObject';
|
|
137
|
+
import { getCustomVendor } from 'amis-rev-core';
|
|
138
|
+
|
|
139
|
+
// 兼容原来的用法,后续不直接试用。
|
|
140
|
+
var closeIcon = React__default.createElement(SvgClose, null);
|
|
141
|
+
var unDoIcon = React__default.createElement(SvgUndo, null);
|
|
142
|
+
var reDoIcon = React__default.createElement(SvgRedo, null);
|
|
143
|
+
var enterIcon = React__default.createElement(SvgEnter, null);
|
|
144
|
+
var volumeIcon = React__default.createElement(SvgVolume, null);
|
|
145
|
+
var muteIcon = React__default.createElement(SvgMute, null);
|
|
146
|
+
var playIcon = React__default.createElement(SvgPlay, null);
|
|
147
|
+
var pauseIcon = React__default.createElement(SvgPause, null);
|
|
148
|
+
var leftArrowIcon = React__default.createElement(SvgLeftArrow, null);
|
|
149
|
+
var rightArrowIcon = React__default.createElement(SvgRightArrow, null);
|
|
150
|
+
var iconFactory = {};
|
|
151
|
+
function getIconNames() {
|
|
152
|
+
return Object.keys(iconFactory);
|
|
153
|
+
}
|
|
154
|
+
function getIcon(key) {
|
|
155
|
+
return iconFactory[key];
|
|
156
|
+
}
|
|
157
|
+
function hasIcon(iconName) {
|
|
158
|
+
return !!getIcon(iconName);
|
|
159
|
+
}
|
|
160
|
+
function registerIcon(key, component) {
|
|
161
|
+
iconFactory[key] = component;
|
|
162
|
+
}
|
|
163
|
+
registerIcon('close', SvgClose);
|
|
164
|
+
registerIcon('close-small', SvgCloseSmall);
|
|
165
|
+
registerIcon('status-close', SvgStatusClose);
|
|
166
|
+
registerIcon('undo', SvgUndo);
|
|
167
|
+
registerIcon('undo-normal', SvgUndoNormal);
|
|
168
|
+
registerIcon('full-screen', SvgFullscreen);
|
|
169
|
+
registerIcon('un-fullscreen', SvgUnfullscreen);
|
|
170
|
+
registerIcon('redo', SvgRedo);
|
|
171
|
+
registerIcon('enter', SvgEnter);
|
|
172
|
+
registerIcon('volume', SvgVolume);
|
|
173
|
+
registerIcon('mute', SvgMute);
|
|
174
|
+
registerIcon('play', SvgPlay);
|
|
175
|
+
registerIcon('pause', SvgPause);
|
|
176
|
+
registerIcon('left-arrow', SvgLeftArrow);
|
|
177
|
+
registerIcon('right-arrow', SvgRightArrow);
|
|
178
|
+
registerIcon('prev', SvgLeftArrow);
|
|
179
|
+
registerIcon('next', SvgRightArrow);
|
|
180
|
+
registerIcon('check', SvgCheck);
|
|
181
|
+
registerIcon('plus', SvgPlus);
|
|
182
|
+
registerIcon('sub-plus', SvgSubPlus);
|
|
183
|
+
registerIcon('add', SvgPlus);
|
|
184
|
+
registerIcon('minus', SvgMinus);
|
|
185
|
+
registerIcon('pencil', SvgPencil);
|
|
186
|
+
registerIcon('view', SvgView);
|
|
187
|
+
registerIcon('remove', SvgRemove);
|
|
188
|
+
registerIcon('retry', SvgRetry);
|
|
189
|
+
registerIcon('upload', SvgUpload);
|
|
190
|
+
registerIcon('download', SvgDownload);
|
|
191
|
+
registerIcon('file', SvgFile);
|
|
192
|
+
registerIcon('success', SvgSuccess);
|
|
193
|
+
registerIcon('fail', SvgFail);
|
|
194
|
+
registerIcon('warning', SvgWarning);
|
|
195
|
+
registerIcon('warning-mark', SvgWarningMark);
|
|
196
|
+
registerIcon('search', SvgSearch);
|
|
197
|
+
registerIcon('back', SvgBack);
|
|
198
|
+
registerIcon('move', SvgMove);
|
|
199
|
+
registerIcon('info', SvgInfo);
|
|
200
|
+
registerIcon('info-circle', SvgInfoCircle);
|
|
201
|
+
registerIcon('location', SvgLocation);
|
|
202
|
+
registerIcon('drag-bar', SvgDragBar);
|
|
203
|
+
registerIcon('reload', SvgReload);
|
|
204
|
+
registerIcon('exchange', SvgExchange);
|
|
205
|
+
registerIcon('columns', SvgColumns);
|
|
206
|
+
registerIcon('calendar', SvgCalendar);
|
|
207
|
+
registerIcon('clock', SvgClock);
|
|
208
|
+
registerIcon('copy', SvgCopy);
|
|
209
|
+
registerIcon('filter', SvgFilter);
|
|
210
|
+
registerIcon('column-filter', SvgColumnFilter);
|
|
211
|
+
registerIcon('caret', SvgCaret);
|
|
212
|
+
registerIcon('right-arrow-bold', SvgRightArrowBold);
|
|
213
|
+
registerIcon('down-arrow-bold', SvgDownArrowBold);
|
|
214
|
+
registerIcon('zoom-in', SvgZoomIn);
|
|
215
|
+
registerIcon('zoom-out', SvgZoomOut);
|
|
216
|
+
registerIcon('question', SvgQuestion);
|
|
217
|
+
registerIcon('question2', SvgQuestion2);
|
|
218
|
+
registerIcon('question-mark', SvgQuestionMark);
|
|
219
|
+
registerIcon('window-restore', SvgWindowRestore);
|
|
220
|
+
registerIcon('schedule', SvgSchedule);
|
|
221
|
+
registerIcon('home', SvgHome);
|
|
222
|
+
registerIcon('folder', SvgFolder);
|
|
223
|
+
registerIcon('sort-default', SvgSortDefault);
|
|
224
|
+
registerIcon('sort-asc', SvgSortAsc);
|
|
225
|
+
registerIcon('sort-desc', SvgSortDesc);
|
|
226
|
+
registerIcon('setting', SvgSetting);
|
|
227
|
+
registerIcon('plus-cicle', SvgPlusCicle);
|
|
228
|
+
registerIcon('ellipsis-v', SvgEllipsisV);
|
|
229
|
+
registerIcon('expand-alt', SvgExpandAlt);
|
|
230
|
+
registerIcon('compress-alt', SvgCompressAlt);
|
|
231
|
+
registerIcon('transparent', SvgTransparent);
|
|
232
|
+
registerIcon('loading-outline', SvgLoadingOutline);
|
|
233
|
+
registerIcon('star', SvgStar);
|
|
234
|
+
registerIcon('alert-success', SvgAlertSuccess);
|
|
235
|
+
registerIcon('alert-info', SvgAlertInfo);
|
|
236
|
+
registerIcon('alert-warning', SvgAlertWarning);
|
|
237
|
+
registerIcon('alert-danger', SvgAlertDanger);
|
|
238
|
+
registerIcon('alert-fail', SvgAlertDanger);
|
|
239
|
+
registerIcon('tree-down', SvgTreeDown);
|
|
240
|
+
registerIcon('function', SvgFunction);
|
|
241
|
+
registerIcon('input-clear', SvgInputClear);
|
|
242
|
+
registerIcon('slider-handle', SvgSliderHandleIcon);
|
|
243
|
+
registerIcon('cloud-upload', SvgCloudUpload);
|
|
244
|
+
registerIcon('image', SvgImage);
|
|
245
|
+
registerIcon('refresh', SvgRefresh);
|
|
246
|
+
registerIcon('trash', SvgTrash);
|
|
247
|
+
registerIcon('menu', SvgMenu);
|
|
248
|
+
registerIcon('user-remove', SvgUserRemove);
|
|
249
|
+
registerIcon('role', SvgRole);
|
|
250
|
+
registerIcon('department', SvgDepartment);
|
|
251
|
+
registerIcon('post', SvgPost);
|
|
252
|
+
registerIcon('dot', SvgDot);
|
|
253
|
+
registerIcon('drag', SvgDrag);
|
|
254
|
+
registerIcon('edit', SvgEdit);
|
|
255
|
+
registerIcon('desk-empty', SvgDeskEmpty);
|
|
256
|
+
registerIcon('invisible', SvgInvisible);
|
|
257
|
+
registerIcon('plus-fine', SvgPlusFine);
|
|
258
|
+
registerIcon('steps-finsh', SvgStepsFinsh);
|
|
259
|
+
registerIcon('date', SvgDate);
|
|
260
|
+
registerIcon('remove', SvgRemove);
|
|
261
|
+
registerIcon('invisible', SvgInvisible);
|
|
262
|
+
registerIcon('down', SvgDown);
|
|
263
|
+
registerIcon('right-double-arrow', SvgRightDoubleArrow);
|
|
264
|
+
registerIcon('arrow-double-left', SvgArrowDoubleLeft);
|
|
265
|
+
registerIcon('arrow-double-right', SvgArrowDoubleRight);
|
|
266
|
+
registerIcon('new-edit', SvgNewEdit);
|
|
267
|
+
registerIcon('rotate-left', SvgRotateLeft);
|
|
268
|
+
registerIcon('rotate-right', SvgRotateRight);
|
|
269
|
+
registerIcon('scale-origin', SvgScaleOrigin);
|
|
270
|
+
registerIcon('if', SvgIf);
|
|
271
|
+
registerIcon('rotate-screen', SvgRotateScreen);
|
|
272
|
+
function svgString2Dom(icon, _a, vendorFn) {
|
|
273
|
+
var className = _a.className, classNameProp = _a.classNameProp, style = _a.style, cx = _a.cx, events = _a.events, extra = _a.extra;
|
|
274
|
+
icon = icon.replace(/\n/g, ' ').replace(/\s+/g, ' ');
|
|
275
|
+
if (vendorFn) {
|
|
276
|
+
var _b = vendorFn(icon, __assign(__assign({}, extra), { width: style === null || style === void 0 ? void 0 : style.width, height: style === null || style === void 0 ? void 0 : style.height })), newIcon = _b.icon, newStyle = _b.style;
|
|
277
|
+
icon = newIcon;
|
|
278
|
+
style = __assign(__assign({}, (style || {})), newStyle);
|
|
279
|
+
}
|
|
280
|
+
var svgStr = /<svg .*?>(.*?)<\/svg>/.exec(icon);
|
|
281
|
+
var viewBox = /viewBox="(.*?)"/.exec(icon);
|
|
282
|
+
var svgHTML = createElement('svg', __assign(__assign({}, events), { className: cx('icon', className, classNameProp), style: style, dangerouslySetInnerHTML: { __html: svgStr ? svgStr[1] : '' }, viewBox: (viewBox === null || viewBox === void 0 ? void 0 : viewBox[1]) || '0 0 16 16' }));
|
|
283
|
+
return svgHTML;
|
|
284
|
+
}
|
|
285
|
+
function LinkIcon(_a) {
|
|
286
|
+
var icon = _a.icon, vendorFn = _a.vendorFn, _b = _a.options, className = _b.className, classNameProp = _b.classNameProp, style = _b.style, cx = _b.cx, classPrefix = _b.classPrefix, events = _b.events, extra = _b.extra;
|
|
287
|
+
var _c = __read(React__default.useState(icon), 2), svgIcon = _c[0], setSvgIcon = _c[1];
|
|
288
|
+
var _d = __read(React__default.useState('img'), 2), svgType = _d[0], setSvgType = _d[1];
|
|
289
|
+
useEffect(function () {
|
|
290
|
+
if (icon.endsWith('.svg') && vendorFn) {
|
|
291
|
+
try {
|
|
292
|
+
fetch(icon)
|
|
293
|
+
.then(function (res) { return res.text(); })
|
|
294
|
+
.then(function (svg) {
|
|
295
|
+
setSvgType('svg');
|
|
296
|
+
setSvgIcon(svg);
|
|
297
|
+
})
|
|
298
|
+
.catch(function (e) {
|
|
299
|
+
console.warn(e);
|
|
300
|
+
setSvgType('img');
|
|
301
|
+
setSvgIcon(icon);
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
catch (warn) {
|
|
305
|
+
console.warn(warn);
|
|
306
|
+
setSvgType('img');
|
|
307
|
+
setSvgIcon(icon);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}, [icon, vendorFn]);
|
|
311
|
+
return svgType === 'img' ? (React__default.createElement("img", __assign({}, events, { className: cx("".concat(classPrefix, "Icon"), className, classNameProp), src: icon, style: style }))) : (svgString2Dom(svgIcon, {
|
|
312
|
+
className: className,
|
|
313
|
+
classNameProp: classNameProp,
|
|
314
|
+
style: style,
|
|
315
|
+
cx: cx,
|
|
316
|
+
events: events,
|
|
317
|
+
extra: extra
|
|
318
|
+
}, vendorFn));
|
|
319
|
+
}
|
|
320
|
+
function Icon(_a) {
|
|
321
|
+
var _b;
|
|
322
|
+
var icon = _a.icon, className = _a.className, _c = _a.classPrefix, classPrefix = _c === void 0 ? '' : _c, classNameProp = _a.classNameProp, iconContent = _a.iconContent, vendor = _a.vendor, iconCx = _a.cx, onClick = _a.onClick, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onMouseOver = _a.onMouseOver, onMouseOut = _a.onMouseOut, onMouseDown = _a.onMouseDown, onMouseUp = _a.onMouseUp, onMouseMove = _a.onMouseMove, onBlur = _a.onBlur, onFocus = _a.onFocus, onTouchStart = _a.onTouchStart, onTouchMove = _a.onTouchMove, onTouchEnd = _a.onTouchEnd, onTouchCancel = _a.onTouchCancel, style = _a.style, width = _a.width, height = _a.height, extra = _a.extra, testIdBuilder = _a.testIdBuilder;
|
|
323
|
+
var cx$1 = iconCx || cx;
|
|
324
|
+
var vendorFn = useMemo(function () { return getCustomVendor(vendor); }, [vendor]);
|
|
325
|
+
// style = {
|
|
326
|
+
// ...(style || {}),
|
|
327
|
+
// width: width || style?.width,
|
|
328
|
+
// height: height || style?.height
|
|
329
|
+
// };
|
|
330
|
+
if (width !== undefined) {
|
|
331
|
+
style = __assign(__assign({}, style), { width: width });
|
|
332
|
+
}
|
|
333
|
+
if (height !== undefined) {
|
|
334
|
+
style = __assign(__assign({}, style), { height: height });
|
|
335
|
+
}
|
|
336
|
+
if (typeof jest !== 'undefined' && icon) {
|
|
337
|
+
iconContent = '';
|
|
338
|
+
}
|
|
339
|
+
if (!icon && !iconContent) {
|
|
340
|
+
return null;
|
|
341
|
+
}
|
|
342
|
+
// 支持的事件
|
|
343
|
+
var events = {
|
|
344
|
+
onClick: onClick,
|
|
345
|
+
onMouseEnter: onMouseEnter,
|
|
346
|
+
onMouseLeave: onMouseLeave,
|
|
347
|
+
onMouseOver: onMouseOver,
|
|
348
|
+
onMouseOut: onMouseOut,
|
|
349
|
+
onMouseDown: onMouseDown,
|
|
350
|
+
onMouseUp: onMouseUp,
|
|
351
|
+
onMouseMove: onMouseMove,
|
|
352
|
+
onBlur: onBlur,
|
|
353
|
+
onFocus: onFocus,
|
|
354
|
+
onTouchStart: onTouchStart,
|
|
355
|
+
onTouchMove: onTouchMove,
|
|
356
|
+
onTouchEnd: onTouchEnd,
|
|
357
|
+
onTouchCancel: onTouchCancel
|
|
358
|
+
};
|
|
359
|
+
// 直接的icon dom
|
|
360
|
+
if (React__default.isValidElement(icon)) {
|
|
361
|
+
return React__default.cloneElement(icon, __assign(__assign(__assign({}, events), (icon.props || {})), { className: cx(cx$1(className, classNameProp), icon.props.className), style: style }));
|
|
362
|
+
}
|
|
363
|
+
if (iconContent) {
|
|
364
|
+
// 从css变量中获取icon
|
|
365
|
+
var refFn = function (dom) {
|
|
366
|
+
if (dom) {
|
|
367
|
+
var domStyle = getComputedStyle(dom);
|
|
368
|
+
var svgStr = domStyle.getPropertyValue('content');
|
|
369
|
+
var svg = /(<svg.*<\/svg>)/.exec(svgStr);
|
|
370
|
+
if (svg) {
|
|
371
|
+
var svgHTML = svg[0].replace(/\\"/g, '"');
|
|
372
|
+
if (dom.svgHTMLClone !== svgHTML) {
|
|
373
|
+
dom.innerHTML = svgHTML;
|
|
374
|
+
// 存储svg,不直接用innerHTML是防止<circle />渲染后变成<circle></circle>的情况
|
|
375
|
+
dom.svgHTMLClone = svgHTML;
|
|
376
|
+
dom.style.display = '';
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
return (React__default.createElement("div", __assign({}, events, { className: cx$1(iconContent, className, classNameProp), ref: refFn, style: style }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getTestId())));
|
|
382
|
+
}
|
|
383
|
+
// 获取注册的icon
|
|
384
|
+
var Component = getIcon(icon);
|
|
385
|
+
if (Component) {
|
|
386
|
+
return (React__default.createElement(Component, __assign({}, events, { className: cx$1(className, "icon-".concat(icon), classNameProp),
|
|
387
|
+
// @ts-ignore
|
|
388
|
+
icon: icon, style: style }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getTestId())));
|
|
389
|
+
}
|
|
390
|
+
// 符合schema的icon
|
|
391
|
+
if (isObject(icon) &&
|
|
392
|
+
icon.type === 'icon' &&
|
|
393
|
+
icon.icon) {
|
|
394
|
+
icon = icon.icon;
|
|
395
|
+
}
|
|
396
|
+
// icon是引用svg的情况
|
|
397
|
+
if (isObject(icon) &&
|
|
398
|
+
typeof icon.id === 'string' &&
|
|
399
|
+
icon.id.startsWith('svg-')) {
|
|
400
|
+
var svg = icon;
|
|
401
|
+
var id = "".concat(svg.id.replace(/^svg-/, ''));
|
|
402
|
+
if (!document.getElementById(id)) {
|
|
403
|
+
// 如果svg symbol不存在,则尝试将svg字符串赋值给icon,走svg字符串的逻辑
|
|
404
|
+
icon = (_b = svg.svg) === null || _b === void 0 ? void 0 : _b.replace(/'/g, '');
|
|
405
|
+
}
|
|
406
|
+
else {
|
|
407
|
+
return (React__default.createElement("svg", __assign({}, events, { className: cx$1('icon', 'icon-object', className, classNameProp), style: style }),
|
|
408
|
+
React__default.createElement("use", { xlinkHref: '#' + id })));
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
// 直接传入svg字符串
|
|
412
|
+
if (typeof icon === 'string' && icon.startsWith('<svg')) {
|
|
413
|
+
return svgString2Dom(icon, {
|
|
414
|
+
className: className,
|
|
415
|
+
classNameProp: classNameProp,
|
|
416
|
+
style: style,
|
|
417
|
+
cx: cx$1,
|
|
418
|
+
events: events,
|
|
419
|
+
extra: extra
|
|
420
|
+
}, vendorFn);
|
|
421
|
+
}
|
|
422
|
+
// icon是链接
|
|
423
|
+
var isURLIcon = typeof icon === 'string' && (icon === null || icon === void 0 ? void 0 : icon.indexOf('.')) !== -1;
|
|
424
|
+
if (isURLIcon) {
|
|
425
|
+
return (React__default.createElement(LinkIcon, { icon: icon, vendorFn: vendorFn, options: {
|
|
426
|
+
className: className,
|
|
427
|
+
classNameProp: classNameProp,
|
|
428
|
+
style: style,
|
|
429
|
+
cx: cx$1,
|
|
430
|
+
classPrefix: classPrefix,
|
|
431
|
+
events: events,
|
|
432
|
+
extra: extra
|
|
433
|
+
} }));
|
|
434
|
+
}
|
|
435
|
+
// icon是普通字符串
|
|
436
|
+
var isIconfont = typeof icon === 'string';
|
|
437
|
+
var iconPrefix = '';
|
|
438
|
+
if (vendor === 'iconfont') {
|
|
439
|
+
iconPrefix = "iconfont icon-".concat(icon);
|
|
440
|
+
}
|
|
441
|
+
else if (vendor === 'fa') {
|
|
442
|
+
//默认是fontawesome v4,兼容之前配置
|
|
443
|
+
iconPrefix = "".concat(vendor, " ").concat(vendor, "-").concat(icon);
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
// 如果vendor为空,则不设置前缀,这样可以支持fontawesome v5、fontawesome v6或者其他框架
|
|
447
|
+
iconPrefix = icon;
|
|
448
|
+
}
|
|
449
|
+
if (isIconfont) {
|
|
450
|
+
return (React__default.createElement("i", __assign({}, events, { className: cx$1(icon, className, classNameProp, iconPrefix), style: style })));
|
|
451
|
+
}
|
|
452
|
+
// 没有合适的图标
|
|
453
|
+
return React__default.createElement("span", { className: "text-danger" },
|
|
454
|
+
"\u6CA1\u6709 icon ",
|
|
455
|
+
icon);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export { Icon, closeIcon, Icon as default, enterIcon, getIcon, getIconNames, hasIcon, leftArrowIcon, muteIcon, pauseIcon, playIcon, reDoIcon, registerIcon, rightArrowIcon, unDoIcon, volumeIcon };
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Index
|
|
3
|
+
* @description
|
|
4
|
+
* @author fex
|
|
5
|
+
*/
|
|
6
|
+
import NotFound from './404';
|
|
7
|
+
import { default as Alert, alert, confirm, prompt, setRenderSchemaFn } from './Alert';
|
|
8
|
+
import { default as ContextMenu, openContextMenus, closeContextMenus } from './ContextMenu';
|
|
9
|
+
import AsideNav from './AsideNav';
|
|
10
|
+
import Avatar from './Avatar';
|
|
11
|
+
import Button from './Button';
|
|
12
|
+
import Breadcrumb from './Breadcrumb';
|
|
13
|
+
import Checkbox from './Checkbox';
|
|
14
|
+
import Collapse from './Collapse';
|
|
15
|
+
import CollapseGroup from './CollapseGroup';
|
|
16
|
+
import DatePicker from './DatePicker';
|
|
17
|
+
import DateRangePicker from './DateRangePicker';
|
|
18
|
+
import Drawer from './Drawer';
|
|
19
|
+
import Tabs from './Tabs';
|
|
20
|
+
import Tab from './Tab';
|
|
21
|
+
import Editor from './Editor';
|
|
22
|
+
import DiffEditor from './DiffEditor';
|
|
23
|
+
import Html from './Html';
|
|
24
|
+
export * from './icons';
|
|
25
|
+
import * as Icons from './icons';
|
|
26
|
+
import Layout from './Layout';
|
|
27
|
+
import { LazyComponent } from 'amis-rev-core';
|
|
28
|
+
import Modal from './Modal';
|
|
29
|
+
import { Overlay } from 'amis-rev-core';
|
|
30
|
+
import { PopOver } from 'amis-rev-core';
|
|
31
|
+
import Radios from './Radios';
|
|
32
|
+
import Range from './Range';
|
|
33
|
+
import Rating from './Rating';
|
|
34
|
+
import Select, { value2array } from './Select';
|
|
35
|
+
import SparkLine from './SparkLine';
|
|
36
|
+
import { default as Spinner, type SpinnerExtraProps } from './Spinner';
|
|
37
|
+
import Switch from './Switch';
|
|
38
|
+
import Textarea from './Textarea';
|
|
39
|
+
import TitleBar from './TitleBar';
|
|
40
|
+
import { default as ToastComponent, toast } from './Toast';
|
|
41
|
+
import Tooltip from './Tooltip';
|
|
42
|
+
import TooltipWrapper from './TooltipWrapper';
|
|
43
|
+
import Tree from './Tree';
|
|
44
|
+
import Alert2 from './Alert2';
|
|
45
|
+
import Transfer from './Transfer';
|
|
46
|
+
import TabsTransfer from './TabsTransfer';
|
|
47
|
+
import ResultBox from './ResultBox';
|
|
48
|
+
import InputBox from './InputBox';
|
|
49
|
+
import ListGroup from './ListGroup';
|
|
50
|
+
import NumberInput from './NumberInput';
|
|
51
|
+
import ArrayInput from './ArrayInput';
|
|
52
|
+
import SearchBox from './SearchBox';
|
|
53
|
+
import AnchorNav from './AnchorNav';
|
|
54
|
+
import AnchorNavSection from './AnchorNavSection';
|
|
55
|
+
import Selection from './Selection';
|
|
56
|
+
import GroupedSelection from './GroupedSelection';
|
|
57
|
+
import ChainedSelection from './ChainedSelection';
|
|
58
|
+
import TableSelection from './TableSelection';
|
|
59
|
+
import TreeSelection from './TreeSelection';
|
|
60
|
+
import AssociatedSelection from './AssociatedSelection';
|
|
61
|
+
import PullRefresh from './PullRefresh';
|
|
62
|
+
import Table from './Table';
|
|
63
|
+
import SchemaVariableListPicker from './schema-editor/SchemaVariableListPicker';
|
|
64
|
+
import SchemaVariableList from './schema-editor/SchemaVariableList';
|
|
65
|
+
import VariableList from './formula/VariableList';
|
|
66
|
+
import FormulaPicker from './FormulaPicker';
|
|
67
|
+
import { FormulaEditor } from './formula/Editor';
|
|
68
|
+
import FormulaCodeEditor from './formula/CodeEditor';
|
|
69
|
+
import type { VariableItem, FuncGroup } from './formula/CodeEditor';
|
|
70
|
+
import PickerContainer from './PickerContainer';
|
|
71
|
+
import InputJSONSchema from './InputJSONSchema';
|
|
72
|
+
import Badge from './Badge';
|
|
73
|
+
import withBadge from './withBadge';
|
|
74
|
+
import type { BadgeObject } from './Badge';
|
|
75
|
+
import { getIcon, getIconNames, registerIcon } from './icons';
|
|
76
|
+
import Icon from './Icon';
|
|
77
|
+
import { withRemoteConfig } from './WithRemoteConfig';
|
|
78
|
+
import type { RemoteOptionsProps } from './WithRemoteConfig';
|
|
79
|
+
import ConditionBuilder from './ConditionBuilder';
|
|
80
|
+
import type { ConditionBuilderFields, ConditionBuilderFuncs } from './condition-builder/types';
|
|
81
|
+
import type { ConditionBuilderConfig } from './condition-builder/config';
|
|
82
|
+
import CityArea from './CityArea';
|
|
83
|
+
import type { PresetColor } from './ColorPicker';
|
|
84
|
+
import ListMenu from './ListMenu';
|
|
85
|
+
import Input from './Input';
|
|
86
|
+
import JSONSchemaEditor from './JSONSchemaEditor';
|
|
87
|
+
import LocationPicker from './LocationPicker';
|
|
88
|
+
import PopUp from './PopUp';
|
|
89
|
+
import Cascader from './Cascader';
|
|
90
|
+
import TransferDropDown from './TransferDropDown';
|
|
91
|
+
import TabsTransferPicker from './TabsTransferPicker';
|
|
92
|
+
import ResultList from './ResultList';
|
|
93
|
+
import TransferPicker from './TransferPicker';
|
|
94
|
+
import UserSelect from './UserSelect';
|
|
95
|
+
import UserTabSelect from './UserTabSelect';
|
|
96
|
+
import HeadCellDropDown from './HeadCellDropDown';
|
|
97
|
+
import Card from './Card';
|
|
98
|
+
import GridNav from './GridNav';
|
|
99
|
+
import GridNavItem from './GridNavItem';
|
|
100
|
+
import type { GridNavDirection } from './GridNav';
|
|
101
|
+
import Link from './Link';
|
|
102
|
+
import VirtualList from './VirtualList';
|
|
103
|
+
import AutoSizer from './AutoSizer';
|
|
104
|
+
import withStore from './WithStore';
|
|
105
|
+
import PopOverContainer from './PopOverContainer';
|
|
106
|
+
import Pagination from './Pagination';
|
|
107
|
+
import Progress from './Progress';
|
|
108
|
+
import Steps, { StepStatus } from './Steps';
|
|
109
|
+
import Tag from './Tag';
|
|
110
|
+
import Timeline from './Timeline';
|
|
111
|
+
import ImageGallery from './ImageGallery';
|
|
112
|
+
import BaiduMapPicker from './BaiduMapPicker';
|
|
113
|
+
import MultilineText from './MultilineText';
|
|
114
|
+
import Form from './Form';
|
|
115
|
+
import FormField, { Controller } from './FormField';
|
|
116
|
+
import Combo from './Combo';
|
|
117
|
+
import InputTable from './InputTable';
|
|
118
|
+
import type { InputTableColumnProps } from './InputTable';
|
|
119
|
+
import ConfirmBox from './ConfirmBox';
|
|
120
|
+
import DndContainer from './DndContainer';
|
|
121
|
+
import Menu from './Menu';
|
|
122
|
+
import InputBoxWithSuggestion from './InputBoxWithSuggestion';
|
|
123
|
+
import { CodeMirrorEditor } from './CodeMirror';
|
|
124
|
+
import type CodeMirror from 'codemirror';
|
|
125
|
+
import OverflowTpl from './OverflowTpl';
|
|
126
|
+
import Signature from './Signature';
|
|
127
|
+
import VerificationCode from './VerificationCode';
|
|
128
|
+
import Slider from './Slider';
|
|
129
|
+
import Shape from './Shape';
|
|
130
|
+
import type { IShapeType } from './Shape';
|
|
131
|
+
import MobileDevTool from './MobileDevTool';
|
|
132
|
+
import DropdownContextMenus from './DropdownContextMenus';
|
|
133
|
+
import { HorizontalScroll } from './HorizontalScroll';
|
|
134
|
+
import type { HorizontalScrollProps } from './HorizontalScroll';
|
|
135
|
+
import AutoFoldedList from './AutoFoldedList';
|
|
136
|
+
import AlphabetIndexer from './AlphabetIndexer';
|
|
137
|
+
import MixedInput from './MixedInput';
|
|
138
|
+
export { NotFound, Alert as AlertComponent, alert, Avatar, confirm, prompt, setRenderSchemaFn, ContextMenu, openContextMenus, closeContextMenus, Alert2, AsideNav, Button, Breadcrumb, Checkbox, Selection as Checkboxes, Collapse, CollapseGroup, DatePicker, DateRangePicker, Drawer, Tabs, Tab, Editor, DiffEditor, Html, Icons, Layout, LazyComponent, Modal, Overlay, PopOver, Radios, Range, Rating, Select, value2array, SparkLine, Spinner, SpinnerExtraProps, Switch, Textarea, TitleBar, ToastComponent, ToastComponent as Toast, toast, Tooltip, TooltipWrapper, Tree, Transfer, TabsTransfer, Selection, GroupedSelection, ChainedSelection, TableSelection, TreeSelection, AssociatedSelection, ResultBox, InputBox, InputBoxWithSuggestion, SearchBox, ListGroup, NumberInput, ArrayInput, PullRefresh, Table, SchemaVariableListPicker, SchemaVariableList, VariableList, PickerContainer, ConfirmBox, FormulaPicker, FormulaCodeEditor, VariableItem, FuncGroup, FormulaEditor, InputJSONSchema, withBadge, BadgeObject, Icon, withRemoteConfig, RemoteOptionsProps, ConditionBuilder, ConditionBuilderFuncs, ConditionBuilderFields, ConditionBuilderConfig, CityArea, PresetColor, ListMenu, Input, JSONSchemaEditor, LocationPicker, PopUp, Cascader, TransferDropDown, TabsTransferPicker, ResultList, TransferPicker, UserSelect, UserTabSelect, getIcon, getIconNames, registerIcon, Badge, HeadCellDropDown, AnchorNav, AnchorNavSection, Card, GridNavDirection, GridNav, GridNavItem, Link, VirtualList, AutoSizer, withStore, PopOverContainer, Pagination, Progress, Steps, StepStatus, Tag, Timeline, ImageGallery, BaiduMapPicker, MultilineText, Form, FormField, Controller, Combo, InputTable, InputTableColumnProps, DndContainer, Menu, CodeMirror, CodeMirrorEditor, OverflowTpl, Signature, VerificationCode, Shape, IShapeType, MobileDevTool, DropdownContextMenus, AlphabetIndexer, Slider, HorizontalScroll, HorizontalScrollProps, AutoFoldedList, MixedInput };
|