@simon_he/vue-tui 0.0.7 → 1.0.0-rc.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.
Files changed (207) hide show
  1. package/README.md +222 -444
  2. package/dist/TSelect-BmSkar0D.js +8697 -0
  3. package/dist/ansi-palette-Bv5Vqr4k.js +1499 -0
  4. package/dist/ansi-styles.d.ts +200 -0
  5. package/dist/cli/headless-renderer.d.ts +29 -0
  6. package/dist/cli/input.d.ts +49 -0
  7. package/dist/cli/node-file-writers.d.ts +12 -0
  8. package/dist/cli/node-module.d.ts +2 -0
  9. package/dist/cli/parse-kitty.d.ts +2 -0
  10. package/dist/cli/parse-mouse.d.ts +2 -0
  11. package/dist/cli/parse-utils.d.ts +14 -0
  12. package/dist/cli/parse-xterm.d.ts +2 -0
  13. package/dist/cli/path-provider-types.d.ts +1 -0
  14. package/dist/cli/path-provider.d.ts +4 -0
  15. package/dist/cli/path-suggest-core.d.ts +1 -0
  16. package/dist/cli/path-suggest.d.ts +15 -0
  17. package/dist/cli/recording.d.ts +4 -0
  18. package/dist/cli/stdin-buffer.d.ts +33 -0
  19. package/dist/cli.cjs +10664 -0
  20. package/dist/cli.d.cts +22 -0
  21. package/dist/cli.d.ts +22 -0
  22. package/dist/cli.js +9521 -0
  23. package/dist/core/ansi/capability.d.ts +20 -0
  24. package/dist/core/ansi/colors.d.ts +41 -0
  25. package/dist/core/ansi/sgr.d.ts +7 -0
  26. package/dist/core/ansi/theme.d.ts +6 -0
  27. package/dist/core/ansi-palette.d.ts +14 -0
  28. package/dist/core/buffer/buffer.d.ts +54 -0
  29. package/dist/core/buffer/width.d.ts +4 -0
  30. package/dist/core/debug-logger.d.ts +18 -0
  31. package/dist/core/hyperlink.d.ts +9 -0
  32. package/dist/core/index.d.ts +4 -0
  33. package/dist/core/path-provider-types.d.ts +24 -0
  34. package/dist/core/path-suggest.d.ts +35 -0
  35. package/dist/core/render-plane.d.ts +3 -0
  36. package/dist/core/terminal/create-terminal.d.ts +7 -0
  37. package/dist/core/terminal/emitter.d.ts +7 -0
  38. package/dist/core/types.d.ts +107 -0
  39. package/dist/core.cjs +3072 -0
  40. package/dist/core.d.cts +14 -0
  41. package/dist/core.d.ts +14 -0
  42. package/dist/core.js +422 -0
  43. package/dist/create-terminal-app.d.ts +34 -0
  44. package/dist/dom-renderer-CDVQIcIL.js +1172 -0
  45. package/dist/events/index.d.ts +6 -0
  46. package/dist/events/manager/cli-event-manager.d.ts +22 -0
  47. package/dist/events/manager/event-manager.d.ts +30 -0
  48. package/dist/events/manager/selection-suppression.d.ts +3 -0
  49. package/dist/events/manager/types.d.ts +108 -0
  50. package/dist/events/recording.d.ts +44 -0
  51. package/dist/experimental.cjs +9380 -0
  52. package/dist/experimental.d.cts +39 -0
  53. package/dist/experimental.d.ts +39 -0
  54. package/dist/experimental.js +7624 -0
  55. package/dist/frame-perf-C-w8mjJL.js +98 -0
  56. package/dist/hyperlink-B5PD7a3Q.js +331 -0
  57. package/dist/index.cjs +12037 -16507
  58. package/dist/index.d.cts +13 -0
  59. package/dist/index.d.ts +13 -1353
  60. package/dist/index.js +13 -18738
  61. package/dist/markdown.cjs +21929 -0
  62. package/dist/markdown.d.cts +10 -0
  63. package/dist/markdown.d.ts +10 -0
  64. package/dist/markdown.js +1649 -0
  65. package/dist/observability/cli-latency-node.d.ts +3 -0
  66. package/dist/observability/cli-latency-types.d.ts +41 -0
  67. package/dist/observability/cli-latency.d.ts +3 -0
  68. package/dist/observability/frame-perf-store.d.ts +13 -0
  69. package/dist/observability/frame-perf.d.ts +40 -0
  70. package/dist/observability/trace.d.ts +40 -0
  71. package/dist/observability/tui-profiler.d.ts +33 -0
  72. package/dist/observability.cjs +99 -0
  73. package/dist/observability.d.cts +6 -0
  74. package/dist/observability.d.ts +6 -0
  75. package/dist/observability.js +3 -0
  76. package/dist/path-DDiSCXrQ.js +99 -0
  77. package/dist/path-suggest-0Q2BDsuj.js +274 -0
  78. package/dist/path-suggest-Dk9TRLh5.js +3 -0
  79. package/dist/{path-suggest-CZQYJIIg.js → path-suggest-bvR9SY6Q.js} +86 -18
  80. package/dist/renderer/capabilities.d.ts +13 -0
  81. package/dist/renderer/cli/index.d.ts +2 -0
  82. package/dist/renderer/cli/stdout-metrics.d.ts +18 -0
  83. package/dist/renderer/cli/stdout-renderer.d.ts +48 -0
  84. package/dist/renderer/dom/dom-renderer.d.ts +157 -0
  85. package/dist/renderer/dom/index.d.ts +2 -0
  86. package/dist/renderer/index.d.ts +2 -0
  87. package/dist/renderer-dom.cjs +1511 -0
  88. package/dist/renderer-dom.d.cts +4 -0
  89. package/dist/renderer-dom.d.ts +4 -0
  90. package/dist/renderer-dom.js +6 -0
  91. package/dist/runtime/index.d.ts +36 -0
  92. package/dist/runtime/osc52.d.ts +9 -0
  93. package/dist/runtime-DtrcQidD.js +1197 -0
  94. package/dist/runtime.cjs +1697 -0
  95. package/dist/runtime.d.cts +9 -0
  96. package/dist/runtime.d.ts +9 -0
  97. package/dist/runtime.js +4 -0
  98. package/dist/selection/terminal-selection.d.ts +122 -0
  99. package/dist/sgr-DMK2AvuT.js +304 -0
  100. package/dist/style-cache-i0ZABZRq.js +178 -0
  101. package/dist/terminal-selection-BCOh9jsL.js +329 -0
  102. package/dist/utils/env.d.ts +3 -0
  103. package/dist/utils/newlines.d.ts +1 -0
  104. package/dist/utils/path.d.ts +7 -0
  105. package/dist/utils/url-safety.d.ts +2 -0
  106. package/dist/vue/components/TAnchor.d.ts +108 -0
  107. package/dist/vue/components/TBox.d.ts +144 -0
  108. package/dist/vue/components/TDebugOverlay.d.ts +43 -0
  109. package/dist/vue/components/TDialog.d.ts +256 -0
  110. package/dist/vue/components/TFlow.d.ts +85 -0
  111. package/dist/vue/components/TInput.d.ts +554 -0
  112. package/dist/vue/components/TInputBox.d.ts +158 -0
  113. package/dist/vue/components/TJsonEditor.d.ts +165 -0
  114. package/dist/vue/components/TList.d.ts +119 -0
  115. package/dist/vue/components/TLogLinksPanel.d.ts +238 -0
  116. package/dist/vue/components/TLogMinimap.d.ts +263 -0
  117. package/dist/vue/components/TLogScrollbar.d.ts +236 -0
  118. package/dist/vue/components/TLogSearchBar.d.ts +267 -0
  119. package/dist/vue/components/TLogSearchPager.d.ts +162 -0
  120. package/dist/vue/components/TLogSearchResults.d.ts +200 -0
  121. package/dist/vue/components/TLogView.d.ts +502 -0
  122. package/dist/vue/components/TLogVirtualLinksPanel.d.ts +141 -0
  123. package/dist/vue/components/TLogVirtualSearchResults.d.ts +146 -0
  124. package/dist/vue/components/TMarkdownText.d.ts +134 -0
  125. package/dist/vue/components/TMultilineModal.d.ts +62 -0
  126. package/dist/vue/components/TPathPicker.d.ts +213 -0
  127. package/dist/vue/components/TRenderLayer.d.ts +16 -0
  128. package/dist/vue/components/TRenderPlane.d.ts +17 -0
  129. package/dist/vue/components/TSelect.d.ts +215 -0
  130. package/dist/vue/components/TText.d.ts +116 -0
  131. package/dist/vue/components/TTransition.d.ts +83 -0
  132. package/dist/vue/components/TView.d.ts +127 -0
  133. package/dist/vue/components/TVirtualList.d.ts +182 -0
  134. package/dist/vue/components/TVirtualMarkdown.d.ts +168 -0
  135. package/dist/vue/components/TerminalProvider.d.ts +195 -0
  136. package/dist/vue/components/input/host.d.ts +17 -0
  137. package/dist/vue/components/input/plugins/hostPlugin.d.ts +7 -0
  138. package/dist/vue/components/input/plugins/hostPlugin.node.d.ts +15 -0
  139. package/dist/vue/components/input/plugins/mentionUtils.d.ts +17 -0
  140. package/dist/vue/components/input/plugins/nodeMentionPathProvider.d.ts +2 -0
  141. package/dist/vue/components/input/plugins/promptMentionPlugin.d.ts +8 -0
  142. package/dist/vue/components/input/plugins/promptMentionState.d.ts +98 -0
  143. package/dist/vue/components/input/plugins/restrictText.d.ts +27 -0
  144. package/dist/vue/components/input/plugins/types.d.ts +90 -0
  145. package/dist/vue/components/input/utils/inlineText.d.ts +57 -0
  146. package/dist/vue/components/input/utils/inlineTextTokens.d.ts +34 -0
  147. package/dist/vue/components/input/utils/primitives.d.ts +3 -0
  148. package/dist/vue/components/input/utils/wordNavigation.d.ts +6 -0
  149. package/dist/vue/components/list/list-geometry.d.ts +16 -0
  150. package/dist/vue/components/list/list-paint.d.ts +1 -0
  151. package/dist/vue/components/list/scroll-state.d.ts +25 -0
  152. package/dist/vue/components/list/selection-state.d.ts +6 -0
  153. package/dist/vue/components/terminal-provider/copy-toast.d.ts +6 -0
  154. package/dist/vue/components/terminal-provider/portals.d.ts +17 -0
  155. package/dist/vue/components/terminal-provider/scheduler.d.ts +29 -0
  156. package/dist/vue/components/terminal-provider/selection-config.d.ts +15 -0
  157. package/dist/vue/components/terminal-provider/utils.d.ts +5 -0
  158. package/dist/vue/composables/use-layout.d.ts +2 -0
  159. package/dist/vue/composables/use-render-node.d.ts +19 -0
  160. package/dist/vue/composables/use-render-stack.d.ts +3 -0
  161. package/dist/vue/composables/use-runtime.d.ts +5 -0
  162. package/dist/vue/composables/use-terminal-node.d.ts +14 -0
  163. package/dist/vue/composables/use-terminal.d.ts +2 -0
  164. package/dist/vue/composables/use-visibility.d.ts +12 -0
  165. package/dist/vue/context.d.ts +153 -0
  166. package/dist/vue/index.d.ts +39 -0
  167. package/dist/vue/injection-key.d.ts +2 -0
  168. package/dist/vue/log/append-only-log-store.d.ts +2 -0
  169. package/dist/vue/log/tlog-keymap.d.ts +28 -0
  170. package/dist/vue/log/tlog-plugins.d.ts +144 -0
  171. package/dist/vue/log/tlog-session.d.ts +81 -0
  172. package/dist/vue/log/tlog-theme.d.ts +68 -0
  173. package/dist/vue/log/types.d.ts +43 -0
  174. package/dist/vue/log/use-tlog-link-controller.d.ts +31 -0
  175. package/dist/vue/log/use-tlog-retained-index.d.ts +26 -0
  176. package/dist/vue/log/use-tlog-search-controller.d.ts +51 -0
  177. package/dist/vue/log/use-tlog-search-results-page.d.ts +31 -0
  178. package/dist/vue/log/use-tlog-virtual-search-results.d.ts +22 -0
  179. package/dist/vue/markdown/ast.d.ts +3 -0
  180. package/dist/vue/markdown/block-source.d.ts +22 -0
  181. package/dist/vue/markdown/document.d.ts +18 -0
  182. package/dist/vue/markdown/layout.d.ts +16 -0
  183. package/dist/vue/markdown/parser.d.ts +11 -0
  184. package/dist/vue/markdown/render.d.ts +10 -0
  185. package/dist/vue/markdown/theme.d.ts +186 -0
  186. package/dist/vue/markdown/types.d.ts +47 -0
  187. package/dist/vue/render/context.d.ts +3 -0
  188. package/dist/vue/render/render-manager.d.ts +94 -0
  189. package/dist/vue/router/RouterView.d.ts +25 -0
  190. package/dist/vue/router/composables.d.ts +4 -0
  191. package/dist/vue/router/context.d.ts +4 -0
  192. package/dist/vue/router/router.d.ts +7 -0
  193. package/dist/vue/router/types.d.ts +29 -0
  194. package/dist/vue/scheduler/frame-mailbox.d.ts +55 -0
  195. package/dist/vue/scheduler/frame-scheduler.d.ts +51 -0
  196. package/dist/vue/utils/frame-task.d.ts +6 -0
  197. package/dist/vue/utils/rect.d.ts +4 -0
  198. package/dist/vue/utils/style-cache.d.ts +3 -0
  199. package/dist/vue/utils/text.d.ts +26 -0
  200. package/dist/vue/utils/wheel-scroll.d.ts +18 -0
  201. package/dist/vue.cjs +18882 -0
  202. package/dist/vue.d.cts +3 -0
  203. package/dist/vue.d.ts +3 -0
  204. package/dist/vue.js +3066 -0
  205. package/dist/wheel-scroll-B-WlFuNB.js +819 -0
  206. package/package.json +226 -58
  207. package/dist/path-suggest-DIMby3r0.js +0 -3
@@ -0,0 +1,502 @@
1
+ import type { PropType } from "vue";
2
+ import type { Style } from "../../core/types.js";
3
+ import type { TLogDataSource, TLogViewVisualIndexOptions, TLogViewVisualIndexStatus } from "../log/types.js";
4
+ type RowScrollMode = "off" | "unsafe-full-row";
5
+ type TLogSearchStatus = "idle" | "scanning" | "done" | "error";
6
+ export type TLogViewSearchMode = "text" | "regex";
7
+ export type TLogViewSearchError = Readonly<{
8
+ kind: "invalid-regex";
9
+ query: string;
10
+ flags: string;
11
+ message: string;
12
+ }>;
13
+ export type TLogViewSearchOptions = Readonly<{
14
+ mode?: TLogViewSearchMode;
15
+ caseSensitive?: boolean;
16
+ wholeWord?: boolean;
17
+ maxMatches?: number;
18
+ scanBudgetMs?: number;
19
+ regexFlags?: string;
20
+ maxMatchesPerLine?: number;
21
+ }>;
22
+ export type TLogViewSearchMatch = Readonly<{
23
+ absoluteLineIndex: number;
24
+ index: number;
25
+ startCell: number;
26
+ endCell: number;
27
+ text: string;
28
+ }>;
29
+ export type TLogViewSelectSearchMatchOptions = Readonly<{
30
+ scroll?: boolean;
31
+ align?: "start" | "center" | "end";
32
+ }>;
33
+ export type TLogViewSearchResult = Readonly<{
34
+ matchIndex: number;
35
+ match: TLogViewSearchMatch;
36
+ preview?: TLogViewSearchResultPreview;
37
+ }>;
38
+ export type TLogViewSearchResultPreview = Readonly<{
39
+ text: string;
40
+ matchStartCell: number;
41
+ matchEndCell: number;
42
+ }>;
43
+ export type TLogViewSearchResultsOptions = Readonly<{
44
+ offset?: number;
45
+ limit?: number;
46
+ includePreview?: boolean;
47
+ previewWidth?: number;
48
+ contextCells?: number;
49
+ }>;
50
+ export type TLogViewSearchState = Readonly<{
51
+ query: string;
52
+ status: TLogSearchStatus;
53
+ matchCount: number;
54
+ currentMatchIndex: number;
55
+ error?: TLogViewSearchError | null;
56
+ }>;
57
+ export type TLogViewSearchPayload = Readonly<{
58
+ query: string;
59
+ status: TLogSearchStatus;
60
+ matchCount: number;
61
+ error?: TLogViewSearchError | null;
62
+ }>;
63
+ export type TLogViewSearchMatchPayload = Readonly<{
64
+ match: TLogViewSearchMatch | null;
65
+ currentMatchIndex: number;
66
+ matchCount: number;
67
+ }>;
68
+ export type TLogViewSearchMarker = Readonly<{
69
+ matchIndex: number;
70
+ absoluteLineIndex: number;
71
+ index: number;
72
+ visualRow: number;
73
+ estimated: boolean;
74
+ current: boolean;
75
+ }>;
76
+ export type TLogViewSearchMarkersPayload = Readonly<{
77
+ markers: readonly TLogViewSearchMarker[];
78
+ visualIndexStatus: TLogViewVisualIndexStatus;
79
+ matchCount: number;
80
+ currentMatchIndex: number;
81
+ }>;
82
+ export type TLogViewLinkClickPayload = Readonly<{
83
+ href: string;
84
+ text: string;
85
+ absoluteLineIndex: number;
86
+ index: number;
87
+ startCell: number;
88
+ endCell: number;
89
+ cellX: number;
90
+ cellY: number;
91
+ }>;
92
+ export type TLogViewVisibleLink = Readonly<{
93
+ visibleIndex: number;
94
+ href: string;
95
+ text: string;
96
+ absoluteLineIndex: number;
97
+ index: number;
98
+ startCell: number;
99
+ endCell: number;
100
+ startX: number;
101
+ endX: number;
102
+ y: number;
103
+ focused?: boolean;
104
+ }>;
105
+ export type TLogViewLinkFocusPayload = Readonly<{
106
+ link: TLogViewVisibleLink | null;
107
+ focusedLinkIndex: number;
108
+ }>;
109
+ export type TLogViewLinkActivatePayload = Readonly<{
110
+ link: TLogViewVisibleLink;
111
+ source: "keyboard" | "programmatic";
112
+ }>;
113
+ export type TLogViewVisualIndexPayload = Readonly<{
114
+ status: TLogViewVisualIndexStatus;
115
+ lineCount: number;
116
+ measuredLineCount: number;
117
+ estimatedVisualRowCount: number;
118
+ visualRowCount: number;
119
+ }>;
120
+ export type TLogViewScrollMetrics = Readonly<{
121
+ scrollTop: number;
122
+ maxScrollTop: number;
123
+ viewportRows: number;
124
+ lineCount: number;
125
+ firstLineIndex: number;
126
+ estimatedVisualRowCount: number;
127
+ visualRowCount: number;
128
+ measuredVisualRowCount: number;
129
+ measuredLineCount: number;
130
+ visualIndexStatus: TLogViewVisualIndexStatus;
131
+ atTop: boolean;
132
+ atBottom: boolean;
133
+ }>;
134
+ export type TLogViewHandle = Readonly<{
135
+ scrollToBottom: () => void;
136
+ scrollToTop: () => void;
137
+ scrollToVisualRow: (row: number) => void;
138
+ scrollBy: (delta: number) => void;
139
+ scrollToLine: (index: number, options?: Readonly<{
140
+ align?: "start" | "center" | "end";
141
+ }>) => void;
142
+ refreshViewport: () => void;
143
+ invalidateLine: (index: number) => void;
144
+ invalidateRange: (start: number, end: number) => void;
145
+ findNext: () => void;
146
+ findPrevious: () => void;
147
+ clearSearch: () => void;
148
+ getSearchState: () => TLogViewSearchState;
149
+ selectSearchMatch: (matchIndex: number, options?: TLogViewSelectSearchMatchOptions) => boolean;
150
+ getSearchMatch: (matchIndex: number) => TLogViewSearchMatch | null;
151
+ getSearchResults: (options?: TLogViewSearchResultsOptions) => readonly TLogViewSearchResult[];
152
+ measureVisualIndex: () => void;
153
+ getScrollMetrics: () => TLogViewScrollMetrics;
154
+ getSearchMarkers: () => readonly TLogViewSearchMarker[];
155
+ getVisibleLinks: () => readonly TLogViewVisibleLink[];
156
+ focusVisibleLink: (visibleIndex: number) => boolean;
157
+ focusNextLink: () => boolean;
158
+ focusPreviousLink: () => boolean;
159
+ clearLinkFocus: () => void;
160
+ activateFocusedLink: () => boolean;
161
+ }>;
162
+ export declare const TLogView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
163
+ x: {
164
+ type: NumberConstructor;
165
+ required: true;
166
+ };
167
+ y: {
168
+ type: NumberConstructor;
169
+ required: true;
170
+ };
171
+ w: {
172
+ type: NumberConstructor;
173
+ required: true;
174
+ };
175
+ h: {
176
+ type: NumberConstructor;
177
+ required: true;
178
+ };
179
+ zIndex: {
180
+ type: NumberConstructor;
181
+ default: number;
182
+ };
183
+ source: {
184
+ type: PropType<TLogDataSource>;
185
+ required: true;
186
+ };
187
+ version: {
188
+ type: NumberConstructor;
189
+ required: true;
190
+ };
191
+ scrollTop: {
192
+ type: NumberConstructor;
193
+ default: undefined;
194
+ };
195
+ defaultScrollTop: {
196
+ type: NumberConstructor;
197
+ default: undefined;
198
+ };
199
+ style: {
200
+ type: PropType<Style>;
201
+ default: undefined;
202
+ };
203
+ autoFocus: {
204
+ type: BooleanConstructor;
205
+ default: boolean;
206
+ };
207
+ selectable: {
208
+ type: BooleanConstructor;
209
+ default: boolean;
210
+ };
211
+ autoStickToBottom: {
212
+ type: BooleanConstructor;
213
+ default: boolean;
214
+ };
215
+ overscan: {
216
+ type: NumberConstructor;
217
+ default: number;
218
+ };
219
+ wrap: {
220
+ type: BooleanConstructor;
221
+ default: boolean;
222
+ };
223
+ visualIndexMode: {
224
+ type: PropType<"estimated" | "exact">;
225
+ default: string;
226
+ };
227
+ visualIndexOptions: {
228
+ type: PropType<TLogViewVisualIndexOptions>;
229
+ default: undefined;
230
+ };
231
+ ansi: {
232
+ type: BooleanConstructor;
233
+ default: boolean;
234
+ };
235
+ links: {
236
+ type: BooleanConstructor;
237
+ default: boolean;
238
+ };
239
+ linkStyle: {
240
+ type: PropType<Style>;
241
+ default: () => {
242
+ underline: boolean;
243
+ };
244
+ };
245
+ keyboardLinks: {
246
+ type: BooleanConstructor;
247
+ default: boolean;
248
+ };
249
+ linkFocusStyle: {
250
+ type: PropType<Style>;
251
+ default: () => {
252
+ inverse: boolean;
253
+ };
254
+ };
255
+ searchQuery: {
256
+ type: StringConstructor;
257
+ default: string;
258
+ };
259
+ searchOptions: {
260
+ type: PropType<TLogViewSearchOptions>;
261
+ default: undefined;
262
+ };
263
+ highlightMatches: {
264
+ type: BooleanConstructor;
265
+ default: boolean;
266
+ };
267
+ matchStyle: {
268
+ type: PropType<Style>;
269
+ default: () => {
270
+ inverse: boolean;
271
+ };
272
+ };
273
+ currentMatchStyle: {
274
+ type: PropType<Style>;
275
+ default: () => {
276
+ inverse: boolean;
277
+ bold: boolean;
278
+ };
279
+ };
280
+ rowScrollMode: {
281
+ type: PropType<RowScrollMode>;
282
+ default: string;
283
+ };
284
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
285
+ [key: string]: any;
286
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("keydown" | "search" | "blur" | "focus" | "scroll" | "update:scrollTop" | "update:searchQuery" | "searchMatch" | "searchMarkers" | "linkClick" | "linkFocus" | "linkActivate" | "visualIndex")[], "keydown" | "search" | "blur" | "focus" | "scroll" | "update:scrollTop" | "update:searchQuery" | "searchMatch" | "searchMarkers" | "linkClick" | "linkFocus" | "linkActivate" | "visualIndex", (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps), Readonly<import("vue").ExtractPropTypes<{
287
+ x: {
288
+ type: NumberConstructor;
289
+ required: true;
290
+ };
291
+ y: {
292
+ type: NumberConstructor;
293
+ required: true;
294
+ };
295
+ w: {
296
+ type: NumberConstructor;
297
+ required: true;
298
+ };
299
+ h: {
300
+ type: NumberConstructor;
301
+ required: true;
302
+ };
303
+ zIndex: {
304
+ type: NumberConstructor;
305
+ default: number;
306
+ };
307
+ source: {
308
+ type: PropType<TLogDataSource>;
309
+ required: true;
310
+ };
311
+ version: {
312
+ type: NumberConstructor;
313
+ required: true;
314
+ };
315
+ scrollTop: {
316
+ type: NumberConstructor;
317
+ default: undefined;
318
+ };
319
+ defaultScrollTop: {
320
+ type: NumberConstructor;
321
+ default: undefined;
322
+ };
323
+ style: {
324
+ type: PropType<Style>;
325
+ default: undefined;
326
+ };
327
+ autoFocus: {
328
+ type: BooleanConstructor;
329
+ default: boolean;
330
+ };
331
+ selectable: {
332
+ type: BooleanConstructor;
333
+ default: boolean;
334
+ };
335
+ autoStickToBottom: {
336
+ type: BooleanConstructor;
337
+ default: boolean;
338
+ };
339
+ overscan: {
340
+ type: NumberConstructor;
341
+ default: number;
342
+ };
343
+ wrap: {
344
+ type: BooleanConstructor;
345
+ default: boolean;
346
+ };
347
+ visualIndexMode: {
348
+ type: PropType<"estimated" | "exact">;
349
+ default: string;
350
+ };
351
+ visualIndexOptions: {
352
+ type: PropType<TLogViewVisualIndexOptions>;
353
+ default: undefined;
354
+ };
355
+ ansi: {
356
+ type: BooleanConstructor;
357
+ default: boolean;
358
+ };
359
+ links: {
360
+ type: BooleanConstructor;
361
+ default: boolean;
362
+ };
363
+ linkStyle: {
364
+ type: PropType<Style>;
365
+ default: () => {
366
+ underline: boolean;
367
+ };
368
+ };
369
+ keyboardLinks: {
370
+ type: BooleanConstructor;
371
+ default: boolean;
372
+ };
373
+ linkFocusStyle: {
374
+ type: PropType<Style>;
375
+ default: () => {
376
+ inverse: boolean;
377
+ };
378
+ };
379
+ searchQuery: {
380
+ type: StringConstructor;
381
+ default: string;
382
+ };
383
+ searchOptions: {
384
+ type: PropType<TLogViewSearchOptions>;
385
+ default: undefined;
386
+ };
387
+ highlightMatches: {
388
+ type: BooleanConstructor;
389
+ default: boolean;
390
+ };
391
+ matchStyle: {
392
+ type: PropType<Style>;
393
+ default: () => {
394
+ inverse: boolean;
395
+ };
396
+ };
397
+ currentMatchStyle: {
398
+ type: PropType<Style>;
399
+ default: () => {
400
+ inverse: boolean;
401
+ bold: boolean;
402
+ };
403
+ };
404
+ rowScrollMode: {
405
+ type: PropType<RowScrollMode>;
406
+ default: string;
407
+ };
408
+ }>> & Readonly<{
409
+ onLinkClick?: ((...args: any[]) => any) | undefined;
410
+ onKeydown?: ((...args: any[]) => any) | undefined;
411
+ onBlur?: ((...args: any[]) => any) | undefined;
412
+ onFocus?: ((...args: any[]) => any) | undefined;
413
+ onScroll?: ((...args: any[]) => any) | undefined;
414
+ "onUpdate:scrollTop"?: ((...args: any[]) => any) | undefined;
415
+ onSearch?: ((...args: any[]) => any) | undefined;
416
+ "onUpdate:searchQuery"?: ((...args: any[]) => any) | undefined;
417
+ onSearchMatch?: ((...args: any[]) => any) | undefined;
418
+ onSearchMarkers?: ((...args: any[]) => any) | undefined;
419
+ onLinkFocus?: ((...args: any[]) => any) | undefined;
420
+ onLinkActivate?: ((...args: any[]) => any) | undefined;
421
+ onVisualIndex?: ((...args: any[]) => any) | undefined;
422
+ }>, {
423
+ style: Readonly<{
424
+ fg?: string;
425
+ bg?: string;
426
+ bold?: boolean;
427
+ dim?: boolean;
428
+ italic?: boolean;
429
+ underline?: boolean;
430
+ inverse?: boolean;
431
+ href?: string;
432
+ }>;
433
+ links: boolean;
434
+ zIndex: number;
435
+ selectable: boolean;
436
+ scrollTop: number;
437
+ autoFocus: boolean;
438
+ rowScrollMode: RowScrollMode;
439
+ defaultScrollTop: number;
440
+ autoStickToBottom: boolean;
441
+ overscan: number;
442
+ wrap: boolean;
443
+ visualIndexMode: "estimated" | "exact";
444
+ visualIndexOptions: Readonly<{
445
+ measureBudgetMs?: number;
446
+ maxMeasuredLines?: number;
447
+ }>;
448
+ ansi: boolean;
449
+ linkStyle: 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
+ keyboardLinks: boolean;
460
+ linkFocusStyle: Readonly<{
461
+ fg?: string;
462
+ bg?: string;
463
+ bold?: boolean;
464
+ dim?: boolean;
465
+ italic?: boolean;
466
+ underline?: boolean;
467
+ inverse?: boolean;
468
+ href?: string;
469
+ }>;
470
+ searchQuery: string;
471
+ searchOptions: Readonly<{
472
+ mode?: TLogViewSearchMode;
473
+ caseSensitive?: boolean;
474
+ wholeWord?: boolean;
475
+ maxMatches?: number;
476
+ scanBudgetMs?: number;
477
+ regexFlags?: string;
478
+ maxMatchesPerLine?: number;
479
+ }>;
480
+ highlightMatches: boolean;
481
+ matchStyle: Readonly<{
482
+ fg?: string;
483
+ bg?: string;
484
+ bold?: boolean;
485
+ dim?: boolean;
486
+ italic?: boolean;
487
+ underline?: boolean;
488
+ inverse?: boolean;
489
+ href?: string;
490
+ }>;
491
+ currentMatchStyle: Readonly<{
492
+ fg?: string;
493
+ bg?: string;
494
+ bold?: boolean;
495
+ dim?: boolean;
496
+ italic?: boolean;
497
+ underline?: boolean;
498
+ inverse?: boolean;
499
+ href?: string;
500
+ }>;
501
+ }, {}>;
502
+ export {};
@@ -0,0 +1,141 @@
1
+ import type { PropType } from "vue";
2
+ import type { Style } from "../../core/types.js";
3
+ import type { RowScrollMode } from "./TVirtualList.js";
4
+ import type { TLogLinkPanelItem } from "./TLogLinksPanel.js";
5
+ export declare const TLogVirtualLinksPanel: 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
+ required: true;
21
+ };
22
+ zIndex: {
23
+ type: NumberConstructor;
24
+ default: number;
25
+ };
26
+ links: {
27
+ type: PropType<readonly TLogLinkPanelItem[]>;
28
+ default: () => never[];
29
+ };
30
+ modelValue: {
31
+ type: NumberConstructor;
32
+ default: number;
33
+ };
34
+ style: {
35
+ type: PropType<Style>;
36
+ default: undefined;
37
+ };
38
+ activeStyle: {
39
+ type: PropType<Style>;
40
+ default: undefined;
41
+ };
42
+ showLineNumbers: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ rowScrollMode: {
47
+ type: PropType<RowScrollMode>;
48
+ default: string;
49
+ };
50
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
51
+ [key: string]: any;
52
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("keydown" | "select" | "blur" | "focus" | "scroll" | "update:modelValue" | "activeChange" | "activate")[], "keydown" | "select" | "blur" | "focus" | "scroll" | "update:modelValue" | "activeChange" | "activate", (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps), Readonly<import("vue").ExtractPropTypes<{
53
+ x: {
54
+ type: NumberConstructor;
55
+ required: true;
56
+ };
57
+ y: {
58
+ type: NumberConstructor;
59
+ required: true;
60
+ };
61
+ w: {
62
+ type: NumberConstructor;
63
+ required: true;
64
+ };
65
+ h: {
66
+ type: NumberConstructor;
67
+ required: true;
68
+ };
69
+ zIndex: {
70
+ type: NumberConstructor;
71
+ default: number;
72
+ };
73
+ links: {
74
+ type: PropType<readonly TLogLinkPanelItem[]>;
75
+ default: () => never[];
76
+ };
77
+ modelValue: {
78
+ type: NumberConstructor;
79
+ default: number;
80
+ };
81
+ style: {
82
+ type: PropType<Style>;
83
+ default: undefined;
84
+ };
85
+ activeStyle: {
86
+ type: PropType<Style>;
87
+ default: undefined;
88
+ };
89
+ showLineNumbers: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ rowScrollMode: {
94
+ type: PropType<RowScrollMode>;
95
+ default: string;
96
+ };
97
+ }>> & Readonly<{
98
+ onActivate?: ((...args: any[]) => any) | undefined;
99
+ onKeydown?: ((...args: any[]) => any) | undefined;
100
+ onSelect?: ((...args: any[]) => any) | undefined;
101
+ onBlur?: ((...args: any[]) => any) | undefined;
102
+ onFocus?: ((...args: any[]) => any) | undefined;
103
+ onScroll?: ((...args: any[]) => any) | undefined;
104
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
105
+ onActiveChange?: ((...args: any[]) => any) | undefined;
106
+ }>, {
107
+ style: Readonly<{
108
+ fg?: string;
109
+ bg?: string;
110
+ bold?: boolean;
111
+ dim?: boolean;
112
+ italic?: boolean;
113
+ underline?: boolean;
114
+ inverse?: boolean;
115
+ href?: string;
116
+ }>;
117
+ links: readonly Readonly<{
118
+ visibleIndex: number;
119
+ href: string;
120
+ text: string;
121
+ absoluteLineIndex: number;
122
+ index: number;
123
+ startCell: number;
124
+ endCell: number;
125
+ current?: boolean;
126
+ }>[];
127
+ zIndex: number;
128
+ modelValue: number;
129
+ activeStyle: Readonly<{
130
+ fg?: string;
131
+ bg?: string;
132
+ bold?: boolean;
133
+ dim?: boolean;
134
+ italic?: boolean;
135
+ underline?: boolean;
136
+ inverse?: boolean;
137
+ href?: string;
138
+ }>;
139
+ rowScrollMode: RowScrollMode;
140
+ showLineNumbers: boolean;
141
+ }, {}>;