@malloydata/render 0.0.253-dev250328041839 → 0.0.253-dev250330190957
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.
|
@@ -124685,7 +124685,7 @@ function ett(t) {
|
|
|
124685
124685
|
}
|
|
124686
124686
|
Dn.isTemporalFilter = ett;
|
|
124687
124687
|
function ttt(t) {
|
|
124688
|
-
return t && "operator" in t;
|
|
124688
|
+
return !!t && "operator" in t;
|
|
124689
124689
|
}
|
|
124690
124690
|
Dn.isFilterExpression = ttt;
|
|
124691
124691
|
function ntt(t) {
|
|
@@ -125612,7 +125612,7 @@ function Att(t, e) {
|
|
|
125612
125612
|
try {
|
|
125613
125613
|
e.feed(t);
|
|
125614
125614
|
const i = e.finish()[0];
|
|
125615
|
-
return
|
|
125615
|
+
return (0, Ett.isFilterExpression)(i) ? { parsed: i, log: [] } : { parsed: null, log: [] };
|
|
125616
125616
|
} catch (r) {
|
|
125617
125617
|
let i = r.message, s = 1, o = t.length;
|
|
125618
125618
|
if (r.token) {
|
|
@@ -126951,7 +126951,7 @@ let bk = class extends Ptt {
|
|
|
126951
126951
|
case "compositeField":
|
|
126952
126952
|
return "{COMPOSITE_FIELD}";
|
|
126953
126953
|
case "filterMatch":
|
|
126954
|
-
if ((a.dataType === "string" || a.dataType === "number" || a.dataType === "date" || a.dataType === "timestamp" || a.dataType === "boolean") && (
|
|
126954
|
+
if ((a.dataType === "string" || a.dataType === "number" || a.dataType === "date" || a.dataType === "timestamp" || a.dataType === "boolean") && (a.filter === null || (0, Btt.isFilterExpression)(a.filter)))
|
|
126955
126955
|
return $tt.FilterCompilers.compile(a.dataType, a.filter, a.e.sql || "", this.parent.dialect);
|
|
126956
126956
|
throw new Error(`Internal Error: Filter Compiler Undefined Type '${a.dataType}'`);
|
|
126957
126957
|
default:
|
|
@@ -157991,7 +157991,7 @@ en.compileQuery = b2t;
|
|
|
157991
157991
|
function T2t(t, e) {
|
|
157992
157992
|
function r(s, o) {
|
|
157993
157993
|
var u, a, l, c;
|
|
157994
|
-
s.translator.update(o), s.extending && r(s.extending, o), s.hasSource || (s.hasSource = (
|
|
157994
|
+
s.translator.update(o), s.extending && r(s.extending, o), s.hasSource || (s.hasSource = ((a = (u = e == null ? void 0 : e.files) === null || u === void 0 ? void 0 : u.some((f) => f.url === s.translator.sourceURL)) !== null && a !== void 0 ? a : !1) || ((c = (l = e == null ? void 0 : e.translations) === null || l === void 0 ? void 0 : l.some((f) => f.url === s.translator.sourceURL)) !== null && c !== void 0 ? c : !1));
|
|
157995
157995
|
}
|
|
157996
157996
|
const i = qde(e);
|
|
157997
157997
|
r(t, i);
|
|
@@ -157999,7 +157999,7 @@ function T2t(t, e) {
|
|
|
157999
157999
|
en.updateCompileModelState = T2t;
|
|
158000
158000
|
function zD(t, e, r) {
|
|
158001
158001
|
var i, s, o, u;
|
|
158002
|
-
const a = new y2t.MalloyTranslator(t, null, qde(e)), l = (
|
|
158002
|
+
const a = new y2t.MalloyTranslator(t, null, qde(e)), l = ((s = (i = e == null ? void 0 : e.files) === null || i === void 0 ? void 0 : i.some((c) => c.url === t)) !== null && s !== void 0 ? s : !1) || ((u = (o = e == null ? void 0 : e.translations) === null || o === void 0 ? void 0 : o.some((c) => c.url === t)) !== null && u !== void 0 ? u : !1);
|
|
158003
158003
|
return r ? {
|
|
158004
158004
|
extending: zD(r, e),
|
|
158005
158005
|
translator: a,
|