@opentiny/tiny-robot 0.4.2-alpha.5 → 0.4.2-alpha.7
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/action-group/index.js +4 -4
- package/dist/anchor/index.js +44 -44
- package/dist/drag-overlay/index.js +1 -1
- package/dist/dropdown-menu/index.js +1 -1
- package/dist/index.d.ts +5018 -49
- package/dist/index.js +3 -3
- package/dist/index2.js +2 -2
- package/dist/index4.js +20 -20
- package/dist/index6.js +142 -143
- package/dist/index7.js +28 -28
- package/dist/index8.js +8 -8
- package/dist/sender/index.js +2 -2
- package/dist/sender-actions/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +1 -1
- package/dist/suggestion-popover/index.js +1 -1
- package/dist/theme-provider/index.js +41 -32
- package/dist/useSlotRefs.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +3 -22
- package/dist/action-group/ActionGroup.vue.d.ts +0 -26
- package/dist/action-group/ActionGroupItem.vue.d.ts +0 -18
- package/dist/action-group/index.d.ts +0 -12
- package/dist/action-group/index.type.d.ts +0 -17
- package/dist/anchor/components/AnchorItem.vue.d.ts +0 -24
- package/dist/anchor/components/AnchorList.vue.d.ts +0 -20
- package/dist/anchor/components/AnchorOverlay.vue.d.ts +0 -33
- package/dist/anchor/components/AnchorSearch.vue.d.ts +0 -7
- package/dist/anchor/composables/index.d.ts +0 -5
- package/dist/anchor/composables/useActiveSync.d.ts +0 -10
- package/dist/anchor/composables/useFloatingOffset.d.ts +0 -6
- package/dist/anchor/composables/useNavController.d.ts +0 -12
- package/dist/anchor/composables/useOverlayInteractions.d.ts +0 -6
- package/dist/anchor/composables/useTargetFeedback.d.ts +0 -5
- package/dist/anchor/defaults.d.ts +0 -16
- package/dist/anchor/index.d.ts +0 -7
- package/dist/anchor/index.type.d.ts +0 -60
- package/dist/anchor/index.vue.d.ts +0 -159
- package/dist/anchor/internal.type.d.ts +0 -103
- package/dist/anchor/utils/scroll.d.ts +0 -7
- package/dist/anchor/utils/target.d.ts +0 -6
- package/dist/attachments/components/FileCard.vue.d.ts +0 -18
- package/dist/attachments/components/ImagePreview.vue.d.ts +0 -17
- package/dist/attachments/components/index.d.ts +0 -2
- package/dist/attachments/composables/index.d.ts +0 -5
- package/dist/attachments/composables/useFileCard.d.ts +0 -15
- package/dist/attachments/composables/useFileType.d.ts +0 -20
- package/dist/attachments/composables/useImagePreview.d.ts +0 -18
- package/dist/attachments/composables/useListType.d.ts +0 -11
- package/dist/attachments/index.d.ts +0 -7
- package/dist/attachments/index.type.d.ts +0 -70
- package/dist/attachments/index.vue.d.ts +0 -27
- package/dist/attachments/utils.d.ts +0 -3
- package/dist/base-popper/components/Popper.vue.d.ts +0 -28
- package/dist/base-popper/index.d.ts +0 -2
- package/dist/base-popper/index.vue.d.ts +0 -41
- package/dist/bubble/Bubble.vue.d.ts +0 -39
- package/dist/bubble/BubbleBoxWrapper.vue.d.ts +0 -22
- package/dist/bubble/BubbleContentWrapper.vue.d.ts +0 -16
- package/dist/bubble/BubbleItem.vue.d.ts +0 -36
- package/dist/bubble/BubbleList.vue.d.ts +0 -41
- package/dist/bubble/BubbleProvider.vue.d.ts +0 -18
- package/dist/bubble/composables/index.d.ts +0 -10
- package/dist/bubble/composables/useBubbleBoxRenderer.d.ts +0 -18
- package/dist/bubble/composables/useBubbleContentRenderer.d.ts +0 -18
- package/dist/bubble/composables/useBubbleStateChange.d.ts +0 -2
- package/dist/bubble/composables/useBubbleStore.d.ts +0 -16
- package/dist/bubble/composables/useContentResolver.d.ts +0 -5
- package/dist/bubble/composables/useCopyCleanup.d.ts +0 -6
- package/dist/bubble/composables/useMessageContent.d.ts +0 -5
- package/dist/bubble/composables/useMessageGroup.d.ts +0 -4
- package/dist/bubble/composables/useOmitMessageFields.d.ts +0 -12
- package/dist/bubble/composables/useToolCall.d.ts +0 -25
- package/dist/bubble/constants.d.ts +0 -42
- package/dist/bubble/index.d.ts +0 -19
- package/dist/bubble/index.type.d.ts +0 -171
- package/dist/bubble/renderers/Box.vue.d.ts +0 -18
- package/dist/bubble/renderers/Image.vue.d.ts +0 -4
- package/dist/bubble/renderers/Loading.vue.d.ts +0 -4
- package/dist/bubble/renderers/Markdown.vue.d.ts +0 -4
- package/dist/bubble/renderers/Reasoning.vue.d.ts +0 -9
- package/dist/bubble/renderers/Text.vue.d.ts +0 -4
- package/dist/bubble/renderers/Tool.vue.d.ts +0 -14
- package/dist/bubble/renderers/ToolRole.vue.d.ts +0 -4
- package/dist/bubble/renderers/Tools.vue.d.ts +0 -4
- package/dist/bubble/renderers/allRenderers.d.ts +0 -93
- package/dist/bubble/renderers/defaultRenderers.d.ts +0 -27
- package/dist/bubble/utils.d.ts +0 -7
- package/dist/chat/components/ChatConversation.vue.d.ts +0 -70
- package/dist/chat/components/ChatLauncherButton.vue.d.ts +0 -12
- package/dist/chat/components/ChatMcpTrigger.vue.d.ts +0 -30
- package/dist/chat/components/ChatThemeToggleButton.vue.d.ts +0 -2
- package/dist/chat/components/ChatWelcome.vue.d.ts +0 -13
- package/dist/chat/composables/useChatConversation.d.ts +0 -37
- package/dist/chat/composables/useChatMcp.d.ts +0 -29
- package/dist/chat/composables/useChatModel.d.ts +0 -27
- package/dist/chat/index.d.ts +0 -9
- package/dist/chat/index.js +0 -13701
- package/dist/chat/index.type.d.ts +0 -88
- package/dist/chat/index.vue.d.ts +0 -58
- package/dist/container/index.d.ts +0 -7
- package/dist/container/index.type.d.ts +0 -20
- package/dist/container/index.vue.d.ts +0 -32
- package/dist/conversations/index.d.ts +0 -7
- package/dist/conversations/index.vue.d.ts +0 -2
- package/dist/drag-overlay/constants.d.ts +0 -17
- package/dist/drag-overlay/directives/vDropzone.d.ts +0 -14
- package/dist/drag-overlay/index.d.ts +0 -7
- package/dist/drag-overlay/index.type.d.ts +0 -105
- package/dist/drag-overlay/index.vue.d.ts +0 -20
- package/dist/dropdown-menu/composables/usePopperHover.d.ts +0 -6
- package/dist/dropdown-menu/index.d.ts +0 -7
- package/dist/dropdown-menu/index.type.d.ts +0 -42
- package/dist/dropdown-menu/index.vue.d.ts +0 -217
- package/dist/feedback/components/SourceList.vue.d.ts +0 -11
- package/dist/feedback/components/index.d.ts +0 -1
- package/dist/feedback/index.d.ts +0 -7
- package/dist/feedback/index.type.d.ts +0 -25
- package/dist/feedback/index.vue.d.ts +0 -13
- package/dist/flow-layout-buttons/index.d.ts +0 -7
- package/dist/flow-layout-buttons/index.type.d.ts +0 -35
- package/dist/flow-layout-buttons/index.vue.d.ts +0 -22
- package/dist/history/components/Empty.vue.d.ts +0 -7
- package/dist/history/components/MenuList.vue.d.ts +0 -24
- package/dist/history/composables/useRenameEditor.d.ts +0 -22
- package/dist/history/constants.d.ts +0 -1
- package/dist/history/index.d.ts +0 -7
- package/dist/history/index.type.d.ts +0 -33
- package/dist/history/index.vue.d.ts +0 -18
- package/dist/icon-button/index.d.ts +0 -7
- package/dist/icon-button/index.type.d.ts +0 -7
- package/dist/icon-button/index.vue.d.ts +0 -6
- package/dist/mcp-add-form/components/CodeEditor.vue.d.ts +0 -9
- package/dist/mcp-add-form/components/FormEditor.vue.d.ts +0 -10
- package/dist/mcp-add-form/components/index.d.ts +0 -2
- package/dist/mcp-add-form/index.d.ts +0 -7
- package/dist/mcp-add-form/index.type.d.ts +0 -19
- package/dist/mcp-add-form/index.vue.d.ts +0 -13
- package/dist/mcp-server-picker/components/NoData.vue.d.ts +0 -7
- package/dist/mcp-server-picker/components/PluginCard.vue.d.ts +0 -40
- package/dist/mcp-server-picker/components/PluginModal.vue.d.ts +0 -15
- package/dist/mcp-server-picker/components/index.d.ts +0 -3
- package/dist/mcp-server-picker/index.d.ts +0 -7
- package/dist/mcp-server-picker/index.type.d.ts +0 -99
- package/dist/mcp-server-picker/index.vue.d.ts +0 -71
- package/dist/prompts/index.d.ts +0 -12
- package/dist/prompts/index.type.d.ts +0 -59
- package/dist/prompts/prompt.vue.d.ts +0 -5
- package/dist/prompts/prompts.vue.d.ts +0 -20
- package/dist/sender/components/editor-content/index.vue.d.ts +0 -4
- package/dist/sender/components/footer/index.vue.d.ts +0 -38
- package/dist/sender/components/layouts/MultiLineLayout.vue.d.ts +0 -43
- package/dist/sender/components/layouts/SingleLineLayout.vue.d.ts +0 -32
- package/dist/sender/composables/index.d.ts +0 -7
- package/dist/sender/composables/useAutoSize.d.ts +0 -5
- package/dist/sender/composables/useEditor.d.ts +0 -13
- package/dist/sender/composables/useKeyboardShortcuts.d.ts +0 -7
- package/dist/sender/composables/useModeSwitch.d.ts +0 -4
- package/dist/sender/composables/useSenderCore.d.ts +0 -31
- package/dist/sender/composables/useSlotScope.d.ts +0 -10
- package/dist/sender/context/index.d.ts +0 -6
- package/dist/sender/context/types.d.ts +0 -7
- package/dist/sender/extensions/constants.d.ts +0 -94
- package/dist/sender/extensions/index.d.ts +0 -12
- package/dist/sender/extensions/mention/commands.d.ts +0 -20
- package/dist/sender/extensions/mention/components/mention-list.vue.d.ts +0 -18
- package/dist/sender/extensions/mention/components/mention-view.vue.d.ts +0 -19
- package/dist/sender/extensions/mention/extension.d.ts +0 -6
- package/dist/sender/extensions/mention/index.d.ts +0 -22
- package/dist/sender/extensions/mention/plugin.d.ts +0 -16
- package/dist/sender/extensions/mention/types.d.ts +0 -126
- package/dist/sender/extensions/mention/utils.d.ts +0 -34
- package/dist/sender/extensions/suggestion/extension.d.ts +0 -8
- package/dist/sender/extensions/suggestion/index.d.ts +0 -20
- package/dist/sender/extensions/suggestion/plugin.d.ts +0 -21
- package/dist/sender/extensions/suggestion/suggestion-list.vue.d.ts +0 -46
- package/dist/sender/extensions/suggestion/types.d.ts +0 -254
- package/dist/sender/extensions/suggestion/utils/filter.d.ts +0 -29
- package/dist/sender/extensions/suggestion/utils/highlight.d.ts +0 -73
- package/dist/sender/extensions/template/block/extension.d.ts +0 -6
- package/dist/sender/extensions/template/block/plugins.d.ts +0 -13
- package/dist/sender/extensions/template/block/template-block-view.vue.d.ts +0 -14
- package/dist/sender/extensions/template/commands.d.ts +0 -31
- package/dist/sender/extensions/template/extension.d.ts +0 -6
- package/dist/sender/extensions/template/index.d.ts +0 -21
- package/dist/sender/extensions/template/select/dropdown-manager.d.ts +0 -23
- package/dist/sender/extensions/template/select/extension.d.ts +0 -5
- package/dist/sender/extensions/template/select/plugins.d.ts +0 -34
- package/dist/sender/extensions/template/select/template-select-view.vue.d.ts +0 -20
- package/dist/sender/extensions/template/types.d.ts +0 -100
- package/dist/sender/extensions/template/utils.d.ts +0 -20
- package/dist/sender/extensions/utils/id-generator.d.ts +0 -16
- package/dist/sender/extensions/utils/index.d.ts +0 -7
- package/dist/sender/extensions/utils/keyboard.d.ts +0 -49
- package/dist/sender/extensions/utils/position.d.ts +0 -25
- package/dist/sender/index.d.ts +0 -136
- package/dist/sender/index.type.d.ts +0 -302
- package/dist/sender/index.vue.d.ts +0 -90
- package/dist/sender/types/base.d.ts +0 -239
- package/dist/sender/types/components.d.ts +0 -68
- package/dist/sender/types/composables.d.ts +0 -122
- package/dist/sender/types/context.d.ts +0 -132
- package/dist/sender/types/slots.d.ts +0 -67
- package/dist/sender/utils/countGraphemes.d.ts +0 -1
- package/dist/sender-actions/action-button/index.vue.d.ts +0 -23
- package/dist/sender-actions/clear-button/index.vue.d.ts +0 -2
- package/dist/sender-actions/clear-button/useClearButtonState.d.ts +0 -6
- package/dist/sender-actions/default-actions/index.vue.d.ts +0 -17
- package/dist/sender-actions/index.d.ts +0 -21
- package/dist/sender-actions/index.type.d.ts +0 -7
- package/dist/sender-actions/submit-button/index.vue.d.ts +0 -2
- package/dist/sender-actions/types/common.d.ts +0 -40
- package/dist/sender-actions/types/index.d.ts +0 -5
- package/dist/sender-actions/types/tooltip.d.ts +0 -7
- package/dist/sender-actions/upload-button/index.type.d.ts +0 -57
- package/dist/sender-actions/upload-button/index.vue.d.ts +0 -16
- package/dist/sender-actions/utils/tooltip.d.ts +0 -8
- package/dist/sender-actions/voice-button/index.type.d.ts +0 -78
- package/dist/sender-actions/voice-button/index.vue.d.ts +0 -43
- package/dist/sender-actions/voice-button/speech.types.d.ts +0 -40
- package/dist/sender-actions/voice-button/useSpeechHandler.d.ts +0 -10
- package/dist/sender-actions/voice-button/webSpeechHandler.d.ts +0 -40
- package/dist/sender-actions/word-counter/index.vue.d.ts +0 -2
- package/dist/sender-compat/index.d.ts +0 -7
- package/dist/sender-compat/index.type.d.ts +0 -91
- package/dist/sender-compat/index.vue.d.ts +0 -532
- package/dist/shared/composables/createTeleport.d.ts +0 -2
- package/dist/shared/composables/index.d.ts +0 -5
- package/dist/shared/composables/useAutoScroll.d.ts +0 -25
- package/dist/shared/composables/useSlotRefs.d.ts +0 -12
- package/dist/shared/composables/useTeleportTarget.d.ts +0 -11
- package/dist/shared/composables/useTouchDevice.d.ts +0 -3
- package/dist/shared/utils.d.ts +0 -7
- package/dist/suggestion-pills/components/PillButton.vue.d.ts +0 -16
- package/dist/suggestion-pills/components/index.d.ts +0 -1
- package/dist/suggestion-pills/index.d.ts +0 -13
- package/dist/suggestion-pills/index.type.d.ts +0 -45
- package/dist/suggestion-pills/index.vue.d.ts +0 -44
- package/dist/suggestion-popover/components/Backdrop.vue.d.ts +0 -5
- package/dist/suggestion-popover/components/Header.vue.d.ts +0 -4
- package/dist/suggestion-popover/components/Loading.vue.d.ts +0 -17
- package/dist/suggestion-popover/components/NoData.vue.d.ts +0 -17
- package/dist/suggestion-popover/components/Tooltip.vue.d.ts +0 -19
- package/dist/suggestion-popover/index.d.ts +0 -7
- package/dist/suggestion-popover/index.type.d.ts +0 -80
- package/dist/suggestion-popover/index.vue.d.ts +0 -262
- package/dist/theme-provider/constants.d.ts +0 -6
- package/dist/theme-provider/index.d.ts +0 -9
- package/dist/theme-provider/index.type.d.ts +0 -18
- package/dist/theme-provider/index.vue.d.ts +0 -32
- package/dist/theme-provider/useTheme.d.ts +0 -11
- package/dist/useTheme.js +0 -22
- package/dist/welcome/index.d.ts +0 -7
- package/dist/welcome/index.type.d.ts +0 -10
- package/dist/welcome/index.vue.d.ts +0 -18
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { AnchorProps, AnchorSlots } from './index.type';
|
|
2
|
-
declare function __VLS_template(): {
|
|
3
|
-
attrs: Partial<{}>;
|
|
4
|
-
slots: Readonly<AnchorSlots> & AnchorSlots;
|
|
5
|
-
refs: {
|
|
6
|
-
overlayShellRef: ({
|
|
7
|
-
$: import('vue').ComponentInternalInstance;
|
|
8
|
-
$data: {};
|
|
9
|
-
$props: {
|
|
10
|
-
readonly expanded: boolean;
|
|
11
|
-
readonly placement: import('./index.type').AnchorPlacement;
|
|
12
|
-
readonly floatingOffset?: number | undefined;
|
|
13
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
14
|
-
$attrs: import('vue').Attrs;
|
|
15
|
-
$refs: {
|
|
16
|
-
[x: string]: unknown;
|
|
17
|
-
} & {
|
|
18
|
-
hostEl: HTMLDivElement;
|
|
19
|
-
overlayEl: HTMLDivElement;
|
|
20
|
-
navEl: HTMLElement;
|
|
21
|
-
};
|
|
22
|
-
$slots: Readonly<{
|
|
23
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
24
|
-
}>;
|
|
25
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
26
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
27
|
-
$host: Element | null;
|
|
28
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
29
|
-
$el: HTMLDivElement;
|
|
30
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('./internal.type').AnchorOverlayProps> & Readonly<{}>, {
|
|
31
|
-
hostEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
32
|
-
overlayEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
33
|
-
navEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
34
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
35
|
-
floatingOffset: number;
|
|
36
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
37
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
38
|
-
created?: (() => void) | (() => void)[];
|
|
39
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
40
|
-
mounted?: (() => void) | (() => void)[];
|
|
41
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
42
|
-
updated?: (() => void) | (() => void)[];
|
|
43
|
-
activated?: (() => void) | (() => void)[];
|
|
44
|
-
deactivated?: (() => void) | (() => void)[];
|
|
45
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
46
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
47
|
-
destroyed?: (() => void) | (() => void)[];
|
|
48
|
-
unmounted?: (() => void) | (() => void)[];
|
|
49
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
50
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
51
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
52
|
-
};
|
|
53
|
-
$forceUpdate: () => void;
|
|
54
|
-
$nextTick: typeof import('vue').nextTick;
|
|
55
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
56
|
-
} & Readonly<{
|
|
57
|
-
floatingOffset: number;
|
|
58
|
-
}> & Omit<Readonly<import('./internal.type').AnchorOverlayProps> & Readonly<{}>, "floatingOffset" | "hostEl" | "overlayEl" | "navEl"> & {
|
|
59
|
-
hostEl: HTMLElement | null;
|
|
60
|
-
overlayEl: HTMLElement | null;
|
|
61
|
-
navEl: HTMLElement | null;
|
|
62
|
-
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
63
|
-
$slots: {
|
|
64
|
-
search?(_: {}): any;
|
|
65
|
-
default?(_: {}): any;
|
|
66
|
-
};
|
|
67
|
-
}) | null;
|
|
68
|
-
};
|
|
69
|
-
rootEl: any;
|
|
70
|
-
};
|
|
71
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
72
|
-
declare const __VLS_component: import('vue').DefineComponent<AnchorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
73
|
-
select: (item: import('./index.type').AnchorItem) => any;
|
|
74
|
-
"update:searchQuery": (value: string) => any;
|
|
75
|
-
"update:activeId": (value: string | undefined) => any;
|
|
76
|
-
"update:expanded": (value: boolean) => any;
|
|
77
|
-
}, string, import('vue').PublicProps, Readonly<AnchorProps> & Readonly<{
|
|
78
|
-
onSelect?: ((item: import('./index.type').AnchorItem) => any) | undefined;
|
|
79
|
-
"onUpdate:searchQuery"?: ((value: string) => any) | undefined;
|
|
80
|
-
"onUpdate:activeId"?: ((value: string | undefined) => any) | undefined;
|
|
81
|
-
"onUpdate:expanded"?: ((value: boolean) => any) | undefined;
|
|
82
|
-
}>, {
|
|
83
|
-
placement: import('./index.type').AnchorPlacement;
|
|
84
|
-
tooltipDelay: number;
|
|
85
|
-
emptyText: string;
|
|
86
|
-
activeOffset: number;
|
|
87
|
-
expandTrigger: import('./index.type').AnchorExpandTrigger;
|
|
88
|
-
targetFeedbackDuration: number;
|
|
89
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
90
|
-
overlayShellRef: ({
|
|
91
|
-
$: import('vue').ComponentInternalInstance;
|
|
92
|
-
$data: {};
|
|
93
|
-
$props: {
|
|
94
|
-
readonly expanded: boolean;
|
|
95
|
-
readonly placement: import('./index.type').AnchorPlacement;
|
|
96
|
-
readonly floatingOffset?: number | undefined;
|
|
97
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
98
|
-
$attrs: import('vue').Attrs;
|
|
99
|
-
$refs: {
|
|
100
|
-
[x: string]: unknown;
|
|
101
|
-
} & {
|
|
102
|
-
hostEl: HTMLDivElement;
|
|
103
|
-
overlayEl: HTMLDivElement;
|
|
104
|
-
navEl: HTMLElement;
|
|
105
|
-
};
|
|
106
|
-
$slots: Readonly<{
|
|
107
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
108
|
-
}>;
|
|
109
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
110
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
111
|
-
$host: Element | null;
|
|
112
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
113
|
-
$el: HTMLDivElement;
|
|
114
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('./internal.type').AnchorOverlayProps> & Readonly<{}>, {
|
|
115
|
-
hostEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
116
|
-
overlayEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
117
|
-
navEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
118
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
119
|
-
floatingOffset: number;
|
|
120
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
121
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
122
|
-
created?: (() => void) | (() => void)[];
|
|
123
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
124
|
-
mounted?: (() => void) | (() => void)[];
|
|
125
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
126
|
-
updated?: (() => void) | (() => void)[];
|
|
127
|
-
activated?: (() => void) | (() => void)[];
|
|
128
|
-
deactivated?: (() => void) | (() => void)[];
|
|
129
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
130
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
131
|
-
destroyed?: (() => void) | (() => void)[];
|
|
132
|
-
unmounted?: (() => void) | (() => void)[];
|
|
133
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
134
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
135
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
136
|
-
};
|
|
137
|
-
$forceUpdate: () => void;
|
|
138
|
-
$nextTick: typeof import('vue').nextTick;
|
|
139
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
140
|
-
} & Readonly<{
|
|
141
|
-
floatingOffset: number;
|
|
142
|
-
}> & Omit<Readonly<import('./internal.type').AnchorOverlayProps> & Readonly<{}>, "floatingOffset" | "hostEl" | "overlayEl" | "navEl"> & {
|
|
143
|
-
hostEl: HTMLElement | null;
|
|
144
|
-
overlayEl: HTMLElement | null;
|
|
145
|
-
navEl: HTMLElement | null;
|
|
146
|
-
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
147
|
-
$slots: {
|
|
148
|
-
search?(_: {}): any;
|
|
149
|
-
default?(_: {}): any;
|
|
150
|
-
};
|
|
151
|
-
}) | null;
|
|
152
|
-
}, any>;
|
|
153
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
154
|
-
export default _default;
|
|
155
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
156
|
-
new (): {
|
|
157
|
-
$slots: S;
|
|
158
|
-
};
|
|
159
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { AnchorExpandTrigger, AnchorHighlightSegment, AnchorItem, AnchorPlacement, AnchorSearchOptions } from './index.type';
|
|
3
|
-
export interface AnchorFilteredItem {
|
|
4
|
-
item: AnchorItem;
|
|
5
|
-
segments: AnchorHighlightSegment[];
|
|
6
|
-
}
|
|
7
|
-
export interface AnchorItemSlotProps {
|
|
8
|
-
item: AnchorItem;
|
|
9
|
-
segments: AnchorFilteredItem['segments'];
|
|
10
|
-
active: boolean;
|
|
11
|
-
expanded: boolean;
|
|
12
|
-
highlighted: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface AnchorMarkerSlotProps {
|
|
15
|
-
item: AnchorItem;
|
|
16
|
-
active: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface AnchorSearchProps {
|
|
19
|
-
searchQuery: string;
|
|
20
|
-
searchOptions?: AnchorSearchOptions;
|
|
21
|
-
}
|
|
22
|
-
export interface AnchorSearchEmits {
|
|
23
|
-
'update:searchQuery': [value: string];
|
|
24
|
-
}
|
|
25
|
-
export interface AnchorOverlayProps {
|
|
26
|
-
expanded: boolean;
|
|
27
|
-
placement: AnchorPlacement;
|
|
28
|
-
floatingOffset?: number;
|
|
29
|
-
}
|
|
30
|
-
export interface AnchorOverlayExpose {
|
|
31
|
-
hostEl: HTMLElement | null;
|
|
32
|
-
overlayEl: HTMLElement | null;
|
|
33
|
-
navEl: HTMLElement | null;
|
|
34
|
-
}
|
|
35
|
-
export interface AnchorListProps {
|
|
36
|
-
items: AnchorFilteredItem[];
|
|
37
|
-
activeId?: string;
|
|
38
|
-
expanded: boolean;
|
|
39
|
-
highlightedIndex: number;
|
|
40
|
-
placement: AnchorPlacement;
|
|
41
|
-
tooltipDelay: number;
|
|
42
|
-
emptyText: string;
|
|
43
|
-
}
|
|
44
|
-
export interface AnchorListEmits {
|
|
45
|
-
select: [item: AnchorItem];
|
|
46
|
-
}
|
|
47
|
-
export interface AnchorListSlots {
|
|
48
|
-
item?: (slotProps: AnchorItemSlotProps) => unknown;
|
|
49
|
-
marker?: (slotProps: AnchorMarkerSlotProps) => unknown;
|
|
50
|
-
empty?: () => unknown;
|
|
51
|
-
}
|
|
52
|
-
export interface AnchorItemProps {
|
|
53
|
-
entry: AnchorFilteredItem;
|
|
54
|
-
activeId?: string;
|
|
55
|
-
expanded: boolean;
|
|
56
|
-
highlighted: boolean;
|
|
57
|
-
placement: AnchorPlacement;
|
|
58
|
-
tooltipDelay: number;
|
|
59
|
-
}
|
|
60
|
-
export interface AnchorItemEmits {
|
|
61
|
-
select: [item: AnchorItem];
|
|
62
|
-
}
|
|
63
|
-
export interface AnchorItemSlots {
|
|
64
|
-
item?: (slotProps: AnchorItemSlotProps) => unknown;
|
|
65
|
-
marker?: (slotProps: AnchorMarkerSlotProps) => unknown;
|
|
66
|
-
}
|
|
67
|
-
export interface AnchorActiveSyncOptions {
|
|
68
|
-
items: Ref<AnchorItem[]>;
|
|
69
|
-
resolveTarget: (id: string) => HTMLElement | null;
|
|
70
|
-
container: Ref<HTMLElement | null | undefined>;
|
|
71
|
-
host?: Ref<HTMLElement | null | undefined>;
|
|
72
|
-
activeId?: Ref<string | undefined>;
|
|
73
|
-
activeOffset?: Ref<number | undefined>;
|
|
74
|
-
onUpdateActiveId?: (value: string | undefined) => void;
|
|
75
|
-
}
|
|
76
|
-
export interface AnchorFloatingOffsetOptions {
|
|
77
|
-
container: Ref<HTMLElement | null | undefined>;
|
|
78
|
-
host: Ref<HTMLElement | null | undefined>;
|
|
79
|
-
}
|
|
80
|
-
export interface AnchorOverlayInteractionsOptions {
|
|
81
|
-
overlay: Ref<AnchorOverlayExpose | null>;
|
|
82
|
-
highlightedId: Ref<string | undefined>;
|
|
83
|
-
shouldAutoCollapse: Ref<boolean>;
|
|
84
|
-
handleNavigationKeydown: (event: KeyboardEvent) => boolean;
|
|
85
|
-
getHighlightedItem: () => AnchorItem | undefined;
|
|
86
|
-
onSelectItem: (itemId: string) => void;
|
|
87
|
-
setExpanded: (value: boolean) => void;
|
|
88
|
-
}
|
|
89
|
-
export interface AnchorControllerOptions {
|
|
90
|
-
items: Ref<AnchorItem[]>;
|
|
91
|
-
activeId: Ref<string | undefined>;
|
|
92
|
-
expanded: Ref<boolean | undefined>;
|
|
93
|
-
expandTrigger: Ref<AnchorExpandTrigger>;
|
|
94
|
-
searchQuery?: Ref<string | undefined>;
|
|
95
|
-
searchOptions?: Ref<AnchorSearchOptions | undefined>;
|
|
96
|
-
onUpdateExpanded?: (value: boolean) => void;
|
|
97
|
-
onUpdateSearchQuery?: (value: string) => void;
|
|
98
|
-
}
|
|
99
|
-
export interface AnchorTargetFeedbackOptions {
|
|
100
|
-
resolveTarget: (id: string) => HTMLElement | null;
|
|
101
|
-
feedbackClass: Ref<string | undefined>;
|
|
102
|
-
feedbackDuration: Ref<number | undefined>;
|
|
103
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type AnchorScrollRoot = HTMLElement | Window;
|
|
2
|
-
export declare function resolveAnchorScrollRoot(container: HTMLElement | null | undefined): AnchorScrollRoot | null;
|
|
3
|
-
export declare function getAnchorScrollTop(root: AnchorScrollRoot | null): number;
|
|
4
|
-
export declare function getAnchorClientHeight(root: AnchorScrollRoot | null): number;
|
|
5
|
-
export declare function getAnchorScrollHeight(root: AnchorScrollRoot | null): number;
|
|
6
|
-
export declare function getAnchorViewportTop(root: AnchorScrollRoot | null): number;
|
|
7
|
-
export declare function scrollAnchorTo(root: AnchorScrollRoot | null, top: number, behavior: ScrollBehavior): void;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const ANCHOR_TARGET_ATTRIBUTE = "data-anchor-id";
|
|
2
|
-
export declare const ANCHOR_TARGET_SELECTOR = "[data-anchor-id]";
|
|
3
|
-
export declare const ANCHOR_ITEM_ATTRIBUTE = "data-item-id";
|
|
4
|
-
export declare const ANCHOR_ITEM_SELECTOR = "[data-item-id]";
|
|
5
|
-
export declare function queryAnchorTargetById(root: ParentNode, id: string): HTMLElement | undefined;
|
|
6
|
-
export declare function queryAnchorItemById(root: ParentNode, id: string): HTMLElement | undefined;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FileCardProps } from '../index.type';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<FileCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
-
remove: (...args: any[]) => void;
|
|
4
|
-
download: (...args: any[]) => void;
|
|
5
|
-
retry: (...args: any[]) => void;
|
|
6
|
-
preview: (...args: any[]) => void;
|
|
7
|
-
action: (...args: any[]) => void;
|
|
8
|
-
}, string, import('vue').PublicProps, Readonly<FileCardProps> & Readonly<{
|
|
9
|
-
onRemove?: ((...args: any[]) => any) | undefined;
|
|
10
|
-
onDownload?: ((...args: any[]) => any) | undefined;
|
|
11
|
-
onRetry?: ((...args: any[]) => any) | undefined;
|
|
12
|
-
onPreview?: ((...args: any[]) => any) | undefined;
|
|
13
|
-
onAction?: ((...args: any[]) => any) | undefined;
|
|
14
|
-
}>, {
|
|
15
|
-
variant: "picture" | "card";
|
|
16
|
-
showStatus: boolean;
|
|
17
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Attachment } from '../index.type';
|
|
2
|
-
type Image = Pick<Attachment, 'id' | 'name' | 'url'>;
|
|
3
|
-
interface ImagePreviewProps {
|
|
4
|
-
images: Image[];
|
|
5
|
-
}
|
|
6
|
-
type __VLS_Props = ImagePreviewProps;
|
|
7
|
-
type __VLS_PublicProps = {
|
|
8
|
-
'currentIndex': number;
|
|
9
|
-
} & __VLS_Props;
|
|
10
|
-
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
-
close: (...args: any[]) => void;
|
|
12
|
-
"update:currentIndex": (value: number) => void;
|
|
13
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
15
|
-
"onUpdate:currentIndex"?: ((value: number) => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ActionButton, FileCardProps, FileCardEmits } from '../index.type';
|
|
2
|
-
/**
|
|
3
|
-
* 管理文件卡片交互逻辑
|
|
4
|
-
* @param props 组件属性
|
|
5
|
-
* @param emit 组件事件触发器
|
|
6
|
-
* @returns 交互处理器
|
|
7
|
-
*/
|
|
8
|
-
export declare function useFileCard(props: FileCardProps, emit: FileCardEmits): {
|
|
9
|
-
isImage: import('vue').ComputedRef<boolean>;
|
|
10
|
-
handlePreview: (event: MouseEvent) => void;
|
|
11
|
-
downloadFile: (event: MouseEvent) => void;
|
|
12
|
-
handleRemove: () => void;
|
|
13
|
-
handleRetry: () => void;
|
|
14
|
-
handleCustomAction: (action: ActionButton, event: MouseEvent) => void;
|
|
15
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Component, ComputedRef } from 'vue';
|
|
2
|
-
import { FileType, FileTypeMatcher, Attachment } from '../index.type';
|
|
3
|
-
interface UseFileTypeOptions {
|
|
4
|
-
/**
|
|
5
|
-
* 自定义图标
|
|
6
|
-
*/
|
|
7
|
-
customIcons?: Record<string, Component>;
|
|
8
|
-
/**
|
|
9
|
-
* 自定义文件类型匹配器
|
|
10
|
-
*/
|
|
11
|
-
fileMatchers?: FileTypeMatcher[];
|
|
12
|
-
}
|
|
13
|
-
export declare function useFileType(options?: UseFileTypeOptions): {
|
|
14
|
-
detectFileType: (file: File | string) => FileType;
|
|
15
|
-
generateID: () => string;
|
|
16
|
-
formatFileSize: (size: number) => string;
|
|
17
|
-
normalizeAttachments: (items: (Attachment | Partial<Attachment>)[]) => Attachment[];
|
|
18
|
-
getIconComponent: (fileType?: FileType) => ComputedRef<Component>;
|
|
19
|
-
};
|
|
20
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { Attachment, AttachmentListEmits } from '../index.type';
|
|
3
|
-
export interface ImagePreviewOptions {
|
|
4
|
-
/**
|
|
5
|
-
* 是否启用下载功能
|
|
6
|
-
*/
|
|
7
|
-
enableDownload?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* 自定义下载处理函数
|
|
10
|
-
*/
|
|
11
|
-
onDownload?: (event: MouseEvent, file: Attachment) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare function useImagePreview(fileList: Ref<Attachment[]>, emit: AttachmentListEmits, options?: ImagePreviewOptions): {
|
|
14
|
-
handlePreview: (event: MouseEvent, file: Attachment) => void;
|
|
15
|
-
renderPreview: () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
}> | null;
|
|
18
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { Attachment, DisplayVariant } from '../index.type';
|
|
3
|
-
/**
|
|
4
|
-
* 处理listType自动检测的组合函数
|
|
5
|
-
* @param fileList 文件列表的响应式引用
|
|
6
|
-
* @param specifiedListType 用户指定的listType
|
|
7
|
-
* @returns 实际使用的listType
|
|
8
|
-
*/
|
|
9
|
-
export declare function useListType(fileList: Ref<Attachment[]>, specifiedListType?: DisplayVariant): {
|
|
10
|
-
actualListType: import('vue').ComputedRef<"picture" | "card">;
|
|
11
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { Component } from 'vue';
|
|
2
|
-
export type BaseFileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
|
|
3
|
-
export type FileType = BaseFileType | string;
|
|
4
|
-
export type FileStatus = 'uploading' | 'success' | 'error';
|
|
5
|
-
export type DisplayVariant = 'picture' | 'card' | 'auto';
|
|
6
|
-
export interface FileTypeMatcher {
|
|
7
|
-
type: string;
|
|
8
|
-
matcher: (file: File | string) => boolean;
|
|
9
|
-
icon?: Component;
|
|
10
|
-
}
|
|
11
|
-
export interface BaseAttachment {
|
|
12
|
-
id?: string;
|
|
13
|
-
name?: string;
|
|
14
|
-
status?: FileStatus;
|
|
15
|
-
fileType?: FileType;
|
|
16
|
-
message?: string;
|
|
17
|
-
}
|
|
18
|
-
export interface UrlAttachment extends BaseAttachment {
|
|
19
|
-
url: string;
|
|
20
|
-
size?: number;
|
|
21
|
-
rawFile?: File;
|
|
22
|
-
}
|
|
23
|
-
export interface RawFileAttachment extends BaseAttachment {
|
|
24
|
-
rawFile: File;
|
|
25
|
-
url?: string;
|
|
26
|
-
size?: number;
|
|
27
|
-
}
|
|
28
|
-
export type Attachment = UrlAttachment | RawFileAttachment;
|
|
29
|
-
export interface ActionButton {
|
|
30
|
-
type: string;
|
|
31
|
-
label: string;
|
|
32
|
-
handler?: (file: Attachment) => void;
|
|
33
|
-
}
|
|
34
|
-
export interface AttachmentListProps {
|
|
35
|
-
items?: Attachment[];
|
|
36
|
-
disabled?: boolean;
|
|
37
|
-
wrap?: boolean;
|
|
38
|
-
fileIcons?: Record<string, Component>;
|
|
39
|
-
actions?: ActionButton[];
|
|
40
|
-
variant?: DisplayVariant;
|
|
41
|
-
fileMatchers?: FileTypeMatcher[];
|
|
42
|
-
}
|
|
43
|
-
export interface AttachmentListEmits {
|
|
44
|
-
(e: 'update:items', items: Attachment[]): void;
|
|
45
|
-
(e: 'remove', file: Attachment): void;
|
|
46
|
-
(e: 'download', event: MouseEvent, file: Attachment): void;
|
|
47
|
-
(e: 'retry', file: Attachment): void;
|
|
48
|
-
(e: 'preview', event: MouseEvent, file: Attachment): void;
|
|
49
|
-
(e: 'action', payload: {
|
|
50
|
-
action: ActionButton;
|
|
51
|
-
file: Attachment;
|
|
52
|
-
}): void;
|
|
53
|
-
}
|
|
54
|
-
type BaseCardProps = Pick<AttachmentListProps, 'fileIcons' | 'disabled' | 'actions' | 'fileMatchers'>;
|
|
55
|
-
export interface FileCardProps extends BaseCardProps {
|
|
56
|
-
file: Attachment;
|
|
57
|
-
variant: 'picture' | 'card';
|
|
58
|
-
showStatus?: boolean;
|
|
59
|
-
}
|
|
60
|
-
export interface FileCardEmits {
|
|
61
|
-
(e: 'remove', file: Attachment): void;
|
|
62
|
-
(e: 'preview', event: MouseEvent, file: Attachment): void;
|
|
63
|
-
(e: 'download', event: MouseEvent, file: Attachment): void;
|
|
64
|
-
(e: 'retry', file: Attachment): void;
|
|
65
|
-
(e: 'action', payload: {
|
|
66
|
-
action: ActionButton;
|
|
67
|
-
file: Attachment;
|
|
68
|
-
}): void;
|
|
69
|
-
}
|
|
70
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { AttachmentListProps, Attachment, ActionButton } from './index.type';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<AttachmentListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
-
"update:items": (items: Attachment[]) => any;
|
|
4
|
-
remove: (file: Attachment) => any;
|
|
5
|
-
download: (event: MouseEvent, file: Attachment) => any;
|
|
6
|
-
retry: (file: Attachment) => any;
|
|
7
|
-
preview: (event: MouseEvent, file: Attachment) => any;
|
|
8
|
-
action: (payload: {
|
|
9
|
-
action: ActionButton;
|
|
10
|
-
file: Attachment;
|
|
11
|
-
}) => any;
|
|
12
|
-
}, string, import('vue').PublicProps, Readonly<AttachmentListProps> & Readonly<{
|
|
13
|
-
"onUpdate:items"?: ((items: Attachment[]) => any) | undefined;
|
|
14
|
-
onRemove?: ((file: Attachment) => any) | undefined;
|
|
15
|
-
onDownload?: ((event: MouseEvent, file: Attachment) => any) | undefined;
|
|
16
|
-
onRetry?: ((file: Attachment) => any) | undefined;
|
|
17
|
-
onPreview?: ((event: MouseEvent, file: Attachment) => any) | undefined;
|
|
18
|
-
onAction?: ((payload: {
|
|
19
|
-
action: ActionButton;
|
|
20
|
-
file: Attachment;
|
|
21
|
-
}) => any) | undefined;
|
|
22
|
-
}>, {
|
|
23
|
-
actions: ActionButton[];
|
|
24
|
-
fileMatchers: import('./index.type').FileTypeMatcher[];
|
|
25
|
-
variant: import('./index.type').DisplayVariant;
|
|
26
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
27
|
-
export default _default;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { TransitionProps } from 'vue';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
show: boolean;
|
|
4
|
-
transitionProps?: TransitionProps;
|
|
5
|
-
};
|
|
6
|
-
declare function __VLS_template(): {
|
|
7
|
-
attrs: Partial<{}>;
|
|
8
|
-
slots: {
|
|
9
|
-
default?(_: {}): any;
|
|
10
|
-
};
|
|
11
|
-
refs: {
|
|
12
|
-
popperRef: HTMLDivElement;
|
|
13
|
-
};
|
|
14
|
-
rootEl: any;
|
|
15
|
-
};
|
|
16
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
18
|
-
popperRef: import('vue').Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
19
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
20
|
-
popperRef: HTMLDivElement;
|
|
21
|
-
}, any>;
|
|
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
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { TransitionProps, VNode } from 'vue';
|
|
2
|
-
type TriggerEvents = Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
appendTo?: string | HTMLElement;
|
|
5
|
-
offset?: number | {
|
|
6
|
-
mainAxis?: number;
|
|
7
|
-
crossAxis?: number;
|
|
8
|
-
};
|
|
9
|
-
placement?: 'top-center' | 'bottom-center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
10
|
-
preventOverflow?: boolean;
|
|
11
|
-
show?: boolean;
|
|
12
|
-
transitionProps?: TransitionProps;
|
|
13
|
-
triggerEvents?: TriggerEvents;
|
|
14
|
-
};
|
|
15
|
-
declare function __VLS_template(): {
|
|
16
|
-
attrs: Partial<{}>;
|
|
17
|
-
slots: Readonly<{
|
|
18
|
-
trigger?: () => VNode[];
|
|
19
|
-
content?: () => VNode[];
|
|
20
|
-
}> & {
|
|
21
|
-
trigger?: () => VNode[];
|
|
22
|
-
content?: () => VNode[];
|
|
23
|
-
};
|
|
24
|
-
refs: {};
|
|
25
|
-
rootEl: any;
|
|
26
|
-
};
|
|
27
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
28
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
29
|
-
triggerRef: import('vue').ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
30
|
-
popperRef: import('vue').ComputedRef<HTMLDivElement | null>;
|
|
31
|
-
update: () => void;
|
|
32
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
33
|
-
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
34
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
35
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
36
|
-
export default _default;
|
|
37
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
|
-
new (): {
|
|
39
|
-
$slots: S;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { BubbleMessage, BubbleProps, BubbleSlots } from './index.type';
|
|
2
|
-
declare function __VLS_template(): {
|
|
3
|
-
attrs: Partial<{}>;
|
|
4
|
-
slots: Readonly<BubbleSlots> & BubbleSlots;
|
|
5
|
-
refs: {
|
|
6
|
-
bubbleRef: HTMLDivElement;
|
|
7
|
-
};
|
|
8
|
-
rootEl: HTMLDivElement;
|
|
9
|
-
};
|
|
10
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<BubbleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
12
|
-
"state-change": (payload: {
|
|
13
|
-
key: string;
|
|
14
|
-
value: unknown;
|
|
15
|
-
messageIndex: number;
|
|
16
|
-
contentIndex: number;
|
|
17
|
-
}) => any;
|
|
18
|
-
}, string, import('vue').PublicProps, Readonly<BubbleProps> & Readonly<{
|
|
19
|
-
"onState-change"?: ((payload: {
|
|
20
|
-
key: string;
|
|
21
|
-
value: unknown;
|
|
22
|
-
messageIndex: number;
|
|
23
|
-
contentIndex: number;
|
|
24
|
-
}) => any) | undefined;
|
|
25
|
-
}>, {
|
|
26
|
-
placement: "start" | "end";
|
|
27
|
-
shape: "corner" | "rounded" | "none";
|
|
28
|
-
contentRenderMode: "single" | "split";
|
|
29
|
-
contentResolver: (message: BubbleMessage) => import('./index.type').ChatMessageContent | undefined;
|
|
30
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
31
|
-
bubbleRef: HTMLDivElement;
|
|
32
|
-
}, HTMLDivElement>;
|
|
33
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
|
-
export default _default;
|
|
35
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
-
new (): {
|
|
37
|
-
$slots: S;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BubbleMessage, BubbleProps } from './index.type';
|
|
2
|
-
type __VLS_Props = Pick<BubbleProps, 'role' | 'placement' | 'shape'> & {
|
|
3
|
-
messages: BubbleMessage[];
|
|
4
|
-
contentIndex?: number;
|
|
5
|
-
};
|
|
6
|
-
declare function __VLS_template(): {
|
|
7
|
-
attrs: Partial<{}>;
|
|
8
|
-
slots: {
|
|
9
|
-
default?(_: {}): any;
|
|
10
|
-
};
|
|
11
|
-
refs: {};
|
|
12
|
-
rootEl: any;
|
|
13
|
-
};
|
|
14
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
-
export default _default;
|
|
18
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
-
new (): {
|
|
20
|
-
$slots: S;
|
|
21
|
-
};
|
|
22
|
-
};
|