@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.
@@ -42121,18 +42121,20 @@ Object.defineProperty(Hm, "__esModule", { value: !0 });
42121
42121
  Hm.QueryBase = void 0;
42122
42122
  const o6 = rt, zP = We, vye = $h, Cye = Ge;
42123
42123
  class Sye extends Cye.MalloyElement {
42124
- query() {
42125
- var e;
42126
- const { inputStruct: n, query: r } = this.queryComp(!0);
42127
- let i;
42128
- if (r.pipeline[0] && ((0, zP.isQuerySegment)(r.pipeline[0]) || (0, zP.isIndexSegment)(r.pipeline[0]))) {
42129
- const s = (e = r.pipeline[0].compositeFieldUsage) !== null && e !== void 0 ? e : (0, o6.emptyCompositeFieldUsage)();
42130
- (!(0, o6.isEmptyCompositeFieldUsage)(s) || n.type === "composite") && (i = (0, o6.resolveCompositeSources)(n, s).sourceDef);
42124
+ resolveCompositeSource(e, n) {
42125
+ var r;
42126
+ const i = n.pipeline[0];
42127
+ if (i && ((0, zP.isQuerySegment)(i) || (0, zP.isIndexSegment)(i))) {
42128
+ const s = (r = i.compositeFieldUsage) !== null && r !== void 0 ? r : (0, o6.emptyCompositeFieldUsage)();
42129
+ if (!(0, o6.isEmptyCompositeFieldUsage)(s) || e.type === "composite")
42130
+ return (0, o6.resolveCompositeSources)(e, s).sourceDef;
42131
42131
  }
42132
+ }
42133
+ query() {
42134
+ const { query: e } = this.queryComp(!0);
42132
42135
  return {
42133
- ...r,
42134
- compositeResolvedSourceDef: i,
42135
- pipeline: (0, vye.detectAndRemovePartialStages)(r.pipeline, this)
42136
+ ...e,
42137
+ pipeline: (0, vye.detectAndRemovePartialStages)(e.pipeline, this)
42136
42138
  };
42137
42139
  }
42138
42140
  }
@@ -42145,29 +42147,33 @@ class Oye extends Rye.QueryBase {
42145
42147
  super({ source: e, view: n }), this.source = e, this.view = n, this.elementType = "arrow";
42146
42148
  }
42147
42149
  queryComp(e) {
42148
- let n, r, i;
42150
+ var n;
42151
+ let r, i, s;
42149
42152
  if (this.source instanceof Tye.Source) {
42150
- const l = e ? this.source.structRef(void 0) : { structRef: this.source.getSourceDef(void 0) };
42151
- r = {
42153
+ const x = e ? this.source.structRef(void 0) : { structRef: this.source.getSourceDef(void 0) };
42154
+ i = {
42152
42155
  type: "query",
42153
- ...l,
42156
+ ...x,
42154
42157
  pipeline: [],
42155
42158
  location: this.location
42156
- }, n = (0, bye.refIsStructDef)(l.structRef) ? l.structRef : this.source.getSourceDef(void 0), i = new QP.StaticSourceSpace(n);
42159
+ }, r = (0, bye.refIsStructDef)(x.structRef) ? x.structRef : this.source.getSourceDef(void 0), s = new QP.StaticSourceSpace(r);
42157
42160
  } else {
42158
- const l = this.source.queryComp(e);
42159
- r = l.query, n = l.outputStruct, i = new QP.StaticSourceSpace(l.outputStruct);
42161
+ const x = this.source.queryComp(e);
42162
+ i = x.query, r = x.outputStruct, s = new QP.StaticSourceSpace(x.outputStruct);
42160
42163
  }
42161
- const { pipeline: s, annotation: o, outputStruct: u, name: a } = this.view.pipelineComp(i);
42164
+ const { pipeline: o, annotation: u, outputStruct: a, name: l } = this.view.pipelineComp(s), c = {
42165
+ ...i,
42166
+ name: l,
42167
+ annotation: u,
42168
+ pipeline: [...i.pipeline, ...o]
42169
+ }, f = (n = c.compositeResolvedSourceDef) !== null && n !== void 0 ? n : this.resolveCompositeSource(r, c);
42162
42170
  return {
42163
42171
  query: {
42164
- ...r,
42165
- name: a,
42166
- annotation: o,
42167
- pipeline: [...r.pipeline, ...s]
42172
+ ...c,
42173
+ compositeResolvedSourceDef: f
42168
42174
  },
42169
- outputStruct: u,
42170
- inputStruct: n
42175
+ outputStruct: a,
42176
+ inputStruct: r
42171
42177
  };
42172
42178
  }
42173
42179
  }
@@ -42242,11 +42248,14 @@ class Mye extends Pye.QueryBase {
42242
42248
  super({ base: e, refinement: n }), this.base = e, this.refinement = n, this.elementType = "query-refine";
42243
42249
  }
42244
42250
  queryComp(e) {
42245
- const n = this.base.queryComp(e), r = new $ye.StaticSourceSpace(n.inputStruct), i = this.refinement.refine(r, n.query.pipeline, void 0);
42251
+ const n = this.base.queryComp(e), r = new $ye.StaticSourceSpace(n.inputStruct), i = this.refinement.refine(r, n.query.pipeline, void 0), s = {
42252
+ ...n.query,
42253
+ pipeline: i
42254
+ }, o = this.resolveCompositeSource(n.inputStruct, s);
42246
42255
  return {
42247
42256
  query: {
42248
- ...n.query,
42249
- pipeline: i
42257
+ ...s,
42258
+ compositeResolvedSourceDef: o
42250
42259
  },
42251
42260
  outputStruct: (0, kye.getFinalStruct)(this.refinement, n.inputStruct, i),
42252
42261
  inputStruct: n.inputStruct