@vuagent/ui 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +114 -0
- package/dist/index.js +15922 -0
- package/dist/types/components/agent-chat/VaAgentChat.vue.d.ts +27 -0
- package/dist/types/components/agent-chat/index.d.ts +3 -0
- package/dist/types/components/agent-chat/types.d.ts +32 -0
- package/dist/types/components/agent-inbox/VaAgentInbox.vue.d.ts +11 -0
- package/dist/types/components/agent-inbox/index.d.ts +3 -0
- package/dist/types/components/agent-inbox/types.d.ts +26 -0
- package/dist/types/components/agent-inbox/useAgentInbox.d.ts +19 -0
- package/dist/types/components/agent-plan/VaAgentPlan.vue.d.ts +12 -0
- package/dist/types/components/agent-plan/index.d.ts +2 -0
- package/dist/types/components/agent-plan/types.d.ts +22 -0
- package/dist/types/components/agent-plan/useAgentPlan.d.ts +22 -0
- package/dist/types/components/agent-run/VaAgentRun.vue.d.ts +21 -0
- package/dist/types/components/agent-run/index.d.ts +2 -0
- package/dist/types/components/agent-run/types.d.ts +15 -0
- package/dist/types/components/ai-answer/VaAiAnswer.vue.d.ts +7 -0
- package/dist/types/components/ai-answer/index.d.ts +2 -0
- package/dist/types/components/ai-answer/types.d.ts +28 -0
- package/dist/types/components/ai-answer/useCitedText.d.ts +12 -0
- package/dist/types/components/app-shell/VaAppShell.vue.d.ts +38 -0
- package/dist/types/components/app-shell/index.d.ts +2 -0
- package/dist/types/components/app-shell/types.d.ts +41 -0
- package/dist/types/components/approval-card/VaApprovalCard.vue.d.ts +44 -0
- package/dist/types/components/approval-card/index.d.ts +2 -0
- package/dist/types/components/approval-card/types.d.ts +37 -0
- package/dist/types/components/approval-card/useApprovalCard.d.ts +21 -0
- package/dist/types/components/assistant-turn/VaAssistantTurn.vue.d.ts +64 -0
- package/dist/types/components/assistant-turn/index.d.ts +2 -0
- package/dist/types/components/assistant-turn/types.d.ts +47 -0
- package/dist/types/components/blur-crossfade/VaBlurCrossfade.vue.d.ts +18 -0
- package/dist/types/components/blur-crossfade/index.d.ts +2 -0
- package/dist/types/components/blur-crossfade/types.d.ts +11 -0
- package/dist/types/components/breakdown-chart/VaBreakdownChart.vue.d.ts +7 -0
- package/dist/types/components/breakdown-chart/index.d.ts +2 -0
- package/dist/types/components/breakdown-chart/types.d.ts +22 -0
- package/dist/types/components/button/VaButton.vue.d.ts +31 -0
- package/dist/types/components/button/index.d.ts +2 -0
- package/dist/types/components/button/types.d.ts +19 -0
- package/dist/types/components/capability-card/VaCapabilityCard.vue.d.ts +14 -0
- package/dist/types/components/capability-card/index.d.ts +2 -0
- package/dist/types/components/capability-card/types.d.ts +22 -0
- package/dist/types/components/change-summary/VaChangeSummary.vue.d.ts +9 -0
- package/dist/types/components/change-summary/index.d.ts +2 -0
- package/dist/types/components/change-summary/types.d.ts +26 -0
- package/dist/types/components/checkpoint-list/VaCheckpointList.vue.d.ts +9 -0
- package/dist/types/components/checkpoint-list/index.d.ts +3 -0
- package/dist/types/components/checkpoint-list/types.d.ts +30 -0
- package/dist/types/components/checkpoint-list/useCheckpointList.d.ts +7 -0
- package/dist/types/components/code-diff/VaCodeDiff.vue.d.ts +10 -0
- package/dist/types/components/code-diff/index.d.ts +2 -0
- package/dist/types/components/code-diff/types.d.ts +27 -0
- package/dist/types/components/code-diff/useCodeDiff.d.ts +19 -0
- package/dist/types/components/combobox/VaCombobox.vue.d.ts +13 -0
- package/dist/types/components/combobox/index.d.ts +2 -0
- package/dist/types/components/combobox/types.d.ts +27 -0
- package/dist/types/components/combobox/useCombobox.d.ts +22 -0
- package/dist/types/components/command-menu/VaCommandMenu.vue.d.ts +12 -0
- package/dist/types/components/command-menu/index.d.ts +2 -0
- package/dist/types/components/command-menu/types.d.ts +39 -0
- package/dist/types/components/command-menu/useCommandMenu.d.ts +26 -0
- package/dist/types/components/comment-thread/VaCommentThread.vue.d.ts +17 -0
- package/dist/types/components/comment-thread/index.d.ts +2 -0
- package/dist/types/components/comment-thread/types.d.ts +39 -0
- package/dist/types/components/compact-breakdown/VaCompactBreakdown.vue.d.ts +5 -0
- package/dist/types/components/compact-breakdown/index.d.ts +2 -0
- package/dist/types/components/compact-breakdown/types.d.ts +16 -0
- package/dist/types/components/composer/VaComposer.vue.d.ts +65 -0
- package/dist/types/components/composer/index.d.ts +2 -0
- package/dist/types/components/composer/types.d.ts +63 -0
- package/dist/types/components/composer/useComposer.d.ts +11 -0
- package/dist/types/components/confirm/VaConfirmHost.vue.d.ts +2 -0
- package/dist/types/components/confirm/confirm.d.ts +12 -0
- package/dist/types/components/confirm/index.d.ts +3 -0
- package/dist/types/components/confirm/types.d.ts +51 -0
- package/dist/types/components/context-window/VaContextWindow.vue.d.ts +12 -0
- package/dist/types/components/context-window/index.d.ts +3 -0
- package/dist/types/components/context-window/types.d.ts +23 -0
- package/dist/types/components/context-window/useContextWindow.d.ts +11 -0
- package/dist/types/components/conversation-header/VaConversationHeader.vue.d.ts +19 -0
- package/dist/types/components/conversation-header/index.d.ts +2 -0
- package/dist/types/components/conversation-header/types.d.ts +26 -0
- package/dist/types/components/date-range-picker/VaDateRangePicker.vue.d.ts +19 -0
- package/dist/types/components/date-range-picker/index.d.ts +3 -0
- package/dist/types/components/date-range-picker/types.d.ts +29 -0
- package/dist/types/components/date-range-picker/useDateRange.d.ts +40 -0
- package/dist/types/components/decision-inbox/VaDecisionInbox.vue.d.ts +7 -0
- package/dist/types/components/decision-inbox/index.d.ts +2 -0
- package/dist/types/components/decision-inbox/types.d.ts +20 -0
- package/dist/types/components/decision-inbox/useDecisionInbox.d.ts +14 -0
- package/dist/types/components/dialog/VaDialog.vue.d.ts +40 -0
- package/dist/types/components/dialog/index.d.ts +4 -0
- package/dist/types/components/dialog/types.d.ts +58 -0
- package/dist/types/components/dialog/useFocusTrap.d.ts +22 -0
- package/dist/types/components/dock/VaDock.vue.d.ts +48 -0
- package/dist/types/components/dock/index.d.ts +2 -0
- package/dist/types/components/dock/types.d.ts +43 -0
- package/dist/types/components/dropdown/VaDropdown.vue.d.ts +50 -0
- package/dist/types/components/dropdown/index.d.ts +3 -0
- package/dist/types/components/dropdown/types.d.ts +82 -0
- package/dist/types/components/dropdown/useDropdown.d.ts +60 -0
- package/dist/types/components/dropzone/VaDropzone.vue.d.ts +13 -0
- package/dist/types/components/dropzone/formatSize.d.ts +2 -0
- package/dist/types/components/dropzone/index.d.ts +3 -0
- package/dist/types/components/dropzone/types.d.ts +35 -0
- package/dist/types/components/dropzone/useDropzone.d.ts +21 -0
- package/dist/types/components/empty-hero/VaEmptyHero.vue.d.ts +29 -0
- package/dist/types/components/empty-hero/index.d.ts +2 -0
- package/dist/types/components/empty-hero/types.d.ts +20 -0
- package/dist/types/components/experiment-card/VaExperimentCard.vue.d.ts +9 -0
- package/dist/types/components/experiment-card/index.d.ts +2 -0
- package/dist/types/components/experiment-card/types.d.ts +33 -0
- package/dist/types/components/file-tree/VaFileTree.vue.d.ts +19 -0
- package/dist/types/components/file-tree/index.d.ts +4 -0
- package/dist/types/components/file-tree/tree.d.ts +20 -0
- package/dist/types/components/file-tree/types.d.ts +38 -0
- package/dist/types/components/file-tree/useFileTree.d.ts +12 -0
- package/dist/types/components/filter-menu/VaFilterMenu.vue.d.ts +11 -0
- package/dist/types/components/filter-menu/index.d.ts +2 -0
- package/dist/types/components/filter-menu/types.d.ts +28 -0
- package/dist/types/components/gradient/VaGradientFloor.vue.d.ts +5 -0
- package/dist/types/components/gradient/VaGradientText.vue.d.ts +18 -0
- package/dist/types/components/gradient/index.d.ts +3 -0
- package/dist/types/components/gradient/types.d.ts +26 -0
- package/dist/types/components/grid-background/VaGridBackground.vue.d.ts +24 -0
- package/dist/types/components/grid-background/index.d.ts +2 -0
- package/dist/types/components/grid-background/types.d.ts +14 -0
- package/dist/types/components/grid-background/useGridBackground.d.ts +16 -0
- package/dist/types/components/illustrations/VaAgentTeam.vue.d.ts +3 -0
- package/dist/types/components/illustrations/VaModelWheel.vue.d.ts +3 -0
- package/dist/types/components/illustrations/VaVoiceOrb.vue.d.ts +3 -0
- package/dist/types/components/illustrations/index.d.ts +4 -0
- package/dist/types/components/illustrations/types.d.ts +33 -0
- package/dist/types/components/inline-diff/VaInlineDiff.vue.d.ts +7 -0
- package/dist/types/components/inline-diff/index.d.ts +2 -0
- package/dist/types/components/inline-diff/types.d.ts +12 -0
- package/dist/types/components/inline-diff/useInlineDiff.d.ts +23 -0
- package/dist/types/components/integration/VaIntegrationPicker.vue.d.ts +9 -0
- package/dist/types/components/integration/VaIntegrationSettings.vue.d.ts +19 -0
- package/dist/types/components/integration/index.d.ts +3 -0
- package/dist/types/components/integration/types.d.ts +59 -0
- package/dist/types/components/kpi-chart/VaKpiChart.vue.d.ts +7 -0
- package/dist/types/components/kpi-chart/index.d.ts +2 -0
- package/dist/types/components/kpi-chart/types.d.ts +26 -0
- package/dist/types/components/markdown/VaMarkdown.vue.d.ts +8 -0
- package/dist/types/components/markdown/index.d.ts +2 -0
- package/dist/types/components/markdown/types.d.ts +10 -0
- package/dist/types/components/memory-panel/VaMemoryPanel.vue.d.ts +22 -0
- package/dist/types/components/memory-panel/index.d.ts +2 -0
- package/dist/types/components/memory-panel/types.d.ts +20 -0
- package/dist/types/components/memory-panel/useMemoryPanel.d.ts +36 -0
- package/dist/types/components/message-actions/VaMessageActions.vue.d.ts +25 -0
- package/dist/types/components/message-actions/VaMessageText.vue.d.ts +18 -0
- package/dist/types/components/message-actions/index.d.ts +4 -0
- package/dist/types/components/message-actions/types.d.ts +27 -0
- package/dist/types/components/message-actions/useMessageActions.d.ts +26 -0
- package/dist/types/components/metric-chart/VaMetricChart.vue.d.ts +7 -0
- package/dist/types/components/metric-chart/index.d.ts +2 -0
- package/dist/types/components/metric-chart/types.d.ts +13 -0
- package/dist/types/components/model-picker/VaModelPicker.vue.d.ts +38 -0
- package/dist/types/components/model-picker/index.d.ts +3 -0
- package/dist/types/components/model-picker/types.d.ts +20 -0
- package/dist/types/components/model-picker/useModelPicker.d.ts +15 -0
- package/dist/types/components/notification-stack/VaNotificationStack.vue.d.ts +13 -0
- package/dist/types/components/notification-stack/index.d.ts +2 -0
- package/dist/types/components/notification-stack/types.d.ts +32 -0
- package/dist/types/components/number-ticker/VaNumberTicker.vue.d.ts +8 -0
- package/dist/types/components/number-ticker/index.d.ts +2 -0
- package/dist/types/components/number-ticker/types.d.ts +19 -0
- package/dist/types/components/number-ticker/useNumberTicker.d.ts +13 -0
- package/dist/types/components/onboarding/VaOnboarding.vue.d.ts +25 -0
- package/dist/types/components/onboarding/index.d.ts +2 -0
- package/dist/types/components/onboarding/types.d.ts +19 -0
- package/dist/types/components/otp-input/VaOtpInput.vue.d.ts +11 -0
- package/dist/types/components/otp-input/index.d.ts +2 -0
- package/dist/types/components/otp-input/types.d.ts +19 -0
- package/dist/types/components/popover/VaPopover.vue.d.ts +50 -0
- package/dist/types/components/popover/index.d.ts +4 -0
- package/dist/types/components/popover/types.d.ts +47 -0
- package/dist/types/components/popover/useFloating.d.ts +90 -0
- package/dist/types/components/profile-menu/VaProfileMenu.vue.d.ts +9 -0
- package/dist/types/components/profile-menu/index.d.ts +2 -0
- package/dist/types/components/profile-menu/types.d.ts +21 -0
- package/dist/types/components/progress-tracker/VaProgressTracker.vue.d.ts +7 -0
- package/dist/types/components/progress-tracker/index.d.ts +2 -0
- package/dist/types/components/progress-tracker/types.d.ts +17 -0
- package/dist/types/components/prompt-library/VaPromptLibrary.vue.d.ts +9 -0
- package/dist/types/components/prompt-library/index.d.ts +2 -0
- package/dist/types/components/prompt-library/types.d.ts +26 -0
- package/dist/types/components/queue-dock/VaQueueDock.vue.d.ts +15 -0
- package/dist/types/components/queue-dock/index.d.ts +2 -0
- package/dist/types/components/queue-dock/types.d.ts +16 -0
- package/dist/types/components/reaction-bar/VaReactionBar.vue.d.ts +7 -0
- package/dist/types/components/reaction-bar/index.d.ts +2 -0
- package/dist/types/components/reaction-bar/types.d.ts +21 -0
- package/dist/types/components/segmented-control/VaSegmentedControl.vue.d.ts +18 -0
- package/dist/types/components/segmented-control/index.d.ts +2 -0
- package/dist/types/components/segmented-control/types.d.ts +17 -0
- package/dist/types/components/segmented-control/useSegmentedControl.d.ts +22 -0
- package/dist/types/components/select/VaSelect.vue.d.ts +36 -0
- package/dist/types/components/select/index.d.ts +4 -0
- package/dist/types/components/select/types.d.ts +63 -0
- package/dist/types/components/select/useSelect.d.ts +62 -0
- package/dist/types/components/session-manager/VaSessionManager.vue.d.ts +20 -0
- package/dist/types/components/session-manager/index.d.ts +2 -0
- package/dist/types/components/session-manager/types.d.ts +28 -0
- package/dist/types/components/session-tree/VaSessionTree.vue.d.ts +46 -0
- package/dist/types/components/session-tree/index.d.ts +2 -0
- package/dist/types/components/session-tree/types.d.ts +70 -0
- package/dist/types/components/settings-billing/VaSettingsBilling.vue.d.ts +26 -0
- package/dist/types/components/settings-billing/index.d.ts +2 -0
- package/dist/types/components/settings-billing/types.d.ts +30 -0
- package/dist/types/components/setup-guide/VaSetupGuide.vue.d.ts +11 -0
- package/dist/types/components/setup-guide/index.d.ts +2 -0
- package/dist/types/components/setup-guide/types.d.ts +27 -0
- package/dist/types/components/shimmer/VaShimmerText.vue.d.ts +20 -0
- package/dist/types/components/shimmer/VaSkeleton.vue.d.ts +3 -0
- package/dist/types/components/shimmer/index.d.ts +3 -0
- package/dist/types/components/shimmer/types.d.ts +15 -0
- package/dist/types/components/smart-recommendation/VaSmartRecommendation.vue.d.ts +11 -0
- package/dist/types/components/smart-recommendation/index.d.ts +2 -0
- package/dist/types/components/smart-recommendation/types.d.ts +26 -0
- package/dist/types/components/stepper-form/VaStepperForm.vue.d.ts +28 -0
- package/dist/types/components/stepper-form/index.d.ts +2 -0
- package/dist/types/components/stepper-form/types.d.ts +31 -0
- package/dist/types/components/stream-answer/VaStreamAnswer.vue.d.ts +13 -0
- package/dist/types/components/stream-answer/index.d.ts +2 -0
- package/dist/types/components/stream-answer/types.d.ts +11 -0
- package/dist/types/components/stream-answer/useStreamAnswer.d.ts +11 -0
- package/dist/types/components/task-board/VaTaskBoard.vue.d.ts +9 -0
- package/dist/types/components/task-board/index.d.ts +2 -0
- package/dist/types/components/task-board/types.d.ts +29 -0
- package/dist/types/components/terminal-log/VaTerminalLog.vue.d.ts +11 -0
- package/dist/types/components/terminal-log/index.d.ts +2 -0
- package/dist/types/components/terminal-log/types.d.ts +28 -0
- package/dist/types/components/terminal-log/useTerminalLog.d.ts +10 -0
- package/dist/types/components/text-reveal/VaTextReveal.vue.d.ts +12 -0
- package/dist/types/components/text-reveal/index.d.ts +2 -0
- package/dist/types/components/text-reveal/types.d.ts +17 -0
- package/dist/types/components/text-reveal/useTextReveal.d.ts +12 -0
- package/dist/types/components/thinking-loader/VaThinkingLoader.vue.d.ts +10 -0
- package/dist/types/components/thinking-loader/index.d.ts +2 -0
- package/dist/types/components/thinking-loader/types.d.ts +14 -0
- package/dist/types/components/thinking-loader/useThinkingLoader.d.ts +7 -0
- package/dist/types/components/thought-box/VaThoughtBox.vue.d.ts +33 -0
- package/dist/types/components/thought-box/index.d.ts +2 -0
- package/dist/types/components/thought-box/types.d.ts +19 -0
- package/dist/types/components/tilt-card/VaTiltCard.vue.d.ts +18 -0
- package/dist/types/components/tilt-card/index.d.ts +2 -0
- package/dist/types/components/tilt-card/types.d.ts +13 -0
- package/dist/types/components/tips-panel/VaTipsPanel.vue.d.ts +7 -0
- package/dist/types/components/tips-panel/index.d.ts +2 -0
- package/dist/types/components/tips-panel/types.d.ts +18 -0
- package/dist/types/components/toaster/VaToaster.vue.d.ts +5 -0
- package/dist/types/components/toaster/index.d.ts +3 -0
- package/dist/types/components/toaster/store.d.ts +37 -0
- package/dist/types/components/toaster/types.d.ts +17 -0
- package/dist/types/components/tool-call/VaToolCallCard.vue.d.ts +35 -0
- package/dist/types/components/tool-call/VaToolCallGroup.vue.d.ts +29 -0
- package/dist/types/components/tool-call/context.d.ts +7 -0
- package/dist/types/components/tool-call/index.d.ts +3 -0
- package/dist/types/components/tool-call/types.d.ts +54 -0
- package/dist/types/components/tool-call/useToolCallCard.d.ts +19 -0
- package/dist/types/components/tool-call/useToolCallGroup.d.ts +12 -0
- package/dist/types/components/tooltip/VaTooltip.vue.d.ts +38 -0
- package/dist/types/components/tooltip/index.d.ts +2 -0
- package/dist/types/components/tooltip/types.d.ts +36 -0
- package/dist/types/components/trajectory/VaTrajectory.vue.d.ts +54 -0
- package/dist/types/components/trajectory/index.d.ts +2 -0
- package/dist/types/components/trajectory/types.d.ts +41 -0
- package/dist/types/components/turn-list/VaTurnList.vue.d.ts +46 -0
- package/dist/types/components/turn-list/index.d.ts +2 -0
- package/dist/types/components/turn-list/types.d.ts +32 -0
- package/dist/types/components/usage-meter/VaUsageMeter.vue.d.ts +7 -0
- package/dist/types/components/usage-meter/index.d.ts +2 -0
- package/dist/types/components/usage-meter/types.d.ts +25 -0
- package/dist/types/components/user-bubble/VaUserBubble.vue.d.ts +27 -0
- package/dist/types/components/user-bubble/index.d.ts +2 -0
- package/dist/types/components/user-bubble/types.d.ts +22 -0
- package/dist/types/components/workspace-blocks/VaAIWorkspace.vue.d.ts +26 -0
- package/dist/types/components/workspace-blocks/VaPricingPlans.vue.d.ts +7 -0
- package/dist/types/components/workspace-blocks/index.d.ts +3 -0
- package/dist/types/components/workspace-blocks/types.d.ts +40 -0
- package/dist/types/composables/useCardRegistry.d.ts +29 -0
- package/dist/types/composables/useCopyable.d.ts +8 -0
- package/dist/types/composables/useCountdown.d.ts +15 -0
- package/dist/types/composables/useNow.d.ts +6 -0
- package/dist/types/composables/useStickToBottom.d.ts +18 -0
- package/dist/types/index.d.ts +172 -0
- package/dist/types/runtime/VaAgentRenderer.vue.d.ts +12 -0
- package/dist/types/runtime/actionClient.d.ts +5 -0
- package/dist/types/runtime/index.d.ts +7 -0
- package/dist/types/runtime/protocol-types.d.ts +118 -0
- package/dist/types/runtime/registry.d.ts +22 -0
- package/dist/types/runtime/skeletons/CardSkeleton.vue.d.ts +5 -0
- package/dist/types/runtime/skeletons/ChartSkeleton.vue.d.ts +2 -0
- package/dist/types/runtime/skeletons/CodeSkeleton.vue.d.ts +2 -0
- package/dist/types/runtime/types.d.ts +44 -0
- package/dist/types/runtime/useAgentChat.d.ts +77 -0
- package/dist/types/utils/ansi.d.ts +25 -0
- package/dist/types/utils/format.d.ts +7 -0
- package/dist/types/utils/index.d.ts +9 -0
- package/dist/types/utils/lineDiff.d.ts +58 -0
- package/dist/types/utils/sparkline.d.ts +23 -0
- package/dist/types/utils/wordDiff.d.ts +34 -0
- package/dist/vuagent-ui.css +1 -0
- package/package.json +75 -0
- package/src/styles/button.css +84 -0
- package/src/styles/tokens.css +175 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/** VaSelect 的类型定义 */
|
|
2
|
+
export interface SelectOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
/** 分组名:同组选项渲染在 role=group 容器内并带组标题 */
|
|
7
|
+
group?: string;
|
|
8
|
+
/** 选项辅助描述(次要文本) */
|
|
9
|
+
description?: string;
|
|
10
|
+
}
|
|
11
|
+
/** 单选为 string,多选为 string[] */
|
|
12
|
+
export type SelectValue = string | string[];
|
|
13
|
+
export type SelectSize = "sm" | "md" | "lg";
|
|
14
|
+
export interface SelectProps {
|
|
15
|
+
options: SelectOption[];
|
|
16
|
+
/** 受控选中值(配合 @update:modelValue 实现 v-model) */
|
|
17
|
+
modelValue?: SelectValue;
|
|
18
|
+
/** 非受控初始值 */
|
|
19
|
+
defaultValue?: SelectValue;
|
|
20
|
+
/** 多选:值为 string[],选项前显示勾选框 */
|
|
21
|
+
multiple?: boolean;
|
|
22
|
+
/** 弹层顶部搜索输入(无匹配显示 emptyLabel) */
|
|
23
|
+
searchable?: boolean;
|
|
24
|
+
/** hover 显示清除按钮 */
|
|
25
|
+
clearable?: boolean;
|
|
26
|
+
size?: SelectSize;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/** 错误态:红色边框 + aria-invalid */
|
|
29
|
+
invalid?: boolean;
|
|
30
|
+
/** 加载态:触发器显示 spinner */
|
|
31
|
+
loading?: boolean;
|
|
32
|
+
placeholder?: string;
|
|
33
|
+
/** 搜索无匹配文案 */
|
|
34
|
+
emptyLabel?: string;
|
|
35
|
+
/** 触发器 aria-label */
|
|
36
|
+
label?: string;
|
|
37
|
+
/** 非受控初始打开(SSR/演示用) */
|
|
38
|
+
defaultOpen?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface SelectEvents {
|
|
41
|
+
"update:modelValue": [value: SelectValue];
|
|
42
|
+
/** 选中某项后触发(携带新值与被选项) */
|
|
43
|
+
change: [value: SelectValue, option: SelectOption];
|
|
44
|
+
/** 清除按钮清空选中 */
|
|
45
|
+
clear: [];
|
|
46
|
+
/** 弹层开关变化 */
|
|
47
|
+
visibleChange: [open: boolean];
|
|
48
|
+
}
|
|
49
|
+
export interface SelectSlots {
|
|
50
|
+
/** 自定义选项渲染 */
|
|
51
|
+
option?: (props: {
|
|
52
|
+
option: SelectOption;
|
|
53
|
+
selected: boolean;
|
|
54
|
+
active: boolean;
|
|
55
|
+
}) => unknown;
|
|
56
|
+
/** 无匹配项内容 */
|
|
57
|
+
empty?: () => unknown;
|
|
58
|
+
/** 自定义选中回显 */
|
|
59
|
+
value?: (props: {
|
|
60
|
+
options: SelectOption[];
|
|
61
|
+
values: string[];
|
|
62
|
+
}) => unknown;
|
|
63
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { SelectOption, SelectProps, SelectValue } from './types';
|
|
3
|
+
/** 渲染条目:分组(role=group + 组标题)或未分组连续段 */
|
|
4
|
+
export interface SelectRenderOption {
|
|
5
|
+
option: SelectOption;
|
|
6
|
+
/** 扁平下标(跨分组连续编号,键盘导航 / aria-activedescendant 用) */
|
|
7
|
+
index: number;
|
|
8
|
+
domId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface SelectRenderGroup {
|
|
11
|
+
type: "group";
|
|
12
|
+
label: string;
|
|
13
|
+
titleId: string;
|
|
14
|
+
items: SelectRenderOption[];
|
|
15
|
+
}
|
|
16
|
+
export interface SelectRenderPlain {
|
|
17
|
+
type: "plain";
|
|
18
|
+
items: SelectRenderOption[];
|
|
19
|
+
}
|
|
20
|
+
export type SelectRenderEntry = SelectRenderGroup | SelectRenderPlain;
|
|
21
|
+
/**
|
|
22
|
+
* VaSelect:纯选择型下拉(区别于 VaCombobox 的可输入创建)。
|
|
23
|
+
* 状态机:open / query / activeIdx + 受控·非受控值;键盘导航(↑↓ 跳过 disabled、
|
|
24
|
+
* Home/End、字母首字符跳转、Enter/Space 选中、多选 Space 切换)。
|
|
25
|
+
* 打开入口有鼠标点击(经 popover toggle)与键盘两条,故打开副作用统一收在 watch(open)。
|
|
26
|
+
* SSR 安全:DOM 访问全部收在 nextTick / 事件回调里。
|
|
27
|
+
*/
|
|
28
|
+
export declare function useSelect(props: SelectProps, els: {
|
|
29
|
+
trigger: Ref<HTMLButtonElement | null>;
|
|
30
|
+
search: Ref<HTMLInputElement | null>;
|
|
31
|
+
}, emit: {
|
|
32
|
+
"update:modelValue": (v: SelectValue) => void;
|
|
33
|
+
change: (v: SelectValue, o: SelectOption) => void;
|
|
34
|
+
clear: () => void;
|
|
35
|
+
visibleChange: (open: boolean) => void;
|
|
36
|
+
}): {
|
|
37
|
+
listId: string;
|
|
38
|
+
open: Ref<boolean, boolean>;
|
|
39
|
+
query: Ref<string, string>;
|
|
40
|
+
activeIdx: Ref<number, number>;
|
|
41
|
+
value: import('vue').ComputedRef<SelectValue>;
|
|
42
|
+
values: import('vue').ComputedRef<string[]>;
|
|
43
|
+
selectedOptions: import('vue').ComputedRef<SelectOption[]>;
|
|
44
|
+
hasValue: import('vue').ComputedRef<boolean>;
|
|
45
|
+
isSelected: (o: SelectOption) => boolean;
|
|
46
|
+
filtered: import('vue').ComputedRef<SelectOption[]>;
|
|
47
|
+
flatItems: import('vue').ComputedRef<SelectRenderOption[]>;
|
|
48
|
+
renderEntries: import('vue').ComputedRef<SelectRenderEntry[]>;
|
|
49
|
+
showClear: import('vue').ComputedRef<boolean>;
|
|
50
|
+
activeDomId: import('vue').ComputedRef<string | undefined>;
|
|
51
|
+
setOpen: (v: boolean) => void;
|
|
52
|
+
openMenu: () => void;
|
|
53
|
+
closeMenu: () => void;
|
|
54
|
+
toggleMenu: () => void;
|
|
55
|
+
focusTrigger: () => void;
|
|
56
|
+
pick: (o: SelectOption) => void;
|
|
57
|
+
onClear: (e: MouseEvent) => void;
|
|
58
|
+
move: (step: 1 | -1) => void;
|
|
59
|
+
onTriggerKeydown: (e: KeyboardEvent) => void;
|
|
60
|
+
onTriggerKeyup: (e: KeyboardEvent) => void;
|
|
61
|
+
onSearchKeydown: (e: KeyboardEvent) => void;
|
|
62
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SessionManagerProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<SessionManagerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
select: (id: string) => any;
|
|
4
|
+
rename: (id: string, title: string) => any;
|
|
5
|
+
remove: (id: string) => any;
|
|
6
|
+
create: () => any;
|
|
7
|
+
archive: (id: string, archived: boolean) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<SessionManagerProps> & Readonly<{
|
|
9
|
+
onSelect?: ((id: string) => any) | undefined;
|
|
10
|
+
onRename?: ((id: string, title: string) => any) | undefined;
|
|
11
|
+
onRemove?: ((id: string) => any) | undefined;
|
|
12
|
+
onCreate?: (() => any) | undefined;
|
|
13
|
+
onArchive?: ((id: string, archived: boolean) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
ariaLabel: string;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
18
|
+
root: HTMLDivElement;
|
|
19
|
+
}, HTMLDivElement>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** VaSessionManager 的类型定义(结构与协议 SessionMeta 保持一致) */
|
|
2
|
+
export interface SessionItem {
|
|
3
|
+
id: string;
|
|
4
|
+
/** 空串 = 未命名 */
|
|
5
|
+
title: string;
|
|
6
|
+
createdAt: number;
|
|
7
|
+
updatedAt: number;
|
|
8
|
+
archived: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface SessionManagerProps {
|
|
11
|
+
sessions: SessionItem[];
|
|
12
|
+
/** 当前活跃会话 id */
|
|
13
|
+
activeId: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface SessionManagerEvents {
|
|
18
|
+
/** 点击行(非当前会话)→ 切换 */
|
|
19
|
+
select: [id: string];
|
|
20
|
+
/** 新建会话 */
|
|
21
|
+
create: [];
|
|
22
|
+
/** 重命名完成 */
|
|
23
|
+
rename: [id: string, title: string];
|
|
24
|
+
/** 归档(true)/ 恢复(false) */
|
|
25
|
+
archive: [id: string, archived: boolean];
|
|
26
|
+
/** 删除(面板内已二次确认) */
|
|
27
|
+
remove: [id: string];
|
|
28
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { SessionTreeProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
footer?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<SessionTreeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
rename: (id: string, title: string) => any;
|
|
13
|
+
remove: (id: string) => any;
|
|
14
|
+
createWorkspace: (name: string) => any;
|
|
15
|
+
createSession: (workspaceId: string) => any;
|
|
16
|
+
archive: (id: string, archived: boolean) => any;
|
|
17
|
+
createWorkspacePick: () => any;
|
|
18
|
+
selectSession: (id: string) => any;
|
|
19
|
+
removeWorkspace: (id: string) => any;
|
|
20
|
+
togglePin: (id: string) => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<SessionTreeProps> & Readonly<{
|
|
22
|
+
onRename?: ((id: string, title: string) => any) | undefined;
|
|
23
|
+
onRemove?: ((id: string) => any) | undefined;
|
|
24
|
+
onCreateWorkspace?: ((name: string) => any) | undefined;
|
|
25
|
+
onCreateSession?: ((workspaceId: string) => any) | undefined;
|
|
26
|
+
onArchive?: ((id: string, archived: boolean) => any) | undefined;
|
|
27
|
+
onCreateWorkspacePick?: (() => any) | undefined;
|
|
28
|
+
onSelectSession?: ((id: string) => any) | undefined;
|
|
29
|
+
onRemoveWorkspace?: ((id: string) => any) | undefined;
|
|
30
|
+
onTogglePin?: ((id: string) => any) | undefined;
|
|
31
|
+
}>, {
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
collapsible: boolean;
|
|
34
|
+
workspaceCreateMode: "input" | "picker";
|
|
35
|
+
newSession: boolean;
|
|
36
|
+
searchable: boolean;
|
|
37
|
+
hoverOps: boolean;
|
|
38
|
+
confirmMode: "inline" | "none";
|
|
39
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
40
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/** VaSessionTree 的类型定义(结构与协议 SessionMeta / WorkspaceInfo 保持一致) */
|
|
2
|
+
export interface TreeWorkspace {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TreeSession {
|
|
8
|
+
id: string;
|
|
9
|
+
/** 空串 = 未命名 */
|
|
10
|
+
title: string;
|
|
11
|
+
createdAt: number;
|
|
12
|
+
updatedAt: number;
|
|
13
|
+
archived: boolean;
|
|
14
|
+
/** 所属工作区(分组依据) */
|
|
15
|
+
workspaceId?: string;
|
|
16
|
+
/** agent 运行中(琥珀脉冲点) */
|
|
17
|
+
running?: boolean;
|
|
18
|
+
/** 有待审批(红点 + 徽标) */
|
|
19
|
+
waitingApproval?: boolean;
|
|
20
|
+
/** 已置顶(图钉标记;排序由宿主负责) */
|
|
21
|
+
pinned?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface SessionTreeProps {
|
|
24
|
+
/** 全部工作区(平铺分组标题,按数组顺序展示) */
|
|
25
|
+
workspaces: TreeWorkspace[];
|
|
26
|
+
/** 全部非归档会话(按 workspaceId 归入对应分组) */
|
|
27
|
+
sessions: TreeSession[];
|
|
28
|
+
/** 已归档会话(收进底部「已归档」分区) */
|
|
29
|
+
archived: TreeSession[];
|
|
30
|
+
/** 当前会话所属工作区 id(仅用于分组高亮,不涉及切换) */
|
|
31
|
+
currentWorkspaceId: string;
|
|
32
|
+
/** 当前活跃会话 id */
|
|
33
|
+
currentSessionId: string;
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/** 新建工作区模式:input=行内输入框(默认);picker=「+」直接触发 createWorkspacePick(宿主弹原生目录选择框) */
|
|
36
|
+
workspaceCreateMode?: "input" | "picker";
|
|
37
|
+
/** 顶部常驻「+ 新建会话」按钮(目标 = 当前工作区;无工作区时禁用) */
|
|
38
|
+
newSession?: boolean;
|
|
39
|
+
/** 显示会话搜索框(组件内按标题过滤) */
|
|
40
|
+
searchable?: boolean;
|
|
41
|
+
/** 工作区分组可折叠(chevron 切换,默认全部展开;默认 false 平铺) */
|
|
42
|
+
collapsible?: boolean;
|
|
43
|
+
/** 行操作按钮 hover/focus 时才显示(确认态除外);默认 false 常驻 */
|
|
44
|
+
hoverOps?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* 删除确认模式(会话/工作区删除):
|
|
47
|
+
* - "inline"(默认):行内二次确认(3s 内再次点击,「确认?」文案)
|
|
48
|
+
* - "none":直接发 remove / removeWorkspace 事件,由宿主路由到 vaConfirm 等模态确认
|
|
49
|
+
*/
|
|
50
|
+
confirmMode?: "inline" | "none";
|
|
51
|
+
}
|
|
52
|
+
export interface SessionTreeEvents {
|
|
53
|
+
/** 新建工作区(input 模式:携带输入的名称,Enter 提交) */
|
|
54
|
+
createWorkspace: [name: string];
|
|
55
|
+
/** picker 模式:点击「+ 新建工作区」立即触发(宿主弹原生选择框,无输入框) */
|
|
56
|
+
createWorkspacePick: [];
|
|
57
|
+
/** 点击会话行 → 切换会话 */
|
|
58
|
+
selectSession: [id: string];
|
|
59
|
+
/** 新建会话(在指定工作区下) */
|
|
60
|
+
createSession: [workspaceId: string];
|
|
61
|
+
/** 删除工作区(行内二次确认;其下会话回到未分组) */
|
|
62
|
+
removeWorkspace: [id: string];
|
|
63
|
+
/** 置顶/取消置顶会话(排序由宿主负责) */
|
|
64
|
+
togglePin: [id: string];
|
|
65
|
+
rename: [id: string, title: string];
|
|
66
|
+
/** 归档(true)/ 恢复(false) */
|
|
67
|
+
archive: [id: string, archived: boolean];
|
|
68
|
+
/** 删除(行内二次确认) */
|
|
69
|
+
remove: [id: string];
|
|
70
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SettingsBillingProps, BillingPlan } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
usage?(_: {}): any;
|
|
6
|
+
plans?(_: {}): any;
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<SettingsBillingProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"update:active": (id: string) => any;
|
|
15
|
+
choosePlan: (plan: BillingPlan) => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<SettingsBillingProps> & Readonly<{
|
|
17
|
+
"onUpdate:active"?: ((id: string) => any) | undefined;
|
|
18
|
+
onChoosePlan?: ((plan: BillingPlan) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** VaSettingsBilling 的类型定义 */
|
|
2
|
+
export interface BillingPlan {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
/** 价格文案,如 "$20 / 月" */
|
|
6
|
+
price: string;
|
|
7
|
+
features: string[];
|
|
8
|
+
current?: boolean;
|
|
9
|
+
recommended?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface SettingsBillingProps {
|
|
12
|
+
/** 设置区导航(沿用 AppShell 的 NavItem 形状) */
|
|
13
|
+
nav?: Array<{
|
|
14
|
+
id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
badge?: number;
|
|
17
|
+
}>;
|
|
18
|
+
/** 受控当前设置项 */
|
|
19
|
+
active?: string;
|
|
20
|
+
defaultActive?: string;
|
|
21
|
+
/** 页面标题 */
|
|
22
|
+
title?: string;
|
|
23
|
+
/** 套餐卡;不传则隐藏该区(宿主用 #plans 插槽自定义) */
|
|
24
|
+
plans?: BillingPlan[];
|
|
25
|
+
}
|
|
26
|
+
export interface SettingsBillingEvents {
|
|
27
|
+
"update:active": [id: string];
|
|
28
|
+
/** 点击套餐卡(升级/降级) */
|
|
29
|
+
choosePlan: [plan: BillingPlan];
|
|
30
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SetupGuideProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<SetupGuideProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
complete: (id: string) => any;
|
|
4
|
+
skip: (id: string) => any;
|
|
5
|
+
allDone: () => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<SetupGuideProps> & Readonly<{
|
|
7
|
+
onComplete?: ((id: string) => any) | undefined;
|
|
8
|
+
onSkip?: ((id: string) => any) | undefined;
|
|
9
|
+
onAllDone?: (() => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** VaSetupGuide 的类型定义 */
|
|
2
|
+
export interface SetupStep {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
/** 宿主维护的完成态:undefined 进行中 */
|
|
7
|
+
status?: "done" | "skipped";
|
|
8
|
+
/** 可跳过(显示"跳过"按钮) */
|
|
9
|
+
optional?: boolean;
|
|
10
|
+
/** 步骤完成动作文案,默认"完成" */
|
|
11
|
+
actionLabel?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface SetupGuideProps {
|
|
14
|
+
steps: SetupStep[];
|
|
15
|
+
/** 标题,默认"开始准备" */
|
|
16
|
+
title?: string;
|
|
17
|
+
/** 完成全部后展示的收尾文案 */
|
|
18
|
+
finishLabel?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface SetupGuideEvents {
|
|
21
|
+
/** 点击步骤完成动作 */
|
|
22
|
+
complete: [id: string];
|
|
23
|
+
/** 点击跳过 */
|
|
24
|
+
skip: [id: string];
|
|
25
|
+
/** 全部处理完(无进行中步骤)时触发一次 */
|
|
26
|
+
allDone: [];
|
|
27
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ShimmerTextProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLSpanElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<ShimmerTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ShimmerTextProps> & Readonly<{}>, {
|
|
12
|
+
duration: number;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { SkeletonProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<SkeletonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** VaSkeleton / VaShimmerText 的类型定义 */
|
|
2
|
+
export interface SkeletonProps {
|
|
3
|
+
/** 数字按 px,字符串按任意 CSS 长度;默认 100% */
|
|
4
|
+
width?: number | string;
|
|
5
|
+
/** 默认 12px */
|
|
6
|
+
height?: number | string;
|
|
7
|
+
/** 圆角;默认 6px */
|
|
8
|
+
radius?: number | string;
|
|
9
|
+
/** 圆形(头像等),取 height 为直径 */
|
|
10
|
+
circle?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface ShimmerTextProps {
|
|
13
|
+
/** 一次扫光的秒数 */
|
|
14
|
+
duration?: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SmartRecommendationProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<SmartRecommendationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
dismiss: () => any;
|
|
4
|
+
action: (id: string) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<SmartRecommendationProps> & Readonly<{
|
|
6
|
+
onDismiss?: (() => any) | undefined;
|
|
7
|
+
onAction?: ((id: string) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
dismissible: boolean;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** VaSmartRecommendation 的类型定义 */
|
|
2
|
+
export interface RecommendationAction {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
/** 主要操作(accent 实底);默认次要样式 */
|
|
6
|
+
primary?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface SmartRecommendationProps {
|
|
9
|
+
/** 建议标题 */
|
|
10
|
+
title: string;
|
|
11
|
+
/** 建议理由/说明 */
|
|
12
|
+
description?: string;
|
|
13
|
+
actions: RecommendationAction[];
|
|
14
|
+
/** 预期收益标签(如 "预计省 30% tokens") */
|
|
15
|
+
impact?: string;
|
|
16
|
+
/** 右上角关闭 ×;false 时只显示 actions */
|
|
17
|
+
dismissible?: boolean;
|
|
18
|
+
/** 关闭按钮 aria-label */
|
|
19
|
+
dismissLabel?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface SmartRecommendationEvents {
|
|
22
|
+
/** 点击某个操作(携带 action id) */
|
|
23
|
+
action: [id: string];
|
|
24
|
+
/** 点击关闭 */
|
|
25
|
+
dismiss: [];
|
|
26
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { StepperFormProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Partial<Record<`step-${string}`, (_: {
|
|
5
|
+
step: number;
|
|
6
|
+
}) => any>>;
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLFormElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<StepperFormProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
submit: (current: number) => any;
|
|
13
|
+
"update:step": (index: number) => any;
|
|
14
|
+
next: (prev: number) => any;
|
|
15
|
+
back: (prev: number) => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<StepperFormProps> & Readonly<{
|
|
17
|
+
onSubmit?: ((current: number) => any) | undefined;
|
|
18
|
+
"onUpdate:step"?: ((index: number) => any) | undefined;
|
|
19
|
+
onNext?: ((prev: number) => any) | undefined;
|
|
20
|
+
onBack?: ((prev: number) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFormElement>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** VaStepperForm 的类型定义 */
|
|
2
|
+
export interface StepperStep {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
/** 步骤简述(步骤条下的小字) */
|
|
6
|
+
description?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface StepperFormProps {
|
|
9
|
+
steps: StepperStep[];
|
|
10
|
+
/** 受控当前步下标(配合 @update:step 实现 v-model:step) */
|
|
11
|
+
step?: number;
|
|
12
|
+
/** 非受控初始步 */
|
|
13
|
+
defaultStep?: number;
|
|
14
|
+
/** 禁用"下一步/提交"(宿主校验未通过时) */
|
|
15
|
+
nextDisabled?: boolean;
|
|
16
|
+
/** 提交进行中(最后一步按钮转"提交中…") */
|
|
17
|
+
submitting?: boolean;
|
|
18
|
+
/** 上一步按钮文案 */
|
|
19
|
+
backLabel?: string;
|
|
20
|
+
nextLabel?: string;
|
|
21
|
+
/** 最后一步按钮文案,默认"提交" */
|
|
22
|
+
finishLabel?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface StepperFormEvents {
|
|
25
|
+
"update:step": [index: number];
|
|
26
|
+
/** 进入下一步前(prev 为离开的步下标;可在此做校验副作用) */
|
|
27
|
+
next: [prev: number];
|
|
28
|
+
back: [prev: number];
|
|
29
|
+
/** 最后一步点提交(携带当前步下标) */
|
|
30
|
+
submit: [current: number];
|
|
31
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StreamAnswerProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<StreamAnswerProps, {
|
|
3
|
+
replay: () => void;
|
|
4
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
complete: () => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<StreamAnswerProps> & Readonly<{
|
|
7
|
+
onComplete?: (() => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
interval: number;
|
|
10
|
+
autoPlay: boolean;
|
|
11
|
+
chunk: number;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StreamAnswerProps } from './types';
|
|
2
|
+
/** VaStreamAnswer 的状态逻辑:逐字播放 / 光标 / 完成回调 / 重放 */
|
|
3
|
+
export declare function useStreamAnswer(props: StreamAnswerProps, emit: {
|
|
4
|
+
complete: () => void;
|
|
5
|
+
}): {
|
|
6
|
+
text: import('vue').ComputedRef<string>;
|
|
7
|
+
done: import('vue').ComputedRef<boolean>;
|
|
8
|
+
playing: import('vue').Ref<boolean, boolean>;
|
|
9
|
+
replay: () => void;
|
|
10
|
+
stop: () => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TaskBoardProps, BoardTask } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<TaskBoardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
open: (task: BoardTask) => any;
|
|
4
|
+
"update:selected": (id: string | undefined) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<TaskBoardProps> & Readonly<{
|
|
6
|
+
onOpen?: ((task: BoardTask) => any) | undefined;
|
|
7
|
+
"onUpdate:selected"?: ((id: string | undefined) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
|
+
export default _default;
|