@malloydata/render 0.0.224-dev241217171758 → 0.0.224-dev241217194410
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.
|
@@ -43038,18 +43038,20 @@ Object.defineProperty(F3, "__esModule", { value: !0 });
|
|
|
43038
43038
|
F3.QueryBase = void 0;
|
|
43039
43039
|
const Q6 = ut, RM = Ke, yAe = y2, EAe = Ye;
|
|
43040
43040
|
class AAe extends EAe.MalloyElement {
|
|
43041
|
-
|
|
43042
|
-
var
|
|
43043
|
-
const
|
|
43044
|
-
|
|
43045
|
-
|
|
43046
|
-
|
|
43047
|
-
|
|
43041
|
+
resolveCompositeSource(e, n) {
|
|
43042
|
+
var r;
|
|
43043
|
+
const i = n.pipeline[0];
|
|
43044
|
+
if (i && ((0, RM.isQuerySegment)(i) || (0, RM.isIndexSegment)(i))) {
|
|
43045
|
+
const s = (r = i.compositeFieldUsage) !== null && r !== void 0 ? r : (0, Q6.emptyCompositeFieldUsage)();
|
|
43046
|
+
if (!(0, Q6.isEmptyCompositeFieldUsage)(s) || e.type === "composite")
|
|
43047
|
+
return (0, Q6.resolveCompositeSources)(e, s).sourceDef;
|
|
43048
43048
|
}
|
|
43049
|
+
}
|
|
43050
|
+
query() {
|
|
43051
|
+
const { query: e } = this.queryComp(!0);
|
|
43049
43052
|
return {
|
|
43050
|
-
...
|
|
43051
|
-
|
|
43052
|
-
pipeline: (0, yAe.detectAndRemovePartialStages)(r.pipeline, this)
|
|
43053
|
+
...e,
|
|
43054
|
+
pipeline: (0, yAe.detectAndRemovePartialStages)(e.pipeline, this)
|
|
43053
43055
|
};
|
|
43054
43056
|
}
|
|
43055
43057
|
}
|
|
@@ -43062,29 +43064,33 @@ class CAe extends SAe.QueryBase {
|
|
|
43062
43064
|
super({ source: e, view: n }), this.source = e, this.view = n, this.elementType = "arrow";
|
|
43063
43065
|
}
|
|
43064
43066
|
queryComp(e) {
|
|
43065
|
-
|
|
43067
|
+
var n;
|
|
43068
|
+
let r, i, s;
|
|
43066
43069
|
if (this.source instanceof _Ae.Source) {
|
|
43067
|
-
const
|
|
43068
|
-
|
|
43070
|
+
const x = e ? this.source.structRef(void 0) : { structRef: this.source.getSourceDef(void 0) };
|
|
43071
|
+
i = {
|
|
43069
43072
|
type: "query",
|
|
43070
|
-
...
|
|
43073
|
+
...x,
|
|
43071
43074
|
pipeline: [],
|
|
43072
43075
|
location: this.location
|
|
43073
|
-
},
|
|
43076
|
+
}, r = (0, vAe.refIsStructDef)(x.structRef) ? x.structRef : this.source.getSourceDef(void 0), s = new OM.StaticSourceSpace(r);
|
|
43074
43077
|
} else {
|
|
43075
|
-
const
|
|
43076
|
-
|
|
43078
|
+
const x = this.source.queryComp(e);
|
|
43079
|
+
i = x.query, r = x.outputStruct, s = new OM.StaticSourceSpace(x.outputStruct);
|
|
43077
43080
|
}
|
|
43078
|
-
const { pipeline:
|
|
43081
|
+
const { pipeline: o, annotation: u, outputStruct: a, name: l } = this.view.pipelineComp(s), c = {
|
|
43082
|
+
...i,
|
|
43083
|
+
name: l,
|
|
43084
|
+
annotation: u,
|
|
43085
|
+
pipeline: [...i.pipeline, ...o]
|
|
43086
|
+
}, f = (n = c.compositeResolvedSourceDef) !== null && n !== void 0 ? n : this.resolveCompositeSource(r, c);
|
|
43079
43087
|
return {
|
|
43080
43088
|
query: {
|
|
43081
|
-
...
|
|
43082
|
-
|
|
43083
|
-
annotation: o,
|
|
43084
|
-
pipeline: [...r.pipeline, ...s]
|
|
43089
|
+
...c,
|
|
43090
|
+
compositeResolvedSourceDef: f
|
|
43085
43091
|
},
|
|
43086
|
-
outputStruct:
|
|
43087
|
-
inputStruct:
|
|
43092
|
+
outputStruct: a,
|
|
43093
|
+
inputStruct: r
|
|
43088
43094
|
};
|
|
43089
43095
|
}
|
|
43090
43096
|
}
|
|
@@ -43159,11 +43165,14 @@ class BAe extends IAe.QueryBase {
|
|
|
43159
43165
|
super({ base: e, refinement: n }), this.base = e, this.refinement = n, this.elementType = "query-refine";
|
|
43160
43166
|
}
|
|
43161
43167
|
queryComp(e) {
|
|
43162
|
-
const n = this.base.queryComp(e), r = new NAe.StaticSourceSpace(n.inputStruct), i = this.refinement.refine(r, n.query.pipeline, void 0)
|
|
43168
|
+
const n = this.base.queryComp(e), r = new NAe.StaticSourceSpace(n.inputStruct), i = this.refinement.refine(r, n.query.pipeline, void 0), s = {
|
|
43169
|
+
...n.query,
|
|
43170
|
+
pipeline: i
|
|
43171
|
+
}, o = this.resolveCompositeSource(n.inputStruct, s);
|
|
43163
43172
|
return {
|
|
43164
43173
|
query: {
|
|
43165
|
-
...
|
|
43166
|
-
|
|
43174
|
+
...s,
|
|
43175
|
+
compositeResolvedSourceDef: o
|
|
43167
43176
|
},
|
|
43168
43177
|
outputStruct: (0, LAe.getFinalStruct)(this.refinement, n.inputStruct, i),
|
|
43169
43178
|
inputStruct: n.inputStruct
|