@malloydata/render 0.0.156-dev240723161612 → 0.0.156-dev240727155624
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.
|
@@ -13,5 +13,5 @@ export declare class UnsupportedRendererFactory extends RendererFactory<DataRend
|
|
|
13
13
|
static readonly instance: UnsupportedRendererFactory;
|
|
14
14
|
activates(field: Field | Explore): boolean;
|
|
15
15
|
create(document: Document, _styleDefaults: StyleDefaults, _rendererOptions: RendererOptions, _field: Field | Explore, _options: DataRenderOptions): Renderer;
|
|
16
|
-
get rendererName():
|
|
16
|
+
get rendererName(): string;
|
|
17
17
|
}
|
package/dist/module/index.mjs
CHANGED
|
@@ -52561,7 +52561,7 @@ function sFe(t) {
|
|
|
52561
52561
|
return e;
|
|
52562
52562
|
}
|
|
52563
52563
|
function oFe(t) {
|
|
52564
|
-
const e = [], n = t.field.
|
|
52564
|
+
const e = [], n = t.field.allFields.filter(
|
|
52565
52565
|
(r) => r.isAtomicField() && r.sourceWasDimension()
|
|
52566
52566
|
);
|
|
52567
52567
|
for (const r of n) {
|
|
@@ -52678,7 +52678,7 @@ class XL extends s6 {
|
|
|
52678
52678
|
this.document,
|
|
52679
52679
|
"Invalid data for dashboard renderer."
|
|
52680
52680
|
);
|
|
52681
|
-
const n = e.field.
|
|
52681
|
+
const n = e.field.allFields, r = n.filter(
|
|
52682
52682
|
(o) => o.isAtomicField() && o.sourceWasDimension()
|
|
52683
52683
|
), i = n.filter(
|
|
52684
52684
|
(o) => !o.isAtomicField() || o.sourceWasMeasureLike()
|
|
@@ -52858,7 +52858,7 @@ class Lee extends s6 {
|
|
|
52858
52858
|
};
|
|
52859
52859
|
}
|
|
52860
52860
|
getValueField(e) {
|
|
52861
|
-
return e.
|
|
52861
|
+
return e.allFields[0];
|
|
52862
52862
|
}
|
|
52863
52863
|
getDetailField(e) {
|
|
52864
52864
|
}
|
|
@@ -52887,7 +52887,7 @@ class Lee extends s6 {
|
|
|
52887
52887
|
}
|
|
52888
52888
|
class yFe extends Lee {
|
|
52889
52889
|
getDetailField(e) {
|
|
52890
|
-
return e.
|
|
52890
|
+
return e.allFields[1];
|
|
52891
52891
|
}
|
|
52892
52892
|
}
|
|
52893
52893
|
var Iee = { exports: {} };
|
|
@@ -53970,13 +53970,13 @@ class r3 extends s6 {
|
|
|
53970
53970
|
if (!e.isArray() && !e.isRecord())
|
|
53971
53971
|
throw new Error("Invalid type for Table Renderer");
|
|
53972
53972
|
const n = this.tagged.has("transpose");
|
|
53973
|
-
if (n && e.field.
|
|
53973
|
+
if (n && e.field.allFields.length > 20)
|
|
53974
53974
|
throw new Error("Transpose limit of 20 columns exceeded.");
|
|
53975
53975
|
let r = 0, i = 0, s = [];
|
|
53976
53976
|
s[r] = [];
|
|
53977
53977
|
const o = [];
|
|
53978
53978
|
let u = 0;
|
|
53979
|
-
for (const p of e.field.
|
|
53979
|
+
for (const p of e.field.allFields) {
|
|
53980
53980
|
if (DS(p))
|
|
53981
53981
|
continue;
|
|
53982
53982
|
const m = this.childRenderers[p.name];
|
|
@@ -141309,7 +141309,7 @@ class XE {
|
|
|
141309
141309
|
const n = [];
|
|
141310
141310
|
for (const r of e) {
|
|
141311
141311
|
const i = {};
|
|
141312
|
-
for (const s of e.field.
|
|
141312
|
+
for (const s of e.field.allFields) {
|
|
141313
141313
|
let o = this.getDataValue(r.cell(s));
|
|
141314
141314
|
o instanceof Date && (o = ZDe(o, this.timezone)), i[s.name] = o;
|
|
141315
141315
|
}
|
|
@@ -141461,10 +141461,10 @@ const Uut = {
|
|
|
141461
141461
|
};
|
|
141462
141462
|
class qut extends XE {
|
|
141463
141463
|
getRegionField(e) {
|
|
141464
|
-
return e.
|
|
141464
|
+
return e.allFields[0];
|
|
141465
141465
|
}
|
|
141466
141466
|
getColorField(e) {
|
|
141467
|
-
return e.
|
|
141467
|
+
return e.allFields[1];
|
|
141468
141468
|
}
|
|
141469
141469
|
getDataValue(e) {
|
|
141470
141470
|
if (e.isNumber())
|
|
@@ -141633,7 +141633,7 @@ class Hut extends XE {
|
|
|
141633
141633
|
getVegaLiteSpec(e) {
|
|
141634
141634
|
if (e.isNull())
|
|
141635
141635
|
throw new Error("Expected struct value not to be null.");
|
|
141636
|
-
const n = e.field.
|
|
141636
|
+
const n = e.field.allFields, r = n[0], i = n[1], s = n[2], o = n[3], u = n[4], a = s ? this.getDataType(s) : void 0, l = o ? this.getDataType(o) : void 0, c = u ? this.getDataType(u) : void 0, f = s !== void 0 ? {
|
|
141637
141637
|
field: s.name,
|
|
141638
141638
|
type: a,
|
|
141639
141639
|
axis: {
|
|
@@ -141805,7 +141805,7 @@ class Qut extends XE {
|
|
|
141805
141805
|
getVegaLiteSpec(e) {
|
|
141806
141806
|
if (e.isNull())
|
|
141807
141807
|
throw new Error("Expected struct value not to be null.");
|
|
141808
|
-
const n = e.field.
|
|
141808
|
+
const n = e.field.allFields, r = n[0], i = n[1], s = n[2], o = n[3], u = n[4], a = u ? this.getDataType(u) : void 0, l = u !== void 0 ? {
|
|
141809
141809
|
field: u.name,
|
|
141810
141810
|
type: a,
|
|
141811
141811
|
axis: {
|
|
@@ -142087,7 +142087,7 @@ class Gut extends XE {
|
|
|
142087
142087
|
}
|
|
142088
142088
|
translateField(e, n) {
|
|
142089
142089
|
const r = n.match(/#\{(\d+)\}/);
|
|
142090
|
-
return r && r.groups ? e.
|
|
142090
|
+
return r && r.groups ? e.allFields[parseInt(r.groups[1]) - 1].name : n;
|
|
142091
142091
|
}
|
|
142092
142092
|
translateFields(e, n) {
|
|
142093
142093
|
if (Array.isArray(e))
|
|
@@ -142142,7 +142142,7 @@ v_.instance = new v_();
|
|
|
142142
142142
|
let uw = v_;
|
|
142143
142143
|
class PP extends XE {
|
|
142144
142144
|
getVegaLiteSpec(e) {
|
|
142145
|
-
const n = e.field.
|
|
142145
|
+
const n = e.field.allFields, r = n[0], i = n[1], s = n[2], o = n[3], u = n[4], a = this.getDataType(r), l = this.getDataType(i), c = s ? this.getDataType(s) : void 0, f = o ? this.getDataType(o) : void 0, x = u ? this.getDataType(u) : void 0, h = this.getMark(), p = s !== void 0 ? {
|
|
142146
142146
|
field: s.name,
|
|
142147
142147
|
type: c,
|
|
142148
142148
|
axis: {
|
|
@@ -142255,7 +142255,7 @@ class Oce extends Rce {
|
|
|
142255
142255
|
return this.size === "large" ? { height: 100, width: 250 } : { height: 50, width: 125 };
|
|
142256
142256
|
}
|
|
142257
142257
|
getVegaLiteSpec(e) {
|
|
142258
|
-
const n = e.field.
|
|
142258
|
+
const n = e.field.allFields, r = n[0], i = n[1], s = n[2], o = this.getDataType(r), u = this.getDataType(i), a = s ? this.getDataType(s) : void 0, l = s !== void 0 ? {
|
|
142259
142259
|
field: s.name,
|
|
142260
142260
|
type: a,
|
|
142261
142261
|
axis: { title: null },
|
|
@@ -142371,7 +142371,7 @@ class Wut extends MP {
|
|
|
142371
142371
|
return this.size === "large" ? { height: 250, width: 100 } : { height: 125, width: 50 };
|
|
142372
142372
|
}
|
|
142373
142373
|
getVegaLiteSpec(e) {
|
|
142374
|
-
const n = e.field.
|
|
142374
|
+
const n = e.field.allFields, r = n[0], i = n[1], s = n[2], o = this.getDataType(r), u = this.getDataType(i), a = s ? this.getDataType(s) : void 0, l = { type: this.getMark(), tooltip: !0 }, c = s !== void 0 ? {
|
|
142375
142375
|
field: s.name,
|
|
142376
142376
|
type: a,
|
|
142377
142377
|
axis: { title: null },
|
|
@@ -142443,7 +142443,7 @@ b_.instance = new b_();
|
|
|
142443
142443
|
let fw = b_;
|
|
142444
142444
|
class Vut extends Oce {
|
|
142445
142445
|
getVegaLiteSpec(e) {
|
|
142446
|
-
const n = e.field.
|
|
142446
|
+
const n = e.field.allFields, r = n[0], i = n[1], s = n[2], o = this.getDataType(r), u = this.getDataType(i), a = s ? this.getDataType(s) : void 0, l = s !== void 0 ? {
|
|
142447
142447
|
field: s.name,
|
|
142448
142448
|
type: a,
|
|
142449
142449
|
axis: { title: null },
|
|
@@ -142526,7 +142526,7 @@ class Yut extends MP {
|
|
|
142526
142526
|
return this.size === "large" ? { height: 100, width: 250 } : { height: 50, width: 125 };
|
|
142527
142527
|
}
|
|
142528
142528
|
getVegaLiteSpec(e) {
|
|
142529
|
-
const n = e.field.
|
|
142529
|
+
const n = e.field.allFields, r = n[0], i = n[1], s = n[2], o = this.getDataType(r), u = this.getDataType(i), a = s ? this.getDataType(s) : void 0, l = { type: this.getMark(), tooltip: !0 }, c = s !== void 0 ? {
|
|
142530
142530
|
field: s.name,
|
|
142531
142531
|
type: a,
|
|
142532
142532
|
axis: { title: null },
|
|
@@ -142820,6 +142820,7 @@ const $_ = class $_ extends xn {
|
|
|
142820
142820
|
return new iat(e);
|
|
142821
142821
|
}
|
|
142822
142822
|
get rendererName() {
|
|
142823
|
+
return "unsupported";
|
|
142823
142824
|
}
|
|
142824
142825
|
};
|
|
142825
142826
|
$_.instance = new $_();
|
|
@@ -144869,7 +144870,7 @@ function ife(t, e, n, r, i, s) {
|
|
|
144869
144870
|
}
|
|
144870
144871
|
function pv(t, e, n, r, i) {
|
|
144871
144872
|
const s = s6.make(t, e, n, r, i), o = {};
|
|
144872
|
-
return n.
|
|
144873
|
+
return n.allFields.forEach((u) => {
|
|
144873
144874
|
o[u.name] = ife(
|
|
144874
144875
|
u,
|
|
144875
144876
|
e,
|