@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,34 +1,34 @@
1
- import { at as b } from "./index-DW4iQi93.js";
1
+ import { au as b } from "./index-CWus23Z0.js";
2
2
  const l = {
3
- annotation: (t) => `annotation:${t}`,
4
- average: (t) => `average:${t}`,
3
+ annotation: (n) => `annotation:${n}`,
4
+ average: (n) => `average:${n}`,
5
5
  comparison: "comparison",
6
6
  estimate: "estimate",
7
7
  forecast: "forecast",
8
8
  incomplete: "incomplete",
9
- reference: (t) => `reference:${t}`,
9
+ reference: (n) => `reference:${n}`,
10
10
  trend: "trend"
11
11
  };
12
- function F(t, e) {
13
- const n = t.period;
14
- return n ? n.label ? n.label : n.state === "annualized" && !n.annualizedField ? (e == null ? void 0 : e.estimate) ?? "Estimate" : (e == null ? void 0 : e.ytd) ?? "YTD" : "";
12
+ function F(n, e) {
13
+ const t = n.period;
14
+ return t ? t.label ? t.label : t.state === "annualized" && !t.annualizedField ? (e == null ? void 0 : e.estimate) ?? "Estimate" : (e == null ? void 0 : e.ytd) ?? "YTD" : "";
15
15
  }
16
- function M(t) {
16
+ function M(n) {
17
17
  var r, o;
18
- const { temporal: e, labels: n, formatValue: a, formatCategory: d } = t, s = t.hidden ?? /* @__PURE__ */ new Set(), c = [], i = (u) => {
18
+ const { temporal: e, labels: t, formatValue: a, formatCategory: d } = n, s = n.hidden ?? /* @__PURE__ */ new Set(), c = [], i = (u) => {
19
19
  c.push({ ...u, active: !s.has(u.id) });
20
20
  };
21
21
  e != null && e.period && i({
22
22
  id: l.incomplete,
23
23
  kind: "incomplete",
24
- label: F(e, n),
24
+ label: F(e, t),
25
25
  detail: d(e.period.category),
26
26
  tone: "faint",
27
27
  stroke: "hatch"
28
- }), t.hasComparison && i({
28
+ }), n.hasComparison && i({
29
29
  id: l.comparison,
30
30
  kind: "comparison",
31
- label: (n == null ? void 0 : n.previous) ?? "Previous",
31
+ label: (t == null ? void 0 : t.previous) ?? "Previous",
32
32
  tone: "series",
33
33
  stroke: "dashed"
34
34
  });
@@ -57,7 +57,7 @@ function M(t) {
57
57
  e != null && e.regression && i({
58
58
  id: l.trend,
59
59
  kind: "trend",
60
- label: e.regression.label || (n == null ? void 0 : n.trend) || "Trend",
60
+ label: e.regression.label || (t == null ? void 0 : t.trend) || "Trend",
61
61
  tone: "trend",
62
62
  stroke: "dashed"
63
63
  });
@@ -65,39 +65,39 @@ function M(t) {
65
65
  i({
66
66
  id: l.average(u.window),
67
67
  kind: "average",
68
- label: u.label || ((r = n == null ? void 0 : n.movingAverage) == null ? void 0 : r.call(n, u.window)) || `SMA ${u.window}`,
68
+ label: u.label || ((r = t == null ? void 0 : t.movingAverage) == null ? void 0 : r.call(t, u.window)) || `SMA ${u.window}`,
69
69
  tone: "series",
70
70
  stroke: "solid"
71
71
  });
72
72
  return (o = e == null ? void 0 : e.period) != null && o.annualizedField && i({
73
73
  id: l.estimate,
74
74
  kind: "estimate",
75
- label: (n == null ? void 0 : n.estimate) ?? "Estimate",
75
+ label: (t == null ? void 0 : t.estimate) ?? "Estimate",
76
76
  detail: d(e.period.category),
77
77
  tone: "muted",
78
78
  stroke: "dotted"
79
79
  }), e != null && e.forecast && i({
80
80
  id: l.forecast,
81
81
  kind: "forecast",
82
- label: e.forecast.label || (n == null ? void 0 : n.forecast) || "Forecast",
82
+ label: e.forecast.label || (t == null ? void 0 : t.forecast) || "Forecast",
83
83
  detail: d(e.forecast.start),
84
84
  tone: "series",
85
85
  stroke: "band"
86
86
  }), c;
87
87
  }
88
- function N(t) {
88
+ function N(n) {
89
89
  return (e) => {
90
- if (t.hasDeclaredFormat) return t.format(e);
91
- if (!t.isTime) return e;
92
- const n = Date.parse(e);
93
- return Number.isFinite(n) ? new Intl.DateTimeFormat(t.locale, { month: "short", year: "numeric", timeZone: "UTC" }).format(new Date(n)) : e;
90
+ if (n.hasDeclaredFormat) return n.format(e);
91
+ if (!n.isTime) return e;
92
+ const t = Date.parse(e);
93
+ return Number.isFinite(t) ? new Intl.DateTimeFormat(n.locale, { month: "short", year: "numeric", timeZone: "UTC" }).format(new Date(t)) : e;
94
94
  };
95
95
  }
96
- function D(t) {
97
- return new Set(t.filter((e) => e.active).map((e) => e.id));
96
+ function D(n) {
97
+ return new Set(n.filter((e) => e.active).map((e) => e.id));
98
98
  }
99
- function S(t) {
100
- switch (t) {
99
+ function S(n) {
100
+ switch (n) {
101
101
  case "warn":
102
102
  return "--lens-warn";
103
103
  case "accent":
@@ -112,15 +112,15 @@ function S(t) {
112
112
  }
113
113
  }
114
114
  const h = 1, p = 10 ** h, k = 0.05;
115
- function g(t) {
116
- return t !== void 0 && Number.isFinite(t);
115
+ function g(n) {
116
+ return n !== void 0 && Number.isFinite(n);
117
117
  }
118
- function T(t, e) {
119
- if (!g(e) || e === 0) return t.map(() => {
118
+ function T(n, e) {
119
+ if (!g(e) || e === 0) return n.map(() => {
120
120
  });
121
- const n = t.map((r) => g(r) ? r / e * 100 : void 0), a = n.filter(g);
122
- if (!(a.length === n.length && a.every((r) => r >= 0) && Math.abs(a.reduce((r, o) => r + o, 0) - 100) <= k)) return n.map((r) => g(r) ? Math.round(r * p) / p : void 0);
123
- const s = n.map((r) => Math.floor((r ?? 0) * p)), c = n.map((r, o) => ({ index: o, fraction: (r ?? 0) * p - s[o] }));
121
+ const t = n.map((r) => g(r) ? r / e * 100 : void 0), a = t.filter(g);
122
+ if (!(a.length === t.length && a.every((r) => r >= 0) && Math.abs(a.reduce((r, o) => r + o, 0) - 100) <= k)) return t.map((r) => g(r) ? Math.round(r * p) / p : void 0);
123
+ const s = t.map((r) => Math.floor((r ?? 0) * p)), c = t.map((r, o) => ({ index: o, fraction: (r ?? 0) * p - s[o] }));
124
124
  let i = 100 * p - s.reduce((r, o) => r + o, 0);
125
125
  c.sort((r, o) => o.fraction - r.fraction || r.index - o.index);
126
126
  for (const { index: r } of c) {
@@ -129,50 +129,50 @@ function T(t, e) {
129
129
  }
130
130
  return s.map((r) => r / p);
131
131
  }
132
- function P(t, e, n) {
133
- if (!g(t)) return "";
132
+ function P(n, e, t) {
133
+ if (!g(n)) return "";
134
134
  const a = new Intl.NumberFormat(e, {
135
135
  style: "unit",
136
136
  unit: "percent",
137
137
  unitDisplay: "narrow",
138
138
  minimumFractionDigits: h,
139
139
  maximumFractionDigits: h
140
- }).formatToParts(Number(t.toFixed(h)));
141
- return b(a, n);
140
+ }).formatToParts(Number(n.toFixed(h)));
141
+ return b(a, t);
142
142
  }
143
- function w(t) {
144
- if (typeof t == "number" && Number.isFinite(t)) return t;
145
- if (typeof t != "string" || t.trim() === "") return;
146
- const e = Number(t);
143
+ function w(n) {
144
+ if (typeof n == "number" && Number.isFinite(n)) return n;
145
+ if (typeof n != "string" || n.trim() === "") return;
146
+ const e = Number(n);
147
147
  return Number.isFinite(e) ? e : void 0;
148
148
  }
149
- function x(t, e) {
150
- const n = e.category ?? e.label, a = e.value;
151
- if (!n || !a) return;
152
- const d = t.columns.findIndex((c) => c.name === n), s = t.columns.findIndex((c) => c.name === a);
149
+ function x(n, e) {
150
+ const t = e.category ?? e.label, a = e.value;
151
+ if (!t || !a) return;
152
+ const d = n.columns.findIndex((c) => c.name === t), s = n.columns.findIndex((c) => c.name === a);
153
153
  if (!(d < 0 || s < 0))
154
- return t.rows.flatMap((c) => {
154
+ return n.rows.flatMap((c) => {
155
155
  const i = w(c[s]);
156
156
  return i === void 0 ? [] : [i];
157
157
  });
158
158
  }
159
- function z(t, e, n) {
160
- if (n === void 0) return !1;
161
- const a = x(t, e);
159
+ function z(n, e, t) {
160
+ if (t === void 0) return !1;
161
+ const a = x(n, e);
162
162
  if (!a || a.length < 3) return !1;
163
163
  const d = a.map((i) => Math.abs(i)).filter((i) => i > 0);
164
164
  if (d.length < 2) return !1;
165
165
  const s = Math.min(...d), c = Math.max(...d);
166
- return s > 0 && c / s >= n;
166
+ return s > 0 && c / s >= t;
167
167
  }
168
- function $(t, e, n, a) {
169
- if ((n == null ? void 0 : n.scale) !== "logarithmic") return !1;
168
+ function $(n, e, t, a) {
169
+ if ((t == null ? void 0 : t.scale) !== "logarithmic") return !1;
170
170
  const d = e.category ?? e.label, s = e.value;
171
171
  if (!d || !s) return !1;
172
- const c = t.columns.findIndex((f) => f.name === d), i = t.columns.findIndex((f) => f.name === s);
172
+ const c = n.columns.findIndex((f) => f.name === d), i = n.columns.findIndex((f) => f.name === s);
173
173
  if (c < 0 || i < 0) return !1;
174
174
  const r = /* @__PURE__ */ new Set(), o = [];
175
- for (const f of t.rows) {
175
+ for (const f of n.rows) {
176
176
  const v = f[c];
177
177
  (typeof v == "string" || typeof v == "number" || typeof v == "boolean" || typeof v == "bigint") && r.add(String(v));
178
178
  const y = w(f[i]);