@nongt/visql 0.4.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +219 -718
- package/dist/MuiTimePicker-BjywwrRm.js +112 -0
- package/dist/{PipelineEditor-BoFPDUmi.js → PipelineEditor-Cx_c0xZL.js} +1426 -1422
- package/dist/{core-api-BRJV9MUQ.js → core-api-DzslKd1R.js} +437 -426
- package/dist/core.js +1 -1
- package/dist/index.js +3 -3
- package/dist/mui-date-pickers-host.js +20 -0
- package/dist/mui-date-pickers.js +14 -113
- package/dist/mui.js +161 -155
- package/dist/types/adapters/mui/MuiDatePicker.d.ts +2 -3
- package/dist/types/adapters/mui/QueryBuilder.d.ts +2 -2
- package/dist/types/adapters/mui/components.d.ts +2 -2
- package/dist/types/adapters/mui/hostPickers.d.ts +8 -0
- package/dist/types/adapters/mui/muiPickers.d.ts +6 -5
- package/dist/types/core/ui/index.d.ts +2 -2
- package/dist/types/core/ui/types.d.ts +5 -4
- package/dist/types/features/queryEditor/PipelineEditor.d.ts +1 -4
- package/dist/types/mui-date-pickers-host.d.ts +12 -0
- package/dist/types/mui-date-pickers.d.ts +12 -3
- package/package.json +33 -10
package/dist/core.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { D as e, E as r, M as o, b as n, f as i, a as d, h as t, i as u, v as l } from "./schema-z95dxLxu.js";
|
|
2
2
|
import { M as m, a as E, b as T, Q as y, I as c, S as h, d as p, p as Q, e as _, f as U, g as b, c as A, h as M, K as N, B as D, q as I, k as B, t as f, v, m as L, G as C, H as R, w as F, r as G, x as q, i as x, C as H, E as P, F as g, y as k, s as O, z as X, A as Y, j, o as J, l as w, n as K, u as z, J as W } from "./issueLocation-CWUdTtCh.js";
|
|
3
3
|
import { c as Z, f as $, i as aa } from "./calendarDate-CYlr9TvX.js";
|
|
4
|
-
import { D as ea, q as ra, Q as oa, n as na, S as ia, c as da, d as ta, e as ua, f as la, g as Sa, a as ma, b as Ea, h as Ta, o as ya, r as ca, i as ha, p as pa, s as Qa, j as _a, k as Ua, l as ba, m as Aa, u as Ma } from "./core-api-
|
|
4
|
+
import { D as ea, q as ra, Q as oa, n as na, S as ia, c as da, d as ta, e as ua, f as la, g as Sa, a as ma, b as Ea, h as Ta, o as ya, r as ca, i as ha, p as pa, s as Qa, j as _a, k as Ua, l as ba, m as Aa, u as Ma } from "./core-api-DzslKd1R.js";
|
|
5
5
|
export {
|
|
6
6
|
e as DEFAULT_FUNCTIONS,
|
|
7
7
|
ea as DIALECTS,
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as Q, f as U, a as D } from "./PipelineEditor-
|
|
1
|
+
import { P as Q, f as U, a as D } from "./PipelineEditor-Cx_c0xZL.js";
|
|
2
2
|
import { D as b, E as x, M as B, b as F, f as I, a as v, h as L, i as P, v as R } from "./schema-z95dxLxu.js";
|
|
3
3
|
import { D as k, M as q, a as C, b as G, Q as H, I as w, S as X, d as W, p as Y, e as j, f as J, g as z, c as K, h as V, K as Z, B as $, q as ee, k as ae, t as se, v as te, m as re, G as ne, H as oe, w as ie, r as de, x as ce, i as ue, C as le, E as fe, F as me, y as he, s as pe, z as Se, A as Ee, j as Te, o as ge, l as Ne, n as _e, u as ye, J as Ae } from "./issueLocation-CWUdTtCh.js";
|
|
4
4
|
import { c as Ue, f as De, i as Me } from "./calendarDate-CYlr9TvX.js";
|
|
5
|
-
import { w as m, a as h, b as p } from "./core-api-
|
|
6
|
-
import { D as xe, q as Be, Q as Fe, n as Ie, S as ve, c as Le, d as Pe, e as Re, f as Oe, g as ke, h as qe, o as Ce, r as Ge, i as He, p as we, s as Xe, j as We, k as Ye, l as je, m as Je, u as ze } from "./core-api-
|
|
5
|
+
import { w as m, a as h, b as p } from "./core-api-DzslKd1R.js";
|
|
6
|
+
import { D as xe, q as Be, Q as Fe, n as Ie, S as ve, c as Le, d as Pe, e as Re, f as Oe, g as ke, h as qe, o as Ce, r as Ge, i as He, p as we, s as Xe, j as We, k as Ye, l as je, m as Je, u as ze } from "./core-api-DzslKd1R.js";
|
|
7
7
|
import { D as Ve } from "./tokens-BTaVMSOx.js";
|
|
8
8
|
function T(n, s, e = {}) {
|
|
9
9
|
const a = { paths: [] }, t = m(a, () => e.parameterized ? h(n, s, e).sql : p(n, s, e));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { M as o, a as s, b as a } from "./MuiTimePicker-BjywwrRm.js";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { useContext as m } from "react";
|
|
4
|
+
import { MuiPickersAdapterContext as c } from "@mui/x-date-pickers/LocalizationProvider";
|
|
5
|
+
function e(i) {
|
|
6
|
+
const t = (r) => {
|
|
7
|
+
if (!m(c))
|
|
8
|
+
throw new Error(
|
|
9
|
+
"@nongt/visql/mui-date-pickers/host: wrap the editor in MUI X's LocalizationProvider (with a date-fns adapter), or use @nongt/visql/mui-date-pickers, which brings one."
|
|
10
|
+
);
|
|
11
|
+
return /* @__PURE__ */ n(i, { ...r });
|
|
12
|
+
};
|
|
13
|
+
return t.displayName = `WithHostPickers(${i.displayName ?? i.name})`, t;
|
|
14
|
+
}
|
|
15
|
+
const M = e(o), h = e(s), P = e(a);
|
|
16
|
+
export {
|
|
17
|
+
M as MuiDatePicker,
|
|
18
|
+
h as MuiDateTimePicker,
|
|
19
|
+
P as MuiTimePicker
|
|
20
|
+
};
|
package/dist/mui-date-pickers.js
CHANGED
|
@@ -1,117 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function f({ children: o }) {
|
|
11
|
-
return x(U) ? o : /* @__PURE__ */ n(w, { dateAdapter: F, children: o });
|
|
12
|
-
}
|
|
13
|
-
const D = ".MuiPickersOutlinedInput-notchedOutline";
|
|
14
|
-
function P(o, i = !1) {
|
|
15
|
-
return {
|
|
16
|
-
width: "fit-content",
|
|
17
|
-
...i ? { "& .MuiPickersSectionList-root": { width: "auto" } } : {},
|
|
18
|
-
"& .MuiPickersOutlinedInput-root": {
|
|
19
|
-
...o ? { height: 38, borderTopLeftRadius: 0, borderBottomLeftRadius: 0 } : {},
|
|
20
|
-
[`& ${D}`]: { borderColor: p("fieldBorder") },
|
|
21
|
-
[`&:hover:not(.Mui-focused):not(.Mui-disabled) ${D}`]: {
|
|
22
|
-
borderColor: p("fieldBorderHover")
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
// The calendar/clock button: the size of the other fields' arrows.
|
|
26
|
-
"& .MuiInputAdornment-root .MuiIconButton-root": { padding: "4px" },
|
|
27
|
-
"& .MuiInputAdornment-root .MuiSvgIcon-root": { fontSize: 20 }
|
|
1
|
+
import { M as m, a as n, b as s } from "./MuiTimePicker-BjywwrRm.js";
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { useContext as c } from "react";
|
|
4
|
+
import { AdapterDateFns as p } from "@mui/x-date-pickers/AdapterDateFns";
|
|
5
|
+
import { MuiPickersAdapterContext as u, LocalizationProvider as d } from "@mui/x-date-pickers/LocalizationProvider";
|
|
6
|
+
function t(e) {
|
|
7
|
+
const i = (o) => {
|
|
8
|
+
const r = /* @__PURE__ */ a(e, { ...o });
|
|
9
|
+
return c(u) ? r : /* @__PURE__ */ a(d, { dateAdapter: p, children: r });
|
|
28
10
|
};
|
|
11
|
+
return i.displayName = `WithDateFns(${e.displayName ?? e.name})`, i;
|
|
29
12
|
}
|
|
30
|
-
const
|
|
31
|
-
className: o,
|
|
32
|
-
grouped: i,
|
|
33
|
-
value: t,
|
|
34
|
-
onChange: r,
|
|
35
|
-
disabled: l
|
|
36
|
-
}) => {
|
|
37
|
-
const c = a((d) => {
|
|
38
|
-
r == null || r(d ? g(d.getFullYear(), d.getMonth() + 1, d.getDate()) : void 0);
|
|
39
|
-
}, [r]), m = s(() => t ? new Date(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()) : null, [t]), u = s(() => ({
|
|
40
|
-
className: o,
|
|
41
|
-
sx: P(i, !0),
|
|
42
|
-
size: "small"
|
|
43
|
-
}), [o, i]), e = s(() => ({
|
|
44
|
-
textField: u
|
|
45
|
-
}), [u]);
|
|
46
|
-
return /* @__PURE__ */ n(f, { children: /* @__PURE__ */ n(
|
|
47
|
-
h,
|
|
48
|
-
{
|
|
49
|
-
disabled: l,
|
|
50
|
-
value: m,
|
|
51
|
-
slotProps: e,
|
|
52
|
-
onChange: c
|
|
53
|
-
}
|
|
54
|
-
) });
|
|
55
|
-
}, Y = ({
|
|
56
|
-
className: o,
|
|
57
|
-
grouped: i,
|
|
58
|
-
value: t,
|
|
59
|
-
onChange: r,
|
|
60
|
-
disabled: l
|
|
61
|
-
}) => {
|
|
62
|
-
const c = a((e) => {
|
|
63
|
-
r == null || r(e ? new Date(Date.UTC(
|
|
64
|
-
e.getFullYear(),
|
|
65
|
-
e.getMonth(),
|
|
66
|
-
e.getDate(),
|
|
67
|
-
e.getHours(),
|
|
68
|
-
e.getMinutes()
|
|
69
|
-
)) : void 0);
|
|
70
|
-
}, [r]), m = s(() => t ? new Date(
|
|
71
|
-
t.getUTCFullYear(),
|
|
72
|
-
t.getUTCMonth(),
|
|
73
|
-
t.getUTCDate(),
|
|
74
|
-
t.getUTCHours(),
|
|
75
|
-
t.getUTCMinutes()
|
|
76
|
-
) : null, [t]), u = s(() => ({
|
|
77
|
-
textField: { className: o, sx: P(i), size: "small" }
|
|
78
|
-
}), [o, i]);
|
|
79
|
-
return /* @__PURE__ */ n(f, { children: /* @__PURE__ */ n(
|
|
80
|
-
S,
|
|
81
|
-
{
|
|
82
|
-
disabled: l,
|
|
83
|
-
value: m,
|
|
84
|
-
slotProps: u,
|
|
85
|
-
onChange: c
|
|
86
|
-
}
|
|
87
|
-
) });
|
|
88
|
-
}, M = (o) => String(o).padStart(2, "0"), R = ({
|
|
89
|
-
className: o,
|
|
90
|
-
grouped: i,
|
|
91
|
-
value: t,
|
|
92
|
-
onChange: r,
|
|
93
|
-
disabled: l
|
|
94
|
-
}) => {
|
|
95
|
-
const c = a((e) => {
|
|
96
|
-
r == null || r(e ? `${M(e.getHours())}:${M(e.getMinutes())}:${M(e.getSeconds())}` : void 0);
|
|
97
|
-
}, [r]), m = s(() => {
|
|
98
|
-
const [e, d, T] = (t ?? "").split(":").map(Number);
|
|
99
|
-
return t ? new Date(2e3, 0, 1, e, d, T || 0) : null;
|
|
100
|
-
}, [t]), u = s(() => ({
|
|
101
|
-
textField: { className: o, sx: P(i, !0), size: "small" }
|
|
102
|
-
}), [o, i]);
|
|
103
|
-
return /* @__PURE__ */ n(f, { children: /* @__PURE__ */ n(
|
|
104
|
-
b,
|
|
105
|
-
{
|
|
106
|
-
disabled: l,
|
|
107
|
-
value: m,
|
|
108
|
-
slotProps: u,
|
|
109
|
-
onChange: c
|
|
110
|
-
}
|
|
111
|
-
) });
|
|
112
|
-
};
|
|
13
|
+
const l = t(m), x = t(n), T = t(s);
|
|
113
14
|
export {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
15
|
+
l as MuiDatePicker,
|
|
16
|
+
x as MuiDateTimePicker,
|
|
17
|
+
T as MuiTimePicker
|
|
117
18
|
};
|