@nongt/visql 0.12.2 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MuiTimePicker-CROJXSCL.js → MuiTimePicker-CDzORsxO.js} +1 -1
- package/dist/{PipelineEditor-DDN3mL0I.js → PipelineEditor-CkYV-gdB.js} +3321 -3290
- package/dist/core.js +6 -6
- package/dist/explain.js +3 -3
- package/dist/fixtures.js +1 -1
- package/dist/index.js +9 -9
- package/dist/{issueLocation-DY-vvgFF.js → issueLocation-DYnJQgvr.js} +2 -2
- package/dist/mui-date-pickers-host.js +1 -1
- package/dist/mui-date-pickers.js +1 -1
- package/dist/mui.js +26 -26
- package/dist/{params-Btjlj45_.js → params-CXRW5B8V.js} +824 -800
- package/dist/{schema-DsMO9oFE.js → schema-C-CgG78X.js} +178 -168
- package/dist/sql-import.js +1 -1
- package/dist/{sqlGen-BbCX8Ywc.js → sqlGen-BSHDYdHB.js} +2 -2
- package/dist/{tokens-3SURLAkL.js → tokens-D5mWwogd.js} +10 -6
- package/dist/types/core/ast.d.ts +6 -1
- package/dist/types/core/components/expression/ExpressionTypeSelector.d.ts +4 -3
- package/dist/types/core/components/expression/ExpressionView.d.ts +1 -1
- package/dist/types/core/schema.d.ts +22 -4
- package/dist/types/core/theme/tokens.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { C as f, N as h } from "./PipelineEditor-
|
|
2
|
-
import { D as x, P as L, f as B, a as F } from "./PipelineEditor-
|
|
3
|
-
import { D as v, E as I, M as H, b as k, f as q, a as Y, c as G, h as w, i as X, r as J, s as W, v as j } from "./schema-
|
|
4
|
-
import { D as z, M as K, a as Z, b as $, d as ee, e as ae, f as se, g as te, c as re, h as ne, k as oe, m as ie, q as de, r as ce, i as ue, s as le, j as me, o as fe, l as he, n as pe, u as Ee } from "./params-
|
|
1
|
+
import { C as f, N as h } from "./PipelineEditor-CkYV-gdB.js";
|
|
2
|
+
import { D as x, P as L, f as B, a as F } from "./PipelineEditor-CkYV-gdB.js";
|
|
3
|
+
import { D as v, E as I, M as H, b as k, f as q, a as Y, c as G, h as w, i as X, r as J, s as W, v as j } from "./schema-C-CgG78X.js";
|
|
4
|
+
import { D as z, M as K, a as Z, b as $, d as ee, e as ae, f as se, g as te, c as re, h as ne, k as oe, m as ie, q as de, r as ce, i as ue, s as le, j as me, o as fe, l as he, n as pe, u as Ee } from "./params-CXRW5B8V.js";
|
|
5
5
|
import { c as Se, f as Te, i as Ne } from "./calendarDate-CYlr9TvX.js";
|
|
6
|
-
import { Q as _e, l as Ce, S as De, a as Me, n as Ue, f as ye, j as Pe, m as be, b as Qe, k as Re, r as xe, c as Le, g as Be, h as Fe, i as Oe, s as ve, d as Ie, e as He, v as ke } from "./issueLocation-
|
|
7
|
-
import { w as p, a as E, b as A } from "./sqlGen-
|
|
8
|
-
import { D as Ye, c as Ge, S as we, s as Xe, u as Je } from "./sqlGen-
|
|
6
|
+
import { Q as _e, l as Ce, S as De, a as Me, n as Ue, f as ye, j as Pe, m as be, b as Qe, k as Re, r as xe, c as Le, g as Be, h as Fe, i as Oe, s as ve, d as Ie, e as He, v as ke } from "./issueLocation-DYnJQgvr.js";
|
|
7
|
+
import { w as p, a as E, b as A } from "./sqlGen-BSHDYdHB.js";
|
|
8
|
+
import { D as Ye, c as Ge, S as we, s as Xe, u as Je } from "./sqlGen-BSHDYdHB.js";
|
|
9
9
|
import { QUERY_FORMAT_VERSION as je, QueryFormatError as Ve, addCondition as ze, addGroupBy as Ke, addJoin as Ze, addOrderBy as $e, addSelectItem as ea, expr as aa, loadQuery as sa, removeJoin as ta, requireBaseTable as ra, saveQuery as na, setBaseTable as oa, setDistinct as ia, setHaving as da, setPaging as ca } from "./core.js";
|
|
10
|
-
import { C as S, N as T } from "./tokens-
|
|
11
|
-
import { D as la } from "./tokens-
|
|
10
|
+
import { C as S, N as T } from "./tokens-D5mWwogd.js";
|
|
11
|
+
import { D as la } from "./tokens-D5mWwogd.js";
|
|
12
12
|
function D(n, s, e = {}) {
|
|
13
13
|
const a = { paths: [] }, t = p(a, () => e.parameterized ? E(n, s, e).sql : A(n, s, e));
|
|
14
14
|
let r = "";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as ye, z as Ke, q as Se, t as P, i as Ee, y as ke, d as te, o as be, b as _e, j as $e, f as He, A as ze, D as Ve, B as he, C as Ce, M as K, F as Ye, G as ee, u as ne, H as ge, I as Ze, J as er } from "./schema-
|
|
2
|
-
import { C as rr, E as nr, F as tr, G as Re, H as Qe, I as ir, J as De, K as sr, L as ar, N as or, t as cr, O as lr, P as ur, Q as fr, A as dr, z as mr, b as yr, R as Ue, M as hr, a as gr, S as Ge, T as pr, w as br, U as $r, V as vr } from "./params-
|
|
1
|
+
import { l as ye, z as Ke, q as Se, t as P, i as Ee, y as ke, d as te, o as be, b as _e, j as $e, f as He, A as ze, D as Ve, B as he, C as Ce, M as K, F as Ye, G as ee, u as ne, H as ge, I as Ze, J as er } from "./schema-C-CgG78X.js";
|
|
2
|
+
import { C as rr, E as nr, F as tr, G as Re, H as Qe, I as ir, J as De, K as sr, L as ar, N as or, t as cr, O as lr, P as ur, Q as fr, A as dr, z as mr, b as yr, R as Ue, M as hr, a as gr, S as Ge, T as pr, w as br, U as $r, V as vr } from "./params-CXRW5B8V.js";
|
|
3
3
|
const Ae = (n) => typeof n == "object" && n !== null && !Array.isArray(n) && !(n instanceof Date), Ne = (n) => typeof n.shared == "string";
|
|
4
4
|
function me(n, a) {
|
|
5
5
|
if (Array.isArray(n)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as o, a as s, b as a } from "./MuiTimePicker-
|
|
1
|
+
import { M as o, a as s, b as a } from "./MuiTimePicker-CDzORsxO.js";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
3
|
import { useContext as m } from "react";
|
|
4
4
|
import { MuiPickersAdapterContext as c } from "@mui/x-date-pickers/LocalizationProvider";
|
package/dist/mui-date-pickers.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as m, a as n, b as s } from "./MuiTimePicker-
|
|
1
|
+
import { M as m, a as n, b as s } from "./MuiTimePicker-CDzORsxO.js";
|
|
2
2
|
import { jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import { useContext as c } from "react";
|
|
4
4
|
import { AdapterDateFns as p } from "@mui/x-date-pickers/AdapterDateFns";
|
package/dist/mui.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as n, Fragment as ee, jsxs as P } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as N, useContext as te, createContext as oe, useMemo as
|
|
3
|
-
import { P as ie } from "./PipelineEditor-
|
|
2
|
+
import { forwardRef as N, useContext as te, createContext as oe, useMemo as z, useState as L, useRef as re, useLayoutEffect as ne } from "react";
|
|
3
|
+
import { P as ie } from "./PipelineEditor-CkYV-gdB.js";
|
|
4
4
|
import le from "@emotion/cache";
|
|
5
5
|
import { CacheProvider as D, __unsafe_useEmotionCache as ue } from "@emotion/react";
|
|
6
6
|
import { TextField as C, Menu as ce, ListSubheader as A, MenuItem as G, Box as g, createFilterOptions as se, Autocomplete as K, Select as ae, InputBase as de, Button as pe, IconButton as me, Tooltip as fe, Chip as he } from "@mui/material";
|
|
7
7
|
import { createTheme as xe, alpha as _, ThemeProvider as Q, useTheme as be } from "@mui/material/styles";
|
|
8
8
|
import Me from "clsx";
|
|
9
9
|
import { Plus as Ie } from "iconoir-react";
|
|
10
|
-
import { t as R } from "./tokens-
|
|
10
|
+
import { t as R } from "./tokens-D5mWwogd.js";
|
|
11
11
|
import { i as ye, f as ge } from "./calendarDate-CYlr9TvX.js";
|
|
12
12
|
function ve(e, t) {
|
|
13
13
|
return xe({
|
|
@@ -19,7 +19,7 @@ function ve(e, t) {
|
|
|
19
19
|
// Menus and popovers in the field cards' colours, which are light or
|
|
20
20
|
// dark with the theme.
|
|
21
21
|
text: { primary: e.fieldText, secondary: e.fieldTextMuted },
|
|
22
|
-
action: { active: e.fieldTextMuted },
|
|
22
|
+
action: { active: e.fieldTextMuted, hover: e.optionHoverBg },
|
|
23
23
|
background: { paper: e.fieldBg },
|
|
24
24
|
divider: e.fieldBorder
|
|
25
25
|
},
|
|
@@ -95,7 +95,7 @@ function Se() {
|
|
|
95
95
|
return F;
|
|
96
96
|
}
|
|
97
97
|
const J = oe(void 0), Te = ({ tokens: e, fontFamily: t, children: o }) => {
|
|
98
|
-
const u =
|
|
98
|
+
const u = z(() => ve(e, t), [e, t]), c = ue(), s = be(), i = z(() => ({ cache: c, theme: s }), [c, s]);
|
|
99
99
|
return /* @__PURE__ */ n(J.Provider, { value: i, children: /* @__PURE__ */ n(D, { value: Se(), children: /* @__PURE__ */ n(Q, { theme: u, children: o }) }) });
|
|
100
100
|
}, Be = ({ children: e }) => {
|
|
101
101
|
const t = te(J);
|
|
@@ -219,12 +219,12 @@ const J = oe(void 0), Te = ({ tokens: e, fontFamily: t, children: o }) => {
|
|
|
219
219
|
const t = _(e.text.primary, 0.04);
|
|
220
220
|
return `linear-gradient(${t}, ${t})`;
|
|
221
221
|
}
|
|
222
|
-
}, Fe = { ...X, top: -8, whiteSpace: "nowrap" },
|
|
222
|
+
}, Fe = { ...X, top: -8, whiteSpace: "nowrap" }, He = {
|
|
223
223
|
fontSize: "0.7rem",
|
|
224
224
|
color: "text.secondary",
|
|
225
225
|
whiteSpace: "normal",
|
|
226
226
|
maxWidth: 320
|
|
227
|
-
},
|
|
227
|
+
}, ze = {
|
|
228
228
|
borderTop: 1,
|
|
229
229
|
borderColor: "divider",
|
|
230
230
|
color: "primary.main",
|
|
@@ -252,14 +252,14 @@ function _e({
|
|
|
252
252
|
placeholder: W,
|
|
253
253
|
noOptionsText: w,
|
|
254
254
|
maxLength: O,
|
|
255
|
-
className:
|
|
255
|
+
className: V,
|
|
256
256
|
inputClassName: l,
|
|
257
257
|
grouped: d,
|
|
258
258
|
appearance: y = "light",
|
|
259
259
|
disabled: E,
|
|
260
|
-
autoFocus:
|
|
260
|
+
autoFocus: $
|
|
261
261
|
}) {
|
|
262
|
-
const T = (r) => typeof r == "string" || !s ? String(r) : s(r), Y = (r) => typeof r == "string" || !i ? T(r) : i(r),
|
|
262
|
+
const T = (r) => typeof r == "string" || !s ? String(r) : s(r), Y = (r) => typeof r == "string" || !i ? T(r) : i(r), k = (r) => p == null ? void 0 : p(r), j = y === "dark", Z = se(x ? { stringify: x } : {});
|
|
263
263
|
return /* @__PURE__ */ n(
|
|
264
264
|
K,
|
|
265
265
|
{
|
|
@@ -267,9 +267,9 @@ function _e({
|
|
|
267
267
|
const h = b && m.inputValue ? r.filter((B) => b(B, m.inputValue)) : Z(r, m), q = r.some((B) => T(B).toLowerCase() === m.inputValue.toLowerCase()) ? r : h;
|
|
268
268
|
return M ? r.filter((B) => M(B) || q.includes(B)) : q;
|
|
269
269
|
},
|
|
270
|
-
className:
|
|
270
|
+
className: V,
|
|
271
271
|
disabled: E,
|
|
272
|
-
openOnFocus:
|
|
272
|
+
openOnFocus: $,
|
|
273
273
|
freeSolo: S,
|
|
274
274
|
...w === void 0 ? {} : { noOptionsText: w },
|
|
275
275
|
forcePopupIcon: S && e.length > 0 ? !0 : "auto",
|
|
@@ -295,12 +295,12 @@ function _e({
|
|
|
295
295
|
),
|
|
296
296
|
/* @__PURE__ */ n(g, { component: "ul", sx: { p: 0 }, children: r.children })
|
|
297
297
|
] }, r.key),
|
|
298
|
-
renderOption: ({ key: r, ...m }, h) => M != null && M(h) ? /* @__PURE__ */ P(g, { component: "li", ...m, sx:
|
|
298
|
+
renderOption: ({ key: r, ...m }, h) => M != null && M(h) ? /* @__PURE__ */ P(g, { component: "li", ...m, sx: ze, children: [
|
|
299
299
|
/* @__PURE__ */ n(Ie, { width: 14, height: 14, strokeWidth: 2.2 }),
|
|
300
300
|
T(h)
|
|
301
|
-
] }, r) : /* @__PURE__ */ n("li", { ...m, className: Me(m.className, "text-nowrap"), children: (a == null ? void 0 : a(h)) ?? (
|
|
301
|
+
] }, r) : /* @__PURE__ */ n("li", { ...m, className: Me(m.className, "text-nowrap"), children: (a == null ? void 0 : a(h)) ?? (k(h) ? /* @__PURE__ */ P(g, { component: "span", sx: { display: "flex", flexDirection: "column" }, children: [
|
|
302
302
|
T(h),
|
|
303
|
-
/* @__PURE__ */ n(g, { component: "span", sx:
|
|
303
|
+
/* @__PURE__ */ n(g, { component: "span", sx: He, children: k(h) })
|
|
304
304
|
] }) : T(h)) }, r),
|
|
305
305
|
slotProps: Ee,
|
|
306
306
|
sx: {
|
|
@@ -318,7 +318,7 @@ function _e({
|
|
|
318
318
|
...r,
|
|
319
319
|
label: I,
|
|
320
320
|
placeholder: W,
|
|
321
|
-
autoFocus:
|
|
321
|
+
autoFocus: $,
|
|
322
322
|
slotProps: {
|
|
323
323
|
input: r.InputProps,
|
|
324
324
|
// A given inputClassName replaces MUI's own input class (callers
|
|
@@ -356,13 +356,13 @@ function _e({
|
|
|
356
356
|
}
|
|
357
357
|
);
|
|
358
358
|
}
|
|
359
|
-
const Ne = { danger: "error.main", warning: "warning.main" },
|
|
359
|
+
const Ne = { danger: "error.main", warning: "warning.main" }, Ve = { ...X, top: 0 }, $e = ({
|
|
360
360
|
anchorEl: e,
|
|
361
361
|
open: t,
|
|
362
362
|
onClose: o,
|
|
363
363
|
sections: u
|
|
364
364
|
}) => /* @__PURE__ */ n(ce, { anchorEl: e, open: t, onClose: o, children: u.flatMap((c, s) => [
|
|
365
|
-
...c.title ? [/* @__PURE__ */ n(A, { sx:
|
|
365
|
+
...c.title ? [/* @__PURE__ */ n(A, { sx: Ve, children: c.title }, `section-${s}`)] : [],
|
|
366
366
|
...c.items.map((i) => /* @__PURE__ */ P(
|
|
367
367
|
G,
|
|
368
368
|
{
|
|
@@ -392,8 +392,8 @@ const Ne = { danger: "error.main", warning: "warning.main" }, ke = { ...X, top:
|
|
|
392
392
|
},
|
|
393
393
|
i.key
|
|
394
394
|
))
|
|
395
|
-
]) }),
|
|
396
|
-
function
|
|
395
|
+
]) }), H = 38;
|
|
396
|
+
function ke({
|
|
397
397
|
items: e,
|
|
398
398
|
options: t,
|
|
399
399
|
onChange: o,
|
|
@@ -460,7 +460,7 @@ function $e({
|
|
|
460
460
|
maxWidth: 360,
|
|
461
461
|
// (As specific as MUI's own small-field padding, to replace it.)
|
|
462
462
|
"& .MuiOutlinedInput-root.MuiInputBase-sizeSmall": {
|
|
463
|
-
minHeight:
|
|
463
|
+
minHeight: H,
|
|
464
464
|
// A row of chips (24px, 2px margins) fills the 38px exactly.
|
|
465
465
|
py: "5px",
|
|
466
466
|
...p ? { borderTopLeftRadius: 0, borderBottomLeftRadius: 0 } : {},
|
|
@@ -469,7 +469,7 @@ function $e({
|
|
|
469
469
|
// focusing the input (rows down) scrolls it — left that way once
|
|
470
470
|
// collapsed again.
|
|
471
471
|
...S ? {} : {
|
|
472
|
-
maxHeight:
|
|
472
|
+
maxHeight: H,
|
|
473
473
|
overflow: "clip",
|
|
474
474
|
...I > 0 ? {
|
|
475
475
|
pr: "44px",
|
|
@@ -505,7 +505,7 @@ function $e({
|
|
|
505
505
|
sx: {
|
|
506
506
|
position: "absolute",
|
|
507
507
|
right: 8,
|
|
508
|
-
top: (
|
|
508
|
+
top: (H - 24) / 2,
|
|
509
509
|
pointerEvents: "none"
|
|
510
510
|
}
|
|
511
511
|
}
|
|
@@ -522,17 +522,17 @@ const je = {
|
|
|
522
522
|
TextField: Le,
|
|
523
523
|
Select: Re,
|
|
524
524
|
Combobox: _e,
|
|
525
|
-
Menu:
|
|
525
|
+
Menu: $e,
|
|
526
526
|
// A light native-date field; the MUI X picker is an opt-in (MuiDatePicker,
|
|
527
527
|
// `@nongt/visql/mui-date-pickers`) so this kit doesn't need MUI X/date-fns.
|
|
528
528
|
DatePicker: Ce,
|
|
529
529
|
// IN's values: an Autocomplete of chips (plain @mui/material).
|
|
530
|
-
ListInput:
|
|
530
|
+
ListInput: ke,
|
|
531
531
|
// The host's own UI inside the editor, in the host's cache and theme.
|
|
532
532
|
HostContent: Be
|
|
533
533
|
}, et = N(
|
|
534
534
|
({ components: e, ...t }, o) => {
|
|
535
|
-
const u =
|
|
535
|
+
const u = z(
|
|
536
536
|
() => ({ ...je, ...e }),
|
|
537
537
|
[e]
|
|
538
538
|
);
|