react-semaphor 0.1.585 → 0.1.586
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/analytics-protocol/index.js +102 -100
- package/dist/assistant-context/index.js +1 -1
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/{assistant-chat-BdbLmAnK.js → assistant-chat-BU5gchFy.js} +6 -6
- package/dist/chunks/{bookmark-impact-BhT3k379.js → bookmark-impact-ZPSGncK6.js} +1 -1
- package/dist/chunks/{card-filter-builder-CEcKF6Fw.js → card-filter-builder-HELJWA4D.js} +165 -165
- package/dist/chunks/{dashboard-MPku_x1M.js → dashboard-BXP-ZxSY.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CkFNlkr1.js → dashboard-briefing-launcher-BGj42whr.js} +7 -7
- package/dist/chunks/{dashboard-controls-Clt4ovXS.js → dashboard-controls-zvbRp6D2.js} +7 -7
- package/dist/chunks/{dashboard-json-DSmXazIg.js → dashboard-json-CykexgqL.js} +1 -1
- package/dist/chunks/{dates-CYZW9owO.js → dates-CaqZtq01.js} +4 -4
- package/dist/chunks/{edit-dashboard-visual-Dn2ECRbX.js → edit-dashboard-visual-C82JNxbt.js} +501 -501
- package/dist/chunks/{filter-reach-copy-CmJpPa4G.js → filter-reach-copy-ZERaFKsN.js} +880 -863
- package/dist/chunks/{index-0WYn6RMz.js → index-otMIColV.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-QjBgUYhP.js → matrix-analytical-definition-DOVSFFuf.js} +179 -169
- package/dist/chunks/{report-preferences-dialog-BRaeufEi.js → report-preferences-dialog-B-CoyS1x.js} +7 -7
- package/dist/chunks/{resolve-dashboard-input-context-Cn9jumxl.js → resolve-dashboard-input-context-BTTdKXH0.js} +10325 -10247
- package/dist/chunks/{saved-dashboard-context-CfqkUMzR.js → saved-dashboard-context-B-rosN4W.js} +75 -72
- package/dist/chunks/{semaphor-ready-indicator-D6WjdTGl.js → semaphor-ready-indicator-Cy1n_04D.js} +22649 -22461
- package/dist/chunks/{shelf-drop-preview-context-Bbbrr9u4.js → shelf-drop-preview-context-Bmz54WYm.js} +2 -2
- package/dist/chunks/{stored-dashboard-sPkTjxYf.js → stored-dashboard-rDJ8sw6J.js} +600 -595
- package/dist/chunks/{variable-draft-D1RotIEG.js → variable-draft-DvngkRMl.js} +3 -3
- package/dist/chunks/{visual-choice-JiJ-_3bi.js → visual-choice-BBPizkRo.js} +74 -72
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +328 -320
- package/dist/index.js +11 -11
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +86 -3
- package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +49 -27
- package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +7 -0
- package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +30 -2
- package/dist/types/shared/analytics-protocol/click-reach-filter-id.d.ts +9 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +3 -1
- package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/click-to-filter-card-decision.d.ts +102 -0
- package/dist/types/shared/dashboard-authoring/filter-reach-copy.d.ts +13 -1
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/semantic-auto-join-card.d.ts +13 -0
- package/package.json +2 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { k as
|
|
2
|
-
import { am as C, ao as
|
|
3
|
-
import { a as
|
|
1
|
+
import { k as O, l as T, E as ye, m as ee, j as Q, q as ge } from "./raw-temporal-value-DH-feMc2.js";
|
|
2
|
+
import { am as C, ao as $, ag as W, ae as p, an as he, af as G, at as pe, ah as ve, a5 as w, I as V, o as ke } from "./validators-CJ8Jh0E8.js";
|
|
3
|
+
import { a as Ie } from "./metric-comparison-ZmurmEIs.js";
|
|
4
4
|
class J extends Error {
|
|
5
5
|
constructor(t) {
|
|
6
6
|
super(t), this.name = "RelativeDateUsageError";
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Ne(e, t, n = {}) {
|
|
10
10
|
const i = n.spansBack ?? 0;
|
|
11
|
-
if (i !== 0) return
|
|
11
|
+
if (i !== 0) return Ce(e, t, i);
|
|
12
12
|
const { calendar: a, now: r } = t;
|
|
13
13
|
switch (e.kind) {
|
|
14
14
|
case "periods": {
|
|
@@ -19,31 +19,31 @@ function Ie(e, t, n = {}) {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
case "rolling": {
|
|
22
|
-
const s = e.anchor === "latest_data" ? t.latestData ?? r : r, o =
|
|
22
|
+
const s = e.anchor === "latest_data" ? t.latestData ?? r : r, o = ye[e.unit];
|
|
23
23
|
return {
|
|
24
24
|
start: o === void 0 ? ee(s, -e.n, e.unit, a) : new Date(s.getTime() - e.n * o),
|
|
25
25
|
end: s
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
case "monthDay": {
|
|
29
|
-
const s = e.day === "first" ?
|
|
30
|
-
return { start:
|
|
29
|
+
const s = e.day === "first" ? O(r, "month", a) : T(r, "month", a);
|
|
30
|
+
return { start: O(s, "day", a), end: T(s, "day", a) };
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
function te(e, t) {
|
|
35
35
|
const { anchor: n } = e;
|
|
36
|
-
return n === "latest_data" ? t.latestData ?? t.now : n === "now" ? t.now : new Date(
|
|
36
|
+
return n === "latest_data" ? t.latestData ?? t.now : n === "now" ? t.now : new Date(O(t.now, n.lastComplete, t.calendar).getTime() - 1);
|
|
37
37
|
}
|
|
38
38
|
function ne(e, t, n, i) {
|
|
39
39
|
return new Date(Q(e, t, n, i).endExclusive.getTime() - 1);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ce(e, t, n) {
|
|
42
42
|
if (!Number.isInteger(n) || n < 0)
|
|
43
43
|
throw new J(`spansBack must be a whole number of spans, got ${n}.`);
|
|
44
44
|
if (e.kind !== "periods" || typeof e.anchor != "object")
|
|
45
45
|
throw new J("spansBack applies only to a window anchored at the end of the last complete period.");
|
|
46
|
-
const { calendar: i } = t, { unit: a } = e, r =
|
|
46
|
+
const { calendar: i } = t, { unit: a } = e, r = Ne(e, t), s = -n * (e.to - e.from + 1), o = Q(r.start, a, i, s).start;
|
|
47
47
|
if (T(r.end, a, i).getTime() === r.end.getTime())
|
|
48
48
|
return { start: o, end: ne(r.end, a, i, s) };
|
|
49
49
|
const l = ee(te(e, t), s, a, i), c = Math.min(
|
|
@@ -60,8 +60,8 @@ function ie(e) {
|
|
|
60
60
|
])
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
const t = e.source.connectionType ? C(e.source.connectionType) : void 0, n = e.source.dialect ?
|
|
63
|
+
function tt(e) {
|
|
64
|
+
const t = e.source.connectionType ? C(e.source.connectionType) : void 0, n = e.source.dialect ? $(e.source.dialect) : void 0, i = e.source.dialect && e.source.dialect !== "unknown" ? C(e.source.dialect) : void 0;
|
|
65
65
|
if (!e.capabilities && e.source.connectionType && e.source.dialect && e.source.dialect !== "unknown" && (!t || n === "unknown" || t.dialect !== n))
|
|
66
66
|
return { kind: "incompatible_capabilities" };
|
|
67
67
|
const a = e.capabilities || t || i;
|
|
@@ -96,16 +96,16 @@ function q(e) {
|
|
|
96
96
|
...n ? { tableName: n } : {}
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
-
function
|
|
100
|
-
if (
|
|
101
|
-
const t = e.entities.filter(ae), n =
|
|
99
|
+
function _e(e) {
|
|
100
|
+
if (De(e)) return { kind: "malformed" };
|
|
101
|
+
const t = e.entities.filter(ae), n = Se(e), i = Te({
|
|
102
102
|
entities: t,
|
|
103
103
|
connectionType: e.connectionType,
|
|
104
104
|
dialect: e.dialect,
|
|
105
105
|
capabilities: e.capabilities
|
|
106
106
|
});
|
|
107
107
|
if (!i) return { kind: "incompatible_capabilities" };
|
|
108
|
-
const { capabilities: a } = i, r =
|
|
108
|
+
const { capabilities: a } = i, r = Ee({
|
|
109
109
|
hints: e.qualifiedHints || [],
|
|
110
110
|
coordinateHint: e.coordinateHint,
|
|
111
111
|
capabilityAuthority: i
|
|
@@ -153,7 +153,7 @@ function Ce(e) {
|
|
|
153
153
|
]);
|
|
154
154
|
if (l.size > 0) {
|
|
155
155
|
const c = o.filter((d) => {
|
|
156
|
-
const m =
|
|
156
|
+
const m = Fe(d);
|
|
157
157
|
return Array.from(l).some((y) => m.has(y));
|
|
158
158
|
});
|
|
159
159
|
if (c.length === 1) {
|
|
@@ -165,7 +165,7 @@ function Ce(e) {
|
|
|
165
165
|
kind: "resolved",
|
|
166
166
|
basis: "bare",
|
|
167
167
|
entity: d,
|
|
168
|
-
coordinates:
|
|
168
|
+
coordinates: F(
|
|
169
169
|
q(d),
|
|
170
170
|
m
|
|
171
171
|
),
|
|
@@ -191,7 +191,7 @@ function Ce(e) {
|
|
|
191
191
|
kind: "resolved",
|
|
192
192
|
basis: "unqualified",
|
|
193
193
|
entity: c,
|
|
194
|
-
coordinates:
|
|
194
|
+
coordinates: F(
|
|
195
195
|
q(c),
|
|
196
196
|
d
|
|
197
197
|
),
|
|
@@ -200,7 +200,7 @@ function Ce(e) {
|
|
|
200
200
|
}
|
|
201
201
|
return { kind: "unqualified" };
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Se(e) {
|
|
204
204
|
const t = (e.qualifiedHints || []).map(f).filter((i) => !!i);
|
|
205
205
|
return Object.values(e.coordinateHint || {}).some(
|
|
206
206
|
(i) => !!f(i)
|
|
@@ -217,9 +217,9 @@ function B(e) {
|
|
|
217
217
|
prefixLevels: [...e.prefixLevels]
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function Te(e) {
|
|
221
221
|
var k;
|
|
222
|
-
const t = f(e.connectionType), n = f(e.dialect), i = e.capabilities ? B(e.capabilities) : void 0, a = t ? C(t) : void 0, r = n ?
|
|
222
|
+
const t = f(e.connectionType), n = f(e.dialect), i = e.capabilities ? B(e.capabilities) : void 0, a = t ? C(t) : void 0, r = n ? $(n) : void 0, s = n && n !== "unknown" ? C(n) : void 0;
|
|
223
223
|
if (t && !a || n && n !== "unknown" && r === "unknown" || i && a && A(i) !== A(a))
|
|
224
224
|
return;
|
|
225
225
|
const o = i || (a ? B(a) : s ? B(s) : void 0);
|
|
@@ -231,14 +231,14 @@ function Se(e) {
|
|
|
231
231
|
evidence: "explicit"
|
|
232
232
|
};
|
|
233
233
|
const l = e.entities.map((b) => {
|
|
234
|
-
const I = D(b), h = f(I == null ? void 0 : I.connectionType), N = f(I == null ? void 0 : I.dialect), S = h ? C(h) : void 0, E = N ?
|
|
234
|
+
const I = D(b), h = f(I == null ? void 0 : I.connectionType), N = f(I == null ? void 0 : I.dialect), S = h ? C(h) : void 0, E = N ? $(N) : void 0, x = N && N !== "unknown" ? C(N) : void 0;
|
|
235
235
|
if (h && !S || N && N !== "unknown" && E === "unknown" || N && N !== "unknown" && !S && !x || S && E && E !== "unknown" && S.dialect !== E)
|
|
236
236
|
return;
|
|
237
|
-
const U = S || x, P = U ? B(U) :
|
|
237
|
+
const U = S || x, P = U ? B(U) : Ae(I);
|
|
238
238
|
return P ? {
|
|
239
239
|
capabilities: P,
|
|
240
240
|
connectionType: h,
|
|
241
|
-
capabilityIdentity: h ?
|
|
241
|
+
capabilityIdentity: h ? he(h) : void 0,
|
|
242
242
|
inferred: !S && !x,
|
|
243
243
|
signature: A(P)
|
|
244
244
|
} : void 0;
|
|
@@ -264,7 +264,7 @@ function Se(e) {
|
|
|
264
264
|
evidence: c.every((b) => b.inferred) ? "coordinates" : "entity"
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function Ae(e) {
|
|
268
268
|
const t = !!f(e == null ? void 0 : e.database), n = !!f(e == null ? void 0 : e.schema);
|
|
269
269
|
if (!(t && n)) {
|
|
270
270
|
if (n)
|
|
@@ -279,7 +279,7 @@ function L(e, t) {
|
|
|
279
279
|
const n = f((a = D(t)) == null ? void 0 : a.connectionType), i = n ? C(n) : void 0;
|
|
280
280
|
return i && A(i) === A(e.capabilities) ? { ...e, connectionType: n } : e;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function De(e) {
|
|
283
283
|
return (e.qualifiedHints || []).some(
|
|
284
284
|
(n) => {
|
|
285
285
|
const i = f(n);
|
|
@@ -290,7 +290,7 @@ function Ae(e) {
|
|
|
290
290
|
return !!(i && !p(i));
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function Ee(e) {
|
|
294
294
|
const { capabilities: t } = e.capabilityAuthority, n = [], i = [];
|
|
295
295
|
for (const m of e.hints) {
|
|
296
296
|
const y = f(m);
|
|
@@ -303,7 +303,7 @@ function De(e) {
|
|
|
303
303
|
if (!k) return { kind: "malformed" };
|
|
304
304
|
n.push(k);
|
|
305
305
|
}
|
|
306
|
-
const a =
|
|
306
|
+
const a = qe(e.coordinateHint);
|
|
307
307
|
if (a.kind === "malformed") return a;
|
|
308
308
|
const r = Array.from(new Set(n)).map(
|
|
309
309
|
(m) => G({
|
|
@@ -311,7 +311,7 @@ function De(e) {
|
|
|
311
311
|
capabilities: t
|
|
312
312
|
})
|
|
313
313
|
);
|
|
314
|
-
if (!
|
|
314
|
+
if (!Be(r, t))
|
|
315
315
|
return { kind: "conflicting" };
|
|
316
316
|
const s = [...new Set(n)].sort(
|
|
317
317
|
(m, y) => y.split(".").length - m.split(".").length
|
|
@@ -321,7 +321,7 @@ function De(e) {
|
|
|
321
321
|
}) : void 0, l = oe(
|
|
322
322
|
a.coordinates,
|
|
323
323
|
t
|
|
324
|
-
), c =
|
|
324
|
+
), c = F(
|
|
325
325
|
a.coordinates,
|
|
326
326
|
e.capabilityAuthority
|
|
327
327
|
), d = !!(l.tableName && (l.databaseName || l.schemaName));
|
|
@@ -341,7 +341,7 @@ function De(e) {
|
|
|
341
341
|
]
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function qe(e) {
|
|
345
345
|
const t = {};
|
|
346
346
|
for (const [n, i] of Object.entries(e || {})) {
|
|
347
347
|
const a = f(i);
|
|
@@ -359,7 +359,7 @@ function oe(e, t) {
|
|
|
359
359
|
...e.tableName ? { tableName: e.tableName } : {}
|
|
360
360
|
};
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Be(e, t) {
|
|
363
363
|
return e.every(
|
|
364
364
|
(n, i) => e.slice(i + 1).every(
|
|
365
365
|
(a) => W({
|
|
@@ -375,7 +375,7 @@ function se(e) {
|
|
|
375
375
|
e.map(f).map(p).filter((t) => !!t)
|
|
376
376
|
);
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function Fe(e) {
|
|
379
379
|
const t = D(e);
|
|
380
380
|
return t ? se([
|
|
381
381
|
f(t.name),
|
|
@@ -384,7 +384,7 @@ function Be(e) {
|
|
|
384
384
|
]) : /* @__PURE__ */ new Set();
|
|
385
385
|
}
|
|
386
386
|
function He(e, t, n) {
|
|
387
|
-
return
|
|
387
|
+
return F(
|
|
388
388
|
{
|
|
389
389
|
...e,
|
|
390
390
|
...t
|
|
@@ -392,7 +392,7 @@ function He(e, t, n) {
|
|
|
392
392
|
n
|
|
393
393
|
);
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function F(e, t) {
|
|
396
396
|
const n = t.evidence === "coordinates" ? t.capabilities.prefixLevels : ie(t.capabilities);
|
|
397
397
|
return {
|
|
398
398
|
...n.includes("database") && e.databaseName ? { databaseName: e.databaseName } : {},
|
|
@@ -406,7 +406,7 @@ function u(e) {
|
|
|
406
406
|
function _(e) {
|
|
407
407
|
return e && typeof e == "object" && !Array.isArray(e) ? e : void 0;
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function xe(e) {
|
|
410
410
|
const t = _(e);
|
|
411
411
|
return !!(t && t.type === "dataset" && u(t.name));
|
|
412
412
|
}
|
|
@@ -414,7 +414,7 @@ function re(e) {
|
|
|
414
414
|
const t = _(e);
|
|
415
415
|
return !!(t && t.type === "dataset" && t.datasetType !== "physical" && u(t.name));
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function X(e) {
|
|
418
418
|
const t = /* @__PURE__ */ new Set();
|
|
419
419
|
for (const n of e) {
|
|
420
420
|
const i = u(n);
|
|
@@ -428,7 +428,7 @@ function Y(e) {
|
|
|
428
428
|
}
|
|
429
429
|
return t;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function Y(e) {
|
|
432
432
|
var n;
|
|
433
433
|
const t = u(e);
|
|
434
434
|
return t ? (n = p(t)) == null ? void 0 : n.toLowerCase() : void 0;
|
|
@@ -436,7 +436,7 @@ function X(e) {
|
|
|
436
436
|
function j(e, t) {
|
|
437
437
|
const n = _(t), i = u(n == null ? void 0 : n.domainId) || u(e.semanticDomainId), a = u(n == null ? void 0 : n.name);
|
|
438
438
|
if (!i || !a) return;
|
|
439
|
-
const r = (n == null ? void 0 : n.datasetType) === "physical" ? void 0 :
|
|
439
|
+
const r = (n == null ? void 0 : n.datasetType) === "physical" ? void 0 : pe(n || {}), s = u(n == null ? void 0 : n.connectionId) || u(e.connectionId);
|
|
440
440
|
return {
|
|
441
441
|
kind: "semantic",
|
|
442
442
|
domainId: i,
|
|
@@ -445,17 +445,17 @@ function j(e, t) {
|
|
|
445
445
|
...s ? { connectionId: s } : {}
|
|
446
446
|
};
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Pe(e, t = {}) {
|
|
449
449
|
const n = u(e.fieldEntityType);
|
|
450
450
|
if (n && n !== "dataset")
|
|
451
451
|
return { kind: "unqualified" };
|
|
452
452
|
const i = e.entities.filter(
|
|
453
|
-
(s) => t.includePhysicalDatasets ?
|
|
453
|
+
(s) => t.includePhysicalDatasets ? xe(s) : re(s)
|
|
454
454
|
), a = u(e.entityId);
|
|
455
455
|
if (a) {
|
|
456
|
-
const s =
|
|
456
|
+
const s = Y(a), o = i.filter((l) => {
|
|
457
457
|
const c = _(l);
|
|
458
|
-
return !!(s &&
|
|
458
|
+
return !!(s && Y(c == null ? void 0 : c.id) === s);
|
|
459
459
|
});
|
|
460
460
|
if (o.length > 1) return { kind: "ambiguous", basis: "bare" };
|
|
461
461
|
if (o.length === 1) {
|
|
@@ -469,7 +469,7 @@ function xe(e, t = {}) {
|
|
|
469
469
|
} : { kind: "not_found", basis: "bare" };
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
const r =
|
|
472
|
+
const r = X([
|
|
473
473
|
e.entityName,
|
|
474
474
|
...e.qualifiedHints || [],
|
|
475
475
|
...e.bareHints || []
|
|
@@ -477,7 +477,7 @@ function xe(e, t = {}) {
|
|
|
477
477
|
if (r.size > 0) {
|
|
478
478
|
const s = i.filter((o) => {
|
|
479
479
|
const l = _(o);
|
|
480
|
-
return [...
|
|
480
|
+
return [...X([l == null ? void 0 : l.id, l == null ? void 0 : l.name])].some((d) => r.has(d));
|
|
481
481
|
});
|
|
482
482
|
if (s.length > 1) return { kind: "ambiguous", basis: "bare" };
|
|
483
483
|
if (s.length === 1) {
|
|
@@ -504,7 +504,7 @@ function xe(e, t = {}) {
|
|
|
504
504
|
}
|
|
505
505
|
return { kind: "unqualified" };
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function R(e) {
|
|
508
508
|
const t = e.resolution.kind === "resolved" ? _(e.resolution.entity) : void 0, n = u(e.connectionId) || u(t == null ? void 0 : t.connectionId), { connectionType: i, dialect: a } = e.resolution.capabilityAuthority, r = C(a), s = !!(r && r.dialect === e.resolution.capabilityAuthority.capabilities.dialect && r.prefixLevels.join(".") === e.resolution.capabilityAuthority.capabilities.prefixLevels.join(
|
|
509
509
|
"."
|
|
510
510
|
)), o = e.resolution.coordinates;
|
|
@@ -519,7 +519,7 @@ function z(e) {
|
|
|
519
519
|
...o.schemaName ? { schemaName: o.schemaName } : {}
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Le(e) {
|
|
523
523
|
const t = _(e.entity), n = p(u(t == null ? void 0 : t.table));
|
|
524
524
|
if (!n) return !1;
|
|
525
525
|
const i = p(
|
|
@@ -527,7 +527,7 @@ function Pe(e) {
|
|
|
527
527
|
), a = p(
|
|
528
528
|
u(t == null ? void 0 : t.schema)
|
|
529
529
|
);
|
|
530
|
-
return e.coordinates.tableName ?
|
|
530
|
+
return e.coordinates.tableName ? ve({
|
|
531
531
|
requested: e.coordinates,
|
|
532
532
|
allowed: {
|
|
533
533
|
...i ? { databaseName: i } : {},
|
|
@@ -537,7 +537,7 @@ function Pe(e) {
|
|
|
537
537
|
capabilities: e.capabilityAuthority.capabilities
|
|
538
538
|
}) : !1;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function je(e) {
|
|
541
541
|
var a, r, s;
|
|
542
542
|
if (u(e.connectionType) || u(e.dialect) || e.capabilities || u(e.semanticDomainId) || u(e.fieldEntityType) === "dataset" || u((a = e.fallbackCoordinateHint) == null ? void 0 : a.databaseName) || u((r = e.fallbackCoordinateHint) == null ? void 0 : r.schemaName))
|
|
543
543
|
return;
|
|
@@ -553,17 +553,17 @@ function Le(e) {
|
|
|
553
553
|
const n = t.map(p);
|
|
554
554
|
return n.some((o) => !o) ? void 0 : new Set(n.map((o) => o.toLowerCase())).size === 1 ? n[0] : void 0;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function nt(e) {
|
|
557
557
|
const t = e.entities.filter(
|
|
558
558
|
ae
|
|
559
559
|
), n = e.entities.filter(
|
|
560
560
|
re
|
|
561
|
-
), i = t.length > 0 || n.length > 0, a =
|
|
561
|
+
), i = t.length > 0 || n.length > 0, a = Pe(e), r = e.qualifiedHints || [], s = r.some(
|
|
562
562
|
(c) => {
|
|
563
563
|
var d;
|
|
564
564
|
return (d = u(c)) == null ? void 0 : d.includes(".");
|
|
565
565
|
}
|
|
566
|
-
), o =
|
|
566
|
+
), o = _e({
|
|
567
567
|
entities: t,
|
|
568
568
|
connectionType: u(e.connectionType),
|
|
569
569
|
dialect: e.dialect,
|
|
@@ -575,7 +575,7 @@ function tt(e) {
|
|
|
575
575
|
if (o.kind === "malformed" || o.kind === "conflicting" || o.kind === "incompatible_capabilities" && s || o.kind === "ambiguous" && o.basis === "qualified")
|
|
576
576
|
return o;
|
|
577
577
|
if (o.kind === "resolved" && o.basis === "qualified") {
|
|
578
|
-
const c =
|
|
578
|
+
const c = R({
|
|
579
579
|
resolution: o,
|
|
580
580
|
connectionId: e.connectionId
|
|
581
581
|
});
|
|
@@ -587,7 +587,7 @@ function tt(e) {
|
|
|
587
587
|
} : { kind: "missing_connection" };
|
|
588
588
|
}
|
|
589
589
|
if (o.kind === "not_found" && o.basis === "qualified" && o.coordinates) {
|
|
590
|
-
if (a.kind === "resolved" && a.matchedById &&
|
|
590
|
+
if (a.kind === "resolved" && a.matchedById && Le({
|
|
591
591
|
entity: a.entity,
|
|
592
592
|
coordinates: o.coordinates,
|
|
593
593
|
capabilityAuthority: o.capabilityAuthority
|
|
@@ -598,7 +598,7 @@ function tt(e) {
|
|
|
598
598
|
source: a.source,
|
|
599
599
|
entity: a.entity
|
|
600
600
|
};
|
|
601
|
-
const c =
|
|
601
|
+
const c = R({
|
|
602
602
|
resolution: o,
|
|
603
603
|
connectionId: e.connectionId
|
|
604
604
|
});
|
|
@@ -613,7 +613,7 @@ function tt(e) {
|
|
|
613
613
|
};
|
|
614
614
|
if (a.kind === "ambiguous") return a;
|
|
615
615
|
if (o.kind === "resolved") {
|
|
616
|
-
const c =
|
|
616
|
+
const c = R({
|
|
617
617
|
resolution: o,
|
|
618
618
|
connectionId: e.connectionId
|
|
619
619
|
});
|
|
@@ -637,7 +637,7 @@ function tt(e) {
|
|
|
637
637
|
}
|
|
638
638
|
};
|
|
639
639
|
if (o.kind === "incompatible_capabilities") {
|
|
640
|
-
const c = i ? void 0 :
|
|
640
|
+
const c = i ? void 0 : je(e), d = u(e.connectionId);
|
|
641
641
|
return c && d ? {
|
|
642
642
|
kind: "resolved",
|
|
643
643
|
basis: "historical",
|
|
@@ -649,10 +649,18 @@ function tt(e) {
|
|
|
649
649
|
basis: o.basis
|
|
650
650
|
} : { kind: "unqualified" };
|
|
651
651
|
}
|
|
652
|
-
|
|
653
|
-
|
|
652
|
+
const ce = "click-reach:";
|
|
653
|
+
function it(e, t) {
|
|
654
|
+
const n = t.source.kind === "semantic" ? t.source.datasetName : t.source.tableName;
|
|
655
|
+
return `${ce}${e}:${n}.${t.name}`;
|
|
656
|
+
}
|
|
657
|
+
function at(e) {
|
|
658
|
+
return typeof e == "string" && e.startsWith(ce);
|
|
659
|
+
}
|
|
660
|
+
function Re(e, t) {
|
|
661
|
+
return Ie({ ...e, role: t });
|
|
654
662
|
}
|
|
655
|
-
function
|
|
663
|
+
function ot(e, t) {
|
|
656
664
|
if (t.id) {
|
|
657
665
|
const n = [];
|
|
658
666
|
e.forEach(
|
|
@@ -661,7 +669,7 @@ function nt(e, t) {
|
|
|
661
669
|
})
|
|
662
670
|
);
|
|
663
671
|
const i = t.alias ? n.find(
|
|
664
|
-
({ group: a, index: r }) =>
|
|
672
|
+
({ group: a, index: r }) => Re(e[a].fields[r], e[a].role) === t.alias
|
|
665
673
|
) : void 0;
|
|
666
674
|
if (i) return i;
|
|
667
675
|
if (n.length === 1) return n[0];
|
|
@@ -673,7 +681,7 @@ function nt(e, t) {
|
|
|
673
681
|
if (i !== -1) return { group: n, index: i };
|
|
674
682
|
}
|
|
675
683
|
}
|
|
676
|
-
function
|
|
684
|
+
function le(e, t) {
|
|
677
685
|
const n = e.split(".").map((o) => o.trim()), i = t.split(".").map((o) => o.trim());
|
|
678
686
|
if (n.length === 0 || i.length === 0 || n.some((o) => !o) || i.some((o) => !o))
|
|
679
687
|
return !1;
|
|
@@ -682,7 +690,7 @@ function ce(e, t) {
|
|
|
682
690
|
}
|
|
683
691
|
function ze(e, t) {
|
|
684
692
|
const n = e.split("."), i = t.split("."), a = n.pop(), r = i.pop();
|
|
685
|
-
return !!(a && a === r && n.length > 0 && i.length > 0 &&
|
|
693
|
+
return !!(a && a === r && n.length > 0 && i.length > 0 && le(
|
|
686
694
|
n.join("."),
|
|
687
695
|
i.join(".")
|
|
688
696
|
));
|
|
@@ -691,7 +699,7 @@ function Oe(e) {
|
|
|
691
699
|
const t = e.map((i) => i.trim()).filter(Boolean);
|
|
692
700
|
if (t.every(
|
|
693
701
|
(i, a) => t.slice(a + 1).every(
|
|
694
|
-
(r) =>
|
|
702
|
+
(r) => le(i, r)
|
|
695
703
|
)
|
|
696
704
|
))
|
|
697
705
|
return [...t].sort(
|
|
@@ -706,7 +714,7 @@ function Z(e) {
|
|
|
706
714
|
const t = e.split(".").map((n) => n.trim());
|
|
707
715
|
return t.length > 1 && t.every(Boolean) ? t.join(".") : "";
|
|
708
716
|
}
|
|
709
|
-
function
|
|
717
|
+
function M(e) {
|
|
710
718
|
if (typeof e != "string") return "";
|
|
711
719
|
const t = e.split(".").map((n) => n.trim());
|
|
712
720
|
return t.length > 0 && t.every(Boolean) ? t.join(".") : "";
|
|
@@ -714,7 +722,7 @@ function $(e) {
|
|
|
714
722
|
function g(e) {
|
|
715
723
|
return typeof e == "string" ? e.trim() : "";
|
|
716
724
|
}
|
|
717
|
-
function
|
|
725
|
+
function $e(e, t) {
|
|
718
726
|
return e.every(
|
|
719
727
|
(n, i) => e.slice(i + 1).every((a) => t(n, a))
|
|
720
728
|
);
|
|
@@ -754,11 +762,11 @@ function Me(e) {
|
|
|
754
762
|
}
|
|
755
763
|
} : { status: "unresolved", reason: "incomplete_source_identity" };
|
|
756
764
|
}
|
|
757
|
-
function
|
|
765
|
+
function Qe(e, t) {
|
|
758
766
|
const n = g(e.connectionId), i = v(e.semanticContext) ? e.semanticContext : void 0, a = g(i == null ? void 0 : i.connectionId);
|
|
759
767
|
if (n && a && n !== a)
|
|
760
768
|
return { status: "unresolved", reason: "divergent_source_identity" };
|
|
761
|
-
const r = n || a, s = v(e.fieldMeta) ? e.fieldMeta : void 0, o = t.split(".").slice(0, -1).join("."), l =
|
|
769
|
+
const r = n || a, s = v(e.fieldMeta) ? e.fieldMeta : void 0, o = t.split(".").slice(0, -1).join("."), l = M(e.qualifiedTableName), c = M(
|
|
762
770
|
s == null ? void 0 : s.qualifiedEntityName
|
|
763
771
|
), d = [
|
|
764
772
|
l,
|
|
@@ -770,10 +778,10 @@ function $e(e, t) {
|
|
|
770
778
|
source: { kind: "physical", connectionId: r, tableName: m }
|
|
771
779
|
};
|
|
772
780
|
}
|
|
773
|
-
function
|
|
781
|
+
function We(e, t) {
|
|
774
782
|
const n = v(e.fieldMeta) ? e.fieldMeta : void 0, i = typeof (n == null ? void 0 : n.qualifiedFieldName) == "string" ? n.qualifiedFieldName.trim() : "", a = Z(
|
|
775
783
|
n == null ? void 0 : n.qualifiedFieldName
|
|
776
|
-
), r = typeof e.column == "string" ? e.column.trim() : "", s = Z(r), o = typeof e.qualifiedTableName == "string" ? e.qualifiedTableName.trim() : "", l =
|
|
784
|
+
), r = typeof e.column == "string" ? e.column.trim() : "", s = Z(r), o = typeof e.qualifiedTableName == "string" ? e.qualifiedTableName.trim() : "", l = M(
|
|
777
785
|
e.qualifiedTableName
|
|
778
786
|
);
|
|
779
787
|
if (i && !a || t && o && !l || r.includes(".") && !s)
|
|
@@ -783,7 +791,7 @@ function Qe(e, t) {
|
|
|
783
791
|
s,
|
|
784
792
|
m
|
|
785
793
|
].filter(Boolean);
|
|
786
|
-
if (
|
|
794
|
+
if (!$e(
|
|
787
795
|
y,
|
|
788
796
|
ze
|
|
789
797
|
))
|
|
@@ -791,15 +799,15 @@ function Qe(e, t) {
|
|
|
791
799
|
const k = s || a || m;
|
|
792
800
|
return k ? { status: "resolved", qualifiedFieldName: k } : { status: "unresolved", reason: "incomplete_field_identity" };
|
|
793
801
|
}
|
|
794
|
-
function
|
|
802
|
+
function Ke(e) {
|
|
795
803
|
if (!v(e))
|
|
796
804
|
return { status: "ineligible", reason: "invalid_input" };
|
|
797
805
|
if (e.kind === "global-date")
|
|
798
806
|
return { status: "eligible", kind: "global_date" };
|
|
799
|
-
const t =
|
|
807
|
+
const t = w(e.dataType);
|
|
800
808
|
if (t !== "date" && t !== "datetime")
|
|
801
809
|
return { status: "ineligible", reason: "non_date_filter" };
|
|
802
|
-
const n = v(e.fieldMeta) ? e.fieldMeta : void 0, i =
|
|
810
|
+
const n = v(e.fieldMeta) ? e.fieldMeta : void 0, i = w(
|
|
803
811
|
n == null ? void 0 : n.dataType
|
|
804
812
|
);
|
|
805
813
|
if ((n == null ? void 0 : n.dataType) !== void 0 && i !== "date" && i !== "datetime")
|
|
@@ -808,10 +816,10 @@ function We(e) {
|
|
|
808
816
|
return { status: "ineligible", reason: "custom_filter" };
|
|
809
817
|
if (e.targetColumns !== void 0 && (!Array.isArray(e.targetColumns) || e.targetColumns.length > 0))
|
|
810
818
|
return { status: "ineligible", reason: "multi_target_filter" };
|
|
811
|
-
const a = Me(e), r =
|
|
819
|
+
const a = Me(e), r = We(e, a === void 0);
|
|
812
820
|
if (r.status === "unresolved")
|
|
813
821
|
return { status: "ineligible", reason: r.reason };
|
|
814
|
-
const s = a ||
|
|
822
|
+
const s = a || Qe(e, r.qualifiedFieldName);
|
|
815
823
|
return s.status === "resolved" ? {
|
|
816
824
|
status: "eligible",
|
|
817
825
|
kind: "field_date",
|
|
@@ -819,91 +827,91 @@ function We(e) {
|
|
|
819
827
|
source: s.source
|
|
820
828
|
} : { status: "ineligible", reason: s.reason };
|
|
821
829
|
}
|
|
822
|
-
function
|
|
830
|
+
function Ue(e) {
|
|
823
831
|
if (!v(e) || e.kind !== "filter" || !v(e.filter))
|
|
824
832
|
return { status: "ineligible", reason: "invalid_input" };
|
|
825
|
-
const t =
|
|
833
|
+
const t = Ke(
|
|
826
834
|
e.filter
|
|
827
835
|
);
|
|
828
836
|
return t.status === "ineligible" ? t : t.kind === "field_date" && v(e.compatibility) && e.compatibility.source === "cardInlineFilter" ? { status: "ineligible", reason: "card_inline_filter" } : t;
|
|
829
837
|
}
|
|
830
|
-
function
|
|
831
|
-
return
|
|
838
|
+
function st(e) {
|
|
839
|
+
return Ue(e).status === "eligible";
|
|
832
840
|
}
|
|
833
|
-
function
|
|
841
|
+
function rt(e) {
|
|
834
842
|
return `compat-filter:${e}`;
|
|
835
843
|
}
|
|
836
|
-
function
|
|
844
|
+
function ct(e) {
|
|
837
845
|
return `compat-control:${e}`;
|
|
838
846
|
}
|
|
839
|
-
function
|
|
847
|
+
function lt(e, t) {
|
|
840
848
|
return `compat-inline-filter:${e}:${t}`;
|
|
841
849
|
}
|
|
842
|
-
function
|
|
850
|
+
function dt(e, t) {
|
|
843
851
|
return `compat-card-control:${e}:${t}`;
|
|
844
852
|
}
|
|
845
|
-
function
|
|
853
|
+
function de(e, t) {
|
|
846
854
|
if (e) return e;
|
|
847
|
-
const n = t === void 0 ? "unknown" :
|
|
855
|
+
const n = t === void 0 ? "unknown" : w(t);
|
|
848
856
|
return n === "number" || n === "unknown" ? "SUM" : "COUNT";
|
|
849
857
|
}
|
|
850
|
-
function
|
|
851
|
-
const t = e.aggregate ===
|
|
858
|
+
function Ge(e) {
|
|
859
|
+
const t = e.aggregate === de(e.semanticAggregate, e.dataType);
|
|
852
860
|
return {
|
|
853
861
|
effectiveAggregate: e.aggregate,
|
|
854
862
|
aggregateSource: t ? e.semanticAggregate ? "semantic_model" : "default_sum" : "caller_override"
|
|
855
863
|
};
|
|
856
864
|
}
|
|
857
|
-
function
|
|
865
|
+
function Ve(e, t, n) {
|
|
858
866
|
const i = e.effectiveAggregate !== void 0 || e.aggregateSource !== void 0;
|
|
859
867
|
return {
|
|
860
868
|
aggregate: t,
|
|
861
869
|
aggregateOrigin: n,
|
|
862
|
-
...i ?
|
|
870
|
+
...i ? Ge({ aggregate: t, semanticAggregate: e.semanticAggregate, dataType: e.dataType }) : {}
|
|
863
871
|
};
|
|
864
872
|
}
|
|
865
|
-
function
|
|
866
|
-
return { ...e, ...
|
|
873
|
+
function ut(e, t, n) {
|
|
874
|
+
return { ...e, ...Ve(e, t, n) };
|
|
867
875
|
}
|
|
868
|
-
function
|
|
876
|
+
function ft(e) {
|
|
869
877
|
return e.aggregate ?? e.effectiveAggregate;
|
|
870
878
|
}
|
|
871
|
-
function
|
|
879
|
+
function mt(e) {
|
|
872
880
|
if (!e.aggregate) return !1;
|
|
873
881
|
if (e.aggregateOrigin === "explicit" || e.aggregateSource === "caller_override") return !0;
|
|
874
882
|
if (e.aggregateSource) {
|
|
875
|
-
const t = e.aggregateSource === "default_sum" ?
|
|
883
|
+
const t = e.aggregateSource === "default_sum" ? de(void 0, e.dataType) : e.semanticAggregate ?? e.effectiveAggregate;
|
|
876
884
|
return t !== void 0 && e.aggregate !== t;
|
|
877
885
|
}
|
|
878
886
|
return e.aggregateOrigin !== "default";
|
|
879
887
|
}
|
|
880
|
-
const
|
|
881
|
-
function
|
|
888
|
+
const bt = ["label", "labelOrigin", "derivedLabel"];
|
|
889
|
+
function yt(e) {
|
|
882
890
|
return { label: e, labelOrigin: "override", derivedLabel: void 0 };
|
|
883
891
|
}
|
|
884
|
-
function
|
|
892
|
+
function gt(e, t) {
|
|
885
893
|
const { derivedLabel: n, ...i } = e;
|
|
886
894
|
return { ...i, label: t, labelOrigin: "override" };
|
|
887
895
|
}
|
|
888
|
-
function
|
|
896
|
+
function ht(e, t) {
|
|
889
897
|
return e.labelOrigin === "override" ? {} : { label: t, labelOrigin: "semantic" };
|
|
890
898
|
}
|
|
891
|
-
function
|
|
899
|
+
function pt(e) {
|
|
892
900
|
if (e.groupedDate !== void 0) return { target: e.groupedDate, direction: "asc" };
|
|
893
901
|
if (!(!e.grouped || e.measures.length === 0))
|
|
894
902
|
return { target: e.primaryMeasure ?? e.measures[0], direction: "desc" };
|
|
895
903
|
}
|
|
896
|
-
const
|
|
904
|
+
const vt = /* @__PURE__ */ new Set([
|
|
897
905
|
"contains",
|
|
898
906
|
"startsWith",
|
|
899
907
|
"endsWith",
|
|
900
908
|
"like",
|
|
901
909
|
"not like"
|
|
902
910
|
]);
|
|
903
|
-
function
|
|
911
|
+
function ue(e) {
|
|
904
912
|
return e.includes("%") || e.includes("_");
|
|
905
913
|
}
|
|
906
|
-
function
|
|
914
|
+
function Je(e, t) {
|
|
907
915
|
switch (e) {
|
|
908
916
|
case "contains":
|
|
909
917
|
return { pattern: `%${t}%`, negate: !1 };
|
|
@@ -917,33 +925,33 @@ function Ve(e, t) {
|
|
|
917
925
|
return { pattern: t, negate: !0 };
|
|
918
926
|
}
|
|
919
927
|
}
|
|
920
|
-
function
|
|
921
|
-
return
|
|
928
|
+
function Xe(e) {
|
|
929
|
+
return ue(e) ? e : `%${e}%`;
|
|
922
930
|
}
|
|
923
|
-
function
|
|
924
|
-
const { pattern: n, negate: i } =
|
|
925
|
-
if (
|
|
931
|
+
function kt(e, t) {
|
|
932
|
+
const { pattern: n, negate: i } = Je(e, t), a = n.length > 2 && n.startsWith("%") && n.endsWith("%") ? n.slice(1, -1) : void 0, r = a !== void 0 && !ue(a) ? a : n;
|
|
933
|
+
if (Xe(r) === n)
|
|
926
934
|
return { operator: i ? "not_contains" : "contains", value: r };
|
|
927
935
|
}
|
|
928
|
-
function
|
|
936
|
+
function It(e) {
|
|
929
937
|
const { operation: t, values: n, temporalPrecision: i } = e;
|
|
930
938
|
if (t !== "=" && t !== "!=" || i === "minute")
|
|
931
939
|
return null;
|
|
932
940
|
const a = Array.isArray(n) ? n : [n];
|
|
933
941
|
if (a.length !== 1 || typeof a[0] != "string") return null;
|
|
934
942
|
const r = a[0].trim();
|
|
935
|
-
return
|
|
943
|
+
return ge(r) ? { operation: t, day: r } : null;
|
|
936
944
|
}
|
|
937
|
-
function
|
|
945
|
+
function fe(e) {
|
|
938
946
|
const { label: t, ...n } = e;
|
|
939
947
|
return {
|
|
940
|
-
dataset:
|
|
948
|
+
dataset: ke(n),
|
|
941
949
|
...e.kind === "physical" ? { dialect: e.dialect, connectionType: e.connectionType } : {}
|
|
942
950
|
};
|
|
943
951
|
}
|
|
944
|
-
function
|
|
952
|
+
function me(e) {
|
|
945
953
|
const { label: t, source: n, ...i } = e;
|
|
946
|
-
return { ...i, source: n &&
|
|
954
|
+
return { ...i, source: n && fe(n) };
|
|
947
955
|
}
|
|
948
956
|
function K(e) {
|
|
949
957
|
const {
|
|
@@ -959,19 +967,19 @@ function K(e) {
|
|
|
959
967
|
inputs: Object.fromEntries(
|
|
960
968
|
Object.entries(r).map(([o, l]) => [
|
|
961
969
|
o,
|
|
962
|
-
{ ...l, field:
|
|
970
|
+
{ ...l, field: me(l.field) }
|
|
963
971
|
])
|
|
964
972
|
)
|
|
965
973
|
};
|
|
966
974
|
}
|
|
967
|
-
function
|
|
975
|
+
function z(e) {
|
|
968
976
|
const { derivedField: t, ...n } = e;
|
|
969
977
|
return {
|
|
970
|
-
...
|
|
978
|
+
...me(n),
|
|
971
979
|
derivedField: t && K(t)
|
|
972
980
|
};
|
|
973
981
|
}
|
|
974
|
-
function
|
|
982
|
+
function H(e) {
|
|
975
983
|
const {
|
|
976
984
|
label: t,
|
|
977
985
|
format: n,
|
|
@@ -989,41 +997,41 @@ function F(e) {
|
|
|
989
997
|
derivedField: r && K(r),
|
|
990
998
|
calculatedFormula: s && {
|
|
991
999
|
...s,
|
|
992
|
-
inputFields: s.inputFields.map(
|
|
1000
|
+
inputFields: s.inputFields.map(H)
|
|
993
1001
|
}
|
|
994
1002
|
};
|
|
995
1003
|
}
|
|
996
|
-
function
|
|
1004
|
+
function be(e) {
|
|
997
1005
|
return {
|
|
998
1006
|
...e,
|
|
999
1007
|
conditions: e.conditions.map(
|
|
1000
1008
|
({ label: t, field: n, ...i }) => ({
|
|
1001
1009
|
...i,
|
|
1002
|
-
field:
|
|
1010
|
+
field: H(n)
|
|
1003
1011
|
})
|
|
1004
1012
|
),
|
|
1005
|
-
groups: e.groups.map(
|
|
1013
|
+
groups: e.groups.map(be)
|
|
1006
1014
|
};
|
|
1007
1015
|
}
|
|
1008
|
-
function
|
|
1016
|
+
function Nt(e) {
|
|
1009
1017
|
return {
|
|
1010
1018
|
...e,
|
|
1011
|
-
source:
|
|
1019
|
+
source: fe(e.source),
|
|
1012
1020
|
rows: e.rows.map((t) => ({
|
|
1013
1021
|
...t,
|
|
1014
|
-
field:
|
|
1022
|
+
field: z(t.field)
|
|
1015
1023
|
})),
|
|
1016
1024
|
columns: e.columns.map((t) => ({
|
|
1017
1025
|
...t,
|
|
1018
|
-
field:
|
|
1026
|
+
field: z(t.field)
|
|
1019
1027
|
})),
|
|
1020
1028
|
measures: e.measures.map(
|
|
1021
|
-
(t) => t.kind === "aggregate" ? { ...t, field:
|
|
1029
|
+
(t) => t.kind === "aggregate" ? { ...t, field: z(t.field) } : {
|
|
1022
1030
|
...t,
|
|
1023
1031
|
definition: K(t.definition)
|
|
1024
1032
|
}
|
|
1025
1033
|
),
|
|
1026
|
-
filters: e.filters &&
|
|
1034
|
+
filters: e.filters && be(e.filters),
|
|
1027
1035
|
joinPlan: e.joinPlan && {
|
|
1028
1036
|
...e.joinPlan,
|
|
1029
1037
|
// relationshipName participates in governed relationship resolution.
|
|
@@ -1033,8 +1041,8 @@ function vt(e) {
|
|
|
1033
1041
|
...n,
|
|
1034
1042
|
keys: n.keys.map((i) => ({
|
|
1035
1043
|
...i,
|
|
1036
|
-
source:
|
|
1037
|
-
target:
|
|
1044
|
+
source: H(i.source),
|
|
1045
|
+
target: H(i.target)
|
|
1038
1046
|
}))
|
|
1039
1047
|
}))
|
|
1040
1048
|
}))
|
|
@@ -1047,45 +1055,47 @@ function vt(e) {
|
|
|
1047
1055
|
};
|
|
1048
1056
|
}
|
|
1049
1057
|
export {
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1058
|
+
ft as A,
|
|
1059
|
+
mt as B,
|
|
1060
|
+
bt as C,
|
|
1053
1061
|
yt as D,
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1062
|
+
gt as E,
|
|
1063
|
+
pt as F,
|
|
1064
|
+
ue as G,
|
|
1065
|
+
Je as H,
|
|
1066
|
+
Xe as I,
|
|
1067
|
+
kt as J,
|
|
1068
|
+
It as K,
|
|
1069
|
+
le as L,
|
|
1070
|
+
Oe as M,
|
|
1071
|
+
K as N,
|
|
1072
|
+
ze as O,
|
|
1063
1073
|
J as R,
|
|
1064
|
-
|
|
1065
|
-
|
|
1074
|
+
vt as S,
|
|
1075
|
+
Nt as a,
|
|
1066
1076
|
ie as b,
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1077
|
+
ae as c,
|
|
1078
|
+
_e as d,
|
|
1079
|
+
re as e,
|
|
1080
|
+
Pe as f,
|
|
1081
|
+
ht as g,
|
|
1072
1082
|
nt as h,
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1083
|
+
at as i,
|
|
1084
|
+
it as j,
|
|
1085
|
+
ot as k,
|
|
1086
|
+
we as l,
|
|
1087
|
+
Ve as m,
|
|
1088
|
+
Ke as n,
|
|
1089
|
+
Ue as o,
|
|
1090
|
+
st as p,
|
|
1091
|
+
rt as q,
|
|
1092
|
+
tt as r,
|
|
1093
|
+
Re as s,
|
|
1094
|
+
ct as t,
|
|
1095
|
+
lt as u,
|
|
1096
|
+
dt as v,
|
|
1097
|
+
Ne as w,
|
|
1098
|
+
de as x,
|
|
1099
|
+
Ge as y,
|
|
1100
|
+
ut as z
|
|
1091
1101
|
};
|