@burdenoff/microfe-bigconsole 2026.1119.4 → 2026.1119.6
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/bigconsole/components/ask/AskYourData.d.ts +5 -0
- package/dist/bigconsole/components/ask/AskYourData.js +330 -0
- package/dist/bigconsole/components/ask/askAnswer.d.ts +12 -0
- package/dist/bigconsole/components/ask/askAnswer.js +30 -0
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +126 -80
- package/dist/bigconsole/components/explore/CreateQueryWidget.d.ts +4 -2
- package/dist/bigconsole/components/explore/CreateQueryWidget.js +118 -102
- package/dist/bigconsole/graphql/storeTemplates.d.ts +1 -1
- package/dist/bigconsole/graphql/storeTemplates.js +5 -5
- package/dist/bigconsole/hooks/usePublishOwnerOptions.d.ts +10 -0
- package/dist/bigconsole/hooks/usePublishOwnerOptions.js +48 -0
- package/dist/bigconsole/hooks/useStoreDashboardTemplates.d.ts +8 -0
- package/dist/bigconsole/hooks/useStoreDashboardTemplates.js +3 -1
- package/dist/bigconsole/pages/InsightsPage.js +507 -505
- package/dist/bigconsole/utils/publishOwner.d.ts +100 -0
- package/dist/bigconsole/utils/publishOwner.js +71 -0
- package/dist/bigconsole/utils/quota.js +2 -1
- package/dist/generated/global-operations.d.ts +19 -0
- package/dist/generated/global-operations.js +80 -1
- package/dist/generated/wspace-operations.d.ts +58 -0
- package/dist/generated/wspace-operations.js +605 -156
- package/dist/generated/wspace-types.d.ts +88 -0
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keyed by workspace and signed-in user: an identity change remounts the panel in the same render, so the previous
|
|
3
|
+
* user's answer, provenance and Add-to-dashboard form are never committed under the new identity, not even for a frame.
|
|
4
|
+
*/
|
|
5
|
+
export declare function AskYourData(): import('react').JSX.Element;
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import { BigConsoleAskDocument as e } from "../../../generated/wspace-operations.js";
|
|
2
|
+
import { useBigConsole as t } from "../../context/BigConsoleContext.js";
|
|
3
|
+
import "../../context/index.js";
|
|
4
|
+
import { CreateQueryWidget as n } from "../explore/CreateQueryWidget.js";
|
|
5
|
+
import { reportBigConsoleQuotaError as r } from "../../utils/quota.js";
|
|
6
|
+
import { exploreError as i, workspaceRequest as a } from "../explore/useExploreRun.js";
|
|
7
|
+
import { STATUS_HEADING as o, barWidths as s, defaultWidgetTitle as c, toRows as l } from "./askAnswer.js";
|
|
8
|
+
import { useCallback as u, useEffect as d, useRef as f, useState as p } from "react";
|
|
9
|
+
import { useApolloClient as m } from "@apollo/client/react";
|
|
10
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
11
|
+
// src/bigconsole/components/ask/AskYourData.tsx
|
|
12
|
+
var _ = 500;
|
|
13
|
+
function v({ answer: e, workspaceId: t }) {
|
|
14
|
+
let r = l(e.rows, e.columns.length), [i, a] = p(!1), o = e.chart, u = o ? e.columns.indexOf(o.categoryColumn) : -1, d = o ? e.columns.indexOf(o.valueColumn) : -1, f = o && d >= 0 ? s(r.map((e) => e[d] ?? null)) : [], m = e.provenance;
|
|
15
|
+
return /* @__PURE__ */ g("div", {
|
|
16
|
+
className: "space-y-3",
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ h("p", {
|
|
19
|
+
className: "text-base font-medium text-text-primary",
|
|
20
|
+
children: e.headline
|
|
21
|
+
}),
|
|
22
|
+
o && u >= 0 && d >= 0 && /* @__PURE__ */ h("ul", {
|
|
23
|
+
"aria-label": `${o.valueColumn} by ${o.categoryColumn}`,
|
|
24
|
+
className: "space-y-1",
|
|
25
|
+
children: r.map((e, t) => /* @__PURE__ */ g("li", {
|
|
26
|
+
className: "grid grid-cols-[8rem_1fr_6rem] items-center gap-2 text-sm",
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ h("span", {
|
|
29
|
+
className: "truncate",
|
|
30
|
+
children: String(e[u])
|
|
31
|
+
}),
|
|
32
|
+
/* @__PURE__ */ h("span", {
|
|
33
|
+
className: "h-3 rounded bg-bg-surface",
|
|
34
|
+
"aria-hidden": "true",
|
|
35
|
+
children: /* @__PURE__ */ h("span", {
|
|
36
|
+
className: "block h-3 rounded bg-action-primary-bg",
|
|
37
|
+
style: { width: `${f[t] ?? 0}%` }
|
|
38
|
+
})
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ h("span", {
|
|
41
|
+
className: "text-right tabular-nums",
|
|
42
|
+
children: String(e[d])
|
|
43
|
+
})
|
|
44
|
+
]
|
|
45
|
+
}, t))
|
|
46
|
+
}),
|
|
47
|
+
e.truncated && /* @__PURE__ */ h("p", {
|
|
48
|
+
role: "status",
|
|
49
|
+
className: "text-sm font-medium text-text-primary",
|
|
50
|
+
children: "Only part of the result is shown; the service limit was reached, so treat these rows as incomplete."
|
|
51
|
+
}),
|
|
52
|
+
r.length > 0 && /* @__PURE__ */ h("div", {
|
|
53
|
+
className: "max-h-72 overflow-auto rounded border border-border-default",
|
|
54
|
+
tabIndex: 0,
|
|
55
|
+
"aria-label": "Answer data",
|
|
56
|
+
children: /* @__PURE__ */ g("table", {
|
|
57
|
+
className: "w-full text-left text-sm",
|
|
58
|
+
children: [/* @__PURE__ */ h("thead", {
|
|
59
|
+
className: "sticky top-0 bg-bg-surface",
|
|
60
|
+
children: /* @__PURE__ */ h("tr", { children: e.columns.map((e) => /* @__PURE__ */ h("th", {
|
|
61
|
+
scope: "col",
|
|
62
|
+
className: "px-3 py-2",
|
|
63
|
+
children: e
|
|
64
|
+
}, e)) })
|
|
65
|
+
}), /* @__PURE__ */ h("tbody", { children: r.map((e, t) => /* @__PURE__ */ h("tr", {
|
|
66
|
+
className: "border-t border-border-default",
|
|
67
|
+
children: e.map((e, t) => /* @__PURE__ */ h("td", {
|
|
68
|
+
className: "px-3 py-1.5",
|
|
69
|
+
children: e === null ? /* @__PURE__ */ h("i", {
|
|
70
|
+
className: "text-text-secondary",
|
|
71
|
+
children: "NULL"
|
|
72
|
+
}) : String(e)
|
|
73
|
+
}, t))
|
|
74
|
+
}, t)) })]
|
|
75
|
+
})
|
|
76
|
+
}),
|
|
77
|
+
m && /* @__PURE__ */ g("details", {
|
|
78
|
+
className: "rounded border border-border-default p-3 text-sm",
|
|
79
|
+
children: [
|
|
80
|
+
/* @__PURE__ */ h("summary", {
|
|
81
|
+
className: "cursor-pointer font-medium",
|
|
82
|
+
children: "How I got this"
|
|
83
|
+
}),
|
|
84
|
+
/* @__PURE__ */ g("dl", {
|
|
85
|
+
className: "mt-2 space-y-1",
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("dt", {
|
|
88
|
+
className: "inline font-medium",
|
|
89
|
+
children: "Data source: "
|
|
90
|
+
}), /* @__PURE__ */ g("dd", {
|
|
91
|
+
className: "inline",
|
|
92
|
+
children: [
|
|
93
|
+
m.sourceName,
|
|
94
|
+
" ",
|
|
95
|
+
/* @__PURE__ */ g("span", {
|
|
96
|
+
className: "text-text-secondary",
|
|
97
|
+
children: [
|
|
98
|
+
"(",
|
|
99
|
+
m.sourceId,
|
|
100
|
+
")"
|
|
101
|
+
]
|
|
102
|
+
})
|
|
103
|
+
]
|
|
104
|
+
})] }),
|
|
105
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("dt", {
|
|
106
|
+
className: "inline font-medium",
|
|
107
|
+
children: "Parser: "
|
|
108
|
+
}), /* @__PURE__ */ h("dd", {
|
|
109
|
+
className: "inline",
|
|
110
|
+
children: m.parser
|
|
111
|
+
})] }),
|
|
112
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("dt", {
|
|
113
|
+
className: "inline font-medium",
|
|
114
|
+
children: "Fields: "
|
|
115
|
+
}), /* @__PURE__ */ h("dd", {
|
|
116
|
+
className: "inline",
|
|
117
|
+
children: m.fieldsUsed.map((e) => `${e.name} (${e.type})`).join(", ")
|
|
118
|
+
})] }),
|
|
119
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("dt", {
|
|
120
|
+
className: "inline font-medium",
|
|
121
|
+
children: "Aggregation: "
|
|
122
|
+
}), /* @__PURE__ */ h("dd", {
|
|
123
|
+
className: "inline",
|
|
124
|
+
children: m.aggregations.join(", ")
|
|
125
|
+
})] }),
|
|
126
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("dt", {
|
|
127
|
+
className: "inline font-medium",
|
|
128
|
+
children: "Grouped by: "
|
|
129
|
+
}), /* @__PURE__ */ h("dd", {
|
|
130
|
+
className: "inline",
|
|
131
|
+
children: m.grouping.length ? m.grouping.join(", ") : "nothing"
|
|
132
|
+
})] }),
|
|
133
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("dt", {
|
|
134
|
+
className: "inline font-medium",
|
|
135
|
+
children: "Filters: "
|
|
136
|
+
}), /* @__PURE__ */ h("dd", {
|
|
137
|
+
className: "inline",
|
|
138
|
+
children: m.filters.length ? m.filters.join("; ") : "none"
|
|
139
|
+
})] }),
|
|
140
|
+
m.timeRange && /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("dt", {
|
|
141
|
+
className: "inline font-medium",
|
|
142
|
+
children: "Time range: "
|
|
143
|
+
}), /* @__PURE__ */ h("dd", {
|
|
144
|
+
className: "inline",
|
|
145
|
+
children: m.timeRange
|
|
146
|
+
})] }),
|
|
147
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("dt", {
|
|
148
|
+
className: "inline font-medium",
|
|
149
|
+
children: "Metric: "
|
|
150
|
+
}), /* @__PURE__ */ h("dd", {
|
|
151
|
+
className: "inline",
|
|
152
|
+
children: m.metricDefinition
|
|
153
|
+
})] }),
|
|
154
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("dt", {
|
|
155
|
+
className: "inline font-medium",
|
|
156
|
+
children: "Query: "
|
|
157
|
+
}), /* @__PURE__ */ h("dd", {
|
|
158
|
+
className: "inline",
|
|
159
|
+
children: /* @__PURE__ */ h("code", {
|
|
160
|
+
className: "break-all",
|
|
161
|
+
children: m.query
|
|
162
|
+
})
|
|
163
|
+
})] })
|
|
164
|
+
]
|
|
165
|
+
}),
|
|
166
|
+
m.limitations.length > 0 && /* @__PURE__ */ h("ul", {
|
|
167
|
+
className: "mt-2 list-disc pl-5 text-text-secondary",
|
|
168
|
+
children: m.limitations.map((e) => /* @__PURE__ */ h("li", { children: e }, e))
|
|
169
|
+
})
|
|
170
|
+
]
|
|
171
|
+
}),
|
|
172
|
+
e.usage && /* @__PURE__ */ g("p", {
|
|
173
|
+
className: "text-xs text-text-secondary",
|
|
174
|
+
children: [
|
|
175
|
+
e.usage.model,
|
|
176
|
+
" · ",
|
|
177
|
+
e.usage.tokensIn ?? "?",
|
|
178
|
+
" in / ",
|
|
179
|
+
e.usage.tokensOut ?? "?",
|
|
180
|
+
" out tokens",
|
|
181
|
+
e.usage.credits == null ? "" : ` · ${e.usage.credits} AI credits`
|
|
182
|
+
]
|
|
183
|
+
}),
|
|
184
|
+
e.spec != null && (i ? /* @__PURE__ */ h(n, {
|
|
185
|
+
askSpec: e.spec,
|
|
186
|
+
name: c(e),
|
|
187
|
+
workspaceId: t
|
|
188
|
+
}) : /* @__PURE__ */ h("button", {
|
|
189
|
+
type: "button",
|
|
190
|
+
className: "rounded border border-border-default px-3 py-1.5 text-sm",
|
|
191
|
+
onClick: () => a(!0),
|
|
192
|
+
children: "Add to dashboard"
|
|
193
|
+
}))
|
|
194
|
+
]
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
function y() {
|
|
198
|
+
let n = m(), { workspaceId: s, currentUser: c } = t(), l = c?.id ?? "", [y, b] = p(""), [x, S] = p(null), [C, w] = p(""), [T, E] = p(!1), [D, O] = p(""), k = f(0);
|
|
199
|
+
d(() => () => {
|
|
200
|
+
k.current += 1;
|
|
201
|
+
}, []);
|
|
202
|
+
let A = u(async (t) => {
|
|
203
|
+
let o = t.trim();
|
|
204
|
+
if (!o || o.length > _ || !s) return;
|
|
205
|
+
let c = ++k.current;
|
|
206
|
+
E(!0), O(""), S(null), w(o);
|
|
207
|
+
try {
|
|
208
|
+
let { data: t } = await n.query({
|
|
209
|
+
query: e,
|
|
210
|
+
variables: { question: o },
|
|
211
|
+
fetchPolicy: "network-only",
|
|
212
|
+
context: a(s)
|
|
213
|
+
});
|
|
214
|
+
if (c !== k.current) return;
|
|
215
|
+
if (!t?.bigconsoleAsk) throw Error("Missing answer");
|
|
216
|
+
S(t.bigconsoleAsk);
|
|
217
|
+
} catch (e) {
|
|
218
|
+
if (c !== k.current || r(e, "command")) return;
|
|
219
|
+
O(i(e));
|
|
220
|
+
} finally {
|
|
221
|
+
c === k.current && E(!1);
|
|
222
|
+
}
|
|
223
|
+
}, [
|
|
224
|
+
n,
|
|
225
|
+
s,
|
|
226
|
+
l
|
|
227
|
+
]);
|
|
228
|
+
return /* @__PURE__ */ g("section", {
|
|
229
|
+
"aria-labelledby": "ask-heading",
|
|
230
|
+
className: "space-y-3 rounded border border-border-default bg-bg-surface p-4",
|
|
231
|
+
children: [
|
|
232
|
+
/* @__PURE__ */ h("h2", {
|
|
233
|
+
id: "ask-heading",
|
|
234
|
+
className: "m-0 text-lg font-semibold text-text-primary",
|
|
235
|
+
children: "Ask your data"
|
|
236
|
+
}),
|
|
237
|
+
/* @__PURE__ */ h("p", {
|
|
238
|
+
className: "m-0 text-sm text-text-secondary",
|
|
239
|
+
children: "Ask a question about data already in your workspace. Answers come from a verified query over the data you may see; nothing is changed."
|
|
240
|
+
}),
|
|
241
|
+
/* @__PURE__ */ g("form", {
|
|
242
|
+
onSubmit: (e) => {
|
|
243
|
+
e.preventDefault(), A(y);
|
|
244
|
+
},
|
|
245
|
+
className: "flex flex-wrap items-end gap-2",
|
|
246
|
+
children: [/* @__PURE__ */ g("label", {
|
|
247
|
+
className: "flex min-w-[16rem] flex-1 flex-col gap-1 text-sm",
|
|
248
|
+
htmlFor: "ask-input",
|
|
249
|
+
children: ["Your question", /* @__PURE__ */ h("input", {
|
|
250
|
+
id: "ask-input",
|
|
251
|
+
className: "rounded border border-border-default bg-bg-surface px-3 py-2",
|
|
252
|
+
value: y,
|
|
253
|
+
maxLength: _,
|
|
254
|
+
placeholder: "e.g. Which region had the most revenue in August?",
|
|
255
|
+
onChange: (e) => b(e.target.value)
|
|
256
|
+
})]
|
|
257
|
+
}), /* @__PURE__ */ h("button", {
|
|
258
|
+
type: "submit",
|
|
259
|
+
disabled: T || !y.trim() || !s,
|
|
260
|
+
className: "rounded bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-fg disabled:opacity-60",
|
|
261
|
+
children: T ? "Asking…" : "Ask"
|
|
262
|
+
})]
|
|
263
|
+
}),
|
|
264
|
+
!s && /* @__PURE__ */ h("p", {
|
|
265
|
+
role: "status",
|
|
266
|
+
className: "m-0 text-sm text-text-secondary",
|
|
267
|
+
children: "Select a workspace to ask a question."
|
|
268
|
+
}),
|
|
269
|
+
/* @__PURE__ */ g("div", {
|
|
270
|
+
"aria-live": "polite",
|
|
271
|
+
children: [
|
|
272
|
+
T && /* @__PURE__ */ h("p", {
|
|
273
|
+
role: "status",
|
|
274
|
+
children: "Finding the answer in your data…"
|
|
275
|
+
}),
|
|
276
|
+
D && /* @__PURE__ */ h("p", {
|
|
277
|
+
role: "alert",
|
|
278
|
+
children: D
|
|
279
|
+
}),
|
|
280
|
+
x && /* @__PURE__ */ g("p", {
|
|
281
|
+
className: "m-0 text-sm text-text-secondary",
|
|
282
|
+
"data-testid": "ask-asked",
|
|
283
|
+
children: ["Answer to: ", /* @__PURE__ */ h("q", { children: C })]
|
|
284
|
+
}),
|
|
285
|
+
x?.status === "VERIFIED" && /* @__PURE__ */ h(v, {
|
|
286
|
+
answer: x,
|
|
287
|
+
workspaceId: s ?? ""
|
|
288
|
+
}, C + x.headline),
|
|
289
|
+
x && x.status !== "VERIFIED" && /* @__PURE__ */ g("div", {
|
|
290
|
+
className: "space-y-2",
|
|
291
|
+
"data-status": x.status,
|
|
292
|
+
children: [
|
|
293
|
+
/* @__PURE__ */ h("h3", {
|
|
294
|
+
className: "m-0 text-base font-medium",
|
|
295
|
+
children: o[x.status]
|
|
296
|
+
}),
|
|
297
|
+
x.message && /* @__PURE__ */ h("p", {
|
|
298
|
+
className: "m-0 text-sm",
|
|
299
|
+
children: x.message
|
|
300
|
+
}),
|
|
301
|
+
x.clarificationOptions.length > 0 && /* @__PURE__ */ h("div", {
|
|
302
|
+
className: "flex flex-wrap gap-2",
|
|
303
|
+
role: "group",
|
|
304
|
+
"aria-label": "Choose a data source",
|
|
305
|
+
children: x.clarificationOptions.map((e) => /* @__PURE__ */ h("button", {
|
|
306
|
+
type: "button",
|
|
307
|
+
className: "rounded border border-border-default px-3 py-1 text-sm",
|
|
308
|
+
onClick: () => {
|
|
309
|
+
let t = ` (use ${e.name})`, n = C.slice(0, Math.max(0, _ - t.length)) + t;
|
|
310
|
+
b(n), A(n);
|
|
311
|
+
},
|
|
312
|
+
children: e.name
|
|
313
|
+
}, e.id))
|
|
314
|
+
}),
|
|
315
|
+
x.provenance && /* @__PURE__ */ g("p", {
|
|
316
|
+
className: "m-0 text-xs text-text-secondary",
|
|
317
|
+
children: ["Looked at: ", x.provenance.sourceName]
|
|
318
|
+
})
|
|
319
|
+
]
|
|
320
|
+
})
|
|
321
|
+
]
|
|
322
|
+
})
|
|
323
|
+
]
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
function b() {
|
|
327
|
+
let { workspaceId: e, currentUser: n } = t();
|
|
328
|
+
return /* @__PURE__ */ h(y, {}, `${e ?? ""}|${n?.id ?? ""}`);
|
|
329
|
+
}
|
|
330
|
+
export { b as AskYourData };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BigConsoleAskQuery } from '../../../generated/wspace-operations';
|
|
2
|
+
export type AskAnswerData = BigConsoleAskQuery['bigconsoleAsk'];
|
|
3
|
+
export type AskStatus = AskAnswerData['status'];
|
|
4
|
+
/** Each non-verified outcome has its own heading, so a refusal never reads like "no data". */
|
|
5
|
+
export declare const STATUS_HEADING: Record<Exclude<AskStatus, 'VERIFIED'>, string>;
|
|
6
|
+
export type Cell = string | number | boolean | null;
|
|
7
|
+
/** Rows arrive as JSON; accept only a rectangular array of scalar cells. */
|
|
8
|
+
export declare function toRows(rows: unknown, width: number): Cell[][];
|
|
9
|
+
/** Bar lengths only; the exact figures are always shown as text beside each bar. */
|
|
10
|
+
export declare function barWidths(values: Cell[]): number[];
|
|
11
|
+
/** Metadata-only default widget title: aggregates, grouping and source, never a value from the result. */
|
|
12
|
+
export declare function defaultWidgetTitle(answer: AskAnswerData): string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// src/bigconsole/components/ask/askAnswer.ts
|
|
2
|
+
var e = {
|
|
3
|
+
CLARIFICATION_NEEDED: "I need a bit more detail",
|
|
4
|
+
NO_MATCHING_DATA: "No matching data",
|
|
5
|
+
UNSUPPORTED: "I can’t answer that yet",
|
|
6
|
+
INSUFFICIENT_DATA: "The evidence is incomplete",
|
|
7
|
+
REFUSED: "You don’t have access to answer that",
|
|
8
|
+
UNAVAILABLE: "Ask is unavailable right now"
|
|
9
|
+
};
|
|
10
|
+
function t(e, t) {
|
|
11
|
+
return Array.isArray(e) && e.every((e) => Array.isArray(e) && e.length === t && e.every((e) => e === null || [
|
|
12
|
+
"string",
|
|
13
|
+
"number",
|
|
14
|
+
"boolean"
|
|
15
|
+
].includes(typeof e))) ? e : [];
|
|
16
|
+
}
|
|
17
|
+
function n(e) {
|
|
18
|
+
let t = e.map((e) => {
|
|
19
|
+
let t = typeof e == "string" || typeof e == "number" ? Number(e) : NaN;
|
|
20
|
+
return Number.isFinite(t) ? Math.max(t, 0) : 0;
|
|
21
|
+
}), n = Math.max(...t, 0);
|
|
22
|
+
return t.map((e) => n > 0 ? Math.round(e / n * 100) : 0);
|
|
23
|
+
}
|
|
24
|
+
function r(e) {
|
|
25
|
+
let t = e.provenance;
|
|
26
|
+
if (!t) return "Answer";
|
|
27
|
+
let n = t.grouping.length ? ` by ${t.grouping.join(", ")}` : "";
|
|
28
|
+
return `${t.aggregations.join(", ")}${n} (${t.sourceName})`.slice(0, 100);
|
|
29
|
+
}
|
|
30
|
+
export { e as STATUS_HEADING, n as barWidths, r as defaultWidgetTitle, t as toRows };
|