@simon_he/vue-tui 0.0.8 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +142 -30
- package/dist/TSelect-BwJJbuTt.js +6089 -0
- package/dist/TTree-DK_DQBYm.js +6480 -0
- package/dist/agent.cjs +39416 -0
- package/dist/agent.d.cts +44 -0
- package/dist/agent.d.ts +44 -0
- package/dist/agent.js +828 -0
- package/dist/ansi-palette-CNXqFciC.js +57 -0
- package/dist/ansi-styles.d.ts +200 -0
- package/dist/block-source-CKUOnkgT.js +1663 -0
- package/dist/cli/headless-renderer.d.ts +29 -0
- package/dist/cli/input.d.ts +49 -0
- package/dist/cli/node-file-writers.d.ts +13 -0
- package/dist/cli/node-module.d.ts +2 -0
- package/dist/cli/parse-kitty.d.ts +2 -0
- package/dist/cli/parse-mouse.d.ts +2 -0
- package/dist/cli/parse-utils.d.ts +14 -0
- package/dist/cli/parse-xterm.d.ts +2 -0
- package/dist/cli/path-provider-types.d.ts +1 -0
- package/dist/cli/path-provider.d.ts +4 -0
- package/dist/cli/path-suggest-core.d.ts +1 -0
- package/dist/cli/path-suggest.d.ts +15 -0
- package/dist/cli/recording.d.ts +4 -0
- package/dist/cli/stdin-buffer.d.ts +33 -0
- package/dist/cli.cjs +11061 -0
- package/dist/cli.d.cts +23 -0
- package/dist/cli.d.ts +23 -0
- package/dist/cli.js +9875 -0
- package/dist/core/ansi/capability.d.ts +20 -0
- package/dist/core/ansi/colors.d.ts +41 -0
- package/dist/core/ansi/sgr.d.ts +7 -0
- package/dist/core/ansi/theme.d.ts +6 -0
- package/dist/core/ansi-palette.d.ts +14 -0
- package/dist/core/buffer/buffer.d.ts +54 -0
- package/dist/core/buffer/width.d.ts +4 -0
- package/dist/core/debug-logger.d.ts +18 -0
- package/dist/core/hyperlink.d.ts +9 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/path-provider-types.d.ts +24 -0
- package/dist/core/path-suggest.d.ts +35 -0
- package/dist/core/render-plane.d.ts +3 -0
- package/dist/core/terminal/create-terminal.d.ts +8 -0
- package/dist/core/terminal/emitter.d.ts +7 -0
- package/dist/core/types.d.ts +107 -0
- package/dist/core.cjs +3153 -0
- package/dist/core.d.cts +14 -0
- package/dist/core.d.ts +14 -0
- package/dist/core.js +424 -0
- package/dist/create-terminal-C2oiWFJU.js +1434 -0
- package/dist/create-terminal-app.d.ts +36 -0
- package/dist/dom-renderer-BqGijQID.js +1173 -0
- package/dist/env-Cl8qmNFN.js +19 -0
- package/dist/events/index.d.ts +6 -0
- package/dist/events/manager/cli-event-manager.d.ts +22 -0
- package/dist/events/manager/event-manager.d.ts +30 -0
- package/dist/events/manager/selection-suppression.d.ts +3 -0
- package/dist/events/manager/types.d.ts +108 -0
- package/dist/events/recording.d.ts +44 -0
- package/dist/experimental.cjs +4412 -1641
- package/dist/experimental.d.cts +42 -0
- package/dist/experimental.d.ts +42 -825
- package/dist/experimental.js +31 -7392
- package/dist/frame-perf-C6Xfg85O.js +24 -0
- package/dist/hyperlink-Bn02UXJb.js +419 -0
- package/dist/index.cjs +14765 -17582
- package/dist/index.d.cts +35 -0
- package/dist/index.d.ts +35 -1528
- package/dist/index.js +17 -20026
- package/dist/linkify-D_gzn9Xq.js +562 -0
- package/dist/markdown.cjs +9321 -7623
- package/dist/markdown.d.cts +11 -0
- package/dist/markdown.d.ts +11 -112
- package/dist/markdown.js +36 -1427
- package/dist/observability/cli-latency-node.d.ts +3 -0
- package/dist/observability/cli-latency-types.d.ts +41 -0
- package/dist/observability/cli-latency.d.ts +3 -0
- package/dist/observability/frame-perf-store.d.ts +18 -0
- package/dist/observability/frame-perf.d.ts +40 -0
- package/dist/observability/perf-sink.d.ts +56 -0
- package/dist/observability/trace.d.ts +40 -0
- package/dist/observability/tui-profiler.d.ts +33 -0
- package/dist/observability.cjs +221 -0
- package/dist/observability.d.cts +8 -0
- package/dist/observability.d.ts +8 -0
- package/dist/observability.js +4 -0
- package/dist/path-mnSgEpCm.js +81 -0
- package/dist/path-suggest-BNqcuE3-.js +274 -0
- package/dist/path-suggest-Dk9TRLh5.js +3 -0
- package/dist/{path-suggest-DmrmeueH.js → path-suggest-bvR9SY6Q.js} +86 -18
- package/dist/renderer/capabilities.d.ts +13 -0
- package/dist/renderer/cli/index.d.ts +2 -0
- package/dist/renderer/cli/stdout-metrics.d.ts +18 -0
- package/dist/renderer/cli/stdout-renderer.d.ts +48 -0
- package/dist/renderer/dom/dom-renderer.d.ts +157 -0
- package/dist/renderer/dom/index.d.ts +2 -0
- package/dist/renderer/index.d.ts +2 -0
- package/dist/renderer-dom.cjs +1505 -0
- package/dist/renderer-dom.d.cts +4 -0
- package/dist/renderer-dom.d.ts +4 -0
- package/dist/renderer-dom.js +7 -0
- package/dist/runtime/index.d.ts +36 -0
- package/dist/runtime/osc52.d.ts +9 -0
- package/dist/runtime-rfcZCyJq.js +1197 -0
- package/dist/runtime.cjs +1698 -0
- package/dist/runtime.d.cts +9 -0
- package/dist/runtime.d.ts +9 -0
- package/dist/runtime.js +4 -0
- package/dist/selection/terminal-selection.d.ts +123 -0
- package/dist/sgr-BmzxEjAO.js +304 -0
- package/dist/terminal-selection-DBinO6p5.js +330 -0
- package/dist/tlog-theme-qPBt5rge.js +9254 -0
- package/dist/trace-CjzYeIxN.js +182 -0
- package/dist/utils/env.d.ts +3 -0
- package/dist/utils/grapheme.d.ts +5 -0
- package/dist/utils/newlines.d.ts +1 -0
- package/dist/utils/path.d.ts +7 -0
- package/dist/utils/url-safety.d.ts +2 -0
- package/dist/vue/agent/view-models.d.ts +98 -0
- package/dist/vue/components/TAnchor.d.ts +108 -0
- package/dist/vue/components/TBox.d.ts +144 -0
- package/dist/vue/components/TCommandPalette.d.ts +587 -0
- package/dist/vue/components/TDataTable.d.ts +367 -0
- package/dist/vue/components/TDebugOverlay.d.ts +43 -0
- package/dist/vue/components/TDialog.d.ts +255 -0
- package/dist/vue/components/TFeedback.d.ts +635 -0
- package/dist/vue/components/TFlow.d.ts +85 -0
- package/dist/vue/components/TForm.d.ts +1230 -0
- package/dist/vue/components/TInput.d.ts +545 -0
- package/dist/vue/components/TInputBox.d.ts +158 -0
- package/dist/vue/components/TJsonEditor.d.ts +165 -0
- package/dist/vue/components/TLink.d.ts +239 -0
- package/dist/vue/components/TLinkifyText.d.ts +141 -0
- package/dist/vue/components/TList.d.ts +119 -0
- package/dist/vue/components/TLogLinksPanel.d.ts +238 -0
- package/dist/vue/components/TLogMinimap.d.ts +263 -0
- package/dist/vue/components/TLogScrollbar.d.ts +236 -0
- package/dist/vue/components/TLogSearchBar.d.ts +267 -0
- package/dist/vue/components/TLogSearchPager.d.ts +162 -0
- package/dist/vue/components/TLogSearchResults.d.ts +200 -0
- package/dist/vue/components/TLogView.d.ts +536 -0
- package/dist/vue/components/TLogVirtualLinksPanel.d.ts +141 -0
- package/dist/vue/components/TLogVirtualSearchResults.d.ts +146 -0
- package/dist/vue/components/TMarkdownText.d.ts +134 -0
- package/dist/vue/components/TMultilineModal.d.ts +62 -0
- package/dist/vue/components/TNavigation.d.ts +324 -0
- package/dist/vue/components/TOverlay.d.ts +366 -0
- package/dist/vue/components/TPanels.d.ts +244 -0
- package/dist/vue/components/TPathPicker.d.ts +213 -0
- package/dist/vue/components/TRenderLayer.d.ts +16 -0
- package/dist/vue/components/TRenderPlane.d.ts +17 -0
- package/dist/vue/components/TSelect.d.ts +335 -0
- package/dist/vue/components/TTable.d.ts +317 -0
- package/dist/vue/components/TText.d.ts +116 -0
- package/dist/vue/components/TThinkingView.d.ts +233 -0
- package/dist/vue/components/TToolCallView.d.ts +384 -0
- package/dist/vue/components/TTranscriptView.d.ts +221 -0
- package/dist/vue/components/TTransition.d.ts +83 -0
- package/dist/vue/components/TTree.d.ts +200 -0
- package/dist/vue/components/TUserMessageView.d.ts +344 -0
- package/dist/vue/components/TView.d.ts +127 -0
- package/dist/vue/components/TVirtualList.d.ts +182 -0
- package/dist/vue/components/TVirtualMarkdown.d.ts +168 -0
- package/dist/vue/components/TVirtualRows.d.ts +247 -0
- package/dist/vue/components/TerminalProvider.d.ts +218 -0
- package/dist/vue/components/input/host.d.ts +17 -0
- package/dist/vue/components/input/plugins/hostPlugin.d.ts +7 -0
- package/dist/vue/components/input/plugins/hostPlugin.node.d.ts +15 -0
- package/dist/vue/components/input/plugins/mentionUtils.d.ts +17 -0
- package/dist/vue/components/input/plugins/nodeMentionPathProvider.d.ts +2 -0
- package/dist/vue/components/input/plugins/promptMentionPlugin.d.ts +8 -0
- package/dist/vue/components/input/plugins/promptMentionState.d.ts +98 -0
- package/dist/vue/components/input/plugins/restrictText.d.ts +27 -0
- package/dist/vue/components/input/plugins/types.d.ts +90 -0
- package/dist/vue/components/input/utils/inlineText.d.ts +57 -0
- package/dist/vue/components/input/utils/inlineTextTokens.d.ts +34 -0
- package/dist/vue/components/input/utils/primitives.d.ts +3 -0
- package/dist/vue/components/input/utils/wordNavigation.d.ts +6 -0
- package/dist/vue/components/link/host.d.ts +15 -0
- package/dist/vue/components/list/list-geometry.d.ts +16 -0
- package/dist/vue/components/list/list-paint.d.ts +1 -0
- package/dist/vue/components/list/scroll-state.d.ts +25 -0
- package/dist/vue/components/list/selection-state.d.ts +6 -0
- package/dist/vue/components/simple-utils.d.ts +5 -0
- package/dist/vue/components/terminal-provider/copy-toast.d.ts +6 -0
- package/dist/vue/components/terminal-provider/portals.d.ts +17 -0
- package/dist/vue/components/terminal-provider/scheduler.d.ts +29 -0
- package/dist/vue/components/terminal-provider/selection-config.d.ts +15 -0
- package/dist/vue/components/terminal-provider/utils.d.ts +5 -0
- package/dist/vue/composables/use-layout.d.ts +2 -0
- package/dist/vue/composables/use-render-node.d.ts +19 -0
- package/dist/vue/composables/use-render-stack.d.ts +3 -0
- package/dist/vue/composables/use-runtime.d.ts +5 -0
- package/dist/vue/composables/use-terminal-node.d.ts +14 -0
- package/dist/vue/composables/use-terminal.d.ts +2 -0
- package/dist/vue/composables/use-visibility.d.ts +12 -0
- package/dist/vue/context.d.ts +153 -0
- package/dist/vue/index.d.ts +69 -0
- package/dist/vue/injection-key.d.ts +2 -0
- package/dist/vue/linkify.d.ts +11 -0
- package/dist/vue/log/append-only-log-store.d.ts +2 -0
- package/dist/vue/log/tlog-keymap.d.ts +28 -0
- package/dist/vue/log/tlog-plugins.d.ts +144 -0
- package/dist/vue/log/tlog-session.d.ts +81 -0
- package/dist/vue/log/tlog-theme.d.ts +68 -0
- package/dist/vue/log/types.d.ts +43 -0
- package/dist/vue/log/use-tlog-link-controller.d.ts +31 -0
- package/dist/vue/log/use-tlog-retained-index.d.ts +26 -0
- package/dist/vue/log/use-tlog-search-controller.d.ts +51 -0
- package/dist/vue/log/use-tlog-search-results-page.d.ts +31 -0
- package/dist/vue/log/use-tlog-virtual-search-results.d.ts +22 -0
- package/dist/vue/markdown/ast.d.ts +3 -0
- package/dist/vue/markdown/block-source.d.ts +22 -0
- package/dist/vue/markdown/document.d.ts +20 -0
- package/dist/vue/markdown/layout.d.ts +21 -0
- package/dist/vue/markdown/parser.d.ts +11 -0
- package/dist/vue/markdown/render.d.ts +10 -0
- package/dist/vue/markdown/theme.d.ts +186 -0
- package/dist/vue/markdown/types.d.ts +59 -0
- package/dist/vue/overlay.d.ts +27 -0
- package/dist/vue/render/context.d.ts +3 -0
- package/dist/vue/render/render-manager.d.ts +94 -0
- package/dist/vue/router/RouterView.d.ts +25 -0
- package/dist/vue/router/composables.d.ts +4 -0
- package/dist/vue/router/context.d.ts +4 -0
- package/dist/vue/router/router.d.ts +7 -0
- package/dist/vue/router/types.d.ts +29 -0
- package/dist/vue/scheduler/frame-mailbox.d.ts +55 -0
- package/dist/vue/scheduler/frame-scheduler.d.ts +51 -0
- package/dist/vue/theme.d.ts +48 -0
- package/dist/vue/transcript/hit-regions.d.ts +2 -0
- package/dist/vue/transcript/layout.d.ts +20 -0
- package/dist/vue/transcript/plain-text.d.ts +2 -0
- package/dist/vue/transcript/types.d.ts +122 -0
- package/dist/vue/utils/frame-task.d.ts +6 -0
- package/dist/vue/utils/rect.d.ts +4 -0
- package/dist/vue/utils/row-scroll.d.ts +25 -0
- package/dist/vue/utils/style-cache.d.ts +3 -0
- package/dist/vue/utils/text.d.ts +27 -0
- package/dist/vue/utils/wheel-scroll.d.ts +18 -0
- package/dist/vue.cjs +23668 -0
- package/dist/vue.d.cts +1 -0
- package/dist/vue.d.ts +1 -0
- package/dist/vue.js +3957 -0
- package/dist/{wheel-scroll-CiNsasLf.js → wheel-scroll-vBRaQ7p-.js} +404 -405
- package/package.json +185 -35
- package/dist/path-suggest-BeV6n7m-.js +0 -3
- package/dist/sgr-Tko2EQ0U.js +0 -484
- package/dist/theme-Bsm65g8k.d.ts +0 -32
- package/dist/types-ClIV2h1o.d.ts +0 -103
|
@@ -0,0 +1,545 @@
|
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
import type { PathPickMode } from "../../core/path-suggest.js";
|
|
3
|
+
import type { Style } from "../../core/types.js";
|
|
4
|
+
import type { PromptSuggestion, TInputPlugin } from "./input/plugins/types.js";
|
|
5
|
+
export declare const TInput: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
x: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
y: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
w: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
h: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
zIndex: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
default: number;
|
|
25
|
+
};
|
|
26
|
+
modelValue: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
cursorToEndOnExternalUpdate: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
cursorToEndOnFirstFocus: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
placeholder: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
placeholderWhenFocused: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
style: {
|
|
47
|
+
type: PropType<Style>;
|
|
48
|
+
default: undefined;
|
|
49
|
+
};
|
|
50
|
+
autoFocus: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
cursorBlink: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
cursorShape: {
|
|
59
|
+
type: PropType<"block" | "underline" | "bar">;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
blinkInterval: {
|
|
63
|
+
type: NumberConstructor;
|
|
64
|
+
default: number;
|
|
65
|
+
};
|
|
66
|
+
promptSuggestions: {
|
|
67
|
+
type: PropType<readonly PromptSuggestion[]>;
|
|
68
|
+
default: () => never[];
|
|
69
|
+
};
|
|
70
|
+
promptTrigger: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
promptTriggers: {
|
|
75
|
+
type: PropType<readonly string[]>;
|
|
76
|
+
default: undefined;
|
|
77
|
+
};
|
|
78
|
+
promptMaxItems: {
|
|
79
|
+
type: NumberConstructor;
|
|
80
|
+
default: number;
|
|
81
|
+
};
|
|
82
|
+
promptAlign: {
|
|
83
|
+
type: PropType<"input" | "center">;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
promptSelectedStyle: {
|
|
87
|
+
type: PropType<Style>;
|
|
88
|
+
default: undefined;
|
|
89
|
+
};
|
|
90
|
+
promptPopupStyle: {
|
|
91
|
+
type: PropType<Style>;
|
|
92
|
+
default: undefined;
|
|
93
|
+
};
|
|
94
|
+
promptPopupBorderStyle: {
|
|
95
|
+
type: PropType<Style>;
|
|
96
|
+
default: undefined;
|
|
97
|
+
};
|
|
98
|
+
promptPopupMatchStyle: {
|
|
99
|
+
type: PropType<Style>;
|
|
100
|
+
default: undefined;
|
|
101
|
+
};
|
|
102
|
+
skillTrigger: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
skillSuggestions: {
|
|
107
|
+
type: PropType<readonly PromptSuggestion[]>;
|
|
108
|
+
default: undefined;
|
|
109
|
+
};
|
|
110
|
+
skillHighlightStyle: {
|
|
111
|
+
type: PropType<Style>;
|
|
112
|
+
default: undefined;
|
|
113
|
+
};
|
|
114
|
+
mentionTrigger: {
|
|
115
|
+
type: StringConstructor;
|
|
116
|
+
default: string;
|
|
117
|
+
};
|
|
118
|
+
mentionWorkspace: {
|
|
119
|
+
type: StringConstructor;
|
|
120
|
+
default: string;
|
|
121
|
+
};
|
|
122
|
+
mentionMode: {
|
|
123
|
+
type: PropType<PathPickMode>;
|
|
124
|
+
default: string;
|
|
125
|
+
};
|
|
126
|
+
mentionShowHidden: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
mentionSuggestions: {
|
|
131
|
+
type: PropType<readonly PromptSuggestion[]>;
|
|
132
|
+
default: () => never[];
|
|
133
|
+
};
|
|
134
|
+
mentionMaxItems: {
|
|
135
|
+
type: NumberConstructor;
|
|
136
|
+
default: number;
|
|
137
|
+
};
|
|
138
|
+
mentionChipStyle: {
|
|
139
|
+
type: PropType<Style>;
|
|
140
|
+
default: undefined;
|
|
141
|
+
};
|
|
142
|
+
multilineChipStyle: {
|
|
143
|
+
type: PropType<Style>;
|
|
144
|
+
default: undefined;
|
|
145
|
+
};
|
|
146
|
+
dedupeMentions: {
|
|
147
|
+
type: BooleanConstructor;
|
|
148
|
+
default: boolean;
|
|
149
|
+
};
|
|
150
|
+
collectMentions: {
|
|
151
|
+
type: BooleanConstructor;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
154
|
+
mentions: {
|
|
155
|
+
type: PropType<readonly string[]>;
|
|
156
|
+
default: () => never[];
|
|
157
|
+
};
|
|
158
|
+
collapseMultiline: {
|
|
159
|
+
type: BooleanConstructor;
|
|
160
|
+
default: boolean;
|
|
161
|
+
};
|
|
162
|
+
multilineTexts: {
|
|
163
|
+
type: PropType<readonly string[]>;
|
|
164
|
+
default: () => never[];
|
|
165
|
+
};
|
|
166
|
+
secret: {
|
|
167
|
+
type: BooleanConstructor;
|
|
168
|
+
default: boolean;
|
|
169
|
+
};
|
|
170
|
+
maskChar: {
|
|
171
|
+
type: StringConstructor;
|
|
172
|
+
default: string;
|
|
173
|
+
};
|
|
174
|
+
submitOnEnter: {
|
|
175
|
+
type: BooleanConstructor;
|
|
176
|
+
default: boolean;
|
|
177
|
+
};
|
|
178
|
+
plugins: {
|
|
179
|
+
type: PropType<readonly TInputPlugin[]>;
|
|
180
|
+
default: () => never[];
|
|
181
|
+
};
|
|
182
|
+
pasteImageHandler: {
|
|
183
|
+
type: PropType<() => Promise<string | null> | string | null>;
|
|
184
|
+
default: undefined;
|
|
185
|
+
};
|
|
186
|
+
filePasteHandler: {
|
|
187
|
+
type: PropType<(absPath: string) => Promise<string | null> | string | null>;
|
|
188
|
+
default: undefined;
|
|
189
|
+
};
|
|
190
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
191
|
+
[key: string]: any;
|
|
192
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("pointerenter" | "pointerleave" | "keydown" | "input" | "focus" | "blur" | "change" | "update:modelValue" | "update:mentions" | "mentionClick" | "update:multilineTexts" | "multilineClick" | "validationError")[], "pointerenter" | "pointerleave" | "keydown" | "input" | "focus" | "blur" | "change" | "update:modelValue" | "update:mentions" | "mentionClick" | "update:multilineTexts" | "multilineClick" | "validationError", (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps), Readonly<import("vue").ExtractPropTypes<{
|
|
193
|
+
x: {
|
|
194
|
+
type: NumberConstructor;
|
|
195
|
+
required: true;
|
|
196
|
+
};
|
|
197
|
+
y: {
|
|
198
|
+
type: NumberConstructor;
|
|
199
|
+
required: true;
|
|
200
|
+
};
|
|
201
|
+
w: {
|
|
202
|
+
type: NumberConstructor;
|
|
203
|
+
required: true;
|
|
204
|
+
};
|
|
205
|
+
h: {
|
|
206
|
+
type: NumberConstructor;
|
|
207
|
+
default: number;
|
|
208
|
+
};
|
|
209
|
+
zIndex: {
|
|
210
|
+
type: NumberConstructor;
|
|
211
|
+
default: number;
|
|
212
|
+
};
|
|
213
|
+
modelValue: {
|
|
214
|
+
type: StringConstructor;
|
|
215
|
+
required: true;
|
|
216
|
+
};
|
|
217
|
+
cursorToEndOnExternalUpdate: {
|
|
218
|
+
type: BooleanConstructor;
|
|
219
|
+
default: boolean;
|
|
220
|
+
};
|
|
221
|
+
cursorToEndOnFirstFocus: {
|
|
222
|
+
type: BooleanConstructor;
|
|
223
|
+
default: boolean;
|
|
224
|
+
};
|
|
225
|
+
placeholder: {
|
|
226
|
+
type: StringConstructor;
|
|
227
|
+
default: string;
|
|
228
|
+
};
|
|
229
|
+
placeholderWhenFocused: {
|
|
230
|
+
type: BooleanConstructor;
|
|
231
|
+
default: boolean;
|
|
232
|
+
};
|
|
233
|
+
style: {
|
|
234
|
+
type: PropType<Style>;
|
|
235
|
+
default: undefined;
|
|
236
|
+
};
|
|
237
|
+
autoFocus: {
|
|
238
|
+
type: BooleanConstructor;
|
|
239
|
+
default: boolean;
|
|
240
|
+
};
|
|
241
|
+
cursorBlink: {
|
|
242
|
+
type: BooleanConstructor;
|
|
243
|
+
default: boolean;
|
|
244
|
+
};
|
|
245
|
+
cursorShape: {
|
|
246
|
+
type: PropType<"block" | "underline" | "bar">;
|
|
247
|
+
default: string;
|
|
248
|
+
};
|
|
249
|
+
blinkInterval: {
|
|
250
|
+
type: NumberConstructor;
|
|
251
|
+
default: number;
|
|
252
|
+
};
|
|
253
|
+
promptSuggestions: {
|
|
254
|
+
type: PropType<readonly PromptSuggestion[]>;
|
|
255
|
+
default: () => never[];
|
|
256
|
+
};
|
|
257
|
+
promptTrigger: {
|
|
258
|
+
type: StringConstructor;
|
|
259
|
+
default: string;
|
|
260
|
+
};
|
|
261
|
+
promptTriggers: {
|
|
262
|
+
type: PropType<readonly string[]>;
|
|
263
|
+
default: undefined;
|
|
264
|
+
};
|
|
265
|
+
promptMaxItems: {
|
|
266
|
+
type: NumberConstructor;
|
|
267
|
+
default: number;
|
|
268
|
+
};
|
|
269
|
+
promptAlign: {
|
|
270
|
+
type: PropType<"input" | "center">;
|
|
271
|
+
default: string;
|
|
272
|
+
};
|
|
273
|
+
promptSelectedStyle: {
|
|
274
|
+
type: PropType<Style>;
|
|
275
|
+
default: undefined;
|
|
276
|
+
};
|
|
277
|
+
promptPopupStyle: {
|
|
278
|
+
type: PropType<Style>;
|
|
279
|
+
default: undefined;
|
|
280
|
+
};
|
|
281
|
+
promptPopupBorderStyle: {
|
|
282
|
+
type: PropType<Style>;
|
|
283
|
+
default: undefined;
|
|
284
|
+
};
|
|
285
|
+
promptPopupMatchStyle: {
|
|
286
|
+
type: PropType<Style>;
|
|
287
|
+
default: undefined;
|
|
288
|
+
};
|
|
289
|
+
skillTrigger: {
|
|
290
|
+
type: StringConstructor;
|
|
291
|
+
default: string;
|
|
292
|
+
};
|
|
293
|
+
skillSuggestions: {
|
|
294
|
+
type: PropType<readonly PromptSuggestion[]>;
|
|
295
|
+
default: undefined;
|
|
296
|
+
};
|
|
297
|
+
skillHighlightStyle: {
|
|
298
|
+
type: PropType<Style>;
|
|
299
|
+
default: undefined;
|
|
300
|
+
};
|
|
301
|
+
mentionTrigger: {
|
|
302
|
+
type: StringConstructor;
|
|
303
|
+
default: string;
|
|
304
|
+
};
|
|
305
|
+
mentionWorkspace: {
|
|
306
|
+
type: StringConstructor;
|
|
307
|
+
default: string;
|
|
308
|
+
};
|
|
309
|
+
mentionMode: {
|
|
310
|
+
type: PropType<PathPickMode>;
|
|
311
|
+
default: string;
|
|
312
|
+
};
|
|
313
|
+
mentionShowHidden: {
|
|
314
|
+
type: BooleanConstructor;
|
|
315
|
+
default: boolean;
|
|
316
|
+
};
|
|
317
|
+
mentionSuggestions: {
|
|
318
|
+
type: PropType<readonly PromptSuggestion[]>;
|
|
319
|
+
default: () => never[];
|
|
320
|
+
};
|
|
321
|
+
mentionMaxItems: {
|
|
322
|
+
type: NumberConstructor;
|
|
323
|
+
default: number;
|
|
324
|
+
};
|
|
325
|
+
mentionChipStyle: {
|
|
326
|
+
type: PropType<Style>;
|
|
327
|
+
default: undefined;
|
|
328
|
+
};
|
|
329
|
+
multilineChipStyle: {
|
|
330
|
+
type: PropType<Style>;
|
|
331
|
+
default: undefined;
|
|
332
|
+
};
|
|
333
|
+
dedupeMentions: {
|
|
334
|
+
type: BooleanConstructor;
|
|
335
|
+
default: boolean;
|
|
336
|
+
};
|
|
337
|
+
collectMentions: {
|
|
338
|
+
type: BooleanConstructor;
|
|
339
|
+
default: boolean;
|
|
340
|
+
};
|
|
341
|
+
mentions: {
|
|
342
|
+
type: PropType<readonly string[]>;
|
|
343
|
+
default: () => never[];
|
|
344
|
+
};
|
|
345
|
+
collapseMultiline: {
|
|
346
|
+
type: BooleanConstructor;
|
|
347
|
+
default: boolean;
|
|
348
|
+
};
|
|
349
|
+
multilineTexts: {
|
|
350
|
+
type: PropType<readonly string[]>;
|
|
351
|
+
default: () => never[];
|
|
352
|
+
};
|
|
353
|
+
secret: {
|
|
354
|
+
type: BooleanConstructor;
|
|
355
|
+
default: boolean;
|
|
356
|
+
};
|
|
357
|
+
maskChar: {
|
|
358
|
+
type: StringConstructor;
|
|
359
|
+
default: string;
|
|
360
|
+
};
|
|
361
|
+
submitOnEnter: {
|
|
362
|
+
type: BooleanConstructor;
|
|
363
|
+
default: boolean;
|
|
364
|
+
};
|
|
365
|
+
plugins: {
|
|
366
|
+
type: PropType<readonly TInputPlugin[]>;
|
|
367
|
+
default: () => never[];
|
|
368
|
+
};
|
|
369
|
+
pasteImageHandler: {
|
|
370
|
+
type: PropType<() => Promise<string | null> | string | null>;
|
|
371
|
+
default: undefined;
|
|
372
|
+
};
|
|
373
|
+
filePasteHandler: {
|
|
374
|
+
type: PropType<(absPath: string) => Promise<string | null> | string | null>;
|
|
375
|
+
default: undefined;
|
|
376
|
+
};
|
|
377
|
+
}>> & Readonly<{
|
|
378
|
+
onPointerenter?: ((...args: any[]) => any) | undefined;
|
|
379
|
+
onPointerleave?: ((...args: any[]) => any) | undefined;
|
|
380
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
381
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
382
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
383
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
384
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
385
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
386
|
+
"onUpdate:mentions"?: ((...args: any[]) => any) | undefined;
|
|
387
|
+
onMentionClick?: ((...args: any[]) => any) | undefined;
|
|
388
|
+
"onUpdate:multilineTexts"?: ((...args: any[]) => any) | undefined;
|
|
389
|
+
onMultilineClick?: ((...args: any[]) => any) | undefined;
|
|
390
|
+
onValidationError?: ((...args: any[]) => any) | undefined;
|
|
391
|
+
}>, {
|
|
392
|
+
style: Readonly<{
|
|
393
|
+
fg?: string;
|
|
394
|
+
bg?: string;
|
|
395
|
+
bold?: boolean;
|
|
396
|
+
dim?: boolean;
|
|
397
|
+
italic?: boolean;
|
|
398
|
+
underline?: boolean;
|
|
399
|
+
inverse?: boolean;
|
|
400
|
+
href?: string;
|
|
401
|
+
}>;
|
|
402
|
+
h: number;
|
|
403
|
+
zIndex: number;
|
|
404
|
+
autoFocus: boolean;
|
|
405
|
+
cursorToEndOnExternalUpdate: boolean;
|
|
406
|
+
cursorToEndOnFirstFocus: boolean;
|
|
407
|
+
placeholder: string;
|
|
408
|
+
placeholderWhenFocused: boolean;
|
|
409
|
+
cursorBlink: boolean;
|
|
410
|
+
cursorShape: "underline" | "block" | "bar";
|
|
411
|
+
blinkInterval: number;
|
|
412
|
+
promptSuggestions: readonly Readonly<{
|
|
413
|
+
value: string;
|
|
414
|
+
insert?: string;
|
|
415
|
+
label?: string;
|
|
416
|
+
detail?: string;
|
|
417
|
+
keywords?: readonly string[];
|
|
418
|
+
mentionValue?: string;
|
|
419
|
+
mentionBehavior?: "collect" | "inline";
|
|
420
|
+
onSelect?: (info: Readonly<{
|
|
421
|
+
value: string;
|
|
422
|
+
query: string;
|
|
423
|
+
}>) => void | boolean;
|
|
424
|
+
}>[];
|
|
425
|
+
promptTrigger: string;
|
|
426
|
+
promptTriggers: readonly string[];
|
|
427
|
+
promptMaxItems: number;
|
|
428
|
+
promptAlign: "input" | "center";
|
|
429
|
+
promptSelectedStyle: Readonly<{
|
|
430
|
+
fg?: string;
|
|
431
|
+
bg?: string;
|
|
432
|
+
bold?: boolean;
|
|
433
|
+
dim?: boolean;
|
|
434
|
+
italic?: boolean;
|
|
435
|
+
underline?: boolean;
|
|
436
|
+
inverse?: boolean;
|
|
437
|
+
href?: string;
|
|
438
|
+
}>;
|
|
439
|
+
promptPopupStyle: Readonly<{
|
|
440
|
+
fg?: string;
|
|
441
|
+
bg?: string;
|
|
442
|
+
bold?: boolean;
|
|
443
|
+
dim?: boolean;
|
|
444
|
+
italic?: boolean;
|
|
445
|
+
underline?: boolean;
|
|
446
|
+
inverse?: boolean;
|
|
447
|
+
href?: string;
|
|
448
|
+
}>;
|
|
449
|
+
promptPopupBorderStyle: Readonly<{
|
|
450
|
+
fg?: string;
|
|
451
|
+
bg?: string;
|
|
452
|
+
bold?: boolean;
|
|
453
|
+
dim?: boolean;
|
|
454
|
+
italic?: boolean;
|
|
455
|
+
underline?: boolean;
|
|
456
|
+
inverse?: boolean;
|
|
457
|
+
href?: string;
|
|
458
|
+
}>;
|
|
459
|
+
promptPopupMatchStyle: Readonly<{
|
|
460
|
+
fg?: string;
|
|
461
|
+
bg?: string;
|
|
462
|
+
bold?: boolean;
|
|
463
|
+
dim?: boolean;
|
|
464
|
+
italic?: boolean;
|
|
465
|
+
underline?: boolean;
|
|
466
|
+
inverse?: boolean;
|
|
467
|
+
href?: string;
|
|
468
|
+
}>;
|
|
469
|
+
skillTrigger: string;
|
|
470
|
+
skillSuggestions: readonly Readonly<{
|
|
471
|
+
value: string;
|
|
472
|
+
insert?: string;
|
|
473
|
+
label?: string;
|
|
474
|
+
detail?: string;
|
|
475
|
+
keywords?: readonly string[];
|
|
476
|
+
mentionValue?: string;
|
|
477
|
+
mentionBehavior?: "collect" | "inline";
|
|
478
|
+
onSelect?: (info: Readonly<{
|
|
479
|
+
value: string;
|
|
480
|
+
query: string;
|
|
481
|
+
}>) => void | boolean;
|
|
482
|
+
}>[];
|
|
483
|
+
skillHighlightStyle: Readonly<{
|
|
484
|
+
fg?: string;
|
|
485
|
+
bg?: string;
|
|
486
|
+
bold?: boolean;
|
|
487
|
+
dim?: boolean;
|
|
488
|
+
italic?: boolean;
|
|
489
|
+
underline?: boolean;
|
|
490
|
+
inverse?: boolean;
|
|
491
|
+
href?: string;
|
|
492
|
+
}>;
|
|
493
|
+
mentionTrigger: string;
|
|
494
|
+
mentionWorkspace: string;
|
|
495
|
+
mentionMode: PathPickMode;
|
|
496
|
+
mentionShowHidden: boolean;
|
|
497
|
+
mentionSuggestions: readonly Readonly<{
|
|
498
|
+
value: string;
|
|
499
|
+
insert?: string;
|
|
500
|
+
label?: string;
|
|
501
|
+
detail?: string;
|
|
502
|
+
keywords?: readonly string[];
|
|
503
|
+
mentionValue?: string;
|
|
504
|
+
mentionBehavior?: "collect" | "inline";
|
|
505
|
+
onSelect?: (info: Readonly<{
|
|
506
|
+
value: string;
|
|
507
|
+
query: string;
|
|
508
|
+
}>) => void | boolean;
|
|
509
|
+
}>[];
|
|
510
|
+
mentionMaxItems: number;
|
|
511
|
+
mentionChipStyle: Readonly<{
|
|
512
|
+
fg?: string;
|
|
513
|
+
bg?: string;
|
|
514
|
+
bold?: boolean;
|
|
515
|
+
dim?: boolean;
|
|
516
|
+
italic?: boolean;
|
|
517
|
+
underline?: boolean;
|
|
518
|
+
inverse?: boolean;
|
|
519
|
+
href?: string;
|
|
520
|
+
}>;
|
|
521
|
+
multilineChipStyle: Readonly<{
|
|
522
|
+
fg?: string;
|
|
523
|
+
bg?: string;
|
|
524
|
+
bold?: boolean;
|
|
525
|
+
dim?: boolean;
|
|
526
|
+
italic?: boolean;
|
|
527
|
+
underline?: boolean;
|
|
528
|
+
inverse?: boolean;
|
|
529
|
+
href?: string;
|
|
530
|
+
}>;
|
|
531
|
+
dedupeMentions: boolean;
|
|
532
|
+
collectMentions: boolean;
|
|
533
|
+
mentions: readonly string[];
|
|
534
|
+
collapseMultiline: boolean;
|
|
535
|
+
multilineTexts: readonly string[];
|
|
536
|
+
secret: boolean;
|
|
537
|
+
maskChar: string;
|
|
538
|
+
submitOnEnter: boolean;
|
|
539
|
+
plugins: readonly Readonly<{
|
|
540
|
+
name: string;
|
|
541
|
+
install: (ctx: import("../index.js").TInputPluginContext) => void;
|
|
542
|
+
}>[];
|
|
543
|
+
pasteImageHandler: () => Promise<string | null> | string | null;
|
|
544
|
+
filePasteHandler: (absPath: string) => Promise<string | null> | string | null;
|
|
545
|
+
}, {}>;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
import type { Style } from "../../core/types.js";
|
|
3
|
+
import type { TInputPlugin } from "./input/plugins/types.js";
|
|
4
|
+
export declare const TInputBox: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
x: {
|
|
6
|
+
type: NumberConstructor;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
y: {
|
|
10
|
+
type: NumberConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
w: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
h: {
|
|
18
|
+
type: NumberConstructor;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
zIndex: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
title: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
padding: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
modelValue: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
placeholder: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
style: {
|
|
42
|
+
type: PropType<Style>;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
autoFocus: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
plugins: {
|
|
50
|
+
type: PropType<readonly TInputPlugin[]>;
|
|
51
|
+
default: () => never[];
|
|
52
|
+
};
|
|
53
|
+
cursorBlink: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
cursorShape: {
|
|
58
|
+
type: PropType<"block" | "underline" | "bar">;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
blinkInterval: {
|
|
62
|
+
type: NumberConstructor;
|
|
63
|
+
default: number;
|
|
64
|
+
};
|
|
65
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("keydown" | "input" | "focus" | "blur" | "change" | "update:modelValue")[], "keydown" | "input" | "focus" | "blur" | "change" | "update:modelValue", (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps), Readonly<import("vue").ExtractPropTypes<{
|
|
68
|
+
x: {
|
|
69
|
+
type: NumberConstructor;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
y: {
|
|
73
|
+
type: NumberConstructor;
|
|
74
|
+
required: true;
|
|
75
|
+
};
|
|
76
|
+
w: {
|
|
77
|
+
type: NumberConstructor;
|
|
78
|
+
required: true;
|
|
79
|
+
};
|
|
80
|
+
h: {
|
|
81
|
+
type: NumberConstructor;
|
|
82
|
+
required: true;
|
|
83
|
+
};
|
|
84
|
+
zIndex: {
|
|
85
|
+
type: NumberConstructor;
|
|
86
|
+
default: number;
|
|
87
|
+
};
|
|
88
|
+
title: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
padding: {
|
|
93
|
+
type: NumberConstructor;
|
|
94
|
+
default: number;
|
|
95
|
+
};
|
|
96
|
+
modelValue: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
required: true;
|
|
99
|
+
};
|
|
100
|
+
placeholder: {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
default: string;
|
|
103
|
+
};
|
|
104
|
+
style: {
|
|
105
|
+
type: PropType<Style>;
|
|
106
|
+
default: undefined;
|
|
107
|
+
};
|
|
108
|
+
autoFocus: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
plugins: {
|
|
113
|
+
type: PropType<readonly TInputPlugin[]>;
|
|
114
|
+
default: () => never[];
|
|
115
|
+
};
|
|
116
|
+
cursorBlink: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
default: boolean;
|
|
119
|
+
};
|
|
120
|
+
cursorShape: {
|
|
121
|
+
type: PropType<"block" | "underline" | "bar">;
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
blinkInterval: {
|
|
125
|
+
type: NumberConstructor;
|
|
126
|
+
default: number;
|
|
127
|
+
};
|
|
128
|
+
}>> & Readonly<{
|
|
129
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
130
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
131
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
132
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
133
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
134
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
135
|
+
}>, {
|
|
136
|
+
style: Readonly<{
|
|
137
|
+
fg?: string;
|
|
138
|
+
bg?: string;
|
|
139
|
+
bold?: boolean;
|
|
140
|
+
dim?: boolean;
|
|
141
|
+
italic?: boolean;
|
|
142
|
+
underline?: boolean;
|
|
143
|
+
inverse?: boolean;
|
|
144
|
+
href?: string;
|
|
145
|
+
}>;
|
|
146
|
+
title: string;
|
|
147
|
+
zIndex: number;
|
|
148
|
+
padding: number;
|
|
149
|
+
autoFocus: boolean;
|
|
150
|
+
placeholder: string;
|
|
151
|
+
cursorBlink: boolean;
|
|
152
|
+
cursorShape: "underline" | "block" | "bar";
|
|
153
|
+
blinkInterval: number;
|
|
154
|
+
plugins: readonly Readonly<{
|
|
155
|
+
name: string;
|
|
156
|
+
install: (ctx: import("../index.js").TInputPluginContext) => void;
|
|
157
|
+
}>[];
|
|
158
|
+
}, {}>;
|