@aintela/bi 0.2.2 → 0.2.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/README.md +32 -1
- package/dist/ChartCardDefaultsContext-BDRsVljO.js +34 -0
- package/dist/ChartCardDefaultsContext-BDRsVljO.js.map +1 -0
- package/dist/{ScriptDashboardViewerVertical-CuwnxisJ.js → ScriptDashboardViewerVertical-CHIPRLen.js} +3 -3
- package/dist/{ScriptDashboardViewerVertical-CuwnxisJ.js.map → ScriptDashboardViewerVertical-CHIPRLen.js.map} +1 -1
- package/dist/{biModuleSurface--gLAiZ9Z.js → biModuleSurface-BYtgLreK.js} +7 -7
- package/dist/{biModuleSurface--gLAiZ9Z.js.map → biModuleSurface-BYtgLreK.js.map} +1 -1
- package/dist/cards.js +1 -1
- package/dist/composer/index.d.ts +3 -1
- package/dist/composer/view/ComposerView.d.ts +20 -1
- package/dist/composer/view/SessionVisualizationsPanel.d.ts +19 -0
- package/dist/composer.js +73 -71
- package/dist/data/ChartCardDefaultsContext.d.ts +9 -0
- package/dist/data.js +1 -1
- package/dist/{index-DeiweWw8.js → index-9LcZjCK0.js} +54 -50
- package/dist/index-9LcZjCK0.js.map +1 -0
- package/dist/{index-K50t61iI.js → index-CfKuT0vQ.js} +2 -2
- package/dist/index-CfKuT0vQ.js.map +1 -0
- package/dist/index-DOfnLVhs.js +3853 -0
- package/dist/index-DOfnLVhs.js.map +1 -0
- package/dist/{index-DOpx0R4Y.js → index-Dy6hwDjs.js} +2 -2
- package/dist/index-Dy6hwDjs.js.map +1 -0
- package/dist/index-ZBNoVc5M.js +210 -0
- package/dist/index-ZBNoVc5M.js.map +1 -0
- package/dist/index-zN3LPF6u.js +97 -0
- package/dist/index-zN3LPF6u.js.map +1 -0
- package/dist/index.js +123 -117
- package/dist/inline/Chart.d.ts +0 -9
- package/dist/inline/Metric.d.ts +0 -2
- package/dist/inline/MetricGroup.d.ts +1 -1
- package/dist/inline.js +1 -1
- package/dist/runtime/index.d.ts +2 -0
- package/dist/runtime/sessionVisualizations.d.ts +61 -0
- package/dist/runtime/version.d.ts +1 -1
- package/dist/runtime.js +16 -11
- package/dist/runtime.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme.js +1 -1
- package/dist/version-CbZiTInp.js +122 -0
- package/dist/version-CbZiTInp.js.map +1 -0
- package/dist/viewer.js +1 -1
- package/package.json +1 -1
- package/dist/ChartCardDefaultsContext-Cl5T25H0.js +0 -32
- package/dist/ChartCardDefaultsContext-Cl5T25H0.js.map +0 -1
- package/dist/index-BYc79sSy.js +0 -131
- package/dist/index-BYc79sSy.js.map +0 -1
- package/dist/index-D7Oo_dC-.js +0 -94
- package/dist/index-D7Oo_dC-.js.map +0 -1
- package/dist/index-DOpx0R4Y.js.map +0 -1
- package/dist/index-DULVx84u.js +0 -3630
- package/dist/index-DULVx84u.js.map +0 -1
- package/dist/index-DeiweWw8.js.map +0 -1
- package/dist/index-K50t61iI.js.map +0 -1
- package/dist/version-BpSiNdYv.js +0 -84
- package/dist/version-BpSiNdYv.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { b as s, a as r, c as t, d as o, r as i, u as n, w as d } from "./createBiTheme-TyUv_UHM.js";
|
|
2
|
-
import { B as
|
|
3
|
-
import { B as c, b as E, c as S, d as D, u as T, a as
|
|
4
|
-
import { D as f, c as I, a as B, b as R, d as b, e as g, f as A, g as L, h as x, i as
|
|
5
|
-
import { C as j, a as q, u as Z } from "./ChartCardDefaultsContext-
|
|
6
|
-
import { B as Q, C as $, a as aa, D as ea, G as sa, b as ra, c as ta, d as oa, e as ia, f as na, M as da, g as
|
|
2
|
+
import { B as C, c as u, u as m } from "./index-zN3LPF6u.js";
|
|
3
|
+
import { B as c, b as E, c as S, d as D, u as T, a as P, e as h } from "./BiClientProvider-CWJochvi.js";
|
|
4
|
+
import { D as f, c as I, a as B, b as R, d as b, e as g, f as A, g as L, h as x, i as v, j as G, k as O, l as M, m as V, p as F, t as N, n as y, o as k, q as z, r as H, s as U, u as w, v as Y, w as W, x as X } from "./dataUtils-CAUE5uZY.js";
|
|
5
|
+
import { C as j, a as q, u as Z } from "./ChartCardDefaultsContext-BDRsVljO.js";
|
|
6
|
+
import { B as Q, C as $, a as aa, D as ea, G as sa, b as ra, c as ta, d as oa, e as ia, f as na, M as da, g as la, h as Ca, i as ua, j as ma, T as pa, k as ca, l as Ea, m as Sa, n as Da, u as Ta, w as Pa, o as ha } from "./index-9LcZjCK0.js";
|
|
7
7
|
import { u as fa } from "./useContainerRectangle-D464wPFX.js";
|
|
8
|
-
import { B as Ba, D as Ra, a as ba, b as ga, c as Aa, d as La, G as xa, e as
|
|
9
|
-
import { G as
|
|
8
|
+
import { B as Ba, D as Ra, a as ba, b as ga, c as Aa, d as La, G as xa, e as va } from "./GridLayout-1gWuIKeZ.js";
|
|
9
|
+
import { G as Oa } from "./GridCardPlaceHolder-DVVT3pqn.js";
|
|
10
10
|
import { C as Va, u as Fa } from "./ChartContext-C_f_6khG.js";
|
|
11
|
-
import { t as ya, a as ka, b as
|
|
12
|
-
import { C as
|
|
11
|
+
import { t as ya, a as ka, b as za, u as Ha } from "./index-BzUugG0A.js";
|
|
12
|
+
import { C as wa, I as Ya, M as Wa, a as Xa, p as Ka } from "./index-ZBNoVc5M.js";
|
|
13
13
|
import { A as qa, D as Za, a as Ja, V as Qa, b as $a, c as ae, d as ee, g as se } from "./filterFactory-Ysv0FOQ2.js";
|
|
14
14
|
import { V as te, a as oe, b as ie } from "./index-BRx4bRbe.js";
|
|
15
|
-
import { B as de, c as
|
|
16
|
-
import { getBiModuleSurface as ce } from "./biModuleSurface
|
|
17
|
-
import { C as Se, S as De, a as Te, c as
|
|
18
|
-
import { C as xe, a as
|
|
19
|
-
import { EnvironmentProvider as
|
|
20
|
-
import { u as
|
|
21
|
-
import { D as
|
|
15
|
+
import { B as de, c as le, n as Ce, r as ue, a as me } from "./version-CbZiTInp.js";
|
|
16
|
+
import { getBiModuleSurface as ce } from "./biModuleSurface-BYtgLreK.js";
|
|
17
|
+
import { C as Se, S as De, a as Te, c as Pe, e as he, g as _e, b as fe, h as Ie, i as Be, l as Re, r as be, s as ge, u as Ae } from "./ScriptDashboardViewerVertical-CHIPRLen.js";
|
|
18
|
+
import { C as xe, a as ve, b as Ge, c as Oe, d as Me, e as Ve, f as Fe, g as Ne, h as ye, i as ke, D as ze, j as He, k as Ue, l as we, m as Ye, n as We, o as Xe, p as Ke, q as je, E as qe, r as Ze, s as Je, t as Qe, u as $e, v as as, F as es, w as ss, x as rs, G as ts, y as os, H as is, P as ns, z as ds, A as ls, S as Cs, B as us, I as ms, J as ps, K as cs, L as Es, M as Ss, T as Ds, N as Ts, O as Ps, Q as hs, R as _s, V as fs, U as Is, W as Bs, X as Rs, Y as bs, Z as gs, _ as As, $ as Ls, a0 as xs, a1 as vs, a2 as Gs, a3 as Os, a4 as Ms, a5 as Vs, a6 as Fs, a7 as Ns, a8 as ys, a9 as ks, aa as zs, ab as Hs, ac as Us, ad as ws, ae as Ys, af as Ws, ag as Xs, ah as Ks, ai as js, aj as qs, ak as Zs, al as Js, am as Qs, an as $s, ao as ar, ap as er, aq as sr, ar as rr, as as tr, at as or, au as ir, av as nr, aw as dr, ax as lr, ay as Cr, az as ur, aA as mr, aB as pr, aC as cr, aD as Er, aE as Sr, aF as Dr } from "./index-DOfnLVhs.js";
|
|
19
|
+
import { EnvironmentProvider as Pr, InertEnvironmentProvider as hr, useEnvironment as _r, useEnvironmentOptional as fr } from "@aintela/chat/components";
|
|
20
|
+
import { u as Br, a as Rr } from "./index-D3OoOPjl.js";
|
|
21
|
+
import { D as gr, a as Ar, u as Lr } from "./DashboardParametersContext-Clv--79U.js";
|
|
22
22
|
export {
|
|
23
23
|
qa as AutoCompleteInstructions,
|
|
24
24
|
Q as BASE_SCALE,
|
|
25
25
|
de as BI_RUNTIME_VERSION,
|
|
26
26
|
c as BiClientProvider,
|
|
27
27
|
Ba as BiErrorBoundary,
|
|
28
|
-
|
|
28
|
+
C as BiThemeBridge,
|
|
29
29
|
xe as CARD_TYPE_CATALOG,
|
|
30
|
-
|
|
30
|
+
ve as CATEGORY_ICONS,
|
|
31
31
|
Se as CATEGORY_PREFIXES,
|
|
32
|
-
|
|
32
|
+
Ge as COLOR_MAP,
|
|
33
33
|
$ as CONTINENT_PATHS,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
Oe as CardScketch,
|
|
35
|
+
Me as CardSketch,
|
|
36
36
|
Ve as CardTypeIconsProvider,
|
|
37
|
-
|
|
37
|
+
wa as Chart,
|
|
38
38
|
aa as ChartCard,
|
|
39
39
|
j as ChartCardDefaultsContext,
|
|
40
40
|
q as ChartCardDefaultsProvider,
|
|
@@ -46,15 +46,15 @@ export {
|
|
|
46
46
|
Ra as DEFAULT_BREAKPOINTS,
|
|
47
47
|
ba as DEFAULT_COLS,
|
|
48
48
|
ga as DEFAULT_MAX_ROWS,
|
|
49
|
-
|
|
49
|
+
ze as DEFAULT_PAD_HEIGHT_PX,
|
|
50
50
|
Aa as DEFAULT_ROW_HEIGHT,
|
|
51
51
|
La as DEFAULT_ROW_MULTIPLIER,
|
|
52
52
|
He as DRAFT_SAVE_DEBOUNCE_MS,
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
Ue as DashboardPad,
|
|
54
|
+
we as DashboardPadEditor,
|
|
55
55
|
Ye as DashboardPadSketch,
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
gr as DashboardParametersContext,
|
|
57
|
+
Ar as DashboardParametersProvider,
|
|
58
58
|
We as DashboardPin,
|
|
59
59
|
Xe as DashboardSidePanel,
|
|
60
60
|
f as DataResult,
|
|
@@ -65,7 +65,7 @@ export {
|
|
|
65
65
|
je as DrawablePrompt,
|
|
66
66
|
qe as ENV_HIGHLIGHT_CLASS,
|
|
67
67
|
Ze as EntryEmptyState,
|
|
68
|
-
|
|
68
|
+
Pr as EnvironmentProvider,
|
|
69
69
|
Je as ExampleCardSkath,
|
|
70
70
|
Qe as ExampleCardSketch,
|
|
71
71
|
$e as ExampleCardSketh,
|
|
@@ -82,161 +82,167 @@ export {
|
|
|
82
82
|
ia as GaugeGroup,
|
|
83
83
|
na as GeoLayersProvider,
|
|
84
84
|
xa as GridCard,
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
Oa as GridCardPlaceHolder,
|
|
86
|
+
va as GridLayout,
|
|
87
87
|
is as HoverButton,
|
|
88
88
|
Ya as IFrame,
|
|
89
|
-
|
|
89
|
+
hr as InertEnvironmentProvider,
|
|
90
90
|
da as MAP_VIEWBOX,
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
la as MapBubblesCard,
|
|
92
|
+
Ca as MapConnectionsCard,
|
|
93
93
|
Wa as Metric,
|
|
94
|
-
|
|
94
|
+
ua as MetricCard,
|
|
95
95
|
Xa as MetricGroup,
|
|
96
|
-
|
|
96
|
+
ma as MetricGroupCard,
|
|
97
97
|
ns as PAD_INTERNAL_CLASSES,
|
|
98
98
|
ds as PAD_INTERNAL_IDS,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
ls as PrototypePad,
|
|
100
|
+
Cs as SPECIFIC_TYPE_ICONS,
|
|
101
|
+
us as SPECIFIC_TYPE_ICON_NAMES,
|
|
102
|
+
ms as STARTER_TEMPLATES,
|
|
103
103
|
De as ScriptDashboardViewer,
|
|
104
104
|
Te as ScriptDashboardViewerVertical,
|
|
105
|
-
ps as
|
|
106
|
-
cs as
|
|
107
|
-
Es as
|
|
108
|
-
Ss as
|
|
109
|
-
Ds as
|
|
110
|
-
Ts as
|
|
105
|
+
ps as SessionVisualizationsPanel,
|
|
106
|
+
cs as SessionVisualizationsPanelButton,
|
|
107
|
+
Es as SessionVisualizationsProvider,
|
|
108
|
+
Ss as SpotlightOverlay,
|
|
109
|
+
Ds as TEMPLATE_KIND_TO_SKETCH,
|
|
110
|
+
Ts as TextSketh,
|
|
111
|
+
Ps as TitleSkath,
|
|
112
|
+
hs as TitleSketch,
|
|
113
|
+
_s as ToolBox,
|
|
111
114
|
pa as TreeMapCard,
|
|
112
|
-
|
|
115
|
+
fs as VIEWER_COMMIT_DEBOUNCE_MS,
|
|
116
|
+
Is as VISIBLE_THRESHOLD,
|
|
117
|
+
Bs as VisualizationFrame,
|
|
113
118
|
Qa as VizAutoComplete,
|
|
114
119
|
$a as VizDatePicker,
|
|
115
120
|
ae as VizDateRangePicker,
|
|
116
121
|
te as VizSelect,
|
|
117
122
|
oe as VizTextField,
|
|
118
123
|
ie as VizTriggerButton,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
+
Rs as activityPanelVariants,
|
|
125
|
+
bs as activityPanelVariantsReduced,
|
|
126
|
+
gs as ambientVariants,
|
|
127
|
+
As as ambientVariantsReduced,
|
|
128
|
+
Ls as autoComplete,
|
|
124
129
|
s as biDarkPalette,
|
|
125
130
|
E as biDateReviver,
|
|
126
131
|
r as biLightPalette,
|
|
127
132
|
t as biSeriesColor,
|
|
128
133
|
ca as brazilGeoLayers,
|
|
129
|
-
|
|
134
|
+
xs as c,
|
|
130
135
|
I as capitalize,
|
|
131
|
-
|
|
136
|
+
vs as categoryPrefix,
|
|
132
137
|
Ea as chartShade,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
138
|
+
Pe as clearBundleCaches,
|
|
139
|
+
Gs as composerLayoutTransition,
|
|
140
|
+
Os as composerLayoutTransitionReduced,
|
|
141
|
+
u as computeBiCssVars,
|
|
137
142
|
B as computeDomain,
|
|
138
143
|
Sa as computeMapViewport,
|
|
139
144
|
R as computeTicks,
|
|
140
145
|
S as createBiClient,
|
|
141
146
|
o as createBiTheme,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
147
|
+
le as createBiUiTools,
|
|
148
|
+
Ms as createComposerStore,
|
|
149
|
+
Vs as createDashboardDraft,
|
|
145
150
|
ee as createFilterComponent,
|
|
146
|
-
|
|
147
|
-
|
|
151
|
+
Fs as datePicker,
|
|
152
|
+
Ns as dateRange,
|
|
148
153
|
D as defaultBiRoutes,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
154
|
+
ys as defaultCardTypeIcons,
|
|
155
|
+
ks as defaultComposerSuggestions,
|
|
156
|
+
zs as defaultComposerTemplates,
|
|
152
157
|
b as defineSchema,
|
|
153
|
-
|
|
154
|
-
|
|
158
|
+
Hs as environmentFromStore,
|
|
159
|
+
he as evaluateDashboardBundle,
|
|
155
160
|
g as extractFieldDescriptor,
|
|
156
161
|
A as extractFieldTypeName,
|
|
157
162
|
L as formatBoolean,
|
|
158
163
|
x as formatCompact,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
164
|
+
v as formatCurrency,
|
|
165
|
+
G as formatDate,
|
|
166
|
+
O as formatISODate,
|
|
167
|
+
M as formatNumber,
|
|
163
168
|
V as formatPercent,
|
|
164
|
-
|
|
169
|
+
Us as fromUpsertResponse,
|
|
165
170
|
ce as getBiModuleSurface,
|
|
166
171
|
se as getFriendlyName,
|
|
167
172
|
_e as getHostModules,
|
|
168
173
|
fe as getRegisteredSpecifiers,
|
|
169
|
-
|
|
170
|
-
|
|
174
|
+
ws as groupCardCatalog,
|
|
175
|
+
Ys as guideStepsRequireSketch,
|
|
171
176
|
Ie as hashBundleCode,
|
|
172
177
|
Be as instantiateDashboardBundle,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
178
|
+
Ws as isElementVisible,
|
|
179
|
+
Xs as isSimplePadDefinition,
|
|
180
|
+
Ks as joinClientSideChanges,
|
|
176
181
|
Da as latLngToXY,
|
|
177
182
|
Re as loadDashboardBundle,
|
|
178
|
-
|
|
179
|
-
|
|
183
|
+
Ce as normalizeMetricArgs,
|
|
184
|
+
js as padConfigToDashboard,
|
|
180
185
|
Ka as parseKnownNumbers,
|
|
181
186
|
F as percentChange,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
187
|
+
qs as pickBestElement,
|
|
188
|
+
Zs as randomId,
|
|
189
|
+
ue as registerBiModules,
|
|
190
|
+
me as resetBiModuleRegistration,
|
|
186
191
|
i as resolveBiPalette,
|
|
187
192
|
be as resolveCardMetadata,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
+
Js as resolveComposerSurfaces,
|
|
194
|
+
Qs as resolveEnvironmentElements,
|
|
195
|
+
$s as resolveGuideElement,
|
|
196
|
+
ar as sanitizeToJsVariable,
|
|
197
|
+
er as seedFromTemplate,
|
|
193
198
|
ge as seedHostModules,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
199
|
+
sr as sketchCardItemComparer,
|
|
200
|
+
rr as sketchFilterComparer,
|
|
201
|
+
tr as targetSuggestsPadInternal,
|
|
202
|
+
or as templateKinds,
|
|
198
203
|
N as toBoolean,
|
|
199
204
|
y as toDashResult,
|
|
200
205
|
k as toDataResultFromList,
|
|
201
|
-
|
|
202
|
-
|
|
206
|
+
z as toDate,
|
|
207
|
+
ir as toDraftPayload,
|
|
203
208
|
H as toNumber,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
209
|
+
nr as toSelectorList,
|
|
210
|
+
U as toStr,
|
|
211
|
+
w as toTitleCase,
|
|
207
212
|
ya as translateGridConfig,
|
|
208
213
|
ka as translateGridConfigAutoResponsive,
|
|
209
|
-
|
|
214
|
+
za as translateResponsiveGridConfig,
|
|
210
215
|
Y as trendArrow,
|
|
211
216
|
W as trendColor,
|
|
212
217
|
X as truncateText,
|
|
213
|
-
|
|
218
|
+
dr as upsertDashboardDraft,
|
|
214
219
|
T as useBiClient,
|
|
215
|
-
|
|
216
|
-
|
|
220
|
+
P as useBiClientOptional,
|
|
221
|
+
m as useBiCssVars,
|
|
217
222
|
n as useBiPalette,
|
|
218
|
-
|
|
219
|
-
|
|
223
|
+
h as useBiSessionId,
|
|
224
|
+
lr as useCardTypeIcons,
|
|
220
225
|
Z as useChartCardDefaults,
|
|
221
226
|
Fa as useChartContext,
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
+
Cr as useComposer,
|
|
228
|
+
ur as useComposerChatBridge,
|
|
229
|
+
mr as useComposerEnvironment,
|
|
230
|
+
pr as useComposerStore,
|
|
231
|
+
cr as useComposerStoreOptional,
|
|
227
232
|
fa as useContainerRectangle,
|
|
228
233
|
Ae as useDashboardBundle,
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
234
|
+
Br as useDashboardData,
|
|
235
|
+
Rr as useDashboardLazyData,
|
|
236
|
+
Er as useDashboardPad,
|
|
237
|
+
Lr as useDashboardParameters,
|
|
238
|
+
_r as useEnvironment,
|
|
239
|
+
fr as useEnvironmentOptional,
|
|
235
240
|
Ta as useGeoLayers,
|
|
236
241
|
Ha as useGridConfigTranslator,
|
|
237
|
-
|
|
238
|
-
|
|
242
|
+
Sr as useSessionVisualizations,
|
|
243
|
+
Dr as validateSketch,
|
|
244
|
+
Pa as warnIfMuiXLicenseMissing,
|
|
239
245
|
d as withBiPalette,
|
|
240
|
-
|
|
246
|
+
ha as worldGeoLayers
|
|
241
247
|
};
|
|
242
248
|
//# sourceMappingURL=index.js.map
|
package/dist/inline/Chart.d.ts
CHANGED
|
@@ -6,24 +6,15 @@ export interface ChartExpandInfo {
|
|
|
6
6
|
reasoning?: string;
|
|
7
7
|
}
|
|
8
8
|
export interface ChartProps {
|
|
9
|
-
/** Artifact file name as the tool returned it (e.g. `chart_1.png`). */
|
|
10
9
|
src: string;
|
|
11
10
|
name?: string;
|
|
12
11
|
reasoning?: string;
|
|
13
12
|
alt?: string;
|
|
14
|
-
/** Just the image, no card chrome. */
|
|
15
13
|
naked?: boolean;
|
|
16
|
-
/** Artifact scope; defaults to the `BiClientProvider`'s `sessionId`. */
|
|
17
14
|
sessionId?: string;
|
|
18
15
|
dashboardId?: string;
|
|
19
16
|
id?: string;
|
|
20
|
-
/** Called from the expand affordance. When omitted the image opens in a new tab. */
|
|
21
17
|
onExpand?: (info: ChartExpandInfo) => void;
|
|
22
18
|
}
|
|
23
|
-
/**
|
|
24
|
-
* The explorer's chart card: a matplotlib PNG rendered server-side and served
|
|
25
|
-
* as an artifact. The URL comes from the injected `BiClient`
|
|
26
|
-
* (`client.artifactUrl(src, { sessionId, dashboardId })`).
|
|
27
|
-
*/
|
|
28
19
|
export declare const Chart: React.FC<ChartProps>;
|
|
29
20
|
export default Chart;
|
package/dist/inline/Metric.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ export interface MetricGroupProps {
|
|
|
6
6
|
footNote?: string;
|
|
7
7
|
partial?: boolean;
|
|
8
8
|
}
|
|
9
|
-
/** A row of `Metric` tiles (`present_metric_group`). */
|
|
9
|
+
/** A row of `Metric` tiles (`present_metric_group`). Sem inline.css. */
|
|
10
10
|
export declare const MetricGroup: React.FC<MetricGroupProps>;
|
|
11
11
|
export default MetricGroup;
|
package/dist/inline.js
CHANGED
package/dist/runtime/index.d.ts
CHANGED
|
@@ -6,4 +6,6 @@ export type { DashboardBundleResult } from './loadDashboardBundle';
|
|
|
6
6
|
export { createBiUiTools, normalizeMetricArgs } from './createBiUiTools';
|
|
7
7
|
export type { CreateBiUiToolsOptions, PresentMetricArgs, PresentChartArgs, PresentMetricGroupArgs, PresentIframeArgs, PresentDashboardPadArgs, PresentGuideArgs } from './createBiUiTools';
|
|
8
8
|
export type { IDashboardDefinition, DashboardCardDefinition, DataSourceDefinition } from './IDashboardDefinition';
|
|
9
|
+
export { SessionVisualizationsProvider, VisualizationFrame, useSessionVisualizations, VISIBLE_THRESHOLD, } from './sessionVisualizations';
|
|
10
|
+
export type { SessionVisualization, SessionVisualizationsApi, SessionVisualizationsProviderProps, VisualizationFrameProps, VisualizationKind, } from './sessionVisualizations';
|
|
9
11
|
export { BI_RUNTIME_VERSION } from './version';
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/** What kind of thing was drawn — the tag the panel and the card print. */
|
|
3
|
+
export type VisualizationKind = 'metric' | 'chart' | 'table' | 'iframe' | 'dashboard';
|
|
4
|
+
export interface SessionVisualization {
|
|
5
|
+
id: string;
|
|
6
|
+
kind: VisualizationKind;
|
|
7
|
+
/** What the card's header says; the panel repeats it. */
|
|
8
|
+
title?: string;
|
|
9
|
+
/** Grouping key — one per agent answer, so the panel can head a run with the time it arrived. */
|
|
10
|
+
group?: string;
|
|
11
|
+
/** When it was registered, for the group's eyebrow. */
|
|
12
|
+
at: number;
|
|
13
|
+
/** A small stand-in the panel draws: the chart's own image, a metric's value. Optional. */
|
|
14
|
+
preview?: React.ReactNode;
|
|
15
|
+
/** False while it is still being produced — the panel shows it dimmed. */
|
|
16
|
+
ready: boolean;
|
|
17
|
+
/** At least 60% of it is inside the scroller right now. */
|
|
18
|
+
visible: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface SessionVisualizationsProviderProps {
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Holds the registry for one conversation.
|
|
25
|
+
*
|
|
26
|
+
* <p>Mount it around BOTH the transcript and whatever reads the list. Outside a provider every piece here is
|
|
27
|
+
* inert rather than throwing — `VisualizationFrame` still renders its child, so a host that never wanted this
|
|
28
|
+
* feature is unaffected by the tools that now wrap their output in it.</p>
|
|
29
|
+
*/
|
|
30
|
+
export declare const SessionVisualizationsProvider: React.FC<SessionVisualizationsProviderProps>;
|
|
31
|
+
export interface SessionVisualizationsApi {
|
|
32
|
+
/** Everything the session has drawn, in the order it was drawn. */
|
|
33
|
+
items: SessionVisualization[];
|
|
34
|
+
/** The ones that are NOT currently at least 60% inside the scroller. */
|
|
35
|
+
offscreen: SessionVisualization[];
|
|
36
|
+
/** Scroll the transcript to one of them and flash it. No-op for an id that is gone. */
|
|
37
|
+
scrollTo: (id: string) => void;
|
|
38
|
+
/** Tell the registry which element scrolls the transcript. Call from the host's scroller ref. */
|
|
39
|
+
setScroller: (el: HTMLElement | null) => void;
|
|
40
|
+
}
|
|
41
|
+
/** Read the session's visualizations. Safe outside a provider: an empty list and no-op actions. */
|
|
42
|
+
export declare function useSessionVisualizations(): SessionVisualizationsApi;
|
|
43
|
+
/** How much of a card has to be inside the scroller before the panel stops listing it. */
|
|
44
|
+
export declare const VISIBLE_THRESHOLD = 0.6;
|
|
45
|
+
export interface VisualizationFrameProps {
|
|
46
|
+
id: string;
|
|
47
|
+
kind: VisualizationKind;
|
|
48
|
+
title?: string;
|
|
49
|
+
group?: string;
|
|
50
|
+
preview?: React.ReactNode;
|
|
51
|
+
ready?: boolean;
|
|
52
|
+
children: React.ReactNode;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* One drawn thing in the transcript, registered and watched.
|
|
56
|
+
*
|
|
57
|
+
* <p>It adds `data-viz` and a `data-viz-focus` attribute (set for two seconds when the panel scrolls here)
|
|
58
|
+
* and NOTHING else — no border, no padding, no colour. Appearance belongs to the card inside it and to the
|
|
59
|
+
* host's stylesheet, which can target `[data-viz-focus]` to draw the flash however it likes.</p>
|
|
60
|
+
*/
|
|
61
|
+
export declare const VisualizationFrame: React.FC<VisualizationFrameProps>;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* `AIntelA.Bi.Agents` version at handshake (the instruction files describe
|
|
4
4
|
* THIS React API). Kept in sync with package.json by `tests/runtime/version.test.ts`.
|
|
5
5
|
*/
|
|
6
|
-
export declare const BI_RUNTIME_VERSION = "0.2.
|
|
6
|
+
export declare const BI_RUNTIME_VERSION = "0.2.4";
|
package/dist/runtime.js
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
import { B as a, c as o, n as
|
|
2
|
-
import { getBiModuleSurface as
|
|
3
|
-
import { c as
|
|
1
|
+
import { B as a, c as o, n as i, r, a as t } from "./version-CbZiTInp.js";
|
|
2
|
+
import { getBiModuleSurface as d } from "./biModuleSurface-BYtgLreK.js";
|
|
3
|
+
import { c as n, e as B, g as c, b as g, h, i as M, l as S, s as f } from "./ScriptDashboardViewerVertical-CHIPRLen.js";
|
|
4
|
+
import { L as p, U as E, W as I, aE as R } from "./index-DOfnLVhs.js";
|
|
4
5
|
export {
|
|
5
6
|
a as BI_RUNTIME_VERSION,
|
|
6
|
-
|
|
7
|
+
p as SessionVisualizationsProvider,
|
|
8
|
+
E as VISIBLE_THRESHOLD,
|
|
9
|
+
I as VisualizationFrame,
|
|
10
|
+
n as clearBundleCaches,
|
|
7
11
|
o as createBiUiTools,
|
|
8
|
-
|
|
9
|
-
|
|
12
|
+
B as evaluateDashboardBundle,
|
|
13
|
+
d as getBiModuleSurface,
|
|
10
14
|
c as getHostModules,
|
|
11
15
|
g as getRegisteredSpecifiers,
|
|
12
16
|
h as hashBundleCode,
|
|
13
17
|
M as instantiateDashboardBundle,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
S as loadDashboardBundle,
|
|
19
|
+
i as normalizeMetricArgs,
|
|
20
|
+
r as registerBiModules,
|
|
21
|
+
t as resetBiModuleRegistration,
|
|
22
|
+
f as seedHostModules,
|
|
23
|
+
R as useSessionVisualizations
|
|
19
24
|
};
|
|
20
25
|
//# sourceMappingURL=runtime.js.map
|
package/dist/runtime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtime.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--grid-card-padding: 15px;--grid-card-padding-mobile: 10px;--grid-card-gap: 15px;--grid-card-gap-mobile: 12px}.grid-card,.grid-card-nohandle,.grid-card-naked{--kpi-accent: var(--bi-accent);--kpi-accent-light: var(--bi-text-2);--kpi-glow: var(--bi-accent-soft);--chart-accent: var(--bi-accent);--chart-accent-light: var(--bi-text-2);--chart-glow: var(--bi-accent-soft);--table-accent: var(--bi-accent);--table-accent-light: var(--bi-text-2);--table-glow: var(--bi-accent-soft);--iframe-accent: var(--bi-accent);--iframe-accent-light: var(--bi-text-2);--iframe-glow: var(--bi-accent-soft);--info-accent: var(--bi-accent);--info-accent-light: var(--bi-text-2);--info-glow: var(--bi-accent-soft);--info-color: var(--bi-text-2);--grid-card-accent: var(--bi-accent);--grid-card-accent-light: var(--bi-accent-border);--grid-card-accent-dark: var(--bi-accent-soft)}.grid-card,.grid-card-nohandle{position:relative;background-color:var(--bi-card-bg);border:1px solid var(--bi-card-border);color:var(--bi-text-1)}.grid-card:active{cursor:grabbing}.grid-card:hover:before{opacity:.6}.grid-card:after{content:"";position:absolute;bottom:4px;right:4px;width:12px;height:12px;border-right:2px solid var(--bi-card-border-strong);border-bottom:2px solid var(--bi-card-border-strong);border-bottom-right-radius:var(--bi-radius);opacity:.3;transition:opacity .2s ease;pointer-events:none}.grid-card:hover:after{opacity:1}.grid-card .react-resizable-handle{opacity:0;transition:opacity .2s ease}.grid-card:hover .react-resizable-handle{opacity:1}.react-grid-placeholder{background:var(--bi-overlay)!important;border:1px dashed var(--bi-card-border-strong)!important;border-radius:var(--bi-radius);opacity:1!important}.grid-card-with-header{padding:0}.grid-card-with-header .grid-card-header{flex-shrink:0}.grid-card-with-header .grid-card-content{flex:1;min-height:0;overflow:auto}.grid-card-header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px 6px;border-bottom:none;background:transparent}.grid-card-title{margin:0;font-weight:500;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--bi-text-2)}.grid-card-icon{display:none;align-items:center;justify-content:center;margin-left:12px;opacity:.7}.grid-card-icon .material-icons{font-size:20px}.grid-card-content{padding:5px 6px 3px;height:100%}.grid-card-content-naked{padding:0;height:100%}.grid-card-content>*{height:100%}.grid-card-content-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.grid-card-kpi,.grid-card-chart,.grid-card-table,.grid-card-info,.grid-card-iframe{border:1px solid var(--bi-card-border);border-radius:var(--card-radius, 14px);transition:border-color .15s ease,box-shadow .15s ease}.grid-card-details{border:0 solid transparent;transition:box-shadow .2s ease,border-color .2s ease;font-style:italic}.grid-card-kpi .grid-card-icon{background-color:var(--kpi-glow);color:var(--kpi-accent)}.grid-card-kpi .grid-card-title{color:var(--kpi-accent-light)}.grid-card-chart .grid-card-icon{background-color:var(--chart-glow);color:var(--chart-accent)}.grid-card-chart .grid-card-title{color:var(--chart-accent-light)}.grid-card-chart{align-content:center}.grid-card-table .grid-card-icon{background-color:var(--table-glow);color:var(--table-accent)}.grid-card-table .grid-card-title{color:var(--table-accent-light)}.grid-card-info .grid-card-icon{background-color:var(--info-glow);color:var(--info-color)}.grid-card-info .grid-card-title{color:var(--info-accent-light)}.grid-card-iframe .grid-card-icon{background-color:var(--iframe-glow);color:var(--iframe-accent)}.grid-card-iframe .grid-card-title{color:var(--iframe-accent-light)}.grid-card-naked.ds-card,.grid-card-naked{background-color:transparent;border:1px solid transparent;border-radius:var(--bi-radius);box-shadow:none;transform:none}.grid-card-naked.ds-card:hover,.grid-card-naked:hover{transform:none;box-shadow:none;border:1px solid transparent}.grid-card-naked:after{display:none}.grid-card-naked .grid-card-naked-resize-handle{position:absolute;bottom:4px;right:4px;width:12px;height:12px;border-right:2px solid var(--bi-card-border-strong);border-bottom:2px solid var(--bi-card-border-strong);border-bottom-right-radius:var(--bi-radius);opacity:.1;transition:opacity .2s ease;pointer-events:none;z-index:10}.grid-card-naked:hover .grid-card-naked-resize-handle{opacity:1}.grid-card-naked:before{content:"";position:absolute;top:4px;left:50%;transform:translate(-50%);width:28px;height:3px;border-radius:2px;background-color:var(--bi-grid-line);opacity:0;transition:opacity .2s ease;pointer-events:none;z-index:5}.grid-card-naked:hover:before{opacity:.6}.grid-card-naked .cardDragHandle{display:none}.grid-card-naked .react-resizable-handle{opacity:1;transition:opacity .2s ease}.grid-card-naked:hover .react-resizable-handle{opacity:.6}.grid-card-custom{border:1px solid var(--bi-card-border);border-left:3px solid var(--grid-card-accent);transition:box-shadow .2s ease,border-color .2s ease}.grid-card-custom:hover{border-radius:var(--bi-radius-sm);border-top:2px solid var(--grid-card-accent);border-right:2px solid var(--grid-card-accent);border-bottom:2px solid var(--grid-card-accent)}.grid-card-custom .grid-card-icon{background-color:var(--grid-card-accent-dark);color:var(--grid-card-accent)}.grid-card-custom .grid-card-title{color:var(--grid-card-accent-light)}.dscard-placeholder{border:1px dashed var(--bi-card-border-strong);background-color:var(--bi-surface-1)}.dscard-placeholder-naked{border:1px dashed transparent;background-color:transparent}@media(max-width:768px){.grid-card-content-grid{grid-template-columns:1fr}}.class-positive{background-color:var(--bi-positive-soft)}.class-negative{background-color:var(--bi-negative-soft)}@keyframes bi-shimmer{0%{stroke-opacity:.3}to{stroke-opacity:.9}}.parallax-wrapper{height:100%;overflow-x:hidden;overflow-y:auto;perspective:2px;perspective-origin:center}.parallax-group{position:relative;height:100%;transform-style:preserve-3d;display:flex;justify-content:center;align-items:center}.parallax-layer{position:absolute;top:0;left:0;right:0;bottom:0}.layer-bg{transform:translateZ(-5px) scale(1);z-index:1}.layer-fg{transform:translateZ(0) scale(1);z-index:2}.svgElement{transform:translateZ(-5px) scale(1);z-index:1;stroke:var(--bi-text-disabled);animation:bi-shimmer .6s infinite alternate;border-radius:1px}.grid-card .recharts-rectangle{filter:brightness(.95) saturate(.95)}.grid-card .recharts-cartesian-grid line{stroke:var(--bi-grid-line)}.grid-card .recharts-cartesian-axis-tick-value{fill:var(--bi-text-2);font-size:.75rem}.grid-card .recharts-cartesian-axis-line,.grid-card .recharts-cartesian-axis-tick-line{stroke:var(--bi-grid-line)}.grid-card .recharts-legend-item-text{color:var(--bi-text-2)!important;font-size:12px}.grid-card .recharts-tooltip-wrapper .recharts-default-tooltip{background-color:var(--bi-card-bg)!important;border:1px solid var(--bi-card-border)!important;border-radius:var(--bi-radius);font-size:12px}.grid-card .recharts-tooltip-wrapper .recharts-default-tooltip .recharts-tooltip-label{color:var(--bi-text-1)}.grid-card .recharts-tooltip-wrapper .recharts-default-tooltip .recharts-tooltip-item{color:var(--bi-text-2)!important}.grid-card .recharts-tooltip-cursor{fill:var(--bi-hover)!important}.grid-card .recharts-active-bar{fill-opacity:.85;filter:brightness(1.1)}.react-grid-item>.react-resizable-handle{position:absolute;width:20px;height:20px;opacity:0}.react-grid-item:hover>.react-resizable-handle{opacity:1}.react-grid-item>.react-resizable-handle:after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid var(--bi-card-border-strong);border-bottom:2px solid var(--bi-card-border-strong)}.react-resizable-hide>.react-resizable-handle{display:none}.react-grid-item>.react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.ds-section{margin-bottom:24px}.ds-card{background-color:var(--bi-card-bg);border-radius:var(--bi-radius);border:1px solid var(--bi-card-border);position:relative;overflow:hidden;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.ds-card-nohover{transform:none}.ds-card:hover{transform:translateY(-2px);box-shadow:var(--bi-shadow)}.ds-card-header{display:flex;align-items:center;position:relative;padding:2px 10px;justify-content:space-between;margin-bottom:4px}.ds-card-title{font-size:.875rem;font-weight:500;color:var(--bi-text-2);text-transform:uppercase;letter-spacing:.05em;margin:0}.ds-card-icon{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:var(--bi-radius);font-size:16px;background-color:var(--bi-accent-soft);color:var(--bi-accent)}.ds-card-body{flex:1;padding-left:5px;padding-right:5px}.ds-card-footer{margin-top:16px;padding-top:12px;border-top:1px solid var(--bi-card-border);display:flex;align-items:center;justify-content:space-between;font-size:.875rem;color:var(--bi-text-2)}.kpi-change{display:inline-flex;align-items:center;gap:4px;font-size:.875rem;font-weight:500;padding:2px 6px;border-radius:var(--bi-radius-sm)}.kpi-change-up{background-color:var(--bi-positive-soft);color:var(--bi-positive)}.kpi-change-down{background-color:var(--bi-negative-soft);color:var(--bi-negative)}.kpi-change-flat,.kpi-change-neutral{background-color:var(--bi-neutral-soft);color:var(--bi-neutral)}.quick-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:5px}.quick-stat,.quick-stat-nohover{display:flex;align-items:center;gap:12px;padding:12px;background-color:var(--bi-surface-1);border-radius:var(--bi-radius);transition:background-color .15s ease}.quick-stat-nohover{background-color:inherit}.quick-stat:hover{background-color:var(--bi-surface-2)}.quick-stat-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:var(--bi-radius);font-size:20px;flex-shrink:0}.quick-stat-icon.kpi{background-color:var(--bi-accent-soft);color:var(--bi-accent)}.quick-stat-content{flex:1;min-width:0;align-items:flex-start}.quick-stat-value{font-size:1.25rem;font-weight:700;color:var(--bi-text-1);line-height:1.2}.quick-stat-value .thousand,.quick-stat-value .million,.quick-stat-value .billion{font-size:.7em;opacity:.7;margin-left:2px}.quick-stat-label{font-size:.875rem;color:var(--bi-text-2);line-height:1.3;margin-top:2px;max-height:70px;overflow:hidden}.quick-stat-label p{margin:0}@media(max-width:768px){.quick-stats{grid-template-columns:1fr}.quick-stat-icon{width:40px;height:40px;font-size:18px}}@media print{.ds-card{break-inside:avoid;box-shadow:none}.ds-card:hover{transform:none;box-shadow:none}}.dscard-placeholder{height:100%;border:1px dashed var(--bi-sketch-dash);border-radius:var(--bi-radius, 10px);text-align:center;align-content:center}.dscard-placeholder-naked{height:100%;border:1px dashed var(--bi-sketch-dash-faint);border-radius:var(--bi-radius, 10px);text-align:center;align-content:center;background-color:transparent!important}.grid-card-sketch-add{border:0}.content-sketch-add-cell{height:100px;width:70%;align-content:center;border-radius:var(--bi-radius, 10px);background-color:var(--bi-card-bg)}.content-sketch-add-row{height:50%;width:100%;border-radius:var(--bi-radius, 10px);align-content:center;background-color:var(--bi-card-bg)}.react-grid-placeholder-example{background:var(--bi-overlay)!important;border:1px dashed var(--bi-sketch-dash);border-radius:var(--bi-radius-sm, 8px);opacity:1!important}.llm-env-highlight-active{outline:2px solid var(--bi-highlight-outline)!important;outline-offset:2px;box-shadow:0 0 0 4px var(--bi-highlight-glow)!important;transition:outline-color .2s ease,box-shadow .2s ease}.llm-env-card-sketch .Mui-selected{background-color:var(--bi-sketch-selection)!important}
|
|
1
|
+
:root{--grid-card-padding: 15px;--grid-card-padding-mobile: 10px;--grid-card-gap: 15px;--grid-card-gap-mobile: 12px}.grid-card,.grid-card-nohandle,.grid-card-naked{--kpi-accent: var(--bi-accent);--kpi-accent-light: var(--bi-text-2);--kpi-glow: var(--bi-accent-soft);--chart-accent: var(--bi-accent);--chart-accent-light: var(--bi-text-2);--chart-glow: var(--bi-accent-soft);--table-accent: var(--bi-accent);--table-accent-light: var(--bi-text-2);--table-glow: var(--bi-accent-soft);--iframe-accent: var(--bi-accent);--iframe-accent-light: var(--bi-text-2);--iframe-glow: var(--bi-accent-soft);--info-accent: var(--bi-accent);--info-accent-light: var(--bi-text-2);--info-glow: var(--bi-accent-soft);--info-color: var(--bi-text-2);--grid-card-accent: var(--bi-accent);--grid-card-accent-light: var(--bi-accent-border);--grid-card-accent-dark: var(--bi-accent-soft)}.grid-card,.grid-card-nohandle{position:relative;background-color:var(--bi-card-bg);border:1px solid var(--bi-card-border);color:var(--bi-text-1)}.grid-card:active{cursor:grabbing}.grid-card:hover:before{opacity:.6}.grid-card:after{content:"";position:absolute;bottom:4px;right:4px;width:12px;height:12px;border-right:2px solid var(--bi-card-border-strong);border-bottom:2px solid var(--bi-card-border-strong);border-bottom-right-radius:var(--bi-radius);opacity:.3;transition:opacity .2s ease;pointer-events:none}.grid-card:hover:after{opacity:1}.grid-card .react-resizable-handle{opacity:0;transition:opacity .2s ease}.grid-card:hover .react-resizable-handle{opacity:1}.react-grid-placeholder{background:var(--bi-overlay)!important;border:1px dashed var(--bi-card-border-strong)!important;border-radius:var(--bi-radius);opacity:1!important}.grid-card-with-header{padding:0}.grid-card-with-header .grid-card-header{flex-shrink:0}.grid-card-with-header .grid-card-content{flex:1;min-height:0;overflow:auto}.grid-card-header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px 6px;border-bottom:none;background:transparent}.grid-card-title{margin:0;font-weight:500;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--bi-text-2)}.grid-card-icon{display:none;align-items:center;justify-content:center;margin-left:12px;opacity:.7}.grid-card-icon .material-icons{font-size:20px}.grid-card-content{padding:5px 6px 3px;height:100%}.grid-card-content-naked{padding:0;height:100%}.grid-card-content>*{height:100%}.grid-card-content-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.grid-card-kpi,.grid-card-chart,.grid-card-table,.grid-card-info,.grid-card-iframe{border:1px solid var(--bi-card-border);border-radius:var(--card-radius, 14px);transition:border-color .15s ease,box-shadow .15s ease}.grid-card-details{border:0 solid transparent;transition:box-shadow .2s ease,border-color .2s ease;font-style:italic}.grid-card-kpi .grid-card-icon{background-color:var(--kpi-glow);color:var(--kpi-accent)}.grid-card-kpi .grid-card-title{color:var(--kpi-accent-light)}.grid-card-chart .grid-card-icon{background-color:var(--chart-glow);color:var(--chart-accent)}.grid-card-chart .grid-card-title{color:var(--chart-accent-light)}.grid-card-chart{align-content:center}.grid-card-table .grid-card-icon{background-color:var(--table-glow);color:var(--table-accent)}.grid-card-table .grid-card-title{color:var(--table-accent-light)}.grid-card-info .grid-card-icon{background-color:var(--info-glow);color:var(--info-color)}.grid-card-info .grid-card-title{color:var(--info-accent-light)}.grid-card-iframe .grid-card-icon{background-color:var(--iframe-glow);color:var(--iframe-accent)}.grid-card-iframe .grid-card-title{color:var(--iframe-accent-light)}.grid-card-naked.ds-card,.grid-card-naked{background-color:transparent;border:1px solid transparent;border-radius:var(--bi-radius);box-shadow:none;transform:none}.grid-card-naked.ds-card:hover,.grid-card-naked:hover{transform:none;box-shadow:none;border:1px solid transparent}.grid-card-naked:after{display:none}.grid-card-naked .grid-card-naked-resize-handle{position:absolute;bottom:4px;right:4px;width:12px;height:12px;border-right:2px solid var(--bi-card-border-strong);border-bottom:2px solid var(--bi-card-border-strong);border-bottom-right-radius:var(--bi-radius);opacity:.1;transition:opacity .2s ease;pointer-events:none;z-index:10}.grid-card-naked:hover .grid-card-naked-resize-handle{opacity:1}.grid-card-naked:before{content:"";position:absolute;top:4px;left:50%;transform:translate(-50%);width:28px;height:3px;border-radius:2px;background-color:var(--bi-grid-line);opacity:0;transition:opacity .2s ease;pointer-events:none;z-index:5}.grid-card-naked:hover:before{opacity:.6}.grid-card-naked .cardDragHandle{display:none}.grid-card-naked .react-resizable-handle{opacity:1;transition:opacity .2s ease}.grid-card-naked:hover .react-resizable-handle{opacity:.6}.grid-card-custom{border:1px solid var(--bi-card-border);border-left:3px solid var(--grid-card-accent);transition:box-shadow .2s ease,border-color .2s ease}.grid-card-custom:hover{border-radius:var(--bi-radius-sm);border-top:2px solid var(--grid-card-accent);border-right:2px solid var(--grid-card-accent);border-bottom:2px solid var(--grid-card-accent)}.grid-card-custom .grid-card-icon{background-color:var(--grid-card-accent-dark);color:var(--grid-card-accent)}.grid-card-custom .grid-card-title{color:var(--grid-card-accent-light)}.dscard-placeholder{border:1px dashed var(--bi-card-border-strong);background-color:var(--bi-surface-1)}.dscard-placeholder-naked{border:1px dashed transparent;background-color:transparent}@media(max-width:768px){.grid-card-content-grid{grid-template-columns:1fr}}.class-positive{background-color:var(--bi-positive-soft)}.class-negative{background-color:var(--bi-negative-soft)}@keyframes bi-shimmer{0%{stroke-opacity:.3}to{stroke-opacity:.9}}.parallax-wrapper{height:100%;overflow-x:hidden;overflow-y:auto;perspective:2px;perspective-origin:center}.parallax-group{position:relative;height:100%;transform-style:preserve-3d;display:flex;justify-content:center;align-items:center}.parallax-layer{position:absolute;top:0;left:0;right:0;bottom:0}.layer-bg{transform:translateZ(-5px) scale(1);z-index:1}.layer-fg{transform:translateZ(0) scale(1);z-index:2}.svgElement{transform:translateZ(-5px) scale(1);z-index:1;stroke:var(--bi-text-disabled);animation:bi-shimmer .6s infinite alternate;border-radius:1px}.grid-card .recharts-rectangle{filter:brightness(.95) saturate(.95)}.grid-card .recharts-cartesian-grid line{stroke:var(--bi-grid-line)}.grid-card .recharts-cartesian-axis-tick-value{fill:var(--bi-text-2);font-size:.75rem}.grid-card .recharts-cartesian-axis-line,.grid-card .recharts-cartesian-axis-tick-line{stroke:var(--bi-grid-line)}.grid-card .recharts-legend-item-text{color:var(--bi-text-2)!important;font-size:12px}.grid-card .recharts-tooltip-wrapper .recharts-default-tooltip{background-color:var(--bi-card-bg)!important;border:1px solid var(--bi-card-border)!important;border-radius:var(--bi-radius);font-size:12px}.grid-card .recharts-tooltip-wrapper .recharts-default-tooltip .recharts-tooltip-label{color:var(--bi-text-1)}.grid-card .recharts-tooltip-wrapper .recharts-default-tooltip .recharts-tooltip-item{color:var(--bi-text-2)!important}.grid-card .recharts-tooltip-cursor{fill:var(--bi-hover)!important}.grid-card .recharts-active-bar{fill-opacity:.85;filter:brightness(1.1)}.react-grid-item>.react-resizable-handle{position:absolute;width:20px;height:20px;opacity:0}.react-grid-item:hover>.react-resizable-handle{opacity:1}.react-grid-item>.react-resizable-handle:after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid var(--bi-card-border-strong);border-bottom:2px solid var(--bi-card-border-strong)}.react-resizable-hide>.react-resizable-handle{display:none}.react-grid-item>.react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.ds-section{margin-bottom:24px}.ds-card{background-color:var(--bi-card-bg);border-radius:var(--bi-radius);border:1px solid var(--bi-card-border);position:relative;overflow:hidden;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.ds-card-nohover{transform:none}.ds-card:hover{transform:translateY(-2px);box-shadow:var(--bi-shadow)}.ds-card-header{display:flex;align-items:center;position:relative;padding:2px 10px;justify-content:space-between;margin-bottom:4px}.ds-card-title{font-size:.875rem;font-weight:500;color:var(--bi-text-2);text-transform:uppercase;letter-spacing:.05em;margin:0}.ds-card-icon{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:var(--bi-radius);font-size:16px;background-color:var(--bi-accent-soft);color:var(--bi-accent)}.ds-card-body{flex:1;padding-left:5px;padding-right:5px}.ds-card-footer{margin-top:16px;padding-top:12px;border-top:1px solid var(--bi-card-border);display:flex;align-items:center;justify-content:space-between;font-size:.875rem;color:var(--bi-text-2)}.kpi-change{display:inline-flex;align-items:center;gap:4px;font-size:.875rem;font-weight:500;padding:2px 6px;border-radius:var(--bi-radius-sm)}.kpi-change-up{background-color:var(--bi-positive-soft);color:var(--bi-positive)}.kpi-change-down{background-color:var(--bi-negative-soft);color:var(--bi-negative)}.kpi-change-flat,.kpi-change-neutral{background-color:var(--bi-neutral-soft);color:var(--bi-neutral)}.quick-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:5px}.quick-stat,.quick-stat-nohover{display:flex;align-items:center;gap:12px;padding:12px;background-color:var(--bi-surface-1);border-radius:var(--bi-radius);transition:background-color .15s ease}.quick-stat-nohover{background-color:inherit}.quick-stat:hover{background-color:var(--bi-surface-2)}.quick-stat-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:var(--bi-radius);font-size:20px;flex-shrink:0}.quick-stat-content{flex:1;min-width:0;align-items:flex-start}.quick-stat-value{font-size:1.25rem;font-weight:700;color:var(--bi-text-1);line-height:1.2}.quick-stat-value .thousand,.quick-stat-value .million,.quick-stat-value .billion{font-size:.7em;opacity:.7;margin-left:2px}.quick-stat-label{font-size:.875rem;color:var(--bi-text-2);line-height:1.3;margin-top:2px;max-height:70px;overflow:hidden}.quick-stat-label p{margin:0}@media(max-width:768px){.quick-stats{grid-template-columns:1fr}.quick-stat-icon{width:40px;height:40px;font-size:18px}}@media print{.ds-card{break-inside:avoid;box-shadow:none}.ds-card:hover{transform:none;box-shadow:none}}.dscard-placeholder{height:100%;border:1px dashed var(--bi-sketch-dash);border-radius:var(--bi-radius, 10px);text-align:center;align-content:center}.dscard-placeholder-naked{height:100%;border:1px dashed var(--bi-sketch-dash-faint);border-radius:var(--bi-radius, 10px);text-align:center;align-content:center;background-color:transparent!important}.grid-card-sketch-add{border:0}.content-sketch-add-cell{height:100px;width:70%;align-content:center;border-radius:var(--bi-radius, 10px);background-color:var(--bi-card-bg)}.content-sketch-add-row{height:50%;width:100%;border-radius:var(--bi-radius, 10px);align-content:center;background-color:var(--bi-card-bg)}.react-grid-placeholder-example{background:var(--bi-overlay)!important;border:1px dashed var(--bi-sketch-dash);border-radius:var(--bi-radius-sm, 8px);opacity:1!important}.llm-env-highlight-active{outline:2px solid var(--bi-highlight-outline)!important;outline-offset:2px;box-shadow:0 0 0 4px var(--bi-highlight-glow)!important;transition:outline-color .2s ease,box-shadow .2s ease}.llm-env-card-sketch .Mui-selected{background-color:var(--bi-sketch-selection)!important}
|
package/dist/theme.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as s, a as t, c as i, d as r, r as B, u as o, w as l } from "./createBiTheme-TyUv_UHM.js";
|
|
2
|
-
import { B as u, c as P, u as b } from "./index-
|
|
2
|
+
import { B as u, c as P, u as b } from "./index-zN3LPF6u.js";
|
|
3
3
|
export {
|
|
4
4
|
u as BiThemeBridge,
|
|
5
5
|
s as biDarkPalette,
|