@fses/workbench-app 0.3.5 → 0.3.7
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/WORKBENCH-CLOSURE.json +12 -12
- package/dist/{WorkbenchCardCenterDrawer-Dp5ygyZ3.js → WorkbenchCardCenterDrawer-n-NpuRXY.js} +3 -3
- package/dist/{WorkbenchDiagnosticsFooter-C0is4UXX.js → WorkbenchDiagnosticsFooter-yEvt4Wkw.js} +1 -1
- package/dist/{WorkbenchDiagnosticsPage-DOa2B34l.js → WorkbenchDiagnosticsPage-DwnoO7II.js} +1 -1
- package/dist/{Workspace-CgFYrVQM.js → Workspace-B8D8DbLe.js} +4079 -4079
- package/dist/canvas/api/index.js +1 -1
- package/dist/{canvasFacade-ZFqB_i7z.js → canvasFacade-DlebDEqi.js} +1 -1
- package/dist/{cardFactory-D5dyYSC3.js → cardFactory-Bmt-0aZg.js} +345 -338
- package/dist/config/workbenchAppConfig.d.ts +14 -1
- package/dist/{customCardCatalog-B8GSXii6.js → customCardCatalog-CN59FR9j.js} +3 -3
- package/dist/extensions/index.js +1 -1
- package/dist/fses-workbench-app.js +5 -5
- package/dist/{index-B91WNNqp.js → index-BJCPHCc1.js} +8 -8
- package/dist/internal/personal-workbench/extensions/runtimeExtensions.d.ts +6 -1
- package/dist/{normalizeWorkbenchExtensions-Ccv3n3fC.js → normalizeWorkbenchExtensions-Ve5GcdIX.js} +1 -1
- package/dist/runtime/index.js +1 -1
- package/dist/{useWorkbenchRuntime-Dhqcfdj5.js → useWorkbenchRuntime-gWFb0SyH.js} +5053 -5026
- package/dist/version.d.ts +1 -1
- package/node_modules/@fses/ai-chat/package.json +3 -3
- package/node_modules/@fses/workbench-card/package.json +1 -1
- package/package.json +3 -3
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import "@fses/workbench-card";
|
|
2
2
|
import { resolveCardRegistryEntry as Z, compositeCardPatternById as ee } from "@fses/workbench-card/registry";
|
|
3
3
|
import "@fses/workbench-card/renderers";
|
|
4
|
-
const e = (a, t,
|
|
4
|
+
const e = (a, t, r) => {
|
|
5
5
|
if (!a)
|
|
6
6
|
return console.error("getLocaleText的key不能为空"), "";
|
|
7
|
-
const
|
|
7
|
+
const i = a.split(".");
|
|
8
8
|
let n;
|
|
9
9
|
const s = (window.baitedaWorkers || {}).languageMessages || {};
|
|
10
|
-
|
|
10
|
+
i.forEach((l, d) => {
|
|
11
11
|
d === 0 ? n = s[l] : n && (n = n[l]);
|
|
12
12
|
});
|
|
13
13
|
let o = "";
|
|
14
14
|
return n && (o = n), t && Object.keys(t).forEach((l) => {
|
|
15
15
|
const d = t[l];
|
|
16
16
|
o = o.replace(new RegExp(`\\{\\s*${l}\\s*\\}`, "g"), d);
|
|
17
|
-
}), o || (
|
|
17
|
+
}), o || (r ? o = r : o = a), o;
|
|
18
18
|
}, ae = {
|
|
19
19
|
"card.metric.numeric": { previewKind: "metricNumeric", layoutHint: "metric", sampleTone: "info", sampleTitle: e("FWA.877e1787571438961") },
|
|
20
20
|
"card.metric.combo": { previewKind: "metricCombo", layoutHint: "metric", sampleTone: "info", sampleTitle: e("FWA.386b1787571438967") },
|
|
@@ -103,182 +103,182 @@ const e = (a, t, i) => {
|
|
|
103
103
|
function te(a) {
|
|
104
104
|
const t = ae[a.capabilityId];
|
|
105
105
|
if (t) return { capabilityId: a.capabilityId, explicit: !0, ...t };
|
|
106
|
-
const
|
|
106
|
+
const r = a.dataShape === "metricSummary" ? "metric" : a.dataShape === "rows" ? "table" : a.dataShape === "networkGraph" ? "network" : a.dataShape === "customCanvas" ? "customCanvas" : a.dataShape === "embeddedFrame" ? "embed" : "metric";
|
|
107
107
|
return {
|
|
108
108
|
capabilityId: a.capabilityId,
|
|
109
109
|
previewKind: `${a.category.replace(/^card\./u, "").replace(/[^a-z0-9]+/giu, "_")}_${a.type}`,
|
|
110
|
-
layoutHint:
|
|
110
|
+
layoutHint: r,
|
|
111
111
|
sampleTone: "neutral",
|
|
112
112
|
sampleTitle: a.title,
|
|
113
113
|
explicit: !1
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
-
const p = 100, y = 5,
|
|
116
|
+
const p = 100, y = 5, R = {
|
|
117
117
|
small: { w: 33.333, h: 20 },
|
|
118
118
|
medium: { w: 33.333, h: 34 },
|
|
119
119
|
componentTall: { w: 33.333, h: 42 },
|
|
120
120
|
large: { w: 100, h: 32 },
|
|
121
121
|
screen: { w: 100, h: 50 }
|
|
122
|
-
},
|
|
122
|
+
}, re = {
|
|
123
123
|
small: 3,
|
|
124
124
|
medium: 3,
|
|
125
125
|
componentTall: 3,
|
|
126
126
|
large: 1,
|
|
127
127
|
screen: 1
|
|
128
|
-
},
|
|
128
|
+
}, ie = 0.75;
|
|
129
129
|
function F(a, t) {
|
|
130
|
-
const
|
|
131
|
-
return Number.isFinite(
|
|
130
|
+
const r = Number(a);
|
|
131
|
+
return Number.isFinite(r) ? r : t;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function na(a) {
|
|
134
134
|
return Math.max(1, a) / p;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function la(a, t) {
|
|
137
137
|
return a * t;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function sa(a, t) {
|
|
140
140
|
return a / Math.max(1e-4, t);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function oa(a, t = y) {
|
|
143
143
|
return Math.round(a / t) * t;
|
|
144
144
|
}
|
|
145
145
|
function c(a) {
|
|
146
146
|
return Math.round(a * 1e3) / 1e3;
|
|
147
147
|
}
|
|
148
148
|
function O(a = "small") {
|
|
149
|
-
return { ...
|
|
149
|
+
return { ...R[a] };
|
|
150
150
|
}
|
|
151
151
|
function T(a) {
|
|
152
|
-
const t = Math.min(p, Math.max(y, c(F(a.w, 30)))),
|
|
153
|
-
return { x:
|
|
152
|
+
const t = Math.min(p, Math.max(y, c(F(a.w, 30)))), r = Math.max(y, c(F(a.h, 20))), i = Math.min(p - t, Math.max(0, c(F(a.x, 0)))), n = Math.max(0, c(F(a.y, 0)));
|
|
153
|
+
return { x: i, y: n, w: t, h: r };
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
const t = Math.min(p, Math.max(y, c(F(a.w, 30)))),
|
|
157
|
-
return { x:
|
|
155
|
+
function b(a) {
|
|
156
|
+
const t = Math.min(p, Math.max(y, c(F(a.w, 30)))), r = Math.max(y, c(F(a.h, 20))), i = Math.min(p - t, Math.max(0, c(F(a.x, 0)))), n = Math.max(0, c(F(a.y, 0)));
|
|
157
|
+
return { x: i, y: n, w: t, h: r };
|
|
158
158
|
}
|
|
159
159
|
function ne(a, t) {
|
|
160
160
|
return !(a.x + a.w <= t.x || t.x + t.w <= a.x || a.y + a.h <= t.y || t.y + t.h <= a.y);
|
|
161
161
|
}
|
|
162
162
|
function S(a, t) {
|
|
163
|
-
return a.x >= 0 && a.y >= 0 && a.x + a.w <= p && t.every((
|
|
163
|
+
return a.x >= 0 && a.y >= 0 && a.x + a.w <= p && t.every((r) => !ne(a, r));
|
|
164
164
|
}
|
|
165
165
|
function le(a, t) {
|
|
166
166
|
return c(a.w) === c(t.w) && c(a.h) === c(t.h);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
return [...new Set(a.map((t) => c(t)))].filter((t) => Number.isFinite(t)).sort((t,
|
|
168
|
+
function P(a) {
|
|
169
|
+
return [...new Set(a.map((t) => c(t)))].filter((t) => Number.isFinite(t)).sort((t, r) => t - r);
|
|
170
170
|
}
|
|
171
171
|
function se(a) {
|
|
172
|
-
return a.map(T).sort((t,
|
|
173
|
-
const
|
|
174
|
-
if (
|
|
175
|
-
const n = t.x -
|
|
176
|
-
return n !== 0 ? n : t.w -
|
|
172
|
+
return a.map(T).sort((t, r) => {
|
|
173
|
+
const i = t.y - r.y;
|
|
174
|
+
if (i !== 0) return i;
|
|
175
|
+
const n = t.x - r.x;
|
|
176
|
+
return n !== 0 ? n : t.w - r.w || t.h - r.h;
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
function oe(a) {
|
|
180
180
|
const t = /* @__PURE__ */ new Map();
|
|
181
|
-
return se(a).forEach((
|
|
182
|
-
const
|
|
183
|
-
t.set(
|
|
184
|
-
}), [...t.entries()].map(([
|
|
181
|
+
return se(a).forEach((r) => {
|
|
182
|
+
const i = c(r.y);
|
|
183
|
+
t.set(i, [...t.get(i) || [], r]);
|
|
184
|
+
}), [...t.entries()].map(([r, i]) => ({ y: r, rects: i.sort((n, s) => n.x - s.x) })).sort((r, i) => r.y - i.y);
|
|
185
185
|
}
|
|
186
186
|
function x(a) {
|
|
187
|
-
return a.reduce((t,
|
|
187
|
+
return a.reduce((t, r) => Math.max(t, r.h), 0);
|
|
188
188
|
}
|
|
189
189
|
function ce(a) {
|
|
190
|
-
return a.reduce((t,
|
|
190
|
+
return a.reduce((t, r) => t + r.w, 0);
|
|
191
191
|
}
|
|
192
192
|
function de(a, t) {
|
|
193
|
-
return a >= t *
|
|
193
|
+
return a >= t * ie;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function U(a) {
|
|
196
196
|
for (const t of ["screen", "large", "componentTall", "medium", "small"]) {
|
|
197
|
-
const
|
|
198
|
-
if (a.length >=
|
|
197
|
+
const r = R[t].w, i = re[t];
|
|
198
|
+
if (a.length >= i && a.every((n) => n.w === r))
|
|
199
199
|
return t;
|
|
200
200
|
}
|
|
201
201
|
return null;
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
const
|
|
203
|
+
function G(a, t) {
|
|
204
|
+
const r = oe(t), i = r.map((l) => ({
|
|
205
205
|
...l,
|
|
206
206
|
width: ce(l.rects),
|
|
207
207
|
height: x(l.rects),
|
|
208
208
|
hasSameSize: l.rects.some((d) => le(d, a))
|
|
209
209
|
})).filter(
|
|
210
210
|
(l) => l.width + a.w <= p && de(l.height, a.h)
|
|
211
|
-
), s =
|
|
211
|
+
), s = i.filter((l) => l.height === a.h || l.hasSameSize).sort((l, d) => l.hasSameSize !== d.hasSameSize ? l.hasSameSize ? -1 : 1 : l.y - d.y)[0] || i[0];
|
|
212
212
|
if (s) {
|
|
213
213
|
const l = { ...a, x: c(s.width), y: s.y };
|
|
214
214
|
if (S(l, t)) return l;
|
|
215
215
|
}
|
|
216
|
-
const o =
|
|
216
|
+
const o = r.reduce((l, d) => Math.max(l, d.y + x(d.rects)), 0);
|
|
217
217
|
return { ...a, x: 0, y: c(o) };
|
|
218
218
|
}
|
|
219
219
|
function q(a, t) {
|
|
220
|
-
const
|
|
221
|
-
if (S(i, t)) return i;
|
|
222
|
-
const r = U(i, t);
|
|
220
|
+
const r = T(a);
|
|
223
221
|
if (S(r, t)) return r;
|
|
224
|
-
const
|
|
222
|
+
const i = G(r, t);
|
|
223
|
+
if (S(i, t)) return i;
|
|
224
|
+
const n = t.reduce((l, d) => Math.max(l, d.y + d.h), 0), s = P([
|
|
225
225
|
0,
|
|
226
|
-
|
|
226
|
+
r.x,
|
|
227
227
|
...t.flatMap((l) => [l.x, l.x + l.w])
|
|
228
|
-
]).filter((l) => l >= 0 && l +
|
|
228
|
+
]).filter((l) => l >= 0 && l + r.w <= p), o = P([
|
|
229
229
|
0,
|
|
230
|
-
|
|
230
|
+
r.y,
|
|
231
231
|
n,
|
|
232
232
|
...t.flatMap((l) => [l.y, l.y + l.h])
|
|
233
233
|
]).filter((l) => l >= 0);
|
|
234
234
|
for (const l of o)
|
|
235
235
|
for (const d of s) {
|
|
236
|
-
const A = { ...
|
|
236
|
+
const A = { ...r, x: d, y: l };
|
|
237
237
|
if (S(A, t)) return A;
|
|
238
238
|
}
|
|
239
|
-
return { ...
|
|
239
|
+
return { ...r, x: 0, y: c(n + y) };
|
|
240
240
|
}
|
|
241
241
|
function ue(a, t) {
|
|
242
|
-
const
|
|
243
|
-
return S(
|
|
242
|
+
const r = T(a), i = G(r, t);
|
|
243
|
+
return S(i, t) ? i : q(r, t);
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function ca(a) {
|
|
246
246
|
const t = /* @__PURE__ */ new Map();
|
|
247
|
-
return a.forEach((
|
|
248
|
-
const
|
|
249
|
-
t.set(
|
|
250
|
-
}), [...t.entries()].sort((
|
|
251
|
-
const n =
|
|
252
|
-
const
|
|
253
|
-
return
|
|
254
|
-
}), s = n.reduce((u,
|
|
247
|
+
return a.forEach((r) => {
|
|
248
|
+
const i = c(b(r.layout).y);
|
|
249
|
+
t.set(i, [...t.get(i) || [], r]);
|
|
250
|
+
}), [...t.entries()].sort((r, i) => r[0] - i[0]).flatMap(([r, i]) => {
|
|
251
|
+
const n = i.slice().sort((u, h) => {
|
|
252
|
+
const f = b(u.layout), w = b(h.layout), C = f.x - w.x;
|
|
253
|
+
return C !== 0 ? C : f.w - w.w || f.h - w.h;
|
|
254
|
+
}), s = n.reduce((u, h) => u + b(h.layout).w, 0), o = Math.max(0, p - s), l = n.reduce((u, h) => Math.min(u, b(h.layout).w), p), d = U(n.map((u) => b(u.layout))), A = !!d && o > 0 && o < l, W = A ? n.filter((u) => b(u.layout).w === R[d].w) : [], m = W.length > 0 ? o / W.length : 0;
|
|
255
255
|
let v = 0;
|
|
256
|
-
return n.map((u,
|
|
257
|
-
const
|
|
258
|
-
...
|
|
256
|
+
return n.map((u, h) => {
|
|
257
|
+
const f = b(u.layout), w = h === n.length - 1, C = W.length > 0 ? W.includes(u) : A && w, Q = A && w ? Math.max(y, c(p - v)) : Math.max(y, c(C ? f.w + m : f.w)), D = {
|
|
258
|
+
...f,
|
|
259
259
|
x: c(v),
|
|
260
|
-
y:
|
|
260
|
+
y: r,
|
|
261
261
|
w: Q
|
|
262
262
|
};
|
|
263
|
-
return v +=
|
|
263
|
+
return v += D.w, {
|
|
264
264
|
...u,
|
|
265
265
|
layout: {
|
|
266
266
|
...u.layout,
|
|
267
|
-
...
|
|
267
|
+
...D
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
270
|
});
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
273
|
function pe(a, t) {
|
|
274
|
-
const
|
|
274
|
+
const r = a.reduce((m, v) => m + v.rect.w, 0), i = Math.max(0, p - r), n = U(a.map((m) => m.rect)), s = !!n, o = s ? a.filter((m) => m.rect.w === R[n].w) : [], l = s && o.length === 0 ? a[a.length - 1] : null, d = o.length || (l ? 1 : 0), A = d > 0 ? i / d : 0;
|
|
275
275
|
let W = 0;
|
|
276
276
|
return a.map((m, v) => {
|
|
277
|
-
const u = v === a.length - 1,
|
|
277
|
+
const u = v === a.length - 1, h = o.includes(m) || m === l, f = u && s ? Math.max(y, c(p - W)) : Math.max(y, c(m.rect.w + (h ? A : 0))), w = {
|
|
278
278
|
...m.rect,
|
|
279
279
|
x: c(W),
|
|
280
280
|
y: t,
|
|
281
|
-
w:
|
|
281
|
+
w: f
|
|
282
282
|
};
|
|
283
283
|
return W += w.w, {
|
|
284
284
|
...m.item,
|
|
@@ -291,37 +291,37 @@ function pe(a, t) {
|
|
|
291
291
|
}
|
|
292
292
|
function me(a) {
|
|
293
293
|
const t = [];
|
|
294
|
-
let
|
|
294
|
+
let r = 0, i = [];
|
|
295
295
|
const n = () => {
|
|
296
|
-
|
|
296
|
+
i.length !== 0 && (t.push(...pe(i, c(r))), r += x(i.map((s) => s.rect)), i = []);
|
|
297
297
|
};
|
|
298
298
|
return a.forEach((s) => {
|
|
299
|
-
const o =
|
|
299
|
+
const o = b(s.layout);
|
|
300
300
|
if (o.w >= p) {
|
|
301
|
-
n(),
|
|
301
|
+
n(), i = [{ item: s, rect: { ...o, x: 0, w: p } }], n();
|
|
302
302
|
return;
|
|
303
303
|
}
|
|
304
|
-
const l =
|
|
305
|
-
|
|
304
|
+
const l = i.reduce((d, A) => d + A.rect.w, 0);
|
|
305
|
+
i.length > 0 && l + o.w > p && n(), i.push({ item: s, rect: o });
|
|
306
306
|
}), n(), t;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function da(a) {
|
|
309
309
|
const t = [...a].sort((s, o) => {
|
|
310
|
-
const l =
|
|
310
|
+
const l = b(s.layout), d = b(o.layout), A = l.y - d.y;
|
|
311
311
|
if (A !== 0) return A;
|
|
312
312
|
const W = l.x - d.x;
|
|
313
313
|
return W !== 0 ? W : s.id.localeCompare(o.id);
|
|
314
314
|
});
|
|
315
|
-
let
|
|
315
|
+
let r = 0, i = 0, n = 0;
|
|
316
316
|
return t.map((s) => {
|
|
317
|
-
const o =
|
|
318
|
-
|
|
317
|
+
const o = b(s.layout);
|
|
318
|
+
r > 0 && r + o.w > p && (r = 0, i = c(i + n), n = 0);
|
|
319
319
|
const l = {
|
|
320
320
|
...o,
|
|
321
|
-
x: c(
|
|
322
|
-
y: c(
|
|
321
|
+
x: c(r),
|
|
322
|
+
y: c(i)
|
|
323
323
|
};
|
|
324
|
-
return
|
|
324
|
+
return r = c(r + l.w), n = Math.max(n, l.h), {
|
|
325
325
|
...s,
|
|
326
326
|
layout: {
|
|
327
327
|
...s.layout,
|
|
@@ -331,43 +331,43 @@ function sa(a) {
|
|
|
331
331
|
};
|
|
332
332
|
});
|
|
333
333
|
}
|
|
334
|
-
function
|
|
335
|
-
const t = [...a].sort((
|
|
336
|
-
const n =
|
|
334
|
+
function ua(a) {
|
|
335
|
+
const t = [...a].sort((r, i) => {
|
|
336
|
+
const n = b(r.layout), s = b(i.layout), o = n.y - s.y;
|
|
337
337
|
if (o !== 0) return o;
|
|
338
338
|
const l = n.x - s.x;
|
|
339
|
-
return l !== 0 ? l :
|
|
339
|
+
return l !== 0 ? l : r.id.localeCompare(i.id);
|
|
340
340
|
});
|
|
341
|
-
return me(t).map((
|
|
342
|
-
...
|
|
341
|
+
return me(t).map((r) => ({
|
|
342
|
+
...r,
|
|
343
343
|
layout: {
|
|
344
|
-
...
|
|
345
|
-
i:
|
|
344
|
+
...r.layout,
|
|
345
|
+
i: r.id
|
|
346
346
|
}
|
|
347
347
|
}));
|
|
348
348
|
}
|
|
349
|
-
function
|
|
350
|
-
return a.reduce((
|
|
349
|
+
function pa(a, t = 20) {
|
|
350
|
+
return a.reduce((r, i) => Math.max(r, i.y + i.h), 0) + t;
|
|
351
351
|
}
|
|
352
352
|
function Ae(a) {
|
|
353
|
-
var
|
|
354
|
-
const t = O(a.preset),
|
|
355
|
-
x: F((
|
|
353
|
+
var i, n, s, o;
|
|
354
|
+
const t = O(a.preset), r = T({
|
|
355
|
+
x: F((i = a.layout) == null ? void 0 : i.x, 0),
|
|
356
356
|
y: F((n = a.layout) == null ? void 0 : n.y, 0),
|
|
357
357
|
w: F(((s = a.layout) == null ? void 0 : s.w) ?? a.width, t.w),
|
|
358
358
|
h: F(((o = a.layout) == null ? void 0 : o.h) ?? a.height, t.h)
|
|
359
359
|
});
|
|
360
|
-
return q(
|
|
360
|
+
return q(r, a.placed);
|
|
361
361
|
}
|
|
362
362
|
function Fe(a) {
|
|
363
|
-
var
|
|
364
|
-
const t = O(a.preset),
|
|
365
|
-
x: F((
|
|
363
|
+
var i, n, s, o;
|
|
364
|
+
const t = O(a.preset), r = T({
|
|
365
|
+
x: F((i = a.layout) == null ? void 0 : i.x, 0),
|
|
366
366
|
y: F((n = a.layout) == null ? void 0 : n.y, 0),
|
|
367
367
|
w: F(((s = a.layout) == null ? void 0 : s.w) ?? a.width, t.w),
|
|
368
368
|
h: F(((o = a.layout) == null ? void 0 : o.h) ?? a.height, t.h)
|
|
369
369
|
});
|
|
370
|
-
return ue(
|
|
370
|
+
return ue(r, a.placed);
|
|
371
371
|
}
|
|
372
372
|
function We(a, t) {
|
|
373
373
|
return {
|
|
@@ -379,11 +379,11 @@ function We(a, t) {
|
|
|
379
379
|
static: !1
|
|
380
380
|
};
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function ma(a) {
|
|
383
383
|
return {
|
|
384
384
|
getItem: (t) => a.getItem(t),
|
|
385
385
|
removeItem: (t) => a.removeItem(t),
|
|
386
|
-
setItem: (t,
|
|
386
|
+
setItem: (t, r) => a.setItem(t, r)
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
389
|
const k = {
|
|
@@ -393,140 +393,146 @@ const k = {
|
|
|
393
393
|
return t.json();
|
|
394
394
|
},
|
|
395
395
|
resolveAssetUrl: (a) => a
|
|
396
|
-
},
|
|
396
|
+
}, K = {
|
|
397
397
|
debug: (a, t) => console.debug(a, t),
|
|
398
398
|
error: (a, t) => console.error(a, t),
|
|
399
399
|
info: (a, t) => console.info(a, t),
|
|
400
400
|
warn: (a, t) => console.warn(a, t)
|
|
401
|
-
},
|
|
402
|
-
error: (a) =>
|
|
403
|
-
info: (a) =>
|
|
404
|
-
success: (a) =>
|
|
405
|
-
warning: (a) =>
|
|
406
|
-
};
|
|
401
|
+
}, Aa = {
|
|
402
|
+
error: (a) => K.error(a),
|
|
403
|
+
info: (a) => K.info(a),
|
|
404
|
+
success: (a) => K.info(a),
|
|
405
|
+
warning: (a) => K.warn(a)
|
|
406
|
+
}, be = "https://byteluck.oss-cn-beijing.aliyuncs.com/resources";
|
|
407
|
+
function he(a) {
|
|
408
|
+
var t, r;
|
|
409
|
+
return ((r = (t = a == null ? void 0 : a.assets) == null ? void 0 : t.echartsTemplateCdnBaseUrl) == null ? void 0 : r.trim()) || be;
|
|
410
|
+
}
|
|
407
411
|
let H = {}, j = {}, Y = {};
|
|
408
412
|
function fe(a) {
|
|
409
413
|
H = a;
|
|
410
414
|
}
|
|
411
|
-
function
|
|
412
|
-
j = a, Y = t, fe(
|
|
415
|
+
function Fa(a, t, r) {
|
|
416
|
+
j = a, Y = t, fe(r);
|
|
413
417
|
}
|
|
414
|
-
function
|
|
418
|
+
function we() {
|
|
415
419
|
return j;
|
|
416
420
|
}
|
|
417
|
-
function
|
|
421
|
+
function ye() {
|
|
418
422
|
return Y;
|
|
419
423
|
}
|
|
420
|
-
function
|
|
424
|
+
function ve() {
|
|
425
|
+
return he(ye());
|
|
426
|
+
}
|
|
427
|
+
function Wa() {
|
|
421
428
|
return H;
|
|
422
429
|
}
|
|
423
|
-
function
|
|
430
|
+
function ba() {
|
|
424
431
|
var a;
|
|
425
432
|
return (a = H.fde) == null ? void 0 : a.generatedTemplateShell;
|
|
426
433
|
}
|
|
427
434
|
const _ = "echarts-system-card-templates";
|
|
428
435
|
let B = /* @__PURE__ */ new WeakMap();
|
|
429
|
-
const
|
|
430
|
-
function
|
|
436
|
+
const ge = /* @__PURE__ */ new Set();
|
|
437
|
+
function Te(a) {
|
|
431
438
|
const t = B.get(a);
|
|
432
439
|
if (t) return t;
|
|
433
|
-
const
|
|
434
|
-
return B.set(a,
|
|
440
|
+
const r = /* @__PURE__ */ new Map();
|
|
441
|
+
return B.set(a, r), ge.add(r), r;
|
|
435
442
|
}
|
|
436
443
|
async function E(a) {
|
|
437
|
-
const t =
|
|
444
|
+
const t = Ke(a, Ce()), r = we().assetAdapter ?? k, i = r.resolveAssetUrl(t ?? a), n = Te(r), s = n.get(i);
|
|
438
445
|
if (s) return await s;
|
|
439
|
-
const o =
|
|
446
|
+
const o = Se(i, r).then((l) => {
|
|
440
447
|
if (l.ok) return l.value;
|
|
441
448
|
throw l.error;
|
|
442
449
|
});
|
|
443
|
-
return n.set(
|
|
444
|
-
n.get(
|
|
450
|
+
return n.set(i, o), o.catch(() => {
|
|
451
|
+
n.get(i) === o && n.delete(i);
|
|
445
452
|
}), await o;
|
|
446
453
|
}
|
|
447
|
-
async function
|
|
448
|
-
var
|
|
454
|
+
async function Se(a, t) {
|
|
455
|
+
var r;
|
|
449
456
|
try {
|
|
450
|
-
const
|
|
451
|
-
if (
|
|
452
|
-
return { ok: !0, value:
|
|
453
|
-
} catch (
|
|
454
|
-
const n =
|
|
457
|
+
const i = t.loadJson ? await t.loadJson(a) : await ((r = k.loadJson) == null ? void 0 : r.call(k, a));
|
|
458
|
+
if (i === void 0) throw new Error("WORKBENCH_ASSET_JSON_LOADER_REQUIRED");
|
|
459
|
+
return { ok: !0, value: i };
|
|
460
|
+
} catch (i) {
|
|
461
|
+
const n = i instanceof Error ? i.message : String(i);
|
|
455
462
|
return { ok: !1, error: new Error(e("FWA.698e1787570315934", { p0: a, p1: n })) };
|
|
456
463
|
}
|
|
457
464
|
}
|
|
458
|
-
function
|
|
459
|
-
|
|
460
|
-
return ((i = (t = he().assets) == null ? void 0 : t.echartsTemplateCdnBaseUrl) == null ? void 0 : i.trim()) || void 0;
|
|
465
|
+
function Ce() {
|
|
466
|
+
return ve();
|
|
461
467
|
}
|
|
462
|
-
function
|
|
468
|
+
function Ke(a, t) {
|
|
463
469
|
if (!t) return;
|
|
464
|
-
const
|
|
465
|
-
return
|
|
470
|
+
const r = t.replace(/\/+$/u, ""), i = a.replace(/^\/+/u, "");
|
|
471
|
+
return r.endsWith(`/${_}`) ? `${r}/${i.slice(`${_}/`.length)}` : `${r}/${i}`;
|
|
466
472
|
}
|
|
467
|
-
const
|
|
468
|
-
function
|
|
473
|
+
const ke = ["extraction", "officialComparison", "officialSourceReplay"], Le = ["params", "reloadPolicy", "extraction"];
|
|
474
|
+
function ha(a) {
|
|
469
475
|
let t = !1;
|
|
470
|
-
const
|
|
471
|
-
const n =
|
|
472
|
-
return n !==
|
|
476
|
+
const r = a.blocks.map((i) => {
|
|
477
|
+
const n = Re(i);
|
|
478
|
+
return n !== i && (t = !0), n;
|
|
473
479
|
});
|
|
474
|
-
return t ? { ...a, blocks:
|
|
480
|
+
return t ? { ...a, blocks: r } : a;
|
|
475
481
|
}
|
|
476
|
-
function
|
|
482
|
+
function Re(a) {
|
|
477
483
|
if (!g(a.data)) return a;
|
|
478
|
-
const t =
|
|
484
|
+
const t = L(a.data);
|
|
479
485
|
return t === a.data ? a : { ...a, data: t };
|
|
480
486
|
}
|
|
481
|
-
function
|
|
487
|
+
function L(a) {
|
|
482
488
|
let t = !1;
|
|
483
|
-
const
|
|
484
|
-
if (g(
|
|
485
|
-
const
|
|
486
|
-
|
|
489
|
+
const r = xe(a) ? { ...a } : a;
|
|
490
|
+
if (g(r.protocolConfig)) {
|
|
491
|
+
const i = N(r.protocolConfig, ke);
|
|
492
|
+
i !== r.protocolConfig && (r.protocolConfig = i, t = !0);
|
|
487
493
|
}
|
|
488
|
-
if (g(
|
|
489
|
-
const
|
|
490
|
-
|
|
494
|
+
if (g(r.protocolData)) {
|
|
495
|
+
const i = N(r.protocolData, Le);
|
|
496
|
+
i !== r.protocolData && (r.protocolData = i, t = !0);
|
|
491
497
|
}
|
|
492
|
-
if (Array.isArray(
|
|
493
|
-
const
|
|
494
|
-
if (
|
|
495
|
-
if (
|
|
496
|
-
|
|
498
|
+
if (Array.isArray(r.nestedBlocks)) {
|
|
499
|
+
const i = r.nestedBlocks.map((n) => g(n) ? He(n) : n);
|
|
500
|
+
if (i.some((n, s) => n !== r.nestedBlocks[s])) {
|
|
501
|
+
if (r === a) return { ...a, nestedBlocks: i };
|
|
502
|
+
r.nestedBlocks = i, t = !0;
|
|
497
503
|
}
|
|
498
504
|
}
|
|
499
|
-
return t ?
|
|
505
|
+
return t ? r : a;
|
|
500
506
|
}
|
|
501
|
-
function
|
|
507
|
+
function xe(a) {
|
|
502
508
|
return a.shape === "protocolRender" && a.rendererType === "echarts" && g(a.protocolConfig);
|
|
503
509
|
}
|
|
504
|
-
function
|
|
505
|
-
let t = !1,
|
|
506
|
-
if (
|
|
507
|
-
const
|
|
508
|
-
|
|
510
|
+
function He(a) {
|
|
511
|
+
let t = !1, r = L(a);
|
|
512
|
+
if (r !== a && (t = !0), g(r.data)) {
|
|
513
|
+
const i = L(r.data);
|
|
514
|
+
i !== r.data && (r = r === a ? { ...a, data: i } : { ...r, data: i }, t = !0);
|
|
509
515
|
}
|
|
510
|
-
return t ?
|
|
516
|
+
return t ? r : a;
|
|
511
517
|
}
|
|
512
518
|
function g(a) {
|
|
513
519
|
return !!(a && typeof a == "object" && !Array.isArray(a));
|
|
514
520
|
}
|
|
515
521
|
function N(a, t) {
|
|
516
|
-
let
|
|
517
|
-
const
|
|
522
|
+
let r = !1;
|
|
523
|
+
const i = { ...a };
|
|
518
524
|
return t.forEach((n) => {
|
|
519
|
-
n in
|
|
520
|
-
}),
|
|
525
|
+
n in i && (delete i[n], r = !0);
|
|
526
|
+
}), r ? i : a;
|
|
521
527
|
}
|
|
522
|
-
async function
|
|
528
|
+
async function Ie(a) {
|
|
523
529
|
try {
|
|
524
|
-
const t = await E(a.echarts.configPath),
|
|
530
|
+
const t = await E(a.echarts.configPath), r = a.echarts.dataPath ? await E(a.echarts.dataPath) : void 0, i = L({
|
|
525
531
|
shape: "protocolRender",
|
|
526
532
|
rendererType: "echarts",
|
|
527
533
|
protocolConfig: t,
|
|
528
|
-
...
|
|
529
|
-
}), n =
|
|
534
|
+
...r ? { protocolData: r } : {}
|
|
535
|
+
}), n = i.protocolConfig, s = i.protocolData;
|
|
530
536
|
return {
|
|
531
537
|
ok: !0,
|
|
532
538
|
data: {
|
|
@@ -560,13 +566,13 @@ async function Le(a) {
|
|
|
560
566
|
};
|
|
561
567
|
}
|
|
562
568
|
}
|
|
563
|
-
function
|
|
569
|
+
function Me(a) {
|
|
564
570
|
return !!(a && typeof a == "object" && typeof a.capabilityId == "string" && a.capabilityId.startsWith("card.echarts.") && typeof a.echarts == "object");
|
|
565
571
|
}
|
|
566
|
-
function
|
|
572
|
+
function De(a = "canvas-card") {
|
|
567
573
|
return typeof crypto < "u" && "randomUUID" in crypto ? `${a}-${crypto.randomUUID()}` : `${a}-${Date.now()}-${Math.random().toString(36).slice(2)}`;
|
|
568
574
|
}
|
|
569
|
-
function
|
|
575
|
+
function Pe() {
|
|
570
576
|
return {
|
|
571
577
|
mode: "final",
|
|
572
578
|
status: "ready",
|
|
@@ -577,16 +583,16 @@ function Ie() {
|
|
|
577
583
|
submitable: !1
|
|
578
584
|
};
|
|
579
585
|
}
|
|
580
|
-
function
|
|
586
|
+
function _e(a) {
|
|
581
587
|
if (a.category !== "card.composite_cards") return null;
|
|
582
588
|
const t = ee(a.type);
|
|
583
589
|
if (!t) return null;
|
|
584
|
-
if (t.id === "threePanelAnalysis") return
|
|
585
|
-
const
|
|
590
|
+
if (t.id === "threePanelAnalysis") return Be(t.scene);
|
|
591
|
+
const r = t.dataContract.nestedBlockKinds.slice(0, 4).map((i, n) => ({
|
|
586
592
|
id: `${t.id}-sample-${n + 1}`,
|
|
587
|
-
title: $(t.id,
|
|
588
|
-
kind:
|
|
589
|
-
visualKind:
|
|
593
|
+
title: $(t.id, i, n),
|
|
594
|
+
kind: Ee(i),
|
|
595
|
+
visualKind: i,
|
|
590
596
|
slot: n < 2 ? "body" : "footer",
|
|
591
597
|
dataBindingStatus: n === 0 ? "business_input" : "none",
|
|
592
598
|
...n === 0 ? {
|
|
@@ -594,7 +600,7 @@ function Me(a) {
|
|
|
594
600
|
dataBinding: {
|
|
595
601
|
id: `binding-${t.id}-sample-${n + 1}`,
|
|
596
602
|
status: "business_input",
|
|
597
|
-
queryIntent: e("FWA.a37b1787570935730", { p0: $(t.id,
|
|
603
|
+
queryIntent: e("FWA.a37b1787570935730", { p0: $(t.id, i, n) }),
|
|
598
604
|
refreshApi: `/workbench/v2/documents/{workspaceId}/data-bindings/binding-${t.id}-sample-${n + 1}/query`
|
|
599
605
|
},
|
|
600
606
|
humanIntervention: {
|
|
@@ -603,7 +609,7 @@ function Me(a) {
|
|
|
603
609
|
hint: e("FWA.ec2a1787570563978")
|
|
604
610
|
}
|
|
605
611
|
} : {},
|
|
606
|
-
data:
|
|
612
|
+
data: Ne(i)
|
|
607
613
|
}));
|
|
608
614
|
return {
|
|
609
615
|
shape: "customCanvas",
|
|
@@ -612,13 +618,13 @@ function Me(a) {
|
|
|
612
618
|
elements: [],
|
|
613
619
|
nestedLayoutMode: "stack",
|
|
614
620
|
nestedLayoutStacks: [
|
|
615
|
-
{ id: `${t.id}-left`, childIds:
|
|
616
|
-
{ id: `${t.id}-right`, childIds:
|
|
621
|
+
{ id: `${t.id}-left`, childIds: r.filter((i, n) => n % 2 === 0).map((i) => i.id) },
|
|
622
|
+
{ id: `${t.id}-right`, childIds: r.filter((i, n) => n % 2 === 1).map((i) => i.id) }
|
|
617
623
|
],
|
|
618
|
-
nestedBlocks:
|
|
624
|
+
nestedBlocks: r
|
|
619
625
|
};
|
|
620
626
|
}
|
|
621
|
-
function
|
|
627
|
+
function Be(a) {
|
|
622
628
|
const t = [
|
|
623
629
|
{
|
|
624
630
|
id: "three-panel-bar",
|
|
@@ -669,24 +675,24 @@ function Pe(a) {
|
|
|
669
675
|
narrative: a,
|
|
670
676
|
elements: [],
|
|
671
677
|
nestedLayoutMode: "grid",
|
|
672
|
-
nestedBlocks: t.map((
|
|
673
|
-
const n = `binding-three-panel-${
|
|
678
|
+
nestedBlocks: t.map((r, i) => {
|
|
679
|
+
const n = `binding-three-panel-${i + 1}`;
|
|
674
680
|
return {
|
|
675
|
-
id:
|
|
676
|
-
title:
|
|
677
|
-
kind:
|
|
678
|
-
capabilityId:
|
|
679
|
-
dataShape:
|
|
680
|
-
visualKind:
|
|
681
|
+
id: r.id,
|
|
682
|
+
title: r.title,
|
|
683
|
+
kind: r.visualKind === "metric" ? "metric" : "chart",
|
|
684
|
+
capabilityId: r.capabilityId,
|
|
685
|
+
dataShape: r.dataShape,
|
|
686
|
+
visualKind: r.visualKind,
|
|
681
687
|
slot: "main",
|
|
682
|
-
renderer:
|
|
688
|
+
renderer: r.renderer,
|
|
683
689
|
dataBindingId: n,
|
|
684
690
|
dataBindingStatus: "business_input",
|
|
685
691
|
dataBinding: {
|
|
686
692
|
id: n,
|
|
687
693
|
bindingId: n,
|
|
688
694
|
status: "business_input",
|
|
689
|
-
queryIntent: e("FWA.68d21787570935772", { p0:
|
|
695
|
+
queryIntent: e("FWA.68d21787570935772", { p0: r.title }),
|
|
690
696
|
refreshApi: `/workbench/v2/documents/{workspaceId}/data-bindings/${n}/query`
|
|
691
697
|
},
|
|
692
698
|
humanIntervention: {
|
|
@@ -694,27 +700,27 @@ function Pe(a) {
|
|
|
694
700
|
reason: "sample_business_input",
|
|
695
701
|
hint: e("FWA.ec2a1787570563978")
|
|
696
702
|
},
|
|
697
|
-
queryIntent: e("FWA.68d21787570935772", { p0:
|
|
698
|
-
layout:
|
|
703
|
+
queryIntent: e("FWA.68d21787570935772", { p0: r.title }),
|
|
704
|
+
layout: r.layout,
|
|
699
705
|
data: {
|
|
700
|
-
...
|
|
706
|
+
...r.data,
|
|
701
707
|
dataBindingStatus: "business_input",
|
|
702
708
|
dataBindingId: n,
|
|
703
709
|
humanIntervention: {
|
|
704
710
|
required: !0,
|
|
705
711
|
reason: "sample_business_input"
|
|
706
712
|
},
|
|
707
|
-
capabilityId:
|
|
708
|
-
dataShape:
|
|
709
|
-
visualKind:
|
|
710
|
-
rendererKey:
|
|
711
|
-
queryIntent: e("FWA.68d21787570935772", { p0:
|
|
713
|
+
capabilityId: r.capabilityId,
|
|
714
|
+
dataShape: r.dataShape,
|
|
715
|
+
visualKind: r.visualKind,
|
|
716
|
+
rendererKey: r.renderer.rendererKey,
|
|
717
|
+
queryIntent: e("FWA.68d21787570935772", { p0: r.title })
|
|
712
718
|
}
|
|
713
719
|
};
|
|
714
720
|
})
|
|
715
721
|
};
|
|
716
722
|
}
|
|
717
|
-
function $(a, t,
|
|
723
|
+
function $(a, t, r) {
|
|
718
724
|
var n;
|
|
719
725
|
return ((n = {
|
|
720
726
|
asset: [e("FWA.67c21787571337690"), e("FWA.84641787571337744"), e("FWA.19cd1787571337802"), e("FWA.fafd1787571337934")],
|
|
@@ -722,12 +728,12 @@ function $(a, t, i) {
|
|
|
722
728
|
ops: [e("FWA.ca561787571129505"), e("FWA.31821787571129546"), e("FWA.048d1787571066506"), e("FWA.727f1787571242449")],
|
|
723
729
|
security: [e("FWA.3f911787571129586"), e("FWA.59af1787571129626"), e("FWA.8d851787571338183"), e("FWA.217f1787571338234")],
|
|
724
730
|
businessMetricMatrix: [e("FWA.25e01787571129662"), e("FWA.a0961787571242490"), e("FWA.e42d1787571338288"), e("FWA.ac7c1787571338344")]
|
|
725
|
-
}[a]) == null ? void 0 : n[
|
|
731
|
+
}[a]) == null ? void 0 : n[r]) || t;
|
|
726
732
|
}
|
|
727
|
-
function
|
|
733
|
+
function Ee(a) {
|
|
728
734
|
return /metric|score/i.test(a) ? "metric" : /chart|donut|bars/i.test(a) ? "chart" : "list";
|
|
729
735
|
}
|
|
730
|
-
function
|
|
736
|
+
function Ne(a) {
|
|
731
737
|
return /metric|score/i.test(a) ? { shape: "metricSummary", primaryValue: e("FWA.0d711787571337185"), primaryLabel: e("FWA.e2111787571338404") } : /donut/i.test(a) ? { shape: "pieSlices", slices: [{ label: e("FWA.43dd1787571618441"), value: 62 }, { label: e("FWA.052e1787571618580"), value: 38 }] } : /chart|bars/i.test(a) ? { shape: "singleSeries", categories: [e("FWA.55e41787571618717"), e("FWA.5b001787571618852"), e("FWA.64471787571618994")], series: [{ name: e("FWA.71261787571619150"), type: "line", data: [82, 88, 91] }] } : {
|
|
732
738
|
shape: "categoryRanking",
|
|
733
739
|
items: [
|
|
@@ -736,14 +742,14 @@ function _e(a) {
|
|
|
736
742
|
]
|
|
737
743
|
};
|
|
738
744
|
}
|
|
739
|
-
function
|
|
740
|
-
const
|
|
745
|
+
function $e(a, t) {
|
|
746
|
+
const r = {
|
|
741
747
|
multiPanel: [e("FWA.53761787571129780"), e("FWA.0ff71787571338461"), e("FWA.39661787571338520"), e("FWA.64681787571242533")],
|
|
742
748
|
executiveCockpit: [e("FWA.76001787571129820"), e("FWA.d8731787571338577"), e("FWA.6dc41787571338637"), e("FWA.1d191787571338696")],
|
|
743
749
|
projectCockpit: [e("FWA.a8c91787571342641"), e("FWA.1e2d1787571242577"), e("FWA.5daa1787571343093"), e("FWA.544c1787571242621")],
|
|
744
750
|
riskCockpit: [e("FWA.ef071787571343582"), e("FWA.992c1787571344105"), e("FWA.4e611787571129859"), e("FWA.94ef1787571242665")],
|
|
745
751
|
regionalCockpit: [e("FWA.e27c1787571344628"), e("FWA.780d1787571344799"), e("FWA.dc301787571345209"), e("FWA.c10c1787571242715")]
|
|
746
|
-
}, [
|
|
752
|
+
}, [i, n, s, o] = r[a.type] || r.multiPanel;
|
|
747
753
|
return {
|
|
748
754
|
shape: "dashboardGrid",
|
|
749
755
|
sourceLabel: "Canvas Runtime",
|
|
@@ -751,7 +757,7 @@ function Be(a, t) {
|
|
|
751
757
|
panels: [
|
|
752
758
|
{
|
|
753
759
|
id: `${a.type}-trend`,
|
|
754
|
-
title:
|
|
760
|
+
title: i,
|
|
755
761
|
subtitle: e("FWA.22a51787571345679"),
|
|
756
762
|
rendererKey: "line",
|
|
757
763
|
data: {
|
|
@@ -812,7 +818,7 @@ function Be(a, t) {
|
|
|
812
818
|
]
|
|
813
819
|
};
|
|
814
820
|
}
|
|
815
|
-
function
|
|
821
|
+
function ze() {
|
|
816
822
|
return {
|
|
817
823
|
shape: "customCanvas",
|
|
818
824
|
sourceLabel: "Canvas Runtime",
|
|
@@ -823,8 +829,8 @@ function Ee() {
|
|
|
823
829
|
containerRole: "nested-card-container"
|
|
824
830
|
};
|
|
825
831
|
}
|
|
826
|
-
function
|
|
827
|
-
const
|
|
832
|
+
function Oe(a, t) {
|
|
833
|
+
const i = {
|
|
828
834
|
metricNumeric: { value: 128, delta: 0.062, compare: e("FWA.5d301787571552615"), secondary: [{ label: e("FWA.623d1787571552810"), format: "number", value: 128 }, { label: e("FWA.f08b1787571552912"), format: "number", value: 24 }] },
|
|
829
835
|
metricCombo: { value: 386, delta: 0.094, compare: e("FWA.9a9f1787571347249"), secondary: [{ label: e("FWA.96181787571623667"), format: "currency", value: 218 }, { label: e("FWA.1cfc1787571624253"), format: "number", value: 168 }] },
|
|
830
836
|
metricComparison: { value: 112, delta: 0.047, compare: e("FWA.672b1787571245678"), secondary: [{ label: e("FWA.c7b81787571553292"), format: "number", value: 112 }, { label: e("FWA.3b8b1787571553816"), format: "number", value: 97 }] },
|
|
@@ -846,16 +852,16 @@ function Ne(a, t) {
|
|
|
846
852
|
shape: "metricSummary",
|
|
847
853
|
primaryLabel: t.sampleTitle || a.title,
|
|
848
854
|
primaryFormat: t.previewKind === "metricTarget" || t.previewKind === "metricSla" ? "percent" : "number",
|
|
849
|
-
primaryValue:
|
|
850
|
-
deltaPct:
|
|
851
|
-
compareLabel:
|
|
855
|
+
primaryValue: i.value,
|
|
856
|
+
deltaPct: i.delta,
|
|
857
|
+
compareLabel: i.compare,
|
|
852
858
|
periodLabel: e("FWA.39fa1787571350919"),
|
|
853
859
|
sourceLabel: "Canvas Runtime",
|
|
854
|
-
secondary:
|
|
860
|
+
secondary: i.secondary
|
|
855
861
|
};
|
|
856
862
|
}
|
|
857
|
-
function
|
|
858
|
-
const
|
|
863
|
+
function Ue(a, t) {
|
|
864
|
+
const r = {
|
|
859
865
|
analysisInsight: [e("FWA.c0a11787570980837"), e("FWA.4dc31787570821893"), e("FWA.93581787570895296")],
|
|
860
866
|
analysisRootCause: [e("FWA.f1a71787570648345"), e("FWA.268c1787570822649"), e("FWA.fe0b1787570896346")],
|
|
861
867
|
analysisRisk: [e("FWA.882a1787570937242"), e("FWA.c1801787570864381"), e("FWA.398a1787570823576")],
|
|
@@ -864,18 +870,18 @@ function $e(a, t) {
|
|
|
864
870
|
analysisRetrospective: [e("FWA.81591787570784181"), e("FWA.444b1787570864409"), e("FWA.c0ce1787570864434")]
|
|
865
871
|
};
|
|
866
872
|
if (a.dataShape === "reportSummary") {
|
|
867
|
-
const
|
|
873
|
+
const i = r[t.previewKind] || [e("FWA.90271787571020402"), e("FWA.7c4d1787571020472")];
|
|
868
874
|
return {
|
|
869
875
|
shape: "reportSummary",
|
|
870
876
|
summary: e("FWA.b44b1787570824515", { p0: t.sampleTitle || a.title }),
|
|
871
|
-
highlights:
|
|
877
|
+
highlights: i,
|
|
872
878
|
sourceLabel: "Canvas Runtime",
|
|
873
879
|
dataStatus: "sample"
|
|
874
880
|
};
|
|
875
881
|
}
|
|
876
882
|
return {
|
|
877
883
|
shape: "insightNarrative",
|
|
878
|
-
bullets:
|
|
884
|
+
bullets: r[t.previewKind] || [e("FWA.e79a1787571020543"), e("FWA.90271787571020402"), e("FWA.7c4d1787571020472")],
|
|
879
885
|
confidence: t.sampleTone === "danger" ? 0.74 : 0.86,
|
|
880
886
|
owner: t.sampleTitle,
|
|
881
887
|
sourceLabel: "Canvas Runtime"
|
|
@@ -893,7 +899,7 @@ function J() {
|
|
|
893
899
|
]
|
|
894
900
|
};
|
|
895
901
|
}
|
|
896
|
-
function
|
|
902
|
+
function Ge(a, t) {
|
|
897
903
|
return {
|
|
898
904
|
tableRecordList: { shape: "rows", sourceLabel: "Canvas Runtime", visualKind: "tableRecordList", columns: [e("FWA.e57a1787571628465"), e("FWA.e3461787571559959"), e("FWA.ee021787571625156"), e("FWA.af1b1787571627074")], rows: [
|
|
899
905
|
{ id: "row-1", cells: [e("FWA.9aea1787571352081"), e("FWA.944d1787571628728"), e("FWA.78d21787571559370"), "12"] },
|
|
@@ -961,8 +967,8 @@ function ze(a, t) {
|
|
|
961
967
|
]
|
|
962
968
|
};
|
|
963
969
|
}
|
|
964
|
-
function
|
|
965
|
-
return a.category === "card.table_cards" ?
|
|
970
|
+
function qe(a, t) {
|
|
971
|
+
return a.category === "card.table_cards" ? Ge(a, t) : a.capabilityId === "card.identity.directory" ? { shape: "rows", sourceLabel: "Canvas Runtime", visualKind: "identityDirectory", columns: [e("FWA.55241787571644519"), e("FWA.d7021787571644744"), e("FWA.ee021787571625156")], rows: [
|
|
966
972
|
{ id: "row-1", cells: [e("FWA.944d1787571628728"), e("FWA.592f1787571248352"), e("FWA.7db31787571645198")] },
|
|
967
973
|
{ id: "row-2", cells: [e("FWA.ec991787571629051"), e("FWA.432f1787571248802"), e("FWA.81781787571645570")] }
|
|
968
974
|
] } : a.capabilityId === "card.workflow.approvalList" ? { shape: "rows", sourceLabel: "Canvas Runtime", visualKind: "workflowApprovalList", columns: [e("FWA.41391787571646095"), e("FWA.f2d91787571638223"), e("FWA.ee021787571625156")], rows: [
|
|
@@ -970,7 +976,7 @@ function Oe(a, t) {
|
|
|
970
976
|
{ id: "row-2", cells: [e("FWA.2ed71787571359949"), e("FWA.efe51787571360380"), e("FWA.78d21787571559370")] }
|
|
971
977
|
] } : J();
|
|
972
978
|
}
|
|
973
|
-
function
|
|
979
|
+
function je(a, t) {
|
|
974
980
|
if (t.previewKind === "chartBubbleScale")
|
|
975
981
|
return {
|
|
976
982
|
shape: "scatterPoints",
|
|
@@ -1007,7 +1013,7 @@ function Ge(a, t) {
|
|
|
1007
1013
|
narrative: e("FWA.78111787570896869", { p0: t.sampleTitle }),
|
|
1008
1014
|
series: [{ name: e("FWA.4a8f1787571362456"), type: "line", data: [32, 68, 105, 149, 188, 236] }]
|
|
1009
1015
|
};
|
|
1010
|
-
const
|
|
1016
|
+
const r = a.rendererKey === "line" || a.rendererKey === "area" ? "line" : "bar";
|
|
1011
1017
|
return {
|
|
1012
1018
|
shape: a.dataShape,
|
|
1013
1019
|
categories: [e("FWA.66c31787571616448"), e("FWA.74eb1787571617098"), e("FWA.c6a01787571617766"), e("FWA.30f61787571619441"), e("FWA.74011787571620023"), e("FWA.9ebb1787571620486")],
|
|
@@ -1015,12 +1021,12 @@ function Ge(a, t) {
|
|
|
1015
1021
|
unit: t.previewKind === "chartLineTrend" ? e("FWA.9a911787571551230") : e("FWA.0b411787571551414"),
|
|
1016
1022
|
narrative: e("FWA.78111787570896869", { p0: t.sampleTitle }),
|
|
1017
1023
|
series: [
|
|
1018
|
-
{ name: t.previewKind === "chartLineTrend" ? e("FWA.71261787571619150") : t.sampleTitle, type:
|
|
1024
|
+
{ name: t.previewKind === "chartLineTrend" ? e("FWA.71261787571619150") : t.sampleTitle, type: r, data: [88, 112, 96, 128, 142, 156] },
|
|
1019
1025
|
...a.dataShape === "multiSeries" ? [{ name: e("FWA.bc1a1787571623143"), type: "bar", data: [76, 90, 105, 118, 124, 136] }] : []
|
|
1020
1026
|
]
|
|
1021
1027
|
};
|
|
1022
1028
|
}
|
|
1023
|
-
function
|
|
1029
|
+
function Ye(a) {
|
|
1024
1030
|
return a.previewKind === "chartDonutProgress" ? {
|
|
1025
1031
|
shape: "pieSlices",
|
|
1026
1032
|
innerRadius: 0.58,
|
|
@@ -1039,7 +1045,7 @@ function Ue(a) {
|
|
|
1039
1045
|
narrative: e("FWA.78111787570896869", { p0: a.sampleTitle })
|
|
1040
1046
|
};
|
|
1041
1047
|
}
|
|
1042
|
-
function
|
|
1048
|
+
function Je(a) {
|
|
1043
1049
|
return {
|
|
1044
1050
|
shape: "mapRegions",
|
|
1045
1051
|
regions: a.previewKind === "geoRegionalHeat" ? [
|
|
@@ -1054,14 +1060,14 @@ function qe(a) {
|
|
|
1054
1060
|
narrative: e("FWA.78111787570896869", { p0: a.sampleTitle })
|
|
1055
1061
|
};
|
|
1056
1062
|
}
|
|
1057
|
-
function
|
|
1058
|
-
const
|
|
1063
|
+
function Ve(a, t) {
|
|
1064
|
+
const r = t.previewKind === "chartDrilldownTree" || t.previewKind === "workflowApprovalChain";
|
|
1059
1065
|
return {
|
|
1060
1066
|
shape: "treeHierarchy",
|
|
1061
1067
|
root: {
|
|
1062
1068
|
id: "root",
|
|
1063
1069
|
label: t.sampleTitle || a.title,
|
|
1064
|
-
children:
|
|
1070
|
+
children: r ? [
|
|
1065
1071
|
{ id: "node-a", label: e("FWA.f4281787571364149"), value: 42, children: [{ id: "node-a-1", label: e("FWA.20e11787571364573"), value: 18 }] },
|
|
1066
1072
|
{ id: "node-b", label: e("FWA.65f31787571365077"), value: 31, children: [{ id: "node-b-1", label: e("FWA.19181787571365601"), value: 12 }] }
|
|
1067
1073
|
] : [
|
|
@@ -1073,7 +1079,7 @@ function je(a, t) {
|
|
|
1073
1079
|
narrative: e("FWA.78111787570896869", { p0: t.sampleTitle })
|
|
1074
1080
|
};
|
|
1075
1081
|
}
|
|
1076
|
-
function
|
|
1082
|
+
function Xe(a) {
|
|
1077
1083
|
return {
|
|
1078
1084
|
shape: "geoGlobe",
|
|
1079
1085
|
title: a.sampleTitle,
|
|
@@ -1090,25 +1096,25 @@ function Ye(a) {
|
|
|
1090
1096
|
narrative: e("FWA.78111787570896869", { p0: a.sampleTitle })
|
|
1091
1097
|
};
|
|
1092
1098
|
}
|
|
1093
|
-
function
|
|
1094
|
-
const
|
|
1099
|
+
function Qe(a, t) {
|
|
1100
|
+
const r = t.sampleTitle || a.title, i = t.previewKind === "geoMigrationFlow" ? [e("FWA.70a31787571564827"), e("FWA.1b6f1787571565352"), e("FWA.2a821787571565490")] : t.previewKind === "geoRouteTrack" ? [e("FWA.366a1787571649681"), e("FWA.91831787571565887"), e("FWA.d4881787571649857")] : t.previewKind.includes("Permission") || t.previewKind.includes("permission") ? [e("FWA.85ad1787571650036"), e("FWA.d7021787571644744"), e("FWA.cbd71787571650213")] : t.previewKind.includes("Lineage") || t.previewKind.includes("lineage") ? [e("FWA.fe7c1787571566400"), e("FWA.fceb1787571635191"), e("FWA.f0f41787571650402")] : t.previewKind === "graphKnowledge" ? [e("FWA.0eb11787571650583"), e("FWA.63721787571650811"), e("FWA.aa671787571651078")] : [e("FWA.a22b1787571366237"), e("FWA.1f791787571651380"), e("FWA.0ce21787571366650")];
|
|
1095
1101
|
return {
|
|
1096
1102
|
shape: "networkGraph",
|
|
1097
1103
|
nodes: [
|
|
1098
|
-
{ id: "root", label:
|
|
1099
|
-
{ id: "node-a", label:
|
|
1100
|
-
{ id: "node-b", label:
|
|
1101
|
-
{ id: "node-c", label:
|
|
1104
|
+
{ id: "root", label: r, value: 48, category: "root" },
|
|
1105
|
+
{ id: "node-a", label: i[0], value: 30, category: "object" },
|
|
1106
|
+
{ id: "node-b", label: i[1], value: 28, category: "metric" },
|
|
1107
|
+
{ id: "node-c", label: i[2], value: 24, category: "target" }
|
|
1102
1108
|
],
|
|
1103
1109
|
links: [
|
|
1104
1110
|
{ source: "root", target: "node-a", value: 2 },
|
|
1105
1111
|
{ source: "node-a", target: "node-b", value: 1 },
|
|
1106
1112
|
{ source: "node-b", target: "node-c", value: 1 }
|
|
1107
1113
|
],
|
|
1108
|
-
narrative: e("FWA.e3aa1787570825040", { p0:
|
|
1114
|
+
narrative: e("FWA.e3aa1787570825040", { p0: r })
|
|
1109
1115
|
};
|
|
1110
1116
|
}
|
|
1111
|
-
function
|
|
1117
|
+
function Ze(a, t) {
|
|
1112
1118
|
return a.dataShape === "weatherCurrent" ? {
|
|
1113
1119
|
shape: "weatherCurrent",
|
|
1114
1120
|
location: e("FWA.dc881787571648412"),
|
|
@@ -1153,8 +1159,8 @@ function Ve(a, t) {
|
|
|
1153
1159
|
} : null;
|
|
1154
1160
|
}
|
|
1155
1161
|
function z(a, t) {
|
|
1156
|
-
if (t.previewKind === "customNestedContainer") return
|
|
1157
|
-
const
|
|
1162
|
+
if (t.previewKind === "customNestedContainer") return ze();
|
|
1163
|
+
const i = {
|
|
1158
1164
|
customBlankCanvas: "blank-card-canvas",
|
|
1159
1165
|
utilityQuickLinks: "quick-links",
|
|
1160
1166
|
utilityAnnouncement: "announcement",
|
|
@@ -1178,27 +1184,27 @@ function z(a, t) {
|
|
|
1178
1184
|
] : [
|
|
1179
1185
|
{ id: "title", kind: "text", label: t.sampleTitle || a.title, value: t.sampleTitle || a.title },
|
|
1180
1186
|
{ id: "status", kind: "text", label: e("FWA.ee021787571625156"), value: t.sampleTone === "danger" ? e("FWA.09bc1787571567142") : t.sampleTone === "warning" ? e("FWA.6bd31787571567612") : e("FWA.89051787571627386") },
|
|
1181
|
-
{ id: "summary", kind: "text", label: e("FWA.a8ac1787571655309"), value: e("FWA.85841787570825564", { p0:
|
|
1187
|
+
{ id: "summary", kind: "text", label: e("FWA.a8ac1787571655309"), value: e("FWA.85841787570825564", { p0: i }) }
|
|
1182
1188
|
];
|
|
1183
1189
|
return {
|
|
1184
1190
|
shape: "customCanvas",
|
|
1185
1191
|
sourceLabel: "Canvas Runtime",
|
|
1186
1192
|
narrative: e("FWA.c30d1787570897123", { p0: t.sampleTitle || a.title }),
|
|
1187
|
-
containerRole:
|
|
1193
|
+
containerRole: i,
|
|
1188
1194
|
elements: n
|
|
1189
1195
|
};
|
|
1190
1196
|
}
|
|
1191
|
-
function
|
|
1197
|
+
function ea(a, t) {
|
|
1192
1198
|
if (t && typeof t == "object") return t;
|
|
1193
|
-
const
|
|
1199
|
+
const r = e("FWA.97aa1787570384619", { p0: a.title }), i = te(a), n = _e(a);
|
|
1194
1200
|
if (n) return n;
|
|
1195
|
-
if (a.dataShape === "metricSummary") return
|
|
1196
|
-
if (a.dataShape === "rows") return
|
|
1197
|
-
if (a.dataShape === "insightNarrative" || a.dataShape === "reportSummary") return
|
|
1201
|
+
if (a.dataShape === "metricSummary") return Oe(a, i);
|
|
1202
|
+
if (a.dataShape === "rows") return qe(a, i);
|
|
1203
|
+
if (a.dataShape === "insightNarrative" || a.dataShape === "reportSummary") return Ue(a, i);
|
|
1198
1204
|
if (a.dataShape === "dashboardGrid")
|
|
1199
|
-
return
|
|
1200
|
-
if (a.dataShape === "pieSlices") return
|
|
1201
|
-
if (a.dataShape === "singleSeries" || a.dataShape === "multiSeries" || a.dataShape === "scatterPoints") return
|
|
1205
|
+
return $e(a, r);
|
|
1206
|
+
if (a.dataShape === "pieSlices") return Ye(i);
|
|
1207
|
+
if (a.dataShape === "singleSeries" || a.dataShape === "multiSeries" || a.dataShape === "scatterPoints") return je(a, i);
|
|
1202
1208
|
if (a.dataShape === "waterfallSteps")
|
|
1203
1209
|
return {
|
|
1204
1210
|
shape: "waterfallSteps",
|
|
@@ -1209,7 +1215,7 @@ function Xe(a, t) {
|
|
|
1209
1215
|
{ label: e("FWA.cc031787571369795"), delta: -68 },
|
|
1210
1216
|
{ label: e("FWA.f30f1787571656580"), value: 912 }
|
|
1211
1217
|
],
|
|
1212
|
-
narrative:
|
|
1218
|
+
narrative: r
|
|
1213
1219
|
};
|
|
1214
1220
|
if (a.dataShape === "heatmapMatrix")
|
|
1215
1221
|
return {
|
|
@@ -1222,7 +1228,7 @@ function Xe(a, t) {
|
|
|
1222
1228
|
[92, 81, 64, 48],
|
|
1223
1229
|
[76, 69, 72, 57]
|
|
1224
1230
|
],
|
|
1225
|
-
narrative:
|
|
1231
|
+
narrative: r
|
|
1226
1232
|
};
|
|
1227
1233
|
if (a.dataShape === "radarMetrics")
|
|
1228
1234
|
return {
|
|
@@ -1235,7 +1241,7 @@ function Xe(a, t) {
|
|
|
1235
1241
|
{ label: e("FWA.94ee1787571632697"), value: 88 },
|
|
1236
1242
|
{ label: e("FWA.a0821787571647876"), value: 69 }
|
|
1237
1243
|
],
|
|
1238
|
-
narrative:
|
|
1244
|
+
narrative: r
|
|
1239
1245
|
};
|
|
1240
1246
|
if (a.dataShape === "scatterPoints")
|
|
1241
1247
|
return {
|
|
@@ -1249,7 +1255,7 @@ function Xe(a, t) {
|
|
|
1249
1255
|
{ label: "C", x: 56, y: 72, size: 18 },
|
|
1250
1256
|
{ label: "D", x: 74, y: 84, size: 28 }
|
|
1251
1257
|
],
|
|
1252
|
-
narrative:
|
|
1258
|
+
narrative: r
|
|
1253
1259
|
};
|
|
1254
1260
|
if (a.dataShape === "funnelStages")
|
|
1255
1261
|
return {
|
|
@@ -1260,7 +1266,7 @@ function Xe(a, t) {
|
|
|
1260
1266
|
{ label: e("FWA.9a4c1787571658338"), value: 420, rate: 0.35 },
|
|
1261
1267
|
{ label: e("FWA.27d01787571658676"), value: 180, rate: 0.15 }
|
|
1262
1268
|
],
|
|
1263
|
-
narrative:
|
|
1269
|
+
narrative: r
|
|
1264
1270
|
};
|
|
1265
1271
|
if (a.dataShape === "gaugeMetric")
|
|
1266
1272
|
return {
|
|
@@ -1274,9 +1280,9 @@ function Xe(a, t) {
|
|
|
1274
1280
|
{ label: e("FWA.92d01787571659199"), value: 80, color: "#d97706" },
|
|
1275
1281
|
{ label: e("FWA.27771787571659430"), value: 100, color: "#16a34a" }
|
|
1276
1282
|
],
|
|
1277
|
-
narrative:
|
|
1283
|
+
narrative: r
|
|
1278
1284
|
};
|
|
1279
|
-
if (a.dataShape === "mapRegions") return
|
|
1285
|
+
if (a.dataShape === "mapRegions") return Je(i);
|
|
1280
1286
|
if (a.dataShape === "sankeyFlow")
|
|
1281
1287
|
return {
|
|
1282
1288
|
shape: "sankeyFlow",
|
|
@@ -1291,9 +1297,9 @@ function Xe(a, t) {
|
|
|
1291
1297
|
{ source: "sales", target: "service", value: 86 },
|
|
1292
1298
|
{ source: "service", target: "renew", value: 54 }
|
|
1293
1299
|
],
|
|
1294
|
-
narrative:
|
|
1300
|
+
narrative: r
|
|
1295
1301
|
};
|
|
1296
|
-
if (a.dataShape === "treeHierarchy") return
|
|
1302
|
+
if (a.dataShape === "treeHierarchy") return Ve(a, i);
|
|
1297
1303
|
if (a.dataShape === "ganttTasks")
|
|
1298
1304
|
return {
|
|
1299
1305
|
shape: "ganttTasks",
|
|
@@ -1303,7 +1309,7 @@ function Xe(a, t) {
|
|
|
1303
1309
|
{ label: e("FWA.c6ec1787571661499"), start: 1, end: 3, status: "running", owner: e("FWA.fea21787571656762") },
|
|
1304
1310
|
{ label: e("FWA.81dc1787571661822"), start: 3, end: 4, status: "pending", owner: e("FWA.fc7d1787571662052") }
|
|
1305
1311
|
],
|
|
1306
|
-
narrative:
|
|
1312
|
+
narrative: r
|
|
1307
1313
|
};
|
|
1308
1314
|
if (a.dataShape === "candlestickSeries")
|
|
1309
1315
|
return {
|
|
@@ -1316,7 +1322,7 @@ function Xe(a, t) {
|
|
|
1316
1322
|
{ open: 111, close: 108, low: 102, high: 121 },
|
|
1317
1323
|
{ open: 109, close: 124, low: 106, high: 130 }
|
|
1318
1324
|
],
|
|
1319
|
-
narrative:
|
|
1325
|
+
narrative: r
|
|
1320
1326
|
};
|
|
1321
1327
|
if (a.dataShape === "boxplotSeries")
|
|
1322
1328
|
return {
|
|
@@ -1329,7 +1335,7 @@ function Xe(a, t) {
|
|
|
1329
1335
|
[20, 36, 58, 76, 92],
|
|
1330
1336
|
[16, 31, 49, 68, 82]
|
|
1331
1337
|
],
|
|
1332
|
-
narrative:
|
|
1338
|
+
narrative: r
|
|
1333
1339
|
};
|
|
1334
1340
|
if (a.dataShape === "paretoSeries")
|
|
1335
1341
|
return {
|
|
@@ -1337,10 +1343,10 @@ function Xe(a, t) {
|
|
|
1337
1343
|
categories: [e("FWA.b4d51787571370318"), e("FWA.6c8d1787571370844"), e("FWA.09981787571371368"), e("FWA.c91a1787571371892")],
|
|
1338
1344
|
bars: [42, 31, 18, 9],
|
|
1339
1345
|
cumulative: [42, 73, 91, 100],
|
|
1340
|
-
narrative:
|
|
1346
|
+
narrative: r
|
|
1341
1347
|
};
|
|
1342
|
-
if (a.dataShape === "networkGraph") return
|
|
1343
|
-
if (a.dataShape === "geoGlobe") return
|
|
1348
|
+
if (a.dataShape === "networkGraph") return Qe(a, i);
|
|
1349
|
+
if (a.dataShape === "geoGlobe") return Xe(i);
|
|
1344
1350
|
if (a.dataShape === "taskSummary")
|
|
1345
1351
|
return {
|
|
1346
1352
|
shape: "taskSummary",
|
|
@@ -1354,16 +1360,16 @@ function Xe(a, t) {
|
|
|
1354
1360
|
{ id: "task-2", title: e("FWA.91961787571130062"), type: "document", owner: e("FWA.ad161787571568154"), status: "reading", dueAt: e("FWA.9d4a1787571652053") }
|
|
1355
1361
|
]
|
|
1356
1362
|
};
|
|
1357
|
-
const s =
|
|
1358
|
-
return s || (a.dataShape === "customCanvas", z(a,
|
|
1363
|
+
const s = Ze(a, i);
|
|
1364
|
+
return s || (a.dataShape === "customCanvas", z(a, i));
|
|
1359
1365
|
}
|
|
1360
|
-
function
|
|
1361
|
-
const
|
|
1362
|
-
return
|
|
1366
|
+
function fa(a, t) {
|
|
1367
|
+
const r = X(a), i = V(a, r);
|
|
1368
|
+
return i || (r ? M(a, t, r) : I(a));
|
|
1363
1369
|
}
|
|
1364
|
-
async function
|
|
1365
|
-
const
|
|
1366
|
-
return
|
|
1370
|
+
async function wa(a, t) {
|
|
1371
|
+
const r = X(a), i = V(a, r);
|
|
1372
|
+
return i || (r ? Me(r) ? await aa(a, t, r) : M(a, t, r) : I(a));
|
|
1367
1373
|
}
|
|
1368
1374
|
function V(a, t) {
|
|
1369
1375
|
return t ? a.registryEntry && a.capabilityId && a.capabilityId !== a.registryEntry.capabilityId ? {
|
|
@@ -1393,55 +1399,55 @@ function I(a) {
|
|
|
1393
1399
|
suggestion: e("FWA.8dbd1787570217430")
|
|
1394
1400
|
};
|
|
1395
1401
|
}
|
|
1396
|
-
function M(a, t,
|
|
1397
|
-
var A, W, m, v, u,
|
|
1398
|
-
const n = String(((A = a.meta) == null ? void 0 : A.id) || ((W = a.layout) == null ? void 0 : W.i) ||
|
|
1402
|
+
function M(a, t, r, i) {
|
|
1403
|
+
var A, W, m, v, u, h, f, w;
|
|
1404
|
+
const n = String(((A = a.meta) == null ? void 0 : A.id) || ((W = a.layout) == null ? void 0 : W.i) || De()), o = (a.layout ? Ae : Fe)({
|
|
1399
1405
|
preset: ((m = a.size) == null ? void 0 : m.preset) || "medium",
|
|
1400
1406
|
width: (v = a.size) == null ? void 0 : v.width,
|
|
1401
1407
|
height: (u = a.size) == null ? void 0 : u.height,
|
|
1402
1408
|
layout: a.layout,
|
|
1403
1409
|
placed: t
|
|
1404
|
-
}), l = ((
|
|
1410
|
+
}), l = ((h = a.renderer) == null ? void 0 : h.rendererKey) || r.rendererKey;
|
|
1405
1411
|
return { status: "success", block: {
|
|
1406
1412
|
id: n,
|
|
1407
1413
|
version: 1,
|
|
1408
|
-
blockType:
|
|
1409
|
-
subType:
|
|
1410
|
-
title: a.title ||
|
|
1411
|
-
subtitle: a.subtitle ||
|
|
1414
|
+
blockType: r.blockType,
|
|
1415
|
+
subType: r.subType,
|
|
1416
|
+
title: a.title || r.title,
|
|
1417
|
+
subtitle: a.subtitle || r.description,
|
|
1412
1418
|
layout: We(n, o),
|
|
1413
1419
|
intent: {
|
|
1414
1420
|
scene: "personal_workbench_canvas_runtime",
|
|
1415
|
-
bizIntent: a.title ||
|
|
1421
|
+
bizIntent: a.title || r.title,
|
|
1416
1422
|
roleTemplate: "canvas_runtime"
|
|
1417
1423
|
},
|
|
1418
1424
|
source: {
|
|
1419
1425
|
sourceType: "canvas_runtime",
|
|
1420
1426
|
service: "card_factory",
|
|
1421
|
-
resourceKey:
|
|
1427
|
+
resourceKey: r.capabilityId,
|
|
1422
1428
|
params: {
|
|
1423
|
-
capabilityId:
|
|
1424
|
-
category:
|
|
1425
|
-
type:
|
|
1426
|
-
variant:
|
|
1429
|
+
capabilityId: r.capabilityId,
|
|
1430
|
+
category: r.category,
|
|
1431
|
+
type: r.type,
|
|
1432
|
+
variant: r.variant
|
|
1427
1433
|
}
|
|
1428
1434
|
},
|
|
1429
|
-
renderer: (
|
|
1430
|
-
engine: ((
|
|
1435
|
+
renderer: (i == null ? void 0 : i.renderer) ?? {
|
|
1436
|
+
engine: ((f = a.renderer) == null ? void 0 : f.engine) || "echarts",
|
|
1431
1437
|
rendererKey: l,
|
|
1432
1438
|
preset: (w = a.renderer) == null ? void 0 : w.preset
|
|
1433
1439
|
},
|
|
1434
|
-
state:
|
|
1435
|
-
data: (
|
|
1440
|
+
state: Pe(),
|
|
1441
|
+
data: (i == null ? void 0 : i.data) ?? ea(r, a.data),
|
|
1436
1442
|
meta: {
|
|
1437
1443
|
...a.meta,
|
|
1438
|
-
...(
|
|
1439
|
-
capabilityId:
|
|
1440
|
-
macroCapabilityId:
|
|
1441
|
-
handlerClassName:
|
|
1442
|
-
dataShape:
|
|
1443
|
-
shell:
|
|
1444
|
-
styleVariants:
|
|
1444
|
+
...(i == null ? void 0 : i.meta) ?? {},
|
|
1445
|
+
capabilityId: r.capabilityId,
|
|
1446
|
+
macroCapabilityId: r.category,
|
|
1447
|
+
handlerClassName: r.handlerClassName,
|
|
1448
|
+
dataShape: r.dataShape,
|
|
1449
|
+
shell: r.shell,
|
|
1450
|
+
styleVariants: r.styleVariants,
|
|
1445
1451
|
canvasRuntime: !0,
|
|
1446
1452
|
layoutBasis: {
|
|
1447
1453
|
baseCols: 100,
|
|
@@ -1449,48 +1455,49 @@ function M(a, t, i, r) {
|
|
|
1449
1455
|
h: o.h
|
|
1450
1456
|
}
|
|
1451
1457
|
}
|
|
1452
|
-
}, registryEntry:
|
|
1458
|
+
}, registryEntry: r };
|
|
1453
1459
|
}
|
|
1454
|
-
async function
|
|
1455
|
-
const
|
|
1456
|
-
return
|
|
1457
|
-
renderer:
|
|
1458
|
-
data:
|
|
1459
|
-
meta:
|
|
1460
|
-
}) : { status: "failed", registryEntry:
|
|
1460
|
+
async function aa(a, t, r) {
|
|
1461
|
+
const i = await Ie(r);
|
|
1462
|
+
return i.ok ? M(a, t, r, {
|
|
1463
|
+
renderer: i.renderer,
|
|
1464
|
+
data: i.data,
|
|
1465
|
+
meta: i.meta
|
|
1466
|
+
}) : { status: "failed", registryEntry: r, reason: i.reason };
|
|
1461
1467
|
}
|
|
1462
1468
|
export {
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1469
|
+
ha as A,
|
|
1470
|
+
ba as B,
|
|
1471
|
+
ve as C,
|
|
1472
|
+
R as D,
|
|
1473
|
+
we as E,
|
|
1474
|
+
ye as F,
|
|
1468
1475
|
p as L,
|
|
1469
1476
|
y as S,
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1477
|
+
ua as a,
|
|
1478
|
+
fa as b,
|
|
1479
|
+
wa as c,
|
|
1473
1480
|
e as d,
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1481
|
+
Wa as e,
|
|
1482
|
+
Aa as f,
|
|
1483
|
+
K as g,
|
|
1477
1484
|
k as h,
|
|
1478
|
-
|
|
1479
|
-
|
|
1485
|
+
Fa as i,
|
|
1486
|
+
pa as j,
|
|
1480
1487
|
T as k,
|
|
1481
1488
|
We as l,
|
|
1482
|
-
|
|
1483
|
-
|
|
1489
|
+
ca as m,
|
|
1490
|
+
ma as n,
|
|
1484
1491
|
O as o,
|
|
1485
1492
|
ue as p,
|
|
1486
1493
|
q,
|
|
1487
1494
|
Ae as r,
|
|
1488
|
-
|
|
1495
|
+
na as s,
|
|
1489
1496
|
S as t,
|
|
1490
|
-
|
|
1491
|
-
|
|
1497
|
+
la as u,
|
|
1498
|
+
sa as v,
|
|
1492
1499
|
ne as w,
|
|
1493
|
-
|
|
1500
|
+
da as x,
|
|
1494
1501
|
Fe as y,
|
|
1495
|
-
|
|
1502
|
+
oa as z
|
|
1496
1503
|
};
|