@malloydata/render 0.0.206-dev241031153949 → 0.0.206-dev241031191500
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/component/apply-renderer.d.ts +1 -1
- package/dist/component/bar-chart/generate-bar_chart-vega-spec.d.ts +2 -3
- package/dist/component/bar-chart/get-bar_chart-settings.d.ts +1 -1
- package/dist/component/line-chart/generate-line_chart-vega-spec.d.ts +3 -0
- package/dist/component/line-chart/get-line_chart-settings.d.ts +2 -2
- package/dist/component/types.d.ts +10 -4
- package/dist/component/vega/vega-chart.d.ts +2 -4
- package/dist/main_renderer_factory.d.ts +1 -1
- package/dist/module/index.mjs +157 -157
- package/dist/module/index.umd.js +1 -1
- package/dist/register/register.mjs +23404 -23185
- package/dist/register/register.umd.js +292 -292
- package/dist/register/style.css +1 -1
- package/dist/webcomponent/malloy-render.mjs +23404 -23185
- package/dist/webcomponent/malloy-render.umd.js +292 -292
- package/dist/webcomponent/style.css +1 -1
- package/package.json +2 -2
- package/dist/component/area-chart/generate-area_chart-vega-lite-spec.d.ts +0 -4
- package/dist/component/area-chart/get-area_chart-settings.d.ts +0 -15
- package/dist/component/bar-chart/generate-bar_chart-spec.d.ts +0 -3
- package/dist/component/line-chart/generate-line_chart-vega-lite-spec.d.ts +0 -4
- package/dist/component/plot/plot-spec.d.ts +0 -21
- package/dist/component/plot/plot-to-vega.d.ts +0 -12
- /package/dist/component/{plot → vega}/base-vega-config.d.ts +0 -0
- /package/dist/component/{plot → vega}/merge-vega-configs.d.ts +0 -0
package/dist/module/index.mjs
CHANGED
|
@@ -144233,74 +144233,7 @@ const hv = class hv extends un {
|
|
|
144233
144233
|
};
|
|
144234
144234
|
hv.instance = new hv();
|
|
144235
144235
|
let G7 = hv;
|
|
144236
|
-
|
|
144237
|
-
function fit(t) {
|
|
144238
|
-
return Object.values(Vn).includes(t);
|
|
144239
|
-
}
|
|
144240
|
-
function Hz(t, e, n = {}) {
|
|
144241
|
-
let r = e.toString();
|
|
144242
|
-
return n.terse ? r = xit.get(e) ?? r : t === 1 && (r = r.substring(0, r.length - 1)), `${n.numFormat ? jJ.format(n.numFormat, t) : t.toLocaleString()}${n.terse ? "" : " "}${r}`;
|
|
144243
|
-
}
|
|
144244
|
-
const xit = /* @__PURE__ */ new Map([
|
|
144245
|
-
[Vn.Nanoseconds, "ns"],
|
|
144246
|
-
[Vn.Microseconds, "µs"],
|
|
144247
|
-
[Vn.Milliseconds, "ms"],
|
|
144248
|
-
[Vn.Seconds, "s"],
|
|
144249
|
-
[Vn.Minutes, "m"],
|
|
144250
|
-
[Vn.Hours, "h"],
|
|
144251
|
-
[Vn.Days, "d"]
|
|
144252
|
-
]), dit = /* @__PURE__ */ new Map([
|
|
144253
|
-
[Vn.Nanoseconds, 1e3],
|
|
144254
|
-
[Vn.Microseconds, 1e3],
|
|
144255
|
-
[Vn.Milliseconds, 1e3],
|
|
144256
|
-
[Vn.Seconds, 60],
|
|
144257
|
-
[Vn.Minutes, 60],
|
|
144258
|
-
[Vn.Hours, 24],
|
|
144259
|
-
[Vn.Days, Number.MAX_VALUE]
|
|
144260
|
-
]);
|
|
144261
|
-
function hit(t, e, n) {
|
|
144262
|
-
const r = n.durationUnit && fit(n.durationUnit) ? n.durationUnit : Vn.Seconds, i = t.tagParse().tag, s = i.text("number"), o = i.has("duration", "terse");
|
|
144263
|
-
let u = e, a = 0, l = [], c = !1;
|
|
144264
|
-
for (const [f, x] of dit)
|
|
144265
|
-
if (f === r && (c = !0), !!c && (a = u % x, u = Math.floor(u /= x), a > 0 && (l = [
|
|
144266
|
-
Hz(a, f, { numFormat: s, terse: o }),
|
|
144267
|
-
...l
|
|
144268
|
-
]), u === 0))
|
|
144269
|
-
break;
|
|
144270
|
-
return l.length > 0 ? l.slice(0, 2).join(" ") : Hz(0, r, { numFormat: s, terse: o });
|
|
144271
|
-
}
|
|
144272
|
-
class pit extends k0 {
|
|
144273
|
-
constructor(e, n) {
|
|
144274
|
-
super(e), this.options = n;
|
|
144275
|
-
}
|
|
144276
|
-
getText(e) {
|
|
144277
|
-
if (e.isNull())
|
|
144278
|
-
return null;
|
|
144279
|
-
if (!e.isNumber())
|
|
144280
|
-
throw new Error(
|
|
144281
|
-
`Cannot format field ${e.field.name} as a duration unit since its not a number`
|
|
144282
|
-
);
|
|
144283
|
-
return hit(e.field, e.number.value, {
|
|
144284
|
-
durationUnit: this.options.duration_unit
|
|
144285
|
-
});
|
|
144286
|
-
}
|
|
144287
|
-
}
|
|
144288
|
-
const pv = class pv extends un {
|
|
144289
|
-
constructor() {
|
|
144290
|
-
super(), this.addExtractor((e, n) => {
|
|
144291
|
-
e.duration_unit = (n == null ? void 0 : n.text()) ?? Vn.Seconds;
|
|
144292
|
-
}, this.rendererName);
|
|
144293
|
-
}
|
|
144294
|
-
create(e, n, r, i, s) {
|
|
144295
|
-
return new pit(e, s);
|
|
144296
|
-
}
|
|
144297
|
-
get rendererName() {
|
|
144298
|
-
return "duration";
|
|
144299
|
-
}
|
|
144300
|
-
};
|
|
144301
|
-
pv.instance = new pv();
|
|
144302
|
-
let W7 = pv;
|
|
144303
|
-
const zz = "#727883", Qz = "#E5E7EB", Z0 = {
|
|
144236
|
+
const Hz = "#727883", zz = "#E5E7EB", Z0 = {
|
|
144304
144237
|
$schema: "https://vega.github.io/schema/vega-lite/v5.json",
|
|
144305
144238
|
config: {
|
|
144306
144239
|
params: [
|
|
@@ -144308,8 +144241,8 @@ const zz = "#727883", Qz = "#E5E7EB", Z0 = {
|
|
|
144308
144241
|
name: "defaultFont",
|
|
144309
144242
|
value: "var(--malloy-font-family, 'Inter')"
|
|
144310
144243
|
},
|
|
144311
|
-
{ name: "titleColor", value: `var(--malloy-title-color, ${
|
|
144312
|
-
{ name: "labelColor", value: `var(--malloy-label-color, ${
|
|
144244
|
+
{ name: "titleColor", value: `var(--malloy-title-color, ${Hz})` },
|
|
144245
|
+
{ name: "labelColor", value: `var(--malloy-label-color, ${Hz})` }
|
|
144313
144246
|
],
|
|
144314
144247
|
background: void 0,
|
|
144315
144248
|
color: { expr: "titleColor" },
|
|
@@ -144338,8 +144271,8 @@ const zz = "#727883", Qz = "#E5E7EB", Z0 = {
|
|
|
144338
144271
|
titleFontWeight: 500,
|
|
144339
144272
|
titleColor: { expr: "titleColor" },
|
|
144340
144273
|
titleFontSize: 12,
|
|
144341
|
-
gridColor:
|
|
144342
|
-
tickColor:
|
|
144274
|
+
gridColor: zz,
|
|
144275
|
+
tickColor: zz,
|
|
144343
144276
|
labelPadding: 5,
|
|
144344
144277
|
titlePadding: 10
|
|
144345
144278
|
},
|
|
@@ -144449,10 +144382,10 @@ const uv = {
|
|
|
144449
144382
|
color: Mi("quantitative", !0)
|
|
144450
144383
|
}
|
|
144451
144384
|
});
|
|
144452
|
-
function
|
|
144385
|
+
function Qz(t) {
|
|
144453
144386
|
return Array.isArray(t) || t !== null && typeof t == "object";
|
|
144454
144387
|
}
|
|
144455
|
-
class
|
|
144388
|
+
class fit extends Q3 {
|
|
144456
144389
|
constructor(e, n, r, i, s) {
|
|
144457
144390
|
super(e, n, r);
|
|
144458
144391
|
const o = s.spec;
|
|
@@ -144495,7 +144428,7 @@ class git extends Q3 {
|
|
|
144495
144428
|
translateFields(e, n) {
|
|
144496
144429
|
if (Array.isArray(e))
|
|
144497
144430
|
for (const r of e)
|
|
144498
|
-
|
|
144431
|
+
Qz(r) && this.translateFields(r, n);
|
|
144499
144432
|
else if (e && typeof e == "object")
|
|
144500
144433
|
for (const [r, i] of Object.entries(e))
|
|
144501
144434
|
if (r === "field" && typeof i == "string")
|
|
@@ -144506,7 +144439,7 @@ class git extends Q3 {
|
|
|
144506
144439
|
typeof o == "string" && (i[s] = this.translateField(n, o));
|
|
144507
144440
|
}
|
|
144508
144441
|
else
|
|
144509
|
-
|
|
144442
|
+
Qz(i) && this.translateFields(i, n);
|
|
144510
144443
|
}
|
|
144511
144444
|
// formatData(data: QueryDataRow, metadata: StructDef): VegaData {
|
|
144512
144445
|
// const ret: VegaData = [];
|
|
@@ -144527,9 +144460,9 @@ class git extends Q3 {
|
|
|
144527
144460
|
return n.data = r, n;
|
|
144528
144461
|
}
|
|
144529
144462
|
}
|
|
144530
|
-
const
|
|
144463
|
+
const pv = class pv extends un {
|
|
144531
144464
|
create(e, n, r, i, s) {
|
|
144532
|
-
return new
|
|
144465
|
+
return new fit(
|
|
144533
144466
|
e,
|
|
144534
144467
|
n,
|
|
144535
144468
|
r,
|
|
@@ -144541,8 +144474,8 @@ const gv = class gv extends un {
|
|
|
144541
144474
|
return "vega";
|
|
144542
144475
|
}
|
|
144543
144476
|
};
|
|
144544
|
-
|
|
144545
|
-
let
|
|
144477
|
+
pv.instance = new pv();
|
|
144478
|
+
let W7 = pv;
|
|
144546
144479
|
class w$ extends Q3 {
|
|
144547
144480
|
getVegaLiteSpec(e) {
|
|
144548
144481
|
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, d = this.getMark(), p = s !== void 0 ? {
|
|
@@ -144637,7 +144570,7 @@ class Fae extends w$ {
|
|
|
144637
144570
|
throw new Error("Invalid field type for line chart.");
|
|
144638
144571
|
}
|
|
144639
144572
|
}
|
|
144640
|
-
const
|
|
144573
|
+
const gv = class gv extends un {
|
|
144641
144574
|
create(e, n, r, i, s, o) {
|
|
144642
144575
|
return new Fae(
|
|
144643
144576
|
e,
|
|
@@ -144651,8 +144584,8 @@ const mv = class mv extends un {
|
|
|
144651
144584
|
return "line_chart";
|
|
144652
144585
|
}
|
|
144653
144586
|
};
|
|
144654
|
-
|
|
144655
|
-
let
|
|
144587
|
+
gv.instance = new gv();
|
|
144588
|
+
let V7 = gv;
|
|
144656
144589
|
class Lae extends Fae {
|
|
144657
144590
|
getSize() {
|
|
144658
144591
|
return this.size === "large" ? { height: 100, width: 250 } : { height: 50, width: 125 };
|
|
@@ -144714,7 +144647,7 @@ class Lae extends Fae {
|
|
|
144714
144647
|
};
|
|
144715
144648
|
}
|
|
144716
144649
|
}
|
|
144717
|
-
const
|
|
144650
|
+
const mv = class mv extends un {
|
|
144718
144651
|
create(e, n, r, i, s, o) {
|
|
144719
144652
|
return new Lae(
|
|
144720
144653
|
e,
|
|
@@ -144728,8 +144661,8 @@ const yv = class yv extends un {
|
|
|
144728
144661
|
return "sparkline";
|
|
144729
144662
|
}
|
|
144730
144663
|
};
|
|
144731
|
-
|
|
144732
|
-
let
|
|
144664
|
+
mv.instance = new mv();
|
|
144665
|
+
let Y7 = mv;
|
|
144733
144666
|
class F$ extends w$ {
|
|
144734
144667
|
getMark() {
|
|
144735
144668
|
return "bar";
|
|
@@ -144753,7 +144686,7 @@ class F$ extends w$ {
|
|
|
144753
144686
|
throw new Error("Invalid field type for bar chart.");
|
|
144754
144687
|
}
|
|
144755
144688
|
}
|
|
144756
|
-
const
|
|
144689
|
+
const yv = class yv extends un {
|
|
144757
144690
|
create(e, n, r, i, s, o) {
|
|
144758
144691
|
return new F$(
|
|
144759
144692
|
e,
|
|
@@ -144767,9 +144700,9 @@ const Ev = class Ev extends un {
|
|
|
144767
144700
|
return "bar_chart";
|
|
144768
144701
|
}
|
|
144769
144702
|
};
|
|
144770
|
-
|
|
144771
|
-
let
|
|
144772
|
-
class
|
|
144703
|
+
yv.instance = new yv();
|
|
144704
|
+
let K7 = yv;
|
|
144705
|
+
class xit extends F$ {
|
|
144773
144706
|
getSize() {
|
|
144774
144707
|
return this.size === "large" ? { height: 250, width: 100 } : { height: 125, width: 50 };
|
|
144775
144708
|
}
|
|
@@ -144825,12 +144758,12 @@ class mit extends F$ {
|
|
|
144825
144758
|
};
|
|
144826
144759
|
}
|
|
144827
144760
|
}
|
|
144828
|
-
const
|
|
144761
|
+
const Ev = class Ev extends un {
|
|
144829
144762
|
isValidMatch(e) {
|
|
144830
144763
|
return e.name.endsWith("_bar");
|
|
144831
144764
|
}
|
|
144832
144765
|
create(e, n, r, i, s, o) {
|
|
144833
|
-
return new
|
|
144766
|
+
return new xit(
|
|
144834
144767
|
e,
|
|
144835
144768
|
n,
|
|
144836
144769
|
r,
|
|
@@ -144842,9 +144775,9 @@ const Av = class Av extends un {
|
|
|
144842
144775
|
return "sparkline";
|
|
144843
144776
|
}
|
|
144844
144777
|
};
|
|
144845
|
-
|
|
144846
|
-
let
|
|
144847
|
-
class
|
|
144778
|
+
Ev.instance = new Ev();
|
|
144779
|
+
let J7 = Ev;
|
|
144780
|
+
class dit extends Lae {
|
|
144848
144781
|
getVegaLiteSpec(e) {
|
|
144849
144782
|
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 ? {
|
|
144850
144783
|
field: s.name,
|
|
@@ -144905,12 +144838,12 @@ class yit extends Lae {
|
|
|
144905
144838
|
};
|
|
144906
144839
|
}
|
|
144907
144840
|
}
|
|
144908
|
-
const
|
|
144841
|
+
const Av = class Av extends un {
|
|
144909
144842
|
isValidMatch(e) {
|
|
144910
144843
|
return e.name.endsWith("area");
|
|
144911
144844
|
}
|
|
144912
144845
|
create(e, n, r, i, s, o) {
|
|
144913
|
-
return new
|
|
144846
|
+
return new dit(
|
|
144914
144847
|
e,
|
|
144915
144848
|
n,
|
|
144916
144849
|
r,
|
|
@@ -144922,9 +144855,9 @@ const _v = class _v extends un {
|
|
|
144922
144855
|
return "sparkline";
|
|
144923
144856
|
}
|
|
144924
144857
|
};
|
|
144925
|
-
|
|
144926
|
-
let
|
|
144927
|
-
class
|
|
144858
|
+
Av.instance = new Av();
|
|
144859
|
+
let X7 = Av;
|
|
144860
|
+
class hit extends F$ {
|
|
144928
144861
|
getSize() {
|
|
144929
144862
|
return this.size === "large" ? { height: 100, width: 250 } : { height: 50, width: 125 };
|
|
144930
144863
|
}
|
|
@@ -144980,12 +144913,12 @@ class Eit extends F$ {
|
|
|
144980
144913
|
};
|
|
144981
144914
|
}
|
|
144982
144915
|
}
|
|
144983
|
-
const
|
|
144916
|
+
const _v = class _v extends un {
|
|
144984
144917
|
isValidMatch(e) {
|
|
144985
144918
|
return e.name.endsWith("_column");
|
|
144986
144919
|
}
|
|
144987
144920
|
create(e, n, r, i, s, o) {
|
|
144988
|
-
return new
|
|
144921
|
+
return new hit(
|
|
144989
144922
|
e,
|
|
144990
144923
|
n,
|
|
144991
144924
|
r,
|
|
@@ -144997,9 +144930,9 @@ const vv = class vv extends un {
|
|
|
144997
144930
|
return "sparkline";
|
|
144998
144931
|
}
|
|
144999
144932
|
};
|
|
145000
|
-
|
|
145001
|
-
let
|
|
145002
|
-
class
|
|
144933
|
+
_v.instance = new _v();
|
|
144934
|
+
let Z7 = _v;
|
|
144935
|
+
class pit extends w$ {
|
|
145003
144936
|
getMark() {
|
|
145004
144937
|
return "point";
|
|
145005
144938
|
}
|
|
@@ -145022,9 +144955,9 @@ class Ait extends w$ {
|
|
|
145022
144955
|
throw new Error("Invalid field type for scatter chart.");
|
|
145023
144956
|
}
|
|
145024
144957
|
}
|
|
145025
|
-
const
|
|
144958
|
+
const vv = class vv extends un {
|
|
145026
144959
|
create(e, n, r, i, s, o) {
|
|
145027
|
-
return new
|
|
144960
|
+
return new pit(
|
|
145028
144961
|
e,
|
|
145029
144962
|
n,
|
|
145030
144963
|
r,
|
|
@@ -145036,9 +144969,9 @@ const Sv = class Sv extends un {
|
|
|
145036
144969
|
return "scatter_chart";
|
|
145037
144970
|
}
|
|
145038
144971
|
};
|
|
145039
|
-
|
|
145040
|
-
let
|
|
145041
|
-
class
|
|
144972
|
+
vv.instance = new vv();
|
|
144973
|
+
let e8 = vv;
|
|
144974
|
+
class git {
|
|
145042
144975
|
constructor(e, n) {
|
|
145043
144976
|
this.document = e, this.queryTimezone = n;
|
|
145044
144977
|
}
|
|
@@ -145054,20 +144987,24 @@ class _it {
|
|
|
145054
144987
|
return i.appendChild(this.document.createTextNode(r)), i;
|
|
145055
144988
|
}
|
|
145056
144989
|
}
|
|
145057
|
-
const
|
|
144990
|
+
const Sv = class Sv extends un {
|
|
145058
144991
|
activates(e) {
|
|
145059
144992
|
return e.hasParentExplore() && e.isAtomicField() && (e.type === $t.AtomicFieldType.Date || e.type === $t.AtomicFieldType.Timestamp);
|
|
145060
144993
|
}
|
|
145061
144994
|
create(e, n, r, i, s, o) {
|
|
145062
|
-
return new
|
|
144995
|
+
return new git(e, o);
|
|
145063
144996
|
}
|
|
145064
144997
|
get rendererName() {
|
|
145065
144998
|
return "time";
|
|
145066
144999
|
}
|
|
145067
145000
|
};
|
|
145068
|
-
|
|
145069
|
-
let
|
|
145070
|
-
|
|
145001
|
+
Sv.instance = new Sv();
|
|
145002
|
+
let t8 = Sv;
|
|
145003
|
+
var I1 = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds = "pound", t))(I1 || {}), vc = /* @__PURE__ */ ((t) => (t.Bytes = "bytes", t.Kilobytes = "kb", t.Megabytes = "mb", t.Gigabytes = "gb", t.Terabytes = "tb", t))(vc || {}), Vn = /* @__PURE__ */ ((t) => (t.Nanoseconds = "nanoseconds", t.Microseconds = "microseconds", t.Milliseconds = "milliseconds", t.Seconds = "seconds", t.Minutes = "minutes", t.Hours = "hours", t.Days = "days", t))(Vn || {});
|
|
145004
|
+
function mit(t) {
|
|
145005
|
+
return Object.values(Vn).includes(t);
|
|
145006
|
+
}
|
|
145007
|
+
class yit extends k0 {
|
|
145071
145008
|
constructor(e, n) {
|
|
145072
145009
|
super(e), this.options = n;
|
|
145073
145010
|
}
|
|
@@ -145092,22 +145029,22 @@ class vit extends k0 {
|
|
|
145092
145029
|
return `${n}${r}`;
|
|
145093
145030
|
}
|
|
145094
145031
|
}
|
|
145095
|
-
const
|
|
145032
|
+
const Cv = class Cv extends un {
|
|
145096
145033
|
constructor() {
|
|
145097
145034
|
super(), this.addExtractor((e, n) => {
|
|
145098
145035
|
e.currency = (n == null ? void 0 : n.text()) ?? I1.Dollars;
|
|
145099
145036
|
}, this.rendererName);
|
|
145100
145037
|
}
|
|
145101
145038
|
create(e, n, r, i, s) {
|
|
145102
|
-
return new
|
|
145039
|
+
return new yit(e, s);
|
|
145103
145040
|
}
|
|
145104
145041
|
get rendererName() {
|
|
145105
145042
|
return "currency";
|
|
145106
145043
|
}
|
|
145107
145044
|
};
|
|
145108
|
-
|
|
145109
|
-
let
|
|
145110
|
-
class
|
|
145045
|
+
Cv.instance = new Cv();
|
|
145046
|
+
let n8 = Cv;
|
|
145047
|
+
class Eit extends NA {
|
|
145111
145048
|
getText(e) {
|
|
145112
145049
|
if (e.isNull())
|
|
145113
145050
|
return null;
|
|
@@ -145115,50 +145052,50 @@ class Sit extends NA {
|
|
|
145115
145052
|
return n === null ? n : (n * 100).toLocaleString("en", { maximumFractionDigits: 2 }) + "%";
|
|
145116
145053
|
}
|
|
145117
145054
|
}
|
|
145118
|
-
const
|
|
145055
|
+
const bv = class bv extends un {
|
|
145119
145056
|
create(e, n, r, i, s) {
|
|
145120
|
-
return new
|
|
145057
|
+
return new Eit(e, s);
|
|
145121
145058
|
}
|
|
145122
145059
|
get rendererName() {
|
|
145123
145060
|
return "percent";
|
|
145124
145061
|
}
|
|
145125
145062
|
};
|
|
145126
|
-
|
|
145127
|
-
let
|
|
145128
|
-
class
|
|
145063
|
+
bv.instance = new bv();
|
|
145064
|
+
let r8 = bv;
|
|
145065
|
+
class Ait extends k0 {
|
|
145129
145066
|
getText(e) {
|
|
145130
145067
|
return e.isNull() ? null : e.bytes.value.toString("base64");
|
|
145131
145068
|
}
|
|
145132
145069
|
}
|
|
145133
|
-
const
|
|
145070
|
+
const Tv = class Tv extends un {
|
|
145134
145071
|
create(e, n, r, i, s) {
|
|
145135
|
-
return new
|
|
145072
|
+
return new Ait(e);
|
|
145136
145073
|
}
|
|
145137
145074
|
get rendererName() {
|
|
145138
145075
|
return "bytes";
|
|
145139
145076
|
}
|
|
145140
145077
|
};
|
|
145141
|
-
|
|
145142
|
-
let
|
|
145143
|
-
class
|
|
145078
|
+
Tv.instance = new Tv();
|
|
145079
|
+
let i8 = Tv;
|
|
145080
|
+
class _it extends k0 {
|
|
145144
145081
|
getText(e) {
|
|
145145
145082
|
return e.isNull() ? null : `${e.boolean.value}`;
|
|
145146
145083
|
}
|
|
145147
145084
|
}
|
|
145148
|
-
const
|
|
145085
|
+
const Rv = class Rv extends un {
|
|
145149
145086
|
activates(e) {
|
|
145150
145087
|
return e.hasParentExplore() && e.isAtomicField() && e.type === $t.AtomicFieldType.Boolean;
|
|
145151
145088
|
}
|
|
145152
145089
|
create(e, n, r, i, s) {
|
|
145153
|
-
return new
|
|
145090
|
+
return new _it(e);
|
|
145154
145091
|
}
|
|
145155
145092
|
get rendererName() {
|
|
145156
145093
|
return "boolean";
|
|
145157
145094
|
}
|
|
145158
145095
|
};
|
|
145159
|
-
|
|
145160
|
-
let
|
|
145161
|
-
class
|
|
145096
|
+
Rv.instance = new Rv();
|
|
145097
|
+
let s8 = Rv;
|
|
145098
|
+
class vit {
|
|
145162
145099
|
constructor(e) {
|
|
145163
145100
|
this.document = e;
|
|
145164
145101
|
}
|
|
@@ -145179,17 +145116,17 @@ class Tit {
|
|
|
145179
145116
|
), o;
|
|
145180
145117
|
}
|
|
145181
145118
|
}
|
|
145182
|
-
const
|
|
145119
|
+
const Ov = class Ov extends un {
|
|
145183
145120
|
create(e, n, r, i, s) {
|
|
145184
|
-
return new
|
|
145121
|
+
return new vit(e);
|
|
145185
145122
|
}
|
|
145186
145123
|
get rendererName() {
|
|
145187
145124
|
return "link";
|
|
145188
145125
|
}
|
|
145189
145126
|
};
|
|
145190
|
-
|
|
145191
|
-
let
|
|
145192
|
-
class
|
|
145127
|
+
Ov.instance = new Ov();
|
|
145128
|
+
let o8 = Ov;
|
|
145129
|
+
class Sit {
|
|
145193
145130
|
constructor(e) {
|
|
145194
145131
|
this.document = e;
|
|
145195
145132
|
}
|
|
@@ -145214,19 +145151,19 @@ class Rit {
|
|
|
145214
145151
|
return r.appendChild(this.document.createTextNode(n)), r;
|
|
145215
145152
|
}
|
|
145216
145153
|
}
|
|
145217
|
-
const
|
|
145154
|
+
const Dv = class Dv extends un {
|
|
145218
145155
|
activates(e) {
|
|
145219
145156
|
return e.hasParentExplore() && e.isAtomicField() && e.isUnsupported();
|
|
145220
145157
|
}
|
|
145221
145158
|
create(e, n, r, i, s) {
|
|
145222
|
-
return new
|
|
145159
|
+
return new Sit(e);
|
|
145223
145160
|
}
|
|
145224
145161
|
get rendererName() {
|
|
145225
145162
|
return "unsupported";
|
|
145226
145163
|
}
|
|
145227
145164
|
};
|
|
145228
|
-
|
|
145229
|
-
let
|
|
145165
|
+
Dv.instance = new Dv();
|
|
145166
|
+
let u8 = Dv;
|
|
145230
145167
|
const Tr = class Tr extends k0 {
|
|
145231
145168
|
constructor(e, n) {
|
|
145232
145169
|
super(e), this.options = n;
|
|
@@ -145259,20 +145196,83 @@ const Tr = class Tr extends k0 {
|
|
|
145259
145196
|
}
|
|
145260
145197
|
};
|
|
145261
145198
|
Tr.kbMultiplier = 1024, Tr.mbMultiplier = Tr.kbMultiplier * Tr.kbMultiplier, Tr.gbMultiplier = Tr.mbMultiplier * Tr.kbMultiplier, Tr.tbMultiplier = Tr.gbMultiplier * Tr.kbMultiplier;
|
|
145262
|
-
let
|
|
145263
|
-
const
|
|
145199
|
+
let a8 = Tr;
|
|
145200
|
+
const Nv = class Nv extends un {
|
|
145264
145201
|
constructor() {
|
|
145265
145202
|
super(), this.addExtractor((e, n) => {
|
|
145266
145203
|
e.data_volume_unit = (n == null ? void 0 : n.text()) ?? vc.Bytes;
|
|
145267
145204
|
}, this.rendererName);
|
|
145268
145205
|
}
|
|
145269
145206
|
create(e, n, r, i, s) {
|
|
145270
|
-
return new
|
|
145207
|
+
return new a8(e, s);
|
|
145271
145208
|
}
|
|
145272
145209
|
get rendererName() {
|
|
145273
145210
|
return "data_volume";
|
|
145274
145211
|
}
|
|
145275
145212
|
};
|
|
145213
|
+
Nv.instance = new Nv();
|
|
145214
|
+
let l8 = Nv;
|
|
145215
|
+
function Gz(t, e, n = {}) {
|
|
145216
|
+
let r = e.toString();
|
|
145217
|
+
return n.terse ? r = Cit.get(e) ?? r : t === 1 && (r = r.substring(0, r.length - 1)), `${n.numFormat ? jJ.format(n.numFormat, t) : t.toLocaleString()}${n.terse ? "" : " "}${r}`;
|
|
145218
|
+
}
|
|
145219
|
+
const Cit = /* @__PURE__ */ new Map([
|
|
145220
|
+
[Vn.Nanoseconds, "ns"],
|
|
145221
|
+
[Vn.Microseconds, "µs"],
|
|
145222
|
+
[Vn.Milliseconds, "ms"],
|
|
145223
|
+
[Vn.Seconds, "s"],
|
|
145224
|
+
[Vn.Minutes, "m"],
|
|
145225
|
+
[Vn.Hours, "h"],
|
|
145226
|
+
[Vn.Days, "d"]
|
|
145227
|
+
]), bit = /* @__PURE__ */ new Map([
|
|
145228
|
+
[Vn.Nanoseconds, 1e3],
|
|
145229
|
+
[Vn.Microseconds, 1e3],
|
|
145230
|
+
[Vn.Milliseconds, 1e3],
|
|
145231
|
+
[Vn.Seconds, 60],
|
|
145232
|
+
[Vn.Minutes, 60],
|
|
145233
|
+
[Vn.Hours, 24],
|
|
145234
|
+
[Vn.Days, Number.MAX_VALUE]
|
|
145235
|
+
]);
|
|
145236
|
+
function Tit(t, e, n) {
|
|
145237
|
+
const r = n.durationUnit && mit(n.durationUnit) ? n.durationUnit : Vn.Seconds, i = t.tagParse().tag, s = i.text("number"), o = i.has("duration", "terse");
|
|
145238
|
+
let u = e, a = 0, l = [], c = !1;
|
|
145239
|
+
for (const [f, x] of bit)
|
|
145240
|
+
if (f === r && (c = !0), !!c && (a = u % x, u = Math.floor(u /= x), a > 0 && (l = [
|
|
145241
|
+
Gz(a, f, { numFormat: s, terse: o }),
|
|
145242
|
+
...l
|
|
145243
|
+
]), u === 0))
|
|
145244
|
+
break;
|
|
145245
|
+
return l.length > 0 ? l.slice(0, 2).join(" ") : Gz(0, r, { numFormat: s, terse: o });
|
|
145246
|
+
}
|
|
145247
|
+
class Rit extends k0 {
|
|
145248
|
+
constructor(e, n) {
|
|
145249
|
+
super(e), this.options = n;
|
|
145250
|
+
}
|
|
145251
|
+
getText(e) {
|
|
145252
|
+
if (e.isNull())
|
|
145253
|
+
return null;
|
|
145254
|
+
if (!e.isNumber())
|
|
145255
|
+
throw new Error(
|
|
145256
|
+
`Cannot format field ${e.field.name} as a duration unit since its not a number`
|
|
145257
|
+
);
|
|
145258
|
+
return Tit(e.field, e.number.value, {
|
|
145259
|
+
durationUnit: this.options.duration_unit
|
|
145260
|
+
});
|
|
145261
|
+
}
|
|
145262
|
+
}
|
|
145263
|
+
const wv = class wv extends un {
|
|
145264
|
+
constructor() {
|
|
145265
|
+
super(), this.addExtractor((e, n) => {
|
|
145266
|
+
e.duration_unit = (n == null ? void 0 : n.text()) ?? Vn.Seconds;
|
|
145267
|
+
}, this.rendererName);
|
|
145268
|
+
}
|
|
145269
|
+
create(e, n, r, i, s) {
|
|
145270
|
+
return new Rit(e, s);
|
|
145271
|
+
}
|
|
145272
|
+
get rendererName() {
|
|
145273
|
+
return "duration";
|
|
145274
|
+
}
|
|
145275
|
+
};
|
|
145276
145276
|
wv.instance = new wv();
|
|
145277
145277
|
let c8 = wv;
|
|
145278
145278
|
const Fv = class Fv {
|
|
@@ -145305,25 +145305,25 @@ Fv.renderFactories = [
|
|
|
145305
145305
|
Q7.instance,
|
|
145306
145306
|
G7.instance,
|
|
145307
145307
|
NO.instance,
|
|
145308
|
-
|
|
145309
|
-
e8.instance,
|
|
145310
|
-
X7.instance,
|
|
145308
|
+
V7.instance,
|
|
145311
145309
|
Z7.instance,
|
|
145310
|
+
J7.instance,
|
|
145311
|
+
X7.instance,
|
|
145312
145312
|
// This factory needs to be after the other Spark Line factories, so it doesn't override them.
|
|
145313
|
+
Y7.instance,
|
|
145314
|
+
e8.instance,
|
|
145313
145315
|
K7.instance,
|
|
145316
|
+
W7.instance,
|
|
145314
145317
|
t8.instance,
|
|
145315
|
-
J7.instance,
|
|
145316
|
-
V7.instance,
|
|
145317
145318
|
n8.instance,
|
|
145318
145319
|
r8.instance,
|
|
145320
|
+
l8.instance,
|
|
145319
145321
|
i8.instance,
|
|
145322
|
+
o8.instance,
|
|
145320
145323
|
c8.instance,
|
|
145321
145324
|
s8.instance,
|
|
145322
|
-
u8.instance,
|
|
145323
|
-
W7.instance,
|
|
145324
|
-
o8.instance,
|
|
145325
145325
|
FO.instance,
|
|
145326
|
-
|
|
145326
|
+
u8.instance,
|
|
145327
145327
|
wO.instance
|
|
145328
145328
|
];
|
|
145329
145329
|
let f8 = Fv;
|
|
@@ -145492,5 +145492,5 @@ export {
|
|
|
145492
145492
|
Qst as HTMLView,
|
|
145493
145493
|
Gst as JSONView,
|
|
145494
145494
|
BJ as getDrillQuery,
|
|
145495
|
-
|
|
145495
|
+
mit as isDurationUnit
|
|
145496
145496
|
};
|