@4399ywkf/design 2.0.0 → 2.1.1
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/dist/AiConversation/AiConversationEmpty/index.d.ts +10 -0
- package/dist/AiConversation/AiConversationEmpty/index.js +34 -0
- package/dist/AiConversation/AiConversationLayout/index.d.ts +10 -0
- package/dist/AiConversation/AiConversationLayout/index.js +41 -0
- package/dist/AiConversation/AiMessageBubble/index.d.ts +12 -0
- package/dist/AiConversation/AiMessageBubble/index.js +38 -0
- package/dist/AiConversation/AiMessageGroup/index.d.ts +9 -0
- package/dist/AiConversation/AiMessageGroup/index.js +28 -0
- package/dist/AiConversation/AiMessageMeta/index.d.ts +10 -0
- package/dist/AiConversation/AiMessageMeta/index.js +35 -0
- package/dist/AiConversation/AiPromptInput/index.d.ts +13 -0
- package/dist/AiConversation/AiPromptInput/index.js +77 -0
- package/dist/AiConversation/AiReferenceList/index.d.ts +13 -0
- package/dist/AiConversation/AiReferenceList/index.js +28 -0
- package/dist/AiConversation/AiStopGenerateButton/index.d.ts +7 -0
- package/dist/AiConversation/AiStopGenerateButton/index.js +28 -0
- package/dist/AiConversation/AiSuggestionChips/index.d.ts +9 -0
- package/dist/AiConversation/AiSuggestionChips/index.js +35 -0
- package/dist/AiConversation/AiTokenCounter/index.d.ts +10 -0
- package/dist/AiConversation/AiTokenCounter/index.js +20 -0
- package/dist/AiConversation/AiToolCallCard/index.d.ts +11 -0
- package/dist/AiConversation/AiToolCallCard/index.js +47 -0
- package/dist/AiConversation/AiTypingDots/index.d.ts +7 -0
- package/dist/AiConversation/AiTypingDots/index.js +34 -0
- package/dist/AiConversation/ThemeBridge.d.ts +18 -0
- package/dist/AiConversation/ThemeBridge.js +54 -0
- package/dist/AiConversation/_lobe/A/index.d.ts +6 -0
- package/dist/AiConversation/_lobe/A/index.js +26 -0
- package/dist/AiConversation/_lobe/Accordion/Accordion.d.ts +4 -0
- package/dist/AiConversation/_lobe/Accordion/Accordion.js +165 -0
- package/dist/AiConversation/_lobe/Accordion/AccordionItem.d.ts +4 -0
- package/dist/AiConversation/_lobe/Accordion/AccordionItem.js +395 -0
- package/dist/AiConversation/_lobe/Accordion/ArrowIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/Accordion/ArrowIcon.js +36 -0
- package/dist/AiConversation/_lobe/Accordion/context.d.ts +43 -0
- package/dist/AiConversation/_lobe/Accordion/context.js +49 -0
- package/dist/AiConversation/_lobe/Accordion/index.d.ts +3 -0
- package/dist/AiConversation/_lobe/Accordion/index.js +3 -0
- package/dist/AiConversation/_lobe/Accordion/style.d.ts +14 -0
- package/dist/AiConversation/_lobe/Accordion/style.js +21 -0
- package/dist/AiConversation/_lobe/Accordion/type.d.ts +154 -0
- package/dist/AiConversation/_lobe/Accordion/type.js +1 -0
- package/dist/AiConversation/_lobe/ActionIcon/ActionIcon.d.ts +4 -0
- package/dist/AiConversation/_lobe/ActionIcon/ActionIcon.js +104 -0
- package/dist/AiConversation/_lobe/ActionIcon/components/utils.d.ts +5 -0
- package/dist/AiConversation/_lobe/ActionIcon/components/utils.js +47 -0
- package/dist/AiConversation/_lobe/ActionIcon/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/ActionIcon/index.js +1 -0
- package/dist/AiConversation/_lobe/ActionIcon/style.d.ts +22 -0
- package/dist/AiConversation/_lobe/ActionIcon/style.js +73 -0
- package/dist/AiConversation/_lobe/ActionIcon/type.d.ts +25 -0
- package/dist/AiConversation/_lobe/ActionIcon/type.js +1 -0
- package/dist/AiConversation/_lobe/ActionIconGroup/ActionIconGroup.d.ts +4 -0
- package/dist/AiConversation/_lobe/ActionIconGroup/ActionIconGroup.js +115 -0
- package/dist/AiConversation/_lobe/ActionIconGroup/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/ActionIconGroup/index.js +1 -0
- package/dist/AiConversation/_lobe/ActionIconGroup/style.d.ts +15 -0
- package/dist/AiConversation/_lobe/ActionIconGroup/style.js +45 -0
- package/dist/AiConversation/_lobe/ActionIconGroup/type.d.ts +19 -0
- package/dist/AiConversation/_lobe/ActionIconGroup/type.js +1 -0
- package/dist/AiConversation/_lobe/Alert/Alert.d.ts +4 -0
- package/dist/AiConversation/_lobe/Alert/Alert.js +157 -0
- package/dist/AiConversation/_lobe/Alert/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/Alert/index.js +1 -0
- package/dist/AiConversation/_lobe/Alert/style.d.ts +40 -0
- package/dist/AiConversation/_lobe/Alert/style.js +158 -0
- package/dist/AiConversation/_lobe/Alert/type.d.ts +29 -0
- package/dist/AiConversation/_lobe/Alert/type.js +1 -0
- package/dist/AiConversation/_lobe/Avatar/Avatar.d.ts +4 -0
- package/dist/AiConversation/_lobe/Avatar/Avatar.js +133 -0
- package/dist/AiConversation/_lobe/Avatar/AvatarGroup/index.d.ts +4 -0
- package/dist/AiConversation/_lobe/Avatar/AvatarGroup/index.js +92 -0
- package/dist/AiConversation/_lobe/Avatar/AvatarGroup/style.d.ts +4 -0
- package/dist/AiConversation/_lobe/Avatar/AvatarGroup/style.js +11 -0
- package/dist/AiConversation/_lobe/Avatar/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/Avatar/index.js +6 -0
- package/dist/AiConversation/_lobe/Avatar/style.d.ts +12 -0
- package/dist/AiConversation/_lobe/Avatar/style.js +34 -0
- package/dist/AiConversation/_lobe/Avatar/type.d.ts +43 -0
- package/dist/AiConversation/_lobe/Avatar/type.js +1 -0
- package/dist/AiConversation/_lobe/Avatar/utils.d.ts +23 -0
- package/dist/AiConversation/_lobe/Avatar/utils.js +54 -0
- package/dist/AiConversation/_lobe/Block/Block.d.ts +4 -0
- package/dist/AiConversation/_lobe/Block/Block.js +39 -0
- package/dist/AiConversation/_lobe/Block/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/Block/index.js +1 -0
- package/dist/AiConversation/_lobe/Block/style.d.ts +18 -0
- package/dist/AiConversation/_lobe/Block/style.js +61 -0
- package/dist/AiConversation/_lobe/Block/type.d.ts +9 -0
- package/dist/AiConversation/_lobe/Block/type.js +1 -0
- package/dist/AiConversation/_lobe/Button/Button.d.ts +4 -0
- package/dist/AiConversation/_lobe/Button/Button.js +67 -0
- package/dist/AiConversation/_lobe/Button/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/Button/index.js +1 -0
- package/dist/AiConversation/_lobe/Button/style.d.ts +9 -0
- package/dist/AiConversation/_lobe/Button/style.js +30 -0
- package/dist/AiConversation/_lobe/Button/type.d.ts +10 -0
- package/dist/AiConversation/_lobe/Button/type.js +1 -0
- package/dist/AiConversation/_lobe/CodeEditor/CodeEditor.d.ts +4 -0
- package/dist/AiConversation/_lobe/CodeEditor/CodeEditor.js +94 -0
- package/dist/AiConversation/_lobe/CodeEditor/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/CodeEditor/index.js +1 -0
- package/dist/AiConversation/_lobe/CodeEditor/style.d.ts +11 -0
- package/dist/AiConversation/_lobe/CodeEditor/style.js +29 -0
- package/dist/AiConversation/_lobe/CodeEditor/type.d.ts +21 -0
- package/dist/AiConversation/_lobe/CodeEditor/type.js +1 -0
- package/dist/AiConversation/_lobe/ConfigProvider/index.d.ts +26 -0
- package/dist/AiConversation/_lobe/ConfigProvider/index.js +130 -0
- package/dist/AiConversation/_lobe/CopyButton/CopyButton.d.ts +4 -0
- package/dist/AiConversation/_lobe/CopyButton/CopyButton.js +66 -0
- package/dist/AiConversation/_lobe/CopyButton/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/CopyButton/index.js +2 -0
- package/dist/AiConversation/_lobe/CopyButton/type.d.ts +4 -0
- package/dist/AiConversation/_lobe/CopyButton/type.js +1 -0
- package/dist/AiConversation/_lobe/DraggablePanel/DraggablePanel.d.ts +4 -0
- package/dist/AiConversation/_lobe/DraggablePanel/DraggablePanel.js +496 -0
- package/dist/AiConversation/_lobe/DraggablePanel/components/DraggablePanelBody.d.ts +5 -0
- package/dist/AiConversation/_lobe/DraggablePanel/components/DraggablePanelBody.js +26 -0
- package/dist/AiConversation/_lobe/DraggablePanel/components/DraggablePanelContainer.d.ts +5 -0
- package/dist/AiConversation/_lobe/DraggablePanel/components/DraggablePanelContainer.js +25 -0
- package/dist/AiConversation/_lobe/DraggablePanel/components/DraggablePanelFooter.d.ts +5 -0
- package/dist/AiConversation/_lobe/DraggablePanel/components/DraggablePanelFooter.js +30 -0
- package/dist/AiConversation/_lobe/DraggablePanel/components/DraggablePanelHeader.d.ts +11 -0
- package/dist/AiConversation/_lobe/DraggablePanel/components/DraggablePanelHeader.js +70 -0
- package/dist/AiConversation/_lobe/DraggablePanel/components/style.d.ts +7 -0
- package/dist/AiConversation/_lobe/DraggablePanel/components/style.js +14 -0
- package/dist/AiConversation/_lobe/DraggablePanel/index.d.ts +20 -0
- package/dist/AiConversation/_lobe/DraggablePanel/index.js +17 -0
- package/dist/AiConversation/_lobe/DraggablePanel/style.d.ts +45 -0
- package/dist/AiConversation/_lobe/DraggablePanel/style.js +203 -0
- package/dist/AiConversation/_lobe/DraggablePanel/type.d.ts +49 -0
- package/dist/AiConversation/_lobe/DraggablePanel/type.js +1 -0
- package/dist/AiConversation/_lobe/DraggablePanel/utils.d.ts +2 -0
- package/dist/AiConversation/_lobe/DraggablePanel/utils.js +20 -0
- package/dist/AiConversation/_lobe/DropdownMenu/DropdownMenu.d.ts +4 -0
- package/dist/AiConversation/_lobe/DropdownMenu/DropdownMenu.js +118 -0
- package/dist/AiConversation/_lobe/DropdownMenu/atoms.d.ts +114 -0
- package/dist/AiConversation/_lobe/DropdownMenu/atoms.js +311 -0
- package/dist/AiConversation/_lobe/DropdownMenu/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/DropdownMenu/index.js +2 -0
- package/dist/AiConversation/_lobe/DropdownMenu/renderItems.d.ts +5 -0
- package/dist/AiConversation/_lobe/DropdownMenu/renderItems.js +185 -0
- package/dist/AiConversation/_lobe/DropdownMenu/type.d.ts +39 -0
- package/dist/AiConversation/_lobe/DropdownMenu/type.js +1 -0
- package/dist/AiConversation/_lobe/EditableText/ControlInput.d.ts +16 -0
- package/dist/AiConversation/_lobe/EditableText/ControlInput.js +109 -0
- package/dist/AiConversation/_lobe/EditableText/EditableText.d.ts +4 -0
- package/dist/AiConversation/_lobe/EditableText/EditableText.js +126 -0
- package/dist/AiConversation/_lobe/EditableText/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/EditableText/index.js +1 -0
- package/dist/AiConversation/_lobe/EditableText/type.d.ts +19 -0
- package/dist/AiConversation/_lobe/EditableText/type.js +1 -0
- package/dist/AiConversation/_lobe/FileTypeIcon/FileTypeIcon.d.ts +4 -0
- package/dist/AiConversation/_lobe/FileTypeIcon/FileTypeIcon.js +83 -0
- package/dist/AiConversation/_lobe/FileTypeIcon/components/FileIcon.d.ts +12 -0
- package/dist/AiConversation/_lobe/FileTypeIcon/components/FileIcon.js +55 -0
- package/dist/AiConversation/_lobe/FileTypeIcon/components/FolderIcon.d.ts +12 -0
- package/dist/AiConversation/_lobe/FileTypeIcon/components/FolderIcon.js +48 -0
- package/dist/AiConversation/_lobe/FileTypeIcon/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/FileTypeIcon/index.js +1 -0
- package/dist/AiConversation/_lobe/FileTypeIcon/style.d.ts +5 -0
- package/dist/AiConversation/_lobe/FileTypeIcon/style.js +11 -0
- package/dist/AiConversation/_lobe/FileTypeIcon/type.d.ts +13 -0
- package/dist/AiConversation/_lobe/FileTypeIcon/type.js +1 -0
- package/dist/AiConversation/_lobe/Flex/Center.d.ts +4 -0
- package/dist/AiConversation/_lobe/Flex/Center.js +23 -0
- package/dist/AiConversation/_lobe/Flex/FlexBasic.d.ts +4 -0
- package/dist/AiConversation/_lobe/Flex/FlexBasic.js +81 -0
- package/dist/AiConversation/_lobe/Flex/Flexbox.d.ts +2 -0
- package/dist/AiConversation/_lobe/Flex/Flexbox.js +2 -0
- package/dist/AiConversation/_lobe/Flex/index.d.ts +4 -0
- package/dist/AiConversation/_lobe/Flex/index.js +3 -0
- package/dist/AiConversation/_lobe/Flex/style.css +36 -0
- package/dist/AiConversation/_lobe/Flex/type.d.ts +112 -0
- package/dist/AiConversation/_lobe/Flex/type.js +1 -0
- package/dist/AiConversation/_lobe/Flex/utils.d.ts +7 -0
- package/dist/AiConversation/_lobe/Flex/utils.js +39 -0
- package/dist/AiConversation/_lobe/FluentEmoji/FluentEmoji.d.ts +4 -0
- package/dist/AiConversation/_lobe/FluentEmoji/FluentEmoji.js +76 -0
- package/dist/AiConversation/_lobe/FluentEmoji/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/FluentEmoji/index.js +1 -0
- package/dist/AiConversation/_lobe/FluentEmoji/style.d.ts +3 -0
- package/dist/AiConversation/_lobe/FluentEmoji/style.js +9 -0
- package/dist/AiConversation/_lobe/FluentEmoji/type.d.ts +10 -0
- package/dist/AiConversation/_lobe/FluentEmoji/type.js +1 -0
- package/dist/AiConversation/_lobe/FluentEmoji/utils.d.ts +9 -0
- package/dist/AiConversation/_lobe/FluentEmoji/utils.js +77 -0
- package/dist/AiConversation/_lobe/FontLoader/index.d.ts +6 -0
- package/dist/AiConversation/_lobe/FontLoader/index.js +36 -0
- package/dist/AiConversation/_lobe/Grid/Grid.d.ts +4 -0
- package/dist/AiConversation/_lobe/Grid/Grid.js +49 -0
- package/dist/AiConversation/_lobe/Grid/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/Grid/index.js +1 -0
- package/dist/AiConversation/_lobe/Grid/style.d.ts +1 -0
- package/dist/AiConversation/_lobe/Grid/style.js +7 -0
- package/dist/AiConversation/_lobe/Grid/type.d.ts +8 -0
- package/dist/AiConversation/_lobe/Grid/type.js +1 -0
- package/dist/AiConversation/_lobe/Highlighter/FullFeatured.d.ts +10 -0
- package/dist/AiConversation/_lobe/Highlighter/FullFeatured.js +187 -0
- package/dist/AiConversation/_lobe/Highlighter/Highlighter.d.ts +4 -0
- package/dist/AiConversation/_lobe/Highlighter/Highlighter.js +167 -0
- package/dist/AiConversation/_lobe/Highlighter/LangSelect.d.ts +4 -0
- package/dist/AiConversation/_lobe/Highlighter/LangSelect.js +88 -0
- package/dist/AiConversation/_lobe/Highlighter/SyntaxHighlighter/StaticRenderer.d.ts +17 -0
- package/dist/AiConversation/_lobe/Highlighter/SyntaxHighlighter/StaticRenderer.js +42 -0
- package/dist/AiConversation/_lobe/Highlighter/SyntaxHighlighter/StreamRenderer.d.ts +13 -0
- package/dist/AiConversation/_lobe/Highlighter/SyntaxHighlighter/StreamRenderer.js +127 -0
- package/dist/AiConversation/_lobe/Highlighter/SyntaxHighlighter/index.d.ts +4 -0
- package/dist/AiConversation/_lobe/Highlighter/SyntaxHighlighter/index.js +58 -0
- package/dist/AiConversation/_lobe/Highlighter/SyntaxHighlighter/style.d.ts +15 -0
- package/dist/AiConversation/_lobe/Highlighter/SyntaxHighlighter/style.js +45 -0
- package/dist/AiConversation/_lobe/Highlighter/const.d.ts +10 -0
- package/dist/AiConversation/_lobe/Highlighter/const.js +52 -0
- package/dist/AiConversation/_lobe/Highlighter/index.d.ts +4 -0
- package/dist/AiConversation/_lobe/Highlighter/index.js +3 -0
- package/dist/AiConversation/_lobe/Highlighter/style.d.ts +33 -0
- package/dist/AiConversation/_lobe/Highlighter/style.js +78 -0
- package/dist/AiConversation/_lobe/Highlighter/theme/lobe-theme.d.ts +57 -0
- package/dist/AiConversation/_lobe/Highlighter/theme/lobe-theme.js +422 -0
- package/dist/AiConversation/_lobe/Highlighter/type.d.ts +54 -0
- package/dist/AiConversation/_lobe/Highlighter/type.js +1 -0
- package/dist/AiConversation/_lobe/Hotkey/Hotkey.d.ts +4 -0
- package/dist/AiConversation/_lobe/Hotkey/Hotkey.js +183 -0
- package/dist/AiConversation/_lobe/Hotkey/const.d.ts +36 -0
- package/dist/AiConversation/_lobe/Hotkey/const.js +50 -0
- package/dist/AiConversation/_lobe/Hotkey/index.d.ts +4 -0
- package/dist/AiConversation/_lobe/Hotkey/index.js +3 -0
- package/dist/AiConversation/_lobe/Hotkey/style.d.ts +13 -0
- package/dist/AiConversation/_lobe/Hotkey/style.js +48 -0
- package/dist/AiConversation/_lobe/Hotkey/type.d.ts +15 -0
- package/dist/AiConversation/_lobe/Hotkey/type.js +1 -0
- package/dist/AiConversation/_lobe/Hotkey/utils.d.ts +5 -0
- package/dist/AiConversation/_lobe/Hotkey/utils.js +43 -0
- package/dist/AiConversation/_lobe/Icon/Icon.d.ts +4 -0
- package/dist/AiConversation/_lobe/Icon/Icon.js +68 -0
- package/dist/AiConversation/_lobe/Icon/components/IconProvider.d.ts +9 -0
- package/dist/AiConversation/_lobe/Icon/components/IconProvider.js +17 -0
- package/dist/AiConversation/_lobe/Icon/components/utils.d.ts +8 -0
- package/dist/AiConversation/_lobe/Icon/components/utils.js +45 -0
- package/dist/AiConversation/_lobe/Icon/index.d.ts +3 -0
- package/dist/AiConversation/_lobe/Icon/index.js +2 -0
- package/dist/AiConversation/_lobe/Icon/style.d.ts +6 -0
- package/dist/AiConversation/_lobe/Icon/style.js +22 -0
- package/dist/AiConversation/_lobe/Icon/type.d.ts +15 -0
- package/dist/AiConversation/_lobe/Icon/type.js +1 -0
- package/dist/AiConversation/_lobe/Image/Image.d.ts +4 -0
- package/dist/AiConversation/_lobe/Image/Image.js +97 -0
- package/dist/AiConversation/_lobe/Image/PreviewGroup.d.ts +4 -0
- package/dist/AiConversation/_lobe/Image/PreviewGroup.js +23 -0
- package/dist/AiConversation/_lobe/Image/components/Preview.d.ts +6 -0
- package/dist/AiConversation/_lobe/Image/components/Preview.js +27 -0
- package/dist/AiConversation/_lobe/Image/components/Toolbar.d.ts +10 -0
- package/dist/AiConversation/_lobe/Image/components/Toolbar.js +207 -0
- package/dist/AiConversation/_lobe/Image/components/usePreview.d.ts +4 -0
- package/dist/AiConversation/_lobe/Image/components/usePreview.js +86 -0
- package/dist/AiConversation/_lobe/Image/components/usePreviewGroup.d.ts +4 -0
- package/dist/AiConversation/_lobe/Image/components/usePreviewGroup.js +79 -0
- package/dist/AiConversation/_lobe/Image/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/Image/index.js +6 -0
- package/dist/AiConversation/_lobe/Image/style.d.ts +18 -0
- package/dist/AiConversation/_lobe/Image/style.js +37 -0
- package/dist/AiConversation/_lobe/Image/type.d.ts +39 -0
- package/dist/AiConversation/_lobe/Image/type.js +1 -0
- package/dist/AiConversation/_lobe/Img/index.d.ts +9 -0
- package/dist/AiConversation/_lobe/Img/index.js +33 -0
- package/dist/AiConversation/_lobe/Input/Input.d.ts +4 -0
- package/dist/AiConversation/_lobe/Input/Input.js +35 -0
- package/dist/AiConversation/_lobe/Input/InputNumber.d.ts +4 -0
- package/dist/AiConversation/_lobe/Input/InputNumber.js +35 -0
- package/dist/AiConversation/_lobe/Input/InputOPT.d.ts +4 -0
- package/dist/AiConversation/_lobe/Input/InputOPT.js +35 -0
- package/dist/AiConversation/_lobe/Input/InputPassword.d.ts +4 -0
- package/dist/AiConversation/_lobe/Input/InputPassword.js +35 -0
- package/dist/AiConversation/_lobe/Input/TextArea.d.ts +4 -0
- package/dist/AiConversation/_lobe/Input/TextArea.js +41 -0
- package/dist/AiConversation/_lobe/Input/index.d.ts +6 -0
- package/dist/AiConversation/_lobe/Input/index.js +5 -0
- package/dist/AiConversation/_lobe/Input/style.d.ts +20 -0
- package/dist/AiConversation/_lobe/Input/style.js +55 -0
- package/dist/AiConversation/_lobe/Input/type.d.ts +27 -0
- package/dist/AiConversation/_lobe/Input/type.js +1 -0
- package/dist/AiConversation/_lobe/Markdown/Markdown.d.ts +4 -0
- package/dist/AiConversation/_lobe/Markdown/Markdown.js +123 -0
- package/dist/AiConversation/_lobe/Markdown/SyntaxMarkdown/MarkdownRender.d.ts +3 -0
- package/dist/AiConversation/_lobe/Markdown/SyntaxMarkdown/MarkdownRender.js +32 -0
- package/dist/AiConversation/_lobe/Markdown/SyntaxMarkdown/StreamdownRender.d.ts +3 -0
- package/dist/AiConversation/_lobe/Markdown/SyntaxMarkdown/StreamdownRender.js +341 -0
- package/dist/AiConversation/_lobe/Markdown/SyntaxMarkdown/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/Markdown/SyntaxMarkdown/index.js +2 -0
- package/dist/AiConversation/_lobe/Markdown/SyntaxMarkdown/streamAnimationMeta.d.ts +13 -0
- package/dist/AiConversation/_lobe/Markdown/SyntaxMarkdown/streamAnimationMeta.js +16 -0
- package/dist/AiConversation/_lobe/Markdown/SyntaxMarkdown/style.d.ts +3 -0
- package/dist/AiConversation/_lobe/Markdown/SyntaxMarkdown/style.js +10 -0
- package/dist/AiConversation/_lobe/Markdown/SyntaxMarkdown/useSmoothStreamContent.d.ts +8 -0
- package/dist/AiConversation/_lobe/Markdown/SyntaxMarkdown/useSmoothStreamContent.js +278 -0
- package/dist/AiConversation/_lobe/Markdown/SyntaxMarkdown/useStreamQueue.d.ts +11 -0
- package/dist/AiConversation/_lobe/Markdown/SyntaxMarkdown/useStreamQueue.js +111 -0
- package/dist/AiConversation/_lobe/Markdown/Typography.d.ts +4 -0
- package/dist/AiConversation/_lobe/Markdown/Typography.js +48 -0
- package/dist/AiConversation/_lobe/Markdown/components/CodeBlock.d.ts +18 -0
- package/dist/AiConversation/_lobe/Markdown/components/CodeBlock.js +66 -0
- package/dist/AiConversation/_lobe/Markdown/components/Footnotes.d.ts +8 -0
- package/dist/AiConversation/_lobe/Markdown/components/Footnotes.js +123 -0
- package/dist/AiConversation/_lobe/Markdown/components/MarkdownProvider.d.ts +6 -0
- package/dist/AiConversation/_lobe/Markdown/components/MarkdownProvider.js +19 -0
- package/dist/AiConversation/_lobe/Markdown/components/SearchResultCards/SearchResultCard.d.ts +10 -0
- package/dist/AiConversation/_lobe/Markdown/components/SearchResultCards/SearchResultCard.js +90 -0
- package/dist/AiConversation/_lobe/Markdown/components/SearchResultCards/index.d.ts +14 -0
- package/dist/AiConversation/_lobe/Markdown/components/SearchResultCards/index.js +43 -0
- package/dist/AiConversation/_lobe/Markdown/components/SearchResultCards/style.d.ts +4 -0
- package/dist/AiConversation/_lobe/Markdown/components/SearchResultCards/style.js +10 -0
- package/dist/AiConversation/_lobe/Markdown/components/useDelayedAnimated.d.ts +1 -0
- package/dist/AiConversation/_lobe/Markdown/components/useDelayedAnimated.js +31 -0
- package/dist/AiConversation/_lobe/Markdown/index.d.ts +3 -0
- package/dist/AiConversation/_lobe/Markdown/index.js +2 -0
- package/dist/AiConversation/_lobe/Markdown/markdown.style.d.ts +3 -0
- package/dist/AiConversation/_lobe/Markdown/markdown.style.js +30 -0
- package/dist/AiConversation/_lobe/Markdown/plugins/rehypeCustomFootnotes.d.ts +1 -0
- package/dist/AiConversation/_lobe/Markdown/plugins/rehypeCustomFootnotes.js +56 -0
- package/dist/AiConversation/_lobe/Markdown/plugins/rehypeKatexDir.d.ts +2 -0
- package/dist/AiConversation/_lobe/Markdown/plugins/rehypeKatexDir.js +15 -0
- package/dist/AiConversation/_lobe/Markdown/plugins/rehypeStreamAnimated.d.ts +8 -0
- package/dist/AiConversation/_lobe/Markdown/plugins/rehypeStreamAnimated.js +109 -0
- package/dist/AiConversation/_lobe/Markdown/plugins/remarkBr.d.ts +6 -0
- package/dist/AiConversation/_lobe/Markdown/plugins/remarkBr.js +104 -0
- package/dist/AiConversation/_lobe/Markdown/plugins/remarkColor.d.ts +17 -0
- package/dist/AiConversation/_lobe/Markdown/plugins/remarkColor.js +188 -0
- package/dist/AiConversation/_lobe/Markdown/plugins/remarkCustomFootnotes.d.ts +6 -0
- package/dist/AiConversation/_lobe/Markdown/plugins/remarkCustomFootnotes.js +31 -0
- package/dist/AiConversation/_lobe/Markdown/plugins/remarkGfmPlus.d.ts +5 -0
- package/dist/AiConversation/_lobe/Markdown/plugins/remarkGfmPlus.js +141 -0
- package/dist/AiConversation/_lobe/Markdown/plugins/remarkVideo.d.ts +17 -0
- package/dist/AiConversation/_lobe/Markdown/plugins/remarkVideo.js +183 -0
- package/dist/AiConversation/_lobe/Markdown/streamProfiler/StreamdownProfilerPanel.d.ts +7 -0
- package/dist/AiConversation/_lobe/Markdown/streamProfiler/StreamdownProfilerPanel.js +499 -0
- package/dist/AiConversation/_lobe/Markdown/streamProfiler/StreamdownProfilerProvider.d.ts +7 -0
- package/dist/AiConversation/_lobe/Markdown/streamProfiler/StreamdownProfilerProvider.js +18 -0
- package/dist/AiConversation/_lobe/Markdown/streamProfiler/index.d.ts +3 -0
- package/dist/AiConversation/_lobe/Markdown/streamProfiler/index.js +3 -0
- package/dist/AiConversation/_lobe/Markdown/streamProfiler/profiler.d.ts +128 -0
- package/dist/AiConversation/_lobe/Markdown/streamProfiler/profiler.js +365 -0
- package/dist/AiConversation/_lobe/Markdown/style.d.ts +11 -0
- package/dist/AiConversation/_lobe/Markdown/style.js +35 -0
- package/dist/AiConversation/_lobe/Markdown/type.d.ts +58 -0
- package/dist/AiConversation/_lobe/Markdown/type.js +1 -0
- package/dist/AiConversation/_lobe/MaterialFileTypeIcon/MaterialFileTypeIcon.d.ts +4 -0
- package/dist/AiConversation/_lobe/MaterialFileTypeIcon/MaterialFileTypeIcon.js +89 -0
- package/dist/AiConversation/_lobe/MaterialFileTypeIcon/icon-map.json +4915 -0
- package/dist/AiConversation/_lobe/MaterialFileTypeIcon/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/MaterialFileTypeIcon/index.js +1 -0
- package/dist/AiConversation/_lobe/MaterialFileTypeIcon/type.d.ts +13 -0
- package/dist/AiConversation/_lobe/MaterialFileTypeIcon/type.js +1 -0
- package/dist/AiConversation/_lobe/MaterialFileTypeIcon/utils.d.ts +17 -0
- package/dist/AiConversation/_lobe/MaterialFileTypeIcon/utils.js +48 -0
- package/dist/AiConversation/_lobe/Menu/Menu.d.ts +4 -0
- package/dist/AiConversation/_lobe/Menu/Menu.js +73 -0
- package/dist/AiConversation/_lobe/Menu/baseItem.d.ts +28 -0
- package/dist/AiConversation/_lobe/Menu/baseItem.js +1 -0
- package/dist/AiConversation/_lobe/Menu/checkboxItem.d.ts +21 -0
- package/dist/AiConversation/_lobe/Menu/checkboxItem.js +1 -0
- package/dist/AiConversation/_lobe/Menu/index.d.ts +7 -0
- package/dist/AiConversation/_lobe/Menu/index.js +3 -0
- package/dist/AiConversation/_lobe/Menu/renderUtils.d.ts +33 -0
- package/dist/AiConversation/_lobe/Menu/renderUtils.js +59 -0
- package/dist/AiConversation/_lobe/Menu/sharedStyle.d.ts +18 -0
- package/dist/AiConversation/_lobe/Menu/sharedStyle.js +25 -0
- package/dist/AiConversation/_lobe/Menu/style.d.ts +13 -0
- package/dist/AiConversation/_lobe/Menu/style.js +39 -0
- package/dist/AiConversation/_lobe/Menu/switchItem.d.ts +21 -0
- package/dist/AiConversation/_lobe/Menu/switchItem.js +1 -0
- package/dist/AiConversation/_lobe/Menu/type.d.ts +41 -0
- package/dist/AiConversation/_lobe/Menu/type.js +1 -0
- package/dist/AiConversation/_lobe/Menu/utils.d.ts +3 -0
- package/dist/AiConversation/_lobe/Menu/utils.js +47 -0
- package/dist/AiConversation/_lobe/Mermaid/FullFeatured.d.ts +8 -0
- package/dist/AiConversation/_lobe/Mermaid/FullFeatured.js +157 -0
- package/dist/AiConversation/_lobe/Mermaid/Mermaid.d.ts +5 -0
- package/dist/AiConversation/_lobe/Mermaid/Mermaid.js +130 -0
- package/dist/AiConversation/_lobe/Mermaid/SyntaxMermaid/StaticMermaid.d.ts +13 -0
- package/dist/AiConversation/_lobe/Mermaid/SyntaxMermaid/StaticMermaid.js +118 -0
- package/dist/AiConversation/_lobe/Mermaid/SyntaxMermaid/StreamMermaid.d.ts +13 -0
- package/dist/AiConversation/_lobe/Mermaid/SyntaxMermaid/StreamMermaid.js +123 -0
- package/dist/AiConversation/_lobe/Mermaid/SyntaxMermaid/index.d.ts +4 -0
- package/dist/AiConversation/_lobe/Mermaid/SyntaxMermaid/index.js +58 -0
- package/dist/AiConversation/_lobe/Mermaid/SyntaxMermaid/style.d.ts +15 -0
- package/dist/AiConversation/_lobe/Mermaid/SyntaxMermaid/style.js +45 -0
- package/dist/AiConversation/_lobe/Mermaid/const.d.ts +7 -0
- package/dist/AiConversation/_lobe/Mermaid/const.js +24 -0
- package/dist/AiConversation/_lobe/Mermaid/index.d.ts +4 -0
- package/dist/AiConversation/_lobe/Mermaid/index.js +3 -0
- package/dist/AiConversation/_lobe/Mermaid/postProcessMermaidSvg.d.ts +12 -0
- package/dist/AiConversation/_lobe/Mermaid/postProcessMermaidSvg.js +289 -0
- package/dist/AiConversation/_lobe/Mermaid/type.d.ts +48 -0
- package/dist/AiConversation/_lobe/Mermaid/type.js +1 -0
- package/dist/AiConversation/_lobe/Modal/Modal.d.ts +4 -0
- package/dist/AiConversation/_lobe/Modal/Modal.js +167 -0
- package/dist/AiConversation/_lobe/Modal/ModalProvider.d.ts +8 -0
- package/dist/AiConversation/_lobe/Modal/ModalProvider.js +23 -0
- package/dist/AiConversation/_lobe/Modal/ModalStackItem.d.ts +10 -0
- package/dist/AiConversation/_lobe/Modal/ModalStackItem.js +69 -0
- package/dist/AiConversation/_lobe/Modal/RawModalStackItem.d.ts +12 -0
- package/dist/AiConversation/_lobe/Modal/RawModalStackItem.js +47 -0
- package/dist/AiConversation/_lobe/Modal/imperative.d.ts +8 -0
- package/dist/AiConversation/_lobe/Modal/imperative.js +238 -0
- package/dist/AiConversation/_lobe/Modal/index.d.ts +4 -0
- package/dist/AiConversation/_lobe/Modal/index.js +3 -0
- package/dist/AiConversation/_lobe/Modal/style.d.ts +7 -0
- package/dist/AiConversation/_lobe/Modal/style.js +14 -0
- package/dist/AiConversation/_lobe/Modal/type.d.ts +38 -0
- package/dist/AiConversation/_lobe/Modal/type.js +1 -0
- package/dist/AiConversation/_lobe/MotionProvider/index.d.ts +9 -0
- package/dist/AiConversation/_lobe/MotionProvider/index.js +20 -0
- package/dist/AiConversation/_lobe/Provider.d.ts +3 -0
- package/dist/AiConversation/_lobe/Provider.js +2 -0
- package/dist/AiConversation/_lobe/ScrollShadow/ScrollShadow.d.ts +4 -0
- package/dist/AiConversation/_lobe/ScrollShadow/ScrollShadow.js +128 -0
- package/dist/AiConversation/_lobe/ScrollShadow/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/ScrollShadow/index.js +1 -0
- package/dist/AiConversation/_lobe/ScrollShadow/style.d.ts +17 -0
- package/dist/AiConversation/_lobe/ScrollShadow/style.js +47 -0
- package/dist/AiConversation/_lobe/ScrollShadow/type.d.ts +17 -0
- package/dist/AiConversation/_lobe/ScrollShadow/type.js +1 -0
- package/dist/AiConversation/_lobe/ScrollShadow/useScrollOverflow.d.ts +21 -0
- package/dist/AiConversation/_lobe/ScrollShadow/useScrollOverflow.js +83 -0
- package/dist/AiConversation/_lobe/Select/Select.d.ts +7 -0
- package/dist/AiConversation/_lobe/Select/Select.js +50 -0
- package/dist/AiConversation/_lobe/Select/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/Select/index.js +1 -0
- package/dist/AiConversation/_lobe/Select/style.d.ts +11 -0
- package/dist/AiConversation/_lobe/Select/style.js +33 -0
- package/dist/AiConversation/_lobe/Select/type.d.ts +9 -0
- package/dist/AiConversation/_lobe/Select/type.js +1 -0
- package/dist/AiConversation/_lobe/Snippet/Snippet.d.ts +4 -0
- package/dist/AiConversation/_lobe/Snippet/Snippet.js +57 -0
- package/dist/AiConversation/_lobe/Snippet/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/Snippet/index.js +1 -0
- package/dist/AiConversation/_lobe/Snippet/style.d.ts +12 -0
- package/dist/AiConversation/_lobe/Snippet/style.js +34 -0
- package/dist/AiConversation/_lobe/Snippet/type.d.ts +12 -0
- package/dist/AiConversation/_lobe/Snippet/type.js +1 -0
- package/dist/AiConversation/_lobe/Tabs/Tabs.d.ts +4 -0
- package/dist/AiConversation/_lobe/Tabs/Tabs.js +50 -0
- package/dist/AiConversation/_lobe/Tabs/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/Tabs/index.js +1 -0
- package/dist/AiConversation/_lobe/Tabs/style.d.ts +14 -0
- package/dist/AiConversation/_lobe/Tabs/style.js +40 -0
- package/dist/AiConversation/_lobe/Tabs/type.d.ts +5 -0
- package/dist/AiConversation/_lobe/Tabs/type.js +1 -0
- package/dist/AiConversation/_lobe/Tag/Tag.d.ts +4 -0
- package/dist/AiConversation/_lobe/Tag/Tag.js +79 -0
- package/dist/AiConversation/_lobe/Tag/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/Tag/index.js +1 -0
- package/dist/AiConversation/_lobe/Tag/styles.d.ts +12 -0
- package/dist/AiConversation/_lobe/Tag/styles.js +36 -0
- package/dist/AiConversation/_lobe/Tag/type.d.ts +8 -0
- package/dist/AiConversation/_lobe/Tag/type.js +1 -0
- package/dist/AiConversation/_lobe/Tag/utils.d.ts +4 -0
- package/dist/AiConversation/_lobe/Tag/utils.js +24 -0
- package/dist/AiConversation/_lobe/Text/Text.d.ts +4 -0
- package/dist/AiConversation/_lobe/Text/Text.js +117 -0
- package/dist/AiConversation/_lobe/Text/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/Text/index.js +1 -0
- package/dist/AiConversation/_lobe/Text/styles.d.ts +35 -0
- package/dist/AiConversation/_lobe/Text/styles.js +77 -0
- package/dist/AiConversation/_lobe/Text/type.d.ts +41 -0
- package/dist/AiConversation/_lobe/Text/type.js +1 -0
- package/dist/AiConversation/_lobe/ThemeProvider/AppElementContext.d.ts +4 -0
- package/dist/AiConversation/_lobe/ThemeProvider/AppElementContext.js +8 -0
- package/dist/AiConversation/_lobe/ThemeProvider/ConfigProvider.d.ts +5 -0
- package/dist/AiConversation/_lobe/ThemeProvider/ConfigProvider.js +40 -0
- package/dist/AiConversation/_lobe/ThemeProvider/GlobalStyle/antdOverride.d.ts +3 -0
- package/dist/AiConversation/_lobe/ThemeProvider/GlobalStyle/antdOverride.js +9 -0
- package/dist/AiConversation/_lobe/ThemeProvider/GlobalStyle/global.d.ts +3 -0
- package/dist/AiConversation/_lobe/ThemeProvider/GlobalStyle/global.js +7 -0
- package/dist/AiConversation/_lobe/ThemeProvider/GlobalStyle/index.d.ts +3 -0
- package/dist/AiConversation/_lobe/ThemeProvider/GlobalStyle/index.js +10 -0
- package/dist/AiConversation/_lobe/ThemeProvider/Meta.d.ts +4 -0
- package/dist/AiConversation/_lobe/ThemeProvider/Meta.js +78 -0
- package/dist/AiConversation/_lobe/ThemeProvider/ThemeProvider.d.ts +4 -0
- package/dist/AiConversation/_lobe/ThemeProvider/ThemeProvider.js +138 -0
- package/dist/AiConversation/_lobe/ThemeProvider/constants.d.ts +1 -0
- package/dist/AiConversation/_lobe/ThemeProvider/constants.js +1 -0
- package/dist/AiConversation/_lobe/ThemeProvider/index.d.ts +5 -0
- package/dist/AiConversation/_lobe/ThemeProvider/index.js +4 -0
- package/dist/AiConversation/_lobe/ThemeProvider/type.d.ts +25 -0
- package/dist/AiConversation/_lobe/ThemeProvider/type.js +1 -0
- package/dist/AiConversation/_lobe/Tooltip/ArrowIcon.d.ts +1 -0
- package/dist/AiConversation/_lobe/Tooltip/ArrowIcon.js +17 -0
- package/dist/AiConversation/_lobe/Tooltip/Tooltip.d.ts +4 -0
- package/dist/AiConversation/_lobe/Tooltip/Tooltip.js +19 -0
- package/dist/AiConversation/_lobe/Tooltip/TooltipContent.d.ts +9 -0
- package/dist/AiConversation/_lobe/Tooltip/TooltipContent.js +30 -0
- package/dist/AiConversation/_lobe/Tooltip/TooltipGroup.d.ts +4 -0
- package/dist/AiConversation/_lobe/Tooltip/TooltipGroup.js +160 -0
- package/dist/AiConversation/_lobe/Tooltip/TooltipInGroup.d.ts +3 -0
- package/dist/AiConversation/_lobe/Tooltip/TooltipInGroup.js +138 -0
- package/dist/AiConversation/_lobe/Tooltip/TooltipStandalone.d.ts +7 -0
- package/dist/AiConversation/_lobe/Tooltip/TooltipStandalone.js +217 -0
- package/dist/AiConversation/_lobe/Tooltip/groupContext.d.ts +14 -0
- package/dist/AiConversation/_lobe/Tooltip/groupContext.js +5 -0
- package/dist/AiConversation/_lobe/Tooltip/index.d.ts +3 -0
- package/dist/AiConversation/_lobe/Tooltip/index.js +2 -0
- package/dist/AiConversation/_lobe/Tooltip/style.d.ts +6 -0
- package/dist/AiConversation/_lobe/Tooltip/style.js +13 -0
- package/dist/AiConversation/_lobe/Tooltip/type.d.ts +175 -0
- package/dist/AiConversation/_lobe/Tooltip/type.js +1 -0
- package/dist/AiConversation/_lobe/Tooltip/useMergedTooltipProps.d.ts +3 -0
- package/dist/AiConversation/_lobe/Tooltip/useMergedTooltipProps.js +91 -0
- package/dist/AiConversation/_lobe/Video/index.d.ts +39 -0
- package/dist/AiConversation/_lobe/Video/index.js +156 -0
- package/dist/AiConversation/_lobe/Video/style.d.ts +12 -0
- package/dist/AiConversation/_lobe/Video/style.js +33 -0
- package/dist/AiConversation/_lobe/awesome/AuroraBackground/AuroraBackground.d.ts +4 -0
- package/dist/AiConversation/_lobe/awesome/AuroraBackground/AuroraBackground.js +47 -0
- package/dist/AiConversation/_lobe/awesome/AuroraBackground/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/awesome/AuroraBackground/index.js +1 -0
- package/dist/AiConversation/_lobe/awesome/AuroraBackground/style.d.ts +5 -0
- package/dist/AiConversation/_lobe/awesome/AuroraBackground/style.js +14 -0
- package/dist/AiConversation/_lobe/awesome/AuroraBackground/type.d.ts +13 -0
- package/dist/AiConversation/_lobe/awesome/AuroraBackground/type.js +1 -0
- package/dist/AiConversation/_lobe/awesome/BottomGradientButton/BottomGradientButton.d.ts +3 -0
- package/dist/AiConversation/_lobe/awesome/BottomGradientButton/BottomGradientButton.js +37 -0
- package/dist/AiConversation/_lobe/awesome/BottomGradientButton/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/awesome/BottomGradientButton/index.js +1 -0
- package/dist/AiConversation/_lobe/awesome/BottomGradientButton/style.d.ts +1 -0
- package/dist/AiConversation/_lobe/awesome/BottomGradientButton/style.js +9 -0
- package/dist/AiConversation/_lobe/awesome/BottomGradientButton/type.d.ts +2 -0
- package/dist/AiConversation/_lobe/awesome/BottomGradientButton/type.js +1 -0
- package/dist/AiConversation/_lobe/awesome/Features/FeatureItem.d.ts +4 -0
- package/dist/AiConversation/_lobe/awesome/Features/FeatureItem.js +105 -0
- package/dist/AiConversation/_lobe/awesome/Features/Features.d.ts +4 -0
- package/dist/AiConversation/_lobe/awesome/Features/Features.js +41 -0
- package/dist/AiConversation/_lobe/awesome/Features/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/awesome/Features/index.js +1 -0
- package/dist/AiConversation/_lobe/awesome/Features/style.d.ts +10 -0
- package/dist/AiConversation/_lobe/awesome/Features/style.js +28 -0
- package/dist/AiConversation/_lobe/awesome/Features/type.d.ts +27 -0
- package/dist/AiConversation/_lobe/awesome/Features/type.js +1 -0
- package/dist/AiConversation/_lobe/awesome/Giscus/Giscus.d.ts +4 -0
- package/dist/AiConversation/_lobe/awesome/Giscus/Giscus.js +51 -0
- package/dist/AiConversation/_lobe/awesome/Giscus/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/awesome/Giscus/index.js +1 -0
- package/dist/AiConversation/_lobe/awesome/Giscus/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/awesome/Giscus/style.js +32 -0
- package/dist/AiConversation/_lobe/awesome/Giscus/type.d.ts +6 -0
- package/dist/AiConversation/_lobe/awesome/Giscus/type.js +1 -0
- package/dist/AiConversation/_lobe/awesome/GradientButton/GradientButton.d.ts +4 -0
- package/dist/AiConversation/_lobe/awesome/GradientButton/GradientButton.js +68 -0
- package/dist/AiConversation/_lobe/awesome/GradientButton/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/awesome/GradientButton/index.js +1 -0
- package/dist/AiConversation/_lobe/awesome/GradientButton/style.d.ts +5 -0
- package/dist/AiConversation/_lobe/awesome/GradientButton/style.js +14 -0
- package/dist/AiConversation/_lobe/awesome/GradientButton/type.d.ts +4 -0
- package/dist/AiConversation/_lobe/awesome/GradientButton/type.js +1 -0
- package/dist/AiConversation/_lobe/awesome/GridBackground/GridBackground.d.ts +4 -0
- package/dist/AiConversation/_lobe/awesome/GridBackground/GridBackground.js +114 -0
- package/dist/AiConversation/_lobe/awesome/GridBackground/GridShowcase.d.ts +4 -0
- package/dist/AiConversation/_lobe/awesome/GridBackground/GridShowcase.js +59 -0
- package/dist/AiConversation/_lobe/awesome/GridBackground/components/Grid.d.ts +26 -0
- package/dist/AiConversation/_lobe/awesome/GridBackground/components/Grid.js +103 -0
- package/dist/AiConversation/_lobe/awesome/GridBackground/index.d.ts +3 -0
- package/dist/AiConversation/_lobe/awesome/GridBackground/index.js +2 -0
- package/dist/AiConversation/_lobe/awesome/GridBackground/style.d.ts +7 -0
- package/dist/AiConversation/_lobe/awesome/GridBackground/style.js +17 -0
- package/dist/AiConversation/_lobe/awesome/GridBackground/type.d.ts +18 -0
- package/dist/AiConversation/_lobe/awesome/GridBackground/type.js +1 -0
- package/dist/AiConversation/_lobe/awesome/Hero/Hero.d.ts +4 -0
- package/dist/AiConversation/_lobe/awesome/Hero/Hero.js +98 -0
- package/dist/AiConversation/_lobe/awesome/Hero/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/awesome/Hero/index.js +1 -0
- package/dist/AiConversation/_lobe/awesome/Hero/style.d.ts +6 -0
- package/dist/AiConversation/_lobe/awesome/Hero/style.js +14 -0
- package/dist/AiConversation/_lobe/awesome/Hero/type.d.ts +14 -0
- package/dist/AiConversation/_lobe/awesome/Hero/type.js +1 -0
- package/dist/AiConversation/_lobe/awesome/Spline/ParentSize.d.ts +36 -0
- package/dist/AiConversation/_lobe/awesome/Spline/ParentSize.js +119 -0
- package/dist/AiConversation/_lobe/awesome/Spline/Spine.d.ts +6 -0
- package/dist/AiConversation/_lobe/awesome/Spline/Spine.js +148 -0
- package/dist/AiConversation/_lobe/awesome/Spline/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/awesome/Spline/index.js +1 -0
- package/dist/AiConversation/_lobe/awesome/Spline/type.d.ts +17 -0
- package/dist/AiConversation/_lobe/awesome/Spline/type.js +1 -0
- package/dist/AiConversation/_lobe/awesome/Spotlight/Spotlight.d.ts +4 -0
- package/dist/AiConversation/_lobe/awesome/Spotlight/Spotlight.js +52 -0
- package/dist/AiConversation/_lobe/awesome/Spotlight/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/awesome/Spotlight/index.js +1 -0
- package/dist/AiConversation/_lobe/awesome/Spotlight/style.d.ts +6 -0
- package/dist/AiConversation/_lobe/awesome/Spotlight/style.js +13 -0
- package/dist/AiConversation/_lobe/awesome/Spotlight/type.d.ts +4 -0
- package/dist/AiConversation/_lobe/awesome/Spotlight/type.js +1 -0
- package/dist/AiConversation/_lobe/awesome/Spotlight/useMouseOffset.d.ts +1 -0
- package/dist/AiConversation/_lobe/awesome/Spotlight/useMouseOffset.js +43 -0
- package/dist/AiConversation/_lobe/awesome/SpotlightCard/SpotlightCard.d.ts +4 -0
- package/dist/AiConversation/_lobe/awesome/SpotlightCard/SpotlightCard.js +91 -0
- package/dist/AiConversation/_lobe/awesome/SpotlightCard/SpotlightCardItem.d.ts +4 -0
- package/dist/AiConversation/_lobe/awesome/SpotlightCard/SpotlightCardItem.js +45 -0
- package/dist/AiConversation/_lobe/awesome/SpotlightCard/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/awesome/SpotlightCard/index.js +1 -0
- package/dist/AiConversation/_lobe/awesome/SpotlightCard/style.d.ts +8 -0
- package/dist/AiConversation/_lobe/awesome/SpotlightCard/style.js +15 -0
- package/dist/AiConversation/_lobe/awesome/SpotlightCard/type.d.ts +16 -0
- package/dist/AiConversation/_lobe/awesome/SpotlightCard/type.js +1 -0
- package/dist/AiConversation/_lobe/awesome/TypewriterEffect/TypewriterEffect.d.ts +4 -0
- package/dist/AiConversation/_lobe/awesome/TypewriterEffect/TypewriterEffect.js +314 -0
- package/dist/AiConversation/_lobe/awesome/TypewriterEffect/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/awesome/TypewriterEffect/index.js +1 -0
- package/dist/AiConversation/_lobe/awesome/TypewriterEffect/style.d.ts +10 -0
- package/dist/AiConversation/_lobe/awesome/TypewriterEffect/style.js +17 -0
- package/dist/AiConversation/_lobe/awesome/TypewriterEffect/type.d.ts +126 -0
- package/dist/AiConversation/_lobe/awesome/TypewriterEffect/type.js +1 -0
- package/dist/AiConversation/_lobe/awesome/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/awesome/index.js +11 -0
- package/dist/AiConversation/_lobe/base-ui/ContextMenu/ContextMenuHost.d.ts +2 -0
- package/dist/AiConversation/_lobe/base-ui/ContextMenu/ContextMenuHost.js +72 -0
- package/dist/AiConversation/_lobe/base-ui/ContextMenu/ContextMenuTrigger.d.ts +15 -0
- package/dist/AiConversation/_lobe/base-ui/ContextMenu/ContextMenuTrigger.js +56 -0
- package/dist/AiConversation/_lobe/base-ui/ContextMenu/imperative.d.ts +3 -0
- package/dist/AiConversation/_lobe/base-ui/ContextMenu/imperative.js +3 -0
- package/dist/AiConversation/_lobe/base-ui/ContextMenu/index.d.ts +5 -0
- package/dist/AiConversation/_lobe/base-ui/ContextMenu/index.js +1 -0
- package/dist/AiConversation/_lobe/base-ui/ContextMenu/renderItems.d.ts +5 -0
- package/dist/AiConversation/_lobe/base-ui/ContextMenu/renderItems.js +278 -0
- package/dist/AiConversation/_lobe/base-ui/ContextMenu/store.d.ts +28 -0
- package/dist/AiConversation/_lobe/base-ui/ContextMenu/store.js +114 -0
- package/dist/AiConversation/_lobe/base-ui/ContextMenu/style.d.ts +1 -0
- package/dist/AiConversation/_lobe/base-ui/ContextMenu/style.js +1 -0
- package/dist/AiConversation/_lobe/base-ui/ContextMenu/type.d.ts +4 -0
- package/dist/AiConversation/_lobe/base-ui/ContextMenu/type.js +1 -0
- package/dist/AiConversation/_lobe/base-ui/DropdownMenu/DropdownMenu.d.ts +4 -0
- package/dist/AiConversation/_lobe/base-ui/DropdownMenu/DropdownMenu.js +118 -0
- package/dist/AiConversation/_lobe/base-ui/DropdownMenu/atoms.d.ts +114 -0
- package/dist/AiConversation/_lobe/base-ui/DropdownMenu/atoms.js +318 -0
- package/dist/AiConversation/_lobe/base-ui/DropdownMenu/index.d.ts +4 -0
- package/dist/AiConversation/_lobe/base-ui/DropdownMenu/index.js +3 -0
- package/dist/AiConversation/_lobe/base-ui/DropdownMenu/renderItems.d.ts +5 -0
- package/dist/AiConversation/_lobe/base-ui/DropdownMenu/renderItems.js +185 -0
- package/dist/AiConversation/_lobe/base-ui/DropdownMenu/type.d.ts +39 -0
- package/dist/AiConversation/_lobe/base-ui/DropdownMenu/type.js +1 -0
- package/dist/AiConversation/_lobe/base-ui/FloatingSheet/FloatingSheet.d.ts +2 -0
- package/dist/AiConversation/_lobe/base-ui/FloatingSheet/FloatingSheet.js +291 -0
- package/dist/AiConversation/_lobe/base-ui/FloatingSheet/FloatingSheetHeader.d.ts +11 -0
- package/dist/AiConversation/_lobe/base-ui/FloatingSheet/FloatingSheetHeader.js +34 -0
- package/dist/AiConversation/_lobe/base-ui/FloatingSheet/helpers.d.ts +16 -0
- package/dist/AiConversation/_lobe/base-ui/FloatingSheet/helpers.js +27 -0
- package/dist/AiConversation/_lobe/base-ui/FloatingSheet/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/base-ui/FloatingSheet/index.js +1 -0
- package/dist/AiConversation/_lobe/base-ui/FloatingSheet/style.d.ts +18 -0
- package/dist/AiConversation/_lobe/base-ui/FloatingSheet/style.js +27 -0
- package/dist/AiConversation/_lobe/base-ui/FloatingSheet/type.d.ts +21 -0
- package/dist/AiConversation/_lobe/base-ui/FloatingSheet/type.js +1 -0
- package/dist/AiConversation/_lobe/base-ui/FloatingSheet/useSheetDrag.d.ts +12 -0
- package/dist/AiConversation/_lobe/base-ui/FloatingSheet/useSheetDrag.js +67 -0
- package/dist/AiConversation/_lobe/base-ui/FloatingSheet/useSnapPoints.d.ts +29 -0
- package/dist/AiConversation/_lobe/base-ui/FloatingSheet/useSnapPoints.js +101 -0
- package/dist/AiConversation/_lobe/base-ui/Modal/Modal.d.ts +4 -0
- package/dist/AiConversation/_lobe/base-ui/Modal/Modal.js +329 -0
- package/dist/AiConversation/_lobe/base-ui/Modal/atoms.d.ts +50 -0
- package/dist/AiConversation/_lobe/base-ui/Modal/atoms.js +313 -0
- package/dist/AiConversation/_lobe/base-ui/Modal/constants.d.ts +5 -0
- package/dist/AiConversation/_lobe/base-ui/Modal/constants.js +31 -0
- package/dist/AiConversation/_lobe/base-ui/Modal/context.d.ts +4 -0
- package/dist/AiConversation/_lobe/base-ui/Modal/context.js +14 -0
- package/dist/AiConversation/_lobe/base-ui/Modal/imperative.d.ts +20 -0
- package/dist/AiConversation/_lobe/base-ui/Modal/imperative.js +383 -0
- package/dist/AiConversation/_lobe/base-ui/Modal/index.d.ts +6 -0
- package/dist/AiConversation/_lobe/base-ui/Modal/index.js +5 -0
- package/dist/AiConversation/_lobe/base-ui/Modal/style.d.ts +22 -0
- package/dist/AiConversation/_lobe/base-ui/Modal/style.js +29 -0
- package/dist/AiConversation/_lobe/base-ui/Modal/type.d.ts +106 -0
- package/dist/AiConversation/_lobe/base-ui/Modal/type.js +1 -0
- package/dist/AiConversation/_lobe/base-ui/Modal/zIndexManager.d.ts +1 -0
- package/dist/AiConversation/_lobe/base-ui/Modal/zIndexManager.js +6 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/ArrowIcon.d.ts +1 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/ArrowIcon.js +17 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/Popover.d.ts +5 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/Popover.js +23 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/PopoverGroup.d.ts +7 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/PopoverGroup.js +155 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/PopoverInGroup.d.ts +3 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/PopoverInGroup.js +91 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/PopoverPortal.d.ts +1 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/PopoverPortal.js +9 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/PopoverStandalone.d.ts +7 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/PopoverStandalone.js +203 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/atoms.d.ts +49 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/atoms.js +162 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/context.d.ts +10 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/context.js +23 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/groupContext.d.ts +24 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/groupContext.js +5 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/index.d.ts +8 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/index.js +6 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/style.d.ts +7 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/style.js +14 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/type.d.ts +148 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/type.js +1 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/useMergedPopoverProps.d.ts +3 -0
- package/dist/AiConversation/_lobe/base-ui/Popover/useMergedPopoverProps.js +79 -0
- package/dist/AiConversation/_lobe/base-ui/ScrollArea/ScrollArea.d.ts +3 -0
- package/dist/AiConversation/_lobe/base-ui/ScrollArea/ScrollArea.js +38 -0
- package/dist/AiConversation/_lobe/base-ui/ScrollArea/atoms.d.ts +38 -0
- package/dist/AiConversation/_lobe/base-ui/ScrollArea/atoms.js +81 -0
- package/dist/AiConversation/_lobe/base-ui/ScrollArea/globalStyle.d.ts +9 -0
- package/dist/AiConversation/_lobe/base-ui/ScrollArea/globalStyle.js +16 -0
- package/dist/AiConversation/_lobe/base-ui/ScrollArea/index.d.ts +4 -0
- package/dist/AiConversation/_lobe/base-ui/ScrollArea/index.js +2 -0
- package/dist/AiConversation/_lobe/base-ui/ScrollArea/style.d.ts +9 -0
- package/dist/AiConversation/_lobe/base-ui/ScrollArea/style.js +16 -0
- package/dist/AiConversation/_lobe/base-ui/ScrollArea/type.d.ts +12 -0
- package/dist/AiConversation/_lobe/base-ui/ScrollArea/type.js +1 -0
- package/dist/AiConversation/_lobe/base-ui/Select/Select.d.ts +4 -0
- package/dist/AiConversation/_lobe/base-ui/Select/Select.js +700 -0
- package/dist/AiConversation/_lobe/base-ui/Select/atoms.d.ts +91 -0
- package/dist/AiConversation/_lobe/base-ui/Select/atoms.js +223 -0
- package/dist/AiConversation/_lobe/base-ui/Select/index.d.ts +3 -0
- package/dist/AiConversation/_lobe/base-ui/Select/index.js +2 -0
- package/dist/AiConversation/_lobe/base-ui/Select/style.d.ts +37 -0
- package/dist/AiConversation/_lobe/base-ui/Select/style.js +64 -0
- package/dist/AiConversation/_lobe/base-ui/Select/type.d.ts +106 -0
- package/dist/AiConversation/_lobe/base-ui/Select/type.js +1 -0
- package/dist/AiConversation/_lobe/base-ui/Switch/Switch.d.ts +4 -0
- package/dist/AiConversation/_lobe/base-ui/Switch/Switch.js +87 -0
- package/dist/AiConversation/_lobe/base-ui/Switch/atoms.d.ts +20 -0
- package/dist/AiConversation/_lobe/base-ui/Switch/atoms.js +201 -0
- package/dist/AiConversation/_lobe/base-ui/Switch/index.d.ts +3 -0
- package/dist/AiConversation/_lobe/base-ui/Switch/index.js +2 -0
- package/dist/AiConversation/_lobe/base-ui/Switch/style.d.ts +21 -0
- package/dist/AiConversation/_lobe/base-ui/Switch/style.js +45 -0
- package/dist/AiConversation/_lobe/base-ui/Switch/type.d.ts +126 -0
- package/dist/AiConversation/_lobe/base-ui/Switch/type.js +1 -0
- package/dist/AiConversation/_lobe/base-ui/Toast/Toast.d.ts +4 -0
- package/dist/AiConversation/_lobe/base-ui/Toast/Toast.js +155 -0
- package/dist/AiConversation/_lobe/base-ui/Toast/context.d.ts +8 -0
- package/dist/AiConversation/_lobe/base-ui/Toast/context.js +10 -0
- package/dist/AiConversation/_lobe/base-ui/Toast/imperative.d.ts +32 -0
- package/dist/AiConversation/_lobe/base-ui/Toast/imperative.js +297 -0
- package/dist/AiConversation/_lobe/base-ui/Toast/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/base-ui/Toast/index.js +1 -0
- package/dist/AiConversation/_lobe/base-ui/Toast/style.d.ts +37 -0
- package/dist/AiConversation/_lobe/base-ui/Toast/style.js +82 -0
- package/dist/AiConversation/_lobe/base-ui/Toast/type.d.ts +144 -0
- package/dist/AiConversation/_lobe/base-ui/Toast/type.js +1 -0
- package/dist/AiConversation/_lobe/base-ui/index.d.ts +12 -0
- package/dist/AiConversation/_lobe/base-ui/index.js +11 -0
- package/dist/AiConversation/_lobe/chat/BackBottom/BackBottom.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/BackBottom/BackBottom.js +61 -0
- package/dist/AiConversation/_lobe/chat/BackBottom/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/chat/BackBottom/index.js +1 -0
- package/dist/AiConversation/_lobe/chat/BackBottom/style.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/BackBottom/style.js +11 -0
- package/dist/AiConversation/_lobe/chat/BackBottom/type.d.ts +11 -0
- package/dist/AiConversation/_lobe/chat/BackBottom/type.js +1 -0
- package/dist/AiConversation/_lobe/chat/Bubble/Bubble.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/Bubble/Bubble.js +36 -0
- package/dist/AiConversation/_lobe/chat/Bubble/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/chat/Bubble/index.js +1 -0
- package/dist/AiConversation/_lobe/chat/Bubble/style.d.ts +11 -0
- package/dist/AiConversation/_lobe/chat/Bubble/style.js +33 -0
- package/dist/AiConversation/_lobe/chat/Bubble/type.d.ts +7 -0
- package/dist/AiConversation/_lobe/chat/Bubble/type.js +1 -0
- package/dist/AiConversation/_lobe/chat/ChatHeader/ChatHeader.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/ChatHeader/ChatHeader.js +77 -0
- package/dist/AiConversation/_lobe/chat/ChatHeader/ChatHeaderTitle.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/ChatHeader/ChatHeaderTitle.js +45 -0
- package/dist/AiConversation/_lobe/chat/ChatHeader/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/chat/ChatHeader/index.js +6 -0
- package/dist/AiConversation/_lobe/chat/ChatHeader/style.d.ts +14 -0
- package/dist/AiConversation/_lobe/chat/ChatHeader/style.js +25 -0
- package/dist/AiConversation/_lobe/chat/ChatHeader/type.d.ts +28 -0
- package/dist/AiConversation/_lobe/chat/ChatHeader/type.js +1 -0
- package/dist/AiConversation/_lobe/chat/ChatInputArea/ChatInputArea.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/ChatInputArea/ChatInputArea.js +70 -0
- package/dist/AiConversation/_lobe/chat/ChatInputArea/components/ChatInputActionBar.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/ChatInputArea/components/ChatInputActionBar.js +54 -0
- package/dist/AiConversation/_lobe/chat/ChatInputArea/components/ChatInputAreaInner.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/ChatInputArea/components/ChatInputAreaInner.js +61 -0
- package/dist/AiConversation/_lobe/chat/ChatInputArea/components/ChatSendButton.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/ChatInputArea/components/ChatSendButton.js +81 -0
- package/dist/AiConversation/_lobe/chat/ChatInputArea/index.d.ts +17 -0
- package/dist/AiConversation/_lobe/chat/ChatInputArea/index.js +12 -0
- package/dist/AiConversation/_lobe/chat/ChatInputArea/style.d.ts +10 -0
- package/dist/AiConversation/_lobe/chat/ChatInputArea/style.js +20 -0
- package/dist/AiConversation/_lobe/chat/ChatInputArea/type.d.ts +50 -0
- package/dist/AiConversation/_lobe/chat/ChatInputArea/type.js +1 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/ChatItem.d.ts +5 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/ChatItem.js +199 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/components/Actions.d.ts +11 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/components/Actions.js +28 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/components/Avatar.d.ts +15 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/components/Avatar.js +55 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/components/BorderSpacing.d.ts +6 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/components/BorderSpacing.js +12 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/components/ErrorContent.d.ts +9 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/components/ErrorContent.js +24 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/components/Loading.d.ts +8 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/components/Loading.js +25 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/components/MessageContent.d.ts +20 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/components/MessageContent.js +61 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/components/Title.d.ts +11 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/components/Title.js +23 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/index.js +1 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/style.d.ts +29 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/style.js +42 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/type.d.ts +89 -0
- package/dist/AiConversation/_lobe/chat/ChatItem/type.js +1 -0
- package/dist/AiConversation/_lobe/chat/ChatList/ChatList.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/ChatList/ChatList.js +70 -0
- package/dist/AiConversation/_lobe/chat/ChatList/components/ChatActionsBar.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/ChatList/components/ChatActionsBar.js +29 -0
- package/dist/AiConversation/_lobe/chat/ChatList/components/ChatListItem.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/ChatList/components/ChatListItem.js +185 -0
- package/dist/AiConversation/_lobe/chat/ChatList/components/HistoryDivider.d.ts +7 -0
- package/dist/AiConversation/_lobe/chat/ChatList/components/HistoryDivider.js +24 -0
- package/dist/AiConversation/_lobe/chat/ChatList/components/useChatListActionsBar.d.ts +17 -0
- package/dist/AiConversation/_lobe/chat/ChatList/components/useChatListActionsBar.js +33 -0
- package/dist/AiConversation/_lobe/chat/ChatList/index.d.ts +3 -0
- package/dist/AiConversation/_lobe/chat/ChatList/index.js +2 -0
- package/dist/AiConversation/_lobe/chat/ChatList/style.d.ts +3 -0
- package/dist/AiConversation/_lobe/chat/ChatList/style.js +9 -0
- package/dist/AiConversation/_lobe/chat/ChatList/type.d.ts +94 -0
- package/dist/AiConversation/_lobe/chat/ChatList/type.js +1 -0
- package/dist/AiConversation/_lobe/chat/EditableMessage/EditableMessage.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/EditableMessage/EditableMessage.js +117 -0
- package/dist/AiConversation/_lobe/chat/EditableMessage/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/chat/EditableMessage/index.js +1 -0
- package/dist/AiConversation/_lobe/chat/EditableMessage/type.d.ts +37 -0
- package/dist/AiConversation/_lobe/chat/EditableMessage/type.js +1 -0
- package/dist/AiConversation/_lobe/chat/EditableMessageList/EditableMessageList.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/EditableMessageList/EditableMessageList.js +126 -0
- package/dist/AiConversation/_lobe/chat/EditableMessageList/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/chat/EditableMessageList/index.js +1 -0
- package/dist/AiConversation/_lobe/chat/EditableMessageList/messageReducer.d.ts +37 -0
- package/dist/AiConversation/_lobe/chat/EditableMessageList/messageReducer.js +81 -0
- package/dist/AiConversation/_lobe/chat/EditableMessageList/type.d.ts +15 -0
- package/dist/AiConversation/_lobe/chat/EditableMessageList/type.js +1 -0
- package/dist/AiConversation/_lobe/chat/LoadingDots/LoadingDots.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/LoadingDots/LoadingDots.js +138 -0
- package/dist/AiConversation/_lobe/chat/LoadingDots/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/chat/LoadingDots/index.js +1 -0
- package/dist/AiConversation/_lobe/chat/LoadingDots/style.d.ts +10 -0
- package/dist/AiConversation/_lobe/chat/LoadingDots/style.js +24 -0
- package/dist/AiConversation/_lobe/chat/LoadingDots/type.d.ts +27 -0
- package/dist/AiConversation/_lobe/chat/LoadingDots/type.js +1 -0
- package/dist/AiConversation/_lobe/chat/MessageInput/MessageInput.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/MessageInput/MessageInput.js +139 -0
- package/dist/AiConversation/_lobe/chat/MessageInput/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/chat/MessageInput/index.js +1 -0
- package/dist/AiConversation/_lobe/chat/MessageInput/style.d.ts +1 -0
- package/dist/AiConversation/_lobe/chat/MessageInput/style.js +8 -0
- package/dist/AiConversation/_lobe/chat/MessageInput/type.d.ts +25 -0
- package/dist/AiConversation/_lobe/chat/MessageInput/type.js +1 -0
- package/dist/AiConversation/_lobe/chat/MessageModal/MessageModal.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/MessageModal/MessageModal.js +138 -0
- package/dist/AiConversation/_lobe/chat/MessageModal/TextArea.d.ts +8 -0
- package/dist/AiConversation/_lobe/chat/MessageModal/TextArea.js +41 -0
- package/dist/AiConversation/_lobe/chat/MessageModal/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/chat/MessageModal/index.js +1 -0
- package/dist/AiConversation/_lobe/chat/MessageModal/type.d.ts +23 -0
- package/dist/AiConversation/_lobe/chat/MessageModal/type.js +1 -0
- package/dist/AiConversation/_lobe/chat/TokenTag/TokenTag.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/TokenTag/TokenTag.js +73 -0
- package/dist/AiConversation/_lobe/chat/TokenTag/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/chat/TokenTag/index.js +1 -0
- package/dist/AiConversation/_lobe/chat/TokenTag/type.d.ts +12 -0
- package/dist/AiConversation/_lobe/chat/TokenTag/type.js +1 -0
- package/dist/AiConversation/_lobe/chat/index.d.ts +12 -0
- package/dist/AiConversation/_lobe/chat/index.js +12 -0
- package/dist/AiConversation/_lobe/chat/types/chatMessage.d.ts +43 -0
- package/dist/AiConversation/_lobe/chat/types/chatMessage.js +1 -0
- package/dist/AiConversation/_lobe/chat/types/error.d.ts +20 -0
- package/dist/AiConversation/_lobe/chat/types/error.js +23 -0
- package/dist/AiConversation/_lobe/chat/types/index.d.ts +4 -0
- package/dist/AiConversation/_lobe/chat/types/index.js +4 -0
- package/dist/AiConversation/_lobe/chat/types/llm.d.ts +47 -0
- package/dist/AiConversation/_lobe/chat/types/llm.js +12 -0
- package/dist/AiConversation/_lobe/chat/types/meta.d.ts +26 -0
- package/dist/AiConversation/_lobe/chat/types/meta.js +1 -0
- package/dist/AiConversation/_lobe/color/ColorScales/ScaleRow.d.ts +8 -0
- package/dist/AiConversation/_lobe/color/ColorScales/ScaleRow.js +85 -0
- package/dist/AiConversation/_lobe/color/ColorScales/index.d.ts +18 -0
- package/dist/AiConversation/_lobe/color/ColorScales/index.js +76 -0
- package/dist/AiConversation/_lobe/color/ColorScales/style.d.ts +10 -0
- package/dist/AiConversation/_lobe/color/ColorScales/style.js +17 -0
- package/dist/AiConversation/_lobe/color/CssVar/ScaleRow.d.ts +8 -0
- package/dist/AiConversation/_lobe/color/CssVar/ScaleRow.js +61 -0
- package/dist/AiConversation/_lobe/color/CssVar/VarRow.d.ts +6 -0
- package/dist/AiConversation/_lobe/color/CssVar/VarRow.js +56 -0
- package/dist/AiConversation/_lobe/color/CssVar/index.d.ts +18 -0
- package/dist/AiConversation/_lobe/color/CssVar/index.js +87 -0
- package/dist/AiConversation/_lobe/color/CssVar/style.d.ts +10 -0
- package/dist/AiConversation/_lobe/color/CssVar/style.js +17 -0
- package/dist/AiConversation/_lobe/color/colors/blue.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/colors/blue.js +7 -0
- package/dist/AiConversation/_lobe/color/colors/cyan.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/colors/cyan.js +7 -0
- package/dist/AiConversation/_lobe/color/colors/geekblue.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/colors/geekblue.js +7 -0
- package/dist/AiConversation/_lobe/color/colors/gold.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/colors/gold.js +7 -0
- package/dist/AiConversation/_lobe/color/colors/gray.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/colors/gray.js +7 -0
- package/dist/AiConversation/_lobe/color/colors/green.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/colors/green.js +7 -0
- package/dist/AiConversation/_lobe/color/colors/index.d.ts +33 -0
- package/dist/AiConversation/_lobe/color/colors/index.js +45 -0
- package/dist/AiConversation/_lobe/color/colors/lime.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/colors/lime.js +7 -0
- package/dist/AiConversation/_lobe/color/colors/magenta.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/colors/magenta.js +7 -0
- package/dist/AiConversation/_lobe/color/colors/orange.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/colors/orange.js +7 -0
- package/dist/AiConversation/_lobe/color/colors/primary.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/colors/primary.js +7 -0
- package/dist/AiConversation/_lobe/color/colors/purple.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/colors/purple.js +7 -0
- package/dist/AiConversation/_lobe/color/colors/red.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/colors/red.js +7 -0
- package/dist/AiConversation/_lobe/color/colors/volcano.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/colors/volcano.js +7 -0
- package/dist/AiConversation/_lobe/color/colors/yellow.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/colors/yellow.js +7 -0
- package/dist/AiConversation/_lobe/color/index.d.ts +5 -0
- package/dist/AiConversation/_lobe/color/index.js +4 -0
- package/dist/AiConversation/_lobe/color/neutrals/index.d.ts +15 -0
- package/dist/AiConversation/_lobe/color/neutrals/index.js +18 -0
- package/dist/AiConversation/_lobe/color/neutrals/mauve.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/neutrals/mauve.js +7 -0
- package/dist/AiConversation/_lobe/color/neutrals/olive.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/neutrals/olive.js +7 -0
- package/dist/AiConversation/_lobe/color/neutrals/sage.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/neutrals/sage.js +7 -0
- package/dist/AiConversation/_lobe/color/neutrals/sand.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/neutrals/sand.js +7 -0
- package/dist/AiConversation/_lobe/color/neutrals/slate.d.ts +3 -0
- package/dist/AiConversation/_lobe/color/neutrals/slate.js +7 -0
- package/dist/AiConversation/_lobe/color/types.d.ts +22 -0
- package/dist/AiConversation/_lobe/color/types.js +1 -0
- package/dist/AiConversation/_lobe/hooks/useCopied.d.ts +4 -0
- package/dist/AiConversation/_lobe/hooks/useCopied.js +33 -0
- package/dist/AiConversation/_lobe/hooks/useEventCallback.d.ts +1 -0
- package/dist/AiConversation/_lobe/hooks/useEventCallback.js +10 -0
- package/dist/AiConversation/_lobe/hooks/useFloatingLayer.d.ts +17 -0
- package/dist/AiConversation/_lobe/hooks/useFloatingLayer.js +24 -0
- package/dist/AiConversation/_lobe/hooks/useHighlight.d.ts +17 -0
- package/dist/AiConversation/_lobe/hooks/useHighlight.js +246 -0
- package/dist/AiConversation/_lobe/hooks/useIsClient.d.ts +1 -0
- package/dist/AiConversation/_lobe/hooks/useIsClient.js +18 -0
- package/dist/AiConversation/_lobe/hooks/useMarkdown/index.d.ts +4 -0
- package/dist/AiConversation/_lobe/hooks/useMarkdown/index.js +4 -0
- package/dist/AiConversation/_lobe/hooks/useMarkdown/latex.d.ts +179 -0
- package/dist/AiConversation/_lobe/hooks/useMarkdown/latex.js +529 -0
- package/dist/AiConversation/_lobe/hooks/useMarkdown/useMarkdownComponents.d.ts +2 -0
- package/dist/AiConversation/_lobe/hooks/useMarkdown/useMarkdownComponents.js +140 -0
- package/dist/AiConversation/_lobe/hooks/useMarkdown/useMarkdownContent.d.ts +1 -0
- package/dist/AiConversation/_lobe/hooks/useMarkdown/useMarkdownContent.js +64 -0
- package/dist/AiConversation/_lobe/hooks/useMarkdown/useMarkdownRehypePlugins.d.ts +2 -0
- package/dist/AiConversation/_lobe/hooks/useMarkdown/useMarkdownRehypePlugins.js +32 -0
- package/dist/AiConversation/_lobe/hooks/useMarkdown/useMarkdownRemarkPlugins.d.ts +2 -0
- package/dist/AiConversation/_lobe/hooks/useMarkdown/useMarkdownRemarkPlugins.js +40 -0
- package/dist/AiConversation/_lobe/hooks/useMarkdown/utils.d.ts +30 -0
- package/dist/AiConversation/_lobe/hooks/useMarkdown/utils.js +137 -0
- package/dist/AiConversation/_lobe/hooks/useMermaid.d.ts +13 -0
- package/dist/AiConversation/_lobe/hooks/useMermaid.js +201 -0
- package/dist/AiConversation/_lobe/hooks/useNativeButton.d.ts +32 -0
- package/dist/AiConversation/_lobe/hooks/useNativeButton.js +121 -0
- package/dist/AiConversation/_lobe/hooks/useStreamHighlight.d.ts +8 -0
- package/dist/AiConversation/_lobe/hooks/useStreamHighlight.js +414 -0
- package/dist/AiConversation/_lobe/hooks/useStreamMermaid.d.ts +9 -0
- package/dist/AiConversation/_lobe/hooks/useStreamMermaid.js +137 -0
- package/dist/AiConversation/_lobe/hooks/useTextOverflow.d.ts +7 -0
- package/dist/AiConversation/_lobe/hooks/useTextOverflow.js +37 -0
- package/dist/AiConversation/_lobe/i18n/context.d.ts +13 -0
- package/dist/AiConversation/_lobe/i18n/context.js +25 -0
- package/dist/AiConversation/_lobe/i18n/index.d.ts +5 -0
- package/dist/AiConversation/_lobe/i18n/index.js +3 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/chat.d.ts +8 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/chat.js +7 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/common.d.ts +8 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/common.js +7 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/editableMessage.d.ts +10 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/editableMessage.js +9 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/emojiPicker.d.ts +9 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/emojiPicker.js +8 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/form.d.ts +7 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/form.js +6 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/hotkey.d.ts +8 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/hotkey.js +7 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/image.d.ts +15 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/image.js +14 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/index.d.ts +9 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/index.js +9 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/messageModal.d.ts +6 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/messageModal.js +5 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/sideNav.d.ts +18 -0
- package/dist/AiConversation/_lobe/i18n/resources/en/sideNav.js +17 -0
- package/dist/AiConversation/_lobe/i18n/resources/index.d.ts +2 -0
- package/dist/AiConversation/_lobe/i18n/resources/index.js +5 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/chat.d.ts +8 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/chat.js +7 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/common.d.ts +8 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/common.js +7 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/editableMessage.d.ts +10 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/editableMessage.js +9 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/emojiPicker.d.ts +9 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/emojiPicker.js +8 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/form.d.ts +7 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/form.js +6 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/hotkey.d.ts +8 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/hotkey.js +7 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/image.d.ts +15 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/image.js +14 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/index.d.ts +9 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/index.js +9 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/messageModal.d.ts +6 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/messageModal.js +5 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/sideNav.d.ts +18 -0
- package/dist/AiConversation/_lobe/i18n/resources/zhCn/sideNav.js +17 -0
- package/dist/AiConversation/_lobe/i18n/types.d.ts +18 -0
- package/dist/AiConversation/_lobe/i18n/types.js +1 -0
- package/dist/AiConversation/_lobe/i18n/useTranslation.d.ts +5 -0
- package/dist/AiConversation/_lobe/i18n/useTranslation.js +19 -0
- package/dist/AiConversation/_lobe/icons/Auth0/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/Auth0/components/Avatar.js +26 -0
- package/dist/AiConversation/_lobe/icons/Auth0/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Auth0/components/Mono.js +40 -0
- package/dist/AiConversation/_lobe/icons/Auth0/index.d.ts +9 -0
- package/dist/AiConversation/_lobe/icons/Auth0/index.js +10 -0
- package/dist/AiConversation/_lobe/icons/Auth0/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/Auth0/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/Authelia/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/Authelia/components/Avatar.js +26 -0
- package/dist/AiConversation/_lobe/icons/Authelia/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Authelia/components/Color.js +132 -0
- package/dist/AiConversation/_lobe/icons/Authelia/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Authelia/components/Mono.js +48 -0
- package/dist/AiConversation/_lobe/icons/Authelia/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/Authelia/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/Authelia/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/Authelia/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/Authentik/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/Authentik/components/Avatar.js +26 -0
- package/dist/AiConversation/_lobe/icons/Authentik/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Authentik/components/Color.js +41 -0
- package/dist/AiConversation/_lobe/icons/Authentik/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Authentik/components/Mono.js +41 -0
- package/dist/AiConversation/_lobe/icons/Authentik/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/Authentik/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/Authentik/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/Authentik/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/Casdoor/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/Casdoor/components/Avatar.js +26 -0
- package/dist/AiConversation/_lobe/icons/Casdoor/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Casdoor/components/Color.js +98 -0
- package/dist/AiConversation/_lobe/icons/Casdoor/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Casdoor/components/Mono.js +44 -0
- package/dist/AiConversation/_lobe/icons/Casdoor/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/Casdoor/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/Casdoor/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/Casdoor/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/Clerk/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/Clerk/components/Avatar.js +26 -0
- package/dist/AiConversation/_lobe/icons/Clerk/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Clerk/components/Color.js +43 -0
- package/dist/AiConversation/_lobe/icons/Clerk/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Clerk/components/Mono.js +43 -0
- package/dist/AiConversation/_lobe/icons/Clerk/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/Clerk/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/Clerk/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/Clerk/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/DingTalk/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/DingTalk/components/Avatar.js +26 -0
- package/dist/AiConversation/_lobe/icons/DingTalk/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/DingTalk/components/Color.js +39 -0
- package/dist/AiConversation/_lobe/icons/DingTalk/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/DingTalk/components/Mono.js +40 -0
- package/dist/AiConversation/_lobe/icons/DingTalk/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/DingTalk/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/DingTalk/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/DingTalk/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/Discord/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/Discord/components/Avatar.js +26 -0
- package/dist/AiConversation/_lobe/icons/Discord/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Discord/components/Color.js +39 -0
- package/dist/AiConversation/_lobe/icons/Discord/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Discord/components/Mono.js +40 -0
- package/dist/AiConversation/_lobe/icons/Discord/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/Discord/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/Discord/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/Discord/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/GoogleChat/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/GoogleChat/components/Avatar.js +27 -0
- package/dist/AiConversation/_lobe/icons/GoogleChat/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/GoogleChat/components/Color.js +86 -0
- package/dist/AiConversation/_lobe/icons/GoogleChat/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/GoogleChat/components/Mono.js +40 -0
- package/dist/AiConversation/_lobe/icons/GoogleChat/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/GoogleChat/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/GoogleChat/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/GoogleChat/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/IMessage/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/IMessage/components/Avatar.js +27 -0
- package/dist/AiConversation/_lobe/icons/IMessage/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/IMessage/components/Color.js +39 -0
- package/dist/AiConversation/_lobe/icons/IMessage/components/Inner.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/IMessage/components/Inner.js +40 -0
- package/dist/AiConversation/_lobe/icons/IMessage/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/IMessage/components/Mono.js +40 -0
- package/dist/AiConversation/_lobe/icons/IMessage/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/IMessage/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/IMessage/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/IMessage/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/Lark/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/Lark/components/Avatar.js +26 -0
- package/dist/AiConversation/_lobe/icons/Lark/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Lark/components/Color.js +45 -0
- package/dist/AiConversation/_lobe/icons/Lark/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Lark/components/Mono.js +41 -0
- package/dist/AiConversation/_lobe/icons/Lark/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/Lark/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/Lark/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/Lark/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/Line/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/Line/components/Avatar.js +26 -0
- package/dist/AiConversation/_lobe/icons/Line/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Line/components/Color.js +39 -0
- package/dist/AiConversation/_lobe/icons/Line/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Line/components/Mono.js +40 -0
- package/dist/AiConversation/_lobe/icons/Line/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/Line/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/Line/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/Line/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/Logto/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/Logto/components/Avatar.js +26 -0
- package/dist/AiConversation/_lobe/icons/Logto/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Logto/components/Color.js +60 -0
- package/dist/AiConversation/_lobe/icons/Logto/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Logto/components/Mono.js +41 -0
- package/dist/AiConversation/_lobe/icons/Logto/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/Logto/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/Logto/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/Logto/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftEntra/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftEntra/components/Avatar.js +25 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftEntra/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftEntra/components/Color.js +54 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftEntra/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftEntra/components/Mono.js +43 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftEntra/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftEntra/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftEntra/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftEntra/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftTeams/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftTeams/components/Avatar.js +26 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftTeams/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftTeams/components/Color.js +52 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftTeams/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftTeams/components/Mono.js +45 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftTeams/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftTeams/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftTeams/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/MicrosoftTeams/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/NextAuth/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/NextAuth/components/Avatar.js +26 -0
- package/dist/AiConversation/_lobe/icons/NextAuth/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/NextAuth/components/Color.js +109 -0
- package/dist/AiConversation/_lobe/icons/NextAuth/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/NextAuth/components/Mono.js +41 -0
- package/dist/AiConversation/_lobe/icons/NextAuth/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/NextAuth/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/NextAuth/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/NextAuth/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/QQ/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/QQ/components/Avatar.js +26 -0
- package/dist/AiConversation/_lobe/icons/QQ/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/QQ/components/Color.js +60 -0
- package/dist/AiConversation/_lobe/icons/QQ/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/QQ/components/Mono.js +40 -0
- package/dist/AiConversation/_lobe/icons/QQ/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/QQ/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/QQ/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/QQ/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/Slack/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/Slack/components/Avatar.js +26 -0
- package/dist/AiConversation/_lobe/icons/Slack/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Slack/components/Color.js +48 -0
- package/dist/AiConversation/_lobe/icons/Slack/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Slack/components/Mono.js +46 -0
- package/dist/AiConversation/_lobe/icons/Slack/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/Slack/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/Slack/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/Slack/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/Telegram/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/Telegram/components/Avatar.js +27 -0
- package/dist/AiConversation/_lobe/icons/Telegram/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Telegram/components/Color.js +39 -0
- package/dist/AiConversation/_lobe/icons/Telegram/components/Inner.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Telegram/components/Inner.js +40 -0
- package/dist/AiConversation/_lobe/icons/Telegram/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Telegram/components/Mono.js +40 -0
- package/dist/AiConversation/_lobe/icons/Telegram/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/Telegram/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/Telegram/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/Telegram/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/WeChat/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/WeChat/components/Avatar.js +26 -0
- package/dist/AiConversation/_lobe/icons/WeChat/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/WeChat/components/Color.js +39 -0
- package/dist/AiConversation/_lobe/icons/WeChat/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/WeChat/components/Mono.js +40 -0
- package/dist/AiConversation/_lobe/icons/WeChat/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/WeChat/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/WeChat/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/WeChat/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/WhatsApp/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/WhatsApp/components/Avatar.js +27 -0
- package/dist/AiConversation/_lobe/icons/WhatsApp/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/WhatsApp/components/Color.js +39 -0
- package/dist/AiConversation/_lobe/icons/WhatsApp/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/WhatsApp/components/Mono.js +40 -0
- package/dist/AiConversation/_lobe/icons/WhatsApp/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/WhatsApp/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/WhatsApp/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/WhatsApp/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/Zitadel/components/Avatar.d.ts +5 -0
- package/dist/AiConversation/_lobe/icons/Zitadel/components/Avatar.js +26 -0
- package/dist/AiConversation/_lobe/icons/Zitadel/components/Color.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Zitadel/components/Color.js +184 -0
- package/dist/AiConversation/_lobe/icons/Zitadel/components/Mono.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/Zitadel/components/Mono.js +70 -0
- package/dist/AiConversation/_lobe/icons/Zitadel/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/icons/Zitadel/index.js +12 -0
- package/dist/AiConversation/_lobe/icons/Zitadel/style.d.ts +2 -0
- package/dist/AiConversation/_lobe/icons/Zitadel/style.js +2 -0
- package/dist/AiConversation/_lobe/icons/index.d.ts +23 -0
- package/dist/AiConversation/_lobe/icons/index.js +23 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/AndroidIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/AndroidIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/AppleIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/AppleIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/AppstoreIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/AppstoreIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/BotPromptIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/BotPromptIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/BrainOffIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/BrainOffIcon.js +19 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/ChromeIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/ChromeIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/CodepenIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/CodepenIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/CodesandboxIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/CodesandboxIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/CreateBotIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/CreateBotIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/DiscordIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/DiscordIcon.js +10 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/FacebookIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/FacebookIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/FigmaIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/FigmaIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/FramerIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/FramerIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/GithubIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/GithubIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/GitlabIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/GitlabIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/GlobeOffIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/GlobeOffIcon.js +10 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/GooglePlayIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/GooglePlayIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/GroupBotIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/GroupBotIcon.js +13 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/GroupBotSquareIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/GroupBotSquareIcon.js +10 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/InstagramIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/InstagramIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/LeftClickIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/LeftClickIcon.js +10 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/LeftDoubleClickIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/LeftDoubleClickIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/LinkedinIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/LinkedinIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/McpIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/McpIcon.js +10 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/NotionIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/NotionIcon.js +13 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/PocketIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/PocketIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/ProviderIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/ProviderIcon.js +16 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/RailSymbolIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/RailSymbolIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/RedditIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/RedditIcon.js +16 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/RightClickIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/RightClickIcon.js +10 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/RightDoubleClickIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/RightDoubleClickIcon.js +10 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/ShapesUploadIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/ShapesUploadIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/SkillsIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/SkillsIcon.js +10 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/SlackIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/SlackIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/ThinkIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/ThinkIcon.js +10 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/TreeDownRightIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/TreeDownRightIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/TreeUpDownRightIcon.d.ts +3 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/TreeUpDownRightIcon.js +7 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/index.d.ts +37 -0
- package/dist/AiConversation/_lobe/icons/lucideExtra/index.js +37 -0
- package/dist/AiConversation/_lobe/index.d.ts +61 -0
- package/dist/AiConversation/_lobe/index.js +59 -0
- package/dist/AiConversation/_lobe/mdx/Callout/index.d.ts +7 -0
- package/dist/AiConversation/_lobe/mdx/Callout/index.js +88 -0
- package/dist/AiConversation/_lobe/mdx/Callout/style.d.ts +5 -0
- package/dist/AiConversation/_lobe/mdx/Callout/style.js +11 -0
- package/dist/AiConversation/_lobe/mdx/Cards/Card.d.ts +16 -0
- package/dist/AiConversation/_lobe/mdx/Cards/Card.js +105 -0
- package/dist/AiConversation/_lobe/mdx/Cards/index.d.ts +5 -0
- package/dist/AiConversation/_lobe/mdx/Cards/index.js +33 -0
- package/dist/AiConversation/_lobe/mdx/Cards/style.d.ts +3 -0
- package/dist/AiConversation/_lobe/mdx/Cards/style.js +9 -0
- package/dist/AiConversation/_lobe/mdx/FileTree/File.d.ts +9 -0
- package/dist/AiConversation/_lobe/mdx/FileTree/File.js +35 -0
- package/dist/AiConversation/_lobe/mdx/FileTree/Folder.d.ts +10 -0
- package/dist/AiConversation/_lobe/mdx/FileTree/Folder.js +57 -0
- package/dist/AiConversation/_lobe/mdx/FileTree/index.d.ts +5 -0
- package/dist/AiConversation/_lobe/mdx/FileTree/index.js +26 -0
- package/dist/AiConversation/_lobe/mdx/FileTree/style.d.ts +5 -0
- package/dist/AiConversation/_lobe/mdx/FileTree/style.js +12 -0
- package/dist/AiConversation/_lobe/mdx/Mdx/index.d.ts +18 -0
- package/dist/AiConversation/_lobe/mdx/Mdx/index.js +172 -0
- package/dist/AiConversation/_lobe/mdx/Steps/index.d.ts +4 -0
- package/dist/AiConversation/_lobe/mdx/Steps/index.js +26 -0
- package/dist/AiConversation/_lobe/mdx/Steps/style.d.ts +3 -0
- package/dist/AiConversation/_lobe/mdx/Steps/style.js +10 -0
- package/dist/AiConversation/_lobe/mdx/Tabs/Tab.d.ts +5 -0
- package/dist/AiConversation/_lobe/mdx/Tabs/Tab.js +28 -0
- package/dist/AiConversation/_lobe/mdx/Tabs/index.d.ts +11 -0
- package/dist/AiConversation/_lobe/mdx/Tabs/index.js +63 -0
- package/dist/AiConversation/_lobe/mdx/Tabs/style.d.ts +5 -0
- package/dist/AiConversation/_lobe/mdx/Tabs/style.js +11 -0
- package/dist/AiConversation/_lobe/mdx/index.d.ts +16 -0
- package/dist/AiConversation/_lobe/mdx/index.js +16 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/Citation/PopoverPanel.d.ts +10 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/Citation/PopoverPanel.js +80 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/Citation/index.d.ts +12 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/Citation/index.js +61 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/Citation/style.d.ts +6 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/Citation/style.js +13 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/CodeBlock.d.ts +10 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/CodeBlock.js +59 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/Image.d.ts +5 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/Image.js +28 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/Link.d.ts +13 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/Link.js +50 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/Pre/style.d.ts +3 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/Pre/style.js +9 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/Pre.d.ts +9 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/Pre.js +97 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/Section.d.ts +8 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/Section.js +30 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/Video.d.ts +5 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/Video.js +26 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/index.d.ts +3 -0
- package/dist/AiConversation/_lobe/mdx/mdxComponents/index.js +23 -0
- package/dist/AiConversation/_lobe/styles/animations.d.ts +1 -0
- package/dist/AiConversation/_lobe/styles/animations.js +4 -0
- package/dist/AiConversation/_lobe/styles/classNames.d.ts +4 -0
- package/dist/AiConversation/_lobe/styles/classNames.js +4 -0
- package/dist/AiConversation/_lobe/styles/customTheme.d.ts +28 -0
- package/dist/AiConversation/_lobe/styles/customTheme.js +32 -0
- package/dist/AiConversation/_lobe/styles/index.d.ts +5 -0
- package/dist/AiConversation/_lobe/styles/index.js +5 -0
- package/dist/AiConversation/_lobe/styles/theme/algorithms/darkAlgorithm.d.ts +2 -0
- package/dist/AiConversation/_lobe/styles/theme/algorithms/darkAlgorithm.js +37 -0
- package/dist/AiConversation/_lobe/styles/theme/algorithms/lightAlgorithm.d.ts +2 -0
- package/dist/AiConversation/_lobe/styles/theme/algorithms/lightAlgorithm.js +33 -0
- package/dist/AiConversation/_lobe/styles/theme/antdTheme.d.ts +15 -0
- package/dist/AiConversation/_lobe/styles/theme/antdTheme.js +54 -0
- package/dist/AiConversation/_lobe/styles/theme/customStylish.d.ts +3 -0
- package/dist/AiConversation/_lobe/styles/theme/customStylish.js +29 -0
- package/dist/AiConversation/_lobe/styles/theme/customStylishStatic.d.ts +2 -0
- package/dist/AiConversation/_lobe/styles/theme/customStylishStatic.js +50 -0
- package/dist/AiConversation/_lobe/styles/theme/customToken.d.ts +4 -0
- package/dist/AiConversation/_lobe/styles/theme/customToken.js +86 -0
- package/dist/AiConversation/_lobe/styles/theme/generateColorPalette.d.ts +11 -0
- package/dist/AiConversation/_lobe/styles/theme/generateColorPalette.js +35 -0
- package/dist/AiConversation/_lobe/styles/theme/token/base.d.ts +2 -0
- package/dist/AiConversation/_lobe/styles/theme/token/base.js +13 -0
- package/dist/AiConversation/_lobe/styles/theme/token/dark.d.ts +3 -0
- package/dist/AiConversation/_lobe/styles/theme/token/dark.js +47 -0
- package/dist/AiConversation/_lobe/styles/theme/token/light.d.ts +3 -0
- package/dist/AiConversation/_lobe/styles/theme/token/light.js +47 -0
- package/dist/AiConversation/_lobe/types/citation.d.ts +6 -0
- package/dist/AiConversation/_lobe/types/citation.js +1 -0
- package/dist/AiConversation/_lobe/types/customStylish.d.ts +20 -0
- package/dist/AiConversation/_lobe/types/customStylish.js +1 -0
- package/dist/AiConversation/_lobe/types/customToken.d.ts +25 -0
- package/dist/AiConversation/_lobe/types/customToken.js +3 -0
- package/dist/AiConversation/_lobe/types/global.d.ts +10 -0
- package/dist/AiConversation/_lobe/types/index.d.ts +12 -0
- package/dist/AiConversation/_lobe/types/index.js +4 -0
- package/dist/AiConversation/_lobe/types/trigger.d.ts +4 -0
- package/dist/AiConversation/_lobe/types/trigger.js +1 -0
- package/dist/AiConversation/_lobe/utils/blobToPng.d.ts +11 -0
- package/dist/AiConversation/_lobe/utils/blobToPng.js +73 -0
- package/dist/AiConversation/_lobe/utils/composeEventHandlers.d.ts +19 -0
- package/dist/AiConversation/_lobe/utils/composeEventHandlers.js +26 -0
- package/dist/AiConversation/_lobe/utils/copyToClipboard.d.ts +1 -0
- package/dist/AiConversation/_lobe/utils/copyToClipboard.js +36 -0
- package/dist/AiConversation/_lobe/utils/destroyOnInvalidActiveTriggerElement.d.ts +37 -0
- package/dist/AiConversation/_lobe/utils/destroyOnInvalidActiveTriggerElement.js +95 -0
- package/dist/AiConversation/_lobe/utils/devSingleton.d.ts +6 -0
- package/dist/AiConversation/_lobe/utils/devSingleton.js +69 -0
- package/dist/AiConversation/_lobe/utils/dom.d.ts +11 -0
- package/dist/AiConversation/_lobe/utils/dom.js +12 -0
- package/dist/AiConversation/_lobe/utils/downloadBlob.d.ts +1 -0
- package/dist/AiConversation/_lobe/utils/downloadBlob.js +33 -0
- package/dist/AiConversation/_lobe/utils/formatTime.d.ts +1 -0
- package/dist/AiConversation/_lobe/utils/formatTime.js +12 -0
- package/dist/AiConversation/_lobe/utils/genCdnUrl.d.ts +11 -0
- package/dist/AiConversation/_lobe/utils/genCdnUrl.js +21 -0
- package/dist/AiConversation/_lobe/utils/parseTrigger.d.ts +8 -0
- package/dist/AiConversation/_lobe/utils/parseTrigger.js +15 -0
- package/dist/AiConversation/_lobe/utils/placement.d.ts +31 -0
- package/dist/AiConversation/_lobe/utils/placement.js +148 -0
- package/dist/AiConversation/_lobe/utils/platform.d.ts +1 -0
- package/dist/AiConversation/_lobe/utils/platform.js +1 -0
- package/dist/AiConversation/_lobe/utils/safeParseJSON.d.ts +1 -0
- package/dist/AiConversation/_lobe/utils/safeParseJSON.js +10 -0
- package/dist/AiConversation/_lobe/utils/safeReadableColor.d.ts +1 -0
- package/dist/AiConversation/_lobe/utils/safeReadableColor.js +9 -0
- package/dist/AiConversation/_lobe/utils/smoothCorners.d.ts +39 -0
- package/dist/AiConversation/_lobe/utils/smoothCorners.js +112 -0
- package/dist/AiConversation/index.d.ts +36 -0
- package/dist/AiConversation/index.js +46 -0
- package/dist/Button/index.js +16 -4
- package/dist/CanvasEditor/index.js +85 -86
- package/dist/CanvasEditor/styles/index.less +6 -5
- package/dist/FormDesigner/Provider.d.ts +3 -0
- package/dist/FormDesigner/Provider.js +278 -0
- package/dist/FormDesigner/card/commonSettings.d.ts +81 -0
- package/dist/FormDesigner/card/commonSettings.js +84 -0
- package/dist/FormDesigner/card/fieldWrapper.d.ts +13 -0
- package/dist/FormDesigner/card/fieldWrapper.js +76 -0
- package/dist/FormDesigner/card/globalSettings.d.ts +49 -0
- package/dist/FormDesigner/card/globalSettings.js +49 -0
- package/dist/FormDesigner/card/index.d.ts +9 -0
- package/dist/FormDesigner/card/index.js +12 -0
- package/dist/FormDesigner/card/settings.d.ts +1789 -0
- package/dist/FormDesigner/card/settings.js +1031 -0
- package/dist/FormDesigner/card/settingsWidgets/iconPicker.d.ts +6 -0
- package/dist/FormDesigner/card/settingsWidgets/iconPicker.js +38 -0
- package/dist/FormDesigner/card/templates/feishuAlertHandled.d.ts +12 -0
- package/dist/FormDesigner/card/templates/feishuAlertHandled.js +263 -0
- package/dist/FormDesigner/card/templates/feishuAlertPending.d.ts +18 -0
- package/dist/FormDesigner/card/templates/feishuAlertPending.js +348 -0
- package/dist/FormDesigner/card/templates/feishuApprovalDashboard.d.ts +1 -0
- package/dist/FormDesigner/card/templates/feishuApprovalDashboard.js +255 -0
- package/dist/FormDesigner/card/templates/feishuArtistTeaSet.d.ts +1 -0
- package/dist/FormDesigner/card/templates/feishuArtistTeaSet.js +266 -0
- package/dist/FormDesigner/card/templates/feishuBirthdayWish.d.ts +1 -0
- package/dist/FormDesigner/card/templates/feishuBirthdayWish.js +284 -0
- package/dist/FormDesigner/card/templates/feishuBotTutorial.d.ts +1 -0
- package/dist/FormDesigner/card/templates/feishuBotTutorial.js +141 -0
- package/dist/FormDesigner/card/templates/feishuBusinessTrip.d.ts +1 -0
- package/dist/FormDesigner/card/templates/feishuBusinessTrip.js +505 -0
- package/dist/FormDesigner/card/templates/feishuCompanyMoment.d.ts +1 -0
- package/dist/FormDesigner/card/templates/feishuCompanyMoment.js +150 -0
- package/dist/FormDesigner/card/templates/feishuDeviceReady.d.ts +13 -0
- package/dist/FormDesigner/card/templates/feishuDeviceReady.js +282 -0
- package/dist/FormDesigner/card/templates/feishuDeviceReview.d.ts +36 -0
- package/dist/FormDesigner/card/templates/feishuDeviceReview.js +398 -0
- package/dist/FormDesigner/card/templates/feishuExpressLocker.d.ts +12 -0
- package/dist/FormDesigner/card/templates/feishuExpressLocker.js +182 -0
- package/dist/FormDesigner/card/templates/feishuJimeng.d.ts +1 -0
- package/dist/FormDesigner/card/templates/feishuJimeng.js +504 -0
- package/dist/FormDesigner/card/templates/feishuLarkDesign.d.ts +1 -0
- package/dist/FormDesigner/card/templates/feishuLarkDesign.js +868 -0
- package/dist/FormDesigner/card/templates/feishuLeaveApproval.d.ts +39 -0
- package/dist/FormDesigner/card/templates/feishuLeaveApproval.js +413 -0
- package/dist/FormDesigner/card/templates/feishuLeaveApproved.d.ts +25 -0
- package/dist/FormDesigner/card/templates/feishuLeaveApproved.js +291 -0
- package/dist/FormDesigner/card/templates/feishuLisaWelcome.d.ts +1 -0
- package/dist/FormDesigner/card/templates/feishuLisaWelcome.js +389 -0
- package/dist/FormDesigner/card/templates/feishuMeetingSchedule.d.ts +1 -0
- package/dist/FormDesigner/card/templates/feishuMeetingSchedule.js +178 -0
- package/dist/FormDesigner/card/templates/feishuMorningSummary.d.ts +15 -0
- package/dist/FormDesigner/card/templates/feishuMorningSummary.js +288 -0
- package/dist/FormDesigner/card/templates/feishuMusicJournal.d.ts +1 -0
- package/dist/FormDesigner/card/templates/feishuMusicJournal.js +435 -0
- package/dist/FormDesigner/card/templates/feishuOpenStream.d.ts +1 -0
- package/dist/FormDesigner/card/templates/feishuOpenStream.js +248 -0
- package/dist/FormDesigner/card/templates/feishuOrderConfirm.d.ts +44 -0
- package/dist/FormDesigner/card/templates/feishuOrderConfirm.js +718 -0
- package/dist/FormDesigner/card/templates/feishuPersonalBirthday.d.ts +1 -0
- package/dist/FormDesigner/card/templates/feishuPersonalBirthday.js +126 -0
- package/dist/FormDesigner/card/templates/feishuProjectAssistant.d.ts +1 -0
- package/dist/FormDesigner/card/templates/feishuProjectAssistant.js +486 -0
- package/dist/FormDesigner/card/templates/feishuSalesRanking.d.ts +1 -0
- package/dist/FormDesigner/card/templates/feishuSalesRanking.js +587 -0
- package/dist/FormDesigner/card/templates/feishuSignedContract.d.ts +12 -0
- package/dist/FormDesigner/card/templates/feishuSignedContract.js +258 -0
- package/dist/FormDesigner/card/templates/feishuStreamingGuide.d.ts +1 -0
- package/dist/FormDesigner/card/templates/feishuStreamingGuide.js +351 -0
- package/dist/FormDesigner/card/templates/feishuTeamBuilding.d.ts +1 -0
- package/dist/FormDesigner/card/templates/feishuTeamBuilding.js +229 -0
- package/dist/FormDesigner/card/templates/index.d.ts +48 -0
- package/dist/FormDesigner/card/templates/index.js +222 -0
- package/dist/FormDesigner/components/Canvas/core/EventLogPanel.d.ts +1 -0
- package/dist/FormDesigner/components/Canvas/core/EventLogPanel.js +243 -0
- package/dist/FormDesigner/components/Canvas/core/RenderChildren.d.ts +5 -0
- package/dist/FormDesigner/components/Canvas/core/RenderChildren.js +25 -0
- package/dist/FormDesigner/components/Canvas/core/RenderField.d.ts +10 -0
- package/dist/FormDesigner/components/Canvas/core/RenderField.js +201 -0
- package/dist/FormDesigner/components/Canvas/core/Wrapper.d.ts +9 -0
- package/dist/FormDesigner/components/Canvas/core/Wrapper.js +450 -0
- package/dist/FormDesigner/components/Canvas/core/index.d.ts +6 -0
- package/dist/FormDesigner/components/Canvas/core/index.js +198 -0
- package/dist/FormDesigner/components/Canvas/core/style.d.ts +12 -0
- package/dist/FormDesigner/components/Canvas/core/style.js +24 -0
- package/dist/FormDesigner/components/Canvas/index.d.ts +4 -0
- package/dist/FormDesigner/components/Canvas/index.js +276 -0
- package/dist/FormDesigner/components/Settings/GlobalSettings.d.ts +3 -0
- package/dist/FormDesigner/components/Settings/GlobalSettings.js +71 -0
- package/dist/FormDesigner/components/Settings/ItemSettings.d.ts +33 -0
- package/dist/FormDesigner/components/Settings/ItemSettings.js +2708 -0
- package/dist/FormDesigner/components/Settings/index.d.ts +3 -0
- package/dist/FormDesigner/components/Settings/index.js +224 -0
- package/dist/FormDesigner/components/Settings/style.d.ts +61 -0
- package/dist/FormDesigner/components/Settings/style.js +82 -0
- package/dist/FormDesigner/components/Sidebar/Element.d.ts +9 -0
- package/dist/FormDesigner/components/Sidebar/Element.js +197 -0
- package/dist/FormDesigner/components/Sidebar/index.d.ts +2 -0
- package/dist/FormDesigner/components/Sidebar/index.js +229 -0
- package/dist/FormDesigner/components/Sidebar/style.d.ts +22 -0
- package/dist/FormDesigner/components/Sidebar/style.js +28 -0
- package/dist/FormDesigner/i18next/index.d.ts +2 -0
- package/dist/FormDesigner/i18next/index.js +12 -0
- package/dist/FormDesigner/i18next/locales/enUS.json +51 -0
- package/dist/FormDesigner/i18next/locales/resources.d.ts +53 -0
- package/dist/FormDesigner/i18next/locales/resources.js +54 -0
- package/dist/FormDesigner/i18next/locales/zhCN.json +3 -0
- package/dist/FormDesigner/index.d.ts +7 -0
- package/dist/FormDesigner/index.js +56 -0
- package/dist/FormDesigner/settings/displayHeader.d.ts +142 -0
- package/dist/FormDesigner/settings/displayHeader.js +101 -0
- package/dist/FormDesigner/settings/index.d.ts +5585 -0
- package/dist/FormDesigner/settings/index.js +2399 -0
- package/dist/FormDesigner/styles/index.d.ts +3 -0
- package/dist/FormDesigner/styles/index.js +11 -0
- package/dist/FormDesigner/transformer/form-render.d.ts +2 -0
- package/dist/FormDesigner/transformer/form-render.js +82 -0
- package/dist/FormDesigner/types.d.ts +108 -0
- package/dist/FormDesigner/types.js +1 -0
- package/dist/FormDesigner/utils/context.d.ts +3 -0
- package/dist/FormDesigner/utils/context.js +3 -0
- package/dist/FormDesigner/utils/hooks.d.ts +3 -0
- package/dist/FormDesigner/utils/hooks.js +48 -0
- package/dist/FormDesigner/utils/idUtils.d.ts +2 -0
- package/dist/FormDesigner/utils/idUtils.js +14 -0
- package/dist/FormDesigner/utils/index.d.ts +51 -0
- package/dist/FormDesigner/utils/index.js +706 -0
- package/dist/FormDesigner/utils/mapping.d.ts +1 -0
- package/dist/FormDesigner/utils/mapping.js +31 -0
- package/dist/FormDesigner/utils/serialize.d.ts +21 -0
- package/dist/FormDesigner/utils/serialize.js +278 -0
- package/dist/FormDesigner/utils/settingPath.d.ts +2 -0
- package/dist/FormDesigner/utils/settingPath.js +97 -0
- package/dist/FormDesigner/utils/widgetIcons.d.ts +8 -0
- package/dist/FormDesigner/utils/widgetIcons.js +60 -0
- package/dist/FormDesigner/widgets/cardChartDataEditor.d.ts +14 -0
- package/dist/FormDesigner/widgets/cardChartDataEditor.js +117 -0
- package/dist/FormDesigner/widgets/cardImageListEditor.d.ts +13 -0
- package/dist/FormDesigner/widgets/cardImageListEditor.js +106 -0
- package/dist/FormDesigner/widgets/cardPersonListEditor.d.ts +14 -0
- package/dist/FormDesigner/widgets/cardPersonListEditor.js +114 -0
- package/dist/FormDesigner/widgets/cardStaticOptionsEditor.d.ts +17 -0
- package/dist/FormDesigner/widgets/cardStaticOptionsEditor.js +126 -0
- package/dist/FormDesigner/widgets/cardTableColumnsEditor.d.ts +25 -0
- package/dist/FormDesigner/widgets/cardTableColumnsEditor.js +241 -0
- package/dist/FormDesigner/widgets/cardTableRowsEditor.d.ts +18 -0
- package/dist/FormDesigner/widgets/cardTableRowsEditor.js +180 -0
- package/dist/FormDesigner/widgets/clearableNumberInput.d.ts +18 -0
- package/dist/FormDesigner/widgets/clearableNumberInput.js +62 -0
- package/dist/FormDesigner/widgets/dateDefaultValue.d.ts +10 -0
- package/dist/FormDesigner/widgets/dateDefaultValue.js +70 -0
- package/dist/FormDesigner/widgets/dateRangeDefaultValue.d.ts +10 -0
- package/dist/FormDesigner/widgets/dateRangeDefaultValue.js +60 -0
- package/dist/FormDesigner/widgets/formBtnGroup.d.ts +6 -0
- package/dist/FormDesigner/widgets/formBtnGroup.js +17 -0
- package/dist/FormDesigner/widgets/formContainer.d.ts +13 -0
- package/dist/FormDesigner/widgets/formContainer.js +20 -0
- package/dist/FormDesigner/widgets/formOptionDefaultValue.d.ts +10 -0
- package/dist/FormDesigner/widgets/formOptionDefaultValue.js +76 -0
- package/dist/FormDesigner/widgets/formOptionsEditor.d.ts +14 -0
- package/dist/FormDesigner/widgets/formOptionsEditor.js +135 -0
- package/dist/FormDesigner/widgets/formResetBtn.d.ts +3 -0
- package/dist/FormDesigner/widgets/formResetBtn.js +32 -0
- package/dist/FormDesigner/widgets/formSubmitBtn.d.ts +3 -0
- package/dist/FormDesigner/widgets/formSubmitBtn.js +32 -0
- package/dist/FormDesigner/widgets/htmlInput.d.ts +9 -0
- package/dist/FormDesigner/widgets/htmlInput.js +26 -0
- package/dist/FormDesigner/widgets/idInput.d.ts +9 -0
- package/dist/FormDesigner/widgets/idInput.js +106 -0
- package/dist/FormDesigner/widgets/index.d.ts +20 -0
- package/dist/FormDesigner/widgets/index.js +20 -0
- package/dist/FormDesigner/widgets/jsonInput.d.ts +9 -0
- package/dist/FormDesigner/widgets/jsonInput.js +30 -0
- package/dist/FormDesigner/widgets/list.d.ts +10 -0
- package/dist/FormDesigner/widgets/list.js +31 -0
- package/dist/FormDesigner/widgets/percentSlider.d.ts +20 -0
- package/dist/FormDesigner/widgets/percentSlider.js +93 -0
- package/dist/FormRender/FormPreview.d.ts +7 -0
- package/dist/FormRender/FormPreview.js +315 -0
- package/dist/FormRender/events/eventLog.d.ts +21 -0
- package/dist/FormRender/events/eventLog.js +27 -0
- package/dist/FormRender/events/fieldAssignments.d.ts +3 -0
- package/dist/FormRender/events/fieldAssignments.js +65 -0
- package/dist/FormRender/events/http/auth/config.d.ts +21 -0
- package/dist/FormRender/events/http/auth/config.js +48 -0
- package/dist/FormRender/events/http/auth/index.d.ts +2 -0
- package/dist/FormRender/events/http/auth/index.js +2 -0
- package/dist/FormRender/events/http/auth/oauth2.d.ts +97 -0
- package/dist/FormRender/events/http/auth/oauth2.js +196 -0
- package/dist/FormRender/events/http/clientSource.d.ts +6 -0
- package/dist/FormRender/events/http/clientSource.js +76 -0
- package/dist/FormRender/events/http/createRequest.d.ts +75 -0
- package/dist/FormRender/events/http/createRequest.js +350 -0
- package/dist/FormRender/events/http/jwt/index.d.ts +1 -0
- package/dist/FormRender/events/http/jwt/index.js +1 -0
- package/dist/FormRender/events/http/jwt/jwt.d.ts +53 -0
- package/dist/FormRender/events/http/jwt/jwt.js +129 -0
- package/dist/FormRender/events/http/sentryNoop.d.ts +20 -0
- package/dist/FormRender/events/http/sentryNoop.js +23 -0
- package/dist/FormRender/events/http/tokenRefresh.d.ts +28 -0
- package/dist/FormRender/events/http/tokenRefresh.js +170 -0
- package/dist/FormRender/events/http/types.d.ts +85 -0
- package/dist/FormRender/events/http/types.js +1 -0
- package/dist/FormRender/events/httpService.d.ts +25 -0
- package/dist/FormRender/events/httpService.js +113 -0
- package/dist/FormRender/events/index.d.ts +50 -0
- package/dist/FormRender/events/index.js +94 -0
- package/dist/FormRender/events/initialValue.d.ts +3 -0
- package/dist/FormRender/events/initialValue.js +114 -0
- package/dist/FormRender/events/linkage.d.ts +19 -0
- package/dist/FormRender/events/linkage.js +77 -0
- package/dist/FormRender/events/remoteData.d.ts +7 -0
- package/dist/FormRender/events/remoteData.js +136 -0
- package/dist/FormRender/events/utils.d.ts +13 -0
- package/dist/FormRender/events/utils.js +29 -0
- package/dist/FormRender/form-core/connectForm.d.ts +3 -0
- package/dist/FormRender/form-core/connectForm.js +19 -0
- package/dist/FormRender/form-core/index.d.ts +4 -0
- package/dist/FormRender/form-core/index.js +379 -0
- package/dist/FormRender/form-core/style.d.ts +7 -0
- package/dist/FormRender/form-core/style.js +14 -0
- package/dist/FormRender/index.d.ts +12 -0
- package/dist/FormRender/index.js +11 -0
- package/dist/FormRender/locales/en_US.d.ts +28 -0
- package/dist/FormRender/locales/en_US.js +27 -0
- package/dist/FormRender/locales/index.d.ts +57 -0
- package/dist/FormRender/locales/index.js +6 -0
- package/dist/FormRender/locales/zh_CN.d.ts +28 -0
- package/dist/FormRender/locales/zh_CN.js +27 -0
- package/dist/FormRender/models/bindValues.d.ts +2 -0
- package/dist/FormRender/models/bindValues.js +185 -0
- package/dist/FormRender/models/context.d.ts +3 -0
- package/dist/FormRender/models/context.js +3 -0
- package/dist/FormRender/models/expression.d.ts +7 -0
- package/dist/FormRender/models/expression.js +142 -0
- package/dist/FormRender/models/expressionSafety.d.ts +14 -0
- package/dist/FormRender/models/expressionSafety.js +27 -0
- package/dist/FormRender/models/fieldShouldUpdate.d.ts +2 -0
- package/dist/FormRender/models/fieldShouldUpdate.js +73 -0
- package/dist/FormRender/models/filterValuesByWidgets.d.ts +13 -0
- package/dist/FormRender/models/filterValuesByWidgets.js +51 -0
- package/dist/FormRender/models/filterValuesHidden.d.ts +5 -0
- package/dist/FormRender/models/filterValuesHidden.js +70 -0
- package/dist/FormRender/models/filterValuesUndefined.d.ts +2 -0
- package/dist/FormRender/models/filterValuesUndefined.js +47 -0
- package/dist/FormRender/models/flattenSchema.d.ts +3 -0
- package/dist/FormRender/models/flattenSchema.js +101 -0
- package/dist/FormRender/models/formCoreUtils.d.ts +8 -0
- package/dist/FormRender/models/formCoreUtils.js +199 -0
- package/dist/FormRender/models/formDataSkeleton.d.ts +1 -0
- package/dist/FormRender/models/formDataSkeleton.js +30 -0
- package/dist/FormRender/models/layout.d.ts +4 -0
- package/dist/FormRender/models/layout.js +90 -0
- package/dist/FormRender/models/mapping.d.ts +93 -0
- package/dist/FormRender/models/mapping.js +122 -0
- package/dist/FormRender/models/safeUrl.d.ts +17 -0
- package/dist/FormRender/models/safeUrl.js +44 -0
- package/dist/FormRender/models/sortProperties.d.ts +2 -0
- package/dist/FormRender/models/sortProperties.js +41 -0
- package/dist/FormRender/models/store.d.ts +10 -0
- package/dist/FormRender/models/store.js +28 -0
- package/dist/FormRender/models/transformProps.d.ts +34 -0
- package/dist/FormRender/models/transformProps.js +91 -0
- package/dist/FormRender/models/useForm.d.ts +3 -0
- package/dist/FormRender/models/useForm.js +460 -0
- package/dist/FormRender/models/validateMessage.d.ts +93 -0
- package/dist/FormRender/models/validateMessage.js +95 -0
- package/dist/FormRender/models/validates.d.ts +3 -0
- package/dist/FormRender/models/validates.js +221 -0
- package/dist/FormRender/openPreview.d.ts +2 -0
- package/dist/FormRender/openPreview.js +63 -0
- package/dist/FormRender/previewBridge.d.ts +9 -0
- package/dist/FormRender/previewBridge.js +26 -0
- package/dist/FormRender/previewInspect.d.ts +14 -0
- package/dist/FormRender/previewInspect.js +72 -0
- package/dist/FormRender/render-core/FieldErrorBoundary.d.ts +4 -0
- package/dist/FormRender/render-core/FieldErrorBoundary.js +33 -0
- package/dist/FormRender/render-core/FieldItem/field.d.ts +2 -0
- package/dist/FormRender/render-core/FieldItem/field.js +110 -0
- package/dist/FormRender/render-core/FieldItem/index.d.ts +2 -0
- package/dist/FormRender/render-core/FieldItem/index.js +64 -0
- package/dist/FormRender/render-core/FieldItem/main.d.ts +2 -0
- package/dist/FormRender/render-core/FieldItem/main.js +415 -0
- package/dist/FormRender/render-core/FieldItem/module.d.ts +17 -0
- package/dist/FormRender/render-core/FieldItem/module.js +365 -0
- package/dist/FormRender/render-core/FieldList/field.d.ts +2 -0
- package/dist/FormRender/render-core/FieldList/field.js +318 -0
- package/dist/FormRender/render-core/FieldList/index.d.ts +2 -0
- package/dist/FormRender/render-core/FieldList/index.js +55 -0
- package/dist/FormRender/render-core/FieldList/main.d.ts +2 -0
- package/dist/FormRender/render-core/FieldList/main.js +111 -0
- package/dist/FormRender/render-core/FieldList/modules.d.ts +7 -0
- package/dist/FormRender/render-core/FieldList/modules.js +120 -0
- package/dist/FormRender/render-core/index.d.ts +9 -0
- package/dist/FormRender/render-core/index.js +98 -0
- package/dist/FormRender/render-core/style.d.ts +11 -0
- package/dist/FormRender/render-core/style.js +22 -0
- package/dist/FormRender/types.d.ts +489 -0
- package/dist/FormRender/types.js +1 -0
- package/dist/FormRender/utils/index.d.ts +32 -0
- package/dist/FormRender/utils/index.js +120 -0
- package/dist/FormRender/widgets/advanced/chart.d.ts +2 -0
- package/dist/FormRender/widgets/advanced/chart.js +2 -0
- package/dist/FormRender/widgets/advanced/table.d.ts +2 -0
- package/dist/FormRender/widgets/advanced/table.js +2 -0
- package/dist/FormRender/widgets/card/behaviors.d.ts +47 -0
- package/dist/FormRender/widgets/card/behaviors.js +501 -0
- package/dist/FormRender/widgets/card/cardButton.d.ts +62 -0
- package/dist/FormRender/widgets/card/cardButton.js +249 -0
- package/dist/FormRender/widgets/card/cardHeader.d.ts +29 -0
- package/dist/FormRender/widgets/card/cardHeader.js +170 -0
- package/dist/FormRender/widgets/card/cardRoot.d.ts +21 -0
- package/dist/FormRender/widgets/card/cardRoot.js +124 -0
- package/dist/FormRender/widgets/card/chart.d.ts +26 -0
- package/dist/FormRender/widgets/card/chart.js +277 -0
- package/dist/FormRender/widgets/card/column.d.ts +21 -0
- package/dist/FormRender/widgets/card/column.js +81 -0
- package/dist/FormRender/widgets/card/columnSet.d.ts +18 -0
- package/dist/FormRender/widgets/card/columnSet.js +56 -0
- package/dist/FormRender/widgets/card/div.d.ts +17 -0
- package/dist/FormRender/widgets/card/div.js +57 -0
- package/dist/FormRender/widgets/card/fieldGroup.d.ts +30 -0
- package/dist/FormRender/widgets/card/fieldGroup.js +40 -0
- package/dist/FormRender/widgets/card/formContainer.d.ts +17 -0
- package/dist/FormRender/widgets/card/formContainer.js +30 -0
- package/dist/FormRender/widgets/card/hr.d.ts +1 -0
- package/dist/FormRender/widgets/card/hr.js +17 -0
- package/dist/FormRender/widgets/card/img.d.ts +23 -0
- package/dist/FormRender/widgets/card/img.js +106 -0
- package/dist/FormRender/widgets/card/imgCombination.d.ts +17 -0
- package/dist/FormRender/widgets/card/imgCombination.js +106 -0
- package/dist/FormRender/widgets/card/interactiveContainer.d.ts +37 -0
- package/dist/FormRender/widgets/card/interactiveContainer.js +166 -0
- package/dist/FormRender/widgets/card/loadingOverlay.d.ts +9 -0
- package/dist/FormRender/widgets/card/loadingOverlay.js +37 -0
- package/dist/FormRender/widgets/card/markdown.d.ts +31 -0
- package/dist/FormRender/widgets/card/markdown.js +364 -0
- package/dist/FormRender/widgets/card/personList.d.ts +25 -0
- package/dist/FormRender/widgets/card/personList.js +87 -0
- package/dist/FormRender/widgets/card/plainText.d.ts +2 -0
- package/dist/FormRender/widgets/card/plainText.js +2 -0
- package/dist/FormRender/widgets/card/repeat.d.ts +16 -0
- package/dist/FormRender/widgets/card/repeat.js +14 -0
- package/dist/FormRender/widgets/card/selectPerson.d.ts +22 -0
- package/dist/FormRender/widgets/card/selectPerson.js +51 -0
- package/dist/FormRender/widgets/card/selectStatic.d.ts +37 -0
- package/dist/FormRender/widgets/card/selectStatic.js +290 -0
- package/dist/FormRender/widgets/card/standardIcon.d.ts +16 -0
- package/dist/FormRender/widgets/card/standardIcon.js +146 -0
- package/dist/FormRender/widgets/card/style.d.ts +13 -0
- package/dist/FormRender/widgets/card/style.js +47 -0
- package/dist/FormRender/widgets/card/table.d.ts +21 -0
- package/dist/FormRender/widgets/card/table.js +93 -0
- package/dist/FormRender/widgets/card/textTag.d.ts +15 -0
- package/dist/FormRender/widgets/card/textTag.js +87 -0
- package/dist/FormRender/widgets/components/FButton.d.ts +2 -0
- package/dist/FormRender/widgets/components/FButton.js +32 -0
- package/dist/FormRender/widgets/components/HeaderTitle.d.ts +2 -0
- package/dist/FormRender/widgets/components/HeaderTitle.js +32 -0
- package/dist/FormRender/widgets/components/PanelView.d.ts +2 -0
- package/dist/FormRender/widgets/components/PanelView.js +29 -0
- package/dist/FormRender/widgets/containers/Card.d.ts +2 -0
- package/dist/FormRender/widgets/containers/Card.js +30 -0
- package/dist/FormRender/widgets/containers/Collapse.d.ts +17 -0
- package/dist/FormRender/widgets/containers/Collapse.js +80 -0
- package/dist/FormRender/widgets/containers/LineTitle.d.ts +2 -0
- package/dist/FormRender/widgets/containers/LineTitle.js +34 -0
- package/dist/FormRender/widgets/containers/SubInline.d.ts +2 -0
- package/dist/FormRender/widgets/containers/SubInline.js +64 -0
- package/dist/FormRender/widgets/containers/style.d.ts +24 -0
- package/dist/FormRender/widgets/containers/style.js +54 -0
- package/dist/FormRender/widgets/display/header.d.ts +2 -0
- package/dist/FormRender/widgets/display/header.js +2 -0
- package/dist/FormRender/widgets/display/hr.d.ts +2 -0
- package/dist/FormRender/widgets/display/hr.js +2 -0
- package/dist/FormRender/widgets/display/markdown.d.ts +2 -0
- package/dist/FormRender/widgets/display/markdown.js +2 -0
- package/dist/FormRender/widgets/display/plainText.d.ts +2 -0
- package/dist/FormRender/widgets/display/plainText.js +2 -0
- package/dist/FormRender/widgets/display/textTag.d.ts +2 -0
- package/dist/FormRender/widgets/display/textTag.js +2 -0
- package/dist/FormRender/widgets/fields/button.d.ts +37 -0
- package/dist/FormRender/widgets/fields/button.js +223 -0
- package/dist/FormRender/widgets/fields/checkbox.d.ts +2 -0
- package/dist/FormRender/widgets/fields/checkbox.js +36 -0
- package/dist/FormRender/widgets/fields/checkboxes.d.ts +2 -0
- package/dist/FormRender/widgets/fields/checkboxes.js +66 -0
- package/dist/FormRender/widgets/fields/color.d.ts +2 -0
- package/dist/FormRender/widgets/fields/color.js +98 -0
- package/dist/FormRender/widgets/fields/colorFormat.d.ts +4 -0
- package/dist/FormRender/widgets/fields/colorFormat.js +121 -0
- package/dist/FormRender/widgets/fields/date.d.ts +2 -0
- package/dist/FormRender/widgets/fields/date.js +83 -0
- package/dist/FormRender/widgets/fields/dateRange.d.ts +2 -0
- package/dist/FormRender/widgets/fields/dateRange.js +107 -0
- package/dist/FormRender/widgets/fields/html.d.ts +1 -0
- package/dist/FormRender/widgets/fields/html.js +59 -0
- package/dist/FormRender/widgets/fields/imageInput.d.ts +2 -0
- package/dist/FormRender/widgets/fields/imageInput.js +119 -0
- package/dist/FormRender/widgets/fields/input.d.ts +2 -0
- package/dist/FormRender/widgets/fields/input.js +94 -0
- package/dist/FormRender/widgets/fields/number.d.ts +2 -0
- package/dist/FormRender/widgets/fields/number.js +64 -0
- package/dist/FormRender/widgets/fields/percentSlider.d.ts +17 -0
- package/dist/FormRender/widgets/fields/percentSlider.js +92 -0
- package/dist/FormRender/widgets/fields/radio.d.ts +2 -0
- package/dist/FormRender/widgets/fields/radio.js +65 -0
- package/dist/FormRender/widgets/fields/rate.d.ts +2 -0
- package/dist/FormRender/widgets/fields/rate.js +3 -0
- package/dist/FormRender/widgets/fields/resetBtn.d.ts +7 -0
- package/dist/FormRender/widgets/fields/resetBtn.js +43 -0
- package/dist/FormRender/widgets/fields/select.d.ts +8 -0
- package/dist/FormRender/widgets/fields/select.js +156 -0
- package/dist/FormRender/widgets/fields/slider.d.ts +2 -0
- package/dist/FormRender/widgets/fields/slider.js +94 -0
- package/dist/FormRender/widgets/fields/style.d.ts +150 -0
- package/dist/FormRender/widgets/fields/style.js +137 -0
- package/dist/FormRender/widgets/fields/submitBtn.d.ts +9 -0
- package/dist/FormRender/widgets/fields/submitBtn.js +55 -0
- package/dist/FormRender/widgets/fields/switch.d.ts +2 -0
- package/dist/FormRender/widgets/fields/switch.js +3 -0
- package/dist/FormRender/widgets/fields/textArea.d.ts +2 -0
- package/dist/FormRender/widgets/fields/textArea.js +84 -0
- package/dist/FormRender/widgets/fields/time.d.ts +2 -0
- package/dist/FormRender/widgets/fields/time.js +65 -0
- package/dist/FormRender/widgets/fields/timeRange.d.ts +2 -0
- package/dist/FormRender/widgets/fields/timeRange.js +54 -0
- package/dist/FormRender/widgets/fields/treeSelect.d.ts +2 -0
- package/dist/FormRender/widgets/fields/treeSelect.js +3 -0
- package/dist/FormRender/widgets/fields/upload.d.ts +11 -0
- package/dist/FormRender/widgets/fields/upload.js +64 -0
- package/dist/FormRender/widgets/fields/urlInput.d.ts +2 -0
- package/dist/FormRender/widgets/fields/urlInput.js +73 -0
- package/dist/FormRender/widgets/index.d.ts +67 -0
- package/dist/FormRender/widgets/index.js +93 -0
- package/dist/FormRender/widgets/lists/CardList.d.ts +2 -0
- package/dist/FormRender/widgets/lists/CardList.js +152 -0
- package/dist/FormRender/widgets/lists/DrawerList.d.ts +11 -0
- package/dist/FormRender/widgets/lists/DrawerList.js +325 -0
- package/dist/FormRender/widgets/lists/SimpleList.d.ts +2 -0
- package/dist/FormRender/widgets/lists/SimpleList.js +131 -0
- package/dist/FormRender/widgets/lists/TabList.d.ts +12 -0
- package/dist/FormRender/widgets/lists/TabList.js +129 -0
- package/dist/FormRender/widgets/lists/TableList.d.ts +16 -0
- package/dist/FormRender/widgets/lists/TableList.js +285 -0
- package/dist/FormRender/widgets/lists/VirtualList.d.ts +16 -0
- package/dist/FormRender/widgets/lists/VirtualList.js +270 -0
- package/dist/FormRender/widgets/lists/style.d.ts +24 -0
- package/dist/FormRender/widgets/lists/style.js +51 -0
- package/dist/FormRender/widgets/special/ErrorSchema.d.ts +2 -0
- package/dist/FormRender/widgets/special/ErrorSchema.js +20 -0
- package/dist/FormRender/widgets/special/VoidTitle.d.ts +2 -0
- package/dist/FormRender/widgets/special/VoidTitle.js +23 -0
- package/dist/FormRender/widgets/utils/hooks.d.ts +3 -0
- package/dist/FormRender/widgets/utils/hooks.js +21 -0
- package/dist/FormRender/widgets/utils/index.d.ts +4 -0
- package/dist/FormRender/widgets/utils/index.js +81 -0
- package/dist/FormRender/widgets/utils/withFieldWrap.d.ts +2 -0
- package/dist/FormRender/widgets/utils/withFieldWrap.js +24 -0
- package/dist/FormRender/withProvider.d.ts +3 -0
- package/dist/FormRender/withProvider.js +91 -0
- package/dist/Lottie/CodeLight.d.ts +1 -1
- package/dist/Lottie/CodeLight.js +34 -30
- package/dist/Lottie/index.d.ts +1 -2
- package/dist/Lottie/index.js +10 -7
- package/dist/Lottie/styles/CodeLight.less +1 -1
- package/dist/Lottie/styles/index.css +1 -1
- package/dist/Lottie/styles/index.less +14 -23
- package/dist/MaxTokenSlider/index.d.ts +25 -0
- package/dist/MaxTokenSlider/index.js +152 -0
- package/dist/MaxTokenSlider/style.d.ts +6 -0
- package/dist/MaxTokenSlider/style.js +14 -0
- package/dist/Player/index.js +5 -4
- package/dist/RichText/index.js +105 -83
- package/dist/RichText/style/index.less +7 -1
- package/dist/Rive/CodeLight.d.ts +1 -1
- package/dist/Rive/CodeLight.js +34 -30
- package/dist/Rive/index.d.ts +1 -1
- package/dist/Rive/index.js +12 -9
- package/dist/Rive/styles/CodeLight.less +1 -1
- package/dist/Rive/styles/index.css +1 -1
- package/dist/Rive/styles/index.less +14 -23
- package/dist/Table/components/ColumnSetting/index.d.ts +1 -2
- package/dist/Table/components/ColumnSetting/index.js +39 -30
- package/dist/Table/components/EnumFilter/index.d.ts +1 -1
- package/dist/Table/components/EnumFilter/index.js +72 -54
- package/dist/Table/components/Export/RadioMode.d.ts +1 -2
- package/dist/Table/components/Export/RadioMode.js +14 -11
- package/dist/Table/components/Export/index.d.ts +1 -2
- package/dist/Table/components/Export/index.js +60 -40
- package/dist/Table/components/FilterDropdown/index.d.ts +1 -1
- package/dist/Table/components/FilterDropdown/index.js +23 -16
- package/dist/Table/components/FilterKeys/index.d.ts +1 -2
- package/dist/Table/components/FilterKeys/index.js +34 -28
- package/dist/Table/components/Reload/index.d.ts +1 -2
- package/dist/Table/components/Reload/index.js +9 -7
- package/dist/Table/components/SearchInput/index.d.ts +1 -1
- package/dist/Table/components/SearchInput/index.js +15 -10
- package/dist/Table/components/TableSize/index.d.ts +1 -2
- package/dist/Table/components/TableSize/index.js +8 -5
- package/dist/Table/components/TableTitle/index.d.ts +1 -2
- package/dist/Table/components/TableTitle/index.js +26 -17
- package/dist/Table/index.js +11 -4
- package/dist/Table/table.js +25 -22
- package/dist/Table/utils/getColumnEnumProps.js +11 -9
- package/dist/Table/utils/getDateColumn.js +41 -35
- package/dist/Table/utils/getInputColumn.js +10 -8
- package/dist/WaterfallVirtual/index.d.ts +1 -1
- package/dist/WaterfallVirtual/index.js +12 -8
- package/dist/WaterfallVirtual/styles/test.less +2 -5
- package/dist/WaterfallVirtual/tool.d.ts +1 -1
- package/dist/WaterfallVirtual/types.d.ts +2 -1
- package/dist/hooks/useDownloadImage/index.js +82 -84
- package/dist/index.d.ts +21 -1
- package/dist/index.js +37 -3
- package/package.json +76 -21
- package/dist/Table/utils/index.css +0 -0
- package/dist/components/fr-generator/demo/components/PanelView/index.css +0 -1
- package/dist/components/fr-generator/demo/components/boxcard/index.css +0 -1
- package/dist/components/fr-generator/demo/components/imageMask/index.css +0 -1
- package/dist/components/fr-generator/demo/components/imageUpload/index.css +0 -1
- package/dist/components/fr-generator/demo/components/slider/index.css +0 -1
- package/dist/components/fr-generator/demo/components/textarea/index.css +0 -1
|
@@ -0,0 +1,2708 @@
|
|
|
1
|
+
var _excluded = ["$id"];
|
|
2
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
8
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
11
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
13
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
14
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
15
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
|
+
/* eslint-disable @typescript-eslint/no-use-before-define -- editor helpers are declared below the main settings component */
|
|
21
|
+
import { CloseOutlined, DownloadOutlined, EditOutlined, PlusOutlined, SwapOutlined, ThunderboltOutlined } from '@ant-design/icons';
|
|
22
|
+
import { Button, Input, Radio, Select } from 'antd';
|
|
23
|
+
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
24
|
+
import FormRender from "../../../FormRender";
|
|
25
|
+
import useForm from "../../../FormRender/models/useForm";
|
|
26
|
+
import { formatColorValue } from "../../../FormRender/widgets/fields/colorFormat";
|
|
27
|
+
import { advancedElements, baseCommonSettings, defaultCommonSettings, defaultSettings, displayElements, elements, formBtnElements, layouts } from "../../settings";
|
|
28
|
+
import { getKeyFromUniqueId, isObject, mergeInOrder } from "../../utils";
|
|
29
|
+
import { useGlobal, useStore } from "../../utils/hooks";
|
|
30
|
+
import { getWidgetName } from "../../utils/mapping";
|
|
31
|
+
import { expandDotPathValue, mergeSchemaPatch } from "../../utils/settingPath";
|
|
32
|
+
import * as frgWidgets from "../../widgets";
|
|
33
|
+
import CardChartDataEditor from "../../widgets/cardChartDataEditor";
|
|
34
|
+
import CardTableColumnsEditor from "../../widgets/cardTableColumnsEditor";
|
|
35
|
+
import CardTableRowsEditor from "../../widgets/cardTableRowsEditor";
|
|
36
|
+
import useStyles from "./style";
|
|
37
|
+
|
|
38
|
+
// 样式相关的字段 key
|
|
39
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
40
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
41
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
42
|
+
var styleKeys = new Set(['width', 'labelWidth', 'displayType', 'readOnlyWidget', 'disabled', 'readOnly', 'hidden', 'style']);
|
|
43
|
+
|
|
44
|
+
// 卡片模式的样式字段写在 schema.props 下,用 dot-path key 配置。
|
|
45
|
+
// 这些 key 只影响视觉/布局,应该归到「样式」Tab,而不是「属性」Tab。
|
|
46
|
+
var cardStyleKeys = new Set(['props.margin', 'props.padding', 'props.width', 'props.height', 'props.weight', 'props.direction', 'props.horizontalSpacing', 'props.verticalSpacing', 'props.horizontalAlign', 'props.verticalAlign', 'props.flexMode', 'props.backgroundStyle', 'props.hasBorder', 'props.borderColor', 'props.cornerRadius', 'props.textAlign', 'props.textSize', 'props.text.text_size', 'props.text.text_align', 'props.text.text_color', 'props.icon.color', 'props.template', 'props.color', 'props.size', 'props.scaleType', 'props.transparent', 'props.combinationMode', 'props.combinationTransparent', 'props.type', 'props.danger', 'props.rowHeight', 'props.showAvatar', 'props.showName', 'props.lines']);
|
|
47
|
+
var isStyleSettingKey = function isStyleSettingKey(key) {
|
|
48
|
+
return styleKeys.has(key) || cardStyleKeys.has(key);
|
|
49
|
+
};
|
|
50
|
+
var getVisibleIdSetting = function getVisibleIdSetting(setting) {
|
|
51
|
+
var idSetting = _objectSpread(_objectSpread({}, defaultCommonSettings.$id), setting || {});
|
|
52
|
+
delete idSetting.hidden;
|
|
53
|
+
return idSetting;
|
|
54
|
+
};
|
|
55
|
+
var ensureVisibleIdSetting = function ensureVisibleIdSetting(properties) {
|
|
56
|
+
var _ref = properties || {},
|
|
57
|
+
$id = _ref.$id,
|
|
58
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
59
|
+
return _objectSpread({
|
|
60
|
+
$id: getVisibleIdSetting($id)
|
|
61
|
+
}, rest);
|
|
62
|
+
};
|
|
63
|
+
var hasOwn = function hasOwn(value, key) {
|
|
64
|
+
return !!value && Object.prototype.hasOwnProperty.call(value, key);
|
|
65
|
+
};
|
|
66
|
+
var hasCardNameField = function hasCardNameField(schema) {
|
|
67
|
+
return hasOwn(schema, 'name') || hasOwn(schema === null || schema === void 0 ? void 0 : schema.props, 'name');
|
|
68
|
+
};
|
|
69
|
+
var pickWidgetSetting = function pickWidgetSetting(widgetList, widgetName, schema) {
|
|
70
|
+
var candidates = widgetList.filter(function (e) {
|
|
71
|
+
return e.widget === widgetName;
|
|
72
|
+
});
|
|
73
|
+
if (candidates.length <= 1) return candidates[0] || {};
|
|
74
|
+
return candidates.find(function (e) {
|
|
75
|
+
var candidateSchema = e.schema || {};
|
|
76
|
+
return candidateSchema.widget === (schema === null || schema === void 0 ? void 0 : schema.widget) && hasCardNameField(candidateSchema) === hasCardNameField(schema);
|
|
77
|
+
}) || candidates.find(function (e) {
|
|
78
|
+
var _e$schema;
|
|
79
|
+
return ((_e$schema = e.schema) === null || _e$schema === void 0 ? void 0 : _e$schema.widget) === (schema === null || schema === void 0 ? void 0 : schema.widget);
|
|
80
|
+
}) || candidates[0] || {};
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
// 按钮类组件(事件 Tab 显示 props,样式 Tab 显示 style)
|
|
84
|
+
var btnWidgets = new Set(['formSubmitBtn', 'formResetBtn']);
|
|
85
|
+
var behaviorButtonWidgets = new Set(['button', 'cardButton']);
|
|
86
|
+
var chartWidgets = new Set(['chart', 'advancedChart']);
|
|
87
|
+
var personListWidget = 'personList';
|
|
88
|
+
var tableWidgets = new Set(['table', 'advancedTable']);
|
|
89
|
+
var interactiveContainerWidget = 'interactiveContainer';
|
|
90
|
+
var inputLikePropertyWidgets = new Set(['input', 'textArea', 'datePicker', 'dateRange', 'timePicker', 'inputNumber', 'slider', 'imageInput', 'color', 'checkbox', 'switch', 'select', 'multiSelect', 'radio', 'checkboxes']);
|
|
91
|
+
var cardButtonEventKeys = new Set(['props.behaviors']);
|
|
92
|
+
var interactiveContainerEventKeys = new Set(['props.behaviors', 'props.hoverTips.content']);
|
|
93
|
+
var chartConfigKeys = new Set(['props.chartSpec.data.values', 'props.chartSpec.title.text', 'props.chartSpec.type', 'props.height']);
|
|
94
|
+
var tableDataKeys = new Set(['props.columns', 'props.rows']);
|
|
95
|
+
var cardInputPropertyKeys = new Set(['props.width', 'disabled']);
|
|
96
|
+
var behaviorButtonPropertyKeys = new Set(['disabled']);
|
|
97
|
+
var imageDisplayPropertyKeys = new Set(['props.width']);
|
|
98
|
+
var chartTypeOptions = [{
|
|
99
|
+
label: '柱状图',
|
|
100
|
+
value: 'bar'
|
|
101
|
+
}, {
|
|
102
|
+
label: '折线图',
|
|
103
|
+
value: 'line'
|
|
104
|
+
}, {
|
|
105
|
+
label: '面积图',
|
|
106
|
+
value: 'area'
|
|
107
|
+
}, {
|
|
108
|
+
label: '饼图',
|
|
109
|
+
value: 'pie'
|
|
110
|
+
}, {
|
|
111
|
+
label: '散点图',
|
|
112
|
+
value: 'scatter'
|
|
113
|
+
}];
|
|
114
|
+
|
|
115
|
+
// 下拉类(panel-open 触发)— 打开面板时请求
|
|
116
|
+
var selectLikeWidgets = new Set(['select', 'multiSelect']);
|
|
117
|
+
// 单/多选按钮组(mount-time 触发)— 挂载时请求
|
|
118
|
+
var radioLikeWidgets = new Set(['radio', 'checkboxes']);
|
|
119
|
+
// 所有支持 remoteData + fieldAssignments 的"选项类"组件
|
|
120
|
+
var optionsWidgets = new Set([].concat(_toConsumableArray(selectLikeWidgets), _toConsumableArray(radioLikeWidgets)));
|
|
121
|
+
// 容器/列表类(不支持挂载请求初始值——它们聚合下级字段,本身没有"值")
|
|
122
|
+
var containerWidgets = new Set(['formContainer', 'object', 'list', 'simpleList', 'list2', 'drawerList']);
|
|
123
|
+
// 展示类(HTML 是纯展示,无值的概念)
|
|
124
|
+
var presentationalWidgets = new Set(['html', 'displayHeader', 'displayHr', 'displayMarkdown', 'displayPlainText', 'displayTextTag', 'advancedChart', 'advancedTable']);
|
|
125
|
+
|
|
126
|
+
// 「选字段」下拉里不能作为赋值/联动目标的 widget:容器、按钮、纯展示
|
|
127
|
+
// 选了它们也写不进值,下拉里直接过滤掉,避免用户配出无效规则。
|
|
128
|
+
var nonAssignableWidgets = new Set([].concat(_toConsumableArray(containerWidgets), _toConsumableArray(btnWidgets), _toConsumableArray(behaviorButtonWidgets), _toConsumableArray(presentationalWidgets), [
|
|
129
|
+
// 卡片模式:容器/按钮/纯展示组件(无对应表单值)
|
|
130
|
+
'cardButton', 'cardRoot', 'cardHeader', 'displayHeader', 'column', 'columnSet', 'interactiveContainer', 'repeat', 'hr', 'plainText', 'standardIcon',
|
|
131
|
+
// markdown 不在黑名单:它消费 form value(value 优先、content 兜底),
|
|
132
|
+
// 是挂载回填/字段赋值的典型目标(如休假审批的时间/备注展示字段)
|
|
133
|
+
'div', 'img', 'imgCombination', 'textTag', 'chart', 'table', 'personList', 'selectStatic', 'selectPerson']));
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* 「选字段」下拉的通用选项构造(linkages / fieldAssignments / setValues 共用)。
|
|
137
|
+
* - 只列**真正承载值的表单字段**:过滤容器/按钮/卡片展示组件 + object/array 容器节点;
|
|
138
|
+
* - label 永远人话:title → placeholder → 「未命名字段」,括号跟 key 防同名歧义。
|
|
139
|
+
*/
|
|
140
|
+
function buildFieldOptions(flatten, selfId) {
|
|
141
|
+
return Object.keys(flatten).filter(function (id) {
|
|
142
|
+
return id !== selfId && id !== '#';
|
|
143
|
+
}).map(function (id) {
|
|
144
|
+
var _flatten$id;
|
|
145
|
+
var schema = ((_flatten$id = flatten[id]) === null || _flatten$id === void 0 ? void 0 : _flatten$id.schema) || {};
|
|
146
|
+
var key = getKeyFromUniqueId(schema.$id);
|
|
147
|
+
return {
|
|
148
|
+
id: id,
|
|
149
|
+
key: key,
|
|
150
|
+
schema: schema
|
|
151
|
+
};
|
|
152
|
+
}).filter(function (o) {
|
|
153
|
+
var _o$key;
|
|
154
|
+
return !((_o$key = o.key) !== null && _o$key !== void 0 && _o$key.startsWith('_'));
|
|
155
|
+
}).filter(function (_ref2) {
|
|
156
|
+
var schema = _ref2.schema;
|
|
157
|
+
// 排除容器节点:type=object/array 且无显式 widget(widget 设置过的看后续 widget 黑名单判断)
|
|
158
|
+
if ((schema.type === 'object' || schema.type === 'array') && !schema.widget) return false;
|
|
159
|
+
// 排除已知不可赋值 widget
|
|
160
|
+
if (schema.widget && nonAssignableWidgets.has(schema.widget)) return false;
|
|
161
|
+
return true;
|
|
162
|
+
}).map(function (_ref3) {
|
|
163
|
+
var _schema$title, _schema$title$trim, _schema$placeholder, _schema$placeholder$t;
|
|
164
|
+
var id = _ref3.id,
|
|
165
|
+
key = _ref3.key,
|
|
166
|
+
schema = _ref3.schema;
|
|
167
|
+
var title = ((_schema$title = schema.title) === null || _schema$title === void 0 || (_schema$title$trim = _schema$title.trim) === null || _schema$title$trim === void 0 ? void 0 : _schema$title$trim.call(_schema$title)) || undefined;
|
|
168
|
+
var placeholder = ((_schema$placeholder = schema.placeholder) === null || _schema$placeholder === void 0 || (_schema$placeholder$t = _schema$placeholder.trim) === null || _schema$placeholder$t === void 0 ? void 0 : _schema$placeholder$t.call(_schema$placeholder)) || undefined;
|
|
169
|
+
var friendly = title || placeholder || '未命名字段';
|
|
170
|
+
return {
|
|
171
|
+
value: id,
|
|
172
|
+
label: "".concat(friendly, " (").concat(key, ")")
|
|
173
|
+
};
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
export default function ItemSettings(_ref4) {
|
|
177
|
+
var _frProps$props$onMoun, _frProps$props, _flatten$, _flatten$selected2, _flatten$selected3, _currentSchema$props2, _currentSchema$props3, _currentSchema$props4, _currentSchema$props5, _currentSchema$props6, _currentSchema$props7, _currentSchema$props8;
|
|
178
|
+
var widgets = _ref4.widgets,
|
|
179
|
+
_ref4$subTabKey = _ref4.subTabKey,
|
|
180
|
+
subTabKey = _ref4$subTabKey === void 0 ? 'props' : _ref4$subTabKey;
|
|
181
|
+
var _useStyles = useStyles(),
|
|
182
|
+
styles = _useStyles.styles;
|
|
183
|
+
var setGlobal = useGlobal();
|
|
184
|
+
var form = useForm();
|
|
185
|
+
var isReady = useRef(false);
|
|
186
|
+
var _useStore = useStore(),
|
|
187
|
+
selected = _useStore.selected,
|
|
188
|
+
flatten = _useStore.flatten,
|
|
189
|
+
onItemChange = _useStore.onItemChange,
|
|
190
|
+
onItemErrorChange = _useStore.onItemErrorChange,
|
|
191
|
+
_useStore$userProps = _useStore.userProps,
|
|
192
|
+
userProps = _useStore$userProps === void 0 ? {} : _useStore$userProps,
|
|
193
|
+
globalWidgets = _useStore.widgets,
|
|
194
|
+
globalMapping = _useStore.mapping,
|
|
195
|
+
frProps = _useStore.frProps;
|
|
196
|
+
var settings = userProps.settings,
|
|
197
|
+
commonSettings = userProps.commonSettings,
|
|
198
|
+
validation = userProps.validation,
|
|
199
|
+
transformer = userProps.transformer;
|
|
200
|
+
var _useState = useState({}),
|
|
201
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
202
|
+
settingSchema = _useState2[0],
|
|
203
|
+
setSettingSchema = _useState2[1];
|
|
204
|
+
var _widgets = _objectSpread(_objectSpread({}, globalWidgets), frgWidgets);
|
|
205
|
+
var getWidgetList = function getWidgetList(settings, commonSettings) {
|
|
206
|
+
return settings.reduce(function (widgetList, setting) {
|
|
207
|
+
if (!Array.isArray(setting.widgets)) return widgetList;
|
|
208
|
+
var basicWidgets = setting.widgets.map(function (item) {
|
|
209
|
+
var baseItemSettings = {};
|
|
210
|
+
if (item.schema.type === 'array' && item.schema.items) {
|
|
211
|
+
baseItemSettings.items = {
|
|
212
|
+
type: 'object',
|
|
213
|
+
hidden: '{{true}}'
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
217
|
+
widget: item.widget || item.schema.widget || getWidgetName(item.schema, globalMapping),
|
|
218
|
+
setting: mergeInOrder(baseCommonSettings, commonSettings, baseItemSettings, item.setting)
|
|
219
|
+
});
|
|
220
|
+
});
|
|
221
|
+
return [].concat(_toConsumableArray(widgetList), _toConsumableArray(basicWidgets));
|
|
222
|
+
}, []);
|
|
223
|
+
};
|
|
224
|
+
var onDataChange = function onDataChange(_v) {
|
|
225
|
+
try {
|
|
226
|
+
var _flatten$selected;
|
|
227
|
+
if (selected === '#' || !isReady.current) return;
|
|
228
|
+
// $id 可能不在当前 Tab 的表单值中(样式/事件 Tab 过滤掉了),用原始值兜底
|
|
229
|
+
var originalSchema = expandDotPathValue(((_flatten$selected = flatten[selected]) === null || _flatten$selected === void 0 ? void 0 : _flatten$selected.schema) || {});
|
|
230
|
+
var value = form.getValues(undefined, undefined, true);
|
|
231
|
+
var settingValue = expandDotPathValue(value);
|
|
232
|
+
if (!settingValue.$id) settingValue.$id = originalSchema.$id;
|
|
233
|
+
if (!settingValue.$id) return;
|
|
234
|
+
var selectedWidgetName = getWidgetName(originalSchema, globalMapping);
|
|
235
|
+
if (selectedWidgetName === 'color') {
|
|
236
|
+
var _settingValue$props$c, _settingValue$props, _settingValue$props$d, _settingValue$props2;
|
|
237
|
+
var colorFormat = (_settingValue$props$c = (_settingValue$props = settingValue.props) === null || _settingValue$props === void 0 ? void 0 : _settingValue$props.colorFormat) !== null && _settingValue$props$c !== void 0 ? _settingValue$props$c : 'hex';
|
|
238
|
+
var disabledAlpha = (_settingValue$props$d = (_settingValue$props2 = settingValue.props) === null || _settingValue$props2 === void 0 ? void 0 : _settingValue$props2.disabledAlpha) !== null && _settingValue$props$d !== void 0 ? _settingValue$props$d : false;
|
|
239
|
+
var nextDefault = formatColorValue(settingValue.default, colorFormat, disabledAlpha);
|
|
240
|
+
if (nextDefault !== settingValue.default) {
|
|
241
|
+
settingValue.default = nextDefault;
|
|
242
|
+
form.setValues({
|
|
243
|
+
default: nextDefault
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
var newSchema = transformer.fromSetting(settingValue);
|
|
248
|
+
// 保留原始 schema 中的关键字段(隐藏字段可能不在表单值中)
|
|
249
|
+
var item = _objectSpread(_objectSpread({}, flatten[selected]), {}, {
|
|
250
|
+
schema: mergeSchemaPatch(originalSchema, newSchema)
|
|
251
|
+
});
|
|
252
|
+
onItemChange(selected, item, 'schema');
|
|
253
|
+
} catch (error) {
|
|
254
|
+
console.error(error, 'catch');
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
useEffect(function () {
|
|
258
|
+
try {
|
|
259
|
+
isReady.current = false;
|
|
260
|
+
var item = flatten[selected];
|
|
261
|
+
// 选中根 '#' 或失效时,清掉上一次的 settingSchema,避免 属性 Tab 残留旧字段
|
|
262
|
+
// (例:从子字段点面包屑「表单」回到根 cardRoot,属性 Tab 之前会还显示子字段的设置)
|
|
263
|
+
if (!item || selected === '#') {
|
|
264
|
+
setSettingSchema({});
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
var _settings = Array.isArray(settings) ? [].concat(_toConsumableArray(settings), [{
|
|
268
|
+
widgets: [].concat(_toConsumableArray(elements), _toConsumableArray(advancedElements), _toConsumableArray(displayElements), _toConsumableArray(layouts), _toConsumableArray(formBtnElements))
|
|
269
|
+
}]) : defaultSettings;
|
|
270
|
+
var _commonSettings = isObject(commonSettings) ? commonSettings : defaultCommonSettings;
|
|
271
|
+
var widgetList = getWidgetList(_settings, _commonSettings);
|
|
272
|
+
var widgetName = getWidgetName(item.schema, globalMapping);
|
|
273
|
+
var element = pickWidgetSetting(widgetList, widgetName, item.schema);
|
|
274
|
+
var properties = _objectSpread({}, element.setting || mergeInOrder(baseCommonSettings, _commonSettings));
|
|
275
|
+
properties = ensureVisibleIdSetting(properties);
|
|
276
|
+
|
|
277
|
+
// 内部组件(按钮等)去除不相关的通用字段
|
|
278
|
+
if (btnWidgets.has(widgetName)) {
|
|
279
|
+
var keysToRemove = ['title', 'description', 'default', 'required', 'placeholder', 'bind', 'min', 'max', 'disabled', 'readOnly', 'hidden', 'readOnlyWidget', 'width', 'labelWidth', 'displayType', 'minLength', 'maxLength', 'pattern'];
|
|
280
|
+
keysToRemove.forEach(function (k) {
|
|
281
|
+
return delete properties[k];
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
setTimeout(function () {
|
|
285
|
+
setSettingSchema({
|
|
286
|
+
type: 'object',
|
|
287
|
+
displayType: 'column',
|
|
288
|
+
properties: properties
|
|
289
|
+
});
|
|
290
|
+
var value = transformer.toSetting(item.schema);
|
|
291
|
+
// 把嵌套 value 平铺成 dot-path key 形式合并进去 — setting 字段名
|
|
292
|
+
// 用 'props.content'/'props.title.content' 这种带点 key 时,
|
|
293
|
+
// form-render 把它当一个普通字符串 key,需要 formData 里也有
|
|
294
|
+
// 同名 key 才能读出 value(写时它检测到点自动 set-by-path,但读
|
|
295
|
+
// 没用 get-by-path 不对称)。这里把所有路径都补到 formData 里
|
|
296
|
+
// 兼容两种字段名风格。
|
|
297
|
+
var dotFlat = {};
|
|
298
|
+
var walk = function walk(obj, prefix) {
|
|
299
|
+
if (!obj || _typeof(obj) !== 'object' || Array.isArray(obj)) return;
|
|
300
|
+
for (var _i = 0, _Object$entries = Object.entries(obj); _i < _Object$entries.length; _i++) {
|
|
301
|
+
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
302
|
+
k = _Object$entries$_i[0],
|
|
303
|
+
v = _Object$entries$_i[1];
|
|
304
|
+
var path = prefix ? "".concat(prefix, ".").concat(k) : k;
|
|
305
|
+
dotFlat[path] = v;
|
|
306
|
+
if (v && _typeof(v) === 'object' && !Array.isArray(v)) walk(v, path);
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
walk(value, '');
|
|
310
|
+
form.resetFields();
|
|
311
|
+
form.setValues(_objectSpread(_objectSpread({}, value), dotFlat));
|
|
312
|
+
onDataChange(form.getValues());
|
|
313
|
+
if (validation) form.submit();
|
|
314
|
+
isReady.current = true;
|
|
315
|
+
}, 0);
|
|
316
|
+
} catch (error) {
|
|
317
|
+
isReady.current = true;
|
|
318
|
+
console.error(error);
|
|
319
|
+
}
|
|
320
|
+
}, [selected]);
|
|
321
|
+
useEffect(function () {
|
|
322
|
+
if (validation) onItemErrorChange(form === null || form === void 0 ? void 0 : form.errorFields);
|
|
323
|
+
}, [validation, form === null || form === void 0 ? void 0 : form.errorFields]);
|
|
324
|
+
useEffect(function () {
|
|
325
|
+
setGlobal({
|
|
326
|
+
settingsForm: form
|
|
327
|
+
});
|
|
328
|
+
}, []);
|
|
329
|
+
|
|
330
|
+
// 判断当前选中组件是否是事件类组件(按钮等)
|
|
331
|
+
var currentWidgetName = useMemo(function () {
|
|
332
|
+
var _item$schema;
|
|
333
|
+
if (!selected || !flatten[selected]) return '';
|
|
334
|
+
var item = flatten[selected];
|
|
335
|
+
// 根 '#' 的 widget/style/props 被 schemaToState 抽到 frProps,schema 上读不到 widget,
|
|
336
|
+
// 这里兜底从 frProps 取,否则根为 cardRoot 时事件 Tab/属性 Tab 全部判空。
|
|
337
|
+
if (selected === '#' && !((_item$schema = item.schema) !== null && _item$schema !== void 0 && _item$schema.widget) && frProps !== null && frProps !== void 0 && frProps.widget) {
|
|
338
|
+
return getWidgetName(_objectSpread(_objectSpread({}, item.schema), {}, {
|
|
339
|
+
widget: frProps.widget
|
|
340
|
+
}), globalMapping);
|
|
341
|
+
}
|
|
342
|
+
return getWidgetName(item.schema, globalMapping);
|
|
343
|
+
}, [selected, flatten, globalMapping, frProps === null || frProps === void 0 ? void 0 : frProps.widget]);
|
|
344
|
+
var isBtnWidget = btnWidgets.has(currentWidgetName);
|
|
345
|
+
var isBehaviorButtonWidget = behaviorButtonWidgets.has(currentWidgetName);
|
|
346
|
+
var isChartWidget = chartWidgets.has(currentWidgetName);
|
|
347
|
+
var isPersonListWidget = currentWidgetName === personListWidget;
|
|
348
|
+
var isTableWidget = tableWidgets.has(currentWidgetName);
|
|
349
|
+
var isInteractiveContainerWidget = currentWidgetName === interactiveContainerWidget;
|
|
350
|
+
var isCardInputWidget = inputLikePropertyWidgets.has(currentWidgetName);
|
|
351
|
+
var isImageDisplayWidget = currentWidgetName === 'imageInput';
|
|
352
|
+
var isCardBehaviorWidget = isBehaviorButtonWidget || isInteractiveContainerWidget;
|
|
353
|
+
var isEventButtonWidget = isBtnWidget || isCardBehaviorWidget;
|
|
354
|
+
var isOptionsWidget = optionsWidgets.has(currentWidgetName);
|
|
355
|
+
var isSelectLike = selectLikeWidgets.has(currentWidgetName);
|
|
356
|
+
// 非按钮、非根节点的字段都可配置联动
|
|
357
|
+
var canHaveLinkage = !isEventButtonWidget && !isPersonListWidget && selected !== '#';
|
|
358
|
+
// 能配置「挂载时请求初始值」:排除按钮、容器、展示类、根节点
|
|
359
|
+
var canHaveInitialValue = !isEventButtonWidget && !isPersonListWidget && !containerWidgets.has(currentWidgetName) && !presentationalWidgets.has(currentWidgetName) && selected !== '#';
|
|
360
|
+
// 卡片根节点(cardRoot) 的「挂载请求」事件
|
|
361
|
+
// - 当 cardRoot 是真根 '#' 时,widget/props 被 schemaToState 抽到 frProps,从 frProps 读写
|
|
362
|
+
// - 当 cardRoot 是模板插在表单根下的子节点时(如 feishuLeaveApproval 插入到 '#' 下),
|
|
363
|
+
// widget/props 都在 currentSchema 上,走标准 onItemChange 路径
|
|
364
|
+
var isCardRootWidget = currentWidgetName === 'cardRoot';
|
|
365
|
+
var cardRootAtRoot = selected === '#' && isCardRootWidget;
|
|
366
|
+
var rootOnMount = cardRootAtRoot ? (_frProps$props$onMoun = frProps === null || frProps === void 0 || (_frProps$props = frProps.props) === null || _frProps$props === void 0 ? void 0 : _frProps$props.onMount) !== null && _frProps$props$onMoun !== void 0 ? _frProps$props$onMoun : flatten === null || flatten === void 0 || (_flatten$ = flatten['#']) === null || _flatten$ === void 0 || (_flatten$ = _flatten$.schema) === null || _flatten$ === void 0 || (_flatten$ = _flatten$.props) === null || _flatten$ === void 0 ? void 0 : _flatten$.onMount : (_flatten$selected2 = flatten[selected]) === null || _flatten$selected2 === void 0 || (_flatten$selected2 = _flatten$selected2.schema) === null || _flatten$selected2 === void 0 || (_flatten$selected2 = _flatten$selected2.props) === null || _flatten$selected2 === void 0 ? void 0 : _flatten$selected2.onMount;
|
|
367
|
+
|
|
368
|
+
// 根据 subTabKey 过滤显示的 properties
|
|
369
|
+
var filteredSchema = useMemo(function () {
|
|
370
|
+
if (!(settingSchema !== null && settingSchema !== void 0 && settingSchema.properties)) return settingSchema;
|
|
371
|
+
if (subTabKey === 'event') {
|
|
372
|
+
var _properties = {};
|
|
373
|
+
if (isBtnWidget) {
|
|
374
|
+
// 按钮类:事件 Tab 显示 props(回调/跳转配置)
|
|
375
|
+
for (var _i2 = 0, _Object$entries2 = Object.entries(settingSchema.properties); _i2 < _Object$entries2.length; _i2++) {
|
|
376
|
+
var _Object$entries2$_i = _slicedToArray(_Object$entries2[_i2], 2),
|
|
377
|
+
key = _Object$entries2$_i[0],
|
|
378
|
+
value = _Object$entries2$_i[1];
|
|
379
|
+
if (key === 'props') _properties[key] = value;
|
|
380
|
+
}
|
|
381
|
+
} else if (isCardBehaviorWidget) {
|
|
382
|
+
var eventKeys = isBehaviorButtonWidget ? cardButtonEventKeys : interactiveContainerEventKeys;
|
|
383
|
+
for (var _i3 = 0, _Object$entries3 = Object.entries(settingSchema.properties); _i3 < _Object$entries3.length; _i3++) {
|
|
384
|
+
var _Object$entries3$_i = _slicedToArray(_Object$entries3[_i3], 2),
|
|
385
|
+
_key = _Object$entries3$_i[0],
|
|
386
|
+
_value = _Object$entries3$_i[1];
|
|
387
|
+
if (eventKeys.has(_key)) _properties[_key] = _value;
|
|
388
|
+
}
|
|
389
|
+
} else if (isOptionsWidget) {
|
|
390
|
+
// 选项类:事件 Tab 显示 remoteData(远程数据源配置)
|
|
391
|
+
for (var _i4 = 0, _Object$entries4 = Object.entries(settingSchema.properties); _i4 < _Object$entries4.length; _i4++) {
|
|
392
|
+
var _Object$entries4$_i = _slicedToArray(_Object$entries4[_i4], 2),
|
|
393
|
+
_key2 = _Object$entries4$_i[0],
|
|
394
|
+
_value2 = _Object$entries4$_i[1];
|
|
395
|
+
if (_key2 === 'remoteData') _properties[_key2] = _value2;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
return _objectSpread(_objectSpread({}, settingSchema), {}, {
|
|
399
|
+
properties: _properties
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
if (subTabKey === 'style') {
|
|
403
|
+
var _keepStyleKeyInPropertyTab = function _keepStyleKeyInPropertyTab(key) {
|
|
404
|
+
return isBehaviorButtonWidget ? behaviorButtonPropertyKeys.has(key) : isImageDisplayWidget ? imageDisplayPropertyKeys.has(key) : isCardInputWidget && cardInputPropertyKeys.has(key);
|
|
405
|
+
};
|
|
406
|
+
if (isBtnWidget) {
|
|
407
|
+
// 按钮类:样式 Tab 显示 style 字段
|
|
408
|
+
var _properties2 = {};
|
|
409
|
+
for (var _i5 = 0, _Object$entries5 = Object.entries(settingSchema.properties); _i5 < _Object$entries5.length; _i5++) {
|
|
410
|
+
var _Object$entries5$_i = _slicedToArray(_Object$entries5[_i5], 2),
|
|
411
|
+
_key3 = _Object$entries5$_i[0],
|
|
412
|
+
_value3 = _Object$entries5$_i[1];
|
|
413
|
+
if (_key3 === 'style') _properties2[_key3] = _value3;
|
|
414
|
+
}
|
|
415
|
+
return _objectSpread(_objectSpread({}, settingSchema), {}, {
|
|
416
|
+
properties: _properties2
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
// 普通组件:显示通用样式字段。
|
|
420
|
+
// R17:卡片模式样式字段以点路径 key 存(props.margin/padding/textAlign/textSize),
|
|
421
|
+
// 也放行,否则卡片元素选中时样式 tab 空白。
|
|
422
|
+
var _properties3 = {};
|
|
423
|
+
for (var _i6 = 0, _Object$entries6 = Object.entries(settingSchema.properties); _i6 < _Object$entries6.length; _i6++) {
|
|
424
|
+
var _Object$entries6$_i = _slicedToArray(_Object$entries6[_i6], 2),
|
|
425
|
+
_key4 = _Object$entries6$_i[0],
|
|
426
|
+
_value4 = _Object$entries6$_i[1];
|
|
427
|
+
if (isStyleSettingKey(_key4) && !_keepStyleKeyInPropertyTab(_key4)) {
|
|
428
|
+
_properties3[_key4] = _value4;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
return _objectSpread(_objectSpread({}, settingSchema), {}, {
|
|
432
|
+
properties: _properties3
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
// 属性 Tab:排除事件/样式专属字段
|
|
437
|
+
var keepStyleKeyInPropertyTab = function keepStyleKeyInPropertyTab(key) {
|
|
438
|
+
return isBehaviorButtonWidget ? behaviorButtonPropertyKeys.has(key) : isImageDisplayWidget ? imageDisplayPropertyKeys.has(key) : isCardInputWidget && cardInputPropertyKeys.has(key);
|
|
439
|
+
};
|
|
440
|
+
var properties = {};
|
|
441
|
+
for (var _i7 = 0, _Object$entries7 = Object.entries(settingSchema.properties); _i7 < _Object$entries7.length; _i7++) {
|
|
442
|
+
var _Object$entries7$_i = _slicedToArray(_Object$entries7[_i7], 2),
|
|
443
|
+
_key5 = _Object$entries7$_i[0],
|
|
444
|
+
_value5 = _Object$entries7$_i[1];
|
|
445
|
+
if (isStyleSettingKey(_key5) && !keepStyleKeyInPropertyTab(_key5)) {
|
|
446
|
+
continue;
|
|
447
|
+
}
|
|
448
|
+
if (isBtnWidget && (_key5 === 'props' || _key5 === 'style')) continue;
|
|
449
|
+
if (isBehaviorButtonWidget && cardButtonEventKeys.has(_key5)) continue;
|
|
450
|
+
if (isChartWidget && chartConfigKeys.has(_key5)) continue;
|
|
451
|
+
if (isTableWidget && tableDataKeys.has(_key5)) continue;
|
|
452
|
+
if (isInteractiveContainerWidget && interactiveContainerEventKeys.has(_key5)) {
|
|
453
|
+
continue;
|
|
454
|
+
}
|
|
455
|
+
if (isOptionsWidget && _key5 === 'remoteData') continue;
|
|
456
|
+
properties[_key5] = _value5;
|
|
457
|
+
}
|
|
458
|
+
return _objectSpread(_objectSpread({}, settingSchema), {}, {
|
|
459
|
+
properties: properties
|
|
460
|
+
});
|
|
461
|
+
}, [settingSchema, subTabKey, isBtnWidget, isBehaviorButtonWidget, isChartWidget, isTableWidget, isInteractiveContainerWidget, isCardBehaviorWidget, isCardInputWidget, isImageDisplayWidget, isOptionsWidget]);
|
|
462
|
+
var hasProperties = (filteredSchema === null || filteredSchema === void 0 ? void 0 : filteredSchema.properties) && Object.keys(filteredSchema.properties).length > 0;
|
|
463
|
+
|
|
464
|
+
// 事件类型注册表 — 每种事件用一致的元数据描述
|
|
465
|
+
var eventDefs = useMemo(function () {
|
|
466
|
+
var list = [];
|
|
467
|
+
if (isOptionsWidget) {
|
|
468
|
+
// 下拉类(select/multiSelect):打开下拉面板时触发
|
|
469
|
+
// 按钮组类(radio/checkboxes):组件挂载时触发
|
|
470
|
+
var triggerLabel = isSelectLike ? '打开面板时' : '组件挂载时';
|
|
471
|
+
var triggerHint = isSelectLike ? '展开下拉面板时请求接口' : '字段渲染时立即请求接口';
|
|
472
|
+
list.push({
|
|
473
|
+
key: 'remoteData',
|
|
474
|
+
label: triggerLabel,
|
|
475
|
+
desc: "".concat(triggerHint, "\uFF0C\u628A\u54CD\u5E94\u6620\u5C04\u6210\u672C\u5B57\u6BB5\u7684\u9009\u9879"),
|
|
476
|
+
icon: /*#__PURE__*/_jsx(ThunderboltOutlined, {}),
|
|
477
|
+
available: true,
|
|
478
|
+
isActive: function isActive(s) {
|
|
479
|
+
var _s$remoteData;
|
|
480
|
+
return !!(s !== null && s !== void 0 && (_s$remoteData = s.remoteData) !== null && _s$remoteData !== void 0 && _s$remoteData.enabled);
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
list.push({
|
|
484
|
+
key: 'fieldAssignments',
|
|
485
|
+
label: isSelectLike ? '面板打开后给其它字段赋值' : '挂载后给其它字段赋值',
|
|
486
|
+
desc: '把响应或固定值写入表单的其它字段',
|
|
487
|
+
icon: /*#__PURE__*/_jsx(EditOutlined, {}),
|
|
488
|
+
available: true,
|
|
489
|
+
isActive: function isActive(s) {
|
|
490
|
+
return Array.isArray(s === null || s === void 0 ? void 0 : s.fieldAssignments) && s.fieldAssignments.length > 0;
|
|
491
|
+
}
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
if (isBtnWidget) {
|
|
495
|
+
list.push({
|
|
496
|
+
key: 'props',
|
|
497
|
+
label: '点击时',
|
|
498
|
+
desc: '配置按钮点击行为',
|
|
499
|
+
icon: /*#__PURE__*/_jsx(ThunderboltOutlined, {}),
|
|
500
|
+
available: true,
|
|
501
|
+
isActive: function isActive() {
|
|
502
|
+
return true;
|
|
503
|
+
} // 按钮始终有事件配置
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
if (isBehaviorButtonWidget) {
|
|
507
|
+
list.push({
|
|
508
|
+
key: 'cardButtonBehaviors',
|
|
509
|
+
label: '点击时',
|
|
510
|
+
desc: '配置按钮点击行为',
|
|
511
|
+
icon: /*#__PURE__*/_jsx(ThunderboltOutlined, {}),
|
|
512
|
+
available: true,
|
|
513
|
+
isActive: function isActive() {
|
|
514
|
+
return true;
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
if (isInteractiveContainerWidget) {
|
|
519
|
+
list.push({
|
|
520
|
+
key: 'interactiveContainerBehaviors',
|
|
521
|
+
label: '点击时',
|
|
522
|
+
desc: '配置交互容器点击行为和悬浮提示',
|
|
523
|
+
icon: /*#__PURE__*/_jsx(ThunderboltOutlined, {}),
|
|
524
|
+
available: true,
|
|
525
|
+
isActive: function isActive(s) {
|
|
526
|
+
var _s$props, _s$props2;
|
|
527
|
+
return Array.isArray(s === null || s === void 0 || (_s$props = s.props) === null || _s$props === void 0 ? void 0 : _s$props.behaviors) && s.props.behaviors.length > 0 || !!(s !== null && s !== void 0 && (_s$props2 = s.props) !== null && _s$props2 !== void 0 && (_s$props2 = _s$props2.hoverTips) !== null && _s$props2 !== void 0 && _s$props2.content);
|
|
528
|
+
}
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
if (isPersonListWidget) {
|
|
532
|
+
list.push({
|
|
533
|
+
key: 'personListDataSource',
|
|
534
|
+
label: '挂载时请求人员列表',
|
|
535
|
+
desc: '请求人员 ID、姓名和头像,写入 props.persons',
|
|
536
|
+
icon: /*#__PURE__*/_jsx(DownloadOutlined, {}),
|
|
537
|
+
available: true,
|
|
538
|
+
isActive: function isActive(s) {
|
|
539
|
+
var _s$props3;
|
|
540
|
+
return !!(s !== null && s !== void 0 && (_s$props3 = s.props) !== null && _s$props3 !== void 0 && (_s$props3 = _s$props3.personsSource) !== null && _s$props3 !== void 0 && _s$props3.enabled);
|
|
541
|
+
}
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
if (canHaveInitialValue) {
|
|
545
|
+
list.push({
|
|
546
|
+
key: 'initialValue',
|
|
547
|
+
label: '挂载时请求初始值',
|
|
548
|
+
desc: '字段渲染时请求接口,把响应写到本字段',
|
|
549
|
+
icon: /*#__PURE__*/_jsx(DownloadOutlined, {}),
|
|
550
|
+
available: true,
|
|
551
|
+
isActive: function isActive(s) {
|
|
552
|
+
var _s$initialValue;
|
|
553
|
+
return !!(s !== null && s !== void 0 && (_s$initialValue = s.initialValue) !== null && _s$initialValue !== void 0 && _s$initialValue.enabled);
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
if (isCardRootWidget) {
|
|
558
|
+
// 卡片根:挂载时请求一次数据回填整卡。源可能在 frProps(真根时)或
|
|
559
|
+
// currentSchema.props(作为表单子节点时)。
|
|
560
|
+
list.push({
|
|
561
|
+
key: 'cardRootOnMount',
|
|
562
|
+
label: '挂载时请求数据',
|
|
563
|
+
desc: '卡片渲染时请求接口,把响应回填到表单字段',
|
|
564
|
+
icon: /*#__PURE__*/_jsx(DownloadOutlined, {}),
|
|
565
|
+
available: true,
|
|
566
|
+
isActive: function isActive() {
|
|
567
|
+
return Array.isArray(rootOnMount) && rootOnMount.length > 0;
|
|
568
|
+
}
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
if (canHaveLinkage) {
|
|
572
|
+
list.push({
|
|
573
|
+
key: 'linkage',
|
|
574
|
+
label: '字段值变化时',
|
|
575
|
+
desc: '联动其它字段的显示、必填或禁用',
|
|
576
|
+
icon: /*#__PURE__*/_jsx(SwapOutlined, {}),
|
|
577
|
+
available: true,
|
|
578
|
+
isActive: function isActive(s) {
|
|
579
|
+
return Array.isArray(s === null || s === void 0 ? void 0 : s.linkages) && s.linkages.length > 0;
|
|
580
|
+
}
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
if (canHaveInitialValue) {
|
|
584
|
+
// 值变化触发行为链(区别于 linkage 的「派生显隐/禁用」):发请求、给其它字段赋值等。
|
|
585
|
+
// 存 schema 顶层 onChangeBehaviors(不放 props,避免被透传成 antd onChange)。
|
|
586
|
+
list.push({
|
|
587
|
+
key: 'onChangeBehaviors',
|
|
588
|
+
label: '值变化时触发行为',
|
|
589
|
+
desc: '值变化时派发行为链:请求接口 / 给其它字段赋值 / 打开链接等',
|
|
590
|
+
icon: /*#__PURE__*/_jsx(ThunderboltOutlined, {}),
|
|
591
|
+
available: true,
|
|
592
|
+
isActive: function isActive(s) {
|
|
593
|
+
return Array.isArray(s === null || s === void 0 ? void 0 : s.onChangeBehaviors) && s.onChangeBehaviors.length > 0;
|
|
594
|
+
}
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
return list;
|
|
598
|
+
}, [isOptionsWidget, isSelectLike, isBtnWidget, isBehaviorButtonWidget, isPersonListWidget, isTableWidget, isInteractiveContainerWidget, canHaveLinkage, canHaveInitialValue, isCardRootWidget, rootOnMount]);
|
|
599
|
+
var currentSchema = (_flatten$selected3 = flatten[selected]) === null || _flatten$selected3 === void 0 ? void 0 : _flatten$selected3.schema;
|
|
600
|
+
var showChartConfigEditor = subTabKey === 'props' && isChartWidget;
|
|
601
|
+
var showTableDataEditor = subTabKey === 'props' && isTableWidget;
|
|
602
|
+
var activeEvents = eventDefs.filter(function (e) {
|
|
603
|
+
return e.isActive(currentSchema);
|
|
604
|
+
});
|
|
605
|
+
var inactiveEvents = eventDefs.filter(function (e) {
|
|
606
|
+
return !e.isActive(currentSchema);
|
|
607
|
+
});
|
|
608
|
+
|
|
609
|
+
// 构造每个已激活事件的子 schema —— 仅含该事件相关字段(仅按钮类还走 FormRender)
|
|
610
|
+
var buildEventSchema = function buildEventSchema(eventKey) {
|
|
611
|
+
if (!(settingSchema !== null && settingSchema !== void 0 && settingSchema.properties)) return null;
|
|
612
|
+
if (eventKey === 'props') {
|
|
613
|
+
return _objectSpread(_objectSpread({}, settingSchema), {}, {
|
|
614
|
+
properties: {
|
|
615
|
+
props: settingSchema.properties.props
|
|
616
|
+
}
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
return null;
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
// cardRoot 的 onMount 写回:
|
|
623
|
+
// - 真根 '#':schema 上的根 widget/props 已被 schemaToState 搬进 frProps,写 frProps
|
|
624
|
+
// - 作为表单子节点:直接走 onItemChange 写本节点的 props.onMount
|
|
625
|
+
var writeRootOnMount = function writeRootOnMount(next) {
|
|
626
|
+
var _flatten$selected4;
|
|
627
|
+
if (cardRootAtRoot) {
|
|
628
|
+
setGlobal({
|
|
629
|
+
frProps: _objectSpread(_objectSpread({}, frProps || {}), {}, {
|
|
630
|
+
props: _objectSpread(_objectSpread({}, frProps && frProps.props || {}), {}, {
|
|
631
|
+
onMount: next
|
|
632
|
+
})
|
|
633
|
+
})
|
|
634
|
+
});
|
|
635
|
+
return;
|
|
636
|
+
}
|
|
637
|
+
var original = ((_flatten$selected4 = flatten[selected]) === null || _flatten$selected4 === void 0 ? void 0 : _flatten$selected4.schema) || {};
|
|
638
|
+
onItemChange(selected, _objectSpread(_objectSpread({}, flatten[selected]), {}, {
|
|
639
|
+
schema: _objectSpread(_objectSpread({}, original), {}, {
|
|
640
|
+
props: _objectSpread(_objectSpread({}, original.props || {}), {}, {
|
|
641
|
+
onMount: next
|
|
642
|
+
})
|
|
643
|
+
})
|
|
644
|
+
}), 'schema');
|
|
645
|
+
};
|
|
646
|
+
var handleAddEvent = function handleAddEvent(eventKey) {
|
|
647
|
+
var _flatten$selected5;
|
|
648
|
+
if (eventKey === 'cardRootOnMount') {
|
|
649
|
+
writeRootOnMount(buildOnMountChain({
|
|
650
|
+
url: '',
|
|
651
|
+
method: 'GET',
|
|
652
|
+
fillMode: 'spread',
|
|
653
|
+
responsePath: 'data'
|
|
654
|
+
}));
|
|
655
|
+
return;
|
|
656
|
+
}
|
|
657
|
+
var original = ((_flatten$selected5 = flatten[selected]) === null || _flatten$selected5 === void 0 ? void 0 : _flatten$selected5.schema) || {};
|
|
658
|
+
var next = original;
|
|
659
|
+
if (eventKey === 'remoteData') {
|
|
660
|
+
next = _objectSpread(_objectSpread({}, original), {}, {
|
|
661
|
+
remoteData: _objectSpread(_objectSpread({}, original.remoteData || {}), {}, {
|
|
662
|
+
enabled: true
|
|
663
|
+
})
|
|
664
|
+
});
|
|
665
|
+
} else if (eventKey === 'fieldAssignments') {
|
|
666
|
+
next = _objectSpread(_objectSpread({}, original), {}, {
|
|
667
|
+
fieldAssignments: [createBlankAfterAction()]
|
|
668
|
+
});
|
|
669
|
+
} else if (eventKey === 'initialValue') {
|
|
670
|
+
next = _objectSpread(_objectSpread({}, original), {}, {
|
|
671
|
+
initialValue: _objectSpread(_objectSpread({}, original.initialValue || {}), {}, {
|
|
672
|
+
enabled: true
|
|
673
|
+
})
|
|
674
|
+
});
|
|
675
|
+
} else if (eventKey === 'linkage') {
|
|
676
|
+
next = _objectSpread(_objectSpread({}, original), {}, {
|
|
677
|
+
linkages: [createBlankLinkage()]
|
|
678
|
+
});
|
|
679
|
+
} else if (eventKey === 'onChangeBehaviors') {
|
|
680
|
+
next = _objectSpread(_objectSpread({}, original), {}, {
|
|
681
|
+
onChangeBehaviors: Array.isArray(original.onChangeBehaviors) && original.onChangeBehaviors.length > 0 ? original.onChangeBehaviors : [createBlankApiRequestBehavior()]
|
|
682
|
+
});
|
|
683
|
+
} else if (eventKey === 'interactiveContainerBehaviors') {
|
|
684
|
+
var props = original.props || {};
|
|
685
|
+
next = _objectSpread(_objectSpread({}, original), {}, {
|
|
686
|
+
props: _objectSpread(_objectSpread({}, props), {}, {
|
|
687
|
+
behaviors: Array.isArray(props.behaviors) && props.behaviors.length > 0 ? props.behaviors : [createBlankCardButtonBehavior()],
|
|
688
|
+
hoverTips: props.hoverTips || {
|
|
689
|
+
tag: 'plain_text',
|
|
690
|
+
content: ''
|
|
691
|
+
}
|
|
692
|
+
})
|
|
693
|
+
});
|
|
694
|
+
} else if (eventKey === 'personListDataSource') {
|
|
695
|
+
var _props = original.props || {};
|
|
696
|
+
next = _objectSpread(_objectSpread({}, original), {}, {
|
|
697
|
+
props: _objectSpread(_objectSpread({}, _props), {}, {
|
|
698
|
+
personsSource: _objectSpread(_objectSpread({
|
|
699
|
+
method: 'GET',
|
|
700
|
+
responsePath: 'data.members',
|
|
701
|
+
idField: 'id',
|
|
702
|
+
nameField: 'name',
|
|
703
|
+
avatarField: 'avatar'
|
|
704
|
+
}, _props.personsSource || {}), {}, {
|
|
705
|
+
enabled: true
|
|
706
|
+
})
|
|
707
|
+
})
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
onItemChange(selected, _objectSpread(_objectSpread({}, flatten[selected]), {}, {
|
|
711
|
+
schema: next
|
|
712
|
+
}), 'schema');
|
|
713
|
+
};
|
|
714
|
+
var handleRemoveEvent = function handleRemoveEvent(eventKey) {
|
|
715
|
+
var _flatten$selected6;
|
|
716
|
+
if (eventKey === 'cardRootOnMount') {
|
|
717
|
+
writeRootOnMount([]);
|
|
718
|
+
return;
|
|
719
|
+
}
|
|
720
|
+
var original = ((_flatten$selected6 = flatten[selected]) === null || _flatten$selected6 === void 0 ? void 0 : _flatten$selected6.schema) || {};
|
|
721
|
+
var next = original;
|
|
722
|
+
if (eventKey === 'remoteData') {
|
|
723
|
+
next = _objectSpread(_objectSpread({}, original), {}, {
|
|
724
|
+
remoteData: _objectSpread(_objectSpread({}, original.remoteData), {}, {
|
|
725
|
+
enabled: false
|
|
726
|
+
})
|
|
727
|
+
});
|
|
728
|
+
} else if (eventKey === 'fieldAssignments') {
|
|
729
|
+
next = _objectSpread(_objectSpread({}, original), {}, {
|
|
730
|
+
fieldAssignments: []
|
|
731
|
+
});
|
|
732
|
+
} else if (eventKey === 'initialValue') {
|
|
733
|
+
next = _objectSpread(_objectSpread({}, original), {}, {
|
|
734
|
+
initialValue: _objectSpread(_objectSpread({}, original.initialValue), {}, {
|
|
735
|
+
enabled: false
|
|
736
|
+
})
|
|
737
|
+
});
|
|
738
|
+
} else if (eventKey === 'linkage') {
|
|
739
|
+
next = _objectSpread(_objectSpread({}, original), {}, {
|
|
740
|
+
linkages: []
|
|
741
|
+
});
|
|
742
|
+
} else if (eventKey === 'onChangeBehaviors') {
|
|
743
|
+
next = _objectSpread(_objectSpread({}, original), {}, {
|
|
744
|
+
onChangeBehaviors: []
|
|
745
|
+
});
|
|
746
|
+
} else if (eventKey === 'interactiveContainerBehaviors') {
|
|
747
|
+
var props = original.props || {};
|
|
748
|
+
next = _objectSpread(_objectSpread({}, original), {}, {
|
|
749
|
+
props: _objectSpread(_objectSpread({}, props), {}, {
|
|
750
|
+
behaviors: [],
|
|
751
|
+
hoverTips: _objectSpread(_objectSpread({}, props.hoverTips || {
|
|
752
|
+
tag: 'plain_text'
|
|
753
|
+
}), {}, {
|
|
754
|
+
content: ''
|
|
755
|
+
})
|
|
756
|
+
})
|
|
757
|
+
});
|
|
758
|
+
} else if (eventKey === 'personListDataSource') {
|
|
759
|
+
var _props2 = original.props || {};
|
|
760
|
+
next = _objectSpread(_objectSpread({}, original), {}, {
|
|
761
|
+
props: _objectSpread(_objectSpread({}, _props2), {}, {
|
|
762
|
+
personsSource: _objectSpread(_objectSpread({}, _props2.personsSource || {}), {}, {
|
|
763
|
+
enabled: false
|
|
764
|
+
})
|
|
765
|
+
})
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
onItemChange(selected, _objectSpread(_objectSpread({}, flatten[selected]), {}, {
|
|
769
|
+
schema: next
|
|
770
|
+
}), 'schema');
|
|
771
|
+
};
|
|
772
|
+
var handleLinkagesChange = function handleLinkagesChange(linkages) {
|
|
773
|
+
var _flatten$selected7;
|
|
774
|
+
var original = ((_flatten$selected7 = flatten[selected]) === null || _flatten$selected7 === void 0 ? void 0 : _flatten$selected7.schema) || {};
|
|
775
|
+
onItemChange(selected, _objectSpread(_objectSpread({}, flatten[selected]), {}, {
|
|
776
|
+
schema: _objectSpread(_objectSpread({}, original), {}, {
|
|
777
|
+
linkages: linkages
|
|
778
|
+
})
|
|
779
|
+
}), 'schema');
|
|
780
|
+
};
|
|
781
|
+
var handleOnChangeBehaviorsChange = function handleOnChangeBehaviorsChange(onChangeBehaviors) {
|
|
782
|
+
var _flatten$selected8;
|
|
783
|
+
var original = ((_flatten$selected8 = flatten[selected]) === null || _flatten$selected8 === void 0 ? void 0 : _flatten$selected8.schema) || {};
|
|
784
|
+
onItemChange(selected, _objectSpread(_objectSpread({}, flatten[selected]), {}, {
|
|
785
|
+
schema: _objectSpread(_objectSpread({}, original), {}, {
|
|
786
|
+
onChangeBehaviors: onChangeBehaviors
|
|
787
|
+
})
|
|
788
|
+
}), 'schema');
|
|
789
|
+
};
|
|
790
|
+
var handleFieldAssignmentsChange = function handleFieldAssignmentsChange(fieldAssignments) {
|
|
791
|
+
var _flatten$selected9;
|
|
792
|
+
var original = ((_flatten$selected9 = flatten[selected]) === null || _flatten$selected9 === void 0 ? void 0 : _flatten$selected9.schema) || {};
|
|
793
|
+
onItemChange(selected, _objectSpread(_objectSpread({}, flatten[selected]), {}, {
|
|
794
|
+
schema: _objectSpread(_objectSpread({}, original), {}, {
|
|
795
|
+
fieldAssignments: fieldAssignments
|
|
796
|
+
})
|
|
797
|
+
}), 'schema');
|
|
798
|
+
};
|
|
799
|
+
var handleRemoteDataChange = function handleRemoteDataChange(remoteData) {
|
|
800
|
+
var _flatten$selected10;
|
|
801
|
+
var original = ((_flatten$selected10 = flatten[selected]) === null || _flatten$selected10 === void 0 ? void 0 : _flatten$selected10.schema) || {};
|
|
802
|
+
onItemChange(selected, _objectSpread(_objectSpread({}, flatten[selected]), {}, {
|
|
803
|
+
schema: _objectSpread(_objectSpread({}, original), {}, {
|
|
804
|
+
remoteData: _objectSpread(_objectSpread(_objectSpread({}, original.remoteData || {}), remoteData), {}, {
|
|
805
|
+
enabled: true
|
|
806
|
+
})
|
|
807
|
+
})
|
|
808
|
+
}), 'schema');
|
|
809
|
+
};
|
|
810
|
+
var handleInitialValueChange = function handleInitialValueChange(initialValue) {
|
|
811
|
+
var _flatten$selected11;
|
|
812
|
+
var original = ((_flatten$selected11 = flatten[selected]) === null || _flatten$selected11 === void 0 ? void 0 : _flatten$selected11.schema) || {};
|
|
813
|
+
onItemChange(selected, _objectSpread(_objectSpread({}, flatten[selected]), {}, {
|
|
814
|
+
schema: _objectSpread(_objectSpread({}, original), {}, {
|
|
815
|
+
initialValue: _objectSpread(_objectSpread(_objectSpread({}, original.initialValue || {}), initialValue), {}, {
|
|
816
|
+
enabled: true
|
|
817
|
+
})
|
|
818
|
+
})
|
|
819
|
+
}), 'schema');
|
|
820
|
+
};
|
|
821
|
+
var handlePersonListSourceChange = function handlePersonListSourceChange(patch) {
|
|
822
|
+
var _flatten$selected12;
|
|
823
|
+
var original = ((_flatten$selected12 = flatten[selected]) === null || _flatten$selected12 === void 0 ? void 0 : _flatten$selected12.schema) || {};
|
|
824
|
+
var props = original.props || {};
|
|
825
|
+
onItemChange(selected, _objectSpread(_objectSpread({}, flatten[selected]), {}, {
|
|
826
|
+
schema: _objectSpread(_objectSpread({}, original), {}, {
|
|
827
|
+
props: _objectSpread(_objectSpread({}, props), {}, {
|
|
828
|
+
personsSource: _objectSpread(_objectSpread(_objectSpread({}, props.personsSource || {}), patch), {}, {
|
|
829
|
+
enabled: true
|
|
830
|
+
})
|
|
831
|
+
})
|
|
832
|
+
})
|
|
833
|
+
}), 'schema');
|
|
834
|
+
};
|
|
835
|
+
var handleChartConfigChange = function handleChartConfigChange(patch) {
|
|
836
|
+
var _flatten$selected13;
|
|
837
|
+
var original = ((_flatten$selected13 = flatten[selected]) === null || _flatten$selected13 === void 0 ? void 0 : _flatten$selected13.schema) || {};
|
|
838
|
+
var props = original.props || {};
|
|
839
|
+
var chartSpec = props.chartSpec || {};
|
|
840
|
+
var data = chartSpec.data || {};
|
|
841
|
+
var title = chartSpec.title || {};
|
|
842
|
+
var nextProps = _objectSpread(_objectSpread({}, props), {}, {
|
|
843
|
+
chartSpec: _objectSpread(_objectSpread({}, chartSpec), {}, {
|
|
844
|
+
data: _objectSpread(_objectSpread({}, data), patch.values ? {
|
|
845
|
+
values: patch.values
|
|
846
|
+
} : {}),
|
|
847
|
+
title: _objectSpread(_objectSpread({}, title), patch.titleText !== undefined ? {
|
|
848
|
+
text: patch.titleText
|
|
849
|
+
} : {})
|
|
850
|
+
}, patch.type ? {
|
|
851
|
+
type: patch.type
|
|
852
|
+
} : {})
|
|
853
|
+
});
|
|
854
|
+
if (patch.height !== undefined) {
|
|
855
|
+
nextProps.height = patch.height;
|
|
856
|
+
}
|
|
857
|
+
onItemChange(selected, _objectSpread(_objectSpread({}, flatten[selected]), {}, {
|
|
858
|
+
schema: _objectSpread(_objectSpread({}, original), {}, {
|
|
859
|
+
props: nextProps
|
|
860
|
+
})
|
|
861
|
+
}), 'schema');
|
|
862
|
+
};
|
|
863
|
+
var handleTablePropsChange = function handleTablePropsChange(patch) {
|
|
864
|
+
var _flatten$selected14;
|
|
865
|
+
var original = ((_flatten$selected14 = flatten[selected]) === null || _flatten$selected14 === void 0 ? void 0 : _flatten$selected14.schema) || {};
|
|
866
|
+
var props = original.props || {};
|
|
867
|
+
onItemChange(selected, _objectSpread(_objectSpread({}, flatten[selected]), {}, {
|
|
868
|
+
schema: _objectSpread(_objectSpread({}, original), {}, {
|
|
869
|
+
props: _objectSpread(_objectSpread({}, props), patch)
|
|
870
|
+
})
|
|
871
|
+
}), 'schema');
|
|
872
|
+
};
|
|
873
|
+
var handleCardBehaviorEventsChange = function handleCardBehaviorEventsChange(patch) {
|
|
874
|
+
var _flatten$selected15;
|
|
875
|
+
var original = ((_flatten$selected15 = flatten[selected]) === null || _flatten$selected15 === void 0 ? void 0 : _flatten$selected15.schema) || {};
|
|
876
|
+
onItemChange(selected, _objectSpread(_objectSpread({}, flatten[selected]), {}, {
|
|
877
|
+
schema: _objectSpread(_objectSpread({}, original), {}, {
|
|
878
|
+
props: _objectSpread(_objectSpread({}, original.props || {}), patch)
|
|
879
|
+
})
|
|
880
|
+
}), 'schema');
|
|
881
|
+
};
|
|
882
|
+
var emptyHints = {
|
|
883
|
+
style: '当前组件暂无样式配置',
|
|
884
|
+
event: '当前组件暂无事件配置',
|
|
885
|
+
props: '当前组件暂无属性配置'
|
|
886
|
+
};
|
|
887
|
+
|
|
888
|
+
// ========== 事件 Tab:简约风格 ==========
|
|
889
|
+
if (subTabKey === 'event' && eventDefs.length > 0) {
|
|
890
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
891
|
+
className: styles.eventPane,
|
|
892
|
+
children: [activeEvents.length > 0 && /*#__PURE__*/_jsxs(_Fragment, {
|
|
893
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
894
|
+
className: styles.eventSectionLabel,
|
|
895
|
+
children: "\u5DF2\u914D\u7F6E\u4E8B\u4EF6"
|
|
896
|
+
}), activeEvents.map(function (evt) {
|
|
897
|
+
var _currentSchema$props;
|
|
898
|
+
var evtSchema = buildEventSchema(evt.key);
|
|
899
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
900
|
+
className: styles.eventCard,
|
|
901
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
902
|
+
className: styles.eventHeader,
|
|
903
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
904
|
+
className: styles.eventIcon,
|
|
905
|
+
children: evt.icon
|
|
906
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
907
|
+
className: styles.eventTitleWrap,
|
|
908
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
909
|
+
className: styles.eventTitle,
|
|
910
|
+
children: evt.label
|
|
911
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
912
|
+
className: styles.eventDesc,
|
|
913
|
+
children: evt.desc
|
|
914
|
+
})]
|
|
915
|
+
}), evt.key !== 'props' && evt.key !== 'cardButtonBehaviors' && /*#__PURE__*/_jsx("span", {
|
|
916
|
+
className: "event-delete ".concat(styles.eventDelete),
|
|
917
|
+
onClick: function onClick() {
|
|
918
|
+
return handleRemoveEvent(evt.key);
|
|
919
|
+
},
|
|
920
|
+
children: "\u5220\u9664"
|
|
921
|
+
})]
|
|
922
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
923
|
+
className: styles.eventBody,
|
|
924
|
+
children: evt.key === 'cardButtonBehaviors' ? /*#__PURE__*/_jsx(CardButtonBehaviorsEditor, {
|
|
925
|
+
value: (currentSchema === null || currentSchema === void 0 ? void 0 : currentSchema.props) || {},
|
|
926
|
+
onChange: handleCardBehaviorEventsChange,
|
|
927
|
+
flatten: flatten,
|
|
928
|
+
selfId: selected
|
|
929
|
+
}) : evt.key === 'interactiveContainerBehaviors' ? /*#__PURE__*/_jsx(CardButtonBehaviorsEditor, {
|
|
930
|
+
value: (currentSchema === null || currentSchema === void 0 ? void 0 : currentSchema.props) || {},
|
|
931
|
+
onChange: handleCardBehaviorEventsChange,
|
|
932
|
+
flatten: flatten,
|
|
933
|
+
selfId: selected,
|
|
934
|
+
showFormAction: false,
|
|
935
|
+
showHoverTips: true
|
|
936
|
+
}) : evt.key === 'remoteData' ? /*#__PURE__*/_jsx(RemoteDataEditor, {
|
|
937
|
+
value: (currentSchema === null || currentSchema === void 0 ? void 0 : currentSchema.remoteData) || {},
|
|
938
|
+
onChange: handleRemoteDataChange
|
|
939
|
+
}) : evt.key === 'fieldAssignments' ? /*#__PURE__*/_jsx(AfterActionsEditor, {
|
|
940
|
+
flatten: flatten,
|
|
941
|
+
selfId: selected,
|
|
942
|
+
value: (currentSchema === null || currentSchema === void 0 ? void 0 : currentSchema.fieldAssignments) || [],
|
|
943
|
+
onChange: handleFieldAssignmentsChange
|
|
944
|
+
}) : evt.key === 'initialValue' ? /*#__PURE__*/_jsx(InitialValueEditor, {
|
|
945
|
+
value: (currentSchema === null || currentSchema === void 0 ? void 0 : currentSchema.initialValue) || {},
|
|
946
|
+
onChange: handleInitialValueChange
|
|
947
|
+
}) : evt.key === 'personListDataSource' ? /*#__PURE__*/_jsx(PersonListDataSourceEditor, {
|
|
948
|
+
value: (currentSchema === null || currentSchema === void 0 || (_currentSchema$props = currentSchema.props) === null || _currentSchema$props === void 0 ? void 0 : _currentSchema$props.personsSource) || {},
|
|
949
|
+
onChange: handlePersonListSourceChange
|
|
950
|
+
}) : evt.key === 'linkage' ? /*#__PURE__*/_jsx(LinkageEditor, {
|
|
951
|
+
flatten: flatten,
|
|
952
|
+
selfId: selected,
|
|
953
|
+
value: (currentSchema === null || currentSchema === void 0 ? void 0 : currentSchema.linkages) || [],
|
|
954
|
+
onChange: handleLinkagesChange
|
|
955
|
+
}) : evt.key === 'onChangeBehaviors' ? /*#__PURE__*/_jsx(OnChangeBehaviorsEditor, {
|
|
956
|
+
behaviors: (currentSchema === null || currentSchema === void 0 ? void 0 : currentSchema.onChangeBehaviors) || [],
|
|
957
|
+
onChange: handleOnChangeBehaviorsChange,
|
|
958
|
+
flatten: flatten,
|
|
959
|
+
selfId: selected
|
|
960
|
+
}) : evt.key === 'cardRootOnMount' ? /*#__PURE__*/_jsx(CardRootOnMountEditor, {
|
|
961
|
+
value: parseOnMountChain(rootOnMount),
|
|
962
|
+
onChange: function onChange(v) {
|
|
963
|
+
return writeRootOnMount(buildOnMountChain(v));
|
|
964
|
+
},
|
|
965
|
+
flatten: flatten
|
|
966
|
+
}) : evtSchema ? /*#__PURE__*/_jsx(FormRender, {
|
|
967
|
+
form: form,
|
|
968
|
+
schema: evtSchema,
|
|
969
|
+
widgets: _objectSpread(_objectSpread({}, _widgets), widgets),
|
|
970
|
+
mapping: globalMapping,
|
|
971
|
+
watch: {
|
|
972
|
+
'#': function _(v) {
|
|
973
|
+
return setTimeout(function () {
|
|
974
|
+
return onDataChange(v);
|
|
975
|
+
}, 0);
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
}) : null
|
|
979
|
+
})]
|
|
980
|
+
}, evt.key);
|
|
981
|
+
})]
|
|
982
|
+
}), inactiveEvents.length > 0 && /*#__PURE__*/_jsxs(_Fragment, {
|
|
983
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
984
|
+
className: styles.eventSectionLabel,
|
|
985
|
+
style: {
|
|
986
|
+
marginTop: activeEvents.length > 0 ? 16 : 4
|
|
987
|
+
},
|
|
988
|
+
children: "\u53EF\u6DFB\u52A0\u4E8B\u4EF6"
|
|
989
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
990
|
+
className: styles.eventAddList,
|
|
991
|
+
children: inactiveEvents.map(function (evt) {
|
|
992
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
993
|
+
className: styles.eventAddItem,
|
|
994
|
+
onClick: function onClick() {
|
|
995
|
+
return handleAddEvent(evt.key);
|
|
996
|
+
},
|
|
997
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
998
|
+
className: styles.eventIcon,
|
|
999
|
+
children: evt.icon
|
|
1000
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
1001
|
+
className: styles.eventTitleWrap,
|
|
1002
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
1003
|
+
className: styles.eventTitle,
|
|
1004
|
+
children: evt.label
|
|
1005
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
1006
|
+
className: styles.eventDesc,
|
|
1007
|
+
children: evt.desc
|
|
1008
|
+
})]
|
|
1009
|
+
}), /*#__PURE__*/_jsx(PlusOutlined, {
|
|
1010
|
+
className: styles.eventAddPlus
|
|
1011
|
+
})]
|
|
1012
|
+
}, evt.key);
|
|
1013
|
+
})
|
|
1014
|
+
})]
|
|
1015
|
+
}), activeEvents.length === 0 && inactiveEvents.length === 0 && /*#__PURE__*/_jsx("div", {
|
|
1016
|
+
className: styles.eventEmpty,
|
|
1017
|
+
children: emptyHints.event
|
|
1018
|
+
})]
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1021
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
1022
|
+
style: {
|
|
1023
|
+
padding: '4px 0'
|
|
1024
|
+
},
|
|
1025
|
+
children: [showChartConfigEditor ? /*#__PURE__*/_jsxs("div", {
|
|
1026
|
+
style: {
|
|
1027
|
+
display: 'flex',
|
|
1028
|
+
flexDirection: 'column',
|
|
1029
|
+
gap: 12,
|
|
1030
|
+
margin: '0 12px 16px'
|
|
1031
|
+
},
|
|
1032
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
1033
|
+
style: {
|
|
1034
|
+
color: '#1f2329',
|
|
1035
|
+
fontSize: 12,
|
|
1036
|
+
marginBottom: 8
|
|
1037
|
+
},
|
|
1038
|
+
children: "\u56FE\u8868\u6570\u636E"
|
|
1039
|
+
}), /*#__PURE__*/_jsx(CardChartDataEditor, {
|
|
1040
|
+
value: (currentSchema === null || currentSchema === void 0 || (_currentSchema$props2 = currentSchema.props) === null || _currentSchema$props2 === void 0 || (_currentSchema$props2 = _currentSchema$props2.chartSpec) === null || _currentSchema$props2 === void 0 || (_currentSchema$props2 = _currentSchema$props2.data) === null || _currentSchema$props2 === void 0 ? void 0 : _currentSchema$props2.values) || [],
|
|
1041
|
+
onChange: function onChange(values) {
|
|
1042
|
+
return handleChartConfigChange({
|
|
1043
|
+
values: values
|
|
1044
|
+
});
|
|
1045
|
+
}
|
|
1046
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
1047
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
1048
|
+
style: {
|
|
1049
|
+
color: '#1f2329',
|
|
1050
|
+
fontSize: 12,
|
|
1051
|
+
marginBottom: 8
|
|
1052
|
+
},
|
|
1053
|
+
children: "\u56FE\u8868\u7C7B\u578B"
|
|
1054
|
+
}), /*#__PURE__*/_jsx(Select, {
|
|
1055
|
+
options: chartTypeOptions,
|
|
1056
|
+
style: {
|
|
1057
|
+
width: '100%'
|
|
1058
|
+
},
|
|
1059
|
+
value: (currentSchema === null || currentSchema === void 0 || (_currentSchema$props3 = currentSchema.props) === null || _currentSchema$props3 === void 0 || (_currentSchema$props3 = _currentSchema$props3.chartSpec) === null || _currentSchema$props3 === void 0 ? void 0 : _currentSchema$props3.type) || 'bar',
|
|
1060
|
+
onChange: function onChange(type) {
|
|
1061
|
+
return handleChartConfigChange({
|
|
1062
|
+
type: type
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1065
|
+
})]
|
|
1066
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
1067
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
1068
|
+
style: {
|
|
1069
|
+
color: '#1f2329',
|
|
1070
|
+
fontSize: 12,
|
|
1071
|
+
marginBottom: 8
|
|
1072
|
+
},
|
|
1073
|
+
children: "\u6807\u9898"
|
|
1074
|
+
}), /*#__PURE__*/_jsx(Input, {
|
|
1075
|
+
value: (currentSchema === null || currentSchema === void 0 || (_currentSchema$props4 = currentSchema.props) === null || _currentSchema$props4 === void 0 || (_currentSchema$props4 = _currentSchema$props4.chartSpec) === null || _currentSchema$props4 === void 0 || (_currentSchema$props4 = _currentSchema$props4.title) === null || _currentSchema$props4 === void 0 ? void 0 : _currentSchema$props4.text) || '',
|
|
1076
|
+
onChange: function onChange(e) {
|
|
1077
|
+
return handleChartConfigChange({
|
|
1078
|
+
titleText: e.target.value
|
|
1079
|
+
});
|
|
1080
|
+
}
|
|
1081
|
+
})]
|
|
1082
|
+
})]
|
|
1083
|
+
}) : null, showTableDataEditor ? /*#__PURE__*/_jsxs("div", {
|
|
1084
|
+
style: {
|
|
1085
|
+
display: 'flex',
|
|
1086
|
+
flexDirection: 'column',
|
|
1087
|
+
gap: 16,
|
|
1088
|
+
margin: '0 12px 16px'
|
|
1089
|
+
},
|
|
1090
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
1091
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
1092
|
+
style: {
|
|
1093
|
+
color: '#1f2329',
|
|
1094
|
+
fontSize: 12,
|
|
1095
|
+
marginBottom: 8
|
|
1096
|
+
},
|
|
1097
|
+
children: "\u5217\u914D\u7F6E"
|
|
1098
|
+
}), /*#__PURE__*/_jsx(CardTableColumnsEditor, {
|
|
1099
|
+
rows: (currentSchema === null || currentSchema === void 0 || (_currentSchema$props5 = currentSchema.props) === null || _currentSchema$props5 === void 0 ? void 0 : _currentSchema$props5.rows) || [],
|
|
1100
|
+
value: (currentSchema === null || currentSchema === void 0 || (_currentSchema$props6 = currentSchema.props) === null || _currentSchema$props6 === void 0 ? void 0 : _currentSchema$props6.columns) || [],
|
|
1101
|
+
onChange: function onChange(columns, meta) {
|
|
1102
|
+
return handleTablePropsChange(_objectSpread({
|
|
1103
|
+
columns: columns
|
|
1104
|
+
}, meta !== null && meta !== void 0 && meta.rows ? {
|
|
1105
|
+
rows: meta.rows
|
|
1106
|
+
} : {}));
|
|
1107
|
+
}
|
|
1108
|
+
})]
|
|
1109
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
1110
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
1111
|
+
style: {
|
|
1112
|
+
color: '#1f2329',
|
|
1113
|
+
fontSize: 12,
|
|
1114
|
+
marginBottom: 8
|
|
1115
|
+
},
|
|
1116
|
+
children: "\u884C\u6570\u636E"
|
|
1117
|
+
}), /*#__PURE__*/_jsx(CardTableRowsEditor, {
|
|
1118
|
+
columns: (currentSchema === null || currentSchema === void 0 || (_currentSchema$props7 = currentSchema.props) === null || _currentSchema$props7 === void 0 ? void 0 : _currentSchema$props7.columns) || [],
|
|
1119
|
+
value: (currentSchema === null || currentSchema === void 0 || (_currentSchema$props8 = currentSchema.props) === null || _currentSchema$props8 === void 0 ? void 0 : _currentSchema$props8.rows) || [],
|
|
1120
|
+
onChange: function onChange(rows) {
|
|
1121
|
+
return handleTablePropsChange({
|
|
1122
|
+
rows: rows
|
|
1123
|
+
});
|
|
1124
|
+
}
|
|
1125
|
+
})]
|
|
1126
|
+
})]
|
|
1127
|
+
}) : null, hasProperties ? /*#__PURE__*/_jsx(FormRender, {
|
|
1128
|
+
form: form,
|
|
1129
|
+
schema: filteredSchema,
|
|
1130
|
+
widgets: _objectSpread(_objectSpread({}, _widgets), widgets),
|
|
1131
|
+
mapping: globalMapping,
|
|
1132
|
+
watch: {
|
|
1133
|
+
'#': function _(v) {
|
|
1134
|
+
return setTimeout(function () {
|
|
1135
|
+
return onDataChange(v);
|
|
1136
|
+
}, 0);
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
}) : /*#__PURE__*/_jsx("div", {
|
|
1140
|
+
style: {
|
|
1141
|
+
color: '#8f959e',
|
|
1142
|
+
fontSize: 12,
|
|
1143
|
+
textAlign: 'center',
|
|
1144
|
+
marginTop: 40
|
|
1145
|
+
},
|
|
1146
|
+
children: emptyHints[subTabKey] || '暂无配置'
|
|
1147
|
+
})]
|
|
1148
|
+
});
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
// ========== 字段联动编辑器 ==========
|
|
1152
|
+
|
|
1153
|
+
/** api_request 子行为不允许再嵌 api_request,以防递归 */
|
|
1154
|
+
|
|
1155
|
+
/** 点击联动单条规则:参考「字段值变化时」,但触发即点击本身,故只配 目标字段 + 动作。 */
|
|
1156
|
+
|
|
1157
|
+
var API_BODY_MODE_OPTIONS = [{
|
|
1158
|
+
value: 'form',
|
|
1159
|
+
label: '跟随表单'
|
|
1160
|
+
}, {
|
|
1161
|
+
value: 'field',
|
|
1162
|
+
label: '选字段'
|
|
1163
|
+
}, {
|
|
1164
|
+
value: 'json',
|
|
1165
|
+
label: '固定 JSON'
|
|
1166
|
+
}, {
|
|
1167
|
+
value: 'template',
|
|
1168
|
+
label: 'JSON + 字段引用'
|
|
1169
|
+
}];
|
|
1170
|
+
|
|
1171
|
+
/** 规范化 body:兼容旧版字符串 / 缺省 / 已是新结构 */
|
|
1172
|
+
function normalizeBody(body) {
|
|
1173
|
+
if (body && _typeof(body) === 'object' && typeof body.mode === 'string') {
|
|
1174
|
+
return body;
|
|
1175
|
+
}
|
|
1176
|
+
if (typeof body === 'string' && body.trim()) {
|
|
1177
|
+
return {
|
|
1178
|
+
mode: 'json',
|
|
1179
|
+
value: body
|
|
1180
|
+
};
|
|
1181
|
+
}
|
|
1182
|
+
return {
|
|
1183
|
+
mode: 'form'
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
var CARD_BUTTON_BEHAVIOR_OPTIONS = [{
|
|
1187
|
+
value: 'api_request',
|
|
1188
|
+
label: 'API 请求'
|
|
1189
|
+
}, {
|
|
1190
|
+
value: 'open_url',
|
|
1191
|
+
label: '打开链接'
|
|
1192
|
+
}, {
|
|
1193
|
+
value: 'form_reset',
|
|
1194
|
+
label: '重置表单'
|
|
1195
|
+
}
|
|
1196
|
+
// 'linkage'(点击联动)已退役:显隐/禁用/必填统一走字段的声明式 linkages(随值自动重算)。
|
|
1197
|
+
// 类型/编辑器/标签保留仅用于旧数据回显(同 form_submit/multi_url 的处理),不再可新增。
|
|
1198
|
+
];
|
|
1199
|
+
|
|
1200
|
+
/** 子行为(onSuccess/onError)下拉里不含 api_request,防止递归 */
|
|
1201
|
+
var CARD_BUTTON_CHILD_BEHAVIOR_OPTIONS = CARD_BUTTON_BEHAVIOR_OPTIONS.filter(function (o) {
|
|
1202
|
+
return o.value !== 'api_request';
|
|
1203
|
+
});
|
|
1204
|
+
|
|
1205
|
+
/** 全量行为标签(含已下线的 提交表单/多端链接):仅用于「已存在的旧数据」回显,
|
|
1206
|
+
* 不进可选项 —— 旧表单里配过 form_submit/multi_url 时下拉仍显示人话标签、运行时仍生效,
|
|
1207
|
+
* 但用户新增/切换时选不到它们(见 BehaviorList 的 rowOptions)。 */
|
|
1208
|
+
var ALL_BEHAVIOR_LABELS = {
|
|
1209
|
+
api_request: 'API 请求',
|
|
1210
|
+
open_url: '打开链接',
|
|
1211
|
+
multi_url: '多端链接',
|
|
1212
|
+
form_submit: '提交表单',
|
|
1213
|
+
form_reset: '重置表单',
|
|
1214
|
+
linkage: '联动'
|
|
1215
|
+
};
|
|
1216
|
+
var API_METHOD_OPTIONS = [{
|
|
1217
|
+
value: 'GET',
|
|
1218
|
+
label: 'GET'
|
|
1219
|
+
}, {
|
|
1220
|
+
value: 'POST',
|
|
1221
|
+
label: 'POST'
|
|
1222
|
+
}];
|
|
1223
|
+
var CARD_BUTTON_BEHAVIOR_PLACEHOLDERS = {
|
|
1224
|
+
open_url: 'https://example.com',
|
|
1225
|
+
multi_url: 'JSON,如 {"pc_url":"https://..."}',
|
|
1226
|
+
form_submit: '无需填写',
|
|
1227
|
+
form_reset: '无需填写'
|
|
1228
|
+
};
|
|
1229
|
+
function createBlankCardButtonBehavior() {
|
|
1230
|
+
return {
|
|
1231
|
+
type: 'open_url',
|
|
1232
|
+
value: ''
|
|
1233
|
+
};
|
|
1234
|
+
}
|
|
1235
|
+
function createBlankApiRequestBehavior() {
|
|
1236
|
+
return {
|
|
1237
|
+
type: 'api_request',
|
|
1238
|
+
value: {
|
|
1239
|
+
url: '',
|
|
1240
|
+
method: 'POST',
|
|
1241
|
+
body: {
|
|
1242
|
+
mode: 'form'
|
|
1243
|
+
}
|
|
1244
|
+
},
|
|
1245
|
+
onSuccess: [],
|
|
1246
|
+
onError: []
|
|
1247
|
+
};
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
/** 点击联动规则列表(behavior=linkage 的子编辑器)。
|
|
1251
|
+
* 参考「字段值变化时」的 LinkageEditor:目标字段 + 动作(显示/隐藏/必填/禁用);
|
|
1252
|
+
* 触发条件即点击本身,故不配 trigger。运行时由 behaviors.ts 的 linkage 派发,
|
|
1253
|
+
* 按动作写回目标字段 hidden/required/disabled(语义同 events/linkage.ts)。 */
|
|
1254
|
+
function ClickLinkageRules(_ref5) {
|
|
1255
|
+
var rules = _ref5.rules,
|
|
1256
|
+
fieldOptions = _ref5.fieldOptions,
|
|
1257
|
+
onChange = _ref5.onChange;
|
|
1258
|
+
var _useStyles2 = useStyles(),
|
|
1259
|
+
styles = _useStyles2.styles;
|
|
1260
|
+
var update = function update(idx, patch) {
|
|
1261
|
+
return onChange(rules.map(function (r, i) {
|
|
1262
|
+
return i === idx ? _objectSpread(_objectSpread({}, r), patch) : r;
|
|
1263
|
+
}));
|
|
1264
|
+
};
|
|
1265
|
+
var remove = function remove(idx) {
|
|
1266
|
+
return onChange(rules.filter(function (_, i) {
|
|
1267
|
+
return i !== idx;
|
|
1268
|
+
}));
|
|
1269
|
+
};
|
|
1270
|
+
var add = function add() {
|
|
1271
|
+
return onChange([].concat(_toConsumableArray(rules), [{
|
|
1272
|
+
target: '',
|
|
1273
|
+
action: 'show'
|
|
1274
|
+
}]));
|
|
1275
|
+
};
|
|
1276
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
1277
|
+
children: [rules.length === 0 && /*#__PURE__*/_jsx("div", {
|
|
1278
|
+
className: styles.clickLinkageEmpty,
|
|
1279
|
+
children: "\u6682\u65E0\u8054\u52A8\u89C4\u5219"
|
|
1280
|
+
}), rules.map(function (rule, idx) {
|
|
1281
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
1282
|
+
className: styles.clickLinkageRule,
|
|
1283
|
+
children: [/*#__PURE__*/_jsx(Select, {
|
|
1284
|
+
size: "small",
|
|
1285
|
+
showSearch: true,
|
|
1286
|
+
optionFilterProp: "label",
|
|
1287
|
+
placeholder: "\u76EE\u6807\u5B57\u6BB5",
|
|
1288
|
+
value: rule.target || undefined,
|
|
1289
|
+
options: fieldOptions,
|
|
1290
|
+
onChange: function onChange(v) {
|
|
1291
|
+
return update(idx, {
|
|
1292
|
+
target: v
|
|
1293
|
+
});
|
|
1294
|
+
}
|
|
1295
|
+
}), /*#__PURE__*/_jsx(Select, {
|
|
1296
|
+
size: "small",
|
|
1297
|
+
value: rule.action,
|
|
1298
|
+
options: Object.keys(ACTION_LABELS).map(function (k) {
|
|
1299
|
+
return {
|
|
1300
|
+
value: k,
|
|
1301
|
+
label: ACTION_LABELS[k]
|
|
1302
|
+
};
|
|
1303
|
+
}),
|
|
1304
|
+
onChange: function onChange(v) {
|
|
1305
|
+
return update(idx, {
|
|
1306
|
+
action: v
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1309
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
1310
|
+
className: styles.linkageRemove,
|
|
1311
|
+
onClick: function onClick() {
|
|
1312
|
+
return remove(idx);
|
|
1313
|
+
},
|
|
1314
|
+
children: /*#__PURE__*/_jsx(CloseOutlined, {
|
|
1315
|
+
style: {
|
|
1316
|
+
fontSize: 11
|
|
1317
|
+
}
|
|
1318
|
+
})
|
|
1319
|
+
})]
|
|
1320
|
+
}, idx);
|
|
1321
|
+
}), /*#__PURE__*/_jsxs("span", {
|
|
1322
|
+
className: styles.linkageAddRule,
|
|
1323
|
+
onClick: add,
|
|
1324
|
+
children: [/*#__PURE__*/_jsx(PlusOutlined, {
|
|
1325
|
+
style: {
|
|
1326
|
+
fontSize: 10
|
|
1327
|
+
}
|
|
1328
|
+
}), "\u6DFB\u52A0\u89C4\u5219"]
|
|
1329
|
+
})]
|
|
1330
|
+
});
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
/** 行为列表(含 api_request 的多行布局 + 嵌套 onSuccess/onError)。
|
|
1334
|
+
* allowApiRequest=false 用于 onSuccess/onError 子链路,防止 api_request 递归。
|
|
1335
|
+
* fieldOptions 给 body=field 模式选字段用,仅 allowApiRequest 时需要。
|
|
1336
|
+
* linkageFieldOptions 给 behavior=linkage 选目标字段用(各层级都需要,故透传到子链路)。 */
|
|
1337
|
+
function BehaviorList(_ref6) {
|
|
1338
|
+
var behaviors = _ref6.behaviors,
|
|
1339
|
+
onChange = _ref6.onChange,
|
|
1340
|
+
allowApiRequest = _ref6.allowApiRequest,
|
|
1341
|
+
fieldOptions = _ref6.fieldOptions,
|
|
1342
|
+
linkageFieldOptions = _ref6.linkageFieldOptions;
|
|
1343
|
+
var _useStyles3 = useStyles(),
|
|
1344
|
+
styles = _useStyles3.styles;
|
|
1345
|
+
var options = allowApiRequest ? CARD_BUTTON_BEHAVIOR_OPTIONS : CARD_BUTTON_CHILD_BEHAVIOR_OPTIONS;
|
|
1346
|
+
var updateAt = function updateAt(idx, patch) {
|
|
1347
|
+
var next = behaviors.map(function (item, i) {
|
|
1348
|
+
if (i !== idx) return item;
|
|
1349
|
+
// type 切换时按目标类型重置 value/子链路(避免脏数据)
|
|
1350
|
+
if (patch.type && patch.type !== item.type) {
|
|
1351
|
+
if (patch.type === 'api_request') return createBlankApiRequestBehavior();
|
|
1352
|
+
if (patch.type === 'linkage') return {
|
|
1353
|
+
type: 'linkage',
|
|
1354
|
+
value: []
|
|
1355
|
+
};
|
|
1356
|
+
if (patch.type === 'form_submit' || patch.type === 'form_reset') {
|
|
1357
|
+
return {
|
|
1358
|
+
type: patch.type
|
|
1359
|
+
};
|
|
1360
|
+
}
|
|
1361
|
+
return {
|
|
1362
|
+
type: patch.type,
|
|
1363
|
+
value: ''
|
|
1364
|
+
};
|
|
1365
|
+
}
|
|
1366
|
+
return _objectSpread(_objectSpread({}, item), patch);
|
|
1367
|
+
});
|
|
1368
|
+
onChange(next);
|
|
1369
|
+
};
|
|
1370
|
+
var removeAt = function removeAt(idx) {
|
|
1371
|
+
onChange(behaviors.filter(function (_, i) {
|
|
1372
|
+
return i !== idx;
|
|
1373
|
+
}));
|
|
1374
|
+
};
|
|
1375
|
+
var addItem = function addItem(factory) {
|
|
1376
|
+
onChange([].concat(_toConsumableArray(behaviors), [factory()]));
|
|
1377
|
+
};
|
|
1378
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
1379
|
+
className: styles.cardButtonBehaviorList,
|
|
1380
|
+
children: [behaviors.length === 0 && /*#__PURE__*/_jsx("div", {
|
|
1381
|
+
className: styles.cardButtonBehaviorEmpty,
|
|
1382
|
+
children: "\u6682\u65E0\u70B9\u51FB\u884C\u4E3A"
|
|
1383
|
+
}), behaviors.map(function (behavior, idx) {
|
|
1384
|
+
var _behavior$type, _ALL_BEHAVIOR_LABELS$;
|
|
1385
|
+
var type = (_behavior$type = behavior.type) !== null && _behavior$type !== void 0 ? _behavior$type : 'open_url';
|
|
1386
|
+
// 旧数据用的已下线类型(form_submit/multi_url)不在 options 里,临时补一条带标签的
|
|
1387
|
+
// 选项给本行回显,避免下拉显示成裸 value;切走后该选项即消失,无法再选回。
|
|
1388
|
+
var rowOptions = options.some(function (o) {
|
|
1389
|
+
return o.value === type;
|
|
1390
|
+
}) ? options : [].concat(_toConsumableArray(options), [{
|
|
1391
|
+
value: type,
|
|
1392
|
+
label: (_ALL_BEHAVIOR_LABELS$ = ALL_BEHAVIOR_LABELS[type]) !== null && _ALL_BEHAVIOR_LABELS$ !== void 0 ? _ALL_BEHAVIOR_LABELS$ : type
|
|
1393
|
+
}]);
|
|
1394
|
+
if (type === 'api_request' && allowApiRequest) {
|
|
1395
|
+
var _apiVal$method, _apiVal$url;
|
|
1396
|
+
var apiVal = _typeof(behavior.value) === 'object' && behavior.value ? behavior.value : {};
|
|
1397
|
+
var updateApi = function updateApi(patch) {
|
|
1398
|
+
return updateAt(idx, {
|
|
1399
|
+
value: _objectSpread(_objectSpread({}, apiVal), patch)
|
|
1400
|
+
});
|
|
1401
|
+
};
|
|
1402
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
1403
|
+
style: {
|
|
1404
|
+
border: '1px solid rgba(31,35,41,0.12)',
|
|
1405
|
+
borderRadius: 8,
|
|
1406
|
+
padding: 10,
|
|
1407
|
+
display: 'flex',
|
|
1408
|
+
flexDirection: 'column',
|
|
1409
|
+
gap: 8,
|
|
1410
|
+
background: '#fafbfc'
|
|
1411
|
+
},
|
|
1412
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
1413
|
+
className: styles.cardButtonBehaviorRow,
|
|
1414
|
+
children: [/*#__PURE__*/_jsx(Select, {
|
|
1415
|
+
value: type,
|
|
1416
|
+
options: rowOptions,
|
|
1417
|
+
onChange: function onChange(nextType) {
|
|
1418
|
+
return updateAt(idx, {
|
|
1419
|
+
type: nextType
|
|
1420
|
+
});
|
|
1421
|
+
}
|
|
1422
|
+
}), /*#__PURE__*/_jsx("div", {}), /*#__PURE__*/_jsx(Button, {
|
|
1423
|
+
type: "text",
|
|
1424
|
+
className: styles.cardButtonBehaviorRemove,
|
|
1425
|
+
icon: /*#__PURE__*/_jsx(CloseOutlined, {}),
|
|
1426
|
+
onClick: function onClick() {
|
|
1427
|
+
return removeAt(idx);
|
|
1428
|
+
}
|
|
1429
|
+
})]
|
|
1430
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
1431
|
+
style: {
|
|
1432
|
+
display: 'grid',
|
|
1433
|
+
gridTemplateColumns: '88px 1fr',
|
|
1434
|
+
gap: 8,
|
|
1435
|
+
alignItems: 'center'
|
|
1436
|
+
},
|
|
1437
|
+
children: [/*#__PURE__*/_jsx(Select, {
|
|
1438
|
+
value: (_apiVal$method = apiVal.method) !== null && _apiVal$method !== void 0 ? _apiVal$method : 'POST',
|
|
1439
|
+
options: API_METHOD_OPTIONS,
|
|
1440
|
+
onChange: function onChange(v) {
|
|
1441
|
+
return updateApi({
|
|
1442
|
+
method: v
|
|
1443
|
+
});
|
|
1444
|
+
}
|
|
1445
|
+
}), /*#__PURE__*/_jsx(Input, {
|
|
1446
|
+
placeholder: "\u8BF7\u6C42 URL\uFF0C\u5982 /api/leave/approve",
|
|
1447
|
+
value: (_apiVal$url = apiVal.url) !== null && _apiVal$url !== void 0 ? _apiVal$url : '',
|
|
1448
|
+
onChange: function onChange(e) {
|
|
1449
|
+
return updateApi({
|
|
1450
|
+
url: e.target.value
|
|
1451
|
+
});
|
|
1452
|
+
}
|
|
1453
|
+
})]
|
|
1454
|
+
}), function (_bodyConf$value) {
|
|
1455
|
+
var bodyConf = normalizeBody(apiVal.body);
|
|
1456
|
+
var updateBody = function updateBody(patch) {
|
|
1457
|
+
return updateApi({
|
|
1458
|
+
body: _objectSpread(_objectSpread({}, bodyConf), patch)
|
|
1459
|
+
});
|
|
1460
|
+
};
|
|
1461
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
1462
|
+
style: {
|
|
1463
|
+
display: 'flex',
|
|
1464
|
+
flexDirection: 'column',
|
|
1465
|
+
gap: 6
|
|
1466
|
+
},
|
|
1467
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
1468
|
+
className: styles.cardButtonEventLabel,
|
|
1469
|
+
style: {
|
|
1470
|
+
margin: 0
|
|
1471
|
+
},
|
|
1472
|
+
children: "\u8BF7\u6C42\u4F53"
|
|
1473
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
1474
|
+
style: {
|
|
1475
|
+
display: 'grid',
|
|
1476
|
+
gridTemplateColumns: '132px minmax(0, 1fr)',
|
|
1477
|
+
gap: 8,
|
|
1478
|
+
alignItems: 'center'
|
|
1479
|
+
},
|
|
1480
|
+
children: [/*#__PURE__*/_jsx(Select, {
|
|
1481
|
+
value: bodyConf.mode,
|
|
1482
|
+
options: API_BODY_MODE_OPTIONS,
|
|
1483
|
+
onChange: function onChange(mode) {
|
|
1484
|
+
return updateBody({
|
|
1485
|
+
mode: mode
|
|
1486
|
+
});
|
|
1487
|
+
}
|
|
1488
|
+
}), bodyConf.mode === 'field' ? /*#__PURE__*/_jsx(Select, {
|
|
1489
|
+
showSearch: true,
|
|
1490
|
+
optionFilterProp: "label",
|
|
1491
|
+
placeholder: "\u9009\u62E9\u5B57\u6BB5",
|
|
1492
|
+
value: bodyConf.fieldId || undefined,
|
|
1493
|
+
options: fieldOptions !== null && fieldOptions !== void 0 ? fieldOptions : [],
|
|
1494
|
+
onChange: function onChange(fieldId) {
|
|
1495
|
+
return updateBody({
|
|
1496
|
+
fieldId: fieldId
|
|
1497
|
+
});
|
|
1498
|
+
}
|
|
1499
|
+
}) : /*#__PURE__*/_jsx("div", {})]
|
|
1500
|
+
}), bodyConf.mode === 'form' && /*#__PURE__*/_jsx("div", {
|
|
1501
|
+
style: {
|
|
1502
|
+
color: '#8f959e',
|
|
1503
|
+
fontSize: 12,
|
|
1504
|
+
lineHeight: '20px'
|
|
1505
|
+
},
|
|
1506
|
+
children: "\u70B9\u51FB\u65F6\u53D6\u5F53\u524D\u8868\u5355\u5168\u90E8\u6570\u636E\u4F5C\u4E3A\u8BF7\u6C42\u4F53\uFF08GET \u65F6\u4F5C\u4E3A query\uFF09"
|
|
1507
|
+
}), (bodyConf.mode === 'json' || bodyConf.mode === 'template') && /*#__PURE__*/_jsx(Input.TextArea, {
|
|
1508
|
+
placeholder: bodyConf.mode === 'json' ? '请求体 JSON,如 {"id":1}' : '可用 {{字段ID}} 引用字段值,如 {"id":"{{LeaveApplicant}}"}',
|
|
1509
|
+
value: (_bodyConf$value = bodyConf.value) !== null && _bodyConf$value !== void 0 ? _bodyConf$value : '',
|
|
1510
|
+
onChange: function onChange(e) {
|
|
1511
|
+
return updateBody({
|
|
1512
|
+
value: e.target.value
|
|
1513
|
+
});
|
|
1514
|
+
},
|
|
1515
|
+
autoSize: {
|
|
1516
|
+
minRows: 2,
|
|
1517
|
+
maxRows: 4
|
|
1518
|
+
}
|
|
1519
|
+
})]
|
|
1520
|
+
});
|
|
1521
|
+
}(), /*#__PURE__*/_jsxs("div", {
|
|
1522
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
1523
|
+
className: styles.cardButtonEventLabel,
|
|
1524
|
+
style: {
|
|
1525
|
+
marginTop: 4,
|
|
1526
|
+
marginBottom: 6
|
|
1527
|
+
},
|
|
1528
|
+
children: "\u8BF7\u6C42\u6210\u529F\u56DE\u8C03\uFF08onSuccess\uFF09"
|
|
1529
|
+
}), /*#__PURE__*/_jsx(BehaviorList, {
|
|
1530
|
+
behaviors: Array.isArray(behavior.onSuccess) ? behavior.onSuccess : [],
|
|
1531
|
+
onChange: function onChange(next) {
|
|
1532
|
+
return updateAt(idx, {
|
|
1533
|
+
onSuccess: next
|
|
1534
|
+
});
|
|
1535
|
+
},
|
|
1536
|
+
allowApiRequest: false,
|
|
1537
|
+
linkageFieldOptions: linkageFieldOptions
|
|
1538
|
+
})]
|
|
1539
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
1540
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
1541
|
+
className: styles.cardButtonEventLabel,
|
|
1542
|
+
style: {
|
|
1543
|
+
marginTop: 4,
|
|
1544
|
+
marginBottom: 6
|
|
1545
|
+
},
|
|
1546
|
+
children: "\u8BF7\u6C42\u5931\u8D25\u56DE\u8C03\uFF08onError\uFF09"
|
|
1547
|
+
}), /*#__PURE__*/_jsx(BehaviorList, {
|
|
1548
|
+
behaviors: Array.isArray(behavior.onError) ? behavior.onError : [],
|
|
1549
|
+
onChange: function onChange(next) {
|
|
1550
|
+
return updateAt(idx, {
|
|
1551
|
+
onError: next
|
|
1552
|
+
});
|
|
1553
|
+
},
|
|
1554
|
+
allowApiRequest: false,
|
|
1555
|
+
linkageFieldOptions: linkageFieldOptions
|
|
1556
|
+
})]
|
|
1557
|
+
})]
|
|
1558
|
+
}, idx);
|
|
1559
|
+
}
|
|
1560
|
+
if (type === 'linkage') {
|
|
1561
|
+
var rules = Array.isArray(behavior.value) ? behavior.value : [];
|
|
1562
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
1563
|
+
className: styles.clickLinkageBox,
|
|
1564
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
1565
|
+
className: styles.cardButtonBehaviorRow,
|
|
1566
|
+
children: [/*#__PURE__*/_jsx(Select, {
|
|
1567
|
+
value: type,
|
|
1568
|
+
options: rowOptions,
|
|
1569
|
+
onChange: function onChange(nextType) {
|
|
1570
|
+
return updateAt(idx, {
|
|
1571
|
+
type: nextType
|
|
1572
|
+
});
|
|
1573
|
+
}
|
|
1574
|
+
}), /*#__PURE__*/_jsx("div", {}), /*#__PURE__*/_jsx(Button, {
|
|
1575
|
+
type: "text",
|
|
1576
|
+
className: styles.cardButtonBehaviorRemove,
|
|
1577
|
+
icon: /*#__PURE__*/_jsx(CloseOutlined, {}),
|
|
1578
|
+
onClick: function onClick() {
|
|
1579
|
+
return removeAt(idx);
|
|
1580
|
+
}
|
|
1581
|
+
})]
|
|
1582
|
+
}), /*#__PURE__*/_jsx(ClickLinkageRules, {
|
|
1583
|
+
rules: rules,
|
|
1584
|
+
fieldOptions: linkageFieldOptions !== null && linkageFieldOptions !== void 0 ? linkageFieldOptions : [],
|
|
1585
|
+
onChange: function onChange(next) {
|
|
1586
|
+
return updateAt(idx, {
|
|
1587
|
+
value: next
|
|
1588
|
+
});
|
|
1589
|
+
}
|
|
1590
|
+
})]
|
|
1591
|
+
}, idx);
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
// 简单类型:单行布局
|
|
1595
|
+
var valueDisabled = type === 'form_submit' || type === 'form_reset';
|
|
1596
|
+
var placeholderType = type === 'api_request' ? 'open_url' : type;
|
|
1597
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
1598
|
+
className: styles.cardButtonBehaviorRow,
|
|
1599
|
+
children: [/*#__PURE__*/_jsx(Select, {
|
|
1600
|
+
value: type,
|
|
1601
|
+
options: rowOptions,
|
|
1602
|
+
onChange: function onChange(nextType) {
|
|
1603
|
+
return updateAt(idx, {
|
|
1604
|
+
type: nextType
|
|
1605
|
+
});
|
|
1606
|
+
}
|
|
1607
|
+
}), /*#__PURE__*/_jsx(Input, {
|
|
1608
|
+
disabled: valueDisabled,
|
|
1609
|
+
placeholder: CARD_BUTTON_BEHAVIOR_PLACEHOLDERS[placeholderType],
|
|
1610
|
+
value: typeof behavior.value === 'string' ? behavior.value : '',
|
|
1611
|
+
onChange: function onChange(e) {
|
|
1612
|
+
return updateAt(idx, {
|
|
1613
|
+
value: e.target.value
|
|
1614
|
+
});
|
|
1615
|
+
}
|
|
1616
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
1617
|
+
type: "text",
|
|
1618
|
+
className: styles.cardButtonBehaviorRemove,
|
|
1619
|
+
icon: /*#__PURE__*/_jsx(CloseOutlined, {}),
|
|
1620
|
+
onClick: function onClick() {
|
|
1621
|
+
return removeAt(idx);
|
|
1622
|
+
}
|
|
1623
|
+
})]
|
|
1624
|
+
}, idx);
|
|
1625
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
1626
|
+
block: true,
|
|
1627
|
+
type: "dashed",
|
|
1628
|
+
className: styles.cardButtonBehaviorAdd,
|
|
1629
|
+
icon: /*#__PURE__*/_jsx(PlusOutlined, {}),
|
|
1630
|
+
onClick: function onClick() {
|
|
1631
|
+
return addItem(createBlankCardButtonBehavior);
|
|
1632
|
+
},
|
|
1633
|
+
children: "\u6DFB\u52A0\u884C\u4E3A"
|
|
1634
|
+
})]
|
|
1635
|
+
});
|
|
1636
|
+
}
|
|
1637
|
+
function CardButtonBehaviorsEditor(_ref7) {
|
|
1638
|
+
var _value$hoverTips$cont, _value$hoverTips;
|
|
1639
|
+
var value = _ref7.value,
|
|
1640
|
+
_onChange = _ref7.onChange,
|
|
1641
|
+
flatten = _ref7.flatten,
|
|
1642
|
+
selfId = _ref7.selfId,
|
|
1643
|
+
_ref7$showFormAction = _ref7.showFormAction,
|
|
1644
|
+
showFormAction = _ref7$showFormAction === void 0 ? true : _ref7$showFormAction,
|
|
1645
|
+
_ref7$showHoverTips = _ref7.showHoverTips,
|
|
1646
|
+
showHoverTips = _ref7$showHoverTips === void 0 ? false : _ref7$showHoverTips;
|
|
1647
|
+
var _useStyles4 = useStyles(),
|
|
1648
|
+
styles = _useStyles4.styles;
|
|
1649
|
+
var behaviors = Array.isArray(value === null || value === void 0 ? void 0 : value.behaviors) ? value.behaviors : [];
|
|
1650
|
+
var hoverTips = value !== null && value !== void 0 && value.hoverTips && _typeof(value.hoverTips) === 'object' ? value.hoverTips : undefined;
|
|
1651
|
+
var hoverTipsContent = typeof (value === null || value === void 0 ? void 0 : value.hoverTips) === 'string' ? value.hoverTips : (_value$hoverTips$cont = value === null || value === void 0 || (_value$hoverTips = value.hoverTips) === null || _value$hoverTips === void 0 ? void 0 : _value$hoverTips.content) !== null && _value$hoverTips$cont !== void 0 ? _value$hoverTips$cont : '';
|
|
1652
|
+
|
|
1653
|
+
// 给 api_request body=field 模式提供字段下拉候选
|
|
1654
|
+
var fieldOptions = useMemo(function () {
|
|
1655
|
+
return Object.keys(flatten).filter(function (id) {
|
|
1656
|
+
return id !== selfId && id !== '#';
|
|
1657
|
+
}).map(function (id) {
|
|
1658
|
+
var _flatten$id2;
|
|
1659
|
+
var schema = ((_flatten$id2 = flatten[id]) === null || _flatten$id2 === void 0 ? void 0 : _flatten$id2.schema) || {};
|
|
1660
|
+
var key = getKeyFromUniqueId(schema.$id);
|
|
1661
|
+
return {
|
|
1662
|
+
id: id,
|
|
1663
|
+
key: key,
|
|
1664
|
+
title: schema.title || key
|
|
1665
|
+
};
|
|
1666
|
+
}).filter(function (o) {
|
|
1667
|
+
var _o$key2;
|
|
1668
|
+
return !((_o$key2 = o.key) !== null && _o$key2 !== void 0 && _o$key2.startsWith('_'));
|
|
1669
|
+
}).map(function (o) {
|
|
1670
|
+
return {
|
|
1671
|
+
value: o.id,
|
|
1672
|
+
label: o.title ? "".concat(o.title, " \xB7 ").concat(o.key) : o.key
|
|
1673
|
+
};
|
|
1674
|
+
});
|
|
1675
|
+
}, [flatten, selfId]);
|
|
1676
|
+
|
|
1677
|
+
// behavior=linkage 选目标字段:复用「字段值变化时」的统一候选(label 始终人话)
|
|
1678
|
+
var linkageFieldOptions = useMemo(function () {
|
|
1679
|
+
return buildFieldOptions(flatten, selfId);
|
|
1680
|
+
}, [flatten, selfId]);
|
|
1681
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
1682
|
+
children: [showFormAction && /*#__PURE__*/_jsxs("div", {
|
|
1683
|
+
className: styles.cardButtonEventField,
|
|
1684
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
1685
|
+
className: styles.cardButtonEventLabel,
|
|
1686
|
+
children: "\u70B9\u51FB\u65F6\u8BBE\u503C"
|
|
1687
|
+
}), /*#__PURE__*/_jsx(AfterActionsEditor, {
|
|
1688
|
+
flatten: flatten,
|
|
1689
|
+
selfId: selfId,
|
|
1690
|
+
value: Array.isArray(value === null || value === void 0 ? void 0 : value.setValues) ? value.setValues : [],
|
|
1691
|
+
onChange: function onChange(next) {
|
|
1692
|
+
return _onChange({
|
|
1693
|
+
setValues: next
|
|
1694
|
+
});
|
|
1695
|
+
},
|
|
1696
|
+
title: "\u70B9\u51FB\u65F6\u8BBE\u503C",
|
|
1697
|
+
hint: "\u70B9\u51FB\u6309\u94AE\u5148\u7ED9\u76EE\u6807\u5B57\u6BB5\u8D4B\u503C\uFF0C\u518D\u6267\u884C\u4E0B\u65B9\u884C\u4E3A\u6570\u7EC4\uFF08\u5982 \u91CD\u7F6E\u8868\u5355 / \u8054\u52A8\uFF09",
|
|
1698
|
+
sourceTypes: ['value', 'clear']
|
|
1699
|
+
})]
|
|
1700
|
+
}), showHoverTips && /*#__PURE__*/_jsxs("div", {
|
|
1701
|
+
className: styles.cardButtonEventField,
|
|
1702
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
1703
|
+
className: styles.cardButtonEventLabel,
|
|
1704
|
+
children: "\u60AC\u6D6E\u63D0\u793A"
|
|
1705
|
+
}), /*#__PURE__*/_jsx(Input, {
|
|
1706
|
+
placeholder: "\u9F20\u6807\u60AC\u6D6E\u65F6\u663E\u793A\u7684\u63D0\u793A",
|
|
1707
|
+
value: hoverTipsContent,
|
|
1708
|
+
onChange: function onChange(e) {
|
|
1709
|
+
return _onChange({
|
|
1710
|
+
hoverTips: _objectSpread(_objectSpread({}, hoverTips || {
|
|
1711
|
+
tag: 'plain_text'
|
|
1712
|
+
}), {}, {
|
|
1713
|
+
content: e.target.value
|
|
1714
|
+
})
|
|
1715
|
+
});
|
|
1716
|
+
}
|
|
1717
|
+
})]
|
|
1718
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
1719
|
+
className: styles.cardButtonEventField,
|
|
1720
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
1721
|
+
className: styles.cardButtonEventLabel,
|
|
1722
|
+
children: "\u884C\u4E3A\u6570\u7EC4"
|
|
1723
|
+
}), /*#__PURE__*/_jsx(BehaviorList, {
|
|
1724
|
+
behaviors: behaviors,
|
|
1725
|
+
onChange: function onChange(next) {
|
|
1726
|
+
return _onChange({
|
|
1727
|
+
behaviors: next
|
|
1728
|
+
});
|
|
1729
|
+
},
|
|
1730
|
+
allowApiRequest: true,
|
|
1731
|
+
fieldOptions: fieldOptions,
|
|
1732
|
+
linkageFieldOptions: linkageFieldOptions
|
|
1733
|
+
})]
|
|
1734
|
+
})]
|
|
1735
|
+
});
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* 字段「值变化时触发行为」编辑器:直接编辑 schema.onChangeBehaviors(CardButtonBehavior[]),
|
|
1740
|
+
* 复用 BehaviorList。与 cardButton 的区别——它绑 schema 顶层数组、不含 setValues/hoverTips。
|
|
1741
|
+
*/
|
|
1742
|
+
function OnChangeBehaviorsEditor(_ref8) {
|
|
1743
|
+
var behaviors = _ref8.behaviors,
|
|
1744
|
+
onChange = _ref8.onChange,
|
|
1745
|
+
flatten = _ref8.flatten,
|
|
1746
|
+
selfId = _ref8.selfId;
|
|
1747
|
+
// api_request body=field 模式的字段候选(同 CardButtonBehaviorsEditor)
|
|
1748
|
+
var fieldOptions = useMemo(function () {
|
|
1749
|
+
return Object.keys(flatten).filter(function (id) {
|
|
1750
|
+
return id !== selfId && id !== '#';
|
|
1751
|
+
}).map(function (id) {
|
|
1752
|
+
var _flatten$id3;
|
|
1753
|
+
var schema = ((_flatten$id3 = flatten[id]) === null || _flatten$id3 === void 0 ? void 0 : _flatten$id3.schema) || {};
|
|
1754
|
+
var key = getKeyFromUniqueId(schema.$id);
|
|
1755
|
+
return {
|
|
1756
|
+
id: id,
|
|
1757
|
+
key: key,
|
|
1758
|
+
title: schema.title || key
|
|
1759
|
+
};
|
|
1760
|
+
}).filter(function (o) {
|
|
1761
|
+
var _o$key3;
|
|
1762
|
+
return !((_o$key3 = o.key) !== null && _o$key3 !== void 0 && _o$key3.startsWith('_'));
|
|
1763
|
+
}).map(function (o) {
|
|
1764
|
+
return {
|
|
1765
|
+
value: o.id,
|
|
1766
|
+
label: o.title ? "".concat(o.title, " \xB7 ").concat(o.key) : o.key
|
|
1767
|
+
};
|
|
1768
|
+
});
|
|
1769
|
+
}, [flatten, selfId]);
|
|
1770
|
+
var linkageFieldOptions = useMemo(function () {
|
|
1771
|
+
return buildFieldOptions(flatten, selfId);
|
|
1772
|
+
}, [flatten, selfId]);
|
|
1773
|
+
return /*#__PURE__*/_jsx(BehaviorList, {
|
|
1774
|
+
behaviors: Array.isArray(behaviors) ? behaviors : [],
|
|
1775
|
+
onChange: onChange,
|
|
1776
|
+
allowApiRequest: true,
|
|
1777
|
+
fieldOptions: fieldOptions,
|
|
1778
|
+
linkageFieldOptions: linkageFieldOptions
|
|
1779
|
+
});
|
|
1780
|
+
}
|
|
1781
|
+
var ACTION_LABELS = {
|
|
1782
|
+
show: '显示',
|
|
1783
|
+
hide: '隐藏',
|
|
1784
|
+
require: '设为必填',
|
|
1785
|
+
disable: '禁用'
|
|
1786
|
+
};
|
|
1787
|
+
var TRIGGER_LABELS = {
|
|
1788
|
+
always: '值变化时',
|
|
1789
|
+
eq: '值等于',
|
|
1790
|
+
neq: '值不等于'
|
|
1791
|
+
};
|
|
1792
|
+
function createBlankLinkage() {
|
|
1793
|
+
return {
|
|
1794
|
+
id: "lk_".concat(Math.random().toString(36).slice(2, 8)),
|
|
1795
|
+
target: '',
|
|
1796
|
+
action: 'hide',
|
|
1797
|
+
trigger: 'always'
|
|
1798
|
+
};
|
|
1799
|
+
}
|
|
1800
|
+
function LinkageEditor(_ref9) {
|
|
1801
|
+
var flatten = _ref9.flatten,
|
|
1802
|
+
selfId = _ref9.selfId,
|
|
1803
|
+
value = _ref9.value,
|
|
1804
|
+
onChange = _ref9.onChange;
|
|
1805
|
+
var _useStyles5 = useStyles(),
|
|
1806
|
+
styles = _useStyles5.styles;
|
|
1807
|
+
|
|
1808
|
+
// 候选目标字段(统一 helper,label 始终人话)
|
|
1809
|
+
var targetOptions = useMemo(function () {
|
|
1810
|
+
return buildFieldOptions(flatten, selfId);
|
|
1811
|
+
}, [flatten, selfId]);
|
|
1812
|
+
var update = function update(idx, patch) {
|
|
1813
|
+
var next = value.map(function (r, i) {
|
|
1814
|
+
return i === idx ? _objectSpread(_objectSpread({}, r), patch) : r;
|
|
1815
|
+
});
|
|
1816
|
+
onChange(next);
|
|
1817
|
+
};
|
|
1818
|
+
var remove = function remove(idx) {
|
|
1819
|
+
onChange(value.filter(function (_, i) {
|
|
1820
|
+
return i !== idx;
|
|
1821
|
+
}));
|
|
1822
|
+
};
|
|
1823
|
+
var add = function add() {
|
|
1824
|
+
return onChange([].concat(_toConsumableArray(value), [createBlankLinkage()]));
|
|
1825
|
+
};
|
|
1826
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
1827
|
+
className: styles.linkageBody,
|
|
1828
|
+
children: [value.length === 0 && /*#__PURE__*/_jsx("div", {
|
|
1829
|
+
className: styles.linkageEmpty,
|
|
1830
|
+
children: "\u6682\u65E0\u8054\u52A8\u89C4\u5219"
|
|
1831
|
+
}), value.map(function (rule, idx) {
|
|
1832
|
+
var _rule$triggerValue;
|
|
1833
|
+
return /*#__PURE__*/_jsx(React.Fragment, {
|
|
1834
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
1835
|
+
className: styles.linkageRule,
|
|
1836
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
1837
|
+
className: styles.linkageLabelRow,
|
|
1838
|
+
children: ["\u89C4\u5219 ", idx + 1]
|
|
1839
|
+
}), /*#__PURE__*/_jsx(Select, {
|
|
1840
|
+
size: "small",
|
|
1841
|
+
placeholder: "\u76EE\u6807\u5B57\u6BB5",
|
|
1842
|
+
value: rule.target || undefined,
|
|
1843
|
+
options: targetOptions,
|
|
1844
|
+
onChange: function onChange(v) {
|
|
1845
|
+
return update(idx, {
|
|
1846
|
+
target: v
|
|
1847
|
+
});
|
|
1848
|
+
},
|
|
1849
|
+
showSearch: true,
|
|
1850
|
+
optionFilterProp: "label",
|
|
1851
|
+
style: {
|
|
1852
|
+
width: '100%'
|
|
1853
|
+
}
|
|
1854
|
+
}), /*#__PURE__*/_jsx(Select, {
|
|
1855
|
+
size: "small",
|
|
1856
|
+
value: rule.action,
|
|
1857
|
+
onChange: function onChange(v) {
|
|
1858
|
+
return update(idx, {
|
|
1859
|
+
action: v
|
|
1860
|
+
});
|
|
1861
|
+
},
|
|
1862
|
+
options: Object.keys(ACTION_LABELS).map(function (k) {
|
|
1863
|
+
return {
|
|
1864
|
+
value: k,
|
|
1865
|
+
label: ACTION_LABELS[k]
|
|
1866
|
+
};
|
|
1867
|
+
}),
|
|
1868
|
+
style: {
|
|
1869
|
+
width: '100%'
|
|
1870
|
+
}
|
|
1871
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
1872
|
+
className: styles.linkageRemove,
|
|
1873
|
+
onClick: function onClick() {
|
|
1874
|
+
return remove(idx);
|
|
1875
|
+
},
|
|
1876
|
+
children: /*#__PURE__*/_jsx(CloseOutlined, {
|
|
1877
|
+
style: {
|
|
1878
|
+
fontSize: 11
|
|
1879
|
+
}
|
|
1880
|
+
})
|
|
1881
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
1882
|
+
className: styles.linkageCondition,
|
|
1883
|
+
children: [/*#__PURE__*/_jsx(Select, {
|
|
1884
|
+
size: "small",
|
|
1885
|
+
value: rule.trigger,
|
|
1886
|
+
onChange: function onChange(v) {
|
|
1887
|
+
return update(idx, {
|
|
1888
|
+
trigger: v
|
|
1889
|
+
});
|
|
1890
|
+
},
|
|
1891
|
+
options: Object.keys(TRIGGER_LABELS).map(function (k) {
|
|
1892
|
+
return {
|
|
1893
|
+
value: k,
|
|
1894
|
+
label: TRIGGER_LABELS[k]
|
|
1895
|
+
};
|
|
1896
|
+
})
|
|
1897
|
+
}), rule.trigger !== 'always' && /*#__PURE__*/_jsx(Input, {
|
|
1898
|
+
size: "small",
|
|
1899
|
+
placeholder: "\u5BF9\u6BD4\u503C",
|
|
1900
|
+
value: (_rule$triggerValue = rule.triggerValue) !== null && _rule$triggerValue !== void 0 ? _rule$triggerValue : '',
|
|
1901
|
+
onChange: function onChange(e) {
|
|
1902
|
+
return update(idx, {
|
|
1903
|
+
triggerValue: e.target.value
|
|
1904
|
+
});
|
|
1905
|
+
}
|
|
1906
|
+
})]
|
|
1907
|
+
})]
|
|
1908
|
+
})
|
|
1909
|
+
}, rule.id);
|
|
1910
|
+
}), /*#__PURE__*/_jsxs("span", {
|
|
1911
|
+
className: styles.linkageAddRule,
|
|
1912
|
+
onClick: add,
|
|
1913
|
+
children: [/*#__PURE__*/_jsx(PlusOutlined, {
|
|
1914
|
+
style: {
|
|
1915
|
+
fontSize: 10
|
|
1916
|
+
}
|
|
1917
|
+
}), "\u6DFB\u52A0\u89C4\u5219"]
|
|
1918
|
+
})]
|
|
1919
|
+
});
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
// ========== 请求成功后赋值编辑器 ==========
|
|
1923
|
+
|
|
1924
|
+
var SOURCE_LABELS = {
|
|
1925
|
+
path: '响应路径',
|
|
1926
|
+
value: '固定值',
|
|
1927
|
+
clear: '清空'
|
|
1928
|
+
};
|
|
1929
|
+
var SOURCE_PLACEHOLDERS = {
|
|
1930
|
+
path: '如 data.user.name',
|
|
1931
|
+
value: '如 default',
|
|
1932
|
+
clear: ''
|
|
1933
|
+
};
|
|
1934
|
+
function createBlankAfterAction() {
|
|
1935
|
+
return {
|
|
1936
|
+
id: "aa_".concat(Math.random().toString(36).slice(2, 8)),
|
|
1937
|
+
targetField: '',
|
|
1938
|
+
sourceType: 'path',
|
|
1939
|
+
sourcePath: ''
|
|
1940
|
+
};
|
|
1941
|
+
}
|
|
1942
|
+
function AfterActionsEditor(_ref10) {
|
|
1943
|
+
var flatten = _ref10.flatten,
|
|
1944
|
+
selfId = _ref10.selfId,
|
|
1945
|
+
value = _ref10.value,
|
|
1946
|
+
onChange = _ref10.onChange,
|
|
1947
|
+
_ref10$title = _ref10.title,
|
|
1948
|
+
title = _ref10$title === void 0 ? '请求成功后' : _ref10$title,
|
|
1949
|
+
_ref10$hint = _ref10.hint,
|
|
1950
|
+
hint = _ref10$hint === void 0 ? '把响应里的字段赋值给表单其它字段' : _ref10$hint,
|
|
1951
|
+
sourceTypes = _ref10.sourceTypes;
|
|
1952
|
+
var _useStyles6 = useStyles(),
|
|
1953
|
+
styles = _useStyles6.styles;
|
|
1954
|
+
var srcKeys = sourceTypes !== null && sourceTypes !== void 0 ? sourceTypes : Object.keys(SOURCE_LABELS);
|
|
1955
|
+
var targetOptions = useMemo(function () {
|
|
1956
|
+
return buildFieldOptions(flatten, selfId);
|
|
1957
|
+
}, [flatten, selfId]);
|
|
1958
|
+
var update = function update(idx, patch) {
|
|
1959
|
+
onChange(value.map(function (r, i) {
|
|
1960
|
+
return i === idx ? _objectSpread(_objectSpread({}, r), patch) : r;
|
|
1961
|
+
}));
|
|
1962
|
+
};
|
|
1963
|
+
var remove = function remove(idx) {
|
|
1964
|
+
return onChange(value.filter(function (_, i) {
|
|
1965
|
+
return i !== idx;
|
|
1966
|
+
}));
|
|
1967
|
+
};
|
|
1968
|
+
var add = function add() {
|
|
1969
|
+
var _srcKeys$;
|
|
1970
|
+
var st = (_srcKeys$ = srcKeys[0]) !== null && _srcKeys$ !== void 0 ? _srcKeys$ : 'path';
|
|
1971
|
+
onChange([].concat(_toConsumableArray(value), [_objectSpread(_objectSpread({}, createBlankAfterAction()), {}, {
|
|
1972
|
+
sourceType: st,
|
|
1973
|
+
sourcePath: st === 'path' ? '' : undefined,
|
|
1974
|
+
sourceValue: st === 'value' ? '' : undefined
|
|
1975
|
+
})]));
|
|
1976
|
+
};
|
|
1977
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
1978
|
+
className: styles.afterSection,
|
|
1979
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
1980
|
+
className: styles.afterHeader,
|
|
1981
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
1982
|
+
className: styles.afterTitle,
|
|
1983
|
+
children: title
|
|
1984
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
1985
|
+
className: styles.afterHint,
|
|
1986
|
+
children: hint
|
|
1987
|
+
})]
|
|
1988
|
+
}), value.length === 0 && /*#__PURE__*/_jsx("div", {
|
|
1989
|
+
className: styles.linkageEmpty,
|
|
1990
|
+
children: "\u6682\u65E0\u8D4B\u503C\u89C4\u5219"
|
|
1991
|
+
}), value.map(function (rule, idx) {
|
|
1992
|
+
var _rule$id, _rule$sourcePath2, _rule$sourceValue2;
|
|
1993
|
+
return (
|
|
1994
|
+
/*#__PURE__*/
|
|
1995
|
+
// 手写 schema / onMount 链解析出的规则可能没有 id,退回 idx 兜底。
|
|
1996
|
+
// 两行布局:目标字段独占一行(窄面板下才放得下「标题 (字段名)」),
|
|
1997
|
+
// 第二行 取值方式 + 来源;选中项 hover 有原生 title 提示全文。
|
|
1998
|
+
_jsxs("div", {
|
|
1999
|
+
className: styles.afterRule,
|
|
2000
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
2001
|
+
className: styles.afterRuleTop,
|
|
2002
|
+
children: [/*#__PURE__*/_jsx(Select, {
|
|
2003
|
+
size: "small",
|
|
2004
|
+
placeholder: "\u76EE\u6807\u5B57\u6BB5",
|
|
2005
|
+
value: rule.targetField || undefined,
|
|
2006
|
+
options: targetOptions,
|
|
2007
|
+
onChange: function onChange(v) {
|
|
2008
|
+
return update(idx, {
|
|
2009
|
+
targetField: v
|
|
2010
|
+
});
|
|
2011
|
+
},
|
|
2012
|
+
showSearch: true,
|
|
2013
|
+
optionFilterProp: "label"
|
|
2014
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
2015
|
+
className: styles.linkageRemove,
|
|
2016
|
+
onClick: function onClick() {
|
|
2017
|
+
return remove(idx);
|
|
2018
|
+
},
|
|
2019
|
+
children: /*#__PURE__*/_jsx(CloseOutlined, {
|
|
2020
|
+
style: {
|
|
2021
|
+
fontSize: 11
|
|
2022
|
+
}
|
|
2023
|
+
})
|
|
2024
|
+
})]
|
|
2025
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2026
|
+
className: styles.afterRuleBottom,
|
|
2027
|
+
children: [/*#__PURE__*/_jsx(Select, {
|
|
2028
|
+
size: "small",
|
|
2029
|
+
value: rule.sourceType,
|
|
2030
|
+
onChange: function onChange(v) {
|
|
2031
|
+
var _rule$sourcePath, _rule$sourceValue;
|
|
2032
|
+
return update(idx, {
|
|
2033
|
+
sourceType: v,
|
|
2034
|
+
sourcePath: v === 'path' ? (_rule$sourcePath = rule.sourcePath) !== null && _rule$sourcePath !== void 0 ? _rule$sourcePath : '' : undefined,
|
|
2035
|
+
sourceValue: v === 'value' ? (_rule$sourceValue = rule.sourceValue) !== null && _rule$sourceValue !== void 0 ? _rule$sourceValue : '' : undefined
|
|
2036
|
+
});
|
|
2037
|
+
},
|
|
2038
|
+
options: srcKeys.map(function (k) {
|
|
2039
|
+
return {
|
|
2040
|
+
value: k,
|
|
2041
|
+
label: SOURCE_LABELS[k]
|
|
2042
|
+
};
|
|
2043
|
+
})
|
|
2044
|
+
}), rule.sourceType !== 'clear' ? /*#__PURE__*/_jsx(Input, {
|
|
2045
|
+
size: "small",
|
|
2046
|
+
placeholder: SOURCE_PLACEHOLDERS[rule.sourceType],
|
|
2047
|
+
value: rule.sourceType === 'path' ? (_rule$sourcePath2 = rule.sourcePath) !== null && _rule$sourcePath2 !== void 0 ? _rule$sourcePath2 : '' : (_rule$sourceValue2 = rule.sourceValue) !== null && _rule$sourceValue2 !== void 0 ? _rule$sourceValue2 : '',
|
|
2048
|
+
onChange: function onChange(e) {
|
|
2049
|
+
return update(idx, rule.sourceType === 'path' ? {
|
|
2050
|
+
sourcePath: e.target.value
|
|
2051
|
+
} : {
|
|
2052
|
+
sourceValue: e.target.value
|
|
2053
|
+
});
|
|
2054
|
+
}
|
|
2055
|
+
}) : /*#__PURE__*/_jsx("span", {
|
|
2056
|
+
className: styles.afterClearHint,
|
|
2057
|
+
children: "\u8BBE\u4E3A\u7A7A\u503C"
|
|
2058
|
+
})]
|
|
2059
|
+
})]
|
|
2060
|
+
}, (_rule$id = rule.id) !== null && _rule$id !== void 0 ? _rule$id : idx)
|
|
2061
|
+
);
|
|
2062
|
+
}), /*#__PURE__*/_jsxs("span", {
|
|
2063
|
+
className: styles.linkageAddRule,
|
|
2064
|
+
onClick: add,
|
|
2065
|
+
children: [/*#__PURE__*/_jsx(PlusOutlined, {
|
|
2066
|
+
style: {
|
|
2067
|
+
fontSize: 10
|
|
2068
|
+
}
|
|
2069
|
+
}), "\u6DFB\u52A0\u8D4B\u503C"]
|
|
2070
|
+
})]
|
|
2071
|
+
});
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
// ========== 远程数据编辑器 ==========
|
|
2075
|
+
|
|
2076
|
+
function RemoteDataEditor(_ref11) {
|
|
2077
|
+
var _value$apiUrl, _value$method, _value$headers, _value$responsePath, _value$valueField, _value$labelField;
|
|
2078
|
+
var value = _ref11.value,
|
|
2079
|
+
onChange = _ref11.onChange;
|
|
2080
|
+
var _useStyles7 = useStyles(),
|
|
2081
|
+
styles = _useStyles7.styles;
|
|
2082
|
+
var set = function set(patch) {
|
|
2083
|
+
return onChange(patch);
|
|
2084
|
+
};
|
|
2085
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
2086
|
+
className: styles.remoteEditor,
|
|
2087
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
2088
|
+
className: styles.remoteSectionLabel,
|
|
2089
|
+
children: "\u63A5\u53E3\u914D\u7F6E"
|
|
2090
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2091
|
+
className: styles.remoteField,
|
|
2092
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2093
|
+
className: styles.remoteFieldLabel,
|
|
2094
|
+
children: "\u63A5\u53E3\u5730\u5740"
|
|
2095
|
+
}), /*#__PURE__*/_jsx(Input, {
|
|
2096
|
+
size: "small",
|
|
2097
|
+
placeholder: "https://api.example.com/options",
|
|
2098
|
+
value: (_value$apiUrl = value.apiUrl) !== null && _value$apiUrl !== void 0 ? _value$apiUrl : '',
|
|
2099
|
+
onChange: function onChange(e) {
|
|
2100
|
+
return set({
|
|
2101
|
+
apiUrl: e.target.value
|
|
2102
|
+
});
|
|
2103
|
+
}
|
|
2104
|
+
})]
|
|
2105
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2106
|
+
className: styles.remoteField,
|
|
2107
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2108
|
+
className: styles.remoteFieldLabel,
|
|
2109
|
+
children: "\u8BF7\u6C42\u65B9\u5F0F"
|
|
2110
|
+
}), /*#__PURE__*/_jsxs(Radio.Group, {
|
|
2111
|
+
size: "small",
|
|
2112
|
+
value: (_value$method = value.method) !== null && _value$method !== void 0 ? _value$method : 'GET',
|
|
2113
|
+
onChange: function onChange(e) {
|
|
2114
|
+
return set({
|
|
2115
|
+
method: e.target.value
|
|
2116
|
+
});
|
|
2117
|
+
},
|
|
2118
|
+
children: [/*#__PURE__*/_jsx(Radio, {
|
|
2119
|
+
value: "GET",
|
|
2120
|
+
children: "GET"
|
|
2121
|
+
}), /*#__PURE__*/_jsx(Radio, {
|
|
2122
|
+
value: "POST",
|
|
2123
|
+
children: "POST"
|
|
2124
|
+
})]
|
|
2125
|
+
})]
|
|
2126
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2127
|
+
className: styles.remoteField,
|
|
2128
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2129
|
+
className: styles.remoteFieldLabel,
|
|
2130
|
+
children: "\u81EA\u5B9A\u4E49\u8BF7\u6C42\u5934"
|
|
2131
|
+
}), /*#__PURE__*/_jsx(Input.TextArea, {
|
|
2132
|
+
size: "small",
|
|
2133
|
+
placeholder: "{\"Content-Type\": \"application/json\"}",
|
|
2134
|
+
autoSize: {
|
|
2135
|
+
minRows: 2,
|
|
2136
|
+
maxRows: 4
|
|
2137
|
+
},
|
|
2138
|
+
value: (_value$headers = value.headers) !== null && _value$headers !== void 0 ? _value$headers : '',
|
|
2139
|
+
onChange: function onChange(e) {
|
|
2140
|
+
return set({
|
|
2141
|
+
headers: e.target.value
|
|
2142
|
+
});
|
|
2143
|
+
}
|
|
2144
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2145
|
+
className: styles.remoteFieldHint,
|
|
2146
|
+
children: ["JSON \u683C\u5F0F\uFF0C\u5982 ", '{"Authorization": "Bearer xxx"}']
|
|
2147
|
+
})]
|
|
2148
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
2149
|
+
className: styles.remoteSectionLabel,
|
|
2150
|
+
style: {
|
|
2151
|
+
marginTop: 14
|
|
2152
|
+
},
|
|
2153
|
+
children: "\u9009\u9879\u6620\u5C04"
|
|
2154
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2155
|
+
className: styles.remoteField,
|
|
2156
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2157
|
+
className: styles.remoteFieldLabel,
|
|
2158
|
+
children: "\u6570\u636E\u8DEF\u5F84"
|
|
2159
|
+
}), /*#__PURE__*/_jsx(Input, {
|
|
2160
|
+
size: "small",
|
|
2161
|
+
placeholder: "\u5982 data.list \u6216 data.options",
|
|
2162
|
+
value: (_value$responsePath = value.responsePath) !== null && _value$responsePath !== void 0 ? _value$responsePath : '',
|
|
2163
|
+
onChange: function onChange(e) {
|
|
2164
|
+
return set({
|
|
2165
|
+
responsePath: e.target.value
|
|
2166
|
+
});
|
|
2167
|
+
}
|
|
2168
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
2169
|
+
className: styles.remoteFieldHint,
|
|
2170
|
+
children: "\u4ECE\u54CD\u5E94 JSON \u4E2D\u53D6\u6570\u7EC4\u7684\u8DEF\u5F84"
|
|
2171
|
+
})]
|
|
2172
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2173
|
+
className: styles.remoteField,
|
|
2174
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2175
|
+
className: styles.remoteFieldLabel,
|
|
2176
|
+
children: "\u503C\u5B57\u6BB5"
|
|
2177
|
+
}), /*#__PURE__*/_jsx(Input, {
|
|
2178
|
+
size: "small",
|
|
2179
|
+
placeholder: "\u5982 id \u6216 value",
|
|
2180
|
+
value: (_value$valueField = value.valueField) !== null && _value$valueField !== void 0 ? _value$valueField : '',
|
|
2181
|
+
onChange: function onChange(e) {
|
|
2182
|
+
return set({
|
|
2183
|
+
valueField: e.target.value
|
|
2184
|
+
});
|
|
2185
|
+
}
|
|
2186
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
2187
|
+
className: styles.remoteFieldHint,
|
|
2188
|
+
children: "\u6BCF\u4E2A\u9009\u9879\u7684 value \u6765\u81EA\u54EA\u4E2A\u5B57\u6BB5"
|
|
2189
|
+
})]
|
|
2190
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2191
|
+
className: styles.remoteField,
|
|
2192
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2193
|
+
className: styles.remoteFieldLabel,
|
|
2194
|
+
children: "\u6807\u7B7E\u5B57\u6BB5"
|
|
2195
|
+
}), /*#__PURE__*/_jsx(Input, {
|
|
2196
|
+
size: "small",
|
|
2197
|
+
placeholder: "\u5982 name \u6216 label",
|
|
2198
|
+
value: (_value$labelField = value.labelField) !== null && _value$labelField !== void 0 ? _value$labelField : '',
|
|
2199
|
+
onChange: function onChange(e) {
|
|
2200
|
+
return set({
|
|
2201
|
+
labelField: e.target.value
|
|
2202
|
+
});
|
|
2203
|
+
}
|
|
2204
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
2205
|
+
className: styles.remoteFieldHint,
|
|
2206
|
+
children: "\u6BCF\u4E2A\u9009\u9879\u7684\u663E\u793A\u6587\u6848\u6765\u81EA\u54EA\u4E2A\u5B57\u6BB5"
|
|
2207
|
+
})]
|
|
2208
|
+
})]
|
|
2209
|
+
});
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
// ========== 挂载时请求初始值编辑器 ==========
|
|
2213
|
+
|
|
2214
|
+
function InitialValueEditor(_ref12) {
|
|
2215
|
+
var _value$apiUrl2, _value$method2, _value$headers2, _value$responsePath2;
|
|
2216
|
+
var value = _ref12.value,
|
|
2217
|
+
onChange = _ref12.onChange;
|
|
2218
|
+
var _useStyles8 = useStyles(),
|
|
2219
|
+
styles = _useStyles8.styles;
|
|
2220
|
+
var set = function set(patch) {
|
|
2221
|
+
return onChange(patch);
|
|
2222
|
+
};
|
|
2223
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
2224
|
+
className: styles.remoteEditor,
|
|
2225
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
2226
|
+
className: styles.remoteSectionLabel,
|
|
2227
|
+
children: "\u63A5\u53E3\u914D\u7F6E"
|
|
2228
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2229
|
+
className: styles.remoteField,
|
|
2230
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2231
|
+
className: styles.remoteFieldLabel,
|
|
2232
|
+
children: "\u63A5\u53E3\u5730\u5740"
|
|
2233
|
+
}), /*#__PURE__*/_jsx(Input, {
|
|
2234
|
+
size: "small",
|
|
2235
|
+
placeholder: "https://api.example.com/default-value",
|
|
2236
|
+
value: (_value$apiUrl2 = value.apiUrl) !== null && _value$apiUrl2 !== void 0 ? _value$apiUrl2 : '',
|
|
2237
|
+
onChange: function onChange(e) {
|
|
2238
|
+
return set({
|
|
2239
|
+
apiUrl: e.target.value
|
|
2240
|
+
});
|
|
2241
|
+
}
|
|
2242
|
+
})]
|
|
2243
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2244
|
+
className: styles.remoteField,
|
|
2245
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2246
|
+
className: styles.remoteFieldLabel,
|
|
2247
|
+
children: "\u8BF7\u6C42\u65B9\u5F0F"
|
|
2248
|
+
}), /*#__PURE__*/_jsxs(Radio.Group, {
|
|
2249
|
+
size: "small",
|
|
2250
|
+
value: (_value$method2 = value.method) !== null && _value$method2 !== void 0 ? _value$method2 : 'GET',
|
|
2251
|
+
onChange: function onChange(e) {
|
|
2252
|
+
return set({
|
|
2253
|
+
method: e.target.value
|
|
2254
|
+
});
|
|
2255
|
+
},
|
|
2256
|
+
children: [/*#__PURE__*/_jsx(Radio, {
|
|
2257
|
+
value: "GET",
|
|
2258
|
+
children: "GET"
|
|
2259
|
+
}), /*#__PURE__*/_jsx(Radio, {
|
|
2260
|
+
value: "POST",
|
|
2261
|
+
children: "POST"
|
|
2262
|
+
})]
|
|
2263
|
+
})]
|
|
2264
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2265
|
+
className: styles.remoteField,
|
|
2266
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2267
|
+
className: styles.remoteFieldLabel,
|
|
2268
|
+
children: "\u81EA\u5B9A\u4E49\u8BF7\u6C42\u5934"
|
|
2269
|
+
}), /*#__PURE__*/_jsx(Input.TextArea, {
|
|
2270
|
+
size: "small",
|
|
2271
|
+
placeholder: "{\"Content-Type\": \"application/json\"}",
|
|
2272
|
+
autoSize: {
|
|
2273
|
+
minRows: 2,
|
|
2274
|
+
maxRows: 4
|
|
2275
|
+
},
|
|
2276
|
+
value: (_value$headers2 = value.headers) !== null && _value$headers2 !== void 0 ? _value$headers2 : '',
|
|
2277
|
+
onChange: function onChange(e) {
|
|
2278
|
+
return set({
|
|
2279
|
+
headers: e.target.value
|
|
2280
|
+
});
|
|
2281
|
+
}
|
|
2282
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2283
|
+
className: styles.remoteFieldHint,
|
|
2284
|
+
children: ["JSON \u683C\u5F0F\uFF0C\u5982 ", '{"Authorization": "Bearer xxx"}']
|
|
2285
|
+
})]
|
|
2286
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
2287
|
+
className: styles.remoteSectionLabel,
|
|
2288
|
+
style: {
|
|
2289
|
+
marginTop: 14
|
|
2290
|
+
},
|
|
2291
|
+
children: "\u53D6\u503C\u6620\u5C04"
|
|
2292
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2293
|
+
className: styles.remoteField,
|
|
2294
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2295
|
+
className: styles.remoteFieldLabel,
|
|
2296
|
+
children: "\u53D6\u503C\u8DEF\u5F84"
|
|
2297
|
+
}), /*#__PURE__*/_jsx(Input, {
|
|
2298
|
+
size: "small",
|
|
2299
|
+
placeholder: "\u5982 data.userName\uFF0C\u7559\u7A7A\u4F7F\u7528\u6574\u4E2A\u54CD\u5E94",
|
|
2300
|
+
value: (_value$responsePath2 = value.responsePath) !== null && _value$responsePath2 !== void 0 ? _value$responsePath2 : '',
|
|
2301
|
+
onChange: function onChange(e) {
|
|
2302
|
+
return set({
|
|
2303
|
+
responsePath: e.target.value
|
|
2304
|
+
});
|
|
2305
|
+
}
|
|
2306
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
2307
|
+
className: styles.remoteFieldHint,
|
|
2308
|
+
children: "\u4ECE\u54CD\u5E94\u91CC\u6309\u8DEF\u5F84\u53D6\u503C\uFF0C\u5199\u5165\u672C\u5B57\u6BB5\u4F5C\u4E3A\u521D\u59CB\u503C"
|
|
2309
|
+
})]
|
|
2310
|
+
})]
|
|
2311
|
+
});
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2314
|
+
// ========== cardRoot 挂载请求编辑器(表单配置 Tab 使用) ==========
|
|
2315
|
+
/**
|
|
2316
|
+
* 编辑 cardRoot props.onMount 的简化视图:单条 api_request + onSuccess 单条 set_values。
|
|
2317
|
+
* 手写的更复杂行为链(多请求 / 其它子行为)不在本编辑器表达范围,保存时会覆盖成单链。
|
|
2318
|
+
*/
|
|
2319
|
+
|
|
2320
|
+
export function parseOnMountChain(onMount) {
|
|
2321
|
+
var _api$onSuccess, _api$value$url, _api$value, _api$value2, _api$value3, _v$responsePath;
|
|
2322
|
+
var api = Array.isArray(onMount) ? onMount.find(function (b) {
|
|
2323
|
+
return (b === null || b === void 0 ? void 0 : b.type) === 'api_request';
|
|
2324
|
+
}) : undefined;
|
|
2325
|
+
var sv = ((_api$onSuccess = api === null || api === void 0 ? void 0 : api.onSuccess) !== null && _api$onSuccess !== void 0 ? _api$onSuccess : []).find(function (b) {
|
|
2326
|
+
return (b === null || b === void 0 ? void 0 : b.type) === 'set_values';
|
|
2327
|
+
});
|
|
2328
|
+
var base = {
|
|
2329
|
+
url: (_api$value$url = api === null || api === void 0 || (_api$value = api.value) === null || _api$value === void 0 ? void 0 : _api$value.url) !== null && _api$value$url !== void 0 ? _api$value$url : '',
|
|
2330
|
+
method: (api === null || api === void 0 || (_api$value2 = api.value) === null || _api$value2 === void 0 ? void 0 : _api$value2.method) === 'POST' ? 'POST' : 'GET',
|
|
2331
|
+
headers: typeof (api === null || api === void 0 || (_api$value3 = api.value) === null || _api$value3 === void 0 ? void 0 : _api$value3.headers) === 'string' ? api.value.headers : ''
|
|
2332
|
+
};
|
|
2333
|
+
var v = sv === null || sv === void 0 ? void 0 : sv.value;
|
|
2334
|
+
if (Array.isArray(v)) {
|
|
2335
|
+
return _objectSpread(_objectSpread({}, base), {}, {
|
|
2336
|
+
fillMode: 'map',
|
|
2337
|
+
responsePath: 'data',
|
|
2338
|
+
rules: v
|
|
2339
|
+
});
|
|
2340
|
+
}
|
|
2341
|
+
return _objectSpread(_objectSpread({}, base), {}, {
|
|
2342
|
+
fillMode: 'spread',
|
|
2343
|
+
responsePath: v && _typeof(v) === 'object' ? (_v$responsePath = v.responsePath) !== null && _v$responsePath !== void 0 ? _v$responsePath : 'data' : 'data',
|
|
2344
|
+
rules: []
|
|
2345
|
+
});
|
|
2346
|
+
}
|
|
2347
|
+
export function buildOnMountChain(v) {
|
|
2348
|
+
var _v$rules, _v$url, _v$method, _v$headers;
|
|
2349
|
+
var setValuesValue = v.fillMode === 'map' ? (_v$rules = v.rules) !== null && _v$rules !== void 0 ? _v$rules : [] : {
|
|
2350
|
+
mode: 'spread',
|
|
2351
|
+
responsePath: v.responsePath || 'data'
|
|
2352
|
+
};
|
|
2353
|
+
return [{
|
|
2354
|
+
type: 'api_request',
|
|
2355
|
+
value: _objectSpread({
|
|
2356
|
+
url: (_v$url = v.url) !== null && _v$url !== void 0 ? _v$url : '',
|
|
2357
|
+
method: (_v$method = v.method) !== null && _v$method !== void 0 ? _v$method : 'GET'
|
|
2358
|
+
}, (_v$headers = v.headers) !== null && _v$headers !== void 0 && _v$headers.trim() ? {
|
|
2359
|
+
headers: v.headers
|
|
2360
|
+
} : {}),
|
|
2361
|
+
onSuccess: [{
|
|
2362
|
+
type: 'set_values',
|
|
2363
|
+
value: setValuesValue
|
|
2364
|
+
}],
|
|
2365
|
+
onError: []
|
|
2366
|
+
}];
|
|
2367
|
+
}
|
|
2368
|
+
export function CardRootOnMountEditor(_ref13) {
|
|
2369
|
+
var _value$rules, _value$url, _value$method3, _value$headers3, _value$responsePath3;
|
|
2370
|
+
var value = _ref13.value,
|
|
2371
|
+
onChange = _ref13.onChange,
|
|
2372
|
+
flatten = _ref13.flatten;
|
|
2373
|
+
var _useStyles9 = useStyles(),
|
|
2374
|
+
styles = _useStyles9.styles;
|
|
2375
|
+
|
|
2376
|
+
// schema 真源只存当前回填模式的数据(spread 的路径 或 map 的规则数组),
|
|
2377
|
+
// 切换模式会覆盖另一边 —— 这里在组件内存里缓存两边的最近值,来回切不丢。
|
|
2378
|
+
var lastRules = useRef([]);
|
|
2379
|
+
var lastSpreadPath = useRef('data');
|
|
2380
|
+
if (value.fillMode === 'map' && (_value$rules = value.rules) !== null && _value$rules !== void 0 && _value$rules.length) {
|
|
2381
|
+
lastRules.current = value.rules;
|
|
2382
|
+
}
|
|
2383
|
+
if (value.fillMode === 'spread' && value.responsePath) {
|
|
2384
|
+
lastSpreadPath.current = value.responsePath;
|
|
2385
|
+
}
|
|
2386
|
+
var set = function set(patch) {
|
|
2387
|
+
var _next$rules;
|
|
2388
|
+
var next = _objectSpread(_objectSpread({}, value), patch);
|
|
2389
|
+
// 模式切换:恢复目标模式的缓存配置
|
|
2390
|
+
if (patch.fillMode === 'map' && !((_next$rules = next.rules) !== null && _next$rules !== void 0 && _next$rules.length)) {
|
|
2391
|
+
next.rules = lastRules.current;
|
|
2392
|
+
}
|
|
2393
|
+
if (patch.fillMode === 'spread' && (!next.responsePath || next.responsePath === 'data')) {
|
|
2394
|
+
next.responsePath = lastSpreadPath.current;
|
|
2395
|
+
}
|
|
2396
|
+
onChange(next);
|
|
2397
|
+
};
|
|
2398
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
2399
|
+
className: styles.remoteEditor,
|
|
2400
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
2401
|
+
className: styles.remoteSectionLabel,
|
|
2402
|
+
children: "\u63A5\u53E3\u914D\u7F6E"
|
|
2403
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2404
|
+
className: styles.remoteField,
|
|
2405
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2406
|
+
className: styles.remoteFieldLabel,
|
|
2407
|
+
children: "\u63A5\u53E3\u5730\u5740"
|
|
2408
|
+
}), /*#__PURE__*/_jsx(Input, {
|
|
2409
|
+
size: "small",
|
|
2410
|
+
placeholder: "/api/leave/detail",
|
|
2411
|
+
value: (_value$url = value.url) !== null && _value$url !== void 0 ? _value$url : '',
|
|
2412
|
+
onChange: function onChange(e) {
|
|
2413
|
+
return set({
|
|
2414
|
+
url: e.target.value
|
|
2415
|
+
});
|
|
2416
|
+
}
|
|
2417
|
+
})]
|
|
2418
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2419
|
+
className: styles.remoteField,
|
|
2420
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2421
|
+
className: styles.remoteFieldLabel,
|
|
2422
|
+
children: "\u8BF7\u6C42\u65B9\u5F0F"
|
|
2423
|
+
}), /*#__PURE__*/_jsxs(Radio.Group, {
|
|
2424
|
+
size: "small",
|
|
2425
|
+
value: (_value$method3 = value.method) !== null && _value$method3 !== void 0 ? _value$method3 : 'GET',
|
|
2426
|
+
onChange: function onChange(e) {
|
|
2427
|
+
return set({
|
|
2428
|
+
method: e.target.value
|
|
2429
|
+
});
|
|
2430
|
+
},
|
|
2431
|
+
children: [/*#__PURE__*/_jsx(Radio, {
|
|
2432
|
+
value: "GET",
|
|
2433
|
+
children: "GET"
|
|
2434
|
+
}), /*#__PURE__*/_jsx(Radio, {
|
|
2435
|
+
value: "POST",
|
|
2436
|
+
children: "POST"
|
|
2437
|
+
})]
|
|
2438
|
+
})]
|
|
2439
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2440
|
+
className: styles.remoteField,
|
|
2441
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2442
|
+
className: styles.remoteFieldLabel,
|
|
2443
|
+
children: "\u81EA\u5B9A\u4E49\u8BF7\u6C42\u5934"
|
|
2444
|
+
}), /*#__PURE__*/_jsx(Input.TextArea, {
|
|
2445
|
+
size: "small",
|
|
2446
|
+
placeholder: "{\"Content-Type\": \"application/json\"}",
|
|
2447
|
+
autoSize: {
|
|
2448
|
+
minRows: 2,
|
|
2449
|
+
maxRows: 4
|
|
2450
|
+
},
|
|
2451
|
+
value: (_value$headers3 = value.headers) !== null && _value$headers3 !== void 0 ? _value$headers3 : '',
|
|
2452
|
+
onChange: function onChange(e) {
|
|
2453
|
+
return set({
|
|
2454
|
+
headers: e.target.value
|
|
2455
|
+
});
|
|
2456
|
+
}
|
|
2457
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2458
|
+
className: styles.remoteFieldHint,
|
|
2459
|
+
children: ["JSON \u683C\u5F0F\uFF0C\u5982 ", '{"Authorization": "Bearer xxx"}', "\uFF0C\u7559\u7A7A\u4E0D\u53D1"]
|
|
2460
|
+
})]
|
|
2461
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
2462
|
+
className: styles.remoteSectionLabel,
|
|
2463
|
+
style: {
|
|
2464
|
+
marginTop: 14
|
|
2465
|
+
},
|
|
2466
|
+
children: "\u56DE\u586B\u65B9\u5F0F"
|
|
2467
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
2468
|
+
className: styles.remoteField,
|
|
2469
|
+
children: /*#__PURE__*/_jsxs(Radio.Group, {
|
|
2470
|
+
size: "small",
|
|
2471
|
+
value: value.fillMode,
|
|
2472
|
+
onChange: function onChange(e) {
|
|
2473
|
+
return set({
|
|
2474
|
+
fillMode: e.target.value
|
|
2475
|
+
});
|
|
2476
|
+
},
|
|
2477
|
+
children: [/*#__PURE__*/_jsx(Radio, {
|
|
2478
|
+
value: "spread",
|
|
2479
|
+
children: "\u6574\u4F53\u56DE\u586B"
|
|
2480
|
+
}), /*#__PURE__*/_jsx(Radio, {
|
|
2481
|
+
value: "map",
|
|
2482
|
+
children: "\u6309\u5B57\u6BB5\u6620\u5C04"
|
|
2483
|
+
})]
|
|
2484
|
+
})
|
|
2485
|
+
}), value.fillMode === 'spread' ? /*#__PURE__*/_jsxs("div", {
|
|
2486
|
+
className: styles.remoteField,
|
|
2487
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2488
|
+
className: styles.remoteFieldLabel,
|
|
2489
|
+
children: "\u53D6\u503C\u8DEF\u5F84"
|
|
2490
|
+
}), /*#__PURE__*/_jsx(Input, {
|
|
2491
|
+
size: "small",
|
|
2492
|
+
placeholder: "data",
|
|
2493
|
+
value: (_value$responsePath3 = value.responsePath) !== null && _value$responsePath3 !== void 0 ? _value$responsePath3 : 'data',
|
|
2494
|
+
onChange: function onChange(e) {
|
|
2495
|
+
return set({
|
|
2496
|
+
responsePath: e.target.value
|
|
2497
|
+
});
|
|
2498
|
+
}
|
|
2499
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
2500
|
+
className: styles.remoteFieldHint,
|
|
2501
|
+
children: "\u54CD\u5E94\u8BE5\u8DEF\u5F84\u5904\u7684\u5BF9\u8C61\u6309\u300C\u5B57\u6BB5\u6807\u8BC6\u300D\u5339\u914D\u56DE\u586B\uFF08\u4E0D\u9650\u5D4C\u5957\u5C42\u7EA7\uFF0Ckey \u987B\u4E0E\u5B57\u6BB5\u6807\u8BC6\u4E00\u81F4\uFF09"
|
|
2502
|
+
})]
|
|
2503
|
+
}) : /*#__PURE__*/_jsx(AfterActionsEditor, {
|
|
2504
|
+
flatten: flatten,
|
|
2505
|
+
selfId: "#",
|
|
2506
|
+
value: Array.isArray(value.rules) ? value.rules : [],
|
|
2507
|
+
onChange: function onChange(rules) {
|
|
2508
|
+
return set({
|
|
2509
|
+
rules: rules
|
|
2510
|
+
});
|
|
2511
|
+
},
|
|
2512
|
+
title: "\u6309\u5B57\u6BB5\u6620\u5C04",
|
|
2513
|
+
hint: "\u76EE\u6807\u5B57\u6BB5 = \u54CD\u5E94\u8DEF\u5F84\u53D6\u503C / \u56FA\u5B9A\u503C / \u6E05\u7A7A"
|
|
2514
|
+
})]
|
|
2515
|
+
});
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2518
|
+
// ========== 人员列表数据源编辑器 ==========
|
|
2519
|
+
|
|
2520
|
+
function PersonListDataSourceEditor(_ref14) {
|
|
2521
|
+
var _value$apiUrl3, _value$method4, _value$headers4, _value$responsePath4, _value$idField, _value$nameField, _value$avatarField;
|
|
2522
|
+
var value = _ref14.value,
|
|
2523
|
+
onChange = _ref14.onChange;
|
|
2524
|
+
var _useStyles10 = useStyles(),
|
|
2525
|
+
styles = _useStyles10.styles;
|
|
2526
|
+
var set = function set(patch) {
|
|
2527
|
+
return onChange(patch);
|
|
2528
|
+
};
|
|
2529
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
2530
|
+
className: styles.remoteEditor,
|
|
2531
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
2532
|
+
className: styles.remoteSectionLabel,
|
|
2533
|
+
children: "\u63A5\u53E3\u914D\u7F6E"
|
|
2534
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2535
|
+
className: styles.remoteField,
|
|
2536
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2537
|
+
className: styles.remoteFieldLabel,
|
|
2538
|
+
children: "\u63A5\u53E3\u5730\u5740"
|
|
2539
|
+
}), /*#__PURE__*/_jsx(Input, {
|
|
2540
|
+
size: "small",
|
|
2541
|
+
placeholder: "https://api.example.com/project/members",
|
|
2542
|
+
value: (_value$apiUrl3 = value.apiUrl) !== null && _value$apiUrl3 !== void 0 ? _value$apiUrl3 : '',
|
|
2543
|
+
onChange: function onChange(e) {
|
|
2544
|
+
return set({
|
|
2545
|
+
apiUrl: e.target.value
|
|
2546
|
+
});
|
|
2547
|
+
}
|
|
2548
|
+
})]
|
|
2549
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2550
|
+
className: styles.remoteField,
|
|
2551
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2552
|
+
className: styles.remoteFieldLabel,
|
|
2553
|
+
children: "\u8BF7\u6C42\u65B9\u5F0F"
|
|
2554
|
+
}), /*#__PURE__*/_jsxs(Radio.Group, {
|
|
2555
|
+
size: "small",
|
|
2556
|
+
value: (_value$method4 = value.method) !== null && _value$method4 !== void 0 ? _value$method4 : 'GET',
|
|
2557
|
+
onChange: function onChange(e) {
|
|
2558
|
+
return set({
|
|
2559
|
+
method: e.target.value
|
|
2560
|
+
});
|
|
2561
|
+
},
|
|
2562
|
+
children: [/*#__PURE__*/_jsx(Radio, {
|
|
2563
|
+
value: "GET",
|
|
2564
|
+
children: "GET"
|
|
2565
|
+
}), /*#__PURE__*/_jsx(Radio, {
|
|
2566
|
+
value: "POST",
|
|
2567
|
+
children: "POST"
|
|
2568
|
+
})]
|
|
2569
|
+
})]
|
|
2570
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2571
|
+
className: styles.remoteField,
|
|
2572
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2573
|
+
className: styles.remoteFieldLabel,
|
|
2574
|
+
children: "\u81EA\u5B9A\u4E49\u8BF7\u6C42\u5934"
|
|
2575
|
+
}), /*#__PURE__*/_jsx(Input.TextArea, {
|
|
2576
|
+
size: "small",
|
|
2577
|
+
placeholder: "{\"Content-Type\": \"application/json\"}",
|
|
2578
|
+
autoSize: {
|
|
2579
|
+
minRows: 2,
|
|
2580
|
+
maxRows: 4
|
|
2581
|
+
},
|
|
2582
|
+
value: (_value$headers4 = value.headers) !== null && _value$headers4 !== void 0 ? _value$headers4 : '',
|
|
2583
|
+
onChange: function onChange(e) {
|
|
2584
|
+
return set({
|
|
2585
|
+
headers: e.target.value
|
|
2586
|
+
});
|
|
2587
|
+
}
|
|
2588
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2589
|
+
className: styles.remoteFieldHint,
|
|
2590
|
+
children: ["JSON \u683C\u5F0F\uFF0C\u5982 ", '{"Authorization": "Bearer xxx"}']
|
|
2591
|
+
})]
|
|
2592
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
2593
|
+
className: styles.remoteSectionLabel,
|
|
2594
|
+
style: {
|
|
2595
|
+
marginTop: 14
|
|
2596
|
+
},
|
|
2597
|
+
children: "\u4EBA\u5458\u6620\u5C04"
|
|
2598
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2599
|
+
className: styles.remoteField,
|
|
2600
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2601
|
+
className: styles.remoteFieldLabel,
|
|
2602
|
+
children: "\u6570\u636E\u8DEF\u5F84"
|
|
2603
|
+
}), /*#__PURE__*/_jsx(Input, {
|
|
2604
|
+
size: "small",
|
|
2605
|
+
placeholder: "\u5982 data.members",
|
|
2606
|
+
value: (_value$responsePath4 = value.responsePath) !== null && _value$responsePath4 !== void 0 ? _value$responsePath4 : '',
|
|
2607
|
+
onChange: function onChange(e) {
|
|
2608
|
+
return set({
|
|
2609
|
+
responsePath: e.target.value
|
|
2610
|
+
});
|
|
2611
|
+
}
|
|
2612
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
2613
|
+
className: styles.remoteFieldHint,
|
|
2614
|
+
children: "\u4ECE\u54CD\u5E94 JSON \u4E2D\u53D6\u4EBA\u5458\u6570\u7EC4"
|
|
2615
|
+
})]
|
|
2616
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2617
|
+
className: styles.remoteField,
|
|
2618
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2619
|
+
className: styles.remoteFieldLabel,
|
|
2620
|
+
children: "\u4EBA\u5458 ID \u5B57\u6BB5"
|
|
2621
|
+
}), /*#__PURE__*/_jsx(Input, {
|
|
2622
|
+
size: "small",
|
|
2623
|
+
placeholder: "\u5982 id \u6216 userId\uFF1B\u6570\u7EC4\u4E3A\u5B57\u7B26\u4E32\u65F6\u53EF\u7559\u7A7A",
|
|
2624
|
+
value: (_value$idField = value.idField) !== null && _value$idField !== void 0 ? _value$idField : '',
|
|
2625
|
+
onChange: function onChange(e) {
|
|
2626
|
+
return set({
|
|
2627
|
+
idField: e.target.value
|
|
2628
|
+
});
|
|
2629
|
+
}
|
|
2630
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
2631
|
+
className: styles.remoteFieldHint,
|
|
2632
|
+
children: "\u6BCF\u4E2A\u4EBA\u5458\u9879\u91CC\u7528\u4E8E\u5199\u5165 props.persons[].id \u7684\u5B57\u6BB5\u540D\uFF0CID \u662F\u4EBA\u5458\u89E3\u6790\u952E"
|
|
2633
|
+
})]
|
|
2634
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2635
|
+
className: styles.remoteField,
|
|
2636
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2637
|
+
className: styles.remoteFieldLabel,
|
|
2638
|
+
children: "\u59D3\u540D\u5B57\u6BB5"
|
|
2639
|
+
}), /*#__PURE__*/_jsx(Input, {
|
|
2640
|
+
size: "small",
|
|
2641
|
+
placeholder: "\u5982 name \u6216 realName\uFF1B\u4E0D\u8FD4\u56DE\u59D3\u540D\u65F6\u53EF\u7559\u7A7A",
|
|
2642
|
+
value: (_value$nameField = value.nameField) !== null && _value$nameField !== void 0 ? _value$nameField : '',
|
|
2643
|
+
onChange: function onChange(e) {
|
|
2644
|
+
return set({
|
|
2645
|
+
nameField: e.target.value
|
|
2646
|
+
});
|
|
2647
|
+
}
|
|
2648
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
2649
|
+
className: styles.remoteFieldHint,
|
|
2650
|
+
children: "\u8FD4\u56DE\u540E\u5199\u5165 props.persons[].name\uFF0C\u53EF\u76F4\u63A5\u7528\u4E8E\u5C55\u793A\u59D3\u540D"
|
|
2651
|
+
})]
|
|
2652
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
2653
|
+
className: styles.remoteField,
|
|
2654
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
2655
|
+
className: styles.remoteFieldLabel,
|
|
2656
|
+
children: "\u5934\u50CF\u5B57\u6BB5"
|
|
2657
|
+
}), /*#__PURE__*/_jsx(Input, {
|
|
2658
|
+
size: "small",
|
|
2659
|
+
placeholder: "\u5982 avatar \u6216 avatarUrl\uFF1B\u4E0D\u8FD4\u56DE\u5934\u50CF\u65F6\u53EF\u7559\u7A7A",
|
|
2660
|
+
value: (_value$avatarField = value.avatarField) !== null && _value$avatarField !== void 0 ? _value$avatarField : '',
|
|
2661
|
+
onChange: function onChange(e) {
|
|
2662
|
+
return set({
|
|
2663
|
+
avatarField: e.target.value
|
|
2664
|
+
});
|
|
2665
|
+
}
|
|
2666
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
2667
|
+
className: styles.remoteFieldHint,
|
|
2668
|
+
children: "\u8FD4\u56DE\u540E\u5199\u5165 props.persons[].avatar\uFF0C\u652F\u6301\u56FE\u7247 URL\u3001data:image \u6216 emoji"
|
|
2669
|
+
})]
|
|
2670
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
2671
|
+
className: styles.remoteSectionLabel,
|
|
2672
|
+
style: {
|
|
2673
|
+
marginTop: 14
|
|
2674
|
+
},
|
|
2675
|
+
children: "\u6570\u636E\u683C\u5F0F"
|
|
2676
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
2677
|
+
className: styles.remoteFieldHint,
|
|
2678
|
+
children: "\u63A5\u53E3\u53EF\u4EE5\u8FD4\u56DE\u5E26\u5C55\u793A\u5B57\u6BB5\u7684\u5BF9\u8C61\u6570\u7EC4\uFF0C\u6216\u53EA\u8FD4\u56DE ID \u5B57\u7B26\u4E32\u6570\u7EC4\uFF1A"
|
|
2679
|
+
}), /*#__PURE__*/_jsx("pre", {
|
|
2680
|
+
style: {
|
|
2681
|
+
margin: '6px 0 10px',
|
|
2682
|
+
padding: '8px 10px',
|
|
2683
|
+
background: '#f5f6f7',
|
|
2684
|
+
borderRadius: 6,
|
|
2685
|
+
color: '#1f2329',
|
|
2686
|
+
fontSize: 12,
|
|
2687
|
+
lineHeight: '18px',
|
|
2688
|
+
whiteSpace: 'pre-wrap'
|
|
2689
|
+
},
|
|
2690
|
+
children: "{\n \"data\": {\n \"members\": [\n {\n \"id\": \"u_001\",\n \"name\": \"\u5F20\u4E09\",\n \"avatar\": \"https://example.com/avatar/u_001.png\"\n },\n {\n \"id\": \"u_002\",\n \"name\": \"\u674E\u56DB\",\n \"avatar\": \"\uD83D\uDC64\"\n }\n ]\n }\n}"
|
|
2691
|
+
}), /*#__PURE__*/_jsx("pre", {
|
|
2692
|
+
style: {
|
|
2693
|
+
margin: '0 0 10px',
|
|
2694
|
+
padding: '8px 10px',
|
|
2695
|
+
background: '#f5f6f7',
|
|
2696
|
+
borderRadius: 6,
|
|
2697
|
+
color: '#1f2329',
|
|
2698
|
+
fontSize: 12,
|
|
2699
|
+
lineHeight: '18px',
|
|
2700
|
+
whiteSpace: 'pre-wrap'
|
|
2701
|
+
},
|
|
2702
|
+
children: "{\n \"data\": {\n \"members\": [\"u_001\", \"u_002\"]\n }\n}"
|
|
2703
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
2704
|
+
className: styles.remoteFieldHint,
|
|
2705
|
+
children: '最终会转换为 props.persons: [{ id: "u_001", name: "张三", avatar: "https://example.com/avatar/u_001.png" }]。name/avatar 可直接用于展示;缺失时由 MentionResolverContext 按 ID 解析。'
|
|
2706
|
+
})]
|
|
2707
|
+
});
|
|
2708
|
+
}
|