@opentiny/tiny-robot 0.5.1-alpha.1 → 0.5.1-alpha.14
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/attachments/index.js +261 -258
- package/dist/dropdown-menu/index.js +1 -1
- package/dist/extension-manager/index.js +473 -0
- package/dist/floating-ui.dom.js +970 -0
- package/dist/index.d.ts +5949 -51
- package/dist/index.js +116 -103
- package/dist/index4.js +2 -2
- package/dist/index6.js +441 -431
- package/dist/index8.js +87 -102
- package/dist/layout/index.js +1 -1
- package/dist/model-selector/index.js +1002 -0
- package/dist/sender/index.js +1232 -2114
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +1 -1
- package/dist/suggestion-popover/index.js +37 -36
- package/dist/theme-provider/index.js +41 -32
- package/dist/useSenderContentRegistration.js +8 -0
- package/dist/useSlotRefs.js +1 -1
- package/dist/useTeleportTarget.js +25 -0
- package/dist/utils.js +1 -1
- package/package.json +4 -23
- package/README.md +0 -192
- package/README.zh-CN.md +0 -192
- 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 -47
- package/dist/bubble/BubbleBoxWrapper.vue.d.ts +0 -22
- package/dist/bubble/BubbleContentWrapper.vue.d.ts +0 -22
- package/dist/bubble/BubbleItem.vue.d.ts +0 -44
- package/dist/bubble/BubbleList.vue.d.ts +0 -43
- package/dist/bubble/BubbleProvider.vue.d.ts +0 -18
- package/dist/bubble/composables/index.d.ts +0 -11
- package/dist/bubble/composables/useBubbleBoxRenderer.d.ts +0 -18
- package/dist/bubble/composables/useBubbleContentRenderer.d.ts +0 -18
- package/dist/bubble/composables/useBubbleEvent.d.ts +0 -3
- package/dist/bubble/composables/useBubbleStateChange.d.ts +0 -1
- 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 -185
- 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 -305
- 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 -6
- package/dist/chat/components/ChatWelcome.vue.d.ts +0 -14
- package/dist/chat/components/icons/IconModelAliyunBailian.vue.d.ts +0 -7
- package/dist/chat/components/icons/IconModelDeepseek.vue.d.ts +0 -7
- package/dist/chat/components/icons/index.d.ts +0 -5
- 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 -13904
- package/dist/chat/index.type.d.ts +0 -92
- package/dist/chat/index.vue.d.ts +0 -51
- package/dist/chat/locale.d.ts +0 -12
- package/dist/chat/mcpServers.d.ts +0 -3
- 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/layout/Layout.vue.d.ts +0 -246
- package/dist/layout/LayoutAsideToggle.vue.d.ts +0 -20
- package/dist/layout/LayoutProxyScrollbar.vue.d.ts +0 -6
- package/dist/layout/components/AsideContent.vue.d.ts +0 -35
- package/dist/layout/components/AsideResizeTrigger.vue.d.ts +0 -20
- package/dist/layout/components/FloatingDragBar.vue.d.ts +0 -18
- package/dist/layout/components/FloatingResizeTrigger.vue.d.ts +0 -17
- package/dist/layout/components/FloatingResizeTriggers.vue.d.ts +0 -14
- package/dist/layout/components/LayoutSurface.vue.d.ts +0 -41
- package/dist/layout/composables/useLayoutAsideStates.d.ts +0 -21
- package/dist/layout/composables/useLayoutContext.d.ts +0 -4
- package/dist/layout/composables/usePointerDrag.d.ts +0 -19
- package/dist/layout/index.d.ts +0 -22
- package/dist/layout/index.type.d.ts +0 -111
- package/dist/layout/internal.type.d.ts +0 -43
- package/dist/layout/utils/asideEventEmitters.d.ts +0 -6
- package/dist/layout/utils/asidePresets.d.ts +0 -5
- package/dist/layout/utils/cssLength.d.ts +0 -2
- package/dist/layout/utils/domInteraction.d.ts +0 -1
- package/dist/layout/utils/number.d.ts +0 -1
- package/dist/layout/utils/surfaceGeometry.d.ts +0 -87
- package/dist/layout/utils/surfaceResize.d.ts +0 -10
- 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 -139
- package/dist/sender/index.type.d.ts +0 -311
- package/dist/sender/index.vue.d.ts +0 -93
- 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 -138
- 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 -538
- package/dist/shared/composables/createTeleport.d.ts +0 -2
- package/dist/shared/composables/index.d.ts +0 -6
- package/dist/shared/composables/useAutoScroll.d.ts +0 -25
- package/dist/shared/composables/useControllableState.d.ts +0 -20
- 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,246 +0,0 @@
|
|
|
1
|
-
import { LayoutAsideOpenDetail, LayoutAsideResizeDetail, LayoutSlots, LayoutFloatingState } from './index.type';
|
|
2
|
-
declare function __VLS_template(): {
|
|
3
|
-
attrs: Partial<{}>;
|
|
4
|
-
slots: Readonly<LayoutSlots> & LayoutSlots;
|
|
5
|
-
refs: {
|
|
6
|
-
surfaceRef: ({
|
|
7
|
-
$: import('vue').ComponentInternalInstance;
|
|
8
|
-
$data: {};
|
|
9
|
-
$props: {
|
|
10
|
-
readonly mode: import('./index.type').LayoutMode;
|
|
11
|
-
readonly floatingState?: LayoutFloatingState | undefined;
|
|
12
|
-
readonly floatingOptions?: import('./index.type').LayoutFloatingOptions | undefined;
|
|
13
|
-
readonly "onUpdate:floatingState"?: ((value: LayoutFloatingState) => any) | undefined;
|
|
14
|
-
readonly "onFloating-drag-start"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
15
|
-
readonly "onFloating-drag"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
16
|
-
readonly "onFloating-drag-end"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
17
|
-
readonly "onFloating-resize-start"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
18
|
-
readonly "onFloating-resize"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
19
|
-
readonly "onFloating-resize-end"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
20
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
21
|
-
$attrs: import('vue').Attrs;
|
|
22
|
-
$refs: {
|
|
23
|
-
[x: string]: unknown;
|
|
24
|
-
} & {
|
|
25
|
-
rootEl: HTMLDivElement;
|
|
26
|
-
};
|
|
27
|
-
$slots: Readonly<{
|
|
28
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
29
|
-
}>;
|
|
30
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
31
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
32
|
-
$host: Element | null;
|
|
33
|
-
$emit: ((event: "update:floatingState", value: LayoutFloatingState) => void) & ((event: "floating-drag-start", detail: LayoutFloatingState) => void) & ((event: "floating-drag", detail: LayoutFloatingState) => void) & ((event: "floating-drag-end", detail: LayoutFloatingState) => void) & ((event: "floating-resize-start", detail: import('./index.type').LayoutFloatingResizeDetail) => void) & ((event: "floating-resize", detail: import('./index.type').LayoutFloatingResizeDetail) => void) & ((event: "floating-resize-end", detail: import('./index.type').LayoutFloatingResizeDetail) => void);
|
|
34
|
-
$el: any;
|
|
35
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('./internal.type').LayoutSurfaceProps> & Readonly<{
|
|
36
|
-
"onUpdate:floatingState"?: ((value: LayoutFloatingState) => any) | undefined;
|
|
37
|
-
"onFloating-drag-start"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
38
|
-
"onFloating-drag"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
39
|
-
"onFloating-drag-end"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
40
|
-
"onFloating-resize-start"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
41
|
-
"onFloating-resize"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
42
|
-
"onFloating-resize-end"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
43
|
-
}>, {
|
|
44
|
-
rootEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
45
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
46
|
-
"update:floatingState": (value: LayoutFloatingState) => any;
|
|
47
|
-
"floating-drag-start": (detail: LayoutFloatingState) => any;
|
|
48
|
-
"floating-drag": (detail: LayoutFloatingState) => any;
|
|
49
|
-
"floating-drag-end": (detail: LayoutFloatingState) => any;
|
|
50
|
-
"floating-resize-start": (detail: import('./index.type').LayoutFloatingResizeDetail) => any;
|
|
51
|
-
"floating-resize": (detail: import('./index.type').LayoutFloatingResizeDetail) => any;
|
|
52
|
-
"floating-resize-end": (detail: import('./index.type').LayoutFloatingResizeDetail) => any;
|
|
53
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
54
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
55
|
-
created?: (() => void) | (() => void)[];
|
|
56
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
57
|
-
mounted?: (() => void) | (() => void)[];
|
|
58
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
59
|
-
updated?: (() => void) | (() => void)[];
|
|
60
|
-
activated?: (() => void) | (() => void)[];
|
|
61
|
-
deactivated?: (() => void) | (() => void)[];
|
|
62
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
63
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
64
|
-
destroyed?: (() => void) | (() => void)[];
|
|
65
|
-
unmounted?: (() => void) | (() => void)[];
|
|
66
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
67
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
68
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
69
|
-
};
|
|
70
|
-
$forceUpdate: () => void;
|
|
71
|
-
$nextTick: typeof import('vue').nextTick;
|
|
72
|
-
$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;
|
|
73
|
-
} & Readonly<{}> & Omit<Readonly<import('./internal.type').LayoutSurfaceProps> & Readonly<{
|
|
74
|
-
"onUpdate:floatingState"?: ((value: LayoutFloatingState) => any) | undefined;
|
|
75
|
-
"onFloating-drag-start"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
76
|
-
"onFloating-drag"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
77
|
-
"onFloating-drag-end"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
78
|
-
"onFloating-resize-start"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
79
|
-
"onFloating-resize"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
80
|
-
"onFloating-resize-end"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
81
|
-
}>, "rootEl"> & {
|
|
82
|
-
rootEl: HTMLElement | null;
|
|
83
|
-
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
84
|
-
$slots: {
|
|
85
|
-
default?(_: {}): any;
|
|
86
|
-
};
|
|
87
|
-
}) | null;
|
|
88
|
-
};
|
|
89
|
-
rootEl: any;
|
|
90
|
-
};
|
|
91
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
92
|
-
declare const __VLS_component: import('vue').DefineComponent<import('./index.type').LayoutNormalProps | (import('./index.type').LayoutAsidePanelsProps & {
|
|
93
|
-
floatingState?: LayoutFloatingState;
|
|
94
|
-
defaultFloatingState?: never;
|
|
95
|
-
} & {
|
|
96
|
-
mode: "floating";
|
|
97
|
-
floatingOptions?: import('./index.type').LayoutFloatingOptions;
|
|
98
|
-
}) | (import('./index.type').LayoutAsidePanelsProps & {
|
|
99
|
-
floatingState?: never;
|
|
100
|
-
defaultFloatingState?: LayoutFloatingState;
|
|
101
|
-
} & {
|
|
102
|
-
mode: "floating";
|
|
103
|
-
floatingOptions?: import('./index.type').LayoutFloatingOptions;
|
|
104
|
-
}), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
105
|
-
"aside-resize-start": (detail: LayoutAsideResizeDetail) => any;
|
|
106
|
-
"aside-resize-end": (detail: LayoutAsideResizeDetail) => any;
|
|
107
|
-
"update:floatingState": (value: LayoutFloatingState) => any;
|
|
108
|
-
"floating-drag-start": (detail: LayoutFloatingState) => any;
|
|
109
|
-
"floating-drag": (detail: LayoutFloatingState) => any;
|
|
110
|
-
"floating-drag-end": (detail: LayoutFloatingState) => any;
|
|
111
|
-
"floating-resize-start": (detail: import('./index.type').LayoutFloatingResizeDetail) => any;
|
|
112
|
-
"floating-resize": (detail: import('./index.type').LayoutFloatingResizeDetail) => any;
|
|
113
|
-
"floating-resize-end": (detail: import('./index.type').LayoutFloatingResizeDetail) => any;
|
|
114
|
-
"aside-open-change": (detail: LayoutAsideOpenDetail) => any;
|
|
115
|
-
"aside-resize": (detail: LayoutAsideResizeDetail) => any;
|
|
116
|
-
"left-aside-open-change": (detail: import('./index.type').LayoutAsideOpenValue) => any;
|
|
117
|
-
"left-aside-resize-start": (detail: import('./index.type').LayoutAsideResizeValue) => any;
|
|
118
|
-
"left-aside-resize": (detail: import('./index.type').LayoutAsideResizeValue) => any;
|
|
119
|
-
"left-aside-resize-end": (detail: import('./index.type').LayoutAsideResizeValue) => any;
|
|
120
|
-
"right-aside-open-change": (detail: import('./index.type').LayoutAsideOpenValue) => any;
|
|
121
|
-
"right-aside-resize-start": (detail: import('./index.type').LayoutAsideResizeValue) => any;
|
|
122
|
-
"right-aside-resize": (detail: import('./index.type').LayoutAsideResizeValue) => any;
|
|
123
|
-
"right-aside-resize-end": (detail: import('./index.type').LayoutAsideResizeValue) => any;
|
|
124
|
-
}, string, import('vue').PublicProps, Readonly<import('./index.type').LayoutNormalProps | (import('./index.type').LayoutAsidePanelsProps & {
|
|
125
|
-
floatingState?: LayoutFloatingState;
|
|
126
|
-
defaultFloatingState?: never;
|
|
127
|
-
} & {
|
|
128
|
-
mode: "floating";
|
|
129
|
-
floatingOptions?: import('./index.type').LayoutFloatingOptions;
|
|
130
|
-
}) | (import('./index.type').LayoutAsidePanelsProps & {
|
|
131
|
-
floatingState?: never;
|
|
132
|
-
defaultFloatingState?: LayoutFloatingState;
|
|
133
|
-
} & {
|
|
134
|
-
mode: "floating";
|
|
135
|
-
floatingOptions?: import('./index.type').LayoutFloatingOptions;
|
|
136
|
-
})> & Readonly<{
|
|
137
|
-
"onAside-resize-start"?: ((detail: LayoutAsideResizeDetail) => any) | undefined;
|
|
138
|
-
"onAside-resize-end"?: ((detail: LayoutAsideResizeDetail) => any) | undefined;
|
|
139
|
-
"onUpdate:floatingState"?: ((value: LayoutFloatingState) => any) | undefined;
|
|
140
|
-
"onFloating-drag-start"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
141
|
-
"onFloating-drag"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
142
|
-
"onFloating-drag-end"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
143
|
-
"onFloating-resize-start"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
144
|
-
"onFloating-resize"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
145
|
-
"onFloating-resize-end"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
146
|
-
"onAside-open-change"?: ((detail: LayoutAsideOpenDetail) => any) | undefined;
|
|
147
|
-
"onAside-resize"?: ((detail: LayoutAsideResizeDetail) => any) | undefined;
|
|
148
|
-
"onLeft-aside-open-change"?: ((detail: import('./index.type').LayoutAsideOpenValue) => any) | undefined;
|
|
149
|
-
"onLeft-aside-resize-start"?: ((detail: import('./index.type').LayoutAsideResizeValue) => any) | undefined;
|
|
150
|
-
"onLeft-aside-resize"?: ((detail: import('./index.type').LayoutAsideResizeValue) => any) | undefined;
|
|
151
|
-
"onLeft-aside-resize-end"?: ((detail: import('./index.type').LayoutAsideResizeValue) => any) | undefined;
|
|
152
|
-
"onRight-aside-open-change"?: ((detail: import('./index.type').LayoutAsideOpenValue) => any) | undefined;
|
|
153
|
-
"onRight-aside-resize-start"?: ((detail: import('./index.type').LayoutAsideResizeValue) => any) | undefined;
|
|
154
|
-
"onRight-aside-resize"?: ((detail: import('./index.type').LayoutAsideResizeValue) => any) | undefined;
|
|
155
|
-
"onRight-aside-resize-end"?: ((detail: import('./index.type').LayoutAsideResizeValue) => any) | undefined;
|
|
156
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
157
|
-
surfaceRef: ({
|
|
158
|
-
$: import('vue').ComponentInternalInstance;
|
|
159
|
-
$data: {};
|
|
160
|
-
$props: {
|
|
161
|
-
readonly mode: import('./index.type').LayoutMode;
|
|
162
|
-
readonly floatingState?: LayoutFloatingState | undefined;
|
|
163
|
-
readonly floatingOptions?: import('./index.type').LayoutFloatingOptions | undefined;
|
|
164
|
-
readonly "onUpdate:floatingState"?: ((value: LayoutFloatingState) => any) | undefined;
|
|
165
|
-
readonly "onFloating-drag-start"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
166
|
-
readonly "onFloating-drag"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
167
|
-
readonly "onFloating-drag-end"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
168
|
-
readonly "onFloating-resize-start"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
169
|
-
readonly "onFloating-resize"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
170
|
-
readonly "onFloating-resize-end"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
171
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
172
|
-
$attrs: import('vue').Attrs;
|
|
173
|
-
$refs: {
|
|
174
|
-
[x: string]: unknown;
|
|
175
|
-
} & {
|
|
176
|
-
rootEl: HTMLDivElement;
|
|
177
|
-
};
|
|
178
|
-
$slots: Readonly<{
|
|
179
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
180
|
-
}>;
|
|
181
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
182
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
183
|
-
$host: Element | null;
|
|
184
|
-
$emit: ((event: "update:floatingState", value: LayoutFloatingState) => void) & ((event: "floating-drag-start", detail: LayoutFloatingState) => void) & ((event: "floating-drag", detail: LayoutFloatingState) => void) & ((event: "floating-drag-end", detail: LayoutFloatingState) => void) & ((event: "floating-resize-start", detail: import('./index.type').LayoutFloatingResizeDetail) => void) & ((event: "floating-resize", detail: import('./index.type').LayoutFloatingResizeDetail) => void) & ((event: "floating-resize-end", detail: import('./index.type').LayoutFloatingResizeDetail) => void);
|
|
185
|
-
$el: any;
|
|
186
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('./internal.type').LayoutSurfaceProps> & Readonly<{
|
|
187
|
-
"onUpdate:floatingState"?: ((value: LayoutFloatingState) => any) | undefined;
|
|
188
|
-
"onFloating-drag-start"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
189
|
-
"onFloating-drag"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
190
|
-
"onFloating-drag-end"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
191
|
-
"onFloating-resize-start"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
192
|
-
"onFloating-resize"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
193
|
-
"onFloating-resize-end"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
194
|
-
}>, {
|
|
195
|
-
rootEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
196
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
197
|
-
"update:floatingState": (value: LayoutFloatingState) => any;
|
|
198
|
-
"floating-drag-start": (detail: LayoutFloatingState) => any;
|
|
199
|
-
"floating-drag": (detail: LayoutFloatingState) => any;
|
|
200
|
-
"floating-drag-end": (detail: LayoutFloatingState) => any;
|
|
201
|
-
"floating-resize-start": (detail: import('./index.type').LayoutFloatingResizeDetail) => any;
|
|
202
|
-
"floating-resize": (detail: import('./index.type').LayoutFloatingResizeDetail) => any;
|
|
203
|
-
"floating-resize-end": (detail: import('./index.type').LayoutFloatingResizeDetail) => any;
|
|
204
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
205
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
206
|
-
created?: (() => void) | (() => void)[];
|
|
207
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
208
|
-
mounted?: (() => void) | (() => void)[];
|
|
209
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
210
|
-
updated?: (() => void) | (() => void)[];
|
|
211
|
-
activated?: (() => void) | (() => void)[];
|
|
212
|
-
deactivated?: (() => void) | (() => void)[];
|
|
213
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
214
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
215
|
-
destroyed?: (() => void) | (() => void)[];
|
|
216
|
-
unmounted?: (() => void) | (() => void)[];
|
|
217
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
218
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
219
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
220
|
-
};
|
|
221
|
-
$forceUpdate: () => void;
|
|
222
|
-
$nextTick: typeof import('vue').nextTick;
|
|
223
|
-
$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;
|
|
224
|
-
} & Readonly<{}> & Omit<Readonly<import('./internal.type').LayoutSurfaceProps> & Readonly<{
|
|
225
|
-
"onUpdate:floatingState"?: ((value: LayoutFloatingState) => any) | undefined;
|
|
226
|
-
"onFloating-drag-start"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
227
|
-
"onFloating-drag"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
228
|
-
"onFloating-drag-end"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
229
|
-
"onFloating-resize-start"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
230
|
-
"onFloating-resize"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
231
|
-
"onFloating-resize-end"?: ((detail: import('./index.type').LayoutFloatingResizeDetail) => any) | undefined;
|
|
232
|
-
}>, "rootEl"> & {
|
|
233
|
-
rootEl: HTMLElement | null;
|
|
234
|
-
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
235
|
-
$slots: {
|
|
236
|
-
default?(_: {}): any;
|
|
237
|
-
};
|
|
238
|
-
}) | null;
|
|
239
|
-
}, any>;
|
|
240
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
241
|
-
export default _default;
|
|
242
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
243
|
-
new (): {
|
|
244
|
-
$slots: S;
|
|
245
|
-
};
|
|
246
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { LayoutAsideToggleProps } from './index.type';
|
|
2
|
-
declare function __VLS_template(): {
|
|
3
|
-
attrs: Partial<{}>;
|
|
4
|
-
slots: {
|
|
5
|
-
default?(_: {
|
|
6
|
-
isOpen: boolean;
|
|
7
|
-
}): any;
|
|
8
|
-
};
|
|
9
|
-
refs: {};
|
|
10
|
-
rootEl: HTMLButtonElement;
|
|
11
|
-
};
|
|
12
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
-
declare const __VLS_component: import('vue').DefineComponent<LayoutAsideToggleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LayoutAsideToggleProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
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
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LayoutProxyScrollbarProps } from './index.type';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<LayoutProxyScrollbarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LayoutProxyScrollbarProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
3
|
-
scrollbarRef: HTMLDivElement;
|
|
4
|
-
thumbRef: HTMLDivElement;
|
|
5
|
-
}, any>;
|
|
6
|
-
export default _default;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { LayoutAsideResizeDetail } from '../index.type';
|
|
2
|
-
import { LayoutAsideState } from '../internal.type';
|
|
3
|
-
interface LayoutAsideContentProps {
|
|
4
|
-
panel: LayoutAsideState;
|
|
5
|
-
oppositeDockWidth: number;
|
|
6
|
-
}
|
|
7
|
-
declare function __VLS_template(): {
|
|
8
|
-
attrs: Partial<{}>;
|
|
9
|
-
slots: {
|
|
10
|
-
default?(_: {}): any;
|
|
11
|
-
};
|
|
12
|
-
refs: {
|
|
13
|
-
asideRef: HTMLElement;
|
|
14
|
-
};
|
|
15
|
-
rootEl: HTMLElement;
|
|
16
|
-
};
|
|
17
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
-
declare const __VLS_component: import('vue').DefineComponent<LayoutAsideContentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
19
|
-
"width-change": (value: number) => any;
|
|
20
|
-
"aside-resize-start": (value: LayoutAsideResizeDetail) => any;
|
|
21
|
-
"aside-resize-end": (value: LayoutAsideResizeDetail) => any;
|
|
22
|
-
}, string, import('vue').PublicProps, Readonly<LayoutAsideContentProps> & Readonly<{
|
|
23
|
-
"onWidth-change"?: ((value: number) => any) | undefined;
|
|
24
|
-
"onAside-resize-start"?: ((value: LayoutAsideResizeDetail) => any) | undefined;
|
|
25
|
-
"onAside-resize-end"?: ((value: LayoutAsideResizeDetail) => any) | undefined;
|
|
26
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
27
|
-
asideRef: HTMLElement;
|
|
28
|
-
}, HTMLElement>;
|
|
29
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
|
-
export default _default;
|
|
31
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
-
new (): {
|
|
33
|
-
$slots: S;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { LayoutAsideResizeDetail, LayoutSide } from '../index.type';
|
|
2
|
-
interface LayoutAsideResizeTriggerProps {
|
|
3
|
-
side: LayoutSide;
|
|
4
|
-
asideEl: HTMLElement | null;
|
|
5
|
-
minWidth: number;
|
|
6
|
-
maxWidth: number;
|
|
7
|
-
oppositeDockWidth: number;
|
|
8
|
-
}
|
|
9
|
-
declare const _default: import('vue').DefineComponent<LayoutAsideResizeTriggerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
-
"width-change": (value: number) => any;
|
|
11
|
-
"aside-resize-start": (value: LayoutAsideResizeDetail) => any;
|
|
12
|
-
"aside-resize-end": (value: LayoutAsideResizeDetail) => any;
|
|
13
|
-
}, string, import('vue').PublicProps, Readonly<LayoutAsideResizeTriggerProps> & Readonly<{
|
|
14
|
-
"onWidth-change"?: ((value: number) => any) | undefined;
|
|
15
|
-
"onAside-resize-start"?: ((value: LayoutAsideResizeDetail) => any) | undefined;
|
|
16
|
-
"onAside-resize-end"?: ((value: LayoutAsideResizeDetail) => any) | undefined;
|
|
17
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
18
|
-
triggerRef: HTMLDivElement;
|
|
19
|
-
}, HTMLDivElement>;
|
|
20
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { LayoutFloatingDragPosition } from '../internal.type';
|
|
2
|
-
interface FloatingDragBarProps {
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
canDrag: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: import('vue').DefineComponent<FloatingDragBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
-
drag: (value: LayoutFloatingDragPosition) => any;
|
|
9
|
-
"drag-start": (value: LayoutFloatingDragPosition) => any;
|
|
10
|
-
"drag-end": (value: LayoutFloatingDragPosition) => any;
|
|
11
|
-
}, string, import('vue').PublicProps, Readonly<FloatingDragBarProps> & Readonly<{
|
|
12
|
-
onDrag?: ((value: LayoutFloatingDragPosition) => any) | undefined;
|
|
13
|
-
"onDrag-start"?: ((value: LayoutFloatingDragPosition) => any) | undefined;
|
|
14
|
-
"onDrag-end"?: ((value: LayoutFloatingDragPosition) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
16
|
-
dragBarEl: HTMLDivElement;
|
|
17
|
-
}, HTMLDivElement>;
|
|
18
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { LayoutFloatingResizeHandle } from '../index.type';
|
|
2
|
-
interface FloatingResizeTriggerProps {
|
|
3
|
-
handle: LayoutFloatingResizeHandle;
|
|
4
|
-
active: boolean;
|
|
5
|
-
}
|
|
6
|
-
declare const _default: import('vue').DefineComponent<FloatingResizeTriggerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
-
resize: (handle: LayoutFloatingResizeHandle, deltaX: number, deltaY: number) => any;
|
|
8
|
-
"resize-start": (handle: LayoutFloatingResizeHandle) => any;
|
|
9
|
-
"resize-end": (handle: LayoutFloatingResizeHandle, deltaX: number, deltaY: number) => any;
|
|
10
|
-
}, string, import('vue').PublicProps, Readonly<FloatingResizeTriggerProps> & Readonly<{
|
|
11
|
-
onResize?: ((handle: LayoutFloatingResizeHandle, deltaX: number, deltaY: number) => any) | undefined;
|
|
12
|
-
"onResize-start"?: ((handle: LayoutFloatingResizeHandle) => any) | undefined;
|
|
13
|
-
"onResize-end"?: ((handle: LayoutFloatingResizeHandle, deltaX: number, deltaY: number) => any) | undefined;
|
|
14
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
15
|
-
triggerRef: HTMLDivElement;
|
|
16
|
-
}, HTMLDivElement>;
|
|
17
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { LayoutFloatingResizeHandle } from '../index.type';
|
|
2
|
-
interface FloatingResizeTriggersProps {
|
|
3
|
-
handles: LayoutFloatingResizeHandle[];
|
|
4
|
-
}
|
|
5
|
-
declare const _default: import('vue').DefineComponent<FloatingResizeTriggersProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
-
resize: (handle: LayoutFloatingResizeHandle, deltaX: number, deltaY: number) => any;
|
|
7
|
-
"resize-start": (handle: LayoutFloatingResizeHandle) => any;
|
|
8
|
-
"resize-end": (handle: LayoutFloatingResizeHandle, deltaX: number, deltaY: number) => any;
|
|
9
|
-
}, string, import('vue').PublicProps, Readonly<FloatingResizeTriggersProps> & Readonly<{
|
|
10
|
-
onResize?: ((handle: LayoutFloatingResizeHandle, deltaX: number, deltaY: number) => any) | undefined;
|
|
11
|
-
"onResize-start"?: ((handle: LayoutFloatingResizeHandle) => any) | undefined;
|
|
12
|
-
"onResize-end"?: ((handle: LayoutFloatingResizeHandle, deltaX: number, deltaY: number) => any) | undefined;
|
|
13
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
-
export default _default;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { LayoutFloatingResizeDetail, LayoutFloatingState } from '../index.type';
|
|
2
|
-
import { LayoutSurfaceProps } from '../internal.type';
|
|
3
|
-
declare function __VLS_template(): {
|
|
4
|
-
attrs: Partial<{}>;
|
|
5
|
-
slots: {
|
|
6
|
-
default?(_: {}): any;
|
|
7
|
-
};
|
|
8
|
-
refs: {
|
|
9
|
-
rootEl: HTMLDivElement;
|
|
10
|
-
};
|
|
11
|
-
rootEl: any;
|
|
12
|
-
};
|
|
13
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
-
declare const __VLS_component: import('vue').DefineComponent<LayoutSurfaceProps, {
|
|
15
|
-
rootEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
16
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
-
"update:floatingState": (value: LayoutFloatingState) => any;
|
|
18
|
-
"floating-drag-start": (detail: LayoutFloatingState) => any;
|
|
19
|
-
"floating-drag": (detail: LayoutFloatingState) => any;
|
|
20
|
-
"floating-drag-end": (detail: LayoutFloatingState) => any;
|
|
21
|
-
"floating-resize-start": (detail: LayoutFloatingResizeDetail) => any;
|
|
22
|
-
"floating-resize": (detail: LayoutFloatingResizeDetail) => any;
|
|
23
|
-
"floating-resize-end": (detail: LayoutFloatingResizeDetail) => any;
|
|
24
|
-
}, string, import('vue').PublicProps, Readonly<LayoutSurfaceProps> & Readonly<{
|
|
25
|
-
"onUpdate:floatingState"?: ((value: LayoutFloatingState) => any) | undefined;
|
|
26
|
-
"onFloating-drag-start"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
27
|
-
"onFloating-drag"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
28
|
-
"onFloating-drag-end"?: ((detail: LayoutFloatingState) => any) | undefined;
|
|
29
|
-
"onFloating-resize-start"?: ((detail: LayoutFloatingResizeDetail) => any) | undefined;
|
|
30
|
-
"onFloating-resize"?: ((detail: LayoutFloatingResizeDetail) => any) | undefined;
|
|
31
|
-
"onFloating-resize-end"?: ((detail: LayoutFloatingResizeDetail) => any) | undefined;
|
|
32
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
33
|
-
rootEl: HTMLDivElement;
|
|
34
|
-
}, 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,21 +0,0 @@
|
|
|
1
|
-
import { MaybeRefOrGetter } from '@vueuse/core';
|
|
2
|
-
import { LayoutAsideOpenDetail, LayoutAsideOptions, LayoutAsideResizeDetail, LayoutSide } from '../index.type';
|
|
3
|
-
import { LayoutAsideState } from '../internal.type';
|
|
4
|
-
interface UseLayoutAsideStateOptions {
|
|
5
|
-
side: LayoutSide;
|
|
6
|
-
config: MaybeRefOrGetter<LayoutAsideOptions | undefined>;
|
|
7
|
-
onOpenChange?: (detail: LayoutAsideOpenDetail) => void;
|
|
8
|
-
onExpandedWidthChange?: (detail: LayoutAsideResizeDetail) => void;
|
|
9
|
-
}
|
|
10
|
-
interface UseLayoutAsideStatesOptions {
|
|
11
|
-
leftConfig: MaybeRefOrGetter<LayoutAsideOptions | undefined>;
|
|
12
|
-
rightConfig: MaybeRefOrGetter<LayoutAsideOptions | undefined>;
|
|
13
|
-
onOpenChange?: (detail: LayoutAsideOpenDetail) => void;
|
|
14
|
-
onExpandedWidthChange?: (detail: LayoutAsideResizeDetail) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare function useLayoutAsideState(options: UseLayoutAsideStateOptions): LayoutAsideState;
|
|
17
|
-
export declare function useLayoutAsideStates(options: UseLayoutAsideStatesOptions): {
|
|
18
|
-
leftAsideState: LayoutAsideState;
|
|
19
|
-
rightAsideState: LayoutAsideState;
|
|
20
|
-
};
|
|
21
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { LayoutContext } from '../internal.type';
|
|
2
|
-
export declare function provideLayoutContext(context: LayoutContext): void;
|
|
3
|
-
export declare function useLayoutContext(): LayoutContext;
|
|
4
|
-
export declare function useLayoutAsideContext(side: 'left' | 'right'): import('../internal.type').LayoutAsideToggleContext;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { MaybeRefOrGetter } from '@vueuse/core';
|
|
2
|
-
import { ComputedRef } from 'vue';
|
|
3
|
-
export type PointerDragEndReason = 'pointerup' | 'pointercancel' | 'manual' | 'scope-dispose';
|
|
4
|
-
export interface PointerDragEndDetail {
|
|
5
|
-
reason: PointerDragEndReason;
|
|
6
|
-
event?: PointerEvent;
|
|
7
|
-
}
|
|
8
|
-
export interface UsePointerDragOptions<T> {
|
|
9
|
-
disabled?: MaybeRefOrGetter<boolean>;
|
|
10
|
-
buttons?: MaybeRefOrGetter<readonly number[]>;
|
|
11
|
-
onStart: (event: PointerEvent) => T | false | null | undefined;
|
|
12
|
-
onMove?: (context: T, event: PointerEvent) => void;
|
|
13
|
-
onEnd?: (context: T, detail: PointerDragEndDetail) => void;
|
|
14
|
-
}
|
|
15
|
-
export interface UsePointerDragReturn {
|
|
16
|
-
isDragging: ComputedRef<boolean>;
|
|
17
|
-
cancel: () => void;
|
|
18
|
-
}
|
|
19
|
-
export declare function usePointerDrag<T>(handle: MaybeRefOrGetter<HTMLElement | null | undefined>, options: UsePointerDragOptions<T>): UsePointerDragReturn;
|
package/dist/layout/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
2
|
-
import { default as LayoutComp } from './Layout.vue';
|
|
3
|
-
import { default as LayoutAsideToggleComp } from './LayoutAsideToggle.vue';
|
|
4
|
-
import { default as LayoutProxyScrollbarComp } from './LayoutProxyScrollbar.vue';
|
|
5
|
-
export * from './index.type';
|
|
6
|
-
declare const layoutProxyScrollbarInstall: <T>(app: App<T>) => void;
|
|
7
|
-
declare const LayoutProxyScrollbar: typeof LayoutProxyScrollbarComp & {
|
|
8
|
-
install: typeof layoutProxyScrollbarInstall;
|
|
9
|
-
};
|
|
10
|
-
declare const layoutAsideToggleInstall: <T>(app: App<T>) => void;
|
|
11
|
-
declare const LayoutAsideToggle: typeof LayoutAsideToggleComp & {
|
|
12
|
-
install: typeof layoutAsideToggleInstall;
|
|
13
|
-
};
|
|
14
|
-
declare const layoutInstall: <T>(app: App<T>) => void;
|
|
15
|
-
type LayoutCompound = typeof LayoutComp & {
|
|
16
|
-
install: typeof layoutInstall;
|
|
17
|
-
ProxyScrollbar: typeof LayoutProxyScrollbar;
|
|
18
|
-
AsideToggle: typeof LayoutAsideToggle;
|
|
19
|
-
};
|
|
20
|
-
declare const Layout: LayoutCompound;
|
|
21
|
-
export { Layout, LayoutProxyScrollbar, LayoutAsideToggle };
|
|
22
|
-
export default Layout;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { ComponentPublicInstance, VNode } from 'vue';
|
|
2
|
-
export type LayoutSide = 'left' | 'right';
|
|
3
|
-
export type LayoutAsideMode = 'dock' | 'drawer';
|
|
4
|
-
export type LayoutAsideCollapseEffect = 'overlay' | 'slide';
|
|
5
|
-
export type LayoutMode = 'normal' | 'floating';
|
|
6
|
-
export type LayoutFloatingPlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center';
|
|
7
|
-
export interface LayoutFloatingState {
|
|
8
|
-
placement: LayoutFloatingPlacement;
|
|
9
|
-
offsetX: number;
|
|
10
|
-
offsetY: number;
|
|
11
|
-
width: number;
|
|
12
|
-
height: number;
|
|
13
|
-
}
|
|
14
|
-
export interface LayoutFloatingOptions {
|
|
15
|
-
draggable?: boolean;
|
|
16
|
-
resizable?: boolean;
|
|
17
|
-
minWidth?: number;
|
|
18
|
-
maxWidth?: number;
|
|
19
|
-
minHeight?: number;
|
|
20
|
-
maxHeight?: number;
|
|
21
|
-
}
|
|
22
|
-
export type LayoutFloatingResizeHandle = 's' | 'e' | 'w' | 'ne' | 'nw' | 'se' | 'sw';
|
|
23
|
-
export interface LayoutAsideOpenDetail {
|
|
24
|
-
side: LayoutSide;
|
|
25
|
-
open: boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface LayoutAsideOpenValue {
|
|
28
|
-
open: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface LayoutAsideResizeDetail {
|
|
31
|
-
side: LayoutSide;
|
|
32
|
-
expandedWidth: number;
|
|
33
|
-
}
|
|
34
|
-
export interface LayoutAsideResizeValue {
|
|
35
|
-
expandedWidth: number;
|
|
36
|
-
}
|
|
37
|
-
export type LayoutFloatingDragDetail = LayoutFloatingState;
|
|
38
|
-
export type LayoutFloatingResizeDetail = LayoutFloatingState & {
|
|
39
|
-
handle: LayoutFloatingResizeHandle;
|
|
40
|
-
};
|
|
41
|
-
export interface LayoutAsideOptions {
|
|
42
|
-
mode?: LayoutAsideMode;
|
|
43
|
-
open?: boolean;
|
|
44
|
-
defaultOpen?: boolean;
|
|
45
|
-
expandedWidth?: number;
|
|
46
|
-
defaultExpandedWidth?: number;
|
|
47
|
-
minExpandedWidth?: number;
|
|
48
|
-
maxExpandedWidth?: number;
|
|
49
|
-
collapsedWidth?: number;
|
|
50
|
-
collapseEffect?: LayoutAsideCollapseEffect;
|
|
51
|
-
resizable?: boolean;
|
|
52
|
-
}
|
|
53
|
-
export interface LayoutAsidePanelsProps {
|
|
54
|
-
leftAside?: LayoutAsideOptions;
|
|
55
|
-
rightAside?: LayoutAsideOptions;
|
|
56
|
-
}
|
|
57
|
-
export interface LayoutNormalProps extends LayoutAsidePanelsProps {
|
|
58
|
-
mode: 'normal';
|
|
59
|
-
floatingState?: never;
|
|
60
|
-
defaultFloatingState?: never;
|
|
61
|
-
floatingOptions?: never;
|
|
62
|
-
}
|
|
63
|
-
type LayoutFloatingStateControlProps = {
|
|
64
|
-
floatingState?: LayoutFloatingState;
|
|
65
|
-
defaultFloatingState?: never;
|
|
66
|
-
} | {
|
|
67
|
-
floatingState?: never;
|
|
68
|
-
defaultFloatingState?: LayoutFloatingState;
|
|
69
|
-
};
|
|
70
|
-
export type LayoutFloatingProps = LayoutAsidePanelsProps & LayoutFloatingStateControlProps & {
|
|
71
|
-
mode: 'floating';
|
|
72
|
-
floatingOptions?: LayoutFloatingOptions;
|
|
73
|
-
};
|
|
74
|
-
export type LayoutProps = LayoutNormalProps | LayoutFloatingProps;
|
|
75
|
-
export type LayoutScrollTargetComponent = Pick<ComponentPublicInstance, '$el'>;
|
|
76
|
-
export type LayoutScrollTarget = HTMLElement | LayoutScrollTargetComponent | null | undefined;
|
|
77
|
-
export interface LayoutProxyScrollbarProps {
|
|
78
|
-
scrollTarget?: LayoutScrollTarget;
|
|
79
|
-
}
|
|
80
|
-
export interface LayoutAsideToggleProps {
|
|
81
|
-
side: LayoutSide;
|
|
82
|
-
}
|
|
83
|
-
export interface LayoutEmits {
|
|
84
|
-
'update:floatingState': [value: LayoutFloatingState];
|
|
85
|
-
'floating-drag-start': [detail: LayoutFloatingDragDetail];
|
|
86
|
-
'floating-drag': [detail: LayoutFloatingDragDetail];
|
|
87
|
-
'floating-drag-end': [detail: LayoutFloatingDragDetail];
|
|
88
|
-
'floating-resize-start': [detail: LayoutFloatingResizeDetail];
|
|
89
|
-
'floating-resize': [detail: LayoutFloatingResizeDetail];
|
|
90
|
-
'floating-resize-end': [detail: LayoutFloatingResizeDetail];
|
|
91
|
-
'aside-open-change': [detail: LayoutAsideOpenDetail];
|
|
92
|
-
'aside-resize-start': [detail: LayoutAsideResizeDetail];
|
|
93
|
-
'aside-resize': [detail: LayoutAsideResizeDetail];
|
|
94
|
-
'aside-resize-end': [detail: LayoutAsideResizeDetail];
|
|
95
|
-
'left-aside-open-change': [detail: LayoutAsideOpenValue];
|
|
96
|
-
'left-aside-resize-start': [detail: LayoutAsideResizeValue];
|
|
97
|
-
'left-aside-resize': [detail: LayoutAsideResizeValue];
|
|
98
|
-
'left-aside-resize-end': [detail: LayoutAsideResizeValue];
|
|
99
|
-
'right-aside-open-change': [detail: LayoutAsideOpenValue];
|
|
100
|
-
'right-aside-resize-start': [detail: LayoutAsideResizeValue];
|
|
101
|
-
'right-aside-resize': [detail: LayoutAsideResizeValue];
|
|
102
|
-
'right-aside-resize-end': [detail: LayoutAsideResizeValue];
|
|
103
|
-
}
|
|
104
|
-
export interface LayoutSlots {
|
|
105
|
-
'left-aside'?: () => VNode | VNode[];
|
|
106
|
-
header?: () => VNode | VNode[];
|
|
107
|
-
main?: () => VNode | VNode[];
|
|
108
|
-
footer?: () => VNode | VNode[];
|
|
109
|
-
'right-aside'?: () => VNode | VNode[];
|
|
110
|
-
}
|
|
111
|
-
export {};
|