@malloydata/render 0.0.203-dev241022210817 → 0.0.203-dev241023170054
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/bar-chart/{generate-bar_chart-vega-lite-spec.d.ts → generate-bar_chart-vega-spec.d.ts} +1 -1
- package/dist/component/bar-chart/get-bar_chart-settings.d.ts +3 -6
- package/dist/component/bar-chart/get-custom-tooltips-entries.d.ts +16 -0
- package/dist/component/chart/default-chart-tooltip.d.ts +1 -1
- package/dist/component/chart-layout-settings.d.ts +2 -1
- package/dist/component/plot/base-vega-config.d.ts +1 -0
- package/dist/component/plot/util.d.ts +1 -0
- package/dist/component/render-link.d.ts +1 -1
- package/dist/component/render-list.d.ts +1 -1
- package/dist/component/result-store/result-store.d.ts +43 -0
- package/dist/component/types.d.ts +25 -6
- package/dist/component/vega/measure-axis.d.ts +22 -0
- package/dist/component/vega/vega-chart.d.ts +11 -1
- package/dist/component/vega/vega-expr-addons.d.ts +1 -0
- package/dist/component/vega/vega-utils.d.ts +6 -0
- 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 +22558 -21564
- package/dist/register/register.umd.js +395 -317
- package/dist/webcomponent/malloy-render.mjs +22558 -21564
- package/dist/webcomponent/malloy-render.umd.js +395 -317
- package/package.json +2 -2
package/dist/module/index.mjs
CHANGED
|
@@ -143635,7 +143635,74 @@ const h4 = class h4 extends on {
|
|
|
143635
143635
|
};
|
|
143636
143636
|
h4.instance = new h4();
|
|
143637
143637
|
let W7 = h4;
|
|
143638
|
-
|
|
143638
|
+
var $1 = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds = "pound", t))($1 || {}), Sc = /* @__PURE__ */ ((t) => (t.Bytes = "bytes", t.Kilobytes = "kb", t.Megabytes = "mb", t.Gigabytes = "gb", t.Terabytes = "tb", t))(Sc || {}), 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 || {});
|
|
143639
|
+
function Tnt(t) {
|
|
143640
|
+
return Object.values(Vn).includes(t);
|
|
143641
|
+
}
|
|
143642
|
+
function Uz(t, e, n = {}) {
|
|
143643
|
+
let r = e.toString();
|
|
143644
|
+
return n.terse ? r = bnt.get(e) ?? r : t === 1 && (r = r.substring(0, r.length - 1)), `${n.numFormat ? PK.format(n.numFormat, t) : t.toLocaleString()}${n.terse ? "" : " "}${r}`;
|
|
143645
|
+
}
|
|
143646
|
+
const bnt = /* @__PURE__ */ new Map([
|
|
143647
|
+
[Vn.Nanoseconds, "ns"],
|
|
143648
|
+
[Vn.Microseconds, "µs"],
|
|
143649
|
+
[Vn.Milliseconds, "ms"],
|
|
143650
|
+
[Vn.Seconds, "s"],
|
|
143651
|
+
[Vn.Minutes, "m"],
|
|
143652
|
+
[Vn.Hours, "h"],
|
|
143653
|
+
[Vn.Days, "d"]
|
|
143654
|
+
]), Rnt = /* @__PURE__ */ new Map([
|
|
143655
|
+
[Vn.Nanoseconds, 1e3],
|
|
143656
|
+
[Vn.Microseconds, 1e3],
|
|
143657
|
+
[Vn.Milliseconds, 1e3],
|
|
143658
|
+
[Vn.Seconds, 60],
|
|
143659
|
+
[Vn.Minutes, 60],
|
|
143660
|
+
[Vn.Hours, 24],
|
|
143661
|
+
[Vn.Days, Number.MAX_VALUE]
|
|
143662
|
+
]);
|
|
143663
|
+
function Ont(t, e, n) {
|
|
143664
|
+
const r = n.durationUnit && Tnt(n.durationUnit) ? n.durationUnit : Vn.Seconds, i = t.tagParse().tag, s = i.text("number"), o = i.has("duration", "terse");
|
|
143665
|
+
let u = e, a = 0, l = [], c = !1;
|
|
143666
|
+
for (const [f, x] of Rnt)
|
|
143667
|
+
if (f === r && (c = !0), !!c && (a = u % x, u = Math.floor(u /= x), a > 0 && (l = [
|
|
143668
|
+
Uz(a, f, { numFormat: s, terse: o }),
|
|
143669
|
+
...l
|
|
143670
|
+
]), u === 0))
|
|
143671
|
+
break;
|
|
143672
|
+
return l.length > 0 ? l.slice(0, 2).join(" ") : Uz(0, r, { numFormat: s, terse: o });
|
|
143673
|
+
}
|
|
143674
|
+
class Dnt extends B0 {
|
|
143675
|
+
constructor(e, n) {
|
|
143676
|
+
super(e), this.options = n;
|
|
143677
|
+
}
|
|
143678
|
+
getText(e) {
|
|
143679
|
+
if (e.isNull())
|
|
143680
|
+
return null;
|
|
143681
|
+
if (!e.isNumber())
|
|
143682
|
+
throw new Error(
|
|
143683
|
+
`Cannot format field ${e.field.name} as a duration unit since its not a number`
|
|
143684
|
+
);
|
|
143685
|
+
return Ont(e.field, e.number.value, {
|
|
143686
|
+
durationUnit: this.options.duration_unit
|
|
143687
|
+
});
|
|
143688
|
+
}
|
|
143689
|
+
}
|
|
143690
|
+
const p4 = class p4 extends on {
|
|
143691
|
+
constructor() {
|
|
143692
|
+
super(), this.addExtractor((e, n) => {
|
|
143693
|
+
e.duration_unit = (n == null ? void 0 : n.text()) ?? Vn.Seconds;
|
|
143694
|
+
}, this.rendererName);
|
|
143695
|
+
}
|
|
143696
|
+
create(e, n, r, i, s) {
|
|
143697
|
+
return new Dnt(e, s);
|
|
143698
|
+
}
|
|
143699
|
+
get rendererName() {
|
|
143700
|
+
return "duration";
|
|
143701
|
+
}
|
|
143702
|
+
};
|
|
143703
|
+
p4.instance = new p4();
|
|
143704
|
+
let V7 = p4;
|
|
143705
|
+
const qz = "#727883", Hz = "#E5E7EB", X0 = {
|
|
143639
143706
|
$schema: "https://vega.github.io/schema/vega-lite/v5.json",
|
|
143640
143707
|
config: {
|
|
143641
143708
|
params: [
|
|
@@ -143643,8 +143710,8 @@ const Uz = "#727883", qz = "#E5E7EB", X0 = {
|
|
|
143643
143710
|
name: "defaultFont",
|
|
143644
143711
|
value: "var(--malloy-font-family, 'Inter')"
|
|
143645
143712
|
},
|
|
143646
|
-
{ name: "titleColor", value: `var(--malloy-title-color, ${
|
|
143647
|
-
{ name: "labelColor", value: `var(--malloy-label-color, ${
|
|
143713
|
+
{ name: "titleColor", value: `var(--malloy-title-color, ${qz})` },
|
|
143714
|
+
{ name: "labelColor", value: `var(--malloy-label-color, ${qz})` }
|
|
143648
143715
|
],
|
|
143649
143716
|
background: void 0,
|
|
143650
143717
|
color: { expr: "titleColor" },
|
|
@@ -143673,8 +143740,8 @@ const Uz = "#727883", qz = "#E5E7EB", X0 = {
|
|
|
143673
143740
|
titleFontWeight: 500,
|
|
143674
143741
|
titleColor: { expr: "titleColor" },
|
|
143675
143742
|
titleFontSize: 12,
|
|
143676
|
-
gridColor:
|
|
143677
|
-
tickColor:
|
|
143743
|
+
gridColor: Hz,
|
|
143744
|
+
tickColor: Hz,
|
|
143678
143745
|
labelPadding: 5,
|
|
143679
143746
|
titlePadding: 10
|
|
143680
143747
|
},
|
|
@@ -143784,10 +143851,10 @@ const u4 = {
|
|
|
143784
143851
|
color: Ui("quantitative", !0)
|
|
143785
143852
|
}
|
|
143786
143853
|
});
|
|
143787
|
-
function
|
|
143854
|
+
function zz(t) {
|
|
143788
143855
|
return Array.isArray(t) || t !== null && typeof t == "object";
|
|
143789
143856
|
}
|
|
143790
|
-
class
|
|
143857
|
+
class Nnt extends Q3 {
|
|
143791
143858
|
constructor(e, n, r, i, s) {
|
|
143792
143859
|
super(e, n, r);
|
|
143793
143860
|
const o = s.spec;
|
|
@@ -143830,7 +143897,7 @@ class Tnt extends Q3 {
|
|
|
143830
143897
|
translateFields(e, n) {
|
|
143831
143898
|
if (Array.isArray(e))
|
|
143832
143899
|
for (const r of e)
|
|
143833
|
-
|
|
143900
|
+
zz(r) && this.translateFields(r, n);
|
|
143834
143901
|
else if (e && typeof e == "object")
|
|
143835
143902
|
for (const [r, i] of Object.entries(e))
|
|
143836
143903
|
if (r === "field" && typeof i == "string")
|
|
@@ -143841,7 +143908,7 @@ class Tnt extends Q3 {
|
|
|
143841
143908
|
typeof o == "string" && (i[s] = this.translateField(n, o));
|
|
143842
143909
|
}
|
|
143843
143910
|
else
|
|
143844
|
-
|
|
143911
|
+
zz(i) && this.translateFields(i, n);
|
|
143845
143912
|
}
|
|
143846
143913
|
// formatData(data: QueryDataRow, metadata: StructDef): VegaData {
|
|
143847
143914
|
// const ret: VegaData = [];
|
|
@@ -143862,9 +143929,9 @@ class Tnt extends Q3 {
|
|
|
143862
143929
|
return n.data = r, n;
|
|
143863
143930
|
}
|
|
143864
143931
|
}
|
|
143865
|
-
const
|
|
143932
|
+
const g4 = class g4 extends on {
|
|
143866
143933
|
create(e, n, r, i, s) {
|
|
143867
|
-
return new
|
|
143934
|
+
return new Nnt(
|
|
143868
143935
|
e,
|
|
143869
143936
|
n,
|
|
143870
143937
|
r,
|
|
@@ -143876,8 +143943,8 @@ const p4 = class p4 extends on {
|
|
|
143876
143943
|
return "vega";
|
|
143877
143944
|
}
|
|
143878
143945
|
};
|
|
143879
|
-
|
|
143880
|
-
let
|
|
143946
|
+
g4.instance = new g4();
|
|
143947
|
+
let Y7 = g4;
|
|
143881
143948
|
class w$ extends Q3 {
|
|
143882
143949
|
getVegaLiteSpec(e) {
|
|
143883
143950
|
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 ? {
|
|
@@ -143972,7 +144039,7 @@ class Nae extends w$ {
|
|
|
143972
144039
|
throw new Error("Invalid field type for line chart.");
|
|
143973
144040
|
}
|
|
143974
144041
|
}
|
|
143975
|
-
const
|
|
144042
|
+
const m4 = class m4 extends on {
|
|
143976
144043
|
create(e, n, r, i, s, o) {
|
|
143977
144044
|
return new Nae(
|
|
143978
144045
|
e,
|
|
@@ -143986,8 +144053,8 @@ const g4 = class g4 extends on {
|
|
|
143986
144053
|
return "line_chart";
|
|
143987
144054
|
}
|
|
143988
144055
|
};
|
|
143989
|
-
|
|
143990
|
-
let
|
|
144056
|
+
m4.instance = new m4();
|
|
144057
|
+
let J7 = m4;
|
|
143991
144058
|
class wae extends Nae {
|
|
143992
144059
|
getSize() {
|
|
143993
144060
|
return this.size === "large" ? { height: 100, width: 250 } : { height: 50, width: 125 };
|
|
@@ -144049,7 +144116,7 @@ class wae extends Nae {
|
|
|
144049
144116
|
};
|
|
144050
144117
|
}
|
|
144051
144118
|
}
|
|
144052
|
-
const
|
|
144119
|
+
const y4 = class y4 extends on {
|
|
144053
144120
|
create(e, n, r, i, s, o) {
|
|
144054
144121
|
return new wae(
|
|
144055
144122
|
e,
|
|
@@ -144063,8 +144130,8 @@ const m4 = class m4 extends on {
|
|
|
144063
144130
|
return "sparkline";
|
|
144064
144131
|
}
|
|
144065
144132
|
};
|
|
144066
|
-
|
|
144067
|
-
let
|
|
144133
|
+
y4.instance = new y4();
|
|
144134
|
+
let K7 = y4;
|
|
144068
144135
|
class F$ extends w$ {
|
|
144069
144136
|
getMark() {
|
|
144070
144137
|
return "bar";
|
|
@@ -144088,7 +144155,7 @@ class F$ extends w$ {
|
|
|
144088
144155
|
throw new Error("Invalid field type for bar chart.");
|
|
144089
144156
|
}
|
|
144090
144157
|
}
|
|
144091
|
-
const
|
|
144158
|
+
const E4 = class E4 extends on {
|
|
144092
144159
|
create(e, n, r, i, s, o) {
|
|
144093
144160
|
return new F$(
|
|
144094
144161
|
e,
|
|
@@ -144102,9 +144169,9 @@ const y4 = class y4 extends on {
|
|
|
144102
144169
|
return "bar_chart";
|
|
144103
144170
|
}
|
|
144104
144171
|
};
|
|
144105
|
-
|
|
144106
|
-
let
|
|
144107
|
-
class
|
|
144172
|
+
E4.instance = new E4();
|
|
144173
|
+
let X7 = E4;
|
|
144174
|
+
class wnt extends F$ {
|
|
144108
144175
|
getSize() {
|
|
144109
144176
|
return this.size === "large" ? { height: 250, width: 100 } : { height: 125, width: 50 };
|
|
144110
144177
|
}
|
|
@@ -144160,12 +144227,12 @@ class bnt extends F$ {
|
|
|
144160
144227
|
};
|
|
144161
144228
|
}
|
|
144162
144229
|
}
|
|
144163
|
-
const
|
|
144230
|
+
const A4 = class A4 extends on {
|
|
144164
144231
|
isValidMatch(e) {
|
|
144165
144232
|
return e.name.endsWith("_bar");
|
|
144166
144233
|
}
|
|
144167
144234
|
create(e, n, r, i, s, o) {
|
|
144168
|
-
return new
|
|
144235
|
+
return new wnt(
|
|
144169
144236
|
e,
|
|
144170
144237
|
n,
|
|
144171
144238
|
r,
|
|
@@ -144177,9 +144244,9 @@ const E4 = class E4 extends on {
|
|
|
144177
144244
|
return "sparkline";
|
|
144178
144245
|
}
|
|
144179
144246
|
};
|
|
144180
|
-
|
|
144181
|
-
let
|
|
144182
|
-
class
|
|
144247
|
+
A4.instance = new A4();
|
|
144248
|
+
let Z7 = A4;
|
|
144249
|
+
class Fnt extends wae {
|
|
144183
144250
|
getVegaLiteSpec(e) {
|
|
144184
144251
|
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 ? {
|
|
144185
144252
|
field: s.name,
|
|
@@ -144240,12 +144307,12 @@ class Rnt extends wae {
|
|
|
144240
144307
|
};
|
|
144241
144308
|
}
|
|
144242
144309
|
}
|
|
144243
|
-
const
|
|
144310
|
+
const v4 = class v4 extends on {
|
|
144244
144311
|
isValidMatch(e) {
|
|
144245
144312
|
return e.name.endsWith("area");
|
|
144246
144313
|
}
|
|
144247
144314
|
create(e, n, r, i, s, o) {
|
|
144248
|
-
return new
|
|
144315
|
+
return new Fnt(
|
|
144249
144316
|
e,
|
|
144250
144317
|
n,
|
|
144251
144318
|
r,
|
|
@@ -144257,9 +144324,9 @@ const A4 = class A4 extends on {
|
|
|
144257
144324
|
return "sparkline";
|
|
144258
144325
|
}
|
|
144259
144326
|
};
|
|
144260
|
-
|
|
144261
|
-
let
|
|
144262
|
-
class
|
|
144327
|
+
v4.instance = new v4();
|
|
144328
|
+
let e8 = v4;
|
|
144329
|
+
class Lnt extends F$ {
|
|
144263
144330
|
getSize() {
|
|
144264
144331
|
return this.size === "large" ? { height: 100, width: 250 } : { height: 50, width: 125 };
|
|
144265
144332
|
}
|
|
@@ -144315,12 +144382,12 @@ class Ont extends F$ {
|
|
|
144315
144382
|
};
|
|
144316
144383
|
}
|
|
144317
144384
|
}
|
|
144318
|
-
const
|
|
144385
|
+
const S4 = class S4 extends on {
|
|
144319
144386
|
isValidMatch(e) {
|
|
144320
144387
|
return e.name.endsWith("_column");
|
|
144321
144388
|
}
|
|
144322
144389
|
create(e, n, r, i, s, o) {
|
|
144323
|
-
return new
|
|
144390
|
+
return new Lnt(
|
|
144324
144391
|
e,
|
|
144325
144392
|
n,
|
|
144326
144393
|
r,
|
|
@@ -144332,9 +144399,9 @@ const v4 = class v4 extends on {
|
|
|
144332
144399
|
return "sparkline";
|
|
144333
144400
|
}
|
|
144334
144401
|
};
|
|
144335
|
-
|
|
144336
|
-
let
|
|
144337
|
-
class
|
|
144402
|
+
S4.instance = new S4();
|
|
144403
|
+
let t8 = S4;
|
|
144404
|
+
class Int extends w$ {
|
|
144338
144405
|
getMark() {
|
|
144339
144406
|
return "point";
|
|
144340
144407
|
}
|
|
@@ -144357,9 +144424,9 @@ class Dnt extends w$ {
|
|
|
144357
144424
|
throw new Error("Invalid field type for scatter chart.");
|
|
144358
144425
|
}
|
|
144359
144426
|
}
|
|
144360
|
-
const
|
|
144427
|
+
const _4 = class _4 extends on {
|
|
144361
144428
|
create(e, n, r, i, s, o) {
|
|
144362
|
-
return new
|
|
144429
|
+
return new Int(
|
|
144363
144430
|
e,
|
|
144364
144431
|
n,
|
|
144365
144432
|
r,
|
|
@@ -144371,9 +144438,9 @@ const S4 = class S4 extends on {
|
|
|
144371
144438
|
return "scatter_chart";
|
|
144372
144439
|
}
|
|
144373
144440
|
};
|
|
144374
|
-
|
|
144375
|
-
let
|
|
144376
|
-
class
|
|
144441
|
+
_4.instance = new _4();
|
|
144442
|
+
let n8 = _4;
|
|
144443
|
+
class $nt {
|
|
144377
144444
|
constructor(e, n) {
|
|
144378
144445
|
this.document = e, this.queryTimezone = n;
|
|
144379
144446
|
}
|
|
@@ -144389,24 +144456,20 @@ class Nnt {
|
|
|
144389
144456
|
return i.appendChild(this.document.createTextNode(r)), i;
|
|
144390
144457
|
}
|
|
144391
144458
|
}
|
|
144392
|
-
const
|
|
144459
|
+
const C4 = class C4 extends on {
|
|
144393
144460
|
activates(e) {
|
|
144394
144461
|
return e.hasParentExplore() && e.isAtomicField() && (e.type === It.AtomicFieldType.Date || e.type === It.AtomicFieldType.Timestamp);
|
|
144395
144462
|
}
|
|
144396
144463
|
create(e, n, r, i, s, o) {
|
|
144397
|
-
return new
|
|
144464
|
+
return new $nt(e, o);
|
|
144398
144465
|
}
|
|
144399
144466
|
get rendererName() {
|
|
144400
144467
|
return "time";
|
|
144401
144468
|
}
|
|
144402
144469
|
};
|
|
144403
|
-
|
|
144404
|
-
let
|
|
144405
|
-
|
|
144406
|
-
function wnt(t) {
|
|
144407
|
-
return Object.values(Vn).includes(t);
|
|
144408
|
-
}
|
|
144409
|
-
class Fnt extends B0 {
|
|
144470
|
+
C4.instance = new C4();
|
|
144471
|
+
let r8 = C4;
|
|
144472
|
+
class Bnt extends B0 {
|
|
144410
144473
|
constructor(e, n) {
|
|
144411
144474
|
super(e), this.options = n;
|
|
144412
144475
|
}
|
|
@@ -144431,22 +144494,22 @@ class Fnt extends B0 {
|
|
|
144431
144494
|
return `${n}${r}`;
|
|
144432
144495
|
}
|
|
144433
144496
|
}
|
|
144434
|
-
const
|
|
144497
|
+
const T4 = class T4 extends on {
|
|
144435
144498
|
constructor() {
|
|
144436
144499
|
super(), this.addExtractor((e, n) => {
|
|
144437
144500
|
e.currency = (n == null ? void 0 : n.text()) ?? $1.Dollars;
|
|
144438
144501
|
}, this.rendererName);
|
|
144439
144502
|
}
|
|
144440
144503
|
create(e, n, r, i, s) {
|
|
144441
|
-
return new
|
|
144504
|
+
return new Bnt(e, s);
|
|
144442
144505
|
}
|
|
144443
144506
|
get rendererName() {
|
|
144444
144507
|
return "currency";
|
|
144445
144508
|
}
|
|
144446
144509
|
};
|
|
144447
|
-
|
|
144448
|
-
let
|
|
144449
|
-
class
|
|
144510
|
+
T4.instance = new T4();
|
|
144511
|
+
let i8 = T4;
|
|
144512
|
+
class knt extends NA {
|
|
144450
144513
|
getText(e) {
|
|
144451
144514
|
if (e.isNull())
|
|
144452
144515
|
return null;
|
|
@@ -144454,50 +144517,50 @@ class Lnt extends NA {
|
|
|
144454
144517
|
return n === null ? n : (n * 100).toLocaleString("en", { maximumFractionDigits: 2 }) + "%";
|
|
144455
144518
|
}
|
|
144456
144519
|
}
|
|
144457
|
-
const
|
|
144520
|
+
const b4 = class b4 extends on {
|
|
144458
144521
|
create(e, n, r, i, s) {
|
|
144459
|
-
return new
|
|
144522
|
+
return new knt(e, s);
|
|
144460
144523
|
}
|
|
144461
144524
|
get rendererName() {
|
|
144462
144525
|
return "percent";
|
|
144463
144526
|
}
|
|
144464
144527
|
};
|
|
144465
|
-
|
|
144466
|
-
let
|
|
144467
|
-
class
|
|
144528
|
+
b4.instance = new b4();
|
|
144529
|
+
let s8 = b4;
|
|
144530
|
+
class Pnt extends B0 {
|
|
144468
144531
|
getText(e) {
|
|
144469
144532
|
return e.isNull() ? null : e.bytes.value.toString("base64");
|
|
144470
144533
|
}
|
|
144471
144534
|
}
|
|
144472
|
-
const
|
|
144535
|
+
const R4 = class R4 extends on {
|
|
144473
144536
|
create(e, n, r, i, s) {
|
|
144474
|
-
return new
|
|
144537
|
+
return new Pnt(e);
|
|
144475
144538
|
}
|
|
144476
144539
|
get rendererName() {
|
|
144477
144540
|
return "bytes";
|
|
144478
144541
|
}
|
|
144479
144542
|
};
|
|
144480
|
-
|
|
144481
|
-
let
|
|
144482
|
-
class
|
|
144543
|
+
R4.instance = new R4();
|
|
144544
|
+
let o8 = R4;
|
|
144545
|
+
class Mnt extends B0 {
|
|
144483
144546
|
getText(e) {
|
|
144484
144547
|
return e.isNull() ? null : `${e.boolean.value}`;
|
|
144485
144548
|
}
|
|
144486
144549
|
}
|
|
144487
|
-
const
|
|
144550
|
+
const O4 = class O4 extends on {
|
|
144488
144551
|
activates(e) {
|
|
144489
144552
|
return e.hasParentExplore() && e.isAtomicField() && e.type === It.AtomicFieldType.Boolean;
|
|
144490
144553
|
}
|
|
144491
144554
|
create(e, n, r, i, s) {
|
|
144492
|
-
return new
|
|
144555
|
+
return new Mnt(e);
|
|
144493
144556
|
}
|
|
144494
144557
|
get rendererName() {
|
|
144495
144558
|
return "boolean";
|
|
144496
144559
|
}
|
|
144497
144560
|
};
|
|
144498
|
-
|
|
144499
|
-
let
|
|
144500
|
-
class
|
|
144561
|
+
O4.instance = new O4();
|
|
144562
|
+
let u8 = O4;
|
|
144563
|
+
class jnt {
|
|
144501
144564
|
constructor(e) {
|
|
144502
144565
|
this.document = e;
|
|
144503
144566
|
}
|
|
@@ -144518,17 +144581,17 @@ class Bnt {
|
|
|
144518
144581
|
), o;
|
|
144519
144582
|
}
|
|
144520
144583
|
}
|
|
144521
|
-
const
|
|
144584
|
+
const D4 = class D4 extends on {
|
|
144522
144585
|
create(e, n, r, i, s) {
|
|
144523
|
-
return new
|
|
144586
|
+
return new jnt(e);
|
|
144524
144587
|
}
|
|
144525
144588
|
get rendererName() {
|
|
144526
144589
|
return "link";
|
|
144527
144590
|
}
|
|
144528
144591
|
};
|
|
144529
|
-
|
|
144530
|
-
let
|
|
144531
|
-
class
|
|
144592
|
+
D4.instance = new D4();
|
|
144593
|
+
let a8 = D4;
|
|
144594
|
+
class Unt {
|
|
144532
144595
|
constructor(e) {
|
|
144533
144596
|
this.document = e;
|
|
144534
144597
|
}
|
|
@@ -144553,19 +144616,19 @@ class knt {
|
|
|
144553
144616
|
return r.appendChild(this.document.createTextNode(n)), r;
|
|
144554
144617
|
}
|
|
144555
144618
|
}
|
|
144556
|
-
const
|
|
144619
|
+
const N4 = class N4 extends on {
|
|
144557
144620
|
activates(e) {
|
|
144558
144621
|
return e.hasParentExplore() && e.isAtomicField() && e.isUnsupported();
|
|
144559
144622
|
}
|
|
144560
144623
|
create(e, n, r, i, s) {
|
|
144561
|
-
return new
|
|
144624
|
+
return new Unt(e);
|
|
144562
144625
|
}
|
|
144563
144626
|
get rendererName() {
|
|
144564
144627
|
return "unsupported";
|
|
144565
144628
|
}
|
|
144566
144629
|
};
|
|
144567
|
-
|
|
144568
|
-
let
|
|
144630
|
+
N4.instance = new N4();
|
|
144631
|
+
let l8 = N4;
|
|
144569
144632
|
const Rr = class Rr extends B0 {
|
|
144570
144633
|
constructor(e, n) {
|
|
144571
144634
|
super(e), this.options = n;
|
|
@@ -144598,83 +144661,20 @@ const Rr = class Rr extends B0 {
|
|
|
144598
144661
|
}
|
|
144599
144662
|
};
|
|
144600
144663
|
Rr.kbMultiplier = 1024, Rr.mbMultiplier = Rr.kbMultiplier * Rr.kbMultiplier, Rr.gbMultiplier = Rr.mbMultiplier * Rr.kbMultiplier, Rr.tbMultiplier = Rr.gbMultiplier * Rr.kbMultiplier;
|
|
144601
|
-
let
|
|
144602
|
-
const
|
|
144664
|
+
let c8 = Rr;
|
|
144665
|
+
const w4 = class w4 extends on {
|
|
144603
144666
|
constructor() {
|
|
144604
144667
|
super(), this.addExtractor((e, n) => {
|
|
144605
144668
|
e.data_volume_unit = (n == null ? void 0 : n.text()) ?? Sc.Bytes;
|
|
144606
144669
|
}, this.rendererName);
|
|
144607
144670
|
}
|
|
144608
144671
|
create(e, n, r, i, s) {
|
|
144609
|
-
return new
|
|
144672
|
+
return new c8(e, s);
|
|
144610
144673
|
}
|
|
144611
144674
|
get rendererName() {
|
|
144612
144675
|
return "data_volume";
|
|
144613
144676
|
}
|
|
144614
144677
|
};
|
|
144615
|
-
N4.instance = new N4();
|
|
144616
|
-
let c8 = N4;
|
|
144617
|
-
function zz(t, e, n = {}) {
|
|
144618
|
-
let r = e.toString();
|
|
144619
|
-
return n.terse ? r = Pnt.get(e) ?? r : t === 1 && (r = r.substring(0, r.length - 1)), `${n.numFormat ? PK.format(n.numFormat, t) : t.toLocaleString()}${n.terse ? "" : " "}${r}`;
|
|
144620
|
-
}
|
|
144621
|
-
const Pnt = /* @__PURE__ */ new Map([
|
|
144622
|
-
[Vn.Nanoseconds, "ns"],
|
|
144623
|
-
[Vn.Microseconds, "µs"],
|
|
144624
|
-
[Vn.Milliseconds, "ms"],
|
|
144625
|
-
[Vn.Seconds, "s"],
|
|
144626
|
-
[Vn.Minutes, "m"],
|
|
144627
|
-
[Vn.Hours, "h"],
|
|
144628
|
-
[Vn.Days, "d"]
|
|
144629
|
-
]), Mnt = /* @__PURE__ */ new Map([
|
|
144630
|
-
[Vn.Nanoseconds, 1e3],
|
|
144631
|
-
[Vn.Microseconds, 1e3],
|
|
144632
|
-
[Vn.Milliseconds, 1e3],
|
|
144633
|
-
[Vn.Seconds, 60],
|
|
144634
|
-
[Vn.Minutes, 60],
|
|
144635
|
-
[Vn.Hours, 24],
|
|
144636
|
-
[Vn.Days, Number.MAX_VALUE]
|
|
144637
|
-
]);
|
|
144638
|
-
function jnt(t, e, n) {
|
|
144639
|
-
const r = n.durationUnit && wnt(n.durationUnit) ? n.durationUnit : Vn.Seconds, i = t.tagParse().tag, s = i.text("number"), o = i.has("duration", "terse");
|
|
144640
|
-
let u = e, a = 0, l = [], c = !1;
|
|
144641
|
-
for (const [f, x] of Mnt)
|
|
144642
|
-
if (f === r && (c = !0), !!c && (a = u % x, u = Math.floor(u /= x), a > 0 && (l = [
|
|
144643
|
-
zz(a, f, { numFormat: s, terse: o }),
|
|
144644
|
-
...l
|
|
144645
|
-
]), u === 0))
|
|
144646
|
-
break;
|
|
144647
|
-
return l.length > 0 ? l.slice(0, 2).join(" ") : zz(0, r, { numFormat: s, terse: o });
|
|
144648
|
-
}
|
|
144649
|
-
class Unt extends B0 {
|
|
144650
|
-
constructor(e, n) {
|
|
144651
|
-
super(e), this.options = n;
|
|
144652
|
-
}
|
|
144653
|
-
getText(e) {
|
|
144654
|
-
if (e.isNull())
|
|
144655
|
-
return null;
|
|
144656
|
-
if (!e.isNumber())
|
|
144657
|
-
throw new Error(
|
|
144658
|
-
`Cannot format field ${e.field.name} as a duration unit since its not a number`
|
|
144659
|
-
);
|
|
144660
|
-
return jnt(e.field, e.number.value, {
|
|
144661
|
-
durationUnit: this.options.duration_unit
|
|
144662
|
-
});
|
|
144663
|
-
}
|
|
144664
|
-
}
|
|
144665
|
-
const w4 = class w4 extends on {
|
|
144666
|
-
constructor() {
|
|
144667
|
-
super(), this.addExtractor((e, n) => {
|
|
144668
|
-
e.duration_unit = (n == null ? void 0 : n.text()) ?? Vn.Seconds;
|
|
144669
|
-
}, this.rendererName);
|
|
144670
|
-
}
|
|
144671
|
-
create(e, n, r, i, s) {
|
|
144672
|
-
return new Unt(e, s);
|
|
144673
|
-
}
|
|
144674
|
-
get rendererName() {
|
|
144675
|
-
return "duration";
|
|
144676
|
-
}
|
|
144677
|
-
};
|
|
144678
144678
|
w4.instance = new w4();
|
|
144679
144679
|
let f8 = w4;
|
|
144680
144680
|
const F4 = class F4 {
|
|
@@ -144707,25 +144707,25 @@ F4.renderFactories = [
|
|
|
144707
144707
|
G7.instance,
|
|
144708
144708
|
W7.instance,
|
|
144709
144709
|
wO.instance,
|
|
144710
|
-
Y7.instance,
|
|
144711
|
-
e8.instance,
|
|
144712
|
-
X7.instance,
|
|
144713
|
-
Z7.instance,
|
|
144714
|
-
// This factory needs to be after the other Spark Line factories, so it doesn't override them.
|
|
144715
144710
|
J7.instance,
|
|
144716
144711
|
t8.instance,
|
|
144712
|
+
Z7.instance,
|
|
144713
|
+
e8.instance,
|
|
144714
|
+
// This factory needs to be after the other Spark Line factories, so it doesn't override them.
|
|
144717
144715
|
K7.instance,
|
|
144718
|
-
V7.instance,
|
|
144719
144716
|
n8.instance,
|
|
144717
|
+
X7.instance,
|
|
144718
|
+
Y7.instance,
|
|
144720
144719
|
r8.instance,
|
|
144721
144720
|
i8.instance,
|
|
144722
|
-
c8.instance,
|
|
144723
144721
|
s8.instance,
|
|
144724
|
-
u8.instance,
|
|
144725
144722
|
f8.instance,
|
|
144726
144723
|
o8.instance,
|
|
144727
|
-
LO.instance,
|
|
144728
144724
|
a8.instance,
|
|
144725
|
+
V7.instance,
|
|
144726
|
+
u8.instance,
|
|
144727
|
+
LO.instance,
|
|
144728
|
+
l8.instance,
|
|
144729
144729
|
FO.instance
|
|
144730
144730
|
];
|
|
144731
144731
|
let x8 = F4;
|
|
@@ -144894,5 +144894,5 @@ export {
|
|
|
144894
144894
|
sit as HTMLView,
|
|
144895
144895
|
oit as JSONView,
|
|
144896
144896
|
IK as getDrillQuery,
|
|
144897
|
-
|
|
144897
|
+
Tnt as isDurationUnit
|
|
144898
144898
|
};
|