@aintela/bi 0.2.2 → 0.2.3
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-Rr_4adpH.js} +3 -3
- package/dist/{ScriptDashboardViewerVertical-CuwnxisJ.js.map → ScriptDashboardViewerVertical-Rr_4adpH.js.map} +1 -1
- package/dist/{biModuleSurface--gLAiZ9Z.js → biModuleSurface-BdJK7sSL.js} +5 -5
- package/dist/{biModuleSurface--gLAiZ9Z.js.map → biModuleSurface-BdJK7sSL.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-C4_VSDeU.js +3856 -0
- package/dist/index-C4_VSDeU.js.map +1 -0
- package/dist/{index-K50t61iI.js → index-DChE_l-p.js} +2 -2
- package/dist/index-DChE_l-p.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.js +123 -117
- 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/version-BTc4ElDG.js +122 -0
- package/dist/version-BTc4ElDG.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-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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e, S as a, a as r, r as o, u as t } from "./ScriptDashboardViewerVertical-
|
|
1
|
+
import { C as e, S as a, a as r, r as o, u as t } from "./ScriptDashboardViewerVertical-Rr_4adpH.js";
|
|
2
2
|
const i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
CATEGORY_PREFIXES: e,
|
|
@@ -10,4 +10,4 @@ const i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10
10
|
export {
|
|
11
11
|
i as V
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=index-
|
|
13
|
+
//# sourceMappingURL=index-DChE_l-p.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DChE_l-p.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as a, c as t, a as e, b as r, d as s, e as o, f as m, g as l, h as i, i as u, j as c, k as f, l as n, m as p, p as C, t as D, n as d, o as b, q as h, r as x, s as S, u as P, v as T, w as g, x as v } from "./dataUtils-CAUE5uZY.js";
|
|
2
|
-
import { C as y, a as B, u as _ } from "./ChartCardDefaultsContext-
|
|
2
|
+
import { C as y, a as B, u as _ } from "./ChartCardDefaultsContext-BDRsVljO.js";
|
|
3
3
|
import { c as j, r as F, u as N } from "./createBiTheme-TyUv_UHM.js";
|
|
4
4
|
const w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5
5
|
__proto__: null,
|
|
@@ -38,4 +38,4 @@ const w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
38
38
|
export {
|
|
39
39
|
w as D
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=index-
|
|
41
|
+
//# sourceMappingURL=index-Dy6hwDjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-Dy6hwDjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
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-D7Oo_dC-.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-BYc79sSy.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-BTc4ElDG.js";
|
|
16
|
+
import { getBiModuleSurface as ce } from "./biModuleSurface-BdJK7sSL.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-Rr_4adpH.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-C4_VSDeU.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/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.3";
|
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-BTc4ElDG.js";
|
|
2
|
+
import { getBiModuleSurface as d } from "./biModuleSurface-BdJK7sSL.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-Rr_4adpH.js";
|
|
4
|
+
import { L as p, U as E, W as I, aE as R } from "./index-C4_VSDeU.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":";;;;"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
var M = Object.defineProperty;
|
|
2
|
+
var l = (t, i) => M(t, "name", { value: i, configurable: !0 });
|
|
3
|
+
import { extendModuleRegistry as _, extendDefaultScope as b, createUiToolRegistry as w } from "@aintela/chat/components";
|
|
4
|
+
import { getBiModuleSurface as B } from "./biModuleSurface-BdJK7sSL.js";
|
|
5
|
+
import { s as I } from "./ScriptDashboardViewerVertical-Rr_4adpH.js";
|
|
6
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
7
|
+
import { Box as p } from "@mui/material";
|
|
8
|
+
import { M as g, a as V, C as k, I as E } from "./index-BYc79sSy.js";
|
|
9
|
+
import { B as R } from "./BiClientProvider-CWJochvi.js";
|
|
10
|
+
import { W as $ } from "./index-C4_VSDeU.js";
|
|
11
|
+
const h = /* @__PURE__ */ new Set();
|
|
12
|
+
function O(t) {
|
|
13
|
+
const i = { ...B(), ...t.extraScope ?? {} }, a = t.specifiers.filter((o) => !h.has(o));
|
|
14
|
+
for (const o of a)
|
|
15
|
+
_(o, i), h.add(o);
|
|
16
|
+
(a.length > 0 || t.extraScope) && b(i), I(t.specifiers, t.extraHostModules);
|
|
17
|
+
}
|
|
18
|
+
l(O, "registerBiModules");
|
|
19
|
+
function P() {
|
|
20
|
+
h.clear();
|
|
21
|
+
}
|
|
22
|
+
l(P, "resetBiModuleRegistration");
|
|
23
|
+
function y(t) {
|
|
24
|
+
const i = t ?? {}, a = /* @__PURE__ */ l((o) => {
|
|
25
|
+
const d = i[o] ?? i[o.charAt(0).toUpperCase() + o.slice(1)];
|
|
26
|
+
return d == null ? void 0 : String(d);
|
|
27
|
+
}, "g");
|
|
28
|
+
return {
|
|
29
|
+
currentValue: a("currentValue") ?? "",
|
|
30
|
+
previousValue: a("previousValue"),
|
|
31
|
+
prefix: a("prefix"),
|
|
32
|
+
suffix: a("suffix"),
|
|
33
|
+
differenceStyle: a("differenceStyle"),
|
|
34
|
+
description: a("description"),
|
|
35
|
+
icon: a("icon")
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
l(y, "normalizeMetricArgs");
|
|
39
|
+
function S(t, i) {
|
|
40
|
+
let a = t;
|
|
41
|
+
for (let o = 0; o < 2 && typeof a == "string"; o++)
|
|
42
|
+
try {
|
|
43
|
+
a = JSON.parse(a);
|
|
44
|
+
} catch {
|
|
45
|
+
return i;
|
|
46
|
+
}
|
|
47
|
+
return a ?? i;
|
|
48
|
+
}
|
|
49
|
+
l(S, "parseJsonArg");
|
|
50
|
+
function A(t) {
|
|
51
|
+
const i = t == null ? void 0 : t.id;
|
|
52
|
+
return typeof i == "string" ? i : void 0;
|
|
53
|
+
}
|
|
54
|
+
l(A, "groupOf");
|
|
55
|
+
function T(t = {}) {
|
|
56
|
+
const { client: i, onExpandChart: a, onExpandIframe: o } = t, d = /* @__PURE__ */ l((e, r) => {
|
|
57
|
+
const n = /* @__PURE__ */ c(p, { sx: { my: 1 }, children: e }), f = r ? /* @__PURE__ */ c(
|
|
58
|
+
$,
|
|
59
|
+
{
|
|
60
|
+
id: r.frame.callId,
|
|
61
|
+
kind: r.kind,
|
|
62
|
+
title: r.title,
|
|
63
|
+
group: A(r.frame.message),
|
|
64
|
+
preview: r.preview,
|
|
65
|
+
ready: !r.frame.onGoing,
|
|
66
|
+
children: n
|
|
67
|
+
}
|
|
68
|
+
) : n;
|
|
69
|
+
return i ? /* @__PURE__ */ c(R, { client: i, children: f }) : f;
|
|
70
|
+
}, "wrap"), x = (t.builder ?? w()).render("present_metric", (e, r) => {
|
|
71
|
+
const n = y(e);
|
|
72
|
+
return n.currentValue ? d(/* @__PURE__ */ c(g, { partial: !1, ...n }), {
|
|
73
|
+
kind: "metric",
|
|
74
|
+
title: n.description,
|
|
75
|
+
// The value IS the thumbnail for a KPI — nothing smaller says more about it.
|
|
76
|
+
preview: /* @__PURE__ */ c(p, { sx: { fontSize: 15, fontWeight: 600, letterSpacing: "-0.02em" }, children: `${n.prefix ?? ""}${n.currentValue}${n.suffix ?? ""}` }),
|
|
77
|
+
frame: r
|
|
78
|
+
}) : null;
|
|
79
|
+
}).render("present_metric_group", (e, r) => {
|
|
80
|
+
var f;
|
|
81
|
+
if (!((f = e.metrics) != null && f.length)) return null;
|
|
82
|
+
const n = e.metrics.map((u) => y(u));
|
|
83
|
+
return d(
|
|
84
|
+
/* @__PURE__ */ c(V, { partial: !1, title: e.title, materialIcon: e.materialIcon, footNote: e.footNote, children: n.map((u, m) => /* @__PURE__ */ c(g, { partial: !1, ...u }, m)) }),
|
|
85
|
+
{
|
|
86
|
+
kind: "metric",
|
|
87
|
+
title: e.title,
|
|
88
|
+
preview: /* @__PURE__ */ c(p, { sx: { display: "flex", gap: 1.5, flexWrap: "wrap", fontSize: 13, fontWeight: 600, letterSpacing: "-0.02em" }, children: n.slice(0, 3).map((u, m) => /* @__PURE__ */ c(p, { component: "span", children: `${u.prefix ?? ""}${u.currentValue}${u.suffix ?? ""}` }, m)) }),
|
|
89
|
+
frame: r
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}).render("present_chart", (e, r) => e.src ? d(/* @__PURE__ */ c(k, { src: e.src, name: e.name, alt: e.alt, reasoning: e.reasoning, naked: e.naked, onExpand: a }), {
|
|
93
|
+
kind: "chart",
|
|
94
|
+
title: e.name ?? e.alt,
|
|
95
|
+
// The chart's OWN image, scaled down. A hand-drawn sparkline would be a second, different
|
|
96
|
+
// picture of the same data — and one this package would have to keep in step with the chart.
|
|
97
|
+
preview: i ? /* @__PURE__ */ c(p, { component: "img", src: i.artifactUrl(e.src), alt: "", sx: { maxWidth: "100%", maxHeight: 44, objectFit: "contain", display: "block" } }) : void 0,
|
|
98
|
+
frame: r
|
|
99
|
+
}) : null).render("present_iframe", (e, r) => !e.src || !e.name ? null : d(/* @__PURE__ */ c(E, { partial: !1, src: e.src, name: e.name, onExpand: o }), { kind: "iframe", title: e.name, frame: r })), s = t.environment;
|
|
100
|
+
return s ? x.action("refresh_dashboard", () => {
|
|
101
|
+
var e;
|
|
102
|
+
(e = s.refreshDashboard) == null || e.call(s);
|
|
103
|
+
}, { status: "Dashboard atualizado" }).action("present_dashboard_pad", (e) => {
|
|
104
|
+
var n, f;
|
|
105
|
+
const r = S(e.definitionJson, {});
|
|
106
|
+
e.mode === "create" ? (n = s.createDashboardPad) == null || n.call(s, r) : (f = s.updateDashboardPad) == null || f.call(s, r);
|
|
107
|
+
}, { status: "Rascunho atualizado" }).action("present_guide", (e) => {
|
|
108
|
+
var n;
|
|
109
|
+
const r = S(e.stepsJson, []);
|
|
110
|
+
Array.isArray(r) && r.length > 0 && ((n = s.showGuide) == null || n.call(s, r));
|
|
111
|
+
}, { status: "Guia iniciado" }) : x;
|
|
112
|
+
}
|
|
113
|
+
l(T, "createBiUiTools");
|
|
114
|
+
const j = "0.2.3";
|
|
115
|
+
export {
|
|
116
|
+
j as B,
|
|
117
|
+
P as a,
|
|
118
|
+
T as c,
|
|
119
|
+
y as n,
|
|
120
|
+
O as r
|
|
121
|
+
};
|
|
122
|
+
//# sourceMappingURL=version-BTc4ElDG.js.map
|