@iota-uz/sdk 0.5.2 → 0.5.4
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/dist/client-host/identity.d.ts +4 -4
- package/dist/client-host/identity.js +2 -2
- package/dist/lens/{CascadePanel-DnwWRglV.js → CascadePanel-CdeeYZsY.js} +1 -1
- package/dist/lens/{ChartHost-DohEf1-L.js → ChartHost-DLcWF7pC.js} +2 -2
- package/dist/lens/{ChartPanel-WhiPcjdF.js → ChartPanel-DBX4StoU.js} +88 -88
- package/dist/lens/{CoveragePanel-BjmHpQIZ.js → CoveragePanel-C5Y50Ja8.js} +1 -1
- package/dist/lens/{GaugePanel-CmQ4ShEf.js → GaugePanel-QdD8-G_m.js} +1 -1
- package/dist/lens/{MapPanel-B9q3sceX.js → MapPanel-BYrx4srW.js} +20 -19
- package/dist/lens/{MetricFlowPanel-HcjNwmDG.js → MetricFlowPanel-LreyGLdP.js} +2 -2
- package/dist/lens/{MetricHierarchyPanel-D6EZ05aK.js → MetricHierarchyPanel-DvIh-llg.js} +2 -2
- package/dist/lens/{MetricRelationshipPanel--MlnSeD0.js → MetricRelationshipPanel-C-aL3I9t.js} +2 -2
- package/dist/lens/{PrintReport-CFq0u0ZA.js → PrintReport-QqzDAR7K.js} +5 -5
- package/dist/lens/{TablePanel-8NER1r6f.js → TablePanel-DFfsYjWR.js} +1 -1
- package/dist/lens/{adapter-Bl6H53g9.js → adapter-BoXhQplf.js} +5058 -5054
- package/dist/lens/charts/adapter.d.ts +9 -9
- package/dist/lens/charts/adapter.d.ts.map +1 -1
- package/dist/lens/charts/echarts/options.d.ts.map +1 -1
- package/dist/lens/controls/FacetFilterMenu.d.ts +2 -3
- package/dist/lens/controls/FacetFilterMenu.d.ts.map +1 -1
- package/dist/lens/{index-DGLFNPl4.js → index-C3g4ib1H.js} +2076 -2069
- package/dist/lens/{index-CIngYYVZ.js → index-D16WayLn.js} +1 -1
- package/dist/lens/index.js +1 -1
- package/dist/lens/{install-B6q-zRno.js → install-4afWuWQV.js} +1 -1
- package/dist/lens/{install-DNHJghsU.js → install-Cw9b8dcU.js} +1 -1
- package/dist/lens/{install-BdsfPB-W.js → install-DCnlqrJl.js} +1 -1
- package/dist/lens/{install-BM-Kt5qH.js → install-DiwRwFDZ.js} +1 -1
- package/dist/lens/{metricViews-CPJMPqcl.js → metricViews-qsMUANFL.js} +1 -1
- package/dist/lens/panels/ChartPanel.d.ts.map +1 -1
- package/dist/lens/panels/MapPanel.d.ts.map +1 -1
- package/dist/lens/panels/data.d.ts +6 -4
- package/dist/lens/panels/data.d.ts.map +1 -1
- package/dist/lens/{prefetch-14qoPAtc.js → prefetch-3fl1oLRK.js} +2 -2
- package/dist/lens/{prefetchPanels-C_-SP6Zx.js → prefetchPanels-DjyNoBKV.js} +1 -1
- package/dist/lens/{print-DRljk_Xa.js → print-D6eDEk5V.js} +1 -1
- package/dist/lens/runtime/provider.d.ts.map +1 -1
- package/dist/lens/{scales-sHVLUC1f.js → scales-CuZBfqCM.js} +58 -58
- package/dist/lens/style.css +1 -1
- package/dist/sdk-identity.cjs +3 -3
- package/dist/sdk-identity.js +3 -3
- package/dist/sdk-identity.json +2 -2
- package/package.json +1 -1
package/dist/lens/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as r, au as e, av as t, aw as o, ax as D, ay as E, az as S } from "./index-
|
|
1
|
+
import { at as r, au as e, av as t, aw as o, ax as D, ay as E, az as S } from "./index-C3g4ib1H.js";
|
|
2
2
|
import { SDKIdentityMismatchError as m, SDK_IDENTITY as O, SDK_PROTOCOL_VERSION as I, SDK_RELEASE_VERSION as _, SDK_SOURCE_COMMIT as h, assertSDKIdentity as R } from "@iota-uz/sdk/client-host";
|
|
3
3
|
export {
|
|
4
4
|
r as CONTRACT_VERSION,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as M, a as L, b as W, e as Y, i as I, c as q, g as R, d as Q, f as U, m as X, _ as k, t as H, h as J, j as Z, k as $, u as K, s as j, C as ee, l as ae, n as te, P as re, o as oe, p as ie, q as ne, r as se, v as le, w as ue, x as ve, y as ce, z as he, A as O, B as pe, D as N, E as fe, F as w, G as de, H as me, I as ye, J as T, K as xe, L as ge, M as Se, N as Ae, O as be } from "./adapter-
|
|
1
|
+
import { S as M, a as L, b as W, e as Y, i as I, c as q, g as R, d as Q, f as U, m as X, _ as k, t as H, h as J, j as Z, k as $, u as K, s as j, C as ee, l as ae, n as te, P as re, o as oe, p as ie, q as ne, r as se, v as le, w as ue, x as ve, y as ce, z as he, A as O, B as pe, D as N, E as fe, F as w, G as de, H as me, I as ye, J as T, K as xe, L as ge, M as Se, N as Ae, O as be } from "./adapter-BoXhQplf.js";
|
|
2
2
|
var De = (
|
|
3
3
|
/** @class */
|
|
4
4
|
function() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Q as U, t as $, _ as j, R as Z, T as J, U as q, E as F, V as Q, W as P, X as k, Y as K, n as X, Z as Y, $ as M, a0 as tt, C as et, o as at, a1 as rt, a2 as nt, h as it } from "./adapter-
|
|
1
|
+
import { Q as U, t as $, _ as j, R as Z, T as J, U as q, E as F, V as Q, W as P, X as k, Y as K, n as X, Z as Y, $ as M, a0 as tt, C as et, o as at, a1 as rt, a2 as nt, h as it } from "./adapter-BoXhQplf.js";
|
|
2
2
|
var ot = 256, st = (
|
|
3
3
|
/** @class */
|
|
4
4
|
function() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as ge, a3 as Ft, a4 as F, W as ue, a5 as $, a6 as sr, a7 as lr, a0 as ur, a8 as At, a9 as Gt, aa as cr, ab as fr, ac as Mt, ad as pr, ae as vr, af as gr, ag as hr, ah as yr, ai as Pt, e as h, o as he, aj as dr, ak as Q, al as mr, am as Sr, an as wr, ao as M, ap as ke, _ as L, aq as _r, ar as Pe, as as x, at as k, au as Et, av as Ot, aw as _, ax as re, ay as br, az as ye, aA as de, aB as Rr, aC as ee, aD as H, aE as Lt, aF as Cr, aG as U, aH as Ee, aI as Nt, aJ as Tr, aK as Ue, aL as Dr, aM as Fr, aN as Ye, F as I, aO as Be, aP as Je, aQ as Ar, aR as Gr, aS as Vt, aT as Oe, aU as Ae, aV as Mr, aW as Pr, aX as Er, aY as Or, aZ as Lr, a_ as ze, a$ as It, b0 as Nr, Y as xt, V as kt, b1 as Ge, b2 as Vr, n as Ir, b3 as xr, d as kr, f as Ur, b4 as Ut, b5 as Yr, b6 as Br, b7 as He, b8 as Jr, t as R, h as zr, b9 as Hr, ba as jr, bb as Xr, C as Wr, bc as je, bd as Yt, c as Xe, be as Kr, bf as qr, bg as Zr, bh as $r, bi as Qr, bj as en, bk as tn, bl as We, K as rn, bm as nn, bn as an, bo as on, bp as sn, q as Bt, bq as ln, br as un } from "./adapter-
|
|
1
|
+
import { L as ge, a3 as Ft, a4 as F, W as ue, a5 as $, a6 as sr, a7 as lr, a0 as ur, a8 as At, a9 as Gt, aa as cr, ab as fr, ac as Mt, ad as pr, ae as vr, af as gr, ag as hr, ah as yr, ai as Pt, e as h, o as he, aj as dr, ak as Q, al as mr, am as Sr, an as wr, ao as M, ap as ke, _ as L, aq as _r, ar as Pe, as as x, at as k, au as Et, av as Ot, aw as _, ax as re, ay as br, az as ye, aA as de, aB as Rr, aC as ee, aD as H, aE as Lt, aF as Cr, aG as U, aH as Ee, aI as Nt, aJ as Tr, aK as Ue, aL as Dr, aM as Fr, aN as Ye, F as I, aO as Be, aP as Je, aQ as Ar, aR as Gr, aS as Vt, aT as Oe, aU as Ae, aV as Mr, aW as Pr, aX as Er, aY as Or, aZ as Lr, a_ as ze, a$ as It, b0 as Nr, Y as xt, V as kt, b1 as Ge, b2 as Vr, n as Ir, b3 as xr, d as kr, f as Ur, b4 as Ut, b5 as Yr, b6 as Br, b7 as He, b8 as Jr, t as R, h as zr, b9 as Hr, ba as jr, bb as Xr, C as Wr, bc as je, bd as Yt, c as Xe, be as Kr, bf as qr, bg as Zr, bh as $r, bi as Qr, bj as en, bk as tn, bl as We, K as rn, bm as nn, bn as an, bo as on, bp as sn, q as Bt, bq as ln, br as un } from "./adapter-BoXhQplf.js";
|
|
2
2
|
function Jt(a) {
|
|
3
3
|
if (ge(a)) {
|
|
4
4
|
var t = new DOMParser();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bs as b, a3 as Ne, bt as R, e as d, i as V, L as Te, ah as Y, bu as q, bv as L, bw as Ge, ax as Be, bx as C, o as W, af as Fe, bc as Ke, by as Ue, bz as J, bA as $e, bB as We, t as w, _ as H, bC as Xe, K as Ze, bD as Ye, b4 as ce, bm as qe, I as Re, aT as Oe, bE as Ce, bF as Je, W as De, bg as Qe, bG as je, bo as et, bh as tt, bH as P, bI as A, a4 as K, bJ as he, b8 as ae, bK as ne, bL as it, a0 as rt, c as at, bM as nt, ae as ot, bN as Q, bO as j, bP as st, bn as lt, b1 as ut, bQ as pt, a9 as ct, bR as ht, bS as ve, bT as vt, bU as ft, bq as fe } from "./adapter-
|
|
1
|
+
import { bs as b, a3 as Ne, bt as R, e as d, i as V, L as Te, ah as Y, bu as q, bv as L, bw as Ge, ax as Be, bx as C, o as W, af as Fe, bc as Ke, by as Ue, bz as J, bA as $e, bB as We, t as w, _ as H, bC as Xe, K as Ze, bD as Ye, b4 as ce, bm as qe, I as Re, aT as Oe, bE as Ce, bF as Je, W as De, bg as Qe, bG as je, bo as et, bh as tt, bH as P, bI as A, a4 as K, bJ as he, b8 as ae, bK as ne, bL as it, a0 as rt, c as at, bM as nt, ae as ot, bN as Q, bO as j, bP as st, bn as lt, b1 as ut, bQ as pt, a9 as ct, bR as ht, bS as ve, bT as vt, bU as ft, bq as fe } from "./adapter-BoXhQplf.js";
|
|
2
2
|
var N = d, dt = R, U = -1, x = (
|
|
3
3
|
/** @class */
|
|
4
4
|
function() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as T, jsx as N } from "react/jsx-runtime";
|
|
2
|
-
import { a7 as K, a8 as A, a9 as S, W as C, aa as E, ab as M, ac as O, u as R } from "./index-
|
|
2
|
+
import { a7 as K, a8 as A, a9 as S, W as C, aa as E, ab as M, ac as O, u as R } from "./index-C3g4ib1H.js";
|
|
3
3
|
import "@iota-uz/sdk/client-host";
|
|
4
4
|
import "react";
|
|
5
5
|
const D = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartPanel.d.ts","sourceRoot":"","sources":["../../src/panels/ChartPanel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAW,KAAK,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,EAAuC,KAAK,YAAY,EAA+E,MAAM,mBAAmB,CAAA;AAsCvK,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,KAAK,CAAA;IACZ,OAAO,CAAC,EAAE,YAAY,CAAA;CACvB;AA+CD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAW3E;AAED,0DAA0D;AAC1D,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAwB9E;AAwED,eAAO,MAAM,iBAAiB,mBAAmB,CAAA;AACjD,eAAO,MAAM,cAAc,sBAAsB,CAAA;AAEjD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,CAoBvG;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,CA6B7H;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAA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A"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapPanel.d.ts","sourceRoot":"","sources":["../../src/panels/MapPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,wBAAwB,EAAE,aAAa,EAAE,SAAS,EAAW,KAAK,EAAE,MAAM,aAAa,CAAA;AAC5G,OAAO,KAAK,EAAmB,YAAY,EAAmC,MAAM,mBAAmB,CAAA;AACvG,OAAO,EAAkE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAA;AAMjH,eAAO,MAAM,qBAAqB,QAAkB,CAAA;AAEpD,iFAAiF;AACjF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAQ7F;AAgED,qEAAqE;AACrE,wBAAsB,eAAe,CACnC,MAAM,EAAE,aAAa,EACrB,eAAe,EAAE,MAAM,EACvB,OAAO,GAAE,OAAO,KAAa,EAC7B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,wBAAwB,CAAC,CA8BnC;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,wBAAwB,GAAG,KAAK,GAAG,SAAS,CAkB9G;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,CAAA;IACZ,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,OAAO,CAAC,EAAE,OAAO,KAAK,CAAA;IACtB,KAAK,CAAC,EAAE,eAAe,CAAA;CACxB;AAMD,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"MapPanel.d.ts","sourceRoot":"","sources":["../../src/panels/MapPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,wBAAwB,EAAE,aAAa,EAAE,SAAS,EAAW,KAAK,EAAE,MAAM,aAAa,CAAA;AAC5G,OAAO,KAAK,EAAmB,YAAY,EAAmC,MAAM,mBAAmB,CAAA;AACvG,OAAO,EAAkE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAA;AAMjH,eAAO,MAAM,qBAAqB,QAAkB,CAAA;AAEpD,iFAAiF;AACjF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAQ7F;AAgED,qEAAqE;AACrE,wBAAsB,eAAe,CACnC,MAAM,EAAE,aAAa,EACrB,eAAe,EAAE,MAAM,EACvB,OAAO,GAAE,OAAO,KAAa,EAC7B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,wBAAwB,CAAC,CA8BnC;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,wBAAwB,GAAG,KAAK,GAAG,SAAS,CAkB9G;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,CAAA;IACZ,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,OAAO,CAAC,EAAE,OAAO,KAAK,CAAA;IACtB,KAAK,CAAC,EAAE,eAAe,CAAA;CACxB;AAMD,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,aAAa,2CAwGxF"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { Availability, Confidence, Encoding, Frame, Panel, Theme } from '../contract';
|
|
2
2
|
/**
|
|
3
3
|
* Resolves a datum's color the way the chart adapter does, so a React-rendered
|
|
4
|
-
* legend cannot disagree with the plot:
|
|
5
|
-
*
|
|
6
|
-
* the panel accent.
|
|
4
|
+
* legend cannot disagree with the plot: a semantic series entry keyed by label
|
|
5
|
+
* first, then the panel's own `panelId:index` entry, then the palette order,
|
|
6
|
+
* then the panel accent.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* A named entry wins because it identifies the business series even when a
|
|
9
|
+
* deferred frame contains a subset in a different order. `positional: false`
|
|
10
|
+
* drops the `panelId:index` entry. That entry pins a color
|
|
9
11
|
* to the n-th row of the panel's *own* frame, so once the panel is showing a
|
|
10
12
|
* drill level it describes rows that are no longer on screen — the legend was
|
|
11
13
|
* printing the root's second color next to the level's second slice, which the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/panels/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAG1F
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/panels/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAG1F;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,EAAE,UAAiB,EAAE,MAAM,EAAE,GAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAO,GACvF,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CActD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,EAAE,MAAM,EAAE,UAAiB,EAAE,MAAM,EAAE,GAAE;IACrC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAC1B,UAAU,CAAC,EAAE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AS,GACjB;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,eAAe,CAAA;CAAE,GACzD;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAY/C,mFAAmF;AACnF,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAO/D;AAiBD,MAAM,WAAW,iBAAiB;IAChC,uDAAuD;IACvD,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAA;IACzC,8CAA8C;IAC9C,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAA;CACtC;AAaD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAoDjG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var n = Object.defineProperty;
|
|
2
2
|
var o = (h, e, t) => e in h ? n(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t;
|
|
3
3
|
var c = (h, e, t) => o(h, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { i as f } from "./index-
|
|
4
|
+
import { i as f } from "./index-C3g4ib1H.js";
|
|
5
5
|
class g {
|
|
6
6
|
constructor(e = {}) {
|
|
7
7
|
c(this, "capacity");
|
|
@@ -47,7 +47,7 @@ class g {
|
|
|
47
47
|
if (this.entries.has(e) || this.inflight.has(e)) return Promise.resolve();
|
|
48
48
|
const s = f(e, { fetcher: this.fetcher, csrf: this.csrf, prefetch: !0, signal: t }).then(async (i) => {
|
|
49
49
|
if (!i.endpoints.panel || t != null && t.aborted) return i;
|
|
50
|
-
const { prefetchDocumentFirstRow: r } = await import("./prefetchPanels-
|
|
50
|
+
const { prefetchDocumentFirstRow: r } = await import("./prefetchPanels-DjyNoBKV.js");
|
|
51
51
|
return r(i, {
|
|
52
52
|
csrf: this.csrf,
|
|
53
53
|
fetcher: this.fetcher,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as B, j as G, v as Q, k as V, l as z, m as W, p as X, n as Y, q as Z } from "./index-
|
|
1
|
+
import { w as B, j as G, v as Q, k as V, l as z, m as W, p as X, n as Y, q as Z } from "./index-C3g4ib1H.js";
|
|
2
2
|
function p(i) {
|
|
3
3
|
return Object.values(i.frames)[0];
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/runtime/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EASf,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAA8C,gBAAgB,EAAE,WAAW,EAAE,SAAS,EAAgB,SAAS,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE3N,OAAO,EASL,KAAK,YAAY,EAClB,MAAM,WAAW,CAAA;AAelB,OAAO,EAIL,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,cAAc,CAAA;AAGrB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/runtime/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EASf,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAA8C,gBAAgB,EAAE,WAAW,EAAE,SAAS,EAAgB,SAAS,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE3N,OAAO,EASL,KAAK,YAAY,EAClB,MAAM,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,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,GAAG,SAAS,CAG1F;AAED,wBAAgB,aAAa,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,CAG7E;AAyGD,wBAAgB,YAAY,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,eAAe,KAAK,MAAM,CAMhG;AAED,wBAAgB,gBAAgB,IAAI,oBAAoB,CAIvD;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,IAAI,iBAAiB,CAAC,QAAQ,CAAC,CAE7D;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAE/C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { as as
|
|
2
|
-
const
|
|
1
|
+
import { as as b } from "./index-C3g4ib1H.js";
|
|
2
|
+
const l = {
|
|
3
3
|
annotation: (n) => `annotation:${n}`,
|
|
4
4
|
average: (n) => `average:${n}`,
|
|
5
5
|
comparison: "comparison",
|
|
@@ -14,70 +14,70 @@ function F(n, e) {
|
|
|
14
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
16
|
function M(n) {
|
|
17
|
-
var r;
|
|
18
|
-
const { temporal: e, labels: t, formatValue: a, formatCategory: d } = n, s = n.hidden ?? /* @__PURE__ */ new Set(), c = [],
|
|
19
|
-
c.push({ ...
|
|
17
|
+
var r, o;
|
|
18
|
+
const { temporal: e, labels: t, formatValue: a, formatCategory: d } = n, s = n.hidden ?? /* @__PURE__ */ new Set(), c = [], i = (u) => {
|
|
19
|
+
c.push({ ...u, active: !s.has(u.id) });
|
|
20
20
|
};
|
|
21
|
-
e != null && e.period &&
|
|
22
|
-
id:
|
|
21
|
+
e != null && e.period && i({
|
|
22
|
+
id: l.incomplete,
|
|
23
23
|
kind: "incomplete",
|
|
24
24
|
label: F(e, t),
|
|
25
25
|
detail: d(e.period.category),
|
|
26
26
|
tone: "faint",
|
|
27
27
|
stroke: "hatch"
|
|
28
|
-
}), n.hasComparison &&
|
|
29
|
-
id:
|
|
28
|
+
}), n.hasComparison && i({
|
|
29
|
+
id: l.comparison,
|
|
30
30
|
kind: "comparison",
|
|
31
31
|
label: (t == null ? void 0 : t.previous) ?? "Previous",
|
|
32
32
|
tone: "series",
|
|
33
33
|
stroke: "dashed"
|
|
34
34
|
});
|
|
35
|
-
for (const [
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
id:
|
|
35
|
+
for (const [u, m] of ((e == null ? void 0 : e.referenceLines) ?? []).entries()) {
|
|
36
|
+
const f = a(m.value);
|
|
37
|
+
i({
|
|
38
|
+
id: l.reference(u),
|
|
39
39
|
kind: "reference",
|
|
40
|
-
label:
|
|
40
|
+
label: m.label || f,
|
|
41
41
|
// The chip on the plot carries the value, so repeating it beside a
|
|
42
42
|
// label that is already the value would print it twice.
|
|
43
|
-
detail:
|
|
43
|
+
detail: m.label ? f : void 0,
|
|
44
44
|
tone: "warn",
|
|
45
45
|
stroke: "hairline"
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
for (const [
|
|
49
|
-
|
|
50
|
-
id:
|
|
48
|
+
for (const [u, m] of ((e == null ? void 0 : e.annotations) ?? []).entries())
|
|
49
|
+
i({
|
|
50
|
+
id: l.annotation(u),
|
|
51
51
|
kind: "annotation",
|
|
52
|
-
label:
|
|
53
|
-
detail: d(
|
|
52
|
+
label: m.label,
|
|
53
|
+
detail: d(m.at),
|
|
54
54
|
tone: "accent",
|
|
55
55
|
stroke: "band"
|
|
56
56
|
});
|
|
57
|
-
e != null && e.regression &&
|
|
58
|
-
id:
|
|
57
|
+
e != null && e.regression && i({
|
|
58
|
+
id: l.trend,
|
|
59
59
|
kind: "trend",
|
|
60
60
|
label: e.regression.label || (t == null ? void 0 : t.trend) || "Trend",
|
|
61
61
|
tone: "trend",
|
|
62
62
|
stroke: "dashed"
|
|
63
63
|
});
|
|
64
|
-
for (const
|
|
65
|
-
|
|
66
|
-
id:
|
|
64
|
+
for (const u of (e == null ? void 0 : e.movingAverages) ?? [])
|
|
65
|
+
i({
|
|
66
|
+
id: l.average(u.window),
|
|
67
67
|
kind: "average",
|
|
68
|
-
label:
|
|
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
|
-
return (
|
|
73
|
-
id:
|
|
72
|
+
return (o = e == null ? void 0 : e.period) != null && o.annualizedField && i({
|
|
73
|
+
id: l.estimate,
|
|
74
74
|
kind: "estimate",
|
|
75
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
|
-
}), e != null && e.forecast &&
|
|
80
|
-
id:
|
|
79
|
+
}), e != null && e.forecast && i({
|
|
80
|
+
id: l.forecast,
|
|
81
81
|
kind: "forecast",
|
|
82
82
|
label: e.forecast.label || (t == null ? void 0 : t.forecast) || "Forecast",
|
|
83
83
|
detail: d(e.forecast.start),
|
|
@@ -111,26 +111,26 @@ function S(n) {
|
|
|
111
111
|
return "--lens-text-faint";
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
const h = 1,
|
|
115
|
-
function
|
|
114
|
+
const h = 1, p = 10 ** h, k = 0.05;
|
|
115
|
+
function g(n) {
|
|
116
116
|
return n !== void 0 && Number.isFinite(n);
|
|
117
117
|
}
|
|
118
118
|
function T(n, e) {
|
|
119
|
-
if (!
|
|
119
|
+
if (!g(e) || e === 0) return n.map(() => {
|
|
120
120
|
});
|
|
121
|
-
const t = n.map((r) =>
|
|
122
|
-
if (!(a.length === t.length && a.every((r) => r >= 0) && Math.abs(a.reduce((r,
|
|
123
|
-
const s = t.map((r) => Math.floor((r ?? 0) *
|
|
124
|
-
let
|
|
125
|
-
c.sort((r,
|
|
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
|
+
let i = 100 * p - s.reduce((r, o) => r + o, 0);
|
|
125
|
+
c.sort((r, o) => o.fraction - r.fraction || r.index - o.index);
|
|
126
126
|
for (const { index: r } of c) {
|
|
127
|
-
if (
|
|
128
|
-
s[r] = s[r] + 1,
|
|
127
|
+
if (i <= 0) break;
|
|
128
|
+
s[r] = s[r] + 1, i -= 1;
|
|
129
129
|
}
|
|
130
|
-
return s.map((r) => r /
|
|
130
|
+
return s.map((r) => r / p);
|
|
131
131
|
}
|
|
132
132
|
function P(n, e, t) {
|
|
133
|
-
if (!
|
|
133
|
+
if (!g(n)) return "";
|
|
134
134
|
const a = new Intl.NumberFormat(e, {
|
|
135
135
|
style: "unit",
|
|
136
136
|
unit: "percent",
|
|
@@ -138,9 +138,9 @@ function P(n, e, t) {
|
|
|
138
138
|
minimumFractionDigits: h,
|
|
139
139
|
maximumFractionDigits: h
|
|
140
140
|
}).formatToParts(Number(n.toFixed(h)));
|
|
141
|
-
return
|
|
141
|
+
return b(a, t);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function w(n) {
|
|
144
144
|
if (typeof n == "number" && Number.isFinite(n)) return n;
|
|
145
145
|
if (typeof n != "string" || n.trim() === "") return;
|
|
146
146
|
const e = Number(n);
|
|
@@ -152,15 +152,15 @@ function x(n, e) {
|
|
|
152
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
154
|
return n.rows.flatMap((c) => {
|
|
155
|
-
const
|
|
156
|
-
return
|
|
155
|
+
const i = w(c[s]);
|
|
156
|
+
return i === void 0 ? [] : [i];
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
function z(n, e, t) {
|
|
160
160
|
if (t === void 0) return !1;
|
|
161
161
|
const a = x(n, e);
|
|
162
162
|
if (!a || a.length < 3) return !1;
|
|
163
|
-
const d = a.map((
|
|
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
166
|
return s > 0 && c / s >= t;
|
|
@@ -169,18 +169,18 @@ function $(n, e, t, a) {
|
|
|
169
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 = n.columns.findIndex((f) => f.name === d),
|
|
173
|
-
if (c < 0 ||
|
|
174
|
-
const r = /* @__PURE__ */ new Set(),
|
|
172
|
+
const c = n.columns.findIndex((f) => f.name === d), i = n.columns.findIndex((f) => f.name === s);
|
|
173
|
+
if (c < 0 || i < 0) return !1;
|
|
174
|
+
const r = /* @__PURE__ */ new Set(), o = [];
|
|
175
175
|
for (const f of n.rows) {
|
|
176
|
-
const
|
|
177
|
-
(typeof
|
|
178
|
-
const y =
|
|
179
|
-
y !== void 0 &&
|
|
176
|
+
const v = f[c];
|
|
177
|
+
(typeof v == "string" || typeof v == "number" || typeof v == "boolean" || typeof v == "bigint") && r.add(String(v));
|
|
178
|
+
const y = w(f[i]);
|
|
179
|
+
y !== void 0 && o.push(y);
|
|
180
180
|
}
|
|
181
|
-
if (r.size < 3 ||
|
|
182
|
-
const u = Math.min(...
|
|
183
|
-
return a === void 0 ||
|
|
181
|
+
if (r.size < 3 || o.length === 0 || o.some((f) => f <= 1)) return !1;
|
|
182
|
+
const u = Math.min(...o), m = Math.max(...o);
|
|
183
|
+
return a === void 0 || m / u >= a;
|
|
184
184
|
}
|
|
185
185
|
export {
|
|
186
186
|
N as a,
|
|
@@ -190,6 +190,6 @@ export {
|
|
|
190
190
|
D as e,
|
|
191
191
|
P as f,
|
|
192
192
|
z as l,
|
|
193
|
-
|
|
193
|
+
l as o,
|
|
194
194
|
$ as s
|
|
195
195
|
};
|