@nongt/visql 0.10.1 → 0.12.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-DRqT6ByZ.js → MuiTimePicker-CROJXSCL.js} +1 -1
- package/dist/{PipelineEditor-CGTZGbmf.js → PipelineEditor-DHfbOSzT.js} +4342 -4039
- package/dist/core.js +163 -136
- package/dist/explain.js +3 -3
- package/dist/fixtures.js +3 -3
- package/dist/index.js +102 -110
- package/dist/issueLocation-DY-vvgFF.js +1155 -0
- package/dist/mui-date-pickers-host.js +1 -1
- package/dist/mui-date-pickers.js +1 -1
- package/dist/mui.js +2 -2
- package/dist/{params-DkVFbMQn.js → params-Btjlj45_.js} +255 -226
- package/dist/{schema-CgL10bid.js → schema-DsMO9oFE.js} +327 -245
- package/dist/sql-import.js +829 -786
- package/dist/sqlGen-DGXVba3D.js +941 -0
- package/dist/{tokens-DV5rTGMj.js → tokens-3SURLAkL.js} +15 -14
- package/dist/types/core/FunctionsContext.d.ts +8 -2
- package/dist/types/core/absolutePath.d.ts +3 -0
- package/dist/types/core/ast.d.ts +24 -2
- package/dist/types/core/components/expression/ExpressionTypeSelector.d.ts +1 -1
- package/dist/types/core/components/flow/CalculationFlowNode.d.ts +5 -0
- package/dist/types/core/components/flow/WindowKeys.d.ts +10 -0
- package/dist/types/core/expressionFlow.d.ts +48 -5
- package/dist/types/core/formula.d.ts +4 -1
- package/dist/types/core/functionRegistry.d.ts +15 -2
- package/dist/types/core/grouping.d.ts +6 -1
- package/dist/types/core/i18n/defaultMessages.d.ts +23 -0
- package/dist/types/core/i18n/messages.d.ts +17 -0
- package/dist/types/core/issueLocation.d.ts +6 -1
- package/dist/types/core/queryHelpers.d.ts +12 -1
- package/dist/types/core/queryValidation.d.ts +11 -1
- package/dist/types/core/sqlGen.d.ts +12 -0
- package/dist/types/core/storedQuery.d.ts +1 -1
- package/dist/types/core/theme/appearance.d.ts +4 -1
- package/dist/types/core/theme/looks.d.ts +6 -5
- package/dist/types/core/theme/tokens.d.ts +6 -3
- package/dist/types/core/valueTypes.d.ts +2 -2
- package/dist/types/core-api.d.ts +2 -2
- package/dist/types/sqlImport/context.d.ts +2 -2
- package/dist/types/sqlImport/syntax.d.ts +11 -2
- package/package.json +1 -1
- package/dist/issueLocation-BlQ280IE.js +0 -1108
- package/dist/sqlGen-C1kZwvWI.js +0 -903
package/dist/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { P, f as
|
|
3
|
-
import { D as
|
|
4
|
-
import { D as
|
|
5
|
-
import { c as
|
|
6
|
-
import { Q as
|
|
7
|
-
import { w as
|
|
8
|
-
import { D as
|
|
9
|
-
import { QUERY_FORMAT_VERSION as
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { C as f, N as h } from "./PipelineEditor-DHfbOSzT.js";
|
|
2
|
+
import { D as x, P as L, f as B, a as F } from "./PipelineEditor-DHfbOSzT.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-DsMO9oFE.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-Btjlj45_.js";
|
|
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-DY-vvgFF.js";
|
|
7
|
+
import { w as p, a as E, b as A } from "./sqlGen-DGXVba3D.js";
|
|
8
|
+
import { D as Ye, c as Ge, S as we, s as Xe, u as Je } from "./sqlGen-DGXVba3D.js";
|
|
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-3SURLAkL.js";
|
|
11
|
+
import { D as la } from "./tokens-3SURLAkL.js";
|
|
12
|
+
function D(n, s, e = {}) {
|
|
13
|
+
const a = { paths: [] }, t = p(a, () => e.parameterized ? E(n, s, e).sql : A(n, s, e));
|
|
13
14
|
let r = "";
|
|
14
15
|
const c = [], u = [];
|
|
15
16
|
for (let o = 0; o < t.length; o += 1) {
|
|
@@ -25,7 +26,7 @@ function b(n, s, e = {}) {
|
|
|
25
26
|
}
|
|
26
27
|
return c.sort((o, i) => o.start - i.start || i.end - o.end || o.pathSegments.length - i.pathSegments.length), { sql: r, spans: c };
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
+
function M(n, s) {
|
|
29
30
|
const e = n.filter((a) => a.start <= s && s < a.end);
|
|
30
31
|
return e[e.length - 1];
|
|
31
32
|
}
|
|
@@ -40,7 +41,7 @@ function l(n) {
|
|
|
40
41
|
for (; s.nextNode(); ) e.push(s.currentNode);
|
|
41
42
|
return e;
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
+
function N(n, s, e) {
|
|
44
45
|
const a = document.createRange();
|
|
45
46
|
let t = 0;
|
|
46
47
|
return l(n).forEach((r) => {
|
|
@@ -56,109 +57,100 @@ function y(n, s, e) {
|
|
|
56
57
|
const o = c.slice(0, u).reduce((i, d) => i + d.length, 0) + r;
|
|
57
58
|
return [o, o - 1].find((i) => {
|
|
58
59
|
if (i < 0) return !1;
|
|
59
|
-
const d =
|
|
60
|
+
const d = N(n, i, i + 1).getBoundingClientRect();
|
|
60
61
|
return s >= d.left && s <= d.right && e >= d.top && e <= d.bottom;
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
|
-
const
|
|
64
|
-
theme: T,
|
|
65
|
-
appearance: {
|
|
66
|
-
edges: "smoothstep",
|
|
67
|
-
background: "lines",
|
|
68
|
-
backgroundGap: 32,
|
|
69
|
-
groupFrame: "bar",
|
|
70
|
-
actions: "hover"
|
|
71
|
-
}
|
|
72
|
-
};
|
|
64
|
+
const P = { theme: T, appearance: h }, b = { theme: S, appearance: f };
|
|
73
65
|
export {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
66
|
+
b as CHARCOAL,
|
|
67
|
+
x as DEFAULT_APPEARANCE,
|
|
68
|
+
v as DEFAULT_FUNCTIONS,
|
|
69
|
+
z as DEFAULT_MESSAGES,
|
|
70
|
+
la as DEFAULT_THEME,
|
|
71
|
+
Ye as DIALECTS,
|
|
72
|
+
Ge as DIALECT_LABELS,
|
|
81
73
|
I as EMPTY_SCHEMA,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
74
|
+
H as MAX_NAME_LENGTH,
|
|
75
|
+
K as MAX_NUMBER_DIGITS,
|
|
76
|
+
Z as MAX_TEXT_LENGTH,
|
|
77
|
+
$ as MAX_TYPE_NAME_LENGTH,
|
|
78
|
+
P as NAVY,
|
|
79
|
+
je as QUERY_FORMAT_VERSION,
|
|
80
|
+
_e as QUERY_ISSUE_KINDS,
|
|
81
|
+
Ce as QUERY_WARNING_KINDS,
|
|
82
|
+
L as QueryBuilder,
|
|
83
|
+
Ve as QueryFormatError,
|
|
84
|
+
we as ScopeError,
|
|
85
|
+
De as SharedBaseError,
|
|
86
|
+
ze as addCondition,
|
|
87
|
+
Ke as addGroupBy,
|
|
88
|
+
Ze as addJoin,
|
|
89
|
+
ee as addMeasure,
|
|
90
|
+
$e as addOrderBy,
|
|
91
|
+
ea as addSelectItem,
|
|
92
|
+
Me as addSharedQuery,
|
|
93
|
+
ae as addUnionBranch,
|
|
94
|
+
se as addUnionJoin,
|
|
95
|
+
te as addUnionTable,
|
|
96
|
+
E as astToParameterizedSql,
|
|
97
|
+
A as astToSql,
|
|
98
|
+
D as astToSqlWithSpans,
|
|
99
|
+
k as branchesOf,
|
|
100
|
+
Se as calendarDay,
|
|
101
|
+
re as createEmptyQuery,
|
|
102
|
+
ne as createUnion,
|
|
103
|
+
aa as expr,
|
|
104
|
+
q as filterSchema,
|
|
105
|
+
Y as findJoinPath,
|
|
106
|
+
B as formula,
|
|
107
|
+
F as formulaText,
|
|
108
|
+
Te as fromIsoDay,
|
|
109
|
+
G as functionsForDialect,
|
|
110
|
+
w as hasBaseTable,
|
|
111
|
+
X as isUnion,
|
|
112
|
+
Ne as isoDay,
|
|
113
|
+
Ue as issueLocation,
|
|
114
|
+
ye as joinMultiplicity,
|
|
115
|
+
Pe as joinSharedQuery,
|
|
116
|
+
oe as keepMeasuresInStep,
|
|
117
|
+
sa as loadQuery,
|
|
118
|
+
be as makeShared,
|
|
127
119
|
Qe as makeSubQuery,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
120
|
+
ie as measureFacts,
|
|
121
|
+
de as queryParams,
|
|
122
|
+
J as reachableTables,
|
|
123
|
+
Re as relativeDateLabel,
|
|
124
|
+
ta as removeJoin,
|
|
125
|
+
xe as removeSharedQuery,
|
|
126
|
+
ce as removeUnionTable,
|
|
127
|
+
Le as renameSharedQuery,
|
|
128
|
+
ue as renameUnionColumn,
|
|
129
|
+
Be as repeatedReads,
|
|
130
|
+
Fe as repeatedTables,
|
|
131
|
+
ra as requireBaseTable,
|
|
132
|
+
Oe as rowsPerBase,
|
|
133
|
+
na as saveQuery,
|
|
134
|
+
Xe as scopeQuery,
|
|
135
|
+
oa as setBaseTable,
|
|
136
|
+
ia as setDistinct,
|
|
137
|
+
da as setHaving,
|
|
138
|
+
ca as setPaging,
|
|
139
|
+
ve as setSharedBase,
|
|
140
|
+
le as setUnionAll,
|
|
149
141
|
Ie as sharedQueryName,
|
|
150
|
-
|
|
151
|
-
|
|
142
|
+
He as sharedUses,
|
|
143
|
+
M as spanAt,
|
|
152
144
|
U as spansFor,
|
|
153
145
|
y as sqlOffsetAt,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
146
|
+
N as sqlRangeOf,
|
|
147
|
+
W as suggestJoin,
|
|
148
|
+
me as unionName,
|
|
149
|
+
fe as unionTableColumns,
|
|
150
|
+
he as unionWithQuery,
|
|
151
|
+
pe as unionableTables,
|
|
152
|
+
Je as unscopedBodies,
|
|
153
|
+
Ee as unwrapUnion,
|
|
154
|
+
ke as validateQuery,
|
|
155
|
+
j as validateSchema
|
|
164
156
|
};
|