@iota-uz/sdk 0.44.0 → 0.45.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 (65) hide show
  1. package/dist/chat-ui/index.js +658 -656
  2. package/dist/client-host/identity.d.ts +4 -4
  3. package/dist/client-host/identity.js +2 -2
  4. package/dist/lens/{CascadePanel-BRmkM66c.js → CascadePanel-bXr7ekeZ.js} +74 -74
  5. package/dist/lens/{ChartDataEquivalent-CcGY9owW.js → ChartDataEquivalent-ZsncHfTF.js} +1 -1
  6. package/dist/lens/{ChartPanel-CdQYCwUh.js → ChartPanel-Cku9c87t.js} +105 -105
  7. package/dist/lens/{CoveragePanel-BdbUu97M.js → CoveragePanel-DE3fi5c7.js} +36 -36
  8. package/dist/lens/{GaugePanel-BPSnyl2f.js → GaugePanel-DwR4zylR.js} +8 -8
  9. package/dist/lens/{MapPanel-CMGzE0bO.js → MapPanel-DJSiLZSz.js} +22 -22
  10. package/dist/lens/{MetricFlowPanel-Qo6h8eYB.js → MetricFlowPanel-Dsp_ntas.js} +15 -15
  11. package/dist/lens/{MetricHierarchyPanel-M6Jj_8f3.js → MetricHierarchyPanel-BYcy4FNw.js} +19 -19
  12. package/dist/lens/{MetricRelationshipPanel-o1JgnNB5.js → MetricRelationshipPanel-Gh5RKIu1.js} +20 -20
  13. package/dist/lens/PrintReport-RnKpLle9.js +1954 -0
  14. package/dist/lens/QualityChip-BxAn3wh6.js +90 -0
  15. package/dist/lens/TablePanel-DU_ydQ1x.js +980 -0
  16. package/dist/lens/{adapter-LlQCVH2d.js → adapter-CZZIKpwb.js} +7 -7
  17. package/dist/lens/contract/schemas.d.ts +4 -0
  18. package/dist/lens/contract/schemas.d.ts.map +1 -1
  19. package/dist/lens/contract/types.d.ts +23 -0
  20. package/dist/lens/contract/types.d.ts.map +1 -1
  21. package/dist/lens/{dashboardEdit-CzTrZ9GY.js → dashboardEdit-BLzL02OH.js} +31 -31
  22. package/dist/lens/formula/FormulaTip.d.ts +20 -0
  23. package/dist/lens/formula/FormulaTip.d.ts.map +1 -0
  24. package/dist/lens/formula/FormulaView.d.ts +34 -0
  25. package/dist/lens/formula/FormulaView.d.ts.map +1 -0
  26. package/dist/lens/formula/PanelFormula.d.ts +17 -0
  27. package/dist/lens/formula/PanelFormula.d.ts.map +1 -0
  28. package/dist/lens/formula/element.d.ts +22 -0
  29. package/dist/lens/formula/element.d.ts.map +1 -0
  30. package/dist/lens/formula/values.d.ts +20 -0
  31. package/dist/lens/formula/values.d.ts.map +1 -0
  32. package/dist/lens/icons.d.ts +5 -0
  33. package/dist/lens/icons.d.ts.map +1 -1
  34. package/dist/lens/{index-C9_EJaLN.js → index-BJIuggdQ.js} +6232 -5521
  35. package/dist/lens/{index-ha5KBmiS.js → index-Dm3Y4NDq.js} +1 -1
  36. package/dist/lens/index.d.ts +2 -0
  37. package/dist/lens/index.d.ts.map +1 -1
  38. package/dist/lens/index.js +57 -54
  39. package/dist/lens/{install-B0hhW_BN.js → install-C48hgC9S.js} +1 -1
  40. package/dist/lens/{install-z4ugcXiK.js → install-DB0eod1K.js} +1 -1
  41. package/dist/lens/{install-0VKAMdaz.js → install-DCaRpfvv.js} +1 -1
  42. package/dist/lens/{install-D50hM31K.js → install-pvJpTP1f.js} +1 -1
  43. package/dist/lens/katex-B6_r1m5T.js +11681 -0
  44. package/dist/lens/{keys-B3RofDXR.js → keys-BAkGzg_y.js} +2 -2
  45. package/dist/lens/panels/PanelFrame.d.ts.map +1 -1
  46. package/dist/lens/panels/StatPanel.d.ts.map +1 -1
  47. package/dist/lens/panels/TablePanel.d.ts.map +1 -1
  48. package/dist/lens/{prefetch-BGXardWv.js → prefetch-j8VKR0tY.js} +2 -2
  49. package/dist/lens/{prefetchPanels-DXHorJDF.js → prefetchPanels-vwQqxrs4.js} +1 -1
  50. package/dist/lens/print/PrintReport.d.ts.map +1 -1
  51. package/dist/lens/print/formula.d.ts +9 -0
  52. package/dist/lens/print/formula.d.ts.map +1 -1
  53. package/dist/lens/{print-BSeT1zzv.js → print-CuBcYmVF.js} +1 -1
  54. package/dist/lens/runtime/messages.d.ts.map +1 -1
  55. package/dist/lens/runtime/provider.d.ts +1 -0
  56. package/dist/lens/runtime/provider.d.ts.map +1 -1
  57. package/dist/lens/{scales-nh-3WZ_4.js → scales-BSDq-uby.js} +3 -3
  58. package/dist/lens/style.css +1 -1
  59. package/dist/sdk-identity.cjs +3 -3
  60. package/dist/sdk-identity.js +3 -3
  61. package/dist/sdk-identity.json +2 -2
  62. package/package.json +1 -1
  63. package/dist/lens/PrintReport-xIL8mIuB.js +0 -1907
  64. package/dist/lens/TablePanel-DXQcrnkI.js +0 -947
  65. package/dist/lens/metricViews-KImVDfFt.js +0 -211
@@ -1,211 +0,0 @@
1
- import { createComponent as w, setAttribute as K, insert as N, effect as A, className as C, template as S } from "solid-js/web";
2
- import { Show as E } from "solid-js";
3
- import { an as M, ao as O, ap as R, _ as D, aq as V, ar as B, as as F, u as I } from "./index-C9_EJaLN.js";
4
- import "solid-js/store";
5
- var P = /* @__PURE__ */ S("<span><span class=lens-quality-chip-label>");
6
- const Q = {
7
- verified: {
8
- className: "lens-quality-verified",
9
- icon: F,
10
- labelKey: "confidence.verified",
11
- fallback: "Verified"
12
- },
13
- calculated: {
14
- className: "lens-quality-calculated",
15
- icon: B,
16
- labelKey: "confidence.calculated",
17
- fallback: "Calculated"
18
- },
19
- proxy: {
20
- className: "lens-quality-proxy",
21
- icon: V,
22
- labelKey: "confidence.proxy",
23
- fallback: "Proxy"
24
- },
25
- requires_reconciliation: {
26
- className: "lens-quality-requires-reconciliation",
27
- icon: D,
28
- labelKey: "confidence.requires_reconciliation",
29
- fallback: "Requires reconciliation"
30
- }
31
- }, g = {
32
- config_required: {
33
- className: "lens-quality-config-required",
34
- icon: R,
35
- labelKey: "availability.config_required",
36
- fallback: "Configuration required"
37
- },
38
- empty_source: {
39
- className: "lens-quality-empty-source",
40
- icon: O,
41
- labelKey: "availability.empty_source",
42
- fallback: "No source data"
43
- },
44
- unavailable: {
45
- className: "lens-quality-unavailable",
46
- icon: M,
47
- labelKey: "availability.unavailable",
48
- fallback: "Unavailable"
49
- }
50
- };
51
- function z({
52
- confidence: e,
53
- availability: a
54
- }) {
55
- if (a && a !== "available")
56
- return {
57
- axis: "availability",
58
- value: a,
59
- meta: g[a]
60
- };
61
- if (e) return {
62
- axis: "confidence",
63
- value: e,
64
- meta: Q[e]
65
- };
66
- }
67
- function W(e) {
68
- const a = I(), n = () => z({
69
- confidence: e.confidence,
70
- availability: e.availability
71
- });
72
- return w(E, {
73
- get when() {
74
- return n();
75
- },
76
- children: (r) => {
77
- const i = a(r().meta.labelKey, r().meta.fallback), o = r().meta.icon;
78
- return (() => {
79
- var l = P(), u = l.firstChild;
80
- return K(l, "title", i), N(l, w(o, {
81
- className: "lens-quality-chip-icon"
82
- }), u), N(u, i), A(() => C(l, ["lens-status-chip", "lens-quality-chip", r().meta.className, e.className, e.class].filter(Boolean).join(" "))), l;
83
- })();
84
- }
85
- });
86
- }
87
- const L = /* @__PURE__ */ new Set(["add", "subtract"]);
88
- function x(e, a) {
89
- return e === "subtract" ? -a : a;
90
- }
91
- function m(e, a, n) {
92
- const r = e.confidence ?? a.confidence ?? n.confidence, i = e.availability ?? a.availability ?? n.availability, o = e.value.kind === "unavailable", l = o ? i && i !== "available" ? i : "unavailable" : i;
93
- return {
94
- ...r ? { confidence: r } : {},
95
- ...l ? { availability: l } : {},
96
- showDash: o || l !== void 0 && l !== "available"
97
- };
98
- }
99
- function Y(e, a, n) {
100
- var r;
101
- return a.kind !== "ok" ? [] : (((r = e.metricFlow) == null ? void 0 : r.stages) ?? []).map((i) => {
102
- const o = a.resolve(i.key), l = m(o, i, e), u = o.value.kind === "value" ? o.value.value : 0, v = L.has(i.role);
103
- let c = "";
104
- return l.showDash && i.role === "add" ? c = "+" : l.showDash && i.role === "subtract" ? c = "−" : v ? c = x(i.role, u) >= 0 ? "+" : "−" : (i.role === "intermediate" || i.role === "result") && (c = "="), {
105
- ...l,
106
- stage: i,
107
- role: i.role,
108
- operator: c,
109
- text: n(v ? Math.abs(u) : u)
110
- };
111
- });
112
- }
113
- function J(e, a) {
114
- var l, u;
115
- const n = (l = e.metricFlow) == null ? void 0 : l.reconcile;
116
- if (a.kind !== "ok" || n === void 0) return;
117
- let r = 0, i;
118
- for (const v of ((u = e.metricFlow) == null ? void 0 : u.stages) ?? []) {
119
- const c = a.resolve(v.key).value;
120
- if (v.role === "result") {
121
- if (c.kind !== "value") return;
122
- i = c.value;
123
- continue;
124
- }
125
- if (v.role !== "intermediate") {
126
- if (c.kind !== "value") return;
127
- r += x(v.role, c.value);
128
- }
129
- }
130
- if (i === void 0) return;
131
- const o = i - r;
132
- return Math.abs(o) <= (n.tolerance ?? 0) ? void 0 : o;
133
- }
134
- function X(e, a, n, r) {
135
- var h, p;
136
- if (a.kind !== "ok") return [];
137
- const i = a.resolve, o = ((h = e.metricHierarchy) == null ? void 0 : h.rows) ?? [], l = (p = e.metricHierarchy) == null ? void 0 : p.reconcile, u = new Map(o.map((t) => [t.key, t])), v = new Set(o.map((t) => t.parent).filter((t) => !!t)), c = /* @__PURE__ */ new Map();
138
- for (const t of o) {
139
- if (!t.parent) continue;
140
- const s = c.get(t.parent) ?? [];
141
- s.push(t), c.set(t.parent, s);
142
- }
143
- const T = (t) => {
144
- if (typeof t.depth == "number") return t.depth;
145
- let s = 0, d = t;
146
- const f = /* @__PURE__ */ new Set();
147
- for (; d != null && d.parent && !f.has(d.key) && (f.add(d.key), d = u.get(d.parent), !!d); )
148
- s += 1;
149
- return s;
150
- };
151
- return o.map((t) => {
152
- const s = i(t.key), d = m(s, t, e), f = c.get(t.key);
153
- let b;
154
- if (l && f && f.length > 0 && s.value.kind === "value") {
155
- let k = 0, q = !0;
156
- for (const y of f) {
157
- const _ = i(y.key).value;
158
- if (_.kind !== "value") {
159
- q = !1;
160
- break;
161
- }
162
- k += _.value;
163
- }
164
- if (q) {
165
- const y = s.value.value - k;
166
- b = { balanced: Math.abs(y) <= (l.tolerance ?? 0), delta: y };
167
- }
168
- }
169
- return {
170
- ...d,
171
- row: t,
172
- depth: T(t),
173
- isParent: v.has(t.key),
174
- valueText: s.value.kind === "value" ? n(s.value.value) : "—",
175
- ...s.share !== void 0 ? { shareText: r(s.share) } : {},
176
- ...b ? { reconcile: b } : {}
177
- };
178
- });
179
- }
180
- function Z(e, a, n, r) {
181
- if (!n) return;
182
- const i = (a == null ? void 0 : a.kind) === "ok" ? a.resolve(n.key) : { value: { kind: "unavailable" } };
183
- return {
184
- ...m(i, n, e),
185
- end: n,
186
- valueText: i.value.kind === "value" ? r(i.value.value) : "—"
187
- };
188
- }
189
- const j = {
190
- association: "Association",
191
- derivation: "Derivation",
192
- reconciliation: "Reconciliation"
193
- };
194
- function ee(e) {
195
- const a = e.direction ?? "bidirectional";
196
- return e.type !== "derivation" || a === "bidirectional" ? { horizontal: "⇄", vertical: "⇵" } : a === "target_to_source" ? { horizontal: "←", vertical: "↑" } : { horizontal: "→", vertical: "↓" };
197
- }
198
- function ae(e, a, n) {
199
- return (e == null ? void 0 : e.type) === "derivation" && e.direction === "target_to_source" ? { source: n, target: a } : { source: a, target: n };
200
- }
201
- export {
202
- W as Q,
203
- Z as a,
204
- j as b,
205
- ee as c,
206
- J as d,
207
- ae as e,
208
- Y as f,
209
- X as h,
210
- z as r
211
- };