@iota-uz/sdk 0.25.1 → 0.27.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.
- package/dist/client-host/identity.d.ts +4 -4
- package/dist/client-host/identity.js +2 -2
- package/dist/lens/{CascadePanel-Cujqv1pL.js → CascadePanel-CCOzLuq0.js} +64 -64
- package/dist/lens/{ChartDataEquivalent-C31BXZpe.js → ChartDataEquivalent-jAEMAHLz.js} +1 -1
- package/dist/lens/{ChartPanel-DIerec8R.js → ChartPanel-BM5BNY_0.js} +93 -93
- package/dist/lens/{CoveragePanel-Boyvj1Fs.js → CoveragePanel-D9dnY-z3.js} +20 -20
- package/dist/lens/DashboardPanels.d.ts +14 -0
- package/dist/lens/DashboardPanels.d.ts.map +1 -1
- package/dist/lens/{GaugePanel-D3muYFL2.js → GaugePanel-Da_8U-va.js} +12 -12
- package/dist/lens/LensDashboard.d.ts +24 -0
- package/dist/lens/LensDashboard.d.ts.map +1 -1
- package/dist/lens/{MapPanel-Ceq0E2Ek.js → MapPanel-C_5zKBAZ.js} +16 -16
- package/dist/lens/{MetricFlowPanel-D1KmjR32.js → MetricFlowPanel-CjIbdcGO.js} +28 -28
- package/dist/lens/{MetricHierarchyPanel-DgUyQl0W.js → MetricHierarchyPanel-B2P_uTgk.js} +17 -17
- package/dist/lens/{MetricRelationshipPanel-DMHalo2c.js → MetricRelationshipPanel-0d4fAcHP.js} +17 -17
- package/dist/lens/{PrintReport-ctxUL0F8.js → PrintReport-awUBISRB.js} +5 -5
- package/dist/lens/{TablePanel-Z9SiddhN.js → TablePanel-D46pk8E6.js} +213 -213
- package/dist/lens/{adapter-D4u_-czr.js → adapter-BJKTlRCi.js} +7 -7
- package/dist/lens/contract/schemas.d.ts +2 -0
- package/dist/lens/contract/schemas.d.ts.map +1 -1
- package/dist/lens/contract/types.d.ts +7 -0
- package/dist/lens/contract/types.d.ts.map +1 -1
- package/dist/lens/controls/FilterBar.d.ts +9 -2
- package/dist/lens/controls/FilterBar.d.ts.map +1 -1
- package/dist/lens/controls/ScopedFilterControls.d.ts.map +1 -1
- package/dist/lens/controls/toolbarOverflow.d.ts +5 -0
- package/dist/lens/controls/toolbarOverflow.d.ts.map +1 -0
- package/dist/lens/dashboardEdit-KuYE7jYk.js +284 -0
- package/dist/lens/explore/ExplorePanel.d.ts.map +1 -1
- package/dist/lens/icons.d.ts +8 -0
- package/dist/lens/icons.d.ts.map +1 -1
- package/dist/lens/{index-B8_gR9O0.js → index-BHhPCIjl.js} +1 -1
- package/dist/lens/index-C2oaf8ou.js +17066 -0
- package/dist/lens/index.d.ts +25 -2
- package/dist/lens/index.d.ts.map +1 -1
- package/dist/lens/index.js +52 -23
- package/dist/lens/{install-DzYk5WmV.js → install-Bu88-uMj.js} +1 -1
- package/dist/lens/{install-DE0rZji_.js → install-Ca0kMSB-.js} +1 -1
- package/dist/lens/{install-BFYeeAKJ.js → install-Y4ssavWy.js} +1 -1
- package/dist/lens/{install-DObyjvvP.js → install-ilsK_qly.js} +1 -1
- package/dist/lens/{keys-Bl8ABCBk.js → keys-B-YImOJ9.js} +2 -2
- package/dist/lens/{metricViews-CgYh0rJR.js → metricViews-CY3ENGQy.js} +10 -10
- package/dist/lens/panels/PanelFrame.d.ts +5 -0
- package/dist/lens/panels/PanelFrame.d.ts.map +1 -1
- package/dist/lens/panels/context.d.ts +5 -0
- package/dist/lens/panels/context.d.ts.map +1 -1
- package/dist/lens/panels/drillGate.d.ts +21 -0
- package/dist/lens/panels/drillGate.d.ts.map +1 -0
- package/dist/lens/panels/focusTrap.d.ts.map +1 -1
- package/dist/lens/panels/hostRenderers.d.ts +34 -0
- package/dist/lens/panels/hostRenderers.d.ts.map +1 -0
- package/dist/lens/panels/registry.d.ts.map +1 -1
- package/dist/lens/{prefetch-DwHEXti7.js → prefetch-H6lk56fj.js} +2 -2
- package/dist/lens/{prefetchPanels-CCHpQ9K2.js → prefetchPanels-BM6WTBt-.js} +5 -5
- package/dist/lens/{print-D_92Iy3k.js → print-DYkxBibF.js} +1 -1
- package/dist/lens/reports/DashboardEmptyState.d.ts +6 -0
- package/dist/lens/reports/DashboardEmptyState.d.ts.map +1 -0
- package/dist/lens/reports/ReportCompositionEditor.d.ts +42 -0
- package/dist/lens/reports/ReportCompositionEditor.d.ts.map +1 -0
- package/dist/lens/reports/ReportDestinationPicker.d.ts +23 -0
- package/dist/lens/reports/ReportDestinationPicker.d.ts.map +1 -0
- package/dist/lens/reports/ReportDialog.d.ts +26 -0
- package/dist/lens/reports/ReportDialog.d.ts.map +1 -0
- package/dist/lens/reports/ReportPicker.d.ts +35 -0
- package/dist/lens/reports/ReportPicker.d.ts.map +1 -0
- package/dist/lens/reports/ReportPlacementMenu.d.ts +14 -0
- package/dist/lens/reports/ReportPlacementMenu.d.ts.map +1 -0
- package/dist/lens/reports/ReportPlacementStatus.d.ts +30 -0
- package/dist/lens/reports/ReportPlacementStatus.d.ts.map +1 -0
- package/dist/lens/reports/ReportVersionNotice.d.ts +11 -0
- package/dist/lens/reports/ReportVersionNotice.d.ts.map +1 -0
- package/dist/lens/reports/contract/schemas.d.ts +9 -0
- package/dist/lens/reports/contract/schemas.d.ts.map +1 -1
- package/dist/lens/reports/contract/types.d.ts +41 -0
- package/dist/lens/reports/contract/types.d.ts.map +1 -1
- package/dist/lens/reports/dashboardEdit.d.ts +128 -0
- package/dist/lens/reports/dashboardEdit.d.ts.map +1 -0
- package/dist/lens/reports/dashboardEditTypes.d.ts +45 -0
- package/dist/lens/reports/dashboardEditTypes.d.ts.map +1 -0
- package/dist/lens/reports/draft.d.ts +28 -0
- package/dist/lens/reports/draft.d.ts.map +1 -1
- package/dist/lens/reports/editing.d.ts +176 -0
- package/dist/lens/reports/editing.d.ts.map +1 -0
- package/dist/lens/reports/guard.d.ts +40 -0
- package/dist/lens/reports/guard.d.ts.map +1 -0
- package/dist/lens/reports/layout.d.ts +34 -0
- package/dist/lens/reports/layout.d.ts.map +1 -0
- package/dist/lens/reports/picker.d.ts +97 -0
- package/dist/lens/reports/picker.d.ts.map +1 -0
- package/dist/lens/reports/placementHost.d.ts +61 -0
- package/dist/lens/reports/placementHost.d.ts.map +1 -0
- package/dist/lens/reports/unavailable.d.ts +13 -0
- package/dist/lens/reports/unavailable.d.ts.map +1 -0
- package/dist/lens/reports/version.d.ts +35 -0
- package/dist/lens/reports/version.d.ts.map +1 -0
- package/dist/lens/runtime/provider.d.ts +11 -0
- package/dist/lens/runtime/provider.d.ts.map +1 -1
- package/dist/lens/{scales-D6vubtdW.js → scales-COnESBiP.js} +1 -1
- 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-rtv0Acit.js +0 -13985
package/dist/lens/index.d.ts
CHANGED
|
@@ -4,10 +4,33 @@ export { LensDashboard, type LensDashboardProps, type LensToolbarContext } from
|
|
|
4
4
|
export { LensDashboardElement, registerLensDashboardElement } from './element';
|
|
5
5
|
export { CONTRACT_VERSION, ContractVersionMismatchError, DashboardDocumentSchema, parseDocument, type DashboardDocument, } from './contract';
|
|
6
6
|
export type { LensThemeMode } from './runtime';
|
|
7
|
-
export {
|
|
8
|
-
export
|
|
7
|
+
export { LensMessagesProvider } from './runtime';
|
|
8
|
+
export { createReportDraft, copyReportDefinition, duplicateReportPlacement, parseReportDefinition, parseReportComposition, ReportRevisionConflictError, reportDraftToken } from './reports/draft';
|
|
9
|
+
export type { ReportDefinition, ReportComposition, ReportPlacement, ReportSourceDescriptor, ReportDraftHost, ReportDraft, ReportRebaseMode, SaveIntent } from './reports/draft';
|
|
9
10
|
export { createFilterContextDraft, encodeFilterBoard, decodeFilterBoard, filterBoardURL, filterContextParam } from './reports/filterDraft';
|
|
10
11
|
export type { ContextBoard, ContextFilters, ContextPeriod, ContextInput, EffectiveContext, ContextEditor } from './contract/types';
|
|
11
12
|
export type { FilterDefaultsHost } from './reports/filterHost';
|
|
12
13
|
export { placeOpenedReport, placeLibraryReport } from './reports/placement';
|
|
14
|
+
export { compareReportVersion, reportPlacementActions, withoutUnavailablePlacements } from './reports/version';
|
|
15
|
+
export type { ReportVersionStatus, ReportRevision, ReportOperation, ReportActions } from './reports/version';
|
|
16
|
+
export { ReportVersionNotice } from './reports/ReportVersionNotice';
|
|
17
|
+
export { ReportPlacementProvider, reportPlacementAvailable, reportPlacementMenu, reportPlacementUnavailable, useReportPlacementHost } from './reports/placementHost';
|
|
18
|
+
export type { ReportPlacementAction, ReportPlacementActionHandlers, ReportPlacementHost } from './reports/placementHost';
|
|
19
|
+
export { placementFreshness, formatCalculatedAt } from './reports/ReportPlacementStatus';
|
|
20
|
+
export type { PlacementFreshness } from './reports/ReportPlacementStatus';
|
|
21
|
+
export { reportUnavailableCopy } from './reports/unavailable';
|
|
22
|
+
export type { HostPanelRenderer, HostPanelRendererProps, HostPanelRenderers } from './panels/hostRenderers';
|
|
23
|
+
export type { PanelRegistry, PanelComponent } from './panels/registry';
|
|
24
|
+
export type { PanelFrameState } from './runtime';
|
|
25
|
+
export { ReportPicker, type ReportPickerProps } from './reports/ReportPicker';
|
|
26
|
+
export { ReportDestinationPicker, type ReportDestinationPickerProps } from './reports/ReportDestinationPicker';
|
|
27
|
+
export { appendReportPicks, createReportPickerSelection, parseCatalogPage, parseDestinations } from './reports/picker';
|
|
28
|
+
export type { ReportCatalogEntry, ReportCatalogHost, ReportCatalogPage, ReportCatalogQuery, ReportCatalogScope, ReportDestination, ReportDestinationChoice, ReportDestinationConfirmation, ReportDestinationHost, ReportPick, ReportPickerConfirmation, } from './reports/picker';
|
|
29
|
+
export { ReportCompositionEditor } from './reports/ReportCompositionEditor';
|
|
30
|
+
export type { ReportCompositionEditorProps, ReportEditorLifecycle, ReportProposal, ReportProposalHandlers } from './reports/ReportCompositionEditor';
|
|
31
|
+
export type { LensDashboardChrome, LensDashboardEditing } from './reports/dashboardEditTypes';
|
|
32
|
+
export { createReportLeaveGuard } from './reports/guard';
|
|
33
|
+
export type { GuardedDraft, ReportLeaveChoice, ReportLeaveGuard } from './reports/guard';
|
|
34
|
+
export { configurePlacement, diffCompositions, movePlacement, movePlacementBefore, removePlacement, resizePlacement } from './reports/layout';
|
|
35
|
+
export type { CompositionChange, CompositionChangeKind, PlacementDirection, PlacementSettings } from './reports/layout';
|
|
13
36
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/lens/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,cAAc,CAAA;AAErB,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACjG,OAAO,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAA;AAC9E,OAAO,EACL,gBAAgB,EAChB,4BAA4B,EAC5B,uBAAuB,EACvB,aAAa,EACb,KAAK,iBAAiB,GACvB,MAAM,YAAY,CAAA;AACnB,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,cAAc,CAAA;AAErB,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACjG,OAAO,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAA;AAC9E,OAAO,EACL,gBAAgB,EAChB,4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AAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAC7I,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA"}
|
package/dist/lens/index.js
CHANGED
|
@@ -1,29 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SDKIdentityMismatchError as
|
|
1
|
+
import { aI as r, aJ as t, aK as s, L as o, aL as n, aM as i, aN as p, aO as c, aP as l, aQ as b, aR as m, aS as R, aT as P, aU as d, aV as D, aW as f, aX as C, aY as E, x as S, aZ as v, a_ as L, a$ as O, b0 as h, b1 as u, b2 as I, b3 as _, b4 as T, b5 as K, b6 as M, b7 as N, b8 as V, b9 as g, ba as k, bb as U, bc as x, bd as y, be as A, bf as B, bg as F, bh as Y, bi as j, bj as w, bk as z, bl as G, bm as H, bn as J, bo as Q, bp as W } from "./index-C2oaf8ou.js";
|
|
2
|
+
import { SDKIdentityMismatchError as Z, SDK_IDENTITY as $, SDK_PROTOCOL_VERSION as q, SDK_RELEASE_VERSION as ee, SDK_SOURCE_COMMIT as ae, assertSDKIdentity as re } from "@iota-uz/sdk/client-host";
|
|
3
3
|
export {
|
|
4
4
|
r as CONTRACT_VERSION,
|
|
5
5
|
t as ContractVersionMismatchError,
|
|
6
6
|
s as DashboardDocumentSchema,
|
|
7
7
|
o as LensDashboard,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
8
|
+
n as LensDashboardElement,
|
|
9
|
+
i as LensMessagesProvider,
|
|
10
|
+
p as ReportCompositionEditor,
|
|
11
|
+
c as ReportDestinationPicker,
|
|
12
|
+
l as ReportPicker,
|
|
13
|
+
b as ReportPlacementProvider,
|
|
14
|
+
m as ReportRevisionConflictError,
|
|
15
|
+
R as ReportVersionNotice,
|
|
16
|
+
Z as SDKIdentityMismatchError,
|
|
17
|
+
$ as SDK_IDENTITY,
|
|
18
|
+
q as SDK_PROTOCOL_VERSION,
|
|
19
|
+
ee as SDK_RELEASE_VERSION,
|
|
20
|
+
ae as SDK_SOURCE_COMMIT,
|
|
21
|
+
P as appendReportPicks,
|
|
22
|
+
re as assertSDKIdentity,
|
|
23
|
+
d as compareReportVersion,
|
|
24
|
+
D as configurePlacement,
|
|
25
|
+
f as copyReportDefinition,
|
|
26
|
+
C as createFilterContextDraft,
|
|
27
|
+
E as createReportDraft,
|
|
28
|
+
S as createReportLeaveGuard,
|
|
29
|
+
v as createReportPickerSelection,
|
|
30
|
+
L as decodeFilterBoard,
|
|
31
|
+
O as diffCompositions,
|
|
32
|
+
h as duplicateReportPlacement,
|
|
33
|
+
u as encodeFilterBoard,
|
|
34
|
+
I as filterBoardURL,
|
|
35
|
+
_ as filterContextParam,
|
|
36
|
+
T as formatCalculatedAt,
|
|
37
|
+
K as movePlacement,
|
|
38
|
+
M as movePlacementBefore,
|
|
39
|
+
N as parseCatalogPage,
|
|
40
|
+
V as parseDestinations,
|
|
41
|
+
g as parseDocument,
|
|
42
|
+
k as parseReportComposition,
|
|
43
|
+
U as parseReportDefinition,
|
|
44
|
+
x as placeLibraryReport,
|
|
45
|
+
y as placeOpenedReport,
|
|
46
|
+
A as placementFreshness,
|
|
47
|
+
B as registerLensDashboardElement,
|
|
48
|
+
F as removePlacement,
|
|
49
|
+
Y as reportDraftToken,
|
|
50
|
+
j as reportPlacementActions,
|
|
51
|
+
w as reportPlacementAvailable,
|
|
52
|
+
z as reportPlacementMenu,
|
|
53
|
+
G as reportPlacementUnavailable,
|
|
54
|
+
H as reportUnavailableCopy,
|
|
55
|
+
J as resizePlacement,
|
|
56
|
+
Q as useReportPlacementHost,
|
|
57
|
+
W as withoutUnavailablePlacements
|
|
29
58
|
};
|
|
@@ -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-BJKTlRCi.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-BJKTlRCi.js";
|
|
2
2
|
var ot = 256, st = (
|
|
3
3
|
/** @class */
|
|
4
4
|
function() {
|
|
@@ -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-BJKTlRCi.js";
|
|
2
2
|
var N = d, dt = R, U = -1, x = (
|
|
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-BJKTlRCi.js";
|
|
2
2
|
function Jt(a) {
|
|
3
3
|
if (ge(a)) {
|
|
4
4
|
var t = new DOMParser();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { use as _, insert as c, memo as $, createComponent as g, effect as y, className as C, setAttribute as h, template as m } from "solid-js/web";
|
|
2
2
|
import { createSignal as k, onMount as E, onCleanup as S, createEffect as v, Show as w } from "solid-js";
|
|
3
|
-
import { u as x } from "./index-
|
|
3
|
+
import { u as x } from "./index-C2oaf8ou.js";
|
|
4
4
|
import "solid-js/store";
|
|
5
5
|
var H = /* @__PURE__ */ m("<div role=img><div class=lens-chart-canvas>"), M = /* @__PURE__ */ m("<span class=lens-chart-load-error-detail>"), K = /* @__PURE__ */ m("<div class=lens-chart-load-error role=alert><span class=lens-chart-load-error-message>");
|
|
6
6
|
function I(e) {
|
|
@@ -21,7 +21,7 @@ function I(e) {
|
|
|
21
21
|
return (a = e.onHover) == null ? void 0 : a.call(e, r);
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
(e.adapter ? Promise.resolve(e.adapter) : import("./index-
|
|
24
|
+
(e.adapter ? Promise.resolve(e.adapter) : import("./index-BHhPCIjl.js").then(({
|
|
25
25
|
getChartAdapter: r
|
|
26
26
|
}) => r(e.input.kind))).then((r) => {
|
|
27
27
|
if (!(t || !o)) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
import { Show as E } from "solid-js";
|
|
3
|
-
import {
|
|
3
|
+
import { am as M, an as O, ao as R, _ as D, ap as V, aq as B, ar as F, u as I } from "./index-C2oaf8ou.js";
|
|
4
4
|
import "solid-js/store";
|
|
5
5
|
var P = /* @__PURE__ */ S("<span><span class=lens-quality-chip-label>");
|
|
6
6
|
const Q = {
|
|
@@ -64,7 +64,7 @@ function z({
|
|
|
64
64
|
meta: Q[e]
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function W(e) {
|
|
68
68
|
const a = I(), n = () => z({
|
|
69
69
|
confidence: e.confidence,
|
|
70
70
|
availability: e.availability
|
|
@@ -88,7 +88,7 @@ const L = /* @__PURE__ */ new Set(["add", "subtract"]);
|
|
|
88
88
|
function x(e, a) {
|
|
89
89
|
return e === "subtract" ? -a : a;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function b(e, a, n) {
|
|
92
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
93
|
return {
|
|
94
94
|
...r ? { confidence: r } : {},
|
|
@@ -99,7 +99,7 @@ function m(e, a, n) {
|
|
|
99
99
|
function Y(e, a, n) {
|
|
100
100
|
var r;
|
|
101
101
|
return a.kind !== "ok" ? [] : (((r = e.metricFlow) == null ? void 0 : r.stages) ?? []).map((i) => {
|
|
102
|
-
const o = a.resolve(i.key), l =
|
|
102
|
+
const o = a.resolve(i.key), l = b(o, i, e), u = o.value.kind === "value" ? o.value.value : 0, v = L.has(i.role);
|
|
103
103
|
let c = "";
|
|
104
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
105
|
...l,
|
|
@@ -149,8 +149,8 @@ function X(e, a, n, r) {
|
|
|
149
149
|
return s;
|
|
150
150
|
};
|
|
151
151
|
return o.map((t) => {
|
|
152
|
-
const s = i(t.key), d =
|
|
153
|
-
let
|
|
152
|
+
const s = i(t.key), d = b(s, t, e), f = c.get(t.key);
|
|
153
|
+
let m;
|
|
154
154
|
if (l && f && f.length > 0 && s.value.kind === "value") {
|
|
155
155
|
let k = 0, q = !0;
|
|
156
156
|
for (const y of f) {
|
|
@@ -163,7 +163,7 @@ function X(e, a, n, r) {
|
|
|
163
163
|
}
|
|
164
164
|
if (q) {
|
|
165
165
|
const y = s.value.value - k;
|
|
166
|
-
|
|
166
|
+
m = { balanced: Math.abs(y) <= (l.tolerance ?? 0), delta: y };
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
return {
|
|
@@ -173,7 +173,7 @@ function X(e, a, n, r) {
|
|
|
173
173
|
isParent: v.has(t.key),
|
|
174
174
|
valueText: s.value.kind === "value" ? n(s.value.value) : "—",
|
|
175
175
|
...s.share !== void 0 ? { shareText: r(s.share) } : {},
|
|
176
|
-
...
|
|
176
|
+
...m ? { reconcile: m } : {}
|
|
177
177
|
};
|
|
178
178
|
});
|
|
179
179
|
}
|
|
@@ -181,7 +181,7 @@ function Z(e, a, n, r) {
|
|
|
181
181
|
if (!n) return;
|
|
182
182
|
const i = (a == null ? void 0 : a.kind) === "ok" ? a.resolve(n.key) : { value: { kind: "unavailable" } };
|
|
183
183
|
return {
|
|
184
|
-
...
|
|
184
|
+
...b(i, n, e),
|
|
185
185
|
end: n,
|
|
186
186
|
valueText: i.value.kind === "value" ? r(i.value.value) : "—"
|
|
187
187
|
};
|
|
@@ -199,7 +199,7 @@ function ae(e, a, n) {
|
|
|
199
199
|
return (e == null ? void 0 : e.type) === "derivation" && e.direction === "target_to_source" ? { source: n, target: a } : { source: a, target: n };
|
|
200
200
|
}
|
|
201
201
|
export {
|
|
202
|
-
|
|
202
|
+
W as Q,
|
|
203
203
|
Z as a,
|
|
204
204
|
j as b,
|
|
205
205
|
ee as c,
|
|
@@ -7,6 +7,11 @@ export interface PanelFrameProps {
|
|
|
7
7
|
children: JSXElement;
|
|
8
8
|
variant?: 'stat' | 'chart';
|
|
9
9
|
allowEmptyContent?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The children draw their own loading state at their final size (a host
|
|
12
|
+
* renderer), so the frame does not swap them for a kind-shaped skeleton.
|
|
13
|
+
*/
|
|
14
|
+
rendersLoading?: boolean;
|
|
10
15
|
/** Reader controls that belong to this panel, placed before export chrome. */
|
|
11
16
|
headerActions?: JSXElement;
|
|
12
17
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelFrame.d.ts","sourceRoot":"","sources":["../../src/panels/PanelFrame.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAC/C,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAuB,KAAK,eAAe,EAAyC,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"PanelFrame.d.ts","sourceRoot":"","sources":["../../src/panels/PanelFrame.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAC/C,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAuB,KAAK,eAAe,EAAyC,MAAM,YAAY,CAAA;AAU7G,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,KAAK,CAAA;IACZ,KAAK,EAAE,eAAe,CAAA;IACtB,QAAQ,EAAE,UAAU,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,8EAA8E;IAC9E,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAwBD;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAUrG;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,eAoF/D;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,eA2NhD"}
|
|
@@ -18,6 +18,11 @@ export interface PanelChrome {
|
|
|
18
18
|
* line; the accessible name comes from the section's own aria-label.
|
|
19
19
|
*/
|
|
20
20
|
titleIsRedundant?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* False when the report placement around the panel may not export under its
|
|
23
|
+
* effective context; the panel then offers no export of its own either.
|
|
24
|
+
*/
|
|
25
|
+
exportable?: boolean;
|
|
21
26
|
}
|
|
22
27
|
export declare const PanelChromeContext: import("solid-js").Context<PanelChrome | undefined>;
|
|
23
28
|
export declare function usePanelChrome(): PanelChrome | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/panels/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,UAAU,EAAE,MAAM,UAAU,CAAA;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/panels/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,UAAU,EAAE,MAAM,UAAU,CAAA;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,kBAAkB,qDAAoD,CAAA;AAEnF,wBAAgB,cAAc,IAAI,WAAW,GAAG,SAAS,CAExD;AAED;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,WAAW,KAAK,IAAI,CAAA;AAE/E,eAAO,MAAM,oBAAoB,8DAA6D,CAAA;AAE9F,wBAAgB,gBAAgB,IAAI,oBAAoB,GAAG,SAAS,CAEnE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Panel } from '../contract';
|
|
2
|
+
/**
|
|
3
|
+
* Whether panels below may continue the analysis (drill, open records or
|
|
4
|
+
* details). A report placement whose source or context does not allow drill
|
|
5
|
+
* provides false, so its members render as terminal.
|
|
6
|
+
*/
|
|
7
|
+
export declare const DrillGateContext: import("solid-js").Context<() => boolean>;
|
|
8
|
+
export declare function useDrillAllowed(): () => boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Whether panels below may offer export. Like drill, a placement whose source
|
|
11
|
+
* or context cannot export refuses it for every member, nested groups included.
|
|
12
|
+
*/
|
|
13
|
+
export declare const ExportGateContext: import("solid-js").Context<() => boolean>;
|
|
14
|
+
export declare function useExportAllowed(): () => boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The panel as a terminal result: no drill tree and no action that continues
|
|
17
|
+
* the analysis, wherever the panel kind carries one, so no kind can render a
|
|
18
|
+
* click target, pointer affordance or keyboard activation for it.
|
|
19
|
+
*/
|
|
20
|
+
export declare function withoutDrill(panel: Panel): Panel;
|
|
21
|
+
//# sourceMappingURL=drillGate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drillGate.d.ts","sourceRoot":"","sources":["../../src/panels/drillGate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAU,KAAK,EAAE,MAAM,aAAa,CAAA;AAEhD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,mCAAuB,OAAO,CAAa,CAAA;AAExE,wBAAgB,eAAe,IAAI,MAAM,OAAO,CAE/C;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,mCAAuB,OAAO,CAAa,CAAA;AAEzE,wBAAgB,gBAAgB,IAAI,MAAM,OAAO,CAEhD;AAOD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAehD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusTrap.d.ts","sourceRoot":"","sources":["../../src/panels/focusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"focusTrap.d.ts","sourceRoot":"","sources":["../../src/panels/focusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAA;AAWjE,2EAA2E;AAC3E,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,WAAW,GAAG,IAAI,GAAG,SAAS,EAC5C,MAAM,EAAE,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,EACnC,QAAQ,EAAE,MAAM,IAAI,EACpB,YAAY,CAAC,EAAE,MAAM,WAAW,GAAG,IAAI,GAAG,SAAS,EACnD,YAAY,CAAC,EAAE,MAAM,WAAW,GAAG,IAAI,GAAG,SAAS,GAClD,IAAI,CA0CN"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type Component, type JSX } from 'solid-js';
|
|
2
|
+
import type { Panel } from '../contract';
|
|
3
|
+
import { type PanelFrameState } from '../runtime';
|
|
4
|
+
/** What a host renderer receives: the panel, its live frame state and the producer's options verbatim. */
|
|
5
|
+
export interface HostPanelRendererProps {
|
|
6
|
+
panel: Panel;
|
|
7
|
+
frame: PanelFrameState;
|
|
8
|
+
options: unknown;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A host-owned body for a panel whose document names it (panel.renderer). It
|
|
12
|
+
* renders only the figure: the SDK frame around it owns the title, empty,
|
|
13
|
+
* error and stale states, retry, export and the placement menu. While the
|
|
14
|
+
* first frame is loading (frame.isLoading without frame.data) the renderer
|
|
15
|
+
* draws its own placeholder at its final size, so the card does not move
|
|
16
|
+
* when the figure lands.
|
|
17
|
+
*/
|
|
18
|
+
export type HostPanelRenderer = Component<HostPanelRendererProps>;
|
|
19
|
+
/** Host renderers keyed by the wire's panel.renderer.name. */
|
|
20
|
+
export type HostPanelRenderers = Readonly<Record<string, HostPanelRenderer>>;
|
|
21
|
+
export declare function HostRenderersProvider(props: {
|
|
22
|
+
renderers?: HostPanelRenderers;
|
|
23
|
+
children: JSX.Element;
|
|
24
|
+
}): JSX.Element;
|
|
25
|
+
export declare function useHostRenderers(): (name: string | undefined) => HostPanelRenderer | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* A panel the producer handed to a host renderer. Without that renderer the
|
|
28
|
+
* card says so instead of drawing the panel as its kind: a legacy view is not
|
|
29
|
+
* replaced by a chart that merely looks similar.
|
|
30
|
+
*/
|
|
31
|
+
export declare function HostRenderedPanel(props: {
|
|
32
|
+
panel: Panel;
|
|
33
|
+
}): JSX.Element;
|
|
34
|
+
//# sourceMappingURL=hostRenderers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostRenderers.d.ts","sourceRoot":"","sources":["../../src/panels/hostRenderers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmC,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,UAAU,CAAA;AAEpF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAA+B,KAAK,eAAe,EAAE,MAAM,YAAY,CAAA;AAG9E,0GAA0G;AAC1G,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,KAAK,CAAA;IACZ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oB;IACnC,KAAK,EAAE,KAAK,CAAA;IACZ,QAAQ,CAAC,EAAE,aAAa,CAAA;CACzB;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,kCAUvD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,kCAsB1D"}
|
|
@@ -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 {
|
|
4
|
+
import { f } from "./index-C2oaf8ou.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-BM6WTBt-.js");
|
|
51
51
|
return r(i, {
|
|
52
52
|
csrf: this.csrf,
|
|
53
53
|
fetcher: this.fetcher,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aC as w } from "./index-C2oaf8ou.js";
|
|
2
2
|
async function y(e, n) {
|
|
3
|
-
var
|
|
3
|
+
var d;
|
|
4
4
|
const l = e.endpoints.panel, o = e.layout.rows.find(({ panels: a }) => a.length > 0);
|
|
5
|
-
if (!l || !o || (
|
|
5
|
+
if (!l || !o || (d = n.signal) != null && d.aborted) return e;
|
|
6
6
|
const h = new Set(o.panels.map(({ panelId: a }) => a)), f = e.panels.filter(({ id: a, deferred: t }) => t === !0 && h.has(a));
|
|
7
7
|
if (f.length === 0) return e;
|
|
8
8
|
const c = new w(l, { csrf: n.csrf, fetcher: n.fetcher, prefetch: !0 });
|
|
@@ -14,8 +14,8 @@ async function y(e, n) {
|
|
|
14
14
|
for (const s of f) {
|
|
15
15
|
const r = a[s.id];
|
|
16
16
|
if (!(r != null && r.frames) || r.error) continue;
|
|
17
|
-
const
|
|
18
|
-
|
|
17
|
+
const p = r.frames[s.frame] ?? Object.values(r.frames)[0];
|
|
18
|
+
p && (t[s.frame] = p, i.add(s.id));
|
|
19
19
|
}
|
|
20
20
|
return i.size === 0 ? e : {
|
|
21
21
|
...e,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as B,
|
|
1
|
+
import { w as B, r as G, v as Q, a as V, l as z, i as W, p as X, b as Y, q as Z } from "./index-C2oaf8ou.js";
|
|
2
2
|
function p(i) {
|
|
3
3
|
return Object.values(i.frames)[0];
|
|
4
4
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type JSX } from 'solid-js';
|
|
2
|
+
/** A dashboard without cards: what it is for and, when the reader can edit it, the way to fill it. */
|
|
3
|
+
export declare function DashboardEmptyState(props: {
|
|
4
|
+
onAdd?: (trigger: HTMLElement) => void;
|
|
5
|
+
}): JSX.Element;
|
|
6
|
+
//# sourceMappingURL=DashboardEmptyState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardEmptyState.d.ts","sourceRoot":"","sources":["../../src/reports/DashboardEmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,GAAG,EAAE,MAAM,UAAU,CAAA;AAIzD,sGAAsG;AACtG,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IAAE,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAA;CAAE,GAAG,GAAG,CAAC,OAAO,CAsBlG"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type JSX } from 'solid-js';
|
|
2
|
+
import { type LensThemeMode } from '../runtime';
|
|
3
|
+
import type { Composition, Placement } from './contract/types';
|
|
4
|
+
import type { ReportDraft } from './draft';
|
|
5
|
+
import { type ReportEditorLifecycle, type ReportProposal, type ReportProposalHandlers } from './editing';
|
|
6
|
+
import { type ReportLeaveGuard } from './guard';
|
|
7
|
+
import type { ReportCatalogHost } from './picker';
|
|
8
|
+
export type { ReportEditorLifecycle, ReportProposal, ReportProposalHandlers } from './editing';
|
|
9
|
+
export interface ReportCompositionEditorProps {
|
|
10
|
+
draft: ReportDraft<Composition>;
|
|
11
|
+
lifecycle: ReportEditorLifecycle;
|
|
12
|
+
/** The saved report's title for a placement without its own caption. */
|
|
13
|
+
reportTitle: (reportId: string) => string | undefined;
|
|
14
|
+
/** Enables "Add report" through the picker. */
|
|
15
|
+
catalog?: ReportCatalogHost;
|
|
16
|
+
/** The card body, typically the host's rendering of the placement. */
|
|
17
|
+
renderPlacement?: (placement: Placement) => JSX.Element;
|
|
18
|
+
/** How many placements use a report, shown before editing the shared definition. */
|
|
19
|
+
usage?: (reportId: string) => Promise<number> | number;
|
|
20
|
+
/** Opens the shared report definition for editing. */
|
|
21
|
+
onEditReport?: (reportId: string, placementId: string) => Promise<void> | void;
|
|
22
|
+
/** Replaces the placement's report with an independent copy. */
|
|
23
|
+
onCopyReport?: (placementId: string) => Promise<void> | void;
|
|
24
|
+
/** After a revision conflict: keep the local draft as an independent object. */
|
|
25
|
+
onSaveCopy?: (draft: Composition) => Promise<void> | void;
|
|
26
|
+
/** In-app navigation guard; the editor creates one with browser-unload protection when omitted. */
|
|
27
|
+
guard?: ReportLeaveGuard;
|
|
28
|
+
proposal?: ReportProposal;
|
|
29
|
+
proposalHandlers?: ReportProposalHandlers;
|
|
30
|
+
/** Placement span of cards added from the picker (12 by default). */
|
|
31
|
+
addSpan?: number;
|
|
32
|
+
theme?: LensThemeMode;
|
|
33
|
+
messages?: Record<string, string>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Edits a composition draft: layout, captions, card-local periods; Save and
|
|
37
|
+
* Cancel act on the whole session. It renders its own Lens root, so the
|
|
38
|
+
* runtime's tokens apply wherever a host mounts it. LensDashboard's edit mode
|
|
39
|
+
* offers the same session over the live cards.
|
|
40
|
+
*/
|
|
41
|
+
export declare function ReportCompositionEditor(props: ReportCompositionEditorProps): JSX.Element;
|
|
42
|
+
//# sourceMappingURL=ReportCompositionEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportCompositionEditor.d.ts","sourceRoot":"","sources":["../../src/reports/ReportCompositionEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,GAAG,EAAE,MAAM,UAAU,CAAA;AACvD,OAAO,EAAsC,KAAK,aAAa,EAAE,MAAM,YAAY,CAAA;AACnF,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAEwC,KAAK,qBAAqB,EAAE,KAAK,cAAc,EAAE,KAAK,sBAAsB,EAC1H,MAAM,WAAW,CAAA;AAClB,OAAO,EAA0B,KAAK,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAEvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAEjD,YAAY,EAAE,qBAAqB,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AAE9F,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,WAAW,CAAC,WAAW,CAAC,CAAA;IAC/B,SAAS,EAAE,qBAAqB,CAAA;IAChC,wEAAwE;IACxE,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;IACrD,+CAA+C;IAC/C,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B,sEAAsE;IACtE,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,GAAG,CAAC,OAAO,CAAA;IACvD,oFAAoF;IACpF,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAA;IACtD,sDAAsD;IACtD,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IAC9E,gEAAgE;IAChE,YAAY,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IAC5D,gFAAgF;IAChF,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACzD,mGAAmG;IACnG,KAAK,CAAC,EAAE,gBAAgB,CAAA;IACxB,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB,gBAAgB,CAAC,EAAE,sBAAsB,CAAA;IACzC,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAClC;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,4BAA4B,GAAG,GAAG,CAAC,OAAO,CAQxF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type JSX } from 'solid-js';
|
|
2
|
+
import type { EffectiveContext } from '../contract/types';
|
|
3
|
+
import { type LensThemeMode } from '../runtime';
|
|
4
|
+
import { type ReportDestinationConfirmation, type ReportDestinationHost } from './picker';
|
|
5
|
+
export interface ReportDestinationPickerProps {
|
|
6
|
+
/** The opened report being added. */
|
|
7
|
+
report: {
|
|
8
|
+
id: string;
|
|
9
|
+
title: string;
|
|
10
|
+
};
|
|
11
|
+
host: ReportDestinationHost;
|
|
12
|
+
/** The slice shown in the opened analysis; it travels to the host unchanged. */
|
|
13
|
+
context?: EffectiveContext;
|
|
14
|
+
/** Hands the choice to the host. The dialog closes only after it resolves. */
|
|
15
|
+
onConfirm: (confirmation: ReportDestinationConfirmation) => Promise<void> | void;
|
|
16
|
+
onClose: () => void;
|
|
17
|
+
restoreFocus?: HTMLElement;
|
|
18
|
+
theme?: LensThemeMode;
|
|
19
|
+
messages?: Record<string, string>;
|
|
20
|
+
}
|
|
21
|
+
/** Chooses the dashboard an opened report is added to, or a new one. */
|
|
22
|
+
export declare function ReportDestinationPicker(props: ReportDestinationPickerProps): JSX.Element;
|
|
23
|
+
//# sourceMappingURL=ReportDestinationPicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportDestinationPicker.d.ts","sourceRoot":"","sources":["../../src/reports/ReportDestinationPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuE,KAAK,GAAG,EAAE,MAAM,UAAU,CAAA;AACxG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAsC,KAAK,aAAa,EAAE,MAAM,YAAY,CAAA;AAEnF,OAAO,EAA2D,KAAK,6BAA6B,EAAE,KAAK,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAGlJ,MAAM,WAAW,4BAA4B;IAC3C,qCAAqC;IACrC,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrC,IAAI,EAAE,qBAAqB,CAAA;IAC3B,gFAAgF;IAChF,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B,8EAA8E;IAC9E,SAAS,EAAE,CAAC,YAAY,EAAE,6BAA6B,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IAChF,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAClC;AAID,wEAAwE;AACxE,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,4BAA4B,GAAG,GAAG,CAAC,OAAO,CAMxF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type JSX } from 'solid-js';
|
|
2
|
+
export interface ReportDialogProps {
|
|
3
|
+
title: string;
|
|
4
|
+
/** Secondary line under the title. */
|
|
5
|
+
description?: string;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
/** Escape; onClose when omitted. A dialog with a nested view steps back instead of closing. */
|
|
8
|
+
onEscape?: () => void;
|
|
9
|
+
/** The element focused again after the dialog closes; the active element when omitted. */
|
|
10
|
+
restoreFocus?: HTMLElement;
|
|
11
|
+
/** Field focused on open; the dialog itself when omitted. */
|
|
12
|
+
initialFocus?: () => HTMLElement | null | undefined;
|
|
13
|
+
theme?: string;
|
|
14
|
+
size?: 'default' | 'wide';
|
|
15
|
+
role?: 'dialog' | 'alertdialog';
|
|
16
|
+
footer?: JSX.Element;
|
|
17
|
+
children: JSX.Element;
|
|
18
|
+
testId?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The modal frame of report picking and editing. It portals a themed Lens
|
|
22
|
+
* root to the body, traps focus, closes on Escape, and on close returns focus
|
|
23
|
+
* and the page's scroll position to where the reader left them.
|
|
24
|
+
*/
|
|
25
|
+
export declare function ReportDialog(props: ReportDialogProps): JSX.Element;
|
|
26
|
+
//# sourceMappingURL=ReportDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportDialog.d.ts","sourceRoot":"","sources":["../../src/reports/ReportDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,GAAG,EAAE,MAAM,UAAU,CAAA;AAO7E,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,+FAA+F;IAC/F,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,0FAA0F;IAC1F,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,6DAA6D;IAC7D,YAAY,CAAC,EAAE,MAAM,WAAW,GAAG,IAAI,GAAG,SAAS,CAAA;IACnD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;IACzB,IAAI,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAA;IAC/B,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACpB,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAiElE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type JSX } from 'solid-js';
|
|
2
|
+
import { type LensThemeMode } from '../runtime';
|
|
3
|
+
import type { CatalogScope } from './contract/types';
|
|
4
|
+
import { type ReportCatalogHost, type ReportPickerConfirmation } from './picker';
|
|
5
|
+
export interface ReportPickerProps {
|
|
6
|
+
/** The composition receiving the reports; its title names the dialog. */
|
|
7
|
+
target: {
|
|
8
|
+
id: string;
|
|
9
|
+
title: string;
|
|
10
|
+
};
|
|
11
|
+
host: ReportCatalogHost;
|
|
12
|
+
/**
|
|
13
|
+
* Adds the confirmed reports to the caller's draft. The picker closes only
|
|
14
|
+
* after it resolves; a rejection keeps the search and the selection.
|
|
15
|
+
*/
|
|
16
|
+
onConfirm: (confirmation: ReportPickerConfirmation) => Promise<void> | void;
|
|
17
|
+
/** Called on Cancel, Escape, the close button and after a confirmed add. */
|
|
18
|
+
onClose: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* The placements of a report in the caller's current draft. Overrides the
|
|
21
|
+
* catalog's count, which describes the saved composition.
|
|
22
|
+
*/
|
|
23
|
+
placed?: (reportId: string) => number;
|
|
24
|
+
restoreFocus?: HTMLElement;
|
|
25
|
+
theme?: LensThemeMode;
|
|
26
|
+
/** Runtime messages (document.RuntimeI18nKeys) when rendered outside a document. */
|
|
27
|
+
messages?: Record<string, string>;
|
|
28
|
+
pageSize?: number;
|
|
29
|
+
/** Search text and owner scope to open with, e.g. the list the reader left. */
|
|
30
|
+
initialSearch?: string;
|
|
31
|
+
initialScope?: CatalogScope;
|
|
32
|
+
}
|
|
33
|
+
/** Searches the host catalog, previews a report and adds the chosen ones to a draft. */
|
|
34
|
+
export declare function ReportPicker(props: ReportPickerProps): JSX.Element;
|
|
35
|
+
//# sourceMappingURL=ReportPicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportPicker.d.ts","sourceRoot":"","sources":["../../src/reports/ReportPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgF,KAAK,GAAG,EAAE,MAAM,UAAU,CAAA;AAGjH,OAAO,EAAsC,KAAK,aAAa,EAAE,MAAM,YAAY,CAAA;AACnF,OAAO,KAAK,EAAgB,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAClE,OAAO,EAA+B,KAAK,iBAAiB,EAAE,KAAK,wBAAwB,EAAE,MAAM,UAAU,CAAA;AAG7G,MAAM,WAAW,iBAAiB;IAChC,yEAAyE;IACzE,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrC,IAAI,EAAE,iBAAiB,CAAA;IACvB;;;OAGG;IACH,SAAS,EAAE,CAAC,YAAY,EAAE,wBAAwB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IAC3E,4EAA4E;IAC5E,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;IACrC,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,oFAAoF;IACpF,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,+EAA+E;IAC/E,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B;AAOD,wFAAwF;AACxF,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAMlE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { EffectiveContext, GroupUnavailable } from '../contract/types';
|
|
2
|
+
/**
|
|
3
|
+
* The one actions menu of a report placement. Items are the host's handlers
|
|
4
|
+
* that the source capabilities and the card's state allow; with none the
|
|
5
|
+
* trigger is not rendered. Each item calls the host and nothing else: opening,
|
|
6
|
+
* editing, copying and removing are host operations, never an implicit save.
|
|
7
|
+
*/
|
|
8
|
+
export declare function ReportPlacementMenu(props: {
|
|
9
|
+
placementId: string;
|
|
10
|
+
title: string;
|
|
11
|
+
context?: EffectiveContext;
|
|
12
|
+
unavailable?: GroupUnavailable;
|
|
13
|
+
}): import("solid-js").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=ReportPlacementMenu.d.ts.map
|