@malloy-publisher/sdk 0.0.181 → 0.0.183-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ServerProvider-lOQXDlqB.cjs.js +1 -0
- package/dist/{ServerProvider-DN2wSIAZ.es.js → ServerProvider-on-8FH5Z.es.js} +1259 -764
- package/dist/client/api.d.ts +674 -20
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +57 -44
- package/dist/core-CjeTkq8O.es.js +7515 -0
- package/dist/core-YNpOLuB1.cjs.js +148 -0
- package/dist/engine-oniguruma-BkproSVE.cjs.js +1 -0
- package/dist/engine-oniguruma-C4vnmooL.es.js +272 -0
- package/dist/github-light-BFTOhCbz.cjs.js +1 -0
- package/dist/github-light-JYsPkUQd.es.js +4 -0
- package/dist/hooks/useDimensionFilters.d.ts +2 -0
- package/dist/hooks/useDimensionalFilterRangeData.d.ts +19 -5
- package/dist/index-BOLBP6_i.cjs.js +233 -0
- package/dist/index-DRDu9kIV.es.js +53627 -0
- package/dist/index.cjs.js +1 -244
- package/dist/index.es.js +48 -58039
- package/dist/json-71t8ZF9g.es.js +6 -0
- package/dist/json-y-J1j5EW.cjs.js +1 -0
- package/dist/sql-BqWZrLHB.cjs.js +1 -0
- package/dist/sql-DCkt643-.es.js +6 -0
- package/dist/typescript-BqvpT6pB.cjs.js +1 -0
- package/dist/typescript-buWNZFwO.es.js +6 -0
- package/package.json +6 -8
- package/src/components/Notebook/Notebook.tsx +162 -108
- package/src/components/ServerProvider.tsx +8 -0
- package/src/components/filter/DimensionFilter.tsx +68 -39
- package/src/components/highlighter.ts +54 -32
- package/src/hooks/useDimensionFilters.ts +2 -0
- package/src/hooks/useDimensionalFilterRangeData.ts +27 -13
- package/src/index.ts +0 -5
- package/dist/ServerProvider-DSeOLGfV.cjs.js +0 -1
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
class B extends Error {
|
|
2
|
+
constructor(t) {
|
|
3
|
+
super(t), this.name = "ShikiError";
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
function W() {
|
|
7
|
+
return 2147483648;
|
|
8
|
+
}
|
|
9
|
+
function H() {
|
|
10
|
+
return typeof performance < "u" ? performance.now() : Date.now();
|
|
11
|
+
}
|
|
12
|
+
const v = (n, t) => n + (t - n % t) % t;
|
|
13
|
+
async function I(n) {
|
|
14
|
+
let t, r;
|
|
15
|
+
const e = {};
|
|
16
|
+
function l(f) {
|
|
17
|
+
r = f, e.HEAPU8 = new Uint8Array(f), e.HEAPU32 = new Uint32Array(f);
|
|
18
|
+
}
|
|
19
|
+
function h(f, c, S) {
|
|
20
|
+
e.HEAPU8.copyWithin(f, c, c + S);
|
|
21
|
+
}
|
|
22
|
+
function o(f) {
|
|
23
|
+
try {
|
|
24
|
+
return t.grow(f - r.byteLength + 65535 >>> 16), l(t.buffer), 1;
|
|
25
|
+
} catch {
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function s(f) {
|
|
29
|
+
const c = e.HEAPU8.length;
|
|
30
|
+
f = f >>> 0;
|
|
31
|
+
const S = W();
|
|
32
|
+
if (f > S)
|
|
33
|
+
return !1;
|
|
34
|
+
for (let A = 1; A <= 4; A *= 2) {
|
|
35
|
+
let p = c * (1 + 0.2 / A);
|
|
36
|
+
p = Math.min(p, f + 100663296);
|
|
37
|
+
const w = Math.min(S, v(Math.max(f, p), 65536));
|
|
38
|
+
if (o(w))
|
|
39
|
+
return !0;
|
|
40
|
+
}
|
|
41
|
+
return !1;
|
|
42
|
+
}
|
|
43
|
+
const i = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0;
|
|
44
|
+
function a(f, c, S = 1024) {
|
|
45
|
+
const A = c + S;
|
|
46
|
+
let p = c;
|
|
47
|
+
for (; f[p] && !(p >= A); )
|
|
48
|
+
++p;
|
|
49
|
+
if (p - c > 16 && f.buffer && i)
|
|
50
|
+
return i.decode(f.subarray(c, p));
|
|
51
|
+
let w = "";
|
|
52
|
+
for (; c < p; ) {
|
|
53
|
+
let m = f[c++];
|
|
54
|
+
if (!(m & 128)) {
|
|
55
|
+
w += String.fromCharCode(m);
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
const b = f[c++] & 63;
|
|
59
|
+
if ((m & 224) === 192) {
|
|
60
|
+
w += String.fromCharCode((m & 31) << 6 | b);
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
const C = f[c++] & 63;
|
|
64
|
+
if ((m & 240) === 224 ? m = (m & 15) << 12 | b << 6 | C : m = (m & 7) << 18 | b << 12 | C << 6 | f[c++] & 63, m < 65536)
|
|
65
|
+
w += String.fromCharCode(m);
|
|
66
|
+
else {
|
|
67
|
+
const E = m - 65536;
|
|
68
|
+
w += String.fromCharCode(55296 | E >> 10, 56320 | E & 1023);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return w;
|
|
72
|
+
}
|
|
73
|
+
function U(f, c) {
|
|
74
|
+
return f ? a(e.HEAPU8, f, c) : "";
|
|
75
|
+
}
|
|
76
|
+
const u = {
|
|
77
|
+
emscripten_get_now: H,
|
|
78
|
+
emscripten_memcpy_big: h,
|
|
79
|
+
emscripten_resize_heap: s,
|
|
80
|
+
fd_write: () => 0
|
|
81
|
+
};
|
|
82
|
+
async function y() {
|
|
83
|
+
const c = await n({
|
|
84
|
+
env: u,
|
|
85
|
+
wasi_snapshot_preview1: u
|
|
86
|
+
});
|
|
87
|
+
t = c.memory, l(t.buffer), Object.assign(e, c), e.UTF8ToString = U;
|
|
88
|
+
}
|
|
89
|
+
return await y(), e;
|
|
90
|
+
}
|
|
91
|
+
var x = Object.defineProperty, D = (n, t, r) => t in n ? x(n, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : n[t] = r, d = (n, t, r) => (D(n, typeof t != "symbol" ? t + "" : t, r), r);
|
|
92
|
+
let g = null;
|
|
93
|
+
function V(n) {
|
|
94
|
+
throw new B(n.UTF8ToString(n.getLastOnigError()));
|
|
95
|
+
}
|
|
96
|
+
class T {
|
|
97
|
+
constructor(t) {
|
|
98
|
+
d(this, "utf16Length"), d(this, "utf8Length"), d(this, "utf16Value"), d(this, "utf8Value"), d(this, "utf16OffsetToUtf8"), d(this, "utf8OffsetToUtf16");
|
|
99
|
+
const r = t.length, e = T._utf8ByteLength(t), l = e !== r, h = l ? new Uint32Array(r + 1) : null;
|
|
100
|
+
l && (h[r] = e);
|
|
101
|
+
const o = l ? new Uint32Array(e + 1) : null;
|
|
102
|
+
l && (o[e] = r);
|
|
103
|
+
const s = new Uint8Array(e);
|
|
104
|
+
let i = 0;
|
|
105
|
+
for (let a = 0; a < r; a++) {
|
|
106
|
+
const U = t.charCodeAt(a);
|
|
107
|
+
let u = U, y = !1;
|
|
108
|
+
if (U >= 55296 && U <= 56319 && a + 1 < r) {
|
|
109
|
+
const f = t.charCodeAt(a + 1);
|
|
110
|
+
f >= 56320 && f <= 57343 && (u = (U - 55296 << 10) + 65536 | f - 56320, y = !0);
|
|
111
|
+
}
|
|
112
|
+
l && (h[a] = i, y && (h[a + 1] = i), u <= 127 ? o[i + 0] = a : u <= 2047 ? (o[i + 0] = a, o[i + 1] = a) : u <= 65535 ? (o[i + 0] = a, o[i + 1] = a, o[i + 2] = a) : (o[i + 0] = a, o[i + 1] = a, o[i + 2] = a, o[i + 3] = a)), u <= 127 ? s[i++] = u : u <= 2047 ? (s[i++] = 192 | (u & 1984) >>> 6, s[i++] = 128 | (u & 63) >>> 0) : u <= 65535 ? (s[i++] = 224 | (u & 61440) >>> 12, s[i++] = 128 | (u & 4032) >>> 6, s[i++] = 128 | (u & 63) >>> 0) : (s[i++] = 240 | (u & 1835008) >>> 18, s[i++] = 128 | (u & 258048) >>> 12, s[i++] = 128 | (u & 4032) >>> 6, s[i++] = 128 | (u & 63) >>> 0), y && a++;
|
|
113
|
+
}
|
|
114
|
+
this.utf16Length = r, this.utf8Length = e, this.utf16Value = t, this.utf8Value = s, this.utf16OffsetToUtf8 = h, this.utf8OffsetToUtf16 = o;
|
|
115
|
+
}
|
|
116
|
+
static _utf8ByteLength(t) {
|
|
117
|
+
let r = 0;
|
|
118
|
+
for (let e = 0, l = t.length; e < l; e++) {
|
|
119
|
+
const h = t.charCodeAt(e);
|
|
120
|
+
let o = h, s = !1;
|
|
121
|
+
if (h >= 55296 && h <= 56319 && e + 1 < l) {
|
|
122
|
+
const i = t.charCodeAt(e + 1);
|
|
123
|
+
i >= 56320 && i <= 57343 && (o = (h - 55296 << 10) + 65536 | i - 56320, s = !0);
|
|
124
|
+
}
|
|
125
|
+
o <= 127 ? r += 1 : o <= 2047 ? r += 2 : o <= 65535 ? r += 3 : r += 4, s && e++;
|
|
126
|
+
}
|
|
127
|
+
return r;
|
|
128
|
+
}
|
|
129
|
+
createString(t) {
|
|
130
|
+
const r = t.omalloc(this.utf8Length);
|
|
131
|
+
return t.HEAPU8.set(this.utf8Value, r), r;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
const _ = class {
|
|
135
|
+
constructor(n) {
|
|
136
|
+
if (d(this, "id", ++_.LAST_ID), d(this, "_onigBinding"), d(this, "content"), d(this, "utf16Length"), d(this, "utf8Length"), d(this, "utf16OffsetToUtf8"), d(this, "utf8OffsetToUtf16"), d(this, "ptr"), !g)
|
|
137
|
+
throw new B("Must invoke loadWasm first.");
|
|
138
|
+
this._onigBinding = g, this.content = n;
|
|
139
|
+
const t = new T(n);
|
|
140
|
+
this.utf16Length = t.utf16Length, this.utf8Length = t.utf8Length, this.utf16OffsetToUtf8 = t.utf16OffsetToUtf8, this.utf8OffsetToUtf16 = t.utf8OffsetToUtf16, this.utf8Length < 1e4 && !_._sharedPtrInUse ? (_._sharedPtr || (_._sharedPtr = g.omalloc(1e4)), _._sharedPtrInUse = !0, g.HEAPU8.set(t.utf8Value, _._sharedPtr), this.ptr = _._sharedPtr) : this.ptr = t.createString(g);
|
|
141
|
+
}
|
|
142
|
+
convertUtf8OffsetToUtf16(n) {
|
|
143
|
+
return this.utf8OffsetToUtf16 ? n < 0 ? 0 : n > this.utf8Length ? this.utf16Length : this.utf8OffsetToUtf16[n] : n;
|
|
144
|
+
}
|
|
145
|
+
convertUtf16OffsetToUtf8(n) {
|
|
146
|
+
return this.utf16OffsetToUtf8 ? n < 0 ? 0 : n > this.utf16Length ? this.utf8Length : this.utf16OffsetToUtf8[n] : n;
|
|
147
|
+
}
|
|
148
|
+
dispose() {
|
|
149
|
+
this.ptr === _._sharedPtr ? _._sharedPtrInUse = !1 : this._onigBinding.ofree(this.ptr);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
let L = _;
|
|
153
|
+
d(L, "LAST_ID", 0);
|
|
154
|
+
d(L, "_sharedPtr", 0);
|
|
155
|
+
d(L, "_sharedPtrInUse", !1);
|
|
156
|
+
class N {
|
|
157
|
+
constructor(t) {
|
|
158
|
+
if (d(this, "_onigBinding"), d(this, "_ptr"), !g)
|
|
159
|
+
throw new B("Must invoke loadWasm first.");
|
|
160
|
+
const r = [], e = [];
|
|
161
|
+
for (let s = 0, i = t.length; s < i; s++) {
|
|
162
|
+
const a = new T(t[s]);
|
|
163
|
+
r[s] = a.createString(g), e[s] = a.utf8Length;
|
|
164
|
+
}
|
|
165
|
+
const l = g.omalloc(4 * t.length);
|
|
166
|
+
g.HEAPU32.set(r, l / 4);
|
|
167
|
+
const h = g.omalloc(4 * t.length);
|
|
168
|
+
g.HEAPU32.set(e, h / 4);
|
|
169
|
+
const o = g.createOnigScanner(l, h, t.length);
|
|
170
|
+
for (let s = 0, i = t.length; s < i; s++)
|
|
171
|
+
g.ofree(r[s]);
|
|
172
|
+
g.ofree(h), g.ofree(l), o === 0 && V(g), this._onigBinding = g, this._ptr = o;
|
|
173
|
+
}
|
|
174
|
+
dispose() {
|
|
175
|
+
this._onigBinding.freeOnigScanner(this._ptr);
|
|
176
|
+
}
|
|
177
|
+
findNextMatchSync(t, r, e) {
|
|
178
|
+
let l = 0;
|
|
179
|
+
if (typeof e == "number" && (l = e), typeof t == "string") {
|
|
180
|
+
t = new L(t);
|
|
181
|
+
const h = this._findNextMatchSync(t, r, !1, l);
|
|
182
|
+
return t.dispose(), h;
|
|
183
|
+
}
|
|
184
|
+
return this._findNextMatchSync(t, r, !1, l);
|
|
185
|
+
}
|
|
186
|
+
_findNextMatchSync(t, r, e, l) {
|
|
187
|
+
const h = this._onigBinding, o = h.findNextOnigScannerMatch(this._ptr, t.id, t.ptr, t.utf8Length, t.convertUtf16OffsetToUtf8(r), l);
|
|
188
|
+
if (o === 0)
|
|
189
|
+
return null;
|
|
190
|
+
const s = h.HEAPU32;
|
|
191
|
+
let i = o / 4;
|
|
192
|
+
const a = s[i++], U = s[i++], u = [];
|
|
193
|
+
for (let y = 0; y < U; y++) {
|
|
194
|
+
const f = t.convertUtf8OffsetToUtf16(s[i++]), c = t.convertUtf8OffsetToUtf16(s[i++]);
|
|
195
|
+
u[y] = {
|
|
196
|
+
start: f,
|
|
197
|
+
end: c,
|
|
198
|
+
length: c - f
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
return {
|
|
202
|
+
index: a,
|
|
203
|
+
captureIndices: u
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
function F(n) {
|
|
208
|
+
return typeof n.instantiator == "function";
|
|
209
|
+
}
|
|
210
|
+
function R(n) {
|
|
211
|
+
return typeof n.default == "function";
|
|
212
|
+
}
|
|
213
|
+
function k(n) {
|
|
214
|
+
return typeof n.data < "u";
|
|
215
|
+
}
|
|
216
|
+
function j(n) {
|
|
217
|
+
return typeof Response < "u" && n instanceof Response;
|
|
218
|
+
}
|
|
219
|
+
function z(n) {
|
|
220
|
+
return typeof ArrayBuffer < "u" && (n instanceof ArrayBuffer || ArrayBuffer.isView(n)) || typeof Buffer < "u" && Buffer.isBuffer?.(n) || typeof SharedArrayBuffer < "u" && n instanceof SharedArrayBuffer || typeof Uint32Array < "u" && n instanceof Uint32Array;
|
|
221
|
+
}
|
|
222
|
+
let P;
|
|
223
|
+
function G(n) {
|
|
224
|
+
if (P)
|
|
225
|
+
return P;
|
|
226
|
+
async function t() {
|
|
227
|
+
g = await I(async (r) => {
|
|
228
|
+
let e = n;
|
|
229
|
+
return e = await e, typeof e == "function" && (e = await e(r)), typeof e == "function" && (e = await e(r)), F(e) ? e = await e.instantiator(r) : R(e) ? e = await e.default(r) : (k(e) && (e = e.data), j(e) ? typeof WebAssembly.instantiateStreaming == "function" ? e = await J(e)(r) : e = await K(e)(r) : z(e) ? e = await O(e)(r) : e instanceof WebAssembly.Module ? e = await O(e)(r) : "default" in e && e.default instanceof WebAssembly.Module && (e = await O(e.default)(r))), "instance" in e && (e = e.instance), "exports" in e && (e = e.exports), e;
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
return P = t(), P;
|
|
233
|
+
}
|
|
234
|
+
function O(n) {
|
|
235
|
+
return (t) => WebAssembly.instantiate(n, t);
|
|
236
|
+
}
|
|
237
|
+
function J(n) {
|
|
238
|
+
return (t) => WebAssembly.instantiateStreaming(n, t);
|
|
239
|
+
}
|
|
240
|
+
function K(n) {
|
|
241
|
+
return async (t) => {
|
|
242
|
+
const r = await n.arrayBuffer();
|
|
243
|
+
return WebAssembly.instantiate(r, t);
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
let M;
|
|
247
|
+
function X(n) {
|
|
248
|
+
M = n;
|
|
249
|
+
}
|
|
250
|
+
function Y() {
|
|
251
|
+
return M;
|
|
252
|
+
}
|
|
253
|
+
async function Q(n) {
|
|
254
|
+
return n && await G(n), {
|
|
255
|
+
createScanner(t) {
|
|
256
|
+
return new N(t.map((r) => typeof r == "string" ? r : r.source));
|
|
257
|
+
},
|
|
258
|
+
createString(t) {
|
|
259
|
+
return new L(t);
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
async function Z(n) {
|
|
264
|
+
return Q(n);
|
|
265
|
+
}
|
|
266
|
+
export {
|
|
267
|
+
Q as createOnigurumaEngine,
|
|
268
|
+
Z as createWasmOnigEngine,
|
|
269
|
+
Y as getDefaultWasmLoader,
|
|
270
|
+
G as loadWasm,
|
|
271
|
+
X as setDefaultWasmLoader
|
|
272
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f9826c","activityBar.background":"#fff","activityBar.border":"#e1e4e8","activityBar.foreground":"#2f363d","activityBar.inactiveForeground":"#959da5","activityBarBadge.background":"#2188ff","activityBarBadge.foreground":"#fff","badge.background":"#dbedff","badge.foreground":"#005cc5","breadcrumb.activeSelectionForeground":"#586069","breadcrumb.focusForeground":"#2f363d","breadcrumb.foreground":"#6a737d","breadcrumbPicker.background":"#fafbfc","button.background":"#159739","button.foreground":"#fff","button.hoverBackground":"#138934","button.secondaryBackground":"#e1e4e8","button.secondaryForeground":"#1b1f23","button.secondaryHoverBackground":"#d1d5da","checkbox.background":"#fafbfc","checkbox.border":"#d1d5da","debugToolBar.background":"#fff","descriptionForeground":"#6a737d","diffEditor.insertedTextBackground":"#34d05822","diffEditor.removedTextBackground":"#d73a4922","dropdown.background":"#fafbfc","dropdown.border":"#e1e4e8","dropdown.foreground":"#2f363d","dropdown.listBackground":"#fff","editor.background":"#fff","editor.findMatchBackground":"#ffdf5d","editor.findMatchHighlightBackground":"#ffdf5d66","editor.focusedStackFrameHighlightBackground":"#28a74525","editor.foldBackground":"#d1d5da11","editor.foreground":"#24292e","editor.inactiveSelectionBackground":"#0366d611","editor.lineHighlightBackground":"#f6f8fa","editor.linkedEditingBackground":"#0366d611","editor.selectionBackground":"#0366d625","editor.selectionHighlightBackground":"#34d05840","editor.selectionHighlightBorder":"#34d05800","editor.stackFrameHighlightBackground":"#ffd33d33","editor.wordHighlightBackground":"#34d05800","editor.wordHighlightBorder":"#24943e99","editor.wordHighlightStrongBackground":"#34d05800","editor.wordHighlightStrongBorder":"#24943e50","editorBracketHighlight.foreground1":"#005cc5","editorBracketHighlight.foreground2":"#e36209","editorBracketHighlight.foreground3":"#5a32a3","editorBracketHighlight.foreground4":"#005cc5","editorBracketHighlight.foreground5":"#e36209","editorBracketHighlight.foreground6":"#5a32a3","editorBracketMatch.background":"#34d05840","editorBracketMatch.border":"#34d05800","editorCursor.foreground":"#044289","editorError.foreground":"#cb2431","editorGroup.border":"#e1e4e8","editorGroupHeader.tabsBackground":"#f6f8fa","editorGroupHeader.tabsBorder":"#e1e4e8","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#d73a49","editorGutter.modifiedBackground":"#2188ff","editorIndentGuide.activeBackground":"#d7dbe0","editorIndentGuide.background":"#eff2f6","editorLineNumber.activeForeground":"#24292e","editorLineNumber.foreground":"#1b1f234d","editorOverviewRuler.border":"#fff","editorWarning.foreground":"#f9c513","editorWhitespace.foreground":"#d1d5da","editorWidget.background":"#f6f8fa","errorForeground":"#cb2431","focusBorder":"#2188ff","foreground":"#444d56","gitDecoration.addedResourceForeground":"#28a745","gitDecoration.conflictingResourceForeground":"#e36209","gitDecoration.deletedResourceForeground":"#d73a49","gitDecoration.ignoredResourceForeground":"#959da5","gitDecoration.modifiedResourceForeground":"#005cc5","gitDecoration.submoduleResourceForeground":"#959da5","gitDecoration.untrackedResourceForeground":"#28a745","input.background":"#fafbfc","input.border":"#e1e4e8","input.foreground":"#2f363d","input.placeholderForeground":"#959da5","list.activeSelectionBackground":"#e2e5e9","list.activeSelectionForeground":"#2f363d","list.focusBackground":"#cce5ff","list.hoverBackground":"#ebf0f4","list.hoverForeground":"#2f363d","list.inactiveFocusBackground":"#dbedff","list.inactiveSelectionBackground":"#e8eaed","list.inactiveSelectionForeground":"#2f363d","notificationCenterHeader.background":"#e1e4e8","notificationCenterHeader.foreground":"#6a737d","notifications.background":"#fafbfc","notifications.border":"#e1e4e8","notifications.foreground":"#2f363d","notificationsErrorIcon.foreground":"#d73a49","notificationsInfoIcon.foreground":"#005cc5","notificationsWarningIcon.foreground":"#e36209","panel.background":"#f6f8fa","panel.border":"#e1e4e8","panelInput.border":"#e1e4e8","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#2f363d","panelTitle.inactiveForeground":"#6a737d","pickerGroup.border":"#e1e4e8","pickerGroup.foreground":"#2f363d","progressBar.background":"#2188ff","quickInput.background":"#fafbfc","quickInput.foreground":"#2f363d","scrollbar.shadow":"#6a737d33","scrollbarSlider.activeBackground":"#959da588","scrollbarSlider.background":"#959da533","scrollbarSlider.hoverBackground":"#959da544","settings.headerForeground":"#2f363d","settings.modifiedItemIndicator":"#2188ff","sideBar.background":"#f6f8fa","sideBar.border":"#e1e4e8","sideBar.foreground":"#586069","sideBarSectionHeader.background":"#f6f8fa","sideBarSectionHeader.border":"#e1e4e8","sideBarSectionHeader.foreground":"#2f363d","sideBarTitle.foreground":"#2f363d","statusBar.background":"#fff","statusBar.border":"#e1e4e8","statusBar.debuggingBackground":"#f9826c","statusBar.debuggingForeground":"#fff","statusBar.foreground":"#586069","statusBar.noFolderBackground":"#fff","statusBarItem.prominentBackground":"#e8eaed","statusBarItem.remoteBackground":"#fff","statusBarItem.remoteForeground":"#586069","tab.activeBackground":"#fff","tab.activeBorder":"#fff","tab.activeBorderTop":"#f9826c","tab.activeForeground":"#2f363d","tab.border":"#e1e4e8","tab.hoverBackground":"#fff","tab.inactiveBackground":"#f6f8fa","tab.inactiveForeground":"#6a737d","tab.unfocusedActiveBorder":"#fff","tab.unfocusedActiveBorderTop":"#e1e4e8","tab.unfocusedHoverBackground":"#fff","terminal.ansiBlack":"#24292e","terminal.ansiBlue":"#0366d6","terminal.ansiBrightBlack":"#959da5","terminal.ansiBrightBlue":"#005cc5","terminal.ansiBrightCyan":"#3192aa","terminal.ansiBrightGreen":"#22863a","terminal.ansiBrightMagenta":"#5a32a3","terminal.ansiBrightRed":"#cb2431","terminal.ansiBrightWhite":"#d1d5da","terminal.ansiBrightYellow":"#b08800","terminal.ansiCyan":"#1b7c83","terminal.ansiGreen":"#28a745","terminal.ansiMagenta":"#5a32a3","terminal.ansiRed":"#d73a49","terminal.ansiWhite":"#6a737d","terminal.ansiYellow":"#dbab09","terminal.foreground":"#586069","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#d1d5da","terminalCursor.foreground":"#005cc5","textBlockQuote.background":"#fafbfc","textBlockQuote.border":"#e1e4e8","textCodeBlock.background":"#f6f8fa","textLink.activeForeground":"#005cc5","textLink.foreground":"#0366d6","textPreformat.foreground":"#586069","textSeparator.foreground":"#d1d5da","titleBar.activeBackground":"#fff","titleBar.activeForeground":"#2f363d","titleBar.border":"#e1e4e8","titleBar.inactiveBackground":"#f6f8fa","titleBar.inactiveForeground":"#6a737d","tree.indentGuidesStroke":"#e1e4e8","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#e1e4e8"},"displayName":"GitHub Light","name":"github-light","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#005cc5"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#6f42c1"}},{"scope":"variable.parameter.function","settings":{"foreground":"#24292e"}},{"scope":"entity.name.tag","settings":{"foreground":"#22863a"}},{"scope":"keyword","settings":{"foreground":"#d73a49"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#d73a49"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#24292e"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#032f62"}},{"scope":"support","settings":{"foreground":"#005cc5"}},{"scope":"meta.property-name","settings":{"foreground":"#005cc5"}},{"scope":"variable","settings":{"foreground":"#e36209"}},{"scope":"variable.other","settings":{"foreground":"#24292e"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"carriage-return","settings":{"background":"#d73a49","content":"^M","fontStyle":"italic underline","foreground":"#fafbfc"}},{"scope":"message.error","settings":{"foreground":"#b31d28"}},{"scope":"string variable","settings":{"foreground":"#005cc5"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#032f62"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#032f62"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#22863a"}},{"scope":"support.constant","settings":{"foreground":"#005cc5"}},{"scope":"support.variable","settings":{"foreground":"#005cc5"}},{"scope":"meta.module-reference","settings":{"foreground":"#005cc5"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e36209"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"markup.quote","settings":{"foreground":"#22863a"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#24292e"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#24292e"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#005cc5"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffeef0","foreground":"#b31d28"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#f0fff4","foreground":"#22863a"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffebda","foreground":"#e36209"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#005cc5","foreground":"#f6f8fa"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#6f42c1"}},{"scope":"meta.diff.header","settings":{"foreground":"#005cc5"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"meta.output","settings":{"foreground":"#005cc5"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#586069"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#b31d28"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"fontStyle":"underline","foreground":"#032f62"}}],"type":"light"}'));exports.default=e;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const e = Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f9826c","activityBar.background":"#fff","activityBar.border":"#e1e4e8","activityBar.foreground":"#2f363d","activityBar.inactiveForeground":"#959da5","activityBarBadge.background":"#2188ff","activityBarBadge.foreground":"#fff","badge.background":"#dbedff","badge.foreground":"#005cc5","breadcrumb.activeSelectionForeground":"#586069","breadcrumb.focusForeground":"#2f363d","breadcrumb.foreground":"#6a737d","breadcrumbPicker.background":"#fafbfc","button.background":"#159739","button.foreground":"#fff","button.hoverBackground":"#138934","button.secondaryBackground":"#e1e4e8","button.secondaryForeground":"#1b1f23","button.secondaryHoverBackground":"#d1d5da","checkbox.background":"#fafbfc","checkbox.border":"#d1d5da","debugToolBar.background":"#fff","descriptionForeground":"#6a737d","diffEditor.insertedTextBackground":"#34d05822","diffEditor.removedTextBackground":"#d73a4922","dropdown.background":"#fafbfc","dropdown.border":"#e1e4e8","dropdown.foreground":"#2f363d","dropdown.listBackground":"#fff","editor.background":"#fff","editor.findMatchBackground":"#ffdf5d","editor.findMatchHighlightBackground":"#ffdf5d66","editor.focusedStackFrameHighlightBackground":"#28a74525","editor.foldBackground":"#d1d5da11","editor.foreground":"#24292e","editor.inactiveSelectionBackground":"#0366d611","editor.lineHighlightBackground":"#f6f8fa","editor.linkedEditingBackground":"#0366d611","editor.selectionBackground":"#0366d625","editor.selectionHighlightBackground":"#34d05840","editor.selectionHighlightBorder":"#34d05800","editor.stackFrameHighlightBackground":"#ffd33d33","editor.wordHighlightBackground":"#34d05800","editor.wordHighlightBorder":"#24943e99","editor.wordHighlightStrongBackground":"#34d05800","editor.wordHighlightStrongBorder":"#24943e50","editorBracketHighlight.foreground1":"#005cc5","editorBracketHighlight.foreground2":"#e36209","editorBracketHighlight.foreground3":"#5a32a3","editorBracketHighlight.foreground4":"#005cc5","editorBracketHighlight.foreground5":"#e36209","editorBracketHighlight.foreground6":"#5a32a3","editorBracketMatch.background":"#34d05840","editorBracketMatch.border":"#34d05800","editorCursor.foreground":"#044289","editorError.foreground":"#cb2431","editorGroup.border":"#e1e4e8","editorGroupHeader.tabsBackground":"#f6f8fa","editorGroupHeader.tabsBorder":"#e1e4e8","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#d73a49","editorGutter.modifiedBackground":"#2188ff","editorIndentGuide.activeBackground":"#d7dbe0","editorIndentGuide.background":"#eff2f6","editorLineNumber.activeForeground":"#24292e","editorLineNumber.foreground":"#1b1f234d","editorOverviewRuler.border":"#fff","editorWarning.foreground":"#f9c513","editorWhitespace.foreground":"#d1d5da","editorWidget.background":"#f6f8fa","errorForeground":"#cb2431","focusBorder":"#2188ff","foreground":"#444d56","gitDecoration.addedResourceForeground":"#28a745","gitDecoration.conflictingResourceForeground":"#e36209","gitDecoration.deletedResourceForeground":"#d73a49","gitDecoration.ignoredResourceForeground":"#959da5","gitDecoration.modifiedResourceForeground":"#005cc5","gitDecoration.submoduleResourceForeground":"#959da5","gitDecoration.untrackedResourceForeground":"#28a745","input.background":"#fafbfc","input.border":"#e1e4e8","input.foreground":"#2f363d","input.placeholderForeground":"#959da5","list.activeSelectionBackground":"#e2e5e9","list.activeSelectionForeground":"#2f363d","list.focusBackground":"#cce5ff","list.hoverBackground":"#ebf0f4","list.hoverForeground":"#2f363d","list.inactiveFocusBackground":"#dbedff","list.inactiveSelectionBackground":"#e8eaed","list.inactiveSelectionForeground":"#2f363d","notificationCenterHeader.background":"#e1e4e8","notificationCenterHeader.foreground":"#6a737d","notifications.background":"#fafbfc","notifications.border":"#e1e4e8","notifications.foreground":"#2f363d","notificationsErrorIcon.foreground":"#d73a49","notificationsInfoIcon.foreground":"#005cc5","notificationsWarningIcon.foreground":"#e36209","panel.background":"#f6f8fa","panel.border":"#e1e4e8","panelInput.border":"#e1e4e8","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#2f363d","panelTitle.inactiveForeground":"#6a737d","pickerGroup.border":"#e1e4e8","pickerGroup.foreground":"#2f363d","progressBar.background":"#2188ff","quickInput.background":"#fafbfc","quickInput.foreground":"#2f363d","scrollbar.shadow":"#6a737d33","scrollbarSlider.activeBackground":"#959da588","scrollbarSlider.background":"#959da533","scrollbarSlider.hoverBackground":"#959da544","settings.headerForeground":"#2f363d","settings.modifiedItemIndicator":"#2188ff","sideBar.background":"#f6f8fa","sideBar.border":"#e1e4e8","sideBar.foreground":"#586069","sideBarSectionHeader.background":"#f6f8fa","sideBarSectionHeader.border":"#e1e4e8","sideBarSectionHeader.foreground":"#2f363d","sideBarTitle.foreground":"#2f363d","statusBar.background":"#fff","statusBar.border":"#e1e4e8","statusBar.debuggingBackground":"#f9826c","statusBar.debuggingForeground":"#fff","statusBar.foreground":"#586069","statusBar.noFolderBackground":"#fff","statusBarItem.prominentBackground":"#e8eaed","statusBarItem.remoteBackground":"#fff","statusBarItem.remoteForeground":"#586069","tab.activeBackground":"#fff","tab.activeBorder":"#fff","tab.activeBorderTop":"#f9826c","tab.activeForeground":"#2f363d","tab.border":"#e1e4e8","tab.hoverBackground":"#fff","tab.inactiveBackground":"#f6f8fa","tab.inactiveForeground":"#6a737d","tab.unfocusedActiveBorder":"#fff","tab.unfocusedActiveBorderTop":"#e1e4e8","tab.unfocusedHoverBackground":"#fff","terminal.ansiBlack":"#24292e","terminal.ansiBlue":"#0366d6","terminal.ansiBrightBlack":"#959da5","terminal.ansiBrightBlue":"#005cc5","terminal.ansiBrightCyan":"#3192aa","terminal.ansiBrightGreen":"#22863a","terminal.ansiBrightMagenta":"#5a32a3","terminal.ansiBrightRed":"#cb2431","terminal.ansiBrightWhite":"#d1d5da","terminal.ansiBrightYellow":"#b08800","terminal.ansiCyan":"#1b7c83","terminal.ansiGreen":"#28a745","terminal.ansiMagenta":"#5a32a3","terminal.ansiRed":"#d73a49","terminal.ansiWhite":"#6a737d","terminal.ansiYellow":"#dbab09","terminal.foreground":"#586069","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#d1d5da","terminalCursor.foreground":"#005cc5","textBlockQuote.background":"#fafbfc","textBlockQuote.border":"#e1e4e8","textCodeBlock.background":"#f6f8fa","textLink.activeForeground":"#005cc5","textLink.foreground":"#0366d6","textPreformat.foreground":"#586069","textSeparator.foreground":"#d1d5da","titleBar.activeBackground":"#fff","titleBar.activeForeground":"#2f363d","titleBar.border":"#e1e4e8","titleBar.inactiveBackground":"#f6f8fa","titleBar.inactiveForeground":"#6a737d","tree.indentGuidesStroke":"#e1e4e8","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#e1e4e8"},"displayName":"GitHub Light","name":"github-light","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#005cc5"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#6f42c1"}},{"scope":"variable.parameter.function","settings":{"foreground":"#24292e"}},{"scope":"entity.name.tag","settings":{"foreground":"#22863a"}},{"scope":"keyword","settings":{"foreground":"#d73a49"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#d73a49"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#24292e"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#032f62"}},{"scope":"support","settings":{"foreground":"#005cc5"}},{"scope":"meta.property-name","settings":{"foreground":"#005cc5"}},{"scope":"variable","settings":{"foreground":"#e36209"}},{"scope":"variable.other","settings":{"foreground":"#24292e"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"carriage-return","settings":{"background":"#d73a49","content":"^M","fontStyle":"italic underline","foreground":"#fafbfc"}},{"scope":"message.error","settings":{"foreground":"#b31d28"}},{"scope":"string variable","settings":{"foreground":"#005cc5"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#032f62"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#032f62"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#22863a"}},{"scope":"support.constant","settings":{"foreground":"#005cc5"}},{"scope":"support.variable","settings":{"foreground":"#005cc5"}},{"scope":"meta.module-reference","settings":{"foreground":"#005cc5"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e36209"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"markup.quote","settings":{"foreground":"#22863a"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#24292e"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#24292e"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#005cc5"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffeef0","foreground":"#b31d28"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#f0fff4","foreground":"#22863a"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffebda","foreground":"#e36209"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#005cc5","foreground":"#f6f8fa"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#6f42c1"}},{"scope":"meta.diff.header","settings":{"foreground":"#005cc5"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"meta.output","settings":{"foreground":"#005cc5"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#586069"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#b31d28"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"fontStyle":"underline","foreground":"#032f62"}}],"type":"light"}'));
|
|
2
|
+
export {
|
|
3
|
+
e as default
|
|
4
|
+
};
|
|
@@ -18,6 +18,8 @@ export interface FilterSelection {
|
|
|
18
18
|
dimensionName: string;
|
|
19
19
|
/** Source name - required to uniquely identify filters when same dimension name exists in multiple sources */
|
|
20
20
|
source: string;
|
|
21
|
+
/** Server-side filter name. Used as the unique key and the API param key. */
|
|
22
|
+
filterName?: string;
|
|
21
23
|
matchType: MatchType;
|
|
22
24
|
value: FilterValue;
|
|
23
25
|
value2?: FilterValuePrimitive;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FilterSelection, FilterValuePrimitive } from './useDimensionFilters';
|
|
1
|
+
import { FilterSelection, FilterValuePrimitive, MatchType } from './useDimensionFilters';
|
|
2
2
|
/**
|
|
3
3
|
* Filter types for dimensions
|
|
4
4
|
*/
|
|
@@ -17,18 +17,32 @@ export interface DimensionSpec {
|
|
|
17
17
|
model: string;
|
|
18
18
|
/** Label to display in the UI (derived from # label="..." annotation) */
|
|
19
19
|
label?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Server-side filter identifier used as the API param key.
|
|
22
|
+
* Defaults to dimensionName when not set. Needed when the #(filter)
|
|
23
|
+
* annotation specifies name=X where X differs from the dimension field name.
|
|
24
|
+
*/
|
|
25
|
+
filterName?: string;
|
|
20
26
|
/** Minimum similarity score for Retrieval filter type (default: 0.1) */
|
|
21
27
|
minSimilarityScore?: number;
|
|
22
28
|
/** Optional list of static values to use for the dropdown instead of querying */
|
|
23
29
|
values?: string[];
|
|
30
|
+
/** Preferred initial match type (e.g. "After" for date greater_than filters) */
|
|
31
|
+
defaultMatchType?: MatchType;
|
|
32
|
+
/** Whether a value must be provided before queries execute */
|
|
33
|
+
required?: boolean;
|
|
24
34
|
}
|
|
25
35
|
/**
|
|
26
|
-
* Generates a unique key from source and
|
|
27
|
-
*
|
|
36
|
+
* Generates a unique key from source and an identifier string.
|
|
37
|
+
* Used to prevent collisions across sources and across multiple
|
|
38
|
+
* filters that target the same dimension.
|
|
28
39
|
*/
|
|
29
|
-
export declare function makeDimensionKey(source: string,
|
|
40
|
+
export declare function makeDimensionKey(source: string, identifier: string): string;
|
|
30
41
|
/**
|
|
31
|
-
* Generates a unique key for a
|
|
42
|
+
* Generates a unique key for a DimensionSpec.
|
|
43
|
+
* Prefers filterName (unique per filter) over dimensionName so that
|
|
44
|
+
* two filters on the same dimension (e.g. date before/after) get
|
|
45
|
+
* distinct keys.
|
|
32
46
|
*/
|
|
33
47
|
export declare function getDimensionKey(spec: DimensionSpec): string;
|
|
34
48
|
/**
|