@astrato-io/visualizations 0.10.0 → 0.10.1
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/CHANGELOG.md +10 -0
- package/README.md +3 -3
- package/VISUALIZATION_DEFINITIONS.md +65 -12
- package/chunks/{Button-CCF851ea.js → Button-Dn3rJrYf.js} +2 -2
- package/chunks/{CircularProgress-yupH6YWs.js → CircularProgress-BFeu06Yb.js} +4 -4
- package/chunks/{FieldTypeIcon-D_MzsdfY.js → FieldTypeIcon-DrMoGpHJ.js} +2 -2
- package/chunks/{LinearProgress-CyFjN4px.js → LinearProgress-ClO6GUjN.js} +2 -2
- package/chunks/{MenuOption-CQpT79AP.js → MenuOption-Czc34u4q.js} +7 -7
- package/chunks/{Title-C-p4ZarD.js → Title-BgYnaVTR.js} +3 -3
- package/chunks/{_createAggregator-BF4qG9XK.js → _createAggregator-BMu9uRax.js} +8 -8
- package/chunks/{app-filter-bar.compiler-8fxCo2q7.js → app-filter-bar.compiler-CVir0wkl.js} +3 -3
- package/chunks/{bar-layout-DStC-GNV.js → bar-layout-C_UgRlVl.js} +2 -2
- package/chunks/{bar.compiler-CQAu8KL8.js → bar.compiler-DYuFdi9J.js} +8 -8
- package/chunks/{builder-CScg1TOS.js → builder-C-TKA-My.js} +11 -11
- package/chunks/{coloring-9jU3s_-p.js → coloring-BtnPiQ_o.js} +16 -16
- package/chunks/{createSimplePaletteValueFilter-C4hZpCdn.js → createSimplePaletteValueFilter--zrZxRV9.js} +1 -1
- package/chunks/defaults-Dtk7fg3C.js +3 -0
- package/chunks/{definitions-C4grxhye.js → definitions-CT304NDn.js} +77 -51
- package/chunks/{escobar-CjirINHP.js → escobar-CvEV2ES1.js} +6126 -6059
- package/chunks/{extend-preset-D-l9u_we.js → extend-preset-D9-JP92b.js} +396 -396
- package/chunks/{filter.compiler-lji2Acgn.js → filter.compiler-CXeZznks.js} +7 -7
- package/chunks/{filtering-C1zakrrX.js → filtering-8_bFv-jb.js} +84 -84
- package/chunks/{handlers-ZviIUC-j.js → handlers-C6CZ0XJA.js} +5620 -5608
- package/chunks/{icon-picker-styles-Bj80ZUBK.js → icon-picker-styles-BXiJ1SZS.js} +2 -2
- package/chunks/{isEqual-Ch9OEye3.js → isEqual-D8Ay63xR.js} +1 -1
- package/chunks/{isFocusVisible-CgMP0qkR.js → isFocusVisible-Bu8gGZu5.js} +1 -1
- package/chunks/{line.compiler-De5fiKuR.js → line.compiler-DmHpmQCC.js} +4 -4
- package/chunks/{logger-CKRjhSHQ.js → logger-DdZpR7xZ.js} +65 -65
- package/chunks/{map.compiler-CKzorLgK.js → map.compiler-Q_Y1Pvat.js} +12 -14
- package/chunks/{metadata-Bb9pTXrq.js → metadata-BQm_TXI1.js} +1 -1
- package/chunks/{number.compiler-CaTmJkmi.js → number.compiler-DQdg6zTy.js} +4 -4
- package/chunks/{operations-DZoY50VX.js → operations-DKQWuLL7.js} +9469 -9451
- package/chunks/{range-D1BTmFMp.js → range-BdhzvYQ_.js} +2 -2
- package/chunks/{react-dom-Dgv2azN2.js → react-dom-BGP4tbXV.js} +1 -1
- package/chunks/{render-wrappers-_P3xwu5A.js → render-wrappers-BZpyDnJy.js} +1 -1
- package/chunks/{requirements-NHNrR8Ie.js → requirements-e8Fe96ag.js} +29 -29
- package/chunks/{shared-UitWpq1J.js → shared-C_2F90xq.js} +478 -472
- package/chunks/{standalone-wgFAVnnm.js → standalone-4MsKiqs0.js} +130 -130
- package/chunks/standalone-B794g9pE.js +1012 -0
- package/chunks/{standalone-BBu90BhK.js → standalone-B8ZSqauS.js} +59 -59
- package/chunks/standalone-BA2YXyJS.js +422 -0
- package/chunks/{standalone-DtBk_iUz.js → standalone-BDrXVxlP.js} +4 -4
- package/chunks/{standalone-U0WJwFlG.js → standalone-BE_ONgiG.js} +64 -64
- package/chunks/{standalone-BOzHA_d4.js → standalone-BTY3w_JA.js} +24 -24
- package/chunks/{standalone-BEekPuA12.js → standalone-BgumbdaJ2.js} +101 -101
- package/chunks/{standalone-Bnnr87pc.js → standalone-BkbiH-o8.js} +174 -174
- package/chunks/{standalone-xGV0dqPV.js → standalone-Blh4qejk.js} +197 -197
- package/chunks/{standalone-DxBAyqAu.js → standalone-CXY4FpF7.js} +278 -277
- package/chunks/{standalone-CVknVdUC.js → standalone-CY_kjarf.js} +18 -18
- package/chunks/{standalone-BapqaniK.js → standalone-CaTxAydz.js} +54 -54
- package/chunks/{standalone-CRdDZYeM.js → standalone-Cc98Pdr6.js} +829 -829
- package/chunks/standalone-Cl0TSfqC.js +396 -0
- package/chunks/{standalone-B0U6c3su.js → standalone-CsoMmE9T.js} +80 -80
- package/chunks/standalone-DH0xTEes.js +2 -0
- package/chunks/{standalone-ByKKqT5L.js → standalone-DHRalbVO.js} +268 -268
- package/chunks/{standalone-CbPk8bKn.js → standalone-DNh9NcMa.js} +109 -109
- package/chunks/standalone-DcnHjNnC.js +2 -0
- package/chunks/{standalone-Ck63MZzj.js → standalone-DflyWtuR.js} +107 -107
- package/chunks/standalone-DrHdGkY7.js +762 -0
- package/chunks/standalone-c_rROMtx.js +287 -0
- package/chunks/{standalone-DibjA73M.js → standalone-drcFLeN6.js} +2 -2
- package/chunks/{standalone-swGs70tD.js → standalone-wOWRCpdn.js} +26 -26
- package/chunks/{standalone-DCFY1MAV.js → standalone-z0o52o5t.js} +4191 -4191
- package/chunks/{table.compiler-OWSx5MOq.js → table.compiler-COaHE9VD.js} +18 -18
- package/chunks/{useFieldName-B8iCYyw1.js → useFieldName-CdnCWzhd.js} +1 -1
- package/chunks/{utils-3Igg6xmO.js → utils-DganVptf.js} +491 -483
- package/chunks/{view-DdMLZySj.js → view-Bzlros43.js} +158 -158
- package/chunks/{visualization-filters-CzvFHE6M.js → visualization-filters-D7i6oh1Z.js} +23 -12
- package/chunks/{with-html-element-DOfkR3C1.js → with-html-element-CiIhFEa5.js} +2497 -2497
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +1 -1
- package/docs/operations/combo.md +1 -1
- package/docs/operations/date-picker.md +1 -1
- package/docs/operations/distribution-gauge.md +1 -1
- package/docs/operations/dot.md +1 -1
- package/docs/operations/filter.md +1 -1
- package/docs/operations/gauge.md +1 -1
- package/docs/operations/heatMap.md +1 -1
- package/docs/operations/histogram.md +1 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +2 -2
- package/docs/operations/line.md +19 -1
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +1 -1
- package/docs/operations/radar.md +1 -1
- package/docs/operations/sankey.md +1 -1
- package/docs/operations/scatter.md +1 -1
- package/docs/operations/shape.md +1 -1
- package/docs/operations/simpleTextObject.md +1 -1
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +1 -1
- package/docs/operations/tree.md +1 -1
- package/docs/operations/treemap.md +1 -1
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +1 -1
- package/getters.js +2 -2
- package/index.js +54 -54
- package/metadata.js +2 -2
- package/operations.js +5 -5
- package/package.json +67 -67
- package/src/definitions/index.d.ts +7 -1
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +31 -5
- package/src/definitions/model/definitions/types/compilation.types.d.ts +4 -1
- package/src/types.d.ts +28 -28
- package/chunks/defaults-cyNhn37t.js +0 -3
- package/chunks/standalone-BR2JuRIC.js +0 -422
- package/chunks/standalone-BwJqDj2Z.js +0 -396
- package/chunks/standalone-CRfDOO1x.js +0 -287
- package/chunks/standalone-DZDGX3aa.js +0 -518
- package/chunks/standalone-DhfgeJIk.js +0 -1012
- package/chunks/standalone-KMQPsNsq.js +0 -2
- package/chunks/standalone-MBLSvsrY.js +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as s, A as c, B as l, C as u, E as d, F as f, G as ee, H as p, I as m, J as te, K as ne, L as re, N as ie, O as ae, P as oe, Q as se, R as ce, S as le, T as h, U as ue, V as de, W as fe, X as pe, Y as me, Z as he, _ as ge, a as _e, at as ve, c as ye, ct as be, d as g, et as xe, f as Se, g as _, h as v, i as Ce, it as we, j as y, k as Te, n as Ee, nt as De, o as Oe, ot as ke, q as Ae, r as je, rt as Me, s as Ne, st as Pe, t as b, tt as Fe, u as x, v as S, w as Ie, x as Le, y as C, z as Re } from "./shared-
|
|
3
|
-
import {
|
|
1
|
+
import { Cc as e, Tc as t, Za as n, r, ul as i, yc as a, za as o } from "./visualization-filters-D7i6oh1Z.js";
|
|
2
|
+
import { $ as s, A as c, B as l, C as u, E as d, F as f, G as ee, H as p, I as m, J as te, K as ne, L as re, N as ie, O as ae, P as oe, Q as se, R as ce, S as le, T as h, U as ue, V as de, W as fe, X as pe, Y as me, Z as he, _ as ge, a as _e, at as ve, c as ye, ct as be, d as g, et as xe, f as Se, g as _, h as v, i as Ce, it as we, j as y, k as Te, n as Ee, nt as De, o as Oe, ot as ke, q as Ae, r as je, rt as Me, s as Ne, st as Pe, t as b, tt as Fe, u as x, v as S, w as Ie, x as Le, y as C, z as Re } from "./shared-C_2F90xq.js";
|
|
3
|
+
import { Dm as ze, Fp as Be, Hp as Ve, Im as He, Lp as Ue, Mm as We, Nm as Ge, Pm as Ke, Sm as qe, Tm as Je, Zm as Ye, _m as Xe, gm as Ze, hm as Qe, jp as w, o_ as $e, om as et, pm as tt, sm as nt, um as rt, wm as it, zm as at, zp as ot } from "./handlers-C6CZ0XJA.js";
|
|
4
4
|
import { n as st } from "./label-format-type-C46pzgx7.js";
|
|
5
|
-
import { C as ct, S as T, _ as lt, b as ut, f as dt, v as ft, x as pt } from "./operations-
|
|
6
|
-
import { n as mt } from "./bar-layout-
|
|
5
|
+
import { C as ct, S as T, _ as lt, b as ut, f as dt, v as ft, x as pt } from "./operations-DKQWuLL7.js";
|
|
6
|
+
import { n as mt } from "./bar-layout-C_UgRlVl.js";
|
|
7
7
|
import { z as E } from "zod";
|
|
8
8
|
var D = (e) => [{
|
|
9
9
|
ref: `${e}Latitude`,
|
|
@@ -33,7 +33,7 @@ var D = (e) => [{
|
|
|
33
33
|
constraints: [
|
|
34
34
|
"There is no fixed layer-count limit. Layers are ordered topmost first. Include a background map explicitly; the default basemap is replaced by the declared layers.",
|
|
35
35
|
"Layer and data-item references share one namespace and must all be unique across the definition. Display names may repeat.",
|
|
36
|
-
"resolvedRefs contains
|
|
36
|
+
"resolvedRefs contains the data-item references. resolvedLayerRefs contains the layer references; pass the id of a layer entry as the layer selector in map operations.",
|
|
37
37
|
"Raw measure fields require an available aggregation. Semantic measures and calculations supply their own aggregation.",
|
|
38
38
|
"Assign each measure role at most once per layer. Set sizing.sizeType to byMeasurePixels/byMeasureDistance to use a size measure, or value.type to byMeasure to use heat intensity.",
|
|
39
39
|
"Definitions cover initial data bindings, static filters, view and basic presentation. Additional styling and interactions use the existing map operations.",
|
|
@@ -357,7 +357,7 @@ var D = (e) => [{
|
|
|
357
357
|
"Several measures on one dimension are drawn side by side unless presentation.layout is stacked. A second dimension is a series, stacked unless presentation.layout is groups. One dimension with one measure ignores layout.",
|
|
358
358
|
"Data label placements are tried in order; inside labels sit at the end of the bar. Set dataLabels.textColor to fix the label color in every placement."
|
|
359
359
|
],
|
|
360
|
-
dataRequirements: ["At least one
|
|
360
|
+
dataRequirements: ["At least one measure.", "For a measure-only bar, send `dimensions: []` (the key is still required) with at least one measure. Several measures then stack into one bar unless presentation.layout is groups; a layout already set on the base vSpec is kept when presentation.layout is omitted."],
|
|
361
361
|
summary: "Categorical comparison chart with sorting, limiting, per-measure axes, labels, layout, and orientation controls.",
|
|
362
362
|
title: "Bar chart"
|
|
363
363
|
},
|
|
@@ -1130,14 +1130,39 @@ var D = (e) => [{
|
|
|
1130
1130
|
{
|
|
1131
1131
|
documentation: {
|
|
1132
1132
|
constraints: [
|
|
1133
|
-
"
|
|
1133
|
+
"Without a dimension, measure order defines the waterfall sequence. With one dimension, the first measure supplies the opening total, each dimension value contributes the second measure minus the first, and the second measure supplies the closing total.",
|
|
1134
|
+
"Comparison totals sum the returned rows, rather than requesting a separate aggregate total. Use two numeric measures with comparable units.",
|
|
1134
1135
|
wt,
|
|
1135
1136
|
I
|
|
1136
1137
|
],
|
|
1137
|
-
dataRequirements: ["
|
|
1138
|
-
summary: "Sequential contribution chart
|
|
1138
|
+
dataRequirements: ["No dimensions and between one and one hundred measures, or exactly one dimension and exactly two measures."],
|
|
1139
|
+
summary: "Sequential contribution chart, or a comparison of two measures across one dimension.",
|
|
1139
1140
|
title: "Waterfall chart"
|
|
1140
1141
|
},
|
|
1142
|
+
additionalExamples: [{
|
|
1143
|
+
definition: {
|
|
1144
|
+
data: {
|
|
1145
|
+
dimensions: [A("manufacturer", k.manufacturer)],
|
|
1146
|
+
measures: [M("totalSales"), M("averageSales", k.sales, "AVG")]
|
|
1147
|
+
},
|
|
1148
|
+
presentation: {
|
|
1149
|
+
axes: {
|
|
1150
|
+
dimension: {
|
|
1151
|
+
title: "Manufacturer",
|
|
1152
|
+
titleVisible: !0
|
|
1153
|
+
},
|
|
1154
|
+
primaryMeasure: {
|
|
1155
|
+
title: "Sales in thousands",
|
|
1156
|
+
titleVisible: !0
|
|
1157
|
+
}
|
|
1158
|
+
},
|
|
1159
|
+
dataLabels: { visible: !0 }
|
|
1160
|
+
},
|
|
1161
|
+
type: "waterfall",
|
|
1162
|
+
version: 1
|
|
1163
|
+
},
|
|
1164
|
+
title: "Compare total and average sales by manufacturer"
|
|
1165
|
+
}],
|
|
1141
1166
|
example: {
|
|
1142
1167
|
data: { measures: [{
|
|
1143
1168
|
...M("sales"),
|
|
@@ -1160,6 +1185,7 @@ var D = (e) => [{
|
|
|
1160
1185
|
"axis-bands",
|
|
1161
1186
|
"axis-range",
|
|
1162
1187
|
"data-labels",
|
|
1188
|
+
"dimensions",
|
|
1163
1189
|
"filters",
|
|
1164
1190
|
"measures",
|
|
1165
1191
|
"orientation",
|
|
@@ -1530,7 +1556,7 @@ var D = (e) => [{
|
|
|
1530
1556
|
issues: h(r.error, e),
|
|
1531
1557
|
success: !1
|
|
1532
1558
|
};
|
|
1533
|
-
}, jt = async (e) => (await import("./app-filter-bar.compiler-
|
|
1559
|
+
}, jt = async (e) => (await import("./app-filter-bar.compiler-CVir0wkl.js")).compileAppFilterBarVisualizationDefinition(e), Mt = async (e) => (await import("./bar.compiler-DYuFdi9J.js")).compileBarVisualizationDefinition(e), Nt = async (e) => (await import("./filter.compiler-CXeZznks.js")).compileFilterVisualizationDefinition(e), Pt = async (e) => (await import("./line.compiler-DmHpmQCC.js")).compileLineVisualizationDefinition(e), Ft = async (e) => (await import("./number.compiler-DQdg6zTy.js")).compileNumberVisualizationDefinition(e), It = async (e) => (await import("./map.compiler-Q_Y1Pvat.js")).compileMapVisualizationDefinition(e), Lt = async (e) => (await import("./table.compiler-COaHE9VD.js")).compileTableVisualizationDefinition(e), H = i(), Rt = [
|
|
1534
1560
|
H.FieldType.DATE,
|
|
1535
1561
|
H.FieldType.TIMESTAMP,
|
|
1536
1562
|
H.FieldType.TIMESTAMP_TZ
|
|
@@ -1539,17 +1565,17 @@ var D = (e) => [{
|
|
|
1539
1565
|
"rowDimensions",
|
|
1540
1566
|
"columnDimensions",
|
|
1541
1567
|
"columns"
|
|
1542
|
-
], Vt = (
|
|
1543
|
-
if (
|
|
1544
|
-
dataType:
|
|
1568
|
+
], Vt = (n) => {
|
|
1569
|
+
if (n?.kind === "field") return {
|
|
1570
|
+
dataType: n.dataType,
|
|
1545
1571
|
hasOwnFormat: !1,
|
|
1546
1572
|
label: "field"
|
|
1547
1573
|
};
|
|
1548
|
-
if (
|
|
1549
|
-
let [
|
|
1574
|
+
if (n?.kind !== "dimension") return;
|
|
1575
|
+
let [r] = ie([n]);
|
|
1550
1576
|
return {
|
|
1551
|
-
dataType:
|
|
1552
|
-
hasOwnFormat: !!
|
|
1577
|
+
dataType: t(r),
|
|
1578
|
+
hasOwnFormat: !!e(r),
|
|
1553
1579
|
label: "dimension"
|
|
1554
1580
|
};
|
|
1555
1581
|
}, Ht = (e) => {
|
|
@@ -1612,7 +1638,7 @@ var D = (e) => [{
|
|
|
1612
1638
|
type: "astrato-app-filter-bar",
|
|
1613
1639
|
version: 1
|
|
1614
1640
|
};
|
|
1615
|
-
|
|
1641
|
+
r();
|
|
1616
1642
|
var Jt = {
|
|
1617
1643
|
combo: {
|
|
1618
1644
|
coloringType: a.PerEachMeasure,
|
|
@@ -1620,100 +1646,100 @@ var Jt = {
|
|
|
1620
1646
|
schema: ne,
|
|
1621
1647
|
sorting: !0,
|
|
1622
1648
|
type: "combo",
|
|
1623
|
-
vSpecSchema:
|
|
1649
|
+
vSpecSchema: at
|
|
1624
1650
|
},
|
|
1625
1651
|
"distribution-gauge": {
|
|
1626
1652
|
coloringType: a.PerEachMeasure,
|
|
1627
|
-
measureRole: () =>
|
|
1653
|
+
measureRole: () => o.GAUGE_VALUE,
|
|
1628
1654
|
schema: Ae,
|
|
1629
1655
|
type: "distribution-gauge",
|
|
1630
|
-
vSpecSchema:
|
|
1656
|
+
vSpecSchema: Ge
|
|
1631
1657
|
},
|
|
1632
1658
|
dot: {
|
|
1633
1659
|
coloringType: a.Categorical,
|
|
1634
1660
|
schema: te,
|
|
1635
1661
|
type: "dot",
|
|
1636
|
-
vSpecSchema:
|
|
1662
|
+
vSpecSchema: We
|
|
1637
1663
|
},
|
|
1638
1664
|
gauge: {
|
|
1639
1665
|
coloringType: (e) => (e.data.dimensions?.length ?? 0) > 0 ? a.Categorical : a.PerEachMeasure,
|
|
1640
|
-
measureRole: (
|
|
1666
|
+
measureRole: (e, t) => (t.data.dimensions?.length ?? 0) > 0 && e === 1 ? o.GAUGE_TARGET : o.GAUGE_VALUE,
|
|
1641
1667
|
schema: me,
|
|
1642
1668
|
type: "gauge",
|
|
1643
|
-
vSpecSchema:
|
|
1669
|
+
vSpecSchema: Ke
|
|
1644
1670
|
},
|
|
1645
1671
|
heatMap: {
|
|
1646
1672
|
coloringType: a.Gradient,
|
|
1647
1673
|
dimensionRole: (e) => e === 0 ? n.HEAT_MAP_HORIZONTAL : n.HEAT_MAP_VERTICAL,
|
|
1648
|
-
measureRole: (
|
|
1674
|
+
measureRole: (e) => e === 0 ? o.HEAT_MAP_COLOR : o.HEAT_MAP_SIZE,
|
|
1649
1675
|
queryLimit: !0,
|
|
1650
1676
|
schema: pe,
|
|
1651
1677
|
sorting: !0,
|
|
1652
1678
|
type: "heatMap",
|
|
1653
|
-
vSpecSchema:
|
|
1679
|
+
vSpecSchema: ze
|
|
1654
1680
|
},
|
|
1655
1681
|
histogram: {
|
|
1656
1682
|
coloringType: a.Single,
|
|
1657
1683
|
schema: he,
|
|
1658
1684
|
type: "histogram",
|
|
1659
|
-
vSpecSchema:
|
|
1685
|
+
vSpecSchema: Je
|
|
1660
1686
|
},
|
|
1661
1687
|
pie: {
|
|
1662
1688
|
coloringType: a.Categorical,
|
|
1663
|
-
measureRole: (
|
|
1689
|
+
measureRole: (e) => e === 0 ? o.PIE_CHART_SLICE : o.PIE_CHART_LENGTH,
|
|
1664
1690
|
queryLimit: !0,
|
|
1665
1691
|
schema: se,
|
|
1666
1692
|
sorting: !0,
|
|
1667
1693
|
type: "pie",
|
|
1668
|
-
vSpecSchema:
|
|
1694
|
+
vSpecSchema: Xe
|
|
1669
1695
|
},
|
|
1670
1696
|
radar: {
|
|
1671
1697
|
conditionalColoringFallbackType: a.Single,
|
|
1672
1698
|
schema: s,
|
|
1673
1699
|
type: "radar",
|
|
1674
|
-
vSpecSchema:
|
|
1700
|
+
vSpecSchema: Ze
|
|
1675
1701
|
},
|
|
1676
1702
|
sankey: {
|
|
1677
1703
|
schema: xe,
|
|
1678
1704
|
type: "sankey",
|
|
1679
|
-
vSpecSchema:
|
|
1705
|
+
vSpecSchema: Qe
|
|
1680
1706
|
},
|
|
1681
1707
|
scatter: {
|
|
1682
1708
|
coloringType: a.Categorical,
|
|
1683
1709
|
dimensionRole: (e) => e === 0 ? n.SCATTER_DIMENSION : n.SCATTER_IMAGE,
|
|
1684
|
-
measureRole: (
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
][
|
|
1710
|
+
measureRole: (e) => [
|
|
1711
|
+
o.SCATTER_HORIZONTAL,
|
|
1712
|
+
o.SCATTER_VERTICAL,
|
|
1713
|
+
o.SCATTER_SIZE
|
|
1714
|
+
][e],
|
|
1689
1715
|
queryLimit: !0,
|
|
1690
1716
|
schema: Fe,
|
|
1691
1717
|
sorting: !0,
|
|
1692
1718
|
type: "scatter",
|
|
1693
|
-
vSpecSchema:
|
|
1719
|
+
vSpecSchema: tt
|
|
1694
1720
|
},
|
|
1695
1721
|
tree: {
|
|
1696
1722
|
queryLimit: !0,
|
|
1697
1723
|
schema: De,
|
|
1698
1724
|
sorting: !0,
|
|
1699
1725
|
type: "tree",
|
|
1700
|
-
vSpecSchema:
|
|
1726
|
+
vSpecSchema: Ve
|
|
1701
1727
|
},
|
|
1702
1728
|
treemap: {
|
|
1703
1729
|
schema: Me,
|
|
1704
1730
|
type: "treemap",
|
|
1705
|
-
vSpecSchema:
|
|
1731
|
+
vSpecSchema: ot
|
|
1706
1732
|
},
|
|
1707
1733
|
waterfall: {
|
|
1708
1734
|
schema: we,
|
|
1709
1735
|
type: "waterfall",
|
|
1710
|
-
vSpecSchema:
|
|
1736
|
+
vSpecSchema: Ue
|
|
1711
1737
|
},
|
|
1712
1738
|
"word-cloud": {
|
|
1713
1739
|
conditionalColoringFallbackType: a.Single,
|
|
1714
1740
|
schema: ve,
|
|
1715
1741
|
type: "word-cloud",
|
|
1716
|
-
vSpecSchema:
|
|
1742
|
+
vSpecSchema: Be
|
|
1717
1743
|
}
|
|
1718
1744
|
}, Yt = (e, t) => {
|
|
1719
1745
|
let n = [], r = t.presentation, i = ge(r?.axes);
|
|
@@ -2090,7 +2116,7 @@ var Jt = {
|
|
|
2090
2116
|
}],
|
|
2091
2117
|
schema: re,
|
|
2092
2118
|
type: "iframe",
|
|
2093
|
-
vSpecSchema:
|
|
2119
|
+
vSpecSchema: it
|
|
2094
2120
|
},
|
|
2095
2121
|
image: {
|
|
2096
2122
|
createRequests: (e) => X(e, {
|
|
@@ -2103,7 +2129,7 @@ var Jt = {
|
|
|
2103
2129
|
}),
|
|
2104
2130
|
schema: ce,
|
|
2105
2131
|
type: "image",
|
|
2106
|
-
vSpecSchema:
|
|
2132
|
+
vSpecSchema: qe
|
|
2107
2133
|
},
|
|
2108
2134
|
shape: {
|
|
2109
2135
|
createRequests: (e) => X(e, {
|
|
@@ -2123,7 +2149,7 @@ var Jt = {
|
|
|
2123
2149
|
}),
|
|
2124
2150
|
schema: Re,
|
|
2125
2151
|
type: "shape",
|
|
2126
|
-
vSpecSchema:
|
|
2152
|
+
vSpecSchema: rt
|
|
2127
2153
|
},
|
|
2128
2154
|
simpleTextObject: {
|
|
2129
2155
|
createRequests: (e) => [...e.content === void 0 ? [] : [{
|
|
@@ -2144,7 +2170,7 @@ var Jt = {
|
|
|
2144
2170
|
})],
|
|
2145
2171
|
schema: de,
|
|
2146
2172
|
type: "simpleTextObject",
|
|
2147
|
-
vSpecSchema:
|
|
2173
|
+
vSpecSchema: nt
|
|
2148
2174
|
}
|
|
2149
2175
|
}, Z = async (e, t) => {
|
|
2150
2176
|
let n = an[t], r = w(e);
|
|
@@ -2186,7 +2212,7 @@ var Jt = {
|
|
|
2186
2212
|
issues: h(n.error, e.definition),
|
|
2187
2213
|
success: !1
|
|
2188
2214
|
};
|
|
2189
|
-
let r =
|
|
2215
|
+
let r = He.safeParse(e.baseVSpec);
|
|
2190
2216
|
if (!r.success) return {
|
|
2191
2217
|
issues: [g("invalid_structure", ["baseVSpec"], "Base date-picker vSpec is invalid.", { details: { issues: r.error.issues } })],
|
|
2192
2218
|
success: !1
|
|
@@ -2226,7 +2252,7 @@ var Jt = {
|
|
|
2226
2252
|
}), ["settings"]), "issue" in s ? {
|
|
2227
2253
|
issues: [s.issue],
|
|
2228
2254
|
success: !1
|
|
2229
|
-
} : _(s.state,
|
|
2255
|
+
} : _(s.state, He);
|
|
2230
2256
|
}, sn = async (e) => {
|
|
2231
2257
|
let t = w(e);
|
|
2232
2258
|
if (t) return {
|
|
@@ -2242,7 +2268,7 @@ var Jt = {
|
|
|
2242
2268
|
issues: h(n.error, e.definition),
|
|
2243
2269
|
success: !1
|
|
2244
2270
|
};
|
|
2245
|
-
let r =
|
|
2271
|
+
let r = et.safeParse(e.baseVSpec);
|
|
2246
2272
|
if (!r.success) return {
|
|
2247
2273
|
issues: [g("invalid_structure", ["baseVSpec"], "Base slider vSpec is invalid.", { details: { issues: r.error.issues } })],
|
|
2248
2274
|
success: !1
|
|
@@ -2282,7 +2308,7 @@ var Jt = {
|
|
|
2282
2308
|
})], ["settings"]), "issue" in s ? {
|
|
2283
2309
|
issues: [s.issue],
|
|
2284
2310
|
success: !1
|
|
2285
|
-
} : _(s.state,
|
|
2311
|
+
} : _(s.state, et);
|
|
2286
2312
|
}, Q = (e) => {
|
|
2287
2313
|
let t = z(e.type);
|
|
2288
2314
|
return {
|
|
@@ -2394,7 +2420,7 @@ var Jt = {
|
|
|
2394
2420
|
issues: s,
|
|
2395
2421
|
success: !1
|
|
2396
2422
|
};
|
|
2397
|
-
let c = ie(a.data), l = E.array(
|
|
2423
|
+
let c = ie(a.data), l = E.array($e).safeParse(c);
|
|
2398
2424
|
if (!l.success) return {
|
|
2399
2425
|
issues: h(l.error, c, ["availableFields"]),
|
|
2400
2426
|
success: !1
|