@brett_lamy/ui 5.15.0 → 5.16.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 (121) hide show
  1. package/dist/components/call-stack.d.ts +26 -0
  2. package/dist/components/call-stack.d.ts.map +1 -0
  3. package/dist/components/call-stack.js +236 -0
  4. package/dist/components/code-editor-window.d.ts +191 -0
  5. package/dist/components/code-editor-window.d.ts.map +1 -0
  6. package/dist/components/code-editor-window.js +1474 -0
  7. package/dist/components/code-editor.d.ts +213 -0
  8. package/dist/components/code-editor.d.ts.map +1 -0
  9. package/dist/components/code-editor.js +484 -0
  10. package/dist/components/debug-toolbar.d.ts +13 -0
  11. package/dist/components/debug-toolbar.d.ts.map +1 -0
  12. package/dist/components/debug-toolbar.js +85 -0
  13. package/dist/components/file-upload.d.ts +1 -1
  14. package/dist/components/file-upload.d.ts.map +1 -1
  15. package/dist/components/file-upload.js +1 -1
  16. package/dist/components/filter-input.d.ts +1 -1
  17. package/dist/components/filter-input.d.ts.map +1 -1
  18. package/dist/components/filter-input.js +1 -1
  19. package/dist/components/filter.d.ts +1 -1
  20. package/dist/components/filter.d.ts.map +1 -1
  21. package/dist/components/filter.js +1 -1
  22. package/dist/components/log-list.d.ts +95 -0
  23. package/dist/components/log-list.d.ts.map +1 -0
  24. package/dist/components/log-list.js +549 -0
  25. package/dist/components/object-tree.d.ts +30 -0
  26. package/dist/components/object-tree.d.ts.map +1 -0
  27. package/dist/components/object-tree.js +415 -0
  28. package/dist/components/object-value.d.ts +13 -0
  29. package/dist/components/object-value.d.ts.map +1 -0
  30. package/dist/components/object-value.js +69 -0
  31. package/dist/components/request-table.d.ts +78 -0
  32. package/dist/components/request-table.d.ts.map +1 -0
  33. package/dist/components/request-table.js +697 -0
  34. package/dist/components/spreadsheet.d.ts +1 -1
  35. package/dist/components/spreadsheet.d.ts.map +1 -1
  36. package/dist/components/spreadsheet.js +1 -1
  37. package/dist/components/syntax-highlighting.d.ts +45 -77
  38. package/dist/components/syntax-highlighting.d.ts.map +1 -1
  39. package/dist/components/syntax-highlighting.js +36 -275
  40. package/dist/components/terminal.d.ts +62 -0
  41. package/dist/components/terminal.d.ts.map +1 -0
  42. package/dist/components/terminal.js +172 -0
  43. package/dist/components/trace-timeline.d.ts +97 -0
  44. package/dist/components/trace-timeline.d.ts.map +1 -0
  45. package/dist/components/trace-timeline.js +850 -0
  46. package/dist/components/tree.d.ts.map +1 -1
  47. package/dist/components/tree.js +99 -91
  48. package/dist/components/video-preview.d.ts +1 -1
  49. package/dist/components/video-preview.d.ts.map +1 -1
  50. package/dist/components/video-preview.js +1 -1
  51. package/dist/components/video-timeline.d.ts +1 -1
  52. package/dist/components/video-timeline.d.ts.map +1 -1
  53. package/dist/components/video-timeline.js +1 -1
  54. package/dist/components/workspace.d.ts.map +1 -1
  55. package/dist/components/workspace.js +1 -1
  56. package/dist/index.css +1 -1
  57. package/dist/index.d.ts +47 -11
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +120 -100
  60. package/dist/lib/call-stack-model.d.ts +75 -0
  61. package/dist/lib/call-stack-model.d.ts.map +1 -0
  62. package/dist/lib/call-stack-model.js +114 -0
  63. package/dist/lib/code-document.d.ts +229 -0
  64. package/dist/lib/code-document.d.ts.map +1 -0
  65. package/dist/lib/code-document.js +727 -0
  66. package/dist/lib/code-editor-gpu.d.ts +9 -0
  67. package/dist/lib/code-editor-gpu.d.ts.map +1 -0
  68. package/dist/lib/code-editor-gpu.js +23 -0
  69. package/dist/lib/code-editor-model.d.ts +371 -0
  70. package/dist/lib/code-editor-model.d.ts.map +1 -0
  71. package/dist/lib/code-editor-model.js +1105 -0
  72. package/dist/lib/{file-upload.d.ts → file-upload-model.d.ts} +1 -1
  73. package/dist/lib/file-upload-model.d.ts.map +1 -0
  74. package/dist/lib/{file-upload.js → file-upload-model.js} +1 -1
  75. package/dist/lib/{filter.d.ts → filter-model.d.ts} +1 -1
  76. package/dist/lib/filter-model.d.ts.map +1 -0
  77. package/dist/lib/{filter.js → filter-model.js} +1 -1
  78. package/dist/lib/filter-query.d.ts +1 -1
  79. package/dist/lib/filter-query.d.ts.map +1 -1
  80. package/dist/lib/filter-query.js +1 -1
  81. package/dist/lib/log-list-model.d.ts +132 -0
  82. package/dist/lib/log-list-model.d.ts.map +1 -0
  83. package/dist/lib/log-list-model.js +214 -0
  84. package/dist/lib/log-list-window.d.ts +121 -0
  85. package/dist/lib/log-list-window.d.ts.map +1 -0
  86. package/dist/lib/log-list-window.js +245 -0
  87. package/dist/lib/object-tree-model.d.ts +162 -0
  88. package/dist/lib/object-tree-model.d.ts.map +1 -0
  89. package/dist/lib/object-tree-model.js +347 -0
  90. package/dist/lib/object-tree-value.d.ts +139 -0
  91. package/dist/lib/object-tree-value.d.ts.map +1 -0
  92. package/dist/lib/object-tree-value.js +410 -0
  93. package/dist/lib/request-table-model.d.ts +85 -0
  94. package/dist/lib/request-table-model.d.ts.map +1 -0
  95. package/dist/lib/request-table-model.js +105 -0
  96. package/dist/lib/{spreadsheet.d.ts → spreadsheet-model.d.ts} +1 -1
  97. package/dist/lib/spreadsheet-model.d.ts.map +1 -0
  98. package/dist/lib/{spreadsheet.js → spreadsheet-model.js} +1 -1
  99. package/dist/lib/syntax.d.ts +19 -7
  100. package/dist/lib/syntax.d.ts.map +1 -1
  101. package/dist/lib/syntax.js +54 -50
  102. package/dist/lib/terminal-line.d.ts +155 -0
  103. package/dist/lib/terminal-line.d.ts.map +1 -0
  104. package/dist/lib/terminal-line.js +463 -0
  105. package/dist/lib/trace-timeline-draw.d.ts +109 -0
  106. package/dist/lib/trace-timeline-draw.d.ts.map +1 -0
  107. package/dist/lib/trace-timeline-draw.js +252 -0
  108. package/dist/lib/trace-timeline-model.d.ts +324 -0
  109. package/dist/lib/trace-timeline-model.d.ts.map +1 -0
  110. package/dist/lib/trace-timeline-model.js +510 -0
  111. package/dist/lib/video-render.d.ts +1 -1
  112. package/dist/lib/video-render.d.ts.map +1 -1
  113. package/dist/lib/video-render.js +1 -1
  114. package/dist/lib/{video-timeline.d.ts → video-timeline-model.d.ts} +1 -1
  115. package/dist/lib/video-timeline-model.d.ts.map +1 -0
  116. package/dist/lib/{video-timeline.js → video-timeline-model.js} +1 -1
  117. package/package.json +5 -1
  118. package/dist/lib/file-upload.d.ts.map +0 -1
  119. package/dist/lib/filter.d.ts.map +0 -1
  120. package/dist/lib/spreadsheet.d.ts.map +0 -1
  121. package/dist/lib/video-timeline.d.ts.map +0 -1
@@ -0,0 +1,410 @@
1
+ var e = /^[\p{L}_$][\p{L}\p{N}_$]*$/u;
2
+ function t(e, t) {
3
+ if (e.length <= t) return e;
4
+ let n = e.charCodeAt(t - 1);
5
+ return e.slice(0, n >= 55296 && n <= 56319 ? t - 1 : t);
6
+ }
7
+ function n(e, n, r) {
8
+ let i = t(e, n), a = i.length < e.length ? "…" : "";
9
+ return r ? [{
10
+ text: `${JSON.stringify(i).slice(0, -1)}${a}"`,
11
+ tint: "string"
12
+ }] : [{
13
+ text: i + a,
14
+ tint: "string"
15
+ }];
16
+ }
17
+ function r(e) {
18
+ return Object.is(e, -0) ? "-0" : String(e);
19
+ }
20
+ function i(e) {
21
+ let t = String(e);
22
+ return t.endsWith("n") ? t : `${t}n`;
23
+ }
24
+ function a(e) {
25
+ let t = e.name || "Error";
26
+ return e.message ? `${t}: ${e.message}` : t;
27
+ }
28
+ function o(e) {
29
+ return e.stack || a(e);
30
+ }
31
+ function s(t) {
32
+ return e.test(t) || /^\d+$/.test(t) ? t : JSON.stringify(t);
33
+ }
34
+ function c(e, t) {
35
+ if (e.flavor === "class") return [{
36
+ text: "class",
37
+ tint: "keyword"
38
+ }, ...e.name ? [{
39
+ text: ` ${e.name}`,
40
+ tint: "function"
41
+ }] : []];
42
+ let n = [];
43
+ return (e.flavor === "async" || e.flavor === "async generator") && n.push({
44
+ text: "async ",
45
+ tint: "keyword"
46
+ }), n.push({
47
+ text: e.flavor === "generator" || e.flavor === "async generator" ? "ƒ*" : "ƒ",
48
+ tint: "functionMark"
49
+ }), t || n.push({
50
+ text: ` ${e.name ?? ""}(${e.params ?? ""})`,
51
+ tint: "function"
52
+ }), n;
53
+ }
54
+ function l(e, t, n) {
55
+ return `${e.className || t}${n === void 0 ? "" : `(${n})`}`;
56
+ }
57
+ function u(e, t, n, r) {
58
+ let i = [];
59
+ return e.slice(0, t).forEach((e, t) => {
60
+ t && i.push({
61
+ text: ", ",
62
+ tint: "punctuation"
63
+ }), i.push(...r(e));
64
+ }), (n || e.length > t) && (i.length && i.push({
65
+ text: ", ",
66
+ tint: "punctuation"
67
+ }), i.push({
68
+ text: "…",
69
+ tint: "punctuation"
70
+ })), i;
71
+ }
72
+ function d(e, f, p) {
73
+ let m = p > 0, h = (e) => d(e, {
74
+ ...f,
75
+ maxString: Math.min(f.maxString, 30),
76
+ quote: !0
77
+ }, p + 1);
78
+ switch (e.type) {
79
+ case "string": return n(e.value, f.maxString, f.quote);
80
+ case "number": return [{
81
+ text: r(e.value),
82
+ tint: "number"
83
+ }];
84
+ case "boolean": return [{
85
+ text: String(e.value),
86
+ tint: "keyword"
87
+ }];
88
+ case "null": return [{
89
+ text: "null",
90
+ tint: "nullish"
91
+ }];
92
+ case "undefined": return [{
93
+ text: "undefined",
94
+ tint: "nullish"
95
+ }];
96
+ case "bigint": return [{
97
+ text: i(e.value),
98
+ tint: "number"
99
+ }];
100
+ case "symbol": return [{
101
+ text: e.value,
102
+ tint: "symbol"
103
+ }];
104
+ case "function": return c(e, m);
105
+ case "date": return [{
106
+ text: e.value,
107
+ tint: "date"
108
+ }];
109
+ case "regexp": return [{
110
+ text: e.value,
111
+ tint: "regexp"
112
+ }];
113
+ case "error": {
114
+ if (f.expanded) {
115
+ let n = o(e);
116
+ return [{
117
+ text: t(n, f.maxString) + (n.length > f.maxString ? "…" : ""),
118
+ tint: "error"
119
+ }];
120
+ }
121
+ let n = a(e), r = n.split("\n", 1)[0] ?? "", i = m ? 30 : f.maxString;
122
+ return [{
123
+ text: t(r, i) + (r.length > i || r.length < n.length ? "…" : ""),
124
+ tint: "error"
125
+ }];
126
+ }
127
+ case "accessor": return [{
128
+ text: "(...)",
129
+ tint: "muted"
130
+ }];
131
+ case "unavailable": return [{
132
+ text: e.label ?? "<unavailable>",
133
+ tint: "muted"
134
+ }];
135
+ case "entry": return [
136
+ ...h(e.key),
137
+ {
138
+ text: " => ",
139
+ tint: "punctuation"
140
+ },
141
+ ...h(e.value)
142
+ ];
143
+ case "object": {
144
+ let t = e.className && e.className !== "Object" ? e.className : "";
145
+ return m || !e.properties ? t ? [{
146
+ text: t,
147
+ tint: "className"
148
+ }] : [{
149
+ text: e.properties?.length === 0 ? "{}" : "{…}",
150
+ tint: "punctuation"
151
+ }] : [
152
+ ...t ? [{
153
+ text: `${t} `,
154
+ tint: "className"
155
+ }] : [],
156
+ {
157
+ text: "{",
158
+ tint: "punctuation"
159
+ },
160
+ ...u(e.properties, 5, !!e.overflow, (e) => [
161
+ {
162
+ text: s(e.name),
163
+ tint: "key"
164
+ },
165
+ {
166
+ text: ": ",
167
+ tint: "punctuation"
168
+ },
169
+ ...h(e.value)
170
+ ]),
171
+ {
172
+ text: "}",
173
+ tint: "punctuation"
174
+ }
175
+ ];
176
+ }
177
+ case "array": {
178
+ let t = e.className && e.className !== "Array" ? e.className : "", n = e.length ?? e.items?.length;
179
+ if (m || !e.items) return [{
180
+ text: l(e, "Array", n),
181
+ tint: "className"
182
+ }];
183
+ let r = !!e.overflow || n !== void 0 && n > e.items.length, i = `${t}${n ? `(${n}) ` : t ? " " : ""}`;
184
+ return [
185
+ ...i ? [{
186
+ text: i,
187
+ tint: "className"
188
+ }] : [],
189
+ {
190
+ text: "[",
191
+ tint: "punctuation"
192
+ },
193
+ ...u(e.items, 10, r, h),
194
+ {
195
+ text: "]",
196
+ tint: "punctuation"
197
+ }
198
+ ];
199
+ }
200
+ case "map":
201
+ case "set": {
202
+ let t = e.type === "map" ? "Map" : "Set", n = e.type === "map" ? e.entries : e.items, r = e.size ?? n?.length, i = {
203
+ text: l(e, t, r),
204
+ tint: "className"
205
+ };
206
+ if (m || !n) return [i];
207
+ let a = !!e.overflow || r !== void 0 && r > n.length;
208
+ return [
209
+ i,
210
+ {
211
+ text: " {",
212
+ tint: "punctuation"
213
+ },
214
+ ...e.type === "map" ? u(e.entries ?? [], 5, a, (e) => [
215
+ ...h(e.key),
216
+ {
217
+ text: " => ",
218
+ tint: "punctuation"
219
+ },
220
+ ...h(e.value)
221
+ ]) : u(e.items ?? [], 10, a, h),
222
+ {
223
+ text: "}",
224
+ tint: "punctuation"
225
+ }
226
+ ];
227
+ }
228
+ }
229
+ }
230
+ function f(e, t = {}) {
231
+ return d(e, {
232
+ maxString: t.maxString ?? 100,
233
+ quote: t.quote ?? !0,
234
+ expanded: !!t.expanded
235
+ }, 0);
236
+ }
237
+ function p(e, t) {
238
+ return f(e, t).map((e) => e.text).join("");
239
+ }
240
+ function m(e) {
241
+ return e.type === "string" ? e.value : e.type === "error" ? o(e) : p(e, { maxString: Infinity });
242
+ }
243
+ function h(e) {
244
+ return e.type === "string" ? e.value.length : e.type === "error" ? o(e).length : 0;
245
+ }
246
+ function g(e, t, n = !1) {
247
+ if (e.type === "string") return Math.max(0, e.value.length - t);
248
+ if (e.type !== "error") return 0;
249
+ let r = o(e);
250
+ return n ? Math.max(0, r.length - t) : r === a(e) && !r.includes("\n") && r.length <= t ? 0 : r.length;
251
+ }
252
+ function _(e, t) {
253
+ let n = Math.max(t * 10, 65536);
254
+ return n * 2 > e ? e : n;
255
+ }
256
+ function v(e) {
257
+ return e < 1e3 ? `${e} B` : e < 1e6 ? `${(e / 1e3).toFixed(1)} kB` : `${(e / 1e6).toFixed(1)} MB`;
258
+ }
259
+ function y(e) {
260
+ let t = Object.prototype.toString.call(e), n = "";
261
+ try {
262
+ n = Function.prototype.toString.call(e).slice(0, 300);
263
+ } catch {}
264
+ let r = e.name || void 0;
265
+ if (/^class[\s{]/.test(n)) return {
266
+ type: "function",
267
+ flavor: "class",
268
+ name: r
269
+ };
270
+ let i = t.includes("AsyncGenerator") ? "async generator" : t.includes("Async") ? "async" : t.includes("Generator") ? "generator" : void 0;
271
+ return {
272
+ type: "function",
273
+ name: r,
274
+ params: /\(([^()]*)\)/.exec(n)?.[1]?.replace(/\s+/g, " ").trim(),
275
+ ...i ? { flavor: i } : {}
276
+ };
277
+ }
278
+ function b(e) {
279
+ let t = Object.getPrototypeOf(e);
280
+ if (t === null) return "Object";
281
+ let n = t.constructor?.name;
282
+ return typeof n == "string" && n ? n : void 0;
283
+ }
284
+ function x(e) {
285
+ return ArrayBuffer.isView(e) && !(e instanceof DataView);
286
+ }
287
+ function S(e, t = 0) {
288
+ switch (typeof e) {
289
+ case "string": return {
290
+ type: "string",
291
+ value: e
292
+ };
293
+ case "number": return {
294
+ type: "number",
295
+ value: Object.is(e, -0) ? "-0" : e
296
+ };
297
+ case "boolean": return {
298
+ type: "boolean",
299
+ value: e
300
+ };
301
+ case "undefined": return { type: "undefined" };
302
+ case "bigint": return {
303
+ type: "bigint",
304
+ value: e
305
+ };
306
+ case "symbol": return {
307
+ type: "symbol",
308
+ value: String(e)
309
+ };
310
+ case "function": return y(e);
311
+ }
312
+ if (e === null) return { type: "null" };
313
+ let n = e, r = b(n);
314
+ if (e instanceof Date) {
315
+ let t = e.getTime();
316
+ return {
317
+ type: "date",
318
+ value: Number.isNaN(t) ? "Invalid Date" : e.toISOString()
319
+ };
320
+ }
321
+ if (e instanceof RegExp) return {
322
+ type: "regexp",
323
+ value: String(e)
324
+ };
325
+ if (e instanceof Error) return {
326
+ type: "error",
327
+ name: e.name,
328
+ message: e.message,
329
+ stack: e.stack
330
+ };
331
+ if (Array.isArray(e)) return t > 0 ? {
332
+ type: "array",
333
+ length: e.length
334
+ } : {
335
+ type: "array",
336
+ length: e.length,
337
+ items: e.slice(0, 10).map((e) => S(e, t + 1))
338
+ };
339
+ if (x(n)) {
340
+ let e = n.length;
341
+ return t > 0 ? {
342
+ type: "array",
343
+ className: r,
344
+ length: e
345
+ } : {
346
+ type: "array",
347
+ className: r,
348
+ length: e,
349
+ items: Array.from(n.subarray(0, 10), (e) => S(e, t + 1))
350
+ };
351
+ }
352
+ if (e instanceof Map) {
353
+ if (t > 0) return {
354
+ type: "map",
355
+ className: r,
356
+ size: e.size
357
+ };
358
+ let n = [];
359
+ for (let [r, i] of e) {
360
+ if (n.length === 5) break;
361
+ n.push({
362
+ key: S(r, t + 1),
363
+ value: S(i, t + 1)
364
+ });
365
+ }
366
+ return {
367
+ type: "map",
368
+ className: r,
369
+ size: e.size,
370
+ entries: n
371
+ };
372
+ }
373
+ if (e instanceof Set) {
374
+ if (t > 0) return {
375
+ type: "set",
376
+ className: r,
377
+ size: e.size
378
+ };
379
+ let n = [];
380
+ for (let r of e) {
381
+ if (n.length === 10) break;
382
+ n.push(S(r, t + 1));
383
+ }
384
+ return {
385
+ type: "set",
386
+ className: r,
387
+ size: e.size,
388
+ items: n
389
+ };
390
+ }
391
+ if (t > 0) return {
392
+ type: "object",
393
+ className: r
394
+ };
395
+ let i = Object.keys(n);
396
+ return {
397
+ type: "object",
398
+ className: r,
399
+ properties: i.slice(0, 5).map((e) => {
400
+ let r = Object.getOwnPropertyDescriptor(n, e);
401
+ return {
402
+ name: e,
403
+ value: r?.get || r?.set ? { type: "accessor" } : S(r?.value, t + 1)
404
+ };
405
+ }),
406
+ overflow: i.length > 5
407
+ };
408
+ }
409
+ //#endregion
410
+ export { t as clipString, m as copyTextOf, v as formatLength, h as fullLength, g as hiddenLength, x as isTypedArray, _ as nextShownLength, S as previewFromValue, p as previewText, f as previewTokens };
@@ -0,0 +1,85 @@
1
+ import { RowId } from './log-list-model';
2
+ /** A bar's color. */
3
+ export type RequestTone = 'neutral' | 'primary' | 'success' | 'warning' | 'danger' | 'accent';
4
+ export interface RequestRow {
5
+ id: RowId;
6
+ /** The full URL, or an IPC channel. */
7
+ url: string;
8
+ /** What the Name column shows. Default: the last part of the URL (`requestName`). */
9
+ name?: string;
10
+ method?: string;
11
+ /** An HTTP status; 0 means it failed without one. A string is shown as it is, like an IPC call's result. */
12
+ status?: number | string;
13
+ statusText?: string;
14
+ /** `fetch`, `xhr`, `script`, `ipc`… */
15
+ type?: string;
16
+ /** Bytes. */
17
+ size?: number;
18
+ /** When it was sent, in ms on the table's time range. A row without one has no bar and is never dimmed. */
19
+ time?: number;
20
+ /** How long it took, in ms. */
21
+ duration?: number;
22
+ /** The bar's color. Default: `danger` if it failed, else `primary`. */
23
+ tone?: RequestTone;
24
+ /** Still waiting: says so in Status and Time, and the bar runs on to the end of the range when it has no `duration`. */
25
+ pending?: boolean;
26
+ /** It failed, whatever its status. A status of 0 or from 400 up counts without this. */
27
+ failed?: boolean;
28
+ /** Why it failed. */
29
+ error?: string;
30
+ }
31
+ /** DevTools' Name column: the last path segment plus the query, or the host for a bare origin. */
32
+ export declare function requestName(url: string): string;
33
+ export declare function requestDisplayName(row: Pick<RequestRow, 'name' | 'url'>): string;
34
+ export declare function isRequestFailed(row: Pick<RequestRow, 'failed' | 'status' | 'pending'>): boolean;
35
+ /** `200`, `(pending)`, `(failed)`, or a dash when the recording doesn't say. */
36
+ export declare function requestStatusText(row: Pick<RequestRow, 'failed' | 'status' | 'pending'>): string;
37
+ export declare function requestDurationText(row: Pick<RequestRow, 'duration' | 'pending'>): string;
38
+ export declare function requestSizeText(row: Pick<RequestRow, 'size'>): string;
39
+ export declare function requestTone(row: Pick<RequestRow, 'tone' | 'failed' | 'status' | 'pending'>): RequestTone;
40
+ export type RequestTimeRange = readonly [start: number, end: number];
41
+ /** From the first request sent to the last answer. Never empty, so a bar's share of it is always a number. */
42
+ export declare function requestTimeRange(rows: readonly Pick<RequestRow, 'time' | 'duration'>[]): RequestTimeRange;
43
+ /** A row's bar, as percentages of the range, cut to it; null when it has no time or falls outside it. A bar with no width
44
+ * still draws (the part gives it a minimum). A pending row with no duration runs to the end of the range. */
45
+ export declare function requestBar(row: Pick<RequestRow, 'time' | 'duration' | 'pending'>, [start, end]: RequestTimeRange): {
46
+ left: number;
47
+ width: number;
48
+ } | null;
49
+ /** The playhead's place on the range, 0…1, or null when it isn't on it. */
50
+ export declare function playheadShare(time: number | null | undefined, [start, end]: RequestTimeRange): number | null;
51
+ export type RequestSortDirection = 'ascending' | 'descending';
52
+ export interface RequestSort {
53
+ column: string;
54
+ direction: RequestSortDirection;
55
+ }
56
+ /** The next sort when a column is pressed: ascending, descending, then back to the rows' own order. */
57
+ export declare function nextRequestSort(sort: RequestSort | null, column: string): RequestSort | null;
58
+ export type RequestSortValue = number | string | null | undefined;
59
+ /** What a built-in column sorts by. */
60
+ export declare function requestSortValue(row: RequestRow, column: string): RequestSortValue;
61
+ /** The rows in a column's order, a new array. It's stable, ties keep the rows' own order, and rows with nothing in the
62
+ * column stay at the end in both directions. Strings compare case-insensitively by code unit, not by locale, which is
63
+ * ten times faster at 10,000 rows and right for URLs and methods. */
64
+ export declare function sortRequests<T>(rows: readonly T[], sort: RequestSort | null, valueOf: (row: T, column: string) => RequestSortValue): readonly T[];
65
+ export interface RequestColumnSize {
66
+ id: string;
67
+ /** Fixed width in px, for a column with no `flex`. Default 80. */
68
+ width?: number;
69
+ /** Smallest width in px, also the floor for a resize. Default 40. */
70
+ minWidth?: number;
71
+ /** Largest width a resize can reach, in px. */
72
+ maxWidth?: number;
73
+ /** Share of the spare width, like `fr`. Without it the column keeps `width`. */
74
+ flex?: number;
75
+ /** Hidden when the table is narrower than this, in px. */
76
+ hideBelow?: number;
77
+ }
78
+ export declare function clampColumnWidth(column: RequestColumnSize, width: number): number;
79
+ /** The CSS grid for the columns, and the width under which the table scrolls sideways. A column dragged to a width keeps
80
+ * it; the others share what's left; and if every column has a fixed width, an empty track takes the rest. */
81
+ export declare function columnTemplate(columns: readonly RequestColumnSize[], widths: Readonly<Record<string, number>>): {
82
+ template: string;
83
+ minWidth: number;
84
+ };
85
+ //# sourceMappingURL=request-table-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-table-model.d.ts","sourceRoot":"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ration as e } from "./sql-format.js";
2
+ import { formatBytes as t } from "./format-bytes.js";
3
+ //#region src/lib/request-table-model.ts
4
+ function n(e) {
5
+ let t = e.replace(/#.*$/, ""), n = t.indexOf("?"), r = (n < 0 ? t : t.slice(0, n)).replace(/\/+$/, "").split("/").pop() || "/";
6
+ return n < 0 ? r : `${r}${t.slice(n)}`;
7
+ }
8
+ function r(e) {
9
+ return e.name ?? n(e.url);
10
+ }
11
+ function i(e) {
12
+ return e.pending ? !1 : !!e.failed || e.status === 0 || typeof e.status == "number" && e.status >= 400;
13
+ }
14
+ function a(e) {
15
+ return e.pending ? "(pending)" : e.status === void 0 ? e.failed ? "(failed)" : "—" : e.status === 0 ? "(failed)" : String(e.status);
16
+ }
17
+ function o(t) {
18
+ return t.pending && t.duration === void 0 ? "Pending" : t.duration === void 0 ? "—" : e(t.duration);
19
+ }
20
+ function s(e) {
21
+ return e.size === void 0 ? "—" : t(e.size);
22
+ }
23
+ function c(e) {
24
+ return e.tone ?? (i(e) ? "danger" : "primary");
25
+ }
26
+ function l(e) {
27
+ let t = Infinity, n = -Infinity;
28
+ for (let r of e) {
29
+ if (r.time === void 0) continue;
30
+ r.time < t && (t = r.time);
31
+ let e = r.time + (r.duration ?? 0);
32
+ e > n && (n = e);
33
+ }
34
+ return t === Infinity ? [0, 1] : [t, Math.max(n, t + 1)];
35
+ }
36
+ function u(e, [t, n]) {
37
+ if (e.time === void 0) return null;
38
+ let r = n - t, i = e.duration === void 0 && e.pending ? n : e.time + (e.duration ?? 0);
39
+ if (r <= 0 || i < t || e.time > n) return null;
40
+ let a = Math.max(e.time, t), o = Math.min(i, n);
41
+ return {
42
+ left: (a - t) / r * 100,
43
+ width: (o - a) / r * 100
44
+ };
45
+ }
46
+ function d(e, [t, n]) {
47
+ return e == null || !Number.isFinite(e) || e < t || e > n || n <= t ? null : (e - t) / (n - t);
48
+ }
49
+ function f(e, t) {
50
+ return e?.column === t ? e.direction === "ascending" ? {
51
+ column: t,
52
+ direction: "descending"
53
+ } : null : {
54
+ column: t,
55
+ direction: "ascending"
56
+ };
57
+ }
58
+ function p(e, t) {
59
+ switch (t) {
60
+ case "name": return r(e);
61
+ case "url": return e.url;
62
+ case "method": return e.method;
63
+ case "status": return e.pending ? void 0 : e.status;
64
+ case "type": return e.type;
65
+ case "size": return e.size;
66
+ case "duration": return e.duration;
67
+ case "waterfall":
68
+ case "time": return e.time;
69
+ default: return e[t];
70
+ }
71
+ }
72
+ var m = (e) => e == null || e === "" || typeof e == "number" && Number.isNaN(e);
73
+ function h(e, t, n) {
74
+ if (!t) return e;
75
+ let r = t.direction === "ascending" ? 1 : -1, i = e.map((e) => {
76
+ let r = n(e, t.column);
77
+ return typeof r == "string" ? r.toLowerCase() : r;
78
+ }), a = e.map((e, t) => t);
79
+ return a.sort((e, t) => {
80
+ let n = i[e], a = i[t], o = m(n), s = m(a);
81
+ return o || s ? o === s ? e - t : o ? 1 : -1 : n === a ? e - t : typeof n == typeof a ? (n < a ? -1 : 1) * r : (typeof n == "number" ? -1 : 1) * r;
82
+ }), a.map((t) => e[t]);
83
+ }
84
+ var g = 40;
85
+ function _(e, t) {
86
+ return Math.round(Math.max(e.minWidth ?? g, Math.min(e.maxWidth ?? Infinity, t)));
87
+ }
88
+ function v(e, t) {
89
+ let n = 0, r = !1, i = e.map((e) => {
90
+ let i = t[e.id];
91
+ if (i !== void 0) return n += i, `${i}px`;
92
+ if (e.flex) {
93
+ let t = e.minWidth ?? g;
94
+ return n += t, r = !0, `minmax(${t}px,${e.flex}fr)`;
95
+ }
96
+ let a = e.width ?? 80;
97
+ return n += a, `${a}px`;
98
+ });
99
+ return r || i.push("minmax(0,1fr)"), {
100
+ template: i.join(" "),
101
+ minWidth: n
102
+ };
103
+ }
104
+ //#endregion
105
+ export { _ as clampColumnWidth, v as columnTemplate, i as isRequestFailed, f as nextRequestSort, d as playheadShare, u as requestBar, r as requestDisplayName, o as requestDurationText, n as requestName, s as requestSizeText, p as requestSortValue, a as requestStatusText, l as requestTimeRange, c as requestTone, h as sortRequests };
@@ -79,4 +79,4 @@ export declare function histogramCpu(values: Float32Array, min: number, max: num
79
79
  /** A histogram of a column's numbers in `bins` equal-width bins (at most `MAX_BINS`), on the GPU when the engine
80
80
  allows. `null` when the column has no numbers. Bin edges are computed in 32-bit floats on both paths. */
81
81
  export declare function columnHistogram(values: Float64Array, bins?: number, options?: SpreadsheetEngineOptions): Promise<SpreadsheetHistogram | null>;
82
- //# sourceMappingURL=spreadsheet.d.ts.map
82
+ //# sourceMappingURL=spreadsheet-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spreadsheet-model.d.ts","sourceRoot":"","sources":["../../src/lib/spreadsheet-model.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AACzE,MAAM,MAAM,wBAAwB,GAAG,WAAW,GAAG,YAAY,CAAC;AAClE,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,wBAAwB,CAAC;CACrC;AAED;;8GAE8G;AAC9G,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,KAAK,GAAG,UAAU,CAAC;AAC5D,0BAA0B;AAC1B,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,KAAK,CAAC;AAE7C,gHAAgH;AAChH,eAAO,MAAM,YAAY,QAAS,CAAC;AAQnC;;gBAEgB;AAChB,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAYpD;AAID,qHAAqH;AACrH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGlD;AAKD,oHAAoH;AACpH,wBAAgB,eAAe,CAAC,IAAI,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,SAAI,GAAG,qBAAqB,CAcrH;AAED,qGAAqG;AACrG,wBAAgB,aA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;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED;sCACsC;AACtC,wBAAgB,cAAc,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,cAAc,CAiBtE;AAED,oFAAoF;AACpF,eAAO,MAAM,QAAQ,KAAK,CAAC;AAE3B,MAAM,WAAW,oBAAoB;IACnC,oCAAoC;IACpC,IAAI,EAAE,WAAW,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,gBAAgB,CAAC;CACzB;AAmBD,oHAAoH;AACpH,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,MAAM,MAAM,WAA2F,CAAC;AAE3J,kFAAkF;AAClF,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,WAAW,CAStG;AAED;4GAC4G;AAC5G,wBAAsB,eAAe,CAAC,MAAM,EAAE,YAAY,EAAE,IAAI,SAAK,EAAE,OAAO,GAAE,wBAA6B,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAYnJ"}
@@ -1,6 +1,6 @@
1
1
  import { navigatorGpu as e, probeWebGPU as t, webgpuProbeResult as n } from "./webgpu.js";
2
2
  import { gpuHistogram as r, gpuSortLimit as i, gpuSortPermutation as a, resetSpreadsheetGpu as o } from "./spreadsheet-gpu.js";
3
- //#region src/lib/spreadsheet.ts
3
+ //#region src/lib/spreadsheet-model.ts
4
4
  var s = 2e4, c = /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[-+]?\d+)?$/i, l = /^[-+]?\d{1,3}(?:,\d{3})+(?:\.\d*)?$/, u = /^[$€£¥₹]/;
5
5
  function d(e) {
6
6
  let t = e.trim();
@@ -1,17 +1,29 @@
1
1
  export { probeWebGPU } from './webgpu';
2
2
  export type { WebGPUProbe } from './webgpu';
3
- export type SyntaxTokenType = 'plain' | 'comment' | 'string' | 'number' | 'keyword' | 'type' | 'function' | 'constant' | 'operator';
3
+ /** The library's token colors: each is a `bl-tok-<type>` class that reads a `--bl-syntax-*` property. */
4
+ export type CodeTokenType = 'plain' | 'comment' | 'string' | 'number' | 'keyword' | 'type' | 'function' | 'constant' | 'operator';
5
+ /** A labelled piece of text, whichever renderer draws it. The pieces of a highlighted range, joined, are that range. */
6
+ export interface CodeToken {
7
+ text: string;
8
+ /** Colors it through the library's `bl-tok-*` classes. */
9
+ type: CodeTokenType;
10
+ /** A class of your own, as well as or instead of a color (`type: 'plain'`). */
11
+ className?: string;
12
+ }
13
+ /** The same as `CodeTokenType`, under the name it had first. */
14
+ export type SyntaxTokenType = CodeTokenType;
15
+ /** The same as `CodeToken`, under the name it had first. */
16
+ export type SyntaxToken = CodeToken;
17
+ /** The classes a token draws with. Empty for plain text with no class of its own, which needs no element. */
18
+ export declare function codeTokenClass(token: Pick<CodeToken, 'className'> & {
19
+ type?: CodeTokenType;
20
+ }): string;
4
21
  /** A labelled range of the source: half-open UTF-16 offsets (gpu-lexer's output shape). */
5
22
  export interface SyntaxSpan {
6
- type: SyntaxTokenType;
23
+ type: CodeTokenType;
7
24
  start: number;
8
25
  end: number;
9
26
  }
10
- /** A labelled piece of one line. */
11
- export interface SyntaxToken {
12
- type: SyntaxTokenType;
13
- text: string;
14
- }
15
27
  /** What produced the tokens: `gpu` (gpu-lexer on WebGPU), `fallback` (no hardware WebGPU, or forced), `pending`
16
28
  (plain text shown while the adapter probe or the GPU works), `none` (plain-text language or highlighting
17
29
  disabled). */
@@ -1 +1 @@
1
- {"version":3,"file":"syntax.d.ts","sourceRoot":"","sources":["../../src/lib/syntax.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC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