@simon_he/vue-tui 1.0.0-rc.0 → 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 +17 -8
- package/dist/{TSelect-BmSkar0D.js → TSelect-BwJJbuTt.js} +1275 -3883
- 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/block-source-CKUOnkgT.js +1663 -0
- package/dist/cli/node-file-writers.d.ts +1 -0
- package/dist/cli.cjs +508 -111
- package/dist/cli.d.cts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +443 -89
- package/dist/core/terminal/create-terminal.d.ts +3 -2
- package/dist/core.cjs +120 -39
- package/dist/core.js +7 -5
- package/dist/{ansi-palette-Bv5Vqr4k.js → create-terminal-C2oiWFJU.js} +19 -84
- package/dist/create-terminal-app.d.ts +2 -0
- package/dist/{dom-renderer-CDVQIcIL.js → dom-renderer-BqGijQID.js} +3 -2
- package/dist/env-Cl8qmNFN.js +19 -0
- package/dist/experimental.cjs +2747 -509
- package/dist/experimental.d.cts +3 -0
- package/dist/experimental.d.ts +3 -0
- package/dist/experimental.js +9 -7519
- package/dist/frame-perf-C6Xfg85O.js +24 -0
- package/dist/{hyperlink-B5PD7a3Q.js → hyperlink-Bn02UXJb.js} +89 -1
- package/dist/index.cjs +4628 -618
- package/dist/index.d.cts +22 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +16 -12
- package/dist/linkify-D_gzn9Xq.js +562 -0
- package/dist/markdown.cjs +447 -118
- package/dist/markdown.d.cts +2 -1
- package/dist/markdown.d.ts +2 -1
- package/dist/markdown.js +34 -1493
- package/dist/observability/frame-perf-store.d.ts +5 -0
- package/dist/observability/perf-sink.d.ts +56 -0
- package/dist/observability.cjs +125 -3
- package/dist/observability.d.cts +2 -0
- package/dist/observability.d.ts +2 -0
- package/dist/observability.js +3 -2
- package/dist/{path-DDiSCXrQ.js → path-mnSgEpCm.js} +1 -19
- package/dist/{path-suggest-0Q2BDsuj.js → path-suggest-BNqcuE3-.js} +1 -1
- package/dist/renderer-dom.cjs +0 -6
- package/dist/renderer-dom.js +5 -4
- package/dist/{runtime-DtrcQidD.js → runtime-rfcZCyJq.js} +1 -1
- package/dist/runtime.cjs +4 -3
- package/dist/runtime.js +2 -2
- package/dist/selection/terminal-selection.d.ts +2 -1
- package/dist/{terminal-selection-BCOh9jsL.js → terminal-selection-DBinO6p5.js} +3 -2
- package/dist/tlog-theme-qPBt5rge.js +9254 -0
- package/dist/trace-CjzYeIxN.js +182 -0
- package/dist/utils/grapheme.d.ts +5 -0
- package/dist/vue/agent/view-models.d.ts +98 -0
- package/dist/vue/components/TAnchor.d.ts +7 -7
- 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 +1 -1
- package/dist/vue/components/TDialog.d.ts +16 -17
- package/dist/vue/components/TFeedback.d.ts +635 -0
- package/dist/vue/components/TForm.d.ts +1230 -0
- package/dist/vue/components/TInput.d.ts +50 -59
- package/dist/vue/components/TInputBox.d.ts +6 -6
- package/dist/vue/components/TJsonEditor.d.ts +4 -4
- 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 +5 -5
- package/dist/vue/components/TLogLinksPanel.d.ts +4 -4
- package/dist/vue/components/TLogMinimap.d.ts +10 -10
- package/dist/vue/components/TLogScrollbar.d.ts +12 -12
- package/dist/vue/components/TLogSearchBar.d.ts +7 -7
- package/dist/vue/components/TLogSearchResults.d.ts +6 -6
- package/dist/vue/components/TLogView.d.ts +54 -20
- package/dist/vue/components/TLogVirtualLinksPanel.d.ts +4 -4
- package/dist/vue/components/TLogVirtualSearchResults.d.ts +4 -4
- package/dist/vue/components/TMarkdownText.d.ts +3 -3
- 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 +22 -22
- package/dist/vue/components/TSelect.d.ts +140 -20
- package/dist/vue/components/TTable.d.ts +317 -0
- package/dist/vue/components/TText.d.ts +1 -1
- 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/TTree.d.ts +200 -0
- package/dist/vue/components/TUserMessageView.d.ts +344 -0
- package/dist/vue/components/TView.d.ts +11 -11
- package/dist/vue/components/TVirtualList.d.ts +5 -5
- package/dist/vue/components/TVirtualMarkdown.d.ts +6 -6
- package/dist/vue/components/TVirtualRows.d.ts +247 -0
- package/dist/vue/components/TerminalProvider.d.ts +23 -0
- package/dist/vue/components/link/host.d.ts +15 -0
- package/dist/vue/components/simple-utils.d.ts +5 -0
- package/dist/vue/index.d.ts +31 -1
- package/dist/vue/linkify.d.ts +11 -0
- package/dist/vue/markdown/document.d.ts +2 -0
- package/dist/vue/markdown/layout.d.ts +6 -1
- package/dist/vue/markdown/types.d.ts +12 -0
- package/dist/vue/overlay.d.ts +27 -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/row-scroll.d.ts +25 -0
- package/dist/vue/utils/text.d.ts +1 -0
- package/dist/vue.cjs +17210 -12424
- package/dist/vue.d.cts +0 -2
- package/dist/vue.d.ts +0 -2
- package/dist/vue.js +918 -27
- package/dist/{wheel-scroll-B-WlFuNB.js → wheel-scroll-vBRaQ7p-.js} +48 -43
- package/package.json +24 -4
- package/dist/frame-perf-C-w8mjJL.js +0 -98
- package/dist/style-cache-i0ZABZRq.js +0 -178
- /package/dist/{sgr-DMK2AvuT.js → sgr-BmzxEjAO.js} +0 -0
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
import type { Style } from "../../core/types.js";
|
|
3
|
+
export type TTabsItem = Readonly<{
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
badge?: string | number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const TTabs: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
|
+
x: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
y: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
w: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
zIndex: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
default: number;
|
|
25
|
+
};
|
|
26
|
+
items: {
|
|
27
|
+
type: PropType<readonly TTabsItem[]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
activeKey: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
style: {
|
|
35
|
+
type: PropType<Style>;
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
38
|
+
activeStyle: {
|
|
39
|
+
type: PropType<Style>;
|
|
40
|
+
default: () => {
|
|
41
|
+
inverse: boolean;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
disabledStyle: {
|
|
45
|
+
type: PropType<Style>;
|
|
46
|
+
default: () => {
|
|
47
|
+
dim: boolean;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
|
+
"update:activeKey": (_key: string) => true;
|
|
54
|
+
change: (_item: TTabsItem) => true;
|
|
55
|
+
}, string, (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps), Readonly<import("vue").ExtractPropTypes<{
|
|
56
|
+
x: {
|
|
57
|
+
type: NumberConstructor;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
y: {
|
|
61
|
+
type: NumberConstructor;
|
|
62
|
+
required: true;
|
|
63
|
+
};
|
|
64
|
+
w: {
|
|
65
|
+
type: NumberConstructor;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
zIndex: {
|
|
69
|
+
type: NumberConstructor;
|
|
70
|
+
default: number;
|
|
71
|
+
};
|
|
72
|
+
items: {
|
|
73
|
+
type: PropType<readonly TTabsItem[]>;
|
|
74
|
+
required: true;
|
|
75
|
+
};
|
|
76
|
+
activeKey: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
required: true;
|
|
79
|
+
};
|
|
80
|
+
style: {
|
|
81
|
+
type: PropType<Style>;
|
|
82
|
+
default: undefined;
|
|
83
|
+
};
|
|
84
|
+
activeStyle: {
|
|
85
|
+
type: PropType<Style>;
|
|
86
|
+
default: () => {
|
|
87
|
+
inverse: boolean;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
disabledStyle: {
|
|
91
|
+
type: PropType<Style>;
|
|
92
|
+
default: () => {
|
|
93
|
+
dim: boolean;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
}>> & Readonly<{
|
|
97
|
+
onChange?: ((_item: Readonly<{
|
|
98
|
+
key: string;
|
|
99
|
+
label: string;
|
|
100
|
+
badge?: string | number;
|
|
101
|
+
disabled?: boolean;
|
|
102
|
+
}>) => any) | undefined;
|
|
103
|
+
"onUpdate:activeKey"?: ((_key: string) => any) | undefined;
|
|
104
|
+
}>, {
|
|
105
|
+
style: Readonly<{
|
|
106
|
+
fg?: string;
|
|
107
|
+
bg?: string;
|
|
108
|
+
bold?: boolean;
|
|
109
|
+
dim?: boolean;
|
|
110
|
+
italic?: boolean;
|
|
111
|
+
underline?: boolean;
|
|
112
|
+
inverse?: boolean;
|
|
113
|
+
href?: string;
|
|
114
|
+
}>;
|
|
115
|
+
zIndex: number;
|
|
116
|
+
activeStyle: Readonly<{
|
|
117
|
+
fg?: string;
|
|
118
|
+
bg?: string;
|
|
119
|
+
bold?: boolean;
|
|
120
|
+
dim?: boolean;
|
|
121
|
+
italic?: boolean;
|
|
122
|
+
underline?: boolean;
|
|
123
|
+
inverse?: boolean;
|
|
124
|
+
href?: string;
|
|
125
|
+
}>;
|
|
126
|
+
disabledStyle: Readonly<{
|
|
127
|
+
fg?: string;
|
|
128
|
+
bg?: string;
|
|
129
|
+
bold?: boolean;
|
|
130
|
+
dim?: boolean;
|
|
131
|
+
italic?: boolean;
|
|
132
|
+
underline?: boolean;
|
|
133
|
+
inverse?: boolean;
|
|
134
|
+
href?: string;
|
|
135
|
+
}>;
|
|
136
|
+
}, {}>;
|
|
137
|
+
export type TSplitPaneDirection = "horizontal" | "vertical";
|
|
138
|
+
export type TSplitPaneRect = Readonly<{
|
|
139
|
+
x: number;
|
|
140
|
+
y: number;
|
|
141
|
+
w: number;
|
|
142
|
+
h: number;
|
|
143
|
+
}>;
|
|
144
|
+
export declare const TSplitPane: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
145
|
+
x: {
|
|
146
|
+
type: NumberConstructor;
|
|
147
|
+
required: true;
|
|
148
|
+
};
|
|
149
|
+
y: {
|
|
150
|
+
type: NumberConstructor;
|
|
151
|
+
required: true;
|
|
152
|
+
};
|
|
153
|
+
w: {
|
|
154
|
+
type: NumberConstructor;
|
|
155
|
+
required: true;
|
|
156
|
+
};
|
|
157
|
+
h: {
|
|
158
|
+
type: NumberConstructor;
|
|
159
|
+
required: true;
|
|
160
|
+
};
|
|
161
|
+
zIndex: {
|
|
162
|
+
type: NumberConstructor;
|
|
163
|
+
default: number;
|
|
164
|
+
};
|
|
165
|
+
direction: {
|
|
166
|
+
type: PropType<TSplitPaneDirection>;
|
|
167
|
+
default: string;
|
|
168
|
+
};
|
|
169
|
+
sizes: {
|
|
170
|
+
type: PropType<readonly number[]>;
|
|
171
|
+
required: true;
|
|
172
|
+
};
|
|
173
|
+
minSizes: {
|
|
174
|
+
type: PropType<readonly number[]>;
|
|
175
|
+
default: () => never[];
|
|
176
|
+
};
|
|
177
|
+
separatorStyle: {
|
|
178
|
+
type: PropType<Style>;
|
|
179
|
+
default: () => {
|
|
180
|
+
dim: boolean;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
184
|
+
[key: string]: any;
|
|
185
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
186
|
+
"update:sizes": (_sizes: number[]) => true;
|
|
187
|
+
resize: (_sizes: number[]) => true;
|
|
188
|
+
}, string, (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps), Readonly<import("vue").ExtractPropTypes<{
|
|
189
|
+
x: {
|
|
190
|
+
type: NumberConstructor;
|
|
191
|
+
required: true;
|
|
192
|
+
};
|
|
193
|
+
y: {
|
|
194
|
+
type: NumberConstructor;
|
|
195
|
+
required: true;
|
|
196
|
+
};
|
|
197
|
+
w: {
|
|
198
|
+
type: NumberConstructor;
|
|
199
|
+
required: true;
|
|
200
|
+
};
|
|
201
|
+
h: {
|
|
202
|
+
type: NumberConstructor;
|
|
203
|
+
required: true;
|
|
204
|
+
};
|
|
205
|
+
zIndex: {
|
|
206
|
+
type: NumberConstructor;
|
|
207
|
+
default: number;
|
|
208
|
+
};
|
|
209
|
+
direction: {
|
|
210
|
+
type: PropType<TSplitPaneDirection>;
|
|
211
|
+
default: string;
|
|
212
|
+
};
|
|
213
|
+
sizes: {
|
|
214
|
+
type: PropType<readonly number[]>;
|
|
215
|
+
required: true;
|
|
216
|
+
};
|
|
217
|
+
minSizes: {
|
|
218
|
+
type: PropType<readonly number[]>;
|
|
219
|
+
default: () => never[];
|
|
220
|
+
};
|
|
221
|
+
separatorStyle: {
|
|
222
|
+
type: PropType<Style>;
|
|
223
|
+
default: () => {
|
|
224
|
+
dim: boolean;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
}>> & Readonly<{
|
|
228
|
+
onResize?: ((_sizes: number[]) => any) | undefined;
|
|
229
|
+
"onUpdate:sizes"?: ((_sizes: number[]) => any) | undefined;
|
|
230
|
+
}>, {
|
|
231
|
+
zIndex: number;
|
|
232
|
+
direction: TSplitPaneDirection;
|
|
233
|
+
minSizes: readonly number[];
|
|
234
|
+
separatorStyle: Readonly<{
|
|
235
|
+
fg?: string;
|
|
236
|
+
bg?: string;
|
|
237
|
+
bold?: boolean;
|
|
238
|
+
dim?: boolean;
|
|
239
|
+
italic?: boolean;
|
|
240
|
+
underline?: boolean;
|
|
241
|
+
inverse?: boolean;
|
|
242
|
+
href?: string;
|
|
243
|
+
}>;
|
|
244
|
+
}, {}>;
|
|
@@ -73,7 +73,7 @@ export declare const TPathPicker: import("vue").DefineComponent<import("vue").Ex
|
|
|
73
73
|
};
|
|
74
74
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
75
75
|
[key: string]: any;
|
|
76
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("keydown" | "
|
|
76
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("keydown" | "focus" | "blur" | "select" | "invalid" | "update:modelValue")[], "keydown" | "focus" | "blur" | "select" | "invalid" | "update:modelValue", (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps), Readonly<import("vue").ExtractPropTypes<{
|
|
77
77
|
x: {
|
|
78
78
|
type: NumberConstructor;
|
|
79
79
|
required: true;
|
|
@@ -144,9 +144,9 @@ export declare const TPathPicker: import("vue").DefineComponent<import("vue").Ex
|
|
|
144
144
|
};
|
|
145
145
|
}>> & Readonly<{
|
|
146
146
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
147
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
148
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
|
149
147
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
148
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
149
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
150
150
|
onInvalid?: ((...args: any[]) => any) | undefined;
|
|
151
151
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
152
152
|
}>, {
|
|
@@ -163,7 +163,9 @@ export declare const TPathPicker: import("vue").DefineComponent<import("vue").Ex
|
|
|
163
163
|
href?: string;
|
|
164
164
|
}>;
|
|
165
165
|
zIndex: number;
|
|
166
|
-
|
|
166
|
+
autoFocus: boolean;
|
|
167
|
+
placeholder: string;
|
|
168
|
+
matchStyle: Readonly<{
|
|
167
169
|
fg?: string;
|
|
168
170
|
bg?: string;
|
|
169
171
|
bold?: boolean;
|
|
@@ -173,8 +175,21 @@ export declare const TPathPicker: import("vue").DefineComponent<import("vue").Ex
|
|
|
173
175
|
inverse?: boolean;
|
|
174
176
|
href?: string;
|
|
175
177
|
}>;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
+
provider: Readonly<{
|
|
179
|
+
listDir: (absDir: string) => Promise<import("../../cli.js").FsDirEntry[]>;
|
|
180
|
+
stat: (absPath: string) => Promise<import("../../cli.js").FsStat>;
|
|
181
|
+
suggest?: (info: Readonly<{
|
|
182
|
+
workspaceAbs: string;
|
|
183
|
+
input: string;
|
|
184
|
+
mode: PathPickMode;
|
|
185
|
+
max: number;
|
|
186
|
+
showHidden?: boolean;
|
|
187
|
+
maxDepth?: number;
|
|
188
|
+
gitignore?: "blocking" | "nonBlocking";
|
|
189
|
+
}>) => Promise<import("../../cli.js").SuggestPathsResult>;
|
|
190
|
+
resolvePath?: (workspaceAbs: string, input: string) => string | Promise<string>;
|
|
191
|
+
}>;
|
|
192
|
+
inputStyle: Readonly<{
|
|
178
193
|
fg?: string;
|
|
179
194
|
bg?: string;
|
|
180
195
|
bold?: boolean;
|
|
@@ -184,8 +199,7 @@ export declare const TPathPicker: import("vue").DefineComponent<import("vue").Ex
|
|
|
184
199
|
inverse?: boolean;
|
|
185
200
|
href?: string;
|
|
186
201
|
}>;
|
|
187
|
-
|
|
188
|
-
inputStyle: Readonly<{
|
|
202
|
+
activeStyle: Readonly<{
|
|
189
203
|
fg?: string;
|
|
190
204
|
bg?: string;
|
|
191
205
|
bold?: boolean;
|
|
@@ -196,18 +210,4 @@ export declare const TPathPicker: import("vue").DefineComponent<import("vue").Ex
|
|
|
196
210
|
href?: string;
|
|
197
211
|
}>;
|
|
198
212
|
maxSuggestions: number;
|
|
199
|
-
provider: Readonly<{
|
|
200
|
-
listDir: (absDir: string) => Promise<import("../../cli.js").FsDirEntry[]>;
|
|
201
|
-
stat: (absPath: string) => Promise<import("../../cli.js").FsStat>;
|
|
202
|
-
suggest?: (info: Readonly<{
|
|
203
|
-
workspaceAbs: string;
|
|
204
|
-
input: string;
|
|
205
|
-
mode: PathPickMode;
|
|
206
|
-
max: number;
|
|
207
|
-
showHidden?: boolean;
|
|
208
|
-
maxDepth?: number;
|
|
209
|
-
gitignore?: "blocking" | "nonBlocking";
|
|
210
|
-
}>) => Promise<import("../../cli.js").SuggestPathsResult>;
|
|
211
|
-
resolvePath?: (workspaceAbs: string, input: string) => string | Promise<string>;
|
|
212
|
-
}>;
|
|
213
213
|
}, {}>;
|
|
@@ -11,8 +11,10 @@ type TextAccentSegment = Readonly<{
|
|
|
11
11
|
highlightStyle?: Style;
|
|
12
12
|
}>;
|
|
13
13
|
export type SelectOptionWithStyle = Readonly<{
|
|
14
|
-
kind?: "separator";
|
|
14
|
+
kind?: "option" | "separator" | "group";
|
|
15
15
|
label: string;
|
|
16
|
+
value?: unknown;
|
|
17
|
+
disabled?: boolean;
|
|
16
18
|
detail?: string;
|
|
17
19
|
style?: Style;
|
|
18
20
|
highlightStyle?: Style;
|
|
@@ -29,9 +31,15 @@ export type SelectOptionWithStyle = Readonly<{
|
|
|
29
31
|
export type SelectOption = string | SelectOptionWithStyle;
|
|
30
32
|
export type TSelectMultipleChangePayload = Readonly<{
|
|
31
33
|
indices: number[];
|
|
32
|
-
|
|
34
|
+
labels: string[];
|
|
35
|
+
values: unknown[];
|
|
33
36
|
}>;
|
|
34
|
-
export type TSelectMultipleEmitMode = "value" | "index" | "both";
|
|
37
|
+
export type TSelectMultipleEmitMode = "label" | "value" | "index" | "both";
|
|
38
|
+
export type TSelectModelValue = unknown;
|
|
39
|
+
export type TSelectValueMode = "index" | "value" | "option";
|
|
40
|
+
export type TSelectOptionProvider = (query: string, ctx: {
|
|
41
|
+
signal: AbortSignal;
|
|
42
|
+
}) => Promise<readonly SelectOption[]>;
|
|
35
43
|
export declare const TSelect: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
36
44
|
x: {
|
|
37
45
|
type: NumberConstructor;
|
|
@@ -54,12 +62,28 @@ export declare const TSelect: import("vue").DefineComponent<import("vue").Extrac
|
|
|
54
62
|
default: number;
|
|
55
63
|
};
|
|
56
64
|
options: {
|
|
57
|
-
type: PropType<SelectOption[]>;
|
|
58
|
-
|
|
65
|
+
type: PropType<readonly SelectOption[]>;
|
|
66
|
+
default: () => never[];
|
|
67
|
+
};
|
|
68
|
+
optionProvider: {
|
|
69
|
+
type: PropType<TSelectOptionProvider>;
|
|
70
|
+
default: undefined;
|
|
71
|
+
};
|
|
72
|
+
query: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: undefined;
|
|
59
75
|
};
|
|
60
76
|
modelValue: {
|
|
61
|
-
type: PropType<
|
|
62
|
-
default:
|
|
77
|
+
type: PropType<TSelectModelValue>;
|
|
78
|
+
default: TSelectModelValue;
|
|
79
|
+
};
|
|
80
|
+
valueMode: {
|
|
81
|
+
type: PropType<TSelectValueMode>;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
activeIndex: {
|
|
85
|
+
type: NumberConstructor;
|
|
86
|
+
default: undefined;
|
|
63
87
|
};
|
|
64
88
|
multiple: {
|
|
65
89
|
type: BooleanConstructor;
|
|
@@ -93,9 +117,41 @@ export declare const TSelect: import("vue").DefineComponent<import("vue").Extrac
|
|
|
93
117
|
type: BooleanConstructor;
|
|
94
118
|
default: boolean;
|
|
95
119
|
};
|
|
120
|
+
searchable: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
typeahead: {
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
128
|
+
debounce: {
|
|
129
|
+
type: NumberConstructor;
|
|
130
|
+
default: number;
|
|
131
|
+
};
|
|
132
|
+
emptyText: {
|
|
133
|
+
type: StringConstructor;
|
|
134
|
+
default: string;
|
|
135
|
+
};
|
|
136
|
+
loading: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
140
|
+
loadingText: {
|
|
141
|
+
type: StringConstructor;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
errorText: {
|
|
145
|
+
type: StringConstructor;
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
maxVisible: {
|
|
149
|
+
type: NumberConstructor;
|
|
150
|
+
default: undefined;
|
|
151
|
+
};
|
|
96
152
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
97
153
|
[key: string]: any;
|
|
98
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
154
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("keydown" | "focus" | "blur" | "change" | "close" | "update:modelValue" | "confirm" | "update:activeIndex" | "update:query" | "loadError")[], "keydown" | "focus" | "blur" | "change" | "close" | "update:modelValue" | "confirm" | "update:activeIndex" | "update:query" | "loadError", (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps), Readonly<import("vue").ExtractPropTypes<{
|
|
99
155
|
x: {
|
|
100
156
|
type: NumberConstructor;
|
|
101
157
|
required: true;
|
|
@@ -117,12 +173,28 @@ export declare const TSelect: import("vue").DefineComponent<import("vue").Extrac
|
|
|
117
173
|
default: number;
|
|
118
174
|
};
|
|
119
175
|
options: {
|
|
120
|
-
type: PropType<SelectOption[]>;
|
|
121
|
-
|
|
176
|
+
type: PropType<readonly SelectOption[]>;
|
|
177
|
+
default: () => never[];
|
|
178
|
+
};
|
|
179
|
+
optionProvider: {
|
|
180
|
+
type: PropType<TSelectOptionProvider>;
|
|
181
|
+
default: undefined;
|
|
182
|
+
};
|
|
183
|
+
query: {
|
|
184
|
+
type: StringConstructor;
|
|
185
|
+
default: undefined;
|
|
122
186
|
};
|
|
123
187
|
modelValue: {
|
|
124
|
-
type: PropType<
|
|
125
|
-
default:
|
|
188
|
+
type: PropType<TSelectModelValue>;
|
|
189
|
+
default: TSelectModelValue;
|
|
190
|
+
};
|
|
191
|
+
valueMode: {
|
|
192
|
+
type: PropType<TSelectValueMode>;
|
|
193
|
+
default: string;
|
|
194
|
+
};
|
|
195
|
+
activeIndex: {
|
|
196
|
+
type: NumberConstructor;
|
|
197
|
+
default: undefined;
|
|
126
198
|
};
|
|
127
199
|
multiple: {
|
|
128
200
|
type: BooleanConstructor;
|
|
@@ -156,15 +228,51 @@ export declare const TSelect: import("vue").DefineComponent<import("vue").Extrac
|
|
|
156
228
|
type: BooleanConstructor;
|
|
157
229
|
default: boolean;
|
|
158
230
|
};
|
|
231
|
+
searchable: {
|
|
232
|
+
type: BooleanConstructor;
|
|
233
|
+
default: boolean;
|
|
234
|
+
};
|
|
235
|
+
typeahead: {
|
|
236
|
+
type: BooleanConstructor;
|
|
237
|
+
default: boolean;
|
|
238
|
+
};
|
|
239
|
+
debounce: {
|
|
240
|
+
type: NumberConstructor;
|
|
241
|
+
default: number;
|
|
242
|
+
};
|
|
243
|
+
emptyText: {
|
|
244
|
+
type: StringConstructor;
|
|
245
|
+
default: string;
|
|
246
|
+
};
|
|
247
|
+
loading: {
|
|
248
|
+
type: BooleanConstructor;
|
|
249
|
+
default: boolean;
|
|
250
|
+
};
|
|
251
|
+
loadingText: {
|
|
252
|
+
type: StringConstructor;
|
|
253
|
+
default: string;
|
|
254
|
+
};
|
|
255
|
+
errorText: {
|
|
256
|
+
type: StringConstructor;
|
|
257
|
+
default: string;
|
|
258
|
+
};
|
|
259
|
+
maxVisible: {
|
|
260
|
+
type: NumberConstructor;
|
|
261
|
+
default: undefined;
|
|
262
|
+
};
|
|
159
263
|
}>> & Readonly<{
|
|
160
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
161
264
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
265
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
162
266
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
163
267
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
164
|
-
|
|
268
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
165
269
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
166
270
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
271
|
+
"onUpdate:activeIndex"?: ((...args: any[]) => any) | undefined;
|
|
272
|
+
"onUpdate:query"?: ((...args: any[]) => any) | undefined;
|
|
273
|
+
onLoadError?: ((...args: any[]) => any) | undefined;
|
|
167
274
|
}>, {
|
|
275
|
+
query: string;
|
|
168
276
|
style: Readonly<{
|
|
169
277
|
fg?: string;
|
|
170
278
|
bg?: string;
|
|
@@ -176,9 +284,10 @@ export declare const TSelect: import("vue").DefineComponent<import("vue").Extrac
|
|
|
176
284
|
href?: string;
|
|
177
285
|
}>;
|
|
178
286
|
zIndex: number;
|
|
179
|
-
modelValue: number | number[];
|
|
180
287
|
autoFocus: boolean;
|
|
181
|
-
|
|
288
|
+
modelValue: unknown;
|
|
289
|
+
closeOnBlur: boolean;
|
|
290
|
+
highlightStyle: Readonly<{
|
|
182
291
|
fg?: string;
|
|
183
292
|
bg?: string;
|
|
184
293
|
bold?: boolean;
|
|
@@ -188,8 +297,13 @@ export declare const TSelect: import("vue").DefineComponent<import("vue").Extrac
|
|
|
188
297
|
inverse?: boolean;
|
|
189
298
|
href?: string;
|
|
190
299
|
}>;
|
|
191
|
-
|
|
192
|
-
|
|
300
|
+
options: readonly SelectOption[];
|
|
301
|
+
optionProvider: TSelectOptionProvider;
|
|
302
|
+
valueMode: TSelectValueMode;
|
|
303
|
+
activeIndex: number;
|
|
304
|
+
multiple: boolean;
|
|
305
|
+
multipleEmit: TSelectMultipleEmitMode;
|
|
306
|
+
matchStyle: Readonly<{
|
|
193
307
|
fg?: string;
|
|
194
308
|
bg?: string;
|
|
195
309
|
bold?: boolean;
|
|
@@ -199,8 +313,6 @@ export declare const TSelect: import("vue").DefineComponent<import("vue").Extrac
|
|
|
199
313
|
inverse?: boolean;
|
|
200
314
|
href?: string;
|
|
201
315
|
}>;
|
|
202
|
-
multiple: boolean;
|
|
203
|
-
multipleEmit: TSelectMultipleEmitMode;
|
|
204
316
|
highlightMatchStyle: Readonly<{
|
|
205
317
|
fg?: string;
|
|
206
318
|
bg?: string;
|
|
@@ -211,5 +323,13 @@ export declare const TSelect: import("vue").DefineComponent<import("vue").Extrac
|
|
|
211
323
|
inverse?: boolean;
|
|
212
324
|
href?: string;
|
|
213
325
|
}>;
|
|
326
|
+
searchable: boolean;
|
|
327
|
+
typeahead: boolean;
|
|
328
|
+
debounce: number;
|
|
329
|
+
emptyText: string;
|
|
330
|
+
loading: boolean;
|
|
331
|
+
loadingText: string;
|
|
332
|
+
errorText: string;
|
|
333
|
+
maxVisible: number;
|
|
214
334
|
}, {}>;
|
|
215
335
|
export {};
|