@iota-uz/sdk 0.21.0 → 0.23.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 (63) hide show
  1. package/dist/client-host/identity.d.ts +4 -4
  2. package/dist/client-host/identity.js +2 -2
  3. package/dist/lens/{CascadePanel-BXaSLD9I.js → CascadePanel-mCYxPyo6.js} +57 -56
  4. package/dist/lens/{ChartDataEquivalent-Uo4RCCqz.js → ChartDataEquivalent-C_xsesoH.js} +1 -1
  5. package/dist/lens/{ChartPanel-BYIblvtO.js → ChartPanel-PKIJcbXq.js} +4 -4
  6. package/dist/lens/{CoveragePanel-CBxW7l_N.js → CoveragePanel-CAXz9e00.js} +14 -13
  7. package/dist/lens/DashboardPanels.d.ts.map +1 -1
  8. package/dist/lens/{GaugePanel-Gm3y4QBi.js → GaugePanel-COpgt8DC.js} +12 -10
  9. package/dist/lens/LensDashboard.d.ts +2 -0
  10. package/dist/lens/LensDashboard.d.ts.map +1 -1
  11. package/dist/lens/{MapPanel-Fr67rBRo.js → MapPanel-a664hFjP.js} +49 -48
  12. package/dist/lens/{MetricFlowPanel-DFGBh3hI.js → MetricFlowPanel-CN1t5062.js} +17 -16
  13. package/dist/lens/{MetricHierarchyPanel-DKiQ8e3m.js → MetricHierarchyPanel-EYiIYD3R.js} +7 -6
  14. package/dist/lens/{MetricRelationshipPanel-YC3Cg9Id.js → MetricRelationshipPanel-PD-bwlkT.js} +18 -17
  15. package/dist/lens/{PrintReport-BPI_jNyw.js → PrintReport-DwUf3TgB.js} +628 -597
  16. package/dist/lens/{TablePanel-Bh8dWK4d.js → TablePanel-CYTWohAp.js} +111 -110
  17. package/dist/lens/{adapter-DIzUDxuh.js → adapter-D8Ng5AlN.js} +7 -7
  18. package/dist/lens/contract/schemas.d.ts +13 -0
  19. package/dist/lens/contract/schemas.d.ts.map +1 -1
  20. package/dist/lens/contract/types.d.ts +83 -0
  21. package/dist/lens/contract/types.d.ts.map +1 -1
  22. package/dist/lens/controls/FacetFilterMenu.d.ts +1 -0
  23. package/dist/lens/controls/FacetFilterMenu.d.ts.map +1 -1
  24. package/dist/lens/controls/FilterBar.d.ts.map +1 -1
  25. package/dist/lens/controls/PeriodFilterControl.d.ts +3 -1
  26. package/dist/lens/controls/PeriodFilterControl.d.ts.map +1 -1
  27. package/dist/lens/controls/ScopedFilterControls.d.ts +23 -0
  28. package/dist/lens/controls/ScopedFilterControls.d.ts.map +1 -0
  29. package/dist/lens/{index-DW4iQi93.js → index-CWus23Z0.js} +5615 -4978
  30. package/dist/lens/{index-2qUA4koZ.js → index-D14bsvyH.js} +1 -1
  31. package/dist/lens/index.d.ts +4 -0
  32. package/dist/lens/index.d.ts.map +1 -1
  33. package/dist/lens/index.js +25 -18
  34. package/dist/lens/{install-Czhlaw4u.js → install-5D312Ff-.js} +1 -1
  35. package/dist/lens/{install-C-b2Bm4Y.js → install-BP8dW4Kl.js} +1 -1
  36. package/dist/lens/{install-Ce8R_Bl2.js → install-BviBdh8O.js} +1 -1
  37. package/dist/lens/{install-C7rGzRvO.js → install-DP5BAWun.js} +1 -1
  38. package/dist/lens/{keys-BC7G1vyT.js → keys-BCN1Yl0b.js} +12 -11
  39. package/dist/lens/{metricViews-DSoDe0GU.js → metricViews-UrjJRBia.js} +18 -17
  40. package/dist/lens/{prefetch-Caqfl7sC.js → prefetch-7DFbnsf7.js} +2 -2
  41. package/dist/lens/{prefetchPanels-B-09akeK.js → prefetchPanels-DkDn5UpH.js} +5 -5
  42. package/dist/lens/print/PrintReport.d.ts.map +1 -1
  43. package/dist/lens/print/outline.d.ts +2 -0
  44. package/dist/lens/print/outline.d.ts.map +1 -1
  45. package/dist/lens/{print-CcDZyjFC.js → print-V-2WkLg4.js} +1 -1
  46. package/dist/lens/reports/contract/schemas.d.ts +7 -0
  47. package/dist/lens/reports/contract/schemas.d.ts.map +1 -1
  48. package/dist/lens/reports/contract/types.d.ts +42 -0
  49. package/dist/lens/reports/contract/types.d.ts.map +1 -1
  50. package/dist/lens/reports/filterDraft.d.ts +22 -0
  51. package/dist/lens/reports/filterDraft.d.ts.map +1 -0
  52. package/dist/lens/reports/filterHost.d.ts +13 -0
  53. package/dist/lens/reports/filterHost.d.ts.map +1 -0
  54. package/dist/lens/reports/placement.d.ts +6 -0
  55. package/dist/lens/reports/placement.d.ts.map +1 -0
  56. package/dist/lens/runtime/filters.d.ts.map +1 -1
  57. package/dist/lens/runtime/provider.d.ts.map +1 -1
  58. package/dist/lens/{scales-DOCY7Afr.js → scales-C_jp88QJ.js} +53 -53
  59. package/dist/lens/style.css +1 -1
  60. package/dist/sdk-identity.cjs +3 -3
  61. package/dist/sdk-identity.js +3 -3
  62. package/dist/sdk-identity.json +2 -2
  63. package/package.json +1 -1
@@ -1,14 +1,15 @@
1
1
  import { createComponent as h, insert as U, effect as J, setAttribute as O, template as T } from "solid-js/web";
2
2
  import { createSignal as x, createEffect as S, onCleanup as _, createMemo as P, Show as C } from "solid-js";
3
- import { t as j, a as D, x as G, u as q, L as B, A as K, P as W } from "./index-DW4iQi93.js";
4
- import { C as z } from "./ChartDataEquivalent-Uo4RCCqz.js";
5
- import { C as H } from "./keys-BC7G1vyT.js";
3
+ import { t as j, a as D, x as G, u as q, M as B, A as K, P as W } from "./index-CWus23Z0.js";
4
+ import "solid-js/store";
5
+ import { C as z } from "./ChartDataEquivalent-C_xsesoH.js";
6
+ import { C as H } from "./keys-BCN1Yl0b.js";
6
7
  var V = /* @__PURE__ */ T("<p class=lens-map-attribution role=note>");
7
8
  const A = 5 * 1024 * 1024;
8
9
  function X(r, e) {
9
- var l, u, o, s;
10
+ var l, u, n, s;
10
11
  const i = e.trim(), t = i.split(/[-_]/, 1)[0] ?? "";
11
- return ((l = r.labelProperties) == null ? void 0 : l[i]) ?? ((u = r.labelProperties) == null ? void 0 : u[i.toLowerCase()]) ?? ((o = r.labelProperties) == null ? void 0 : o[t]) ?? ((s = r.labelProperties) == null ? void 0 : s[t.toLowerCase()]) ?? r.labelProperty;
12
+ return ((l = r.labelProperties) == null ? void 0 : l[i]) ?? ((u = r.labelProperties) == null ? void 0 : u[i.toLowerCase()]) ?? ((n = r.labelProperties) == null ? void 0 : n[t]) ?? ((s = r.labelProperties) == null ? void 0 : s[t.toLowerCase()]) ?? r.labelProperty;
12
13
  }
13
14
  function M(r) {
14
15
  return r !== null && typeof r == "object" && !Array.isArray(r) ? r : void 0;
@@ -19,12 +20,12 @@ function N(r, e) {
19
20
  throw new Error("Map geometry must be a non-empty GeoJSON FeatureCollection");
20
21
  const t = /* @__PURE__ */ new Set();
21
22
  for (const [l, u] of i.features.entries()) {
22
- const o = M(u), s = M(o == null ? void 0 : o.properties), n = M(o == null ? void 0 : o.geometry);
23
- if ((o == null ? void 0 : o.type) !== "Feature" || !s || !n) throw new Error(`Map feature ${l} is invalid`);
23
+ const n = M(u), s = M(n == null ? void 0 : n.properties), o = M(n == null ? void 0 : n.geometry);
24
+ if ((n == null ? void 0 : n.type) !== "Feature" || !s || !o) throw new Error(`Map feature ${l} is invalid`);
24
25
  const a = s[e];
25
26
  if (typeof a != "string" || a.trim() === "") throw new Error(`Map feature ${l} has no string ${e} key`);
26
27
  if (t.has(a)) throw new Error(`Map geometry has duplicate region key ${a}`);
27
- if (t.add(a), n.type !== "Polygon" && n.type !== "MultiPolygon" || n.coordinates === void 0)
28
+ if (t.add(a), o.type !== "Polygon" && o.type !== "MultiPolygon" || o.coordinates === void 0)
28
29
  throw new Error(`Map feature ${a} must use Polygon or MultiPolygon geometry`);
29
30
  }
30
31
  return r;
@@ -33,40 +34,40 @@ async function Y(r, e) {
33
34
  const i = Number(r.headers.get("Content-Length"));
34
35
  if (Number.isFinite(i) && i > e) throw new Error(`Map geometry exceeds ${e} bytes`);
35
36
  if (!r.body) {
36
- const n = new Uint8Array(await r.arrayBuffer());
37
- if (n.byteLength > e) throw new Error(`Map geometry exceeds ${e} bytes`);
38
- return new TextDecoder().decode(n);
37
+ const o = new Uint8Array(await r.arrayBuffer());
38
+ if (o.byteLength > e) throw new Error(`Map geometry exceeds ${e} bytes`);
39
+ return new TextDecoder().decode(o);
39
40
  }
40
41
  const t = r.body.getReader(), l = [];
41
42
  let u = 0;
42
43
  for (; ; ) {
43
44
  const {
44
- done: n,
45
+ done: o,
45
46
  value: a
46
47
  } = await t.read();
47
- if (n) break;
48
+ if (o) break;
48
49
  if (u += a.byteLength, u > e)
49
50
  throw await t.cancel(), new Error(`Map geometry exceeds ${e} bytes`);
50
51
  l.push(a);
51
52
  }
52
- const o = new Uint8Array(u);
53
+ const n = new Uint8Array(u);
53
54
  let s = 0;
54
- for (const n of l)
55
- o.set(n, s), s += n.byteLength;
56
- return new TextDecoder().decode(o);
55
+ for (const o of l)
56
+ n.set(o, s), s += o.byteLength;
57
+ return new TextDecoder().decode(n);
57
58
  }
58
59
  async function Q(r, e, i = fetch, t) {
59
60
  var y;
60
61
  const l = r.inline !== void 0, u = typeof r.url == "string" && r.url.trim() !== "";
61
62
  if (l === u) throw new Error("Map source requires exactly one of inline or URL");
62
63
  if (l) return N(r.inline, e);
63
- const o = r.maxBytes ?? 0;
64
- if (!Number.isInteger(o) || o <= 0 || o > A)
64
+ const n = r.maxBytes ?? 0;
65
+ if (!Number.isInteger(n) || n <= 0 || n > A)
65
66
  throw new Error(`Map source maxBytes must be between 1 and ${A}`);
66
67
  const s = r.url;
67
68
  if (!s.startsWith("/") || s.startsWith("//") || s.includes("\\")) throw new Error("Map source URL must be same-origin");
68
- const n = typeof window > "u" ? "http://localhost" : window.location.href, a = new URL(s, n);
69
- if (a.origin !== new URL(n).origin || a.hash) throw new Error("Map source URL must be same-origin");
69
+ const o = typeof window > "u" ? "http://localhost" : window.location.href, a = new URL(s, o);
70
+ if (a.origin !== new URL(o).origin || a.hash) throw new Error("Map source URL must be same-origin");
70
71
  const c = await i(a.pathname + a.search, {
71
72
  credentials: "same-origin",
72
73
  headers: {
@@ -75,10 +76,10 @@ async function Q(r, e, i = fetch, t) {
75
76
  signal: t
76
77
  });
77
78
  if (!c.ok) throw new Error(`Map geometry request failed (${c.status})`);
78
- if (c.url && new URL(c.url, n).origin !== a.origin) throw new Error("Map source redirected cross-origin");
79
+ if (c.url && new URL(c.url, o).origin !== a.origin) throw new Error("Map source redirected cross-origin");
79
80
  const m = ((y = c.headers.get("Content-Type")) == null ? void 0 : y.toLowerCase()) ?? "";
80
81
  if (m && !m.includes("json")) throw new Error("Map geometry response must be JSON");
81
- const g = await Y(c, o);
82
+ const g = await Y(c, n);
82
83
  let d;
83
84
  try {
84
85
  d = JSON.parse(g);
@@ -91,32 +92,32 @@ function Z(r, e, i) {
91
92
  const t = r.map;
92
93
  if (!t) return new Error("Map panel has no map config");
93
94
  const l = e.columns.findIndex(({
94
- name: n
95
- }) => n === r.encoding.id), u = e.columns.findIndex(({
96
- name: n
97
- }) => n === r.encoding.value);
95
+ name: o
96
+ }) => o === r.encoding.id), u = e.columns.findIndex(({
97
+ name: o
98
+ }) => o === r.encoding.value);
98
99
  if (l < 0 || u < 0) return new Error("Map frame is missing its region ID or value column");
99
- const o = new Set(i.features.map(({
100
- properties: n
101
- }) => n[t.featureProperty]).filter((n) => typeof n == "string")), s = /* @__PURE__ */ new Set();
102
- for (const [n, a] of e.rows.entries()) {
100
+ const n = new Set(i.features.map(({
101
+ properties: o
102
+ }) => o[t.featureProperty]).filter((o) => typeof o == "string")), s = /* @__PURE__ */ new Set();
103
+ for (const [o, a] of e.rows.entries()) {
103
104
  const c = a[l];
104
- if (typeof c != "string" || c.trim() === "") return new Error(`Map row ${n} has no string region key`);
105
+ if (typeof c != "string" || c.trim() === "") return new Error(`Map row ${o} has no string region key`);
105
106
  if (s.has(c)) return new Error(`Map frame has duplicate region key ${c}`);
106
- if (s.add(c), !o.has(c)) return new Error(`Map region ${c} has no GeoJSON feature`);
107
+ if (s.add(c), !n.has(c)) return new Error(`Map region ${c} has no GeoJSON feature`);
107
108
  const m = a[u];
108
109
  if (typeof m != "number" || !Number.isFinite(m)) return new Error(`Map region ${c} has no finite numeric value`);
109
110
  }
110
111
  }
111
- function ae(r) {
112
- var $;
112
+ function ie(r) {
113
+ var L;
113
114
  const e = r.panel, i = j(e.id), t = r.frame ?? i, {
114
115
  document: l
115
116
  } = D(), {
116
117
  drillInto: u
117
- } = G(), o = q(), s = B(e.encoding.value ? e.format[e.encoding.value] : void 0), n = K(e), [a, c] = x(0), [m, g] = x({
118
+ } = G(), n = q(), s = B(e.encoding.value ? e.format[e.encoding.value] : void 0), o = K(e), [a, c] = x(0), [m, g] = x({
118
119
  loading: !0
119
- }), d = e.map, y = d ? X(d, (($ = l.meta) == null ? void 0 : $.locale) ?? "") : void 0;
120
+ }), d = e.map, y = d ? X(d, ((L = l.meta) == null ? void 0 : L.locale) ?? "") : void 0;
120
121
  S(() => {
121
122
  a();
122
123
  const f = new AbortController();
@@ -149,7 +150,7 @@ function ae(r) {
149
150
  } : m().error ?? b() ? {
150
151
  isLoading: !1,
151
152
  isStale: !1,
152
- error: new Error(o("chart.error", "Unable to render chart.")),
153
+ error: new Error(n("chart.error", "Unable to render chart.")),
153
154
  retry: () => c((p) => p + 1)
154
155
  } : t), F = P(() => {
155
156
  if (!t.data || t.data.rows.length === 0 || !m().data || b() || !d) return;
@@ -161,7 +162,7 @@ function ae(r) {
161
162
  format: f,
162
163
  formatAxis: f,
163
164
  labels: {
164
- noData: o("panel.empty", "No data")
165
+ noData: n("panel.empty", "No data")
165
166
  },
166
167
  theme: l.theme,
167
168
  map: {
@@ -172,7 +173,7 @@ function ae(r) {
172
173
  fallbackLabelProperty: d.labelProperty
173
174
  }
174
175
  };
175
- }), E = () => !!(e.drillRoot || n.action), L = (f, p, w) => {
176
+ }), E = () => !!(e.drillRoot || o.action), $ = (f, p, w) => {
176
177
  if (e.drillRoot) {
177
178
  u(f, e.id);
178
179
  return;
@@ -181,7 +182,7 @@ function ae(r) {
181
182
  const I = t.data.columns.findIndex(({
182
183
  name: v
183
184
  }) => v === e.encoding.id), R = t.data.rows.find((v) => v[I] === f);
184
- n.activate(n.urlForRow(t.data, R), void 0, {
185
+ o.activate(o.urlForRow(t.data, R), void 0, {
185
186
  newTab: w == null ? void 0 : w.newTab
186
187
  });
187
188
  };
@@ -206,13 +207,13 @@ function ae(r) {
206
207
  return f().frame;
207
208
  },
208
209
  get label() {
209
- return o("chart.data", "Chart data for {name}", {
210
+ return n("chart.data", "Chart data for {name}", {
210
211
  name: e.title
211
212
  });
212
213
  },
213
- onSelect: L,
214
+ onSelect: $,
214
215
  panel: e,
215
- translate: o
216
+ translate: n
216
217
  }), h(H, {
217
218
  get adapter() {
218
219
  return r.adapter;
@@ -224,12 +225,12 @@ function ae(r) {
224
225
  return f();
225
226
  },
226
227
  get label() {
227
- return o("chart.label", "{name} chart", {
228
+ return n("chart.label", "{name} chart", {
228
229
  name: e.title
229
230
  });
230
231
  },
231
232
  get onSelect() {
232
- return E() ? L : void 0;
233
+ return E() ? $ : void 0;
233
234
  },
234
235
  get panelId() {
235
236
  return e.id;
@@ -240,7 +241,7 @@ function ae(r) {
240
241
  },
241
242
  get children() {
242
243
  var p = V();
243
- return U(p, () => d == null ? void 0 : d.attribution), J(() => O(p, "aria-label", o("map.attribution", "Map attribution"))), p;
244
+ return U(p, () => d == null ? void 0 : d.attribution), J(() => O(p, "aria-label", n("map.attribution", "Map attribution"))), p;
244
245
  }
245
246
  })]
246
247
  });
@@ -249,7 +250,7 @@ function ae(r) {
249
250
  }
250
251
  export {
251
252
  A as MAX_MAP_GEOJSON_BYTES,
252
- ae as MapPanel,
253
+ ie as MapPanel,
253
254
  Q as loadMapGeometry,
254
255
  Z as mapJoinError,
255
256
  X as resolveMapLabelProperty
@@ -1,7 +1,8 @@
1
- import { createComponent as p, insert as s, memo as h, addEventListener as K, effect as y, setAttribute as v, className as M, template as o, delegateEvents as Q } from "solid-js/web";
1
+ import { createComponent as g, insert as s, memo as h, addEventListener as K, effect as y, setAttribute as v, className as L, template as o, delegateEvents as Q } from "solid-js/web";
2
2
  import { createMemo as m, For as x, Show as F } from "solid-js";
3
- import { t as A, u as C, a0 as N, L as V, a7 as R, b as S, P as W } from "./index-DW4iQi93.js";
4
- import { f as j, r as J, d as O, Q as T } from "./metricViews-DSoDe0GU.js";
3
+ import { t as A, u as C, a1 as N, M as V, a8 as R, b as S, P as W } from "./index-CWus23Z0.js";
4
+ import "solid-js/store";
5
+ import { f as j, r as J, d as O, Q as T } from "./metricViews-UrjJRBia.js";
5
6
  var U = /* @__PURE__ */ o("<ol class=lens-flow>"), z = /* @__PURE__ */ o("<p class=lens-flow-reconcile>"), B = /* @__PURE__ */ o("<span class=lens-flow-stage-label>"), G = /* @__PURE__ */ o("<span class=lens-flow-stage-value>"), H = /* @__PURE__ */ o("<span class=lens-flow-stage-caption>"), I = /* @__PURE__ */ o('<a class="lens-flow-stage-main lens-flow-stage-link">'), X = /* @__PURE__ */ o("<li>"), Y = /* @__PURE__ */ o("<span aria-hidden=true class=lens-flow-op>"), Z = /* @__PURE__ */ o("<div class=lens-flow-stage-main>");
6
7
  function ee() {
7
8
  const $ = C();
@@ -14,11 +15,11 @@ function ee() {
14
15
  })
15
16
  }))();
16
17
  }
17
- function ne($) {
18
+ function se($) {
18
19
  const n = $.panel, b = A(n.id), i = C(), E = ee(), P = N(n, "value") ?? "value", _ = V(n.format[P]), D = R(), f = m(() => b.data ? S(n, b.data, E) : void 0), w = m(() => {
19
20
  const l = f();
20
21
  return (l == null ? void 0 : l.kind) === "contract-error" ? l.message : void 0;
21
- }), L = m(() => w() ? {
22
+ }), M = m(() => w() ? {
22
23
  ...b,
23
24
  data: void 0,
24
25
  error: new Error(w())
@@ -41,16 +42,16 @@ function ne($) {
41
42
  delta: _(l)
42
43
  });
43
44
  });
44
- return p(W, {
45
+ return g(W, {
45
46
  panel: n,
46
47
  get frame() {
47
- return L();
48
+ return M();
48
49
  },
49
50
  allowEmptyContent: !0,
50
51
  get children() {
51
52
  return [(() => {
52
53
  var l = U();
53
- return s(l, p(x, {
54
+ return s(l, g(x, {
54
55
  get each() {
55
56
  return q();
56
57
  },
@@ -64,7 +65,7 @@ function ne($) {
64
65
  var a = h(() => !!e.showDash);
65
66
  return () => a() ? "—" : e.text;
66
67
  })()), t;
67
- })(), p(T, {
68
+ })(), g(T, {
68
69
  get confidence() {
69
70
  return e.confidence;
70
71
  },
@@ -84,7 +85,7 @@ function ne($) {
84
85
  var r = Y();
85
86
  return s(r, () => e.operator), r;
86
87
  })();
87
- })(), null), s(t, p(F, {
88
+ })(), null), s(t, g(F, {
88
89
  when: c,
89
90
  get fallback() {
90
91
  return (() => {
@@ -97,16 +98,16 @@ function ne($) {
97
98
  return K(a, "click", c.onClick, !0), s(a, u), y((r) => {
98
99
  var d = i("panel.openMetric", "Open {name}", {
99
100
  name: e.stage.label
100
- }), g = c.href;
101
- return d !== r.e && v(a, "aria-label", r.e = d), g !== r.t && v(a, "href", r.t = g), r;
101
+ }), p = c.href;
102
+ return d !== r.e && v(a, "aria-label", r.e = d), p !== r.t && v(a, "href", r.t = p), r;
102
103
  }, {
103
104
  e: void 0,
104
105
  t: void 0
105
106
  }), a;
106
107
  }
107
108
  }), null), y((a) => {
108
- var r = e.ariaLabel, d = `lens-flow-stage lens-flow-stage-${e.role}`, g = e.role === "result" || void 0;
109
- return r !== a.e && v(t, "aria-label", a.e = r), d !== a.t && M(t, a.t = d), g !== a.a && v(t, "data-result", a.a = g), a;
109
+ var r = e.ariaLabel, d = `lens-flow-stage lens-flow-stage-${e.role}`, p = e.role === "result" || void 0;
110
+ return r !== a.e && v(t, "aria-label", a.e = r), d !== a.t && L(t, a.t = d), p !== a.a && v(t, "data-result", a.a = p), a;
110
111
  }, {
111
112
  e: void 0,
112
113
  t: void 0,
@@ -117,7 +118,7 @@ function ne($) {
117
118
  })), y(() => v(l, "aria-label", i("flow.stages", "{name} stages", {
118
119
  name: n.title
119
120
  }))), l;
120
- })(), p(F, {
121
+ })(), g(F, {
121
122
  get when() {
122
123
  return k();
123
124
  },
@@ -131,5 +132,5 @@ function ne($) {
131
132
  }
132
133
  Q(["click"]);
133
134
  export {
134
- ne as MetricFlowPanel
135
+ se as MetricFlowPanel
135
136
  };
@@ -1,7 +1,8 @@
1
1
  import { createComponent as f, insert as l, memo as h, effect as m, setAttribute as u, addEventListener as S, className as C, style as U, template as c, delegateEvents as B } from "solid-js/web";
2
2
  import { createMemo as p, For as H, Show as J } from "solid-js";
3
- import { t as z, u as A, a0 as P, L as E, a7 as G, b as I, P as O } from "./index-DW4iQi93.js";
4
- import { h as W, r as X, Q as Y } from "./metricViews-DSoDe0GU.js";
3
+ import { t as z, u as A, a1 as P, M as E, a8 as G, b as I, P as O } from "./index-CWus23Z0.js";
4
+ import "solid-js/store";
5
+ import { h as W, r as X, Q as Y } from "./metricViews-UrjJRBia.js";
5
6
  var Z = /* @__PURE__ */ c("<ul class=lens-hierarchy>"), w = /* @__PURE__ */ c("<span class=lens-hierarchy-label><span class=lens-hierarchy-label-text>"), ee = /* @__PURE__ */ c("<span class=lens-hierarchy-value>"), ae = /* @__PURE__ */ c("<span aria-hidden=true class=lens-hierarchy-guide>"), re = /* @__PURE__ */ c("<span class=lens-hierarchy-unallocated-tag>"), le = /* @__PURE__ */ c("<span class=lens-hierarchy-description>"), te = /* @__PURE__ */ c("<span class=lens-hierarchy-share>"), ne = /* @__PURE__ */ c('<a class="lens-hierarchy-row-inner lens-hierarchy-row-link">'), se = /* @__PURE__ */ c("<li>"), ce = /* @__PURE__ */ c("<div class=lens-hierarchy-row-inner role=group>"), ie = /* @__PURE__ */ c("<p>");
6
7
  function oe() {
7
8
  const y = A();
@@ -14,8 +15,8 @@ function oe() {
14
15
  })
15
16
  }))();
16
17
  }
17
- function pe(y) {
18
- const t = y.panel, v = z(t.id), d = A(), K = oe(), L = P(t, "value") ?? "value", g = P(t, "share"), k = E(t.format[L]), D = E(g ? t.format[g] : void 0), M = G(), $ = p(() => v.data ? I(t, v.data, K) : void 0), x = p(() => {
18
+ function ye(y) {
19
+ const t = y.panel, v = z(t.id), d = A(), K = oe(), M = P(t, "value") ?? "value", g = P(t, "share"), k = E(t.format[M]), D = E(g ? t.format[g] : void 0), L = G(), $ = p(() => v.data ? I(t, v.data, K) : void 0), x = p(() => {
19
20
  const i = $();
20
21
  return (i == null ? void 0 : i.kind) === "contract-error" ? i.message : void 0;
21
22
  }), Q = p(() => x() ? {
@@ -43,7 +44,7 @@ function pe(y) {
43
44
  } = a, b = X({
44
45
  confidence: a.confidence,
45
46
  availability: a.availability
46
- }), q = b ? d(b.meta.labelKey, b.meta.fallback) : void 0, N = a.showDash ? q ?? d("availability.unavailable", "Unavailable") : a.valueText, F = `${s.label}, ${N}${a.shareText ? `, ${a.shareText}` : ""}`, _ = M(s.action), T = [(() => {
47
+ }), q = b ? d(b.meta.labelKey, b.meta.fallback) : void 0, N = a.showDash ? q ?? d("availability.unavailable", "Unavailable") : a.valueText, F = `${s.label}, ${N}${a.shareText ? `, ${a.shareText}` : ""}`, _ = L(s.action), T = [(() => {
47
48
  var r = w(), e = r.firstChild;
48
49
  return l(r, (() => {
49
50
  var n = h(() => a.depth > 0);
@@ -117,5 +118,5 @@ function pe(y) {
117
118
  }
118
119
  B(["click"]);
119
120
  export {
120
- pe as MetricHierarchyPanel
121
+ ye as MetricHierarchyPanel
121
122
  };
@@ -1,10 +1,11 @@
1
- import { delegateEvents as V, createComponent as E, insert as s, memo as M, effect as F, setAttribute as b, template as p, className as K, addEventListener as j } from "solid-js/web";
1
+ import { delegateEvents as V, createComponent as E, insert as s, memo as A, effect as F, setAttribute as b, template as p, className as K, addEventListener as j } from "solid-js/web";
2
2
  import { createMemo as f, Show as D } from "solid-js";
3
- import { t as G, u as T, a0 as J, L as q, a7 as B, b as H, P as I } from "./index-DW4iQi93.js";
4
- import { e as U, a as L, c as W, b as X, Q as Y } from "./metricViews-DSoDe0GU.js";
5
- var R = /* @__PURE__ */ p("<div>"), Z = /* @__PURE__ */ p("<span class=lens-relationship-end-label>"), w = /* @__PURE__ */ p("<span class=lens-relationship-end-value>"), ee = /* @__PURE__ */ p('<a class="lens-relationship-end-inner lens-relationship-end-link">'), te = /* @__PURE__ */ p("<div class=lens-relationship-end-inner>"), ne = /* @__PURE__ */ p('<div class=lens-relationship><p class=lens-visually-hidden></p><div aria-hidden=true class=lens-relationship-connector><span class="lens-relationship-glyph lens-relationship-glyph-h"></span><span class="lens-relationship-glyph lens-relationship-glyph-v"></span><span class=lens-relationship-type>'), ae = /* @__PURE__ */ p("<span class=lens-relationship-note>");
3
+ import { t as G, u as z, a1 as J, M as q, a8 as B, b as H, P as I } from "./index-CWus23Z0.js";
4
+ import "solid-js/store";
5
+ import { e as U, a as R, c as W, b as X, Q as Y } from "./metricViews-UrjJRBia.js";
6
+ var T = /* @__PURE__ */ p("<div>"), Z = /* @__PURE__ */ p("<span class=lens-relationship-end-label>"), w = /* @__PURE__ */ p("<span class=lens-relationship-end-value>"), ee = /* @__PURE__ */ p('<a class="lens-relationship-end-inner lens-relationship-end-link">'), te = /* @__PURE__ */ p("<div class=lens-relationship-end-inner>"), ne = /* @__PURE__ */ p('<div class=lens-relationship><p class=lens-visually-hidden></p><div aria-hidden=true class=lens-relationship-connector><span class="lens-relationship-glyph lens-relationship-glyph-h"></span><span class="lens-relationship-glyph lens-relationship-glyph-v"></span><span class=lens-relationship-type>'), ae = /* @__PURE__ */ p("<span class=lens-relationship-note>");
6
7
  function le() {
7
- const i = T();
8
+ const i = z();
8
9
  return f(() => ({
9
10
  missingColumn: (n) => i("panel.missingColumn", "Panel data is missing the “{column}” column.", {
10
11
  column: n
@@ -14,29 +15,29 @@ function le() {
14
15
  })
15
16
  }))();
16
17
  }
17
- function pe(i) {
18
- const n = i.panel, d = G(n.id), h = T(), _ = le(), m = J(n, "value") ?? "value", u = q(n.format[m]), z = B(), e = n.metricRelationship, C = f(() => d.data ? H(n, d.data, _) : void 0), P = f(() => {
18
+ function de(i) {
19
+ const n = i.panel, d = G(n.id), h = z(), _ = le(), m = J(n, "value") ?? "value", u = q(n.format[m]), L = B(), e = n.metricRelationship, C = f(() => d.data ? H(n, d.data, _) : void 0), P = f(() => {
19
20
  const t = C();
20
21
  return (t == null ? void 0 : t.kind) === "contract-error" ? t.message : void 0;
21
22
  }), N = f(() => P() ? {
22
23
  ...d,
23
24
  data: void 0,
24
25
  error: new Error(P())
25
- } : d), g = L(n, C(), e == null ? void 0 : e.source, u), k = L(n, C(), e == null ? void 0 : e.target, u), x = e ? W(e) : {
26
+ } : d), g = R(n, C(), e == null ? void 0 : e.source, u), k = R(n, C(), e == null ? void 0 : e.target, u), x = e ? W(e) : {
26
27
  horizontal: "⇄",
27
28
  vertical: "⇵"
28
- }, S = (e == null ? void 0 : e.type) ?? "association", O = h(`relationship.type.${S}`, X[S]), Q = se(h, e, (g == null ? void 0 : g.end.label) ?? "", (k == null ? void 0 : k.end.label) ?? ""), A = (t, v) => {
29
+ }, M = (e == null ? void 0 : e.type) ?? "association", O = h(`relationship.type.${M}`, X[M]), Q = se(h, e, (g == null ? void 0 : g.end.label) ?? "", (k == null ? void 0 : k.end.label) ?? ""), S = (t, v) => {
29
30
  if (!t) return (() => {
30
- var a = R();
31
+ var a = T();
31
32
  return K(a, `lens-relationship-end lens-relationship-end-${v}`), a;
32
33
  })();
33
- const o = z(t.end.action), y = [(() => {
34
+ const o = L(t.end.action), y = [(() => {
34
35
  var a = Z();
35
36
  return s(a, () => t.end.label), F(() => b(a, "title", t.end.label)), a;
36
37
  })(), (() => {
37
38
  var a = w();
38
39
  return s(a, (() => {
39
- var r = M(() => !!t.showDash);
40
+ var r = A(() => !!t.showDash);
40
41
  return () => r() ? "—" : t.valueText;
41
42
  })()), a;
42
43
  })(), E(Y, {
@@ -49,7 +50,7 @@ function pe(i) {
49
50
  className: "lens-relationship-chip"
50
51
  })];
51
52
  return (() => {
52
- var a = R();
53
+ var a = T();
53
54
  return K(a, `lens-relationship-end lens-relationship-end-${v}`), s(a, E(D, {
54
55
  when: o,
55
56
  get fallback() {
@@ -81,13 +82,13 @@ function pe(i) {
81
82
  allowEmptyContent: !0,
82
83
  get children() {
83
84
  var t = ne(), v = t.firstChild, o = v.nextSibling, y = o.firstChild, a = y.nextSibling, r = a.nextSibling;
84
- return s(v, Q), s(t, () => A(g, "source"), o), s(y, () => x.horizontal), s(a, () => x.vertical), s(r, O), s(o, (() => {
85
- var l = M(() => !!(e != null && e.note));
85
+ return s(v, Q), s(t, () => S(g, "source"), o), s(y, () => x.horizontal), s(a, () => x.vertical), s(r, O), s(o, (() => {
86
+ var l = A(() => !!(e != null && e.note));
86
87
  return () => l() && (() => {
87
88
  var c = ae();
88
89
  return s(c, () => e.note), c;
89
90
  })();
90
- })(), null), s(t, () => A(k, "target"), null), F((l) => {
91
+ })(), null), s(t, () => S(k, "target"), null), F((l) => {
91
92
  var c = e == null ? void 0 : e.type, $ = e == null ? void 0 : e.type;
92
93
  return c !== l.e && b(t, "data-type", l.e = c), $ !== l.t && b(o, "data-type", l.t = $), l;
93
94
  }, {
@@ -115,6 +116,6 @@ function se(i, n, d, h) {
115
116
  }
116
117
  V(["click"]);
117
118
  export {
118
- pe as MetricRelationshipPanel,
119
+ de as MetricRelationshipPanel,
119
120
  se as relationshipSentence
120
121
  };