@opentiny/tiny-robot 0.4.2-alpha.9 → 0.5.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-group/ActionGroup.vue.d.ts +26 -0
- package/dist/action-group/ActionGroupItem.vue.d.ts +18 -0
- package/dist/action-group/index.d.ts +12 -0
- package/dist/action-group/index.type.d.ts +17 -0
- package/dist/anchor/components/AnchorItem.vue.d.ts +24 -0
- package/dist/anchor/components/AnchorList.vue.d.ts +20 -0
- package/dist/anchor/components/AnchorOverlay.vue.d.ts +33 -0
- package/dist/anchor/components/AnchorSearch.vue.d.ts +7 -0
- package/dist/anchor/composables/index.d.ts +5 -0
- package/dist/anchor/composables/useActiveSync.d.ts +10 -0
- package/dist/anchor/composables/useFloatingOffset.d.ts +6 -0
- package/dist/anchor/composables/useNavController.d.ts +12 -0
- package/dist/anchor/composables/useOverlayInteractions.d.ts +6 -0
- package/dist/anchor/composables/useTargetFeedback.d.ts +5 -0
- package/dist/anchor/defaults.d.ts +16 -0
- package/dist/anchor/index.d.ts +7 -0
- package/dist/anchor/index.type.d.ts +60 -0
- package/dist/anchor/index.vue.d.ts +159 -0
- package/dist/anchor/internal.type.d.ts +103 -0
- package/dist/anchor/utils/scroll.d.ts +7 -0
- package/dist/anchor/utils/target.d.ts +6 -0
- package/dist/attachments/components/FileCard.vue.d.ts +18 -0
- package/dist/attachments/components/ImagePreview.vue.d.ts +17 -0
- package/dist/attachments/components/index.d.ts +2 -0
- package/dist/attachments/composables/index.d.ts +5 -0
- package/dist/attachments/composables/useFileCard.d.ts +15 -0
- package/dist/attachments/composables/useFileType.d.ts +20 -0
- package/dist/attachments/composables/useImagePreview.d.ts +18 -0
- package/dist/attachments/composables/useListType.d.ts +11 -0
- package/dist/attachments/index.d.ts +7 -0
- package/dist/attachments/index.type.d.ts +70 -0
- package/dist/attachments/index.vue.d.ts +27 -0
- package/dist/attachments/utils.d.ts +3 -0
- package/dist/base-popper/components/Popper.vue.d.ts +28 -0
- package/dist/base-popper/index.d.ts +2 -0
- package/dist/base-popper/index.vue.d.ts +41 -0
- package/dist/bubble/Bubble.vue.d.ts +47 -0
- package/dist/bubble/BubbleBoxWrapper.vue.d.ts +22 -0
- package/dist/bubble/BubbleContentWrapper.vue.d.ts +22 -0
- package/dist/bubble/BubbleItem.vue.d.ts +44 -0
- package/dist/bubble/BubbleList.vue.d.ts +43 -0
- package/dist/bubble/BubbleProvider.vue.d.ts +18 -0
- package/dist/bubble/composables/index.d.ts +11 -0
- package/dist/bubble/composables/useBubbleBoxRenderer.d.ts +18 -0
- package/dist/bubble/composables/useBubbleContentRenderer.d.ts +18 -0
- package/dist/bubble/composables/useBubbleEvent.d.ts +3 -0
- package/dist/bubble/composables/useBubbleStateChange.d.ts +1 -0
- package/dist/bubble/composables/useBubbleStore.d.ts +16 -0
- package/dist/bubble/composables/useContentResolver.d.ts +5 -0
- package/dist/bubble/composables/useCopyCleanup.d.ts +6 -0
- package/dist/bubble/composables/useMessageContent.d.ts +5 -0
- package/dist/bubble/composables/useMessageGroup.d.ts +4 -0
- package/dist/bubble/composables/useOmitMessageFields.d.ts +12 -0
- package/dist/bubble/composables/useToolCall.d.ts +25 -0
- package/dist/bubble/constants.d.ts +42 -0
- package/dist/bubble/index.d.ts +19 -0
- package/dist/bubble/index.type.d.ts +185 -0
- package/dist/bubble/renderers/Box.vue.d.ts +18 -0
- package/dist/bubble/renderers/Image.vue.d.ts +4 -0
- package/dist/bubble/renderers/Loading.vue.d.ts +4 -0
- package/dist/bubble/renderers/Markdown.vue.d.ts +4 -0
- package/dist/bubble/renderers/Reasoning.vue.d.ts +9 -0
- package/dist/bubble/renderers/Text.vue.d.ts +4 -0
- package/dist/bubble/renderers/Tool.vue.d.ts +14 -0
- package/dist/bubble/renderers/ToolRole.vue.d.ts +4 -0
- package/dist/bubble/renderers/Tools.vue.d.ts +4 -0
- package/dist/bubble/renderers/allRenderers.d.ts +93 -0
- package/dist/bubble/renderers/defaultRenderers.d.ts +27 -0
- package/dist/bubble/utils.d.ts +7 -0
- package/dist/chat/components/ChatConversation.vue.d.ts +305 -0
- package/dist/chat/components/ChatLauncherButton.vue.d.ts +12 -0
- package/dist/chat/components/ChatMcpTrigger.vue.d.ts +30 -0
- package/dist/chat/components/ChatThemeToggleButton.vue.d.ts +6 -0
- package/dist/chat/components/ChatWelcome.vue.d.ts +14 -0
- package/dist/chat/components/icons/IconModelAliyunBailian.vue.d.ts +7 -0
- package/dist/chat/components/icons/IconModelDeepseek.vue.d.ts +7 -0
- package/dist/chat/components/icons/index.d.ts +5 -0
- package/dist/chat/composables/useChatConversation.d.ts +37 -0
- package/dist/chat/composables/useChatMcp.d.ts +29 -0
- package/dist/chat/composables/useChatModel.d.ts +27 -0
- package/dist/chat/index.d.ts +9 -0
- package/dist/chat/index.js +13904 -0
- package/dist/chat/index.type.d.ts +92 -0
- package/dist/chat/index.vue.d.ts +51 -0
- package/dist/chat/locale.d.ts +12 -0
- package/dist/chat/mcpServers.d.ts +3 -0
- package/dist/container/index.d.ts +7 -0
- package/dist/container/index.type.d.ts +20 -0
- package/dist/container/index.vue.d.ts +32 -0
- package/dist/conversations/index.d.ts +7 -0
- package/dist/conversations/index.vue.d.ts +2 -0
- package/dist/drag-overlay/constants.d.ts +17 -0
- package/dist/drag-overlay/directives/vDropzone.d.ts +14 -0
- package/dist/drag-overlay/index.d.ts +7 -0
- package/dist/drag-overlay/index.type.d.ts +105 -0
- package/dist/drag-overlay/index.vue.d.ts +20 -0
- package/dist/dropdown-menu/composables/usePopperHover.d.ts +6 -0
- package/dist/dropdown-menu/index.d.ts +7 -0
- package/dist/dropdown-menu/index.type.d.ts +42 -0
- package/dist/dropdown-menu/index.vue.d.ts +217 -0
- package/dist/feedback/components/SourceList.vue.d.ts +11 -0
- package/dist/feedback/components/index.d.ts +1 -0
- package/dist/feedback/index.d.ts +7 -0
- package/dist/feedback/index.type.d.ts +25 -0
- package/dist/feedback/index.vue.d.ts +13 -0
- package/dist/flow-layout-buttons/index.d.ts +7 -0
- package/dist/flow-layout-buttons/index.type.d.ts +35 -0
- package/dist/flow-layout-buttons/index.vue.d.ts +22 -0
- package/dist/history/components/Empty.vue.d.ts +7 -0
- package/dist/history/components/MenuList.vue.d.ts +24 -0
- package/dist/history/composables/useRenameEditor.d.ts +22 -0
- package/dist/history/constants.d.ts +1 -0
- package/dist/history/index.d.ts +7 -0
- package/dist/history/index.type.d.ts +33 -0
- package/dist/history/index.vue.d.ts +18 -0
- package/dist/icon-button/index.d.ts +7 -0
- package/dist/icon-button/index.type.d.ts +7 -0
- package/dist/icon-button/index.vue.d.ts +6 -0
- package/dist/index.d.ts +51 -5239
- package/dist/index.js +1 -1
- package/dist/index2.js +12 -12
- package/dist/index7.js +21 -24
- package/dist/layout/Layout.vue.d.ts +246 -0
- package/dist/layout/LayoutAsideToggle.vue.d.ts +20 -0
- package/dist/layout/LayoutProxyScrollbar.vue.d.ts +6 -0
- package/dist/layout/components/AsideContent.vue.d.ts +35 -0
- package/dist/layout/components/AsideResizeTrigger.vue.d.ts +20 -0
- package/dist/layout/components/FloatingDragBar.vue.d.ts +18 -0
- package/dist/layout/components/FloatingResizeTrigger.vue.d.ts +17 -0
- package/dist/layout/components/FloatingResizeTriggers.vue.d.ts +14 -0
- package/dist/layout/components/LayoutSurface.vue.d.ts +41 -0
- package/dist/layout/composables/useLayoutAsideStates.d.ts +21 -0
- package/dist/layout/composables/useLayoutContext.d.ts +4 -0
- package/dist/layout/composables/usePointerDrag.d.ts +19 -0
- package/dist/layout/index.d.ts +22 -0
- package/dist/layout/index.js +495 -504
- package/dist/layout/index.type.d.ts +111 -0
- package/dist/layout/internal.type.d.ts +43 -0
- package/dist/layout/utils/asideEventEmitters.d.ts +6 -0
- package/dist/layout/utils/asidePresets.d.ts +5 -0
- package/dist/layout/utils/cssLength.d.ts +2 -0
- package/dist/layout/utils/domInteraction.d.ts +1 -0
- package/dist/layout/utils/number.d.ts +1 -0
- package/dist/layout/utils/surfaceGeometry.d.ts +87 -0
- package/dist/layout/utils/surfaceResize.d.ts +10 -0
- package/dist/mcp-add-form/components/CodeEditor.vue.d.ts +9 -0
- package/dist/mcp-add-form/components/FormEditor.vue.d.ts +10 -0
- package/dist/mcp-add-form/components/index.d.ts +2 -0
- package/dist/mcp-add-form/index.d.ts +7 -0
- package/dist/mcp-add-form/index.type.d.ts +19 -0
- package/dist/mcp-add-form/index.vue.d.ts +13 -0
- package/dist/mcp-server-picker/components/NoData.vue.d.ts +7 -0
- package/dist/mcp-server-picker/components/PluginCard.vue.d.ts +40 -0
- package/dist/mcp-server-picker/components/PluginModal.vue.d.ts +15 -0
- package/dist/mcp-server-picker/components/index.d.ts +3 -0
- package/dist/mcp-server-picker/index.d.ts +7 -0
- package/dist/mcp-server-picker/index.type.d.ts +99 -0
- package/dist/mcp-server-picker/index.vue.d.ts +71 -0
- package/dist/prompts/index.d.ts +12 -0
- package/dist/prompts/index.type.d.ts +59 -0
- package/dist/prompts/prompt.vue.d.ts +5 -0
- package/dist/prompts/prompts.vue.d.ts +20 -0
- package/dist/sender/components/editor-content/index.vue.d.ts +4 -0
- package/dist/sender/components/footer/index.vue.d.ts +38 -0
- package/dist/sender/components/layouts/MultiLineLayout.vue.d.ts +43 -0
- package/dist/sender/components/layouts/SingleLineLayout.vue.d.ts +32 -0
- package/dist/sender/composables/index.d.ts +7 -0
- package/dist/sender/composables/useAutoSize.d.ts +5 -0
- package/dist/sender/composables/useEditor.d.ts +13 -0
- package/dist/sender/composables/useKeyboardShortcuts.d.ts +7 -0
- package/dist/sender/composables/useModeSwitch.d.ts +4 -0
- package/dist/sender/composables/useSenderCore.d.ts +31 -0
- package/dist/sender/composables/useSlotScope.d.ts +10 -0
- package/dist/sender/context/index.d.ts +6 -0
- package/dist/sender/context/types.d.ts +7 -0
- package/dist/sender/extensions/constants.d.ts +94 -0
- package/dist/sender/extensions/index.d.ts +12 -0
- package/dist/sender/extensions/mention/commands.d.ts +20 -0
- package/dist/sender/extensions/mention/components/mention-list.vue.d.ts +18 -0
- package/dist/sender/extensions/mention/components/mention-view.vue.d.ts +19 -0
- package/dist/sender/extensions/mention/extension.d.ts +6 -0
- package/dist/sender/extensions/mention/index.d.ts +22 -0
- package/dist/sender/extensions/mention/plugin.d.ts +16 -0
- package/dist/sender/extensions/mention/types.d.ts +126 -0
- package/dist/sender/extensions/mention/utils.d.ts +34 -0
- package/dist/sender/extensions/suggestion/extension.d.ts +8 -0
- package/dist/sender/extensions/suggestion/index.d.ts +20 -0
- package/dist/sender/extensions/suggestion/plugin.d.ts +21 -0
- package/dist/sender/extensions/suggestion/suggestion-list.vue.d.ts +46 -0
- package/dist/sender/extensions/suggestion/types.d.ts +254 -0
- package/dist/sender/extensions/suggestion/utils/filter.d.ts +29 -0
- package/dist/sender/extensions/suggestion/utils/highlight.d.ts +73 -0
- package/dist/sender/extensions/template/block/extension.d.ts +6 -0
- package/dist/sender/extensions/template/block/plugins.d.ts +13 -0
- package/dist/sender/extensions/template/block/template-block-view.vue.d.ts +14 -0
- package/dist/sender/extensions/template/commands.d.ts +31 -0
- package/dist/sender/extensions/template/extension.d.ts +6 -0
- package/dist/sender/extensions/template/index.d.ts +21 -0
- package/dist/sender/extensions/template/select/dropdown-manager.d.ts +23 -0
- package/dist/sender/extensions/template/select/extension.d.ts +5 -0
- package/dist/sender/extensions/template/select/plugins.d.ts +34 -0
- package/dist/sender/extensions/template/select/template-select-view.vue.d.ts +20 -0
- package/dist/sender/extensions/template/types.d.ts +100 -0
- package/dist/sender/extensions/template/utils.d.ts +20 -0
- package/dist/sender/extensions/utils/id-generator.d.ts +16 -0
- package/dist/sender/extensions/utils/index.d.ts +7 -0
- package/dist/sender/extensions/utils/keyboard.d.ts +49 -0
- package/dist/sender/extensions/utils/position.d.ts +25 -0
- package/dist/sender/index.d.ts +139 -0
- package/dist/sender/index.js +1031 -1053
- package/dist/sender/index.type.d.ts +311 -0
- package/dist/sender/index.vue.d.ts +93 -0
- package/dist/sender/types/base.d.ts +239 -0
- package/dist/sender/types/components.d.ts +68 -0
- package/dist/sender/types/composables.d.ts +122 -0
- package/dist/sender/types/context.d.ts +138 -0
- package/dist/sender/types/slots.d.ts +67 -0
- package/dist/sender/utils/countGraphemes.d.ts +1 -0
- package/dist/sender-actions/action-button/index.vue.d.ts +23 -0
- package/dist/sender-actions/clear-button/index.vue.d.ts +2 -0
- package/dist/sender-actions/clear-button/useClearButtonState.d.ts +6 -0
- package/dist/sender-actions/default-actions/index.vue.d.ts +17 -0
- package/dist/sender-actions/index.d.ts +21 -0
- package/dist/sender-actions/index.type.d.ts +7 -0
- package/dist/sender-actions/submit-button/index.vue.d.ts +2 -0
- package/dist/sender-actions/types/common.d.ts +40 -0
- package/dist/sender-actions/types/index.d.ts +5 -0
- package/dist/sender-actions/types/tooltip.d.ts +7 -0
- package/dist/sender-actions/upload-button/index.type.d.ts +57 -0
- package/dist/sender-actions/upload-button/index.vue.d.ts +16 -0
- package/dist/sender-actions/utils/tooltip.d.ts +8 -0
- package/dist/sender-actions/voice-button/index.type.d.ts +78 -0
- package/dist/sender-actions/voice-button/index.vue.d.ts +43 -0
- package/dist/sender-actions/voice-button/speech.types.d.ts +40 -0
- package/dist/sender-actions/voice-button/useSpeechHandler.d.ts +10 -0
- package/dist/sender-actions/voice-button/webSpeechHandler.d.ts +40 -0
- package/dist/sender-actions/word-counter/index.vue.d.ts +2 -0
- package/dist/sender-compat/index.d.ts +7 -0
- package/dist/sender-compat/index.js +38 -38
- package/dist/sender-compat/index.type.d.ts +91 -0
- package/dist/sender-compat/index.vue.d.ts +538 -0
- package/dist/shared/composables/createTeleport.d.ts +2 -0
- package/dist/shared/composables/index.d.ts +6 -0
- package/dist/shared/composables/useAutoScroll.d.ts +25 -0
- package/dist/shared/composables/useControllableState.d.ts +20 -0
- package/dist/shared/composables/useSlotRefs.d.ts +12 -0
- package/dist/shared/composables/useTeleportTarget.d.ts +11 -0
- package/dist/shared/composables/useTouchDevice.d.ts +3 -0
- package/dist/shared/utils.d.ts +7 -0
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/components/PillButton.vue.d.ts +16 -0
- package/dist/suggestion-pills/components/index.d.ts +1 -0
- package/dist/suggestion-pills/index.d.ts +13 -0
- package/dist/suggestion-pills/index.type.d.ts +45 -0
- package/dist/suggestion-pills/index.vue.d.ts +44 -0
- package/dist/suggestion-popover/components/Backdrop.vue.d.ts +5 -0
- package/dist/suggestion-popover/components/Header.vue.d.ts +4 -0
- package/dist/suggestion-popover/components/Loading.vue.d.ts +17 -0
- package/dist/suggestion-popover/components/NoData.vue.d.ts +17 -0
- package/dist/suggestion-popover/components/Tooltip.vue.d.ts +19 -0
- package/dist/suggestion-popover/index.d.ts +7 -0
- package/dist/suggestion-popover/index.js +2 -4
- package/dist/suggestion-popover/index.type.d.ts +80 -0
- package/dist/suggestion-popover/index.vue.d.ts +262 -0
- package/dist/theme-provider/constants.d.ts +6 -0
- package/dist/theme-provider/index.d.ts +9 -0
- package/dist/theme-provider/index.js +32 -41
- package/dist/theme-provider/index.type.d.ts +18 -0
- package/dist/theme-provider/index.vue.d.ts +32 -0
- package/dist/theme-provider/useTheme.d.ts +11 -0
- package/dist/useTheme.js +22 -0
- package/dist/welcome/index.d.ts +7 -0
- package/dist/welcome/index.type.d.ts +10 -0
- package/dist/welcome/index.vue.d.ts +18 -0
- package/package.json +22 -3
package/dist/index.js
CHANGED
|
@@ -17,10 +17,10 @@ import w from "./sender-compat/index.js";
|
|
|
17
17
|
import k, { SuggestionPillButton as N } from "./suggestion-pills/index.js";
|
|
18
18
|
import V from "./suggestion-popover/index.js";
|
|
19
19
|
import I from "./theme-provider/index.js";
|
|
20
|
-
import { useTheme as Ie } from "./theme-provider/index.js";
|
|
21
20
|
import U from "./welcome/index.js";
|
|
22
21
|
import K from "./mcp-server-picker/index.js";
|
|
23
22
|
import X from "./mcp-add-form/index.js";
|
|
23
|
+
import { u as Ie } from "./useTheme.js";
|
|
24
24
|
import { A as Y, S as q, _ as G, W as J, D as Q } from "./index2.js";
|
|
25
25
|
import { a as Ke, u as Xe } from "./index2.js";
|
|
26
26
|
import { _ as Z, V as ee } from "./index3.js";
|
package/dist/index2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { inject as R, isVNode as V, h as F, defineComponent as y, computed as l, openBlock as i, createBlock as f, unref as o, withCtx as S, createElementVNode as k, normalizeStyle as I, normalizeClass as v, renderSlot as B, resolveDynamicComponent as P, createElementBlock as b, createVNode as x, toDisplayString as T, createCommentVNode as h, useSlots as W, Transition as $ } from "vue";
|
|
2
2
|
import { _ as w } from "./_plugin-vue_export-helper.js";
|
|
3
|
-
import { IconSend as
|
|
4
|
-
import { TinyTooltip as
|
|
3
|
+
import { IconSend as E, IconStop as j, IconClose as U } from "@opentiny/tiny-robot-svgs";
|
|
4
|
+
import { TinyTooltip as z } from "@opentiny/vue";
|
|
5
5
|
import { t as G } from "./utils.js";
|
|
6
6
|
const K = Symbol("sender-context");
|
|
7
7
|
function C() {
|
|
@@ -11,16 +11,16 @@ function C() {
|
|
|
11
11
|
return t;
|
|
12
12
|
}
|
|
13
13
|
const A = "tr-sender-tooltip-inner";
|
|
14
|
-
function
|
|
15
|
-
return t ? typeof t == "string" ? t.split(/\s+/).includes(A) : Array.isArray(t) ? t.some(
|
|
14
|
+
function D(t) {
|
|
15
|
+
return t ? typeof t == "string" ? t.split(/\s+/).includes(A) : Array.isArray(t) ? t.some(D) : typeof t == "object" ? !!t[A] : !1 : !1;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function N(t) {
|
|
18
18
|
var e;
|
|
19
|
-
return V(t) &&
|
|
19
|
+
return V(t) && D((e = t.props) == null ? void 0 : e.class) ? t : F("div", { class: A }, t);
|
|
20
20
|
}
|
|
21
21
|
function O(t) {
|
|
22
22
|
if (t)
|
|
23
|
-
return typeof t == "string" ? () =>
|
|
23
|
+
return typeof t == "string" ? () => N(t) : () => N(t());
|
|
24
24
|
}
|
|
25
25
|
const M = ["disabled"], X = ["disabled"], Y = /* @__PURE__ */ y({
|
|
26
26
|
__name: "index",
|
|
@@ -43,7 +43,7 @@ const M = ["disabled"], X = ["disabled"], Y = /* @__PURE__ */ y({
|
|
|
43
43
|
} : {
|
|
44
44
|
"--tr-action-button-size": G(s)
|
|
45
45
|
}, c = l(() => e.size ? d(e.size) : {});
|
|
46
|
-
return (s, u) => e.tooltip ? (i(), f(o(
|
|
46
|
+
return (s, u) => e.tooltip ? (i(), f(o(z), {
|
|
47
47
|
key: 0,
|
|
48
48
|
"render-content": a.value,
|
|
49
49
|
placement: e.tooltipPlacement,
|
|
@@ -93,7 +93,7 @@ const M = ["disabled"], X = ["disabled"], Y = /* @__PURE__ */ y({
|
|
|
93
93
|
}), g = () => {
|
|
94
94
|
u.value || (n.value ? c() : d());
|
|
95
95
|
};
|
|
96
|
-
return (_, m) => r.value && !o(n) ? (i(), f(o(
|
|
96
|
+
return (_, m) => r.value && !o(n) ? (i(), f(o(z), {
|
|
97
97
|
key: 0,
|
|
98
98
|
"render-content": r.value,
|
|
99
99
|
placement: p.value,
|
|
@@ -112,7 +112,7 @@ const M = ["disabled"], X = ["disabled"], Y = /* @__PURE__ */ y({
|
|
|
112
112
|
]),
|
|
113
113
|
onClick: g
|
|
114
114
|
}, [
|
|
115
|
-
x(o(
|
|
115
|
+
x(o(E), { class: "tr-sender-submit-button__icon" })
|
|
116
116
|
], 2)
|
|
117
117
|
]),
|
|
118
118
|
_: 1
|
|
@@ -133,14 +133,14 @@ const M = ["disabled"], X = ["disabled"], Y = /* @__PURE__ */ y({
|
|
|
133
133
|
}, [
|
|
134
134
|
x(o(j), { class: "tr-sender-submit-button__cancel-icon" }),
|
|
135
135
|
o(s) ? (i(), b("span", q, T(o(s)), 1)) : h("", !0)
|
|
136
|
-
], 2)) : (i(), f(o(
|
|
136
|
+
], 2)) : (i(), f(o(E), {
|
|
137
137
|
key: 0,
|
|
138
138
|
class: "tr-sender-submit-button__icon"
|
|
139
139
|
}))
|
|
140
140
|
], 2));
|
|
141
141
|
}
|
|
142
142
|
}), J = /* @__PURE__ */ w(H, [["__scopeId", "data-v-a58e69fe"]]), L = () => {
|
|
143
|
-
const {
|
|
143
|
+
const { hasEditorContent: t, clearable: e, loading: n, defaultActions: a } = C(), d = l(() => {
|
|
144
144
|
var r, p;
|
|
145
145
|
return ((p = (r = a.value) == null ? void 0 : r.clear) == null ? void 0 : p.disabled) !== void 0 ? a.value.clear.disabled : !1;
|
|
146
146
|
}), c = l(() => {
|
package/dist/index7.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { onMounted as ne, onBeforeUnmount as oe, ref as
|
|
1
|
+
import { onMounted as ne, onBeforeUnmount as oe, ref as y, defineComponent as P, openBlock as l, createElementBlock as u, createElementVNode as w, createVNode as T, unref as n, toDisplayString as B, useModel as W, computed as I, normalizeStyle as ie, Fragment as S, renderList as V, createBlock as H, resolveDynamicComponent as Y, mergeModels as j, nextTick as se, normalizeClass as U, createCommentVNode as G, renderSlot as q, withDirectives as A, withKeys as F, isRef as re, withModifiers as J, vModelText as le, vShow as ue } from "vue";
|
|
2
2
|
import { IconEmptySearch as ae, IconEditPen as ce, IconDelete as de, IconCheck as me, IconClose as fe, IconMore as pe } from "@opentiny/tiny-robot-svgs";
|
|
3
3
|
import { _ as z } from "./_plugin-vue_export-helper.js";
|
|
4
|
-
import { o as Z, d as ve, c as ge, b as
|
|
4
|
+
import { o as Z, d as ve, c as ge, b as _e } from "./index4.js";
|
|
5
5
|
import { t as O } from "./utils.js";
|
|
6
|
-
const D =
|
|
6
|
+
const D = y(!1);
|
|
7
7
|
let b = 0, $;
|
|
8
|
-
function
|
|
8
|
+
function ye() {
|
|
9
9
|
const s = window.matchMedia("(hover: none) and (pointer: coarse)"), m = () => {
|
|
10
10
|
D.value = s.matches;
|
|
11
11
|
};
|
|
@@ -24,7 +24,7 @@ function Ce() {
|
|
|
24
24
|
return typeof window > "u" ? {
|
|
25
25
|
isTouchDevice: D
|
|
26
26
|
} : (ne(() => {
|
|
27
|
-
b++, b === 1 && ($ =
|
|
27
|
+
b++, b === 1 && ($ = ye());
|
|
28
28
|
}), oe(() => {
|
|
29
29
|
b = Math.max(0, b - 1), b === 0 && he();
|
|
30
30
|
}), {
|
|
@@ -58,7 +58,7 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
58
58
|
}),
|
|
59
59
|
emits: /* @__PURE__ */ j(["item-click"], ["update:trigger", "update:data"]),
|
|
60
60
|
setup(s, { emit: m }) {
|
|
61
|
-
const t = W(s, "trigger"), c = W(s, "data"), h = s, C = m, E =
|
|
61
|
+
const t = W(s, "trigger"), c = W(s, "data"), h = s, C = m, E = y(null);
|
|
62
62
|
Z(
|
|
63
63
|
E,
|
|
64
64
|
() => {
|
|
@@ -68,9 +68,9 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
68
68
|
ignore: [t]
|
|
69
69
|
}
|
|
70
70
|
);
|
|
71
|
-
const { top: p, bottom: x, left:
|
|
71
|
+
const { top: p, bottom: x, left: _ } = ve(t), { width: M, height: k } = ge(E, void 0, { box: "border-box" }), { height: R } = _e(), o = I(() => {
|
|
72
72
|
const L = {
|
|
73
|
-
left: `min(${O(
|
|
73
|
+
left: `min(${O(_.value)}, calc(100% - ${O(M.value + Q)}))`
|
|
74
74
|
}, g = x.value + h.menuListGap;
|
|
75
75
|
return g + k.value + Q > R.value ? L.bottom = `calc(100% - ${O(p.value - h.menuListGap)})` : L.top = O(g), L;
|
|
76
76
|
}), v = (L) => {
|
|
@@ -96,24 +96,24 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
96
96
|
renameControlOnClickOutside: s,
|
|
97
97
|
onItemTitleChange: m
|
|
98
98
|
}) => {
|
|
99
|
-
const t =
|
|
99
|
+
const t = y(void 0), c = y(null), h = I(() => {
|
|
100
100
|
var o;
|
|
101
101
|
return (o = c.value) == null ? void 0 : o.at(0);
|
|
102
|
-
}), C =
|
|
102
|
+
}), C = y(null), E = I(() => {
|
|
103
103
|
var o;
|
|
104
104
|
return (o = C.value) == null ? void 0 : o.at(0);
|
|
105
|
-
}), p =
|
|
105
|
+
}), p = y(null), x = I(() => {
|
|
106
106
|
var o;
|
|
107
107
|
return (o = p.value) == null ? void 0 : o.at(0);
|
|
108
|
-
}),
|
|
109
|
-
t.value = o,
|
|
108
|
+
}), _ = y(""), M = (o) => {
|
|
109
|
+
t.value = o, _.value = o.title, se(() => {
|
|
110
110
|
const v = h.value;
|
|
111
111
|
v && (v.focus(), v.select());
|
|
112
112
|
});
|
|
113
113
|
}, k = () => {
|
|
114
|
-
t.value = void 0,
|
|
114
|
+
t.value = void 0, _.value = "";
|
|
115
115
|
}, R = () => {
|
|
116
|
-
t.value && m(
|
|
116
|
+
t.value && m(_.value, t.value), t.value = void 0, _.value = "";
|
|
117
117
|
};
|
|
118
118
|
return (s === "confirm" || s === "cancel") && Z(
|
|
119
119
|
h,
|
|
@@ -126,7 +126,7 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
126
126
|
editorRefList: c,
|
|
127
127
|
editorConfirmRefList: C,
|
|
128
128
|
editorCancelRefList: p,
|
|
129
|
-
editorValue:
|
|
129
|
+
editorValue: _,
|
|
130
130
|
handleEdit: M,
|
|
131
131
|
handleEditCancel: k,
|
|
132
132
|
handleEditConfirm: R
|
|
@@ -159,7 +159,7 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
159
159
|
}), E = I(() => C.value.length === 0 || C.value.every((i) => i.items.length === 0)), {
|
|
160
160
|
editingItem: p,
|
|
161
161
|
editorRefList: x,
|
|
162
|
-
editorConfirmRefList:
|
|
162
|
+
editorConfirmRefList: _,
|
|
163
163
|
editorCancelRefList: M,
|
|
164
164
|
editorValue: k,
|
|
165
165
|
handleEdit: R,
|
|
@@ -170,7 +170,7 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
170
170
|
onItemTitleChange: (i, e) => {
|
|
171
171
|
c("item-title-change", i, e);
|
|
172
172
|
}
|
|
173
|
-
}), { isTouchDevice: L } = Ce(), g =
|
|
173
|
+
}), { isTouchDevice: L } = Ce(), g = y(null), a = y(null), K = (i, e) => {
|
|
174
174
|
if (i.currentTarget instanceof HTMLButtonElement) {
|
|
175
175
|
if (a.value === e) {
|
|
176
176
|
g.value = null, a.value = null;
|
|
@@ -228,15 +228,12 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
228
228
|
]
|
|
229
229
|
}, null, 544)), [
|
|
230
230
|
[le, n(k)]
|
|
231
|
-
]) : q(i.$slots, "item-title", {
|
|
232
|
-
key: 2,
|
|
233
|
-
item: r
|
|
234
|
-
}, () => [
|
|
231
|
+
]) : q(i.$slots, "item-title", { item: r }, () => [
|
|
235
232
|
w("span", {
|
|
236
233
|
class: "text",
|
|
237
234
|
title: r.title
|
|
238
235
|
}, B(r.title), 9, Oe)
|
|
239
|
-
], !0),
|
|
236
|
+
], !0, 2),
|
|
240
237
|
w("span", {
|
|
241
238
|
class: "tr-history__item-actions",
|
|
242
239
|
onClick: e[6] || (e[6] = J(() => {
|
|
@@ -247,7 +244,7 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
247
244
|
class: "editor-confirm",
|
|
248
245
|
ref_for: !0,
|
|
249
246
|
ref_key: "editorConfirmRefList",
|
|
250
|
-
ref:
|
|
247
|
+
ref: _,
|
|
251
248
|
onClick: e[4] || (e[4] = //@ts-ignore
|
|
252
249
|
(...d) => n(v) && n(v)(...d))
|
|
253
250
|
}, [
|
|
@@ -0,0 +1,246 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
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;
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
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;
|
|
@@ -0,0 +1,18 @@
|
|
|
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;
|
|
@@ -0,0 +1,17 @@
|
|
|
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;
|
|
@@ -0,0 +1,14 @@
|
|
|
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;
|