@astrato-io/visualizations 0.10.1 → 0.11.0

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.
Files changed (133) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +19 -1
  3. package/THIRD_PARTY_NOTICES.md +494 -0
  4. package/VISUALIZATION_DEFINITIONS.md +6 -145
  5. package/chunks/{Button-Dn3rJrYf.js → Button-CPG4WX8X.js} +3 -3
  6. package/chunks/{CircularProgress-BFeu06Yb.js → CircularProgress-PSLW8HmD.js} +12 -12
  7. package/chunks/FieldTypeIcon-5k2bkqd0.js +22 -0
  8. package/chunks/{LinearProgress-ClO6GUjN.js → LinearProgress-KQ2EQlGL.js} +16 -16
  9. package/chunks/{MenuOption-Czc34u4q.js → MenuOption-B-6K7kks.js} +151 -151
  10. package/chunks/{Title-BgYnaVTR.js → Title-BmvwZYkh.js} +32 -32
  11. package/chunks/{_createAggregator-BMu9uRax.js → _createAggregator-CFmH6gUN.js} +16 -16
  12. package/chunks/{app-filter-bar.compiler-CVir0wkl.js → app-filter-bar.compiler-BY5-T16I.js} +8 -8
  13. package/chunks/{bar-layout-C_UgRlVl.js → bar-layout-BNou0dZF.js} +2 -2
  14. package/chunks/{bar.compiler-DYuFdi9J.js → bar.compiler-BkhO7sDd.js} +58 -56
  15. package/chunks/{builder-C-TKA-My.js → builder-CNjuqD2z.js} +107 -56
  16. package/chunks/category-axis-D1OVyMrr.js +20 -0
  17. package/chunks/{coloring-BtnPiQ_o.js → coloring-BOiP0rmn.js} +51 -51
  18. package/chunks/{createSimplePaletteValueFilter--zrZxRV9.js → createSimplePaletteValueFilter-BkgQ7MFE.js} +166 -166
  19. package/chunks/defaults-B5_8S-J-.js +3 -0
  20. package/chunks/{definitions-CT304NDn.js → definitions-AS9GcavE.js} +228 -233
  21. package/chunks/{escobar-CvEV2ES1.js → escobar-cQ1eQ64G.js} +4183 -4183
  22. package/chunks/{extend-preset-D9-JP92b.js → extend-preset-BlCbcXKR.js} +427 -427
  23. package/chunks/{filter.compiler-CXeZznks.js → filter.compiler-CI7dDNM1.js} +10 -10
  24. package/chunks/{filtering-8_bFv-jb.js → filtering-Dwi7hDPZ.js} +308 -308
  25. package/chunks/{handlers-C6CZ0XJA.js → handlers-C63NVo7i.js} +4593 -4559
  26. package/chunks/{icon-picker-styles-BXiJ1SZS.js → icon-picker-styles-CBlxEu3s.js} +8 -8
  27. package/chunks/{isEqual-D8Ay63xR.js → isEqual-BdHo6wqq.js} +1 -1
  28. package/chunks/{isFocusVisible-Bu8gGZu5.js → isFocusVisible-C1nlVUwL.js} +9 -9
  29. package/chunks/line.compiler-DCv3h42f.js +198 -0
  30. package/chunks/linear-Bq_r9l5S.js +264 -0
  31. package/chunks/{logger-DdZpR7xZ.js → logger-Bc-DqDM_.js} +64 -64
  32. package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
  33. package/chunks/{map.compiler-Q_Y1Pvat.js → map.compiler-CRO6XpdI.js} +43 -43
  34. package/chunks/measure-format-default-B6ghxih7.js +22 -0
  35. package/chunks/{metadata-BQm_TXI1.js → metadata-CtkvZEhS.js} +1 -1
  36. package/chunks/number.compiler-kV4lobCZ.js +57 -0
  37. package/chunks/{operations-DKQWuLL7.js → operations-COl9wgqi.js} +8524 -8480
  38. package/chunks/{range-BdhzvYQ_.js → range-CMJ5yc5Z.js} +2 -2
  39. package/chunks/{react-dom-BGP4tbXV.js → react-dom-BjsCbYHq.js} +76 -76
  40. package/chunks/{render-wrappers-BZpyDnJy.js → render-wrappers-DFHi3Wkr.js} +1 -1
  41. package/chunks/{requirements-e8Fe96ag.js → requirements-C5YLmHKe.js} +250 -226
  42. package/chunks/{shared-C_2F90xq.js → shared-DyqxOie0.js} +504 -498
  43. package/chunks/standalone-06i1wmIX.js +6 -0
  44. package/chunks/{standalone-BDrXVxlP.js → standalone-9jrQ3zJT.js} +10 -10
  45. package/chunks/standalone-B6zUvxNQ.js +357 -0
  46. package/chunks/{standalone-BkbiH-o8.js → standalone-BYK2U0Vd.js} +418 -679
  47. package/chunks/standalone-Be5APcVv.js +762 -0
  48. package/chunks/{standalone-Cl0TSfqC.js → standalone-Bp4G3MDx.js} +123 -123
  49. package/chunks/{standalone-DNh9NcMa.js → standalone-BrjtMIdd.js} +145 -145
  50. package/chunks/{standalone-BTY3w_JA.js → standalone-Bsfz5vnJ.js} +53 -53
  51. package/chunks/standalone-BuXpKMnc.js +2 -0
  52. package/chunks/standalone-CIjNYyya.js +8378 -0
  53. package/chunks/{standalone-CsoMmE9T.js → standalone-CS5VGoja.js} +347 -347
  54. package/chunks/standalone-CUGt2FUF.js +2 -0
  55. package/chunks/{standalone-CaTxAydz.js → standalone-ChfEHb28.js} +2296 -1069
  56. package/chunks/standalone-CnF2OYLQ.js +355 -0
  57. package/chunks/standalone-CznEEiq3.js +422 -0
  58. package/chunks/{standalone-DflyWtuR.js → standalone-D9k5SCd8.js} +169 -169
  59. package/chunks/{standalone-Cc98Pdr6.js → standalone-DYVYccmY.js} +829 -829
  60. package/chunks/{standalone-CY_kjarf.js → standalone-DaNxWIKn.js} +22 -22
  61. package/chunks/{standalone-wOWRCpdn.js → standalone-Db_HNuWx.js} +48 -48
  62. package/chunks/standalone-DcuE8KBa.js +287 -0
  63. package/chunks/{standalone-BE_ONgiG.js → standalone-I5kRIsp8.js} +76 -76
  64. package/chunks/{standalone-B8ZSqauS.js → standalone-K2OvRAQM.js} +113 -113
  65. package/chunks/{standalone-z0o52o5t.js → standalone-c4CPN6ug.js} +1719 -1718
  66. package/chunks/{standalone-DHRalbVO.js → standalone-iOnJhCvA.js} +312 -312
  67. package/chunks/{standalone-CXY4FpF7.js → standalone-pCrzBiTy.js} +222 -222
  68. package/chunks/standalone-qrZaimgC.js +689 -0
  69. package/chunks/standalone-yqDJ8h3K.js +1012 -0
  70. package/chunks/{table.compiler-COaHE9VD.js → table.compiler-CMH_dtYs.js} +35 -35
  71. package/chunks/{useFieldName-CdnCWzhd.js → useFieldName-BfxBzhhH.js} +1 -1
  72. package/chunks/{utils-DganVptf.js → utils-BdJrEeIQ.js} +3924 -3910
  73. package/chunks/{view-Bzlros43.js → view-Q-_XIrWE.js} +1680 -1680
  74. package/chunks/{visualization-filters-D7i6oh1Z.js → visualization-filters-BwS0xUqs.js} +1705 -1686
  75. package/chunks/{with-html-element-CiIhFEa5.js → with-html-element-D_ooGNWI.js} +3962 -3950
  76. package/definitions.js +2 -2
  77. package/docs/operations/astrato-app-filter-bar.md +1 -1
  78. package/docs/operations/bar.md +30 -1
  79. package/docs/operations/combo.md +30 -1
  80. package/docs/operations/date-picker.md +1 -1
  81. package/docs/operations/distribution-gauge.md +1 -1
  82. package/docs/operations/dot.md +1 -1
  83. package/docs/operations/filter.md +1 -1
  84. package/docs/operations/gauge.md +1 -1
  85. package/docs/operations/heatMap.md +1 -1
  86. package/docs/operations/histogram.md +1 -1
  87. package/docs/operations/iframe.md +1 -1
  88. package/docs/operations/image.md +1 -1
  89. package/docs/operations/index.md +5 -4
  90. package/docs/operations/line.md +30 -1
  91. package/docs/operations/map.md +5274 -0
  92. package/docs/operations/number.md +1 -1
  93. package/docs/operations/pie.md +1 -1
  94. package/docs/operations/radar.md +1 -1
  95. package/docs/operations/sankey.md +1 -1
  96. package/docs/operations/scatter.md +1 -1
  97. package/docs/operations/shape.md +1 -1
  98. package/docs/operations/simpleTextObject.md +1 -1
  99. package/docs/operations/slider.md +1 -1
  100. package/docs/operations/table.md +1 -1
  101. package/docs/operations/tree.md +1 -1
  102. package/docs/operations/treemap.md +1 -1
  103. package/docs/operations/waterfall.md +1 -1
  104. package/docs/operations/word-cloud.md +1 -1
  105. package/getters.js +3 -3
  106. package/index.js +524 -500
  107. package/metadata.js +2 -2
  108. package/operations.js +6 -6
  109. package/package.json +73 -68
  110. package/src/definitions/index.d.ts +1 -7
  111. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +3 -48
  112. package/src/definitions/model/definitions/schema-registry.d.ts +2 -2
  113. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +1 -1
  114. package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
  115. package/src/definitions/model/definitions/schemas/common.schema.d.ts +14 -2
  116. package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
  117. package/src/definitions/model/definitions/schemas/line.schema.d.ts +1 -1
  118. package/src/visualization-catalog.d.ts +3 -0
  119. package/styles.css +1 -1
  120. package/chunks/FieldTypeIcon-DrMoGpHJ.js +0 -22
  121. package/chunks/defaults-Dtk7fg3C.js +0 -3
  122. package/chunks/line.compiler-DmHpmQCC.js +0 -198
  123. package/chunks/number.compiler-DQdg6zTy.js +0 -53
  124. package/chunks/standalone-4MsKiqs0.js +0 -355
  125. package/chunks/standalone-B794g9pE.js +0 -1012
  126. package/chunks/standalone-BA2YXyJS.js +0 -422
  127. package/chunks/standalone-BgumbdaJ2.js +0 -357
  128. package/chunks/standalone-Blh4qejk.js +0 -689
  129. package/chunks/standalone-DH0xTEes.js +0 -2
  130. package/chunks/standalone-DcnHjNnC.js +0 -2
  131. package/chunks/standalone-DrHdGkY7.js +0 -762
  132. package/chunks/standalone-c_rROMtx.js +0 -287
  133. package/chunks/standalone-drcFLeN6.js +0 -6
@@ -1,7 +1,7 @@
1
1
  import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Oa as t } from "./visualization-filters-D7i6oh1Z.js";
3
- import { W as n, ci as r, oi as i, si as a } from "./utils-DganVptf.js";
4
- var o = /* @__PURE__ */ e(r());
2
+ import { Na as t } from "./visualization-filters-BwS0xUqs.js";
3
+ import { G as n, ci as r, li as i, si as a } from "./utils-BdJrEeIQ.js";
4
+ var o = /* @__PURE__ */ e(i());
5
5
  o.forwardRef(function(e, t) {
6
6
  return o.createElement("img", {
7
7
  ...e,
@@ -2127,13 +2127,13 @@ n({ wrapper: {
2127
2127
  flexGrow: 1
2128
2128
  },
2129
2129
  scrollableIconList: {
2130
- ...i.propertiesPanel,
2130
+ ...a.propertiesPanel,
2131
2131
  paddingBottom: 24,
2132
2132
  maxHeight: 552
2133
2133
  },
2134
2134
  categorySection: { margin: "0 15px" },
2135
2135
  categoryLabel: {
2136
- ...a.normal13,
2136
+ ...r.normal13,
2137
2137
  textTransform: "capitalize",
2138
2138
  padding: "16px 0 8px"
2139
2139
  },
@@ -2187,12 +2187,12 @@ n({ wrapper: {
2187
2187
  textAlign: "center"
2188
2188
  },
2189
2189
  noIconsParagraph: {
2190
- ...a.normal13,
2190
+ ...r.normal13,
2191
2191
  color: t.grey1,
2192
2192
  wordWrap: "break-word"
2193
2193
  },
2194
2194
  noIconsQuery: {
2195
- ...a.normal13,
2195
+ ...r.normal13,
2196
2196
  color: t.mainDarkNavy
2197
2197
  },
2198
2198
  emptyIcon: {
@@ -2224,7 +2224,7 @@ var l = n({
2224
2224
  zIndex: 999,
2225
2225
  width: "max-content",
2226
2226
  padding: "8px",
2227
- ...a.normal12,
2227
+ ...r.normal12,
2228
2228
  color: t.grey1,
2229
2229
  borderRadius: 4,
2230
2230
  backgroundColor: t.white,
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Sr as t } from "./visualization-filters-D7i6oh1Z.js";
2
+ import { Dr as t } from "./visualization-filters-BwS0xUqs.js";
3
3
  var n = {
4
4
  SaveLocalVSpec: "VSPEC/SAVE_LOCAL_VSPEC",
5
5
  UpdateVSpec: "VSPEC/UPDATE",
@@ -1,9 +1,9 @@
1
1
  import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
- import { ci as t, it as n, nt as r } from "./utils-DganVptf.js";
2
+ import { at as t, li as n, rt as r } from "./utils-BdJrEeIQ.js";
3
3
  function i(e) {
4
4
  return typeof e == "string";
5
5
  }
6
- var a = /* @__PURE__ */ e(t(), 1);
6
+ var a = /* @__PURE__ */ e(n(), 1);
7
7
  function o(...e) {
8
8
  let t = a.useRef(void 0), n = a.useCallback((t) => {
9
9
  let n = e.map((e) => {
@@ -76,30 +76,30 @@ function m(e) {
76
76
  return t;
77
77
  }
78
78
  function h(e) {
79
- let { getSlotProps: t, additionalProps: r, externalSlotProps: i, externalForwardedProps: a, className: o } = e;
80
- if (!t) {
81
- let e = n(r?.className, o, a?.className, i?.className), t = {
79
+ let { getSlotProps: n, additionalProps: r, externalSlotProps: i, externalForwardedProps: a, className: o } = e;
80
+ if (!n) {
81
+ let e = t(r?.className, o, a?.className, i?.className), n = {
82
82
  ...r,
83
83
  ...a,
84
84
  ...i
85
85
  };
86
- if (e.length > 0 && (t.className = e), r?.style || a?.style || i?.style) {
86
+ if (e.length > 0 && (n.className = e), r?.style || a?.style || i?.style) {
87
87
  let e = {
88
88
  ...r?.style,
89
89
  ...a?.style,
90
90
  ...i?.style
91
91
  };
92
- Object.keys(e).length > 0 && (t.style = e);
92
+ Object.keys(e).length > 0 && (n.style = e);
93
93
  }
94
94
  return {
95
- props: t,
95
+ props: n,
96
96
  internalRef: void 0
97
97
  };
98
98
  }
99
99
  let s = p({
100
100
  ...a,
101
101
  ...i
102
- }), c = m(i), l = m(a), u = t(s), d = n(u?.className, r?.className, o, a?.className, i?.className), f = {
102
+ }), c = m(i), l = m(a), u = n(s), d = t(u?.className, r?.className, o, a?.className, i?.className), f = {
103
103
  ...u,
104
104
  ...r,
105
105
  ...l,
@@ -0,0 +1,198 @@
1
+ import { r as e } from "./visualization-filters-BwS0xUqs.js";
2
+ import { A as t, C as n, D as r, G as i, S as a, T as o, _ as s, a as c, c as l, d as u, f as d, g as f, h as p, i as m, j as h, n as g, o as _, r as v, s as y, t as b, u as x, v as S, x as C, y as w } from "./shared-DyqxOie0.js";
3
+ import { Cm as T, Np as E } from "./handlers-C63NVo7i.js";
4
+ import { T as D, g as O, x as k, y as A } from "./operations-COl9wgqi.js";
5
+ import { t as j } from "./category-axis-D1OVyMrr.js";
6
+ import { t as M } from "./measure-format-default-B6ghxih7.js";
7
+ e();
8
+ var N = async (e) => {
9
+ let N = E(e);
10
+ if (N) return {
11
+ issues: [{
12
+ code: "invalid_structure",
13
+ message: N,
14
+ path: []
15
+ }],
16
+ success: !1
17
+ };
18
+ let P = i.safeParse(e.definition);
19
+ if (!P.success) return {
20
+ issues: o(P.error, e.definition),
21
+ success: !1
22
+ };
23
+ let F = T.safeParse(e.baseVSpec);
24
+ if (!F.success) return {
25
+ issues: [u("invalid_structure", ["baseVSpec"], "Base line vSpec is invalid.")],
26
+ success: !1
27
+ };
28
+ let I = F.data;
29
+ if (!S(I, [
30
+ "dimensions",
31
+ "measures",
32
+ "supportingMeasures",
33
+ "sortingMeasures"
34
+ ])) return {
35
+ issues: [u("non_fresh_base_vspec", ["baseVSpec"], "Line definitions require a fresh base vSpec.")],
36
+ success: !1
37
+ };
38
+ let L = P.data, R = [...L.data.dimensions, ...L.data.measures], z = [
39
+ ...t(L.data.dimensions, e.availableFields, ["data", "dimensions"], "dimension"),
40
+ ...t(L.data.measures, e.availableFields, ["data", "measures"], "measure"),
41
+ ...n([{
42
+ items: L.data.dimensions,
43
+ path: ["data", "dimensions"]
44
+ }, {
45
+ items: L.data.measures,
46
+ path: ["data", "measures"]
47
+ }]),
48
+ ...h(L.filterGroup, e.availableFields),
49
+ ...C(L.sorting, R.map((e) => e.ref)),
50
+ ...a(L.presentation?.coloring, L.data.dimensions.map((e) => e.ref), L.data.measures.map((e) => e.ref))
51
+ ];
52
+ if (z.length) return {
53
+ issues: z,
54
+ success: !1
55
+ };
56
+ let B = {
57
+ state: x(e, I),
58
+ success: !0
59
+ };
60
+ for (let [e, t] of L.data.dimensions.entries()) {
61
+ if ("issue" in B) return {
62
+ issues: [B.issue],
63
+ success: !1
64
+ };
65
+ B = await b(B.state, t, "dimension", O.ADD_DIMENSION, { key: t.fieldKey }, [
66
+ "data",
67
+ "dimensions",
68
+ e
69
+ ]);
70
+ }
71
+ for (let [t, n] of L.data.measures.entries()) {
72
+ if ("issue" in B) return {
73
+ issues: [B.issue],
74
+ success: !1
75
+ };
76
+ B = await b(B.state, n, "measure", O.ADD_MEASURE, r(n, e.availableFields), [
77
+ "data",
78
+ "measures",
79
+ t
80
+ ]);
81
+ }
82
+ if ("issue" in B || (B = await v(B.state, L.data.dimensions, O.UPDATE_DIMENSION, ["data", "dimensions"]), "issue" in B) || (B = await y(B.state, L.data.dimensions, "setDimensionTemporalGrouping", ["data", "dimensions"]), "issue" in B) || (B = await c(B.state, L.data.dimensions, {
83
+ formatString: "setDimensionFormatString",
84
+ formatType: "setDimensionFormatType"
85
+ }, ["data", "dimensions"]), "issue" in B) || (B = await c(B.state, L.data.measures, {
86
+ currency: "setMeasureCurrency",
87
+ currencyIsPrefix: "setMeasureCurrencyIsPrefix",
88
+ formatString: "setMeasureFormatString",
89
+ formatType: "setMeasureFormatType",
90
+ negativeType: "setMeasureNegativeType"
91
+ }, ["data", "measures"]), "issue" in B) || (B = await M(B.state, L.data.measures, ["data", "measures"]), "issue" in B)) return {
92
+ issues: [B.issue],
93
+ success: !1
94
+ };
95
+ let V = B.state, H = L.data.measures.flatMap((e) => e.axis ? [{
96
+ name: O.CHANGE_MEASURE_AXIS,
97
+ payload: {
98
+ ...w(V.resolvedRefs[e.ref]),
99
+ secondaryAxis: e.axis === "secondary"
100
+ }
101
+ }] : []);
102
+ if (B = await p(B.state, H, ["data", "measures"]), "issue" in B) return {
103
+ issues: [B.issue],
104
+ success: !1
105
+ };
106
+ let U = B.state;
107
+ if (B = await p(U, L.data.measures.flatMap((e) => e.dataPointShape === void 0 ? [] : [{
108
+ name: O.SET_MEASURE_SHAPE,
109
+ payload: {
110
+ ...w(U.resolvedRefs[e.ref]),
111
+ shape: e.dataPointShape
112
+ }
113
+ }]), ["data", "measures"]), "issue" in B || (B = await m(B.state, L.filterGroup), "issue" in B) || (B = await _(B.state, L.sorting, O.CHANGE_SORT_ORDER_AND_DIRECTION, O.TOGGLE_SORTING_ITEM), "issue" in B)) return {
114
+ issues: [B.issue],
115
+ success: !1
116
+ };
117
+ let W = [];
118
+ L.limiting?.queryLimit !== void 0 && W.push({
119
+ name: O.SET_QUERY_LIMIT,
120
+ payload: L.limiting.queryLimit
121
+ });
122
+ let G = L.presentation, K = s(G?.axes);
123
+ if (K) return {
124
+ issues: [K],
125
+ success: !1
126
+ };
127
+ G?.orientation !== void 0 && W.push({
128
+ name: O.SET_ORIENTATION,
129
+ payload: G.orientation
130
+ }), W.push(...j(G)), G?.legend && W.push(...d(B.state.vSpec, G.legend));
131
+ let q = G?.dataLabels, J = B.state;
132
+ L.data.measures.forEach((e) => {
133
+ let t = w(J.resolvedRefs[e.ref]);
134
+ W.push({
135
+ name: D.SET_MEASURE_DATA_LABELS_SHOW,
136
+ payload: {
137
+ ...t,
138
+ show: q?.visible ?? !1
139
+ }
140
+ }), q?.density && W.push({
141
+ name: D.SET_MEASURE_DATA_LABEL_DENSITY,
142
+ payload: {
143
+ ...t,
144
+ density: q.density
145
+ }
146
+ });
147
+ }), Object.entries(G?.axes ?? {}).forEach(([e, t]) => {
148
+ t && (t.titleVisible !== void 0 && W.push({
149
+ name: O.SET_SHOW_AXIS_TITLE,
150
+ payload: {
151
+ axisName: e,
152
+ showAxisName: t.titleVisible
153
+ }
154
+ }), t.title !== void 0 && W.push({
155
+ name: O.SET_AXIS_TITLE,
156
+ payload: {
157
+ axisName: e,
158
+ axisTitle: t.title
159
+ }
160
+ }), t.labelsVisible !== void 0 && W.push({
161
+ name: O.SET_SHOW_AXIS_LABELS,
162
+ payload: {
163
+ axisName: e,
164
+ showLabels: t.labelsVisible
165
+ }
166
+ }), t.ticksVisible !== void 0 && W.push({
167
+ name: O.SET_SHOW_AXIS_TICKS,
168
+ payload: {
169
+ axisName: e,
170
+ showAxisTicks: t.ticksVisible
171
+ }
172
+ }), t.lineVisible !== void 0 && W.push({
173
+ name: O.SET_SHOW_AXIS_LINE,
174
+ payload: {
175
+ axisName: e,
176
+ showAxisLine: t.lineVisible
177
+ }
178
+ }), W.push(...l(e, t)), "scale" in t && t.scale !== void 0 && W.push({
179
+ name: A.SET_AXIS_SCALE,
180
+ payload: {
181
+ axisName: e,
182
+ scale: t.scale
183
+ }
184
+ }));
185
+ });
186
+ let Y = G?.axes?.primaryMeasure?.bands;
187
+ return Y && W.push({
188
+ name: k.SET_MEASURE_AXIS_BANDS,
189
+ payload: { bands: Y }
190
+ }), B = await p(B.state, W, ["presentation"]), "issue" in B ? {
191
+ issues: [B.issue],
192
+ success: !1
193
+ } : (B = await g(B.state, L.presentation?.coloring), "issue" in B ? {
194
+ issues: [B.issue],
195
+ success: !1
196
+ } : f(B.state, T));
197
+ };
198
+ export { N as compileLineVisualizationDefinition };
@@ -0,0 +1,264 @@
1
+ import { s as e, t, u as n } from "./src-77e3mC7i.js";
2
+ import { A as r, D as i, F as a, I as o, M as s, P as c, R as l, g as u, h as d, m as f, t as p, x as m } from "./src-D9XogOrc.js";
3
+ function h(e, t) {
4
+ switch (arguments.length) {
5
+ case 0: break;
6
+ case 1:
7
+ this.range(e);
8
+ break;
9
+ default:
10
+ this.range(t).domain(e);
11
+ break;
12
+ }
13
+ return this;
14
+ }
15
+ var g = Symbol("implicit");
16
+ function _() {
17
+ var e = /* @__PURE__ */ new Map(), t = [], n = [], r = g;
18
+ function i(i) {
19
+ var a = i + "", o = e.get(a);
20
+ if (!o) {
21
+ if (r !== g) return r;
22
+ e.set(a, o = t.push(i));
23
+ }
24
+ return n[(o - 1) % n.length];
25
+ }
26
+ return i.domain = function(n) {
27
+ if (!arguments.length) return t.slice();
28
+ t = [], e = /* @__PURE__ */ new Map();
29
+ for (let r of n) {
30
+ let n = r + "";
31
+ e.has(n) || e.set(n, t.push(r));
32
+ }
33
+ return i;
34
+ }, i.range = function(e) {
35
+ return arguments.length ? (n = Array.from(e), i) : n.slice();
36
+ }, i.unknown = function(e) {
37
+ return arguments.length ? (r = e, i) : r;
38
+ }, i.copy = function() {
39
+ return _(t, n).unknown(r);
40
+ }, h.apply(i, arguments), i;
41
+ }
42
+ var v = (e) => () => e;
43
+ function y(e, t) {
44
+ return function(n) {
45
+ return e + n * t;
46
+ };
47
+ }
48
+ function b(e, t, n) {
49
+ return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
50
+ return (e + r * t) ** +n;
51
+ };
52
+ }
53
+ function x(e) {
54
+ return (e = +e) == 1 ? S : function(t, n) {
55
+ return n - t ? b(t, n, e) : v(isNaN(t) ? n : t);
56
+ };
57
+ }
58
+ function S(e, t) {
59
+ var n = t - e;
60
+ return n ? y(e, n) : v(isNaN(e) ? t : e);
61
+ }
62
+ t();
63
+ var C = (function e(t) {
64
+ var r = x(t);
65
+ function i(e, t) {
66
+ var i = r((e = n(e)).r, (t = n(t)).r), a = r(e.g, t.g), o = r(e.b, t.b), s = S(e.opacity, t.opacity);
67
+ return function(t) {
68
+ return e.r = i(t), e.g = a(t), e.b = o(t), e.opacity = s(t), e + "";
69
+ };
70
+ }
71
+ return i.gamma = e, i;
72
+ })(1);
73
+ function w(e, t) {
74
+ t ||= [];
75
+ var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
76
+ return function(a) {
77
+ for (i = 0; i < n; ++i) r[i] = e[i] * (1 - a) + t[i] * a;
78
+ return r;
79
+ };
80
+ }
81
+ function T(e) {
82
+ return ArrayBuffer.isView(e) && !(e instanceof DataView);
83
+ }
84
+ function E(e, t) {
85
+ var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
86
+ for (o = 0; o < r; ++o) i[o] = F(e[o], t[o]);
87
+ for (; o < n; ++o) a[o] = t[o];
88
+ return function(e) {
89
+ for (o = 0; o < r; ++o) a[o] = i[o](e);
90
+ return a;
91
+ };
92
+ }
93
+ function D(e, t) {
94
+ var n = /* @__PURE__ */ new Date();
95
+ return e = +e, t = +t, function(r) {
96
+ return n.setTime(e * (1 - r) + t * r), n;
97
+ };
98
+ }
99
+ function O(e, t) {
100
+ return e = +e, t = +t, function(n) {
101
+ return e * (1 - n) + t * n;
102
+ };
103
+ }
104
+ function k(e, t) {
105
+ var n = {}, r = {}, i;
106
+ for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = F(e[i], t[i]) : r[i] = t[i];
107
+ return function(e) {
108
+ for (i in n) r[i] = n[i](e);
109
+ return r;
110
+ };
111
+ }
112
+ var A = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, j = new RegExp(A.source, "g");
113
+ function M(e) {
114
+ return function() {
115
+ return e;
116
+ };
117
+ }
118
+ function N(e) {
119
+ return function(t) {
120
+ return e(t) + "";
121
+ };
122
+ }
123
+ function P(e, t) {
124
+ var n = A.lastIndex = j.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
125
+ for (e += "", t += ""; (r = A.exec(e)) && (i = j.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
126
+ i: o,
127
+ x: O(r, i)
128
+ })), n = j.lastIndex;
129
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? N(c[0].x) : M(t) : (t = c.length, function(e) {
130
+ for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
131
+ return s.join("");
132
+ });
133
+ }
134
+ t();
135
+ function F(t, n) {
136
+ var r = typeof n, i;
137
+ return n == null || r === "boolean" ? v(n) : (r === "number" ? O : r === "string" ? (i = e(n)) ? (n = i, C) : P : n instanceof e ? C : n instanceof Date ? D : T(n) ? w : Array.isArray(n) ? E : typeof n.valueOf != "function" && typeof n.toString != "function" || isNaN(n) ? k : O)(t, n);
138
+ }
139
+ function I(e, t) {
140
+ return e = +e, t = +t, function(n) {
141
+ return Math.round(e * (1 - n) + t * n);
142
+ };
143
+ }
144
+ p();
145
+ function L(e) {
146
+ return function() {
147
+ return e;
148
+ };
149
+ }
150
+ function R(e) {
151
+ return +e;
152
+ }
153
+ var z = [0, 1];
154
+ function B(e) {
155
+ return e;
156
+ }
157
+ function V(e, t) {
158
+ return (t -= e = +e) ? function(n) {
159
+ return (n - e) / t;
160
+ } : L(isNaN(t) ? NaN : .5);
161
+ }
162
+ function H(e, t) {
163
+ var n;
164
+ return e > t && (n = e, e = t, t = n), function(n) {
165
+ return Math.max(e, Math.min(t, n));
166
+ };
167
+ }
168
+ function U(e, t, n) {
169
+ var r = e[0], i = e[1], a = t[0], o = t[1];
170
+ return i < r ? (r = V(i, r), a = n(o, a)) : (r = V(r, i), a = n(a, o)), function(e) {
171
+ return a(r(e));
172
+ };
173
+ }
174
+ function W(e, t, n) {
175
+ var r = Math.min(e.length, t.length) - 1, i = Array(r), a = Array(r), o = -1;
176
+ for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = V(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
177
+ return function(t) {
178
+ var n = m(e, t, 1, r) - 1;
179
+ return a[n](i[n](t));
180
+ };
181
+ }
182
+ function G(e, t) {
183
+ return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
184
+ }
185
+ function K() {
186
+ var e = z, t = z, n = F, r, i, a, o = B, s, c, l;
187
+ function u() {
188
+ var n = Math.min(e.length, t.length);
189
+ return o !== B && (o = H(e[0], e[n - 1])), s = n > 2 ? W : U, c = l = null, d;
190
+ }
191
+ function d(i) {
192
+ return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
193
+ }
194
+ return d.invert = function(n) {
195
+ return o(i((l ||= s(t, e.map(r), O))(n)));
196
+ }, d.domain = function(t) {
197
+ return arguments.length ? (e = Array.from(t, R), u()) : e.slice();
198
+ }, d.range = function(e) {
199
+ return arguments.length ? (t = Array.from(e), u()) : t.slice();
200
+ }, d.rangeRound = function(e) {
201
+ return t = Array.from(e), n = I, u();
202
+ }, d.clamp = function(e) {
203
+ return arguments.length ? (o = e ? !0 : B, u()) : o !== B;
204
+ }, d.interpolate = function(e) {
205
+ return arguments.length ? (n = e, u()) : n;
206
+ }, d.unknown = function(e) {
207
+ return arguments.length ? (a = e, d) : a;
208
+ }, function(e, t) {
209
+ return r = e, i = t, u();
210
+ };
211
+ }
212
+ function q() {
213
+ return K()(B, B);
214
+ }
215
+ p(), i();
216
+ function J(e, t, n, i) {
217
+ var u = d(e, t, n), f;
218
+ switch (i = l(i ?? ",f"), i.type) {
219
+ case "s":
220
+ var p = Math.max(Math.abs(e), Math.abs(t));
221
+ return i.precision == null && !isNaN(f = s(u, p)) && (i.precision = f), o(i, p);
222
+ case "":
223
+ case "e":
224
+ case "g":
225
+ case "p":
226
+ case "r":
227
+ i.precision == null && !isNaN(f = r(u, Math.max(Math.abs(e), Math.abs(t)))) && (i.precision = f - (i.type === "e"));
228
+ break;
229
+ case "f":
230
+ case "%":
231
+ i.precision == null && !isNaN(f = c(u)) && (i.precision = f - (i.type === "%") * 2);
232
+ break;
233
+ }
234
+ return a(i);
235
+ }
236
+ p();
237
+ function Y(e) {
238
+ var t = e.domain;
239
+ return e.ticks = function(e) {
240
+ var n = t();
241
+ return u(n[0], n[n.length - 1], e ?? 10);
242
+ }, e.tickFormat = function(e, n) {
243
+ var r = t();
244
+ return J(r[0], r[r.length - 1], e ?? 10, n);
245
+ }, e.nice = function(n) {
246
+ n ??= 10;
247
+ var r = t(), i = 0, a = r.length - 1, o = r[i], s = r[a], c, l, u = 10;
248
+ for (s < o && (l = o, o = s, s = l, l = i, i = a, a = l); u-- > 0;) {
249
+ if (l = f(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
250
+ if (l > 0) o = Math.floor(o / l) * l, s = Math.ceil(s / l) * l;
251
+ else if (l < 0) o = Math.ceil(o * l) / l, s = Math.floor(s * l) / l;
252
+ else break;
253
+ c = l;
254
+ }
255
+ return e;
256
+ }, e;
257
+ }
258
+ function X() {
259
+ var e = q();
260
+ return e.copy = function() {
261
+ return G(e, X());
262
+ }, h.apply(e, arguments), Y(e);
263
+ }
264
+ export { _ as n, h as r, X as t };