react-semaphor 0.1.425 → 0.1.426
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.cjs +1 -1
- package/dist/analytics-protocol/index.js +42 -39
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +1 -1
- package/dist/chunks/{calendar-preferences-dialog-BLaSWhLl.js → calendar-preferences-dialog-C-gN-vlq.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-DJwV0aqn.js → calendar-preferences-dialog-tBSngRN-.js} +2 -2
- package/dist/chunks/{catalog-field-grounding-DcxPLns0.js → catalog-field-grounding-AOGwWu0K.js} +2 -2
- package/dist/chunks/{code-editor-Bkk7s8hI.js → code-editor-Pod1s6SK.js} +6552 -6296
- package/dist/chunks/code-editor-tfzm8LWW.js +138 -0
- package/dist/chunks/{comparison-document-migration-CQJ0DZlL.js → comparison-document-migration-BJH1idOd.js} +1 -1
- package/dist/chunks/{comparison-document-migration-Db64RWYD.js → comparison-document-migration-b6c3xiWh.js} +1 -1
- package/dist/chunks/dashboard-JNK2ly_e.js +1402 -0
- package/dist/chunks/{dashboard-5agU0G_D.js → dashboard-ZoKNg47G.js} +50334 -49718
- package/dist/chunks/{dashboard-briefing-launcher-CII8-4qo.js → dashboard-briefing-launcher-0kR-QThz.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-qyEVfuOm.js → dashboard-briefing-launcher-BE-sNAzW.js} +4 -4
- package/dist/chunks/{dashboard-controls-PJpeYZHw.js → dashboard-controls-BUYTVauu.js} +1 -1
- package/dist/chunks/{dashboard-controls-aJY0FNPP.js → dashboard-controls-Ce_Bps8f.js} +5 -5
- package/dist/chunks/dashboard-date-comparison-definition-BaYxjLi5.js +167 -0
- package/dist/chunks/dashboard-date-comparison-definition-DGZr3m-b.js +1 -0
- package/dist/chunks/{dashboard-json-CzHSP6Fa.js → dashboard-json-4quaFoSw.js} +3 -3
- package/dist/chunks/{dashboard-json-DtmR5yCf.js → dashboard-json-81uc8aVR.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-AkZzwBCV.js → edit-dashboard-visual-DqQsH7rN.js} +4562 -4508
- package/dist/chunks/edit-dashboard-visual-nVRXv1Lq.js +182 -0
- package/dist/chunks/metric-comparison-BKgkMy9r.js +1 -0
- package/dist/chunks/metric-comparison-CWweq9RG.js +387 -0
- package/dist/chunks/{use-create-flow-overlay-state-DmuReEnk.js → use-create-flow-overlay-state-CoANTEXS.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-ByOKVV2K.js → use-create-flow-overlay-state-DUVIsF0y.js} +2 -2
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.cjs +1 -1
- package/dist/dashboard-authoring/index.js +3 -3
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +2 -2
- package/dist/data-app-sdk-validation/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +6 -6
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/analytics-protocol.d.ts +40 -2
- package/dist/types/dashboard.d.ts +25 -0
- package/dist/types/main.d.ts +35 -5
- package/dist/types/surfboard.d.ts +25 -0
- package/dist/types/types.d.ts +25 -0
- package/package.json +1 -1
- package/dist/chunks/code-editor-CkXyNgYc.js +0 -138
- package/dist/chunks/dashboard-MKIqgGDp.js +0 -1402
- package/dist/chunks/edit-dashboard-visual-Cif6uDqN.js +0 -182
- package/dist/chunks/metric-comparison-4oA4ouU9.js +0 -354
- package/dist/chunks/metric-comparison-nQKquVnx.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),x=require("react"),s=require("./dashboard-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),x=require("react"),s=require("./dashboard-JNK2ly_e.js"),n=require("./code-editor-tfzm8LWW.js"),je=require("./layout-grid-B08pP7v6.js"),G=require("./index-jSrCwPQz.js"),_=require("./use-create-flow-overlay-state-CoANTEXS.js");require("./analyze-result-contract-ege_u6Nl.js");const Re=require("./search-Dcud9ajy.js"),ye=require("./date-formatter-BTTYdAik.js");require("./index-Dpm_VET4.js");require("./comparison-document-migration-b6c3xiWh.js");require("react-dom");const X=require("../briefings/index.cjs");/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r, Fragment as G } from "react/jsx-runtime";
|
|
2
2
|
import jt, { useState as A, useEffect as Z, useMemo as J, useContext as Wt, useRef as me, useCallback as q } from "react";
|
|
3
|
-
import { b as De, c as ke, e as Ae, b9 as Ct, b$ as Ht, cm as Gt, cn as qt, aX as ge, ca as wt, bp as Ve, Q as Kt, O as Qt, co as Xt, aN as Ye, aQ as Ze, aR as Je, aS as et, aT as tt, aU as rt, aV as at, aW as Nt, bo as nt, p as z, cp as Yt, cq as Zt, cr as qe, cb as Oe, cc as ze, cs as St, cd as _e, bZ as H, a$ as Jt, bE as Re, ct as er, bY as tr, d as st, f as ot, cu as rr, o as ar, b8 as nr, bn as Dt, cv as sr, aG as or, aK as ir, b1 as lr, u as $e, aE as he, ah as it, ae as kt, ad as lt, aD as At, af as cr, a7 as dr, ch as ur, cw as hr, bz as mr, $ as mt, x as pr, aF as fr, cx as gr, cy as br, cz as xr, cA as vr, cB as yr, cC as Cr, cD as wr, cE as Nr, cF as Et, cG as Sr, b2 as Dr, cH as kr, ce as It, cI as Ar, cJ as Er, cK as Be, cL as Ir, cM as Fr, cN as Lr, z as Br, au as Tr, ap as Vr, a3 as Rr, ao as Ur, al as Pr, a8 as Mr, ak as Or, cO as zr, cP as _r, cQ as $r, cR as jr, cS as Wr, B as Hr, cT as Gr, cU as qr, ac as Kr, cV as Qr, cW as Xr, cX as Yr } from "./dashboard-
|
|
4
|
-
import { B, L as Se, Z as Qe, e as ee, N as Ft, d as Lt, c as K, M as Zr, F as be, u as M, D as xe, aH as pt, a7 as Bt, a6 as Xe, E as Tt, S as ct, P as Ue, a as Pe, b as Me, aI as Jr, aJ as ea, aK as ta, aL as ra, aM as aa, aF as na } from "./code-editor-
|
|
3
|
+
import { b as De, c as ke, e as Ae, b9 as Ct, b$ as Ht, cm as Gt, cn as qt, aX as ge, ca as wt, bp as Ve, Q as Kt, O as Qt, co as Xt, aN as Ye, aQ as Ze, aR as Je, aS as et, aT as tt, aU as rt, aV as at, aW as Nt, bo as nt, p as z, cp as Yt, cq as Zt, cr as qe, cb as Oe, cc as ze, cs as St, cd as _e, bZ as H, a$ as Jt, bE as Re, ct as er, bY as tr, d as st, f as ot, cu as rr, o as ar, b8 as nr, bn as Dt, cv as sr, aG as or, aK as ir, b1 as lr, u as $e, aE as he, ah as it, ae as kt, ad as lt, aD as At, af as cr, a7 as dr, ch as ur, cw as hr, bz as mr, $ as mt, x as pr, aF as fr, cx as gr, cy as br, cz as xr, cA as vr, cB as yr, cC as Cr, cD as wr, cE as Nr, cF as Et, cG as Sr, b2 as Dr, cH as kr, ce as It, cI as Ar, cJ as Er, cK as Be, cL as Ir, cM as Fr, cN as Lr, z as Br, au as Tr, ap as Vr, a3 as Rr, ao as Ur, al as Pr, a8 as Mr, ak as Or, cO as zr, cP as _r, cQ as $r, cR as jr, cS as Wr, B as Hr, cT as Gr, cU as qr, ac as Kr, cV as Qr, cW as Xr, cX as Yr } from "./dashboard-ZoKNg47G.js";
|
|
4
|
+
import { B, L as Se, Z as Qe, e as ee, N as Ft, d as Lt, c as K, M as Zr, F as be, u as M, D as xe, aH as pt, a7 as Bt, a6 as Xe, E as Tt, S as ct, P as Ue, a as Pe, b as Me, aI as Jr, aJ as ea, aK as ta, aL as ra, aM as aa, aF as na } from "./code-editor-Pod1s6SK.js";
|
|
5
5
|
import { L as dt } from "./layout-grid-D5tYJg1-.js";
|
|
6
6
|
import { c as ve, X as je, C as Vt } from "./index-xHCrHprY.js";
|
|
7
|
-
import { u as ut, V as sa, E as ft, a as gt, b as oa, c as ia, L as la, d as ca, e as Rt, C as Ut, f as da } from "./use-create-flow-overlay-state-
|
|
7
|
+
import { u as ut, V as sa, E as ft, a as gt, b as oa, c as ia, L as la, d as ca, e as Rt, C as Ut, f as da } from "./use-create-flow-overlay-state-DUVIsF0y.js";
|
|
8
8
|
import "./analyze-result-contract-DnfF8kBb.js";
|
|
9
9
|
import { S as ua } from "./search-DHZCro8B.js";
|
|
10
10
|
import { m as bt } from "./date-formatter-D-89jTjG.js";
|
|
11
11
|
import "./index-If0wlXGi.js";
|
|
12
|
-
import "./comparison-document-migration-
|
|
12
|
+
import "./comparison-document-migration-BJH1idOd.js";
|
|
13
13
|
import "react-dom";
|
|
14
14
|
import { getBriefingPresentation as oe, describeBriefingSchedule as ha, getBriefingCreationIntents as ma } from "../briefings/index.js";
|
|
15
15
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("./code-editor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("./code-editor-tfzm8LWW.js"),s=require("./dashboard-JNK2ly_e.js"),U=require("./index-jSrCwPQz.js");require("./analyze-result-contract-ege_u6Nl.js");const g=require("react");require("./index-Dpm_VET4.js");require("./comparison-document-migration-b6c3xiWh.js");const Xt=require("react-dom");require("../briefings/index.cjs");const V=require("./dashboard-briefing-launcher-0kR-QThz.js"),vt=require("./search-Dcud9ajy.js"),yt=require("./index-D7KJindZ.js"),Yt=require("./calendar-preferences-dialog-C-gN-vlq.js"),Zt=require("./use-debounced-dirty-check-XHSwAefL.js"),qe=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.js"),xt=require("./save-Xdc4pnys.js"),es=require("./palette-C0yjT5Tv.js"),ts=require("./braces-CbO-aIwH.js");function ss(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const L=ss(g);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s, Fragment as T } from "react/jsx-runtime";
|
|
2
|
-
import { u as D, B as U, aw as it, D as Yt, L as Ga, Z as za, c as ge, ax as dt, ay as _a, az as qa, aA as Zt, aB as be, aC as lt, aD as ea, e as Te, aE as ta, aF as Ha, F as $t, Q as ja, V as Ka, W as Qa, Y as Wa, p as Ja, aG as Xa } from "./code-editor-
|
|
3
|
-
import { bA as Ya, bB as Za, u as z, b as aa, bC as er, aX as H, c as ra, d as tr, e as rt, f as nt, o as ar, bD as fe, bE as Oe, bF as rr, bG as Bt, bH as na, bI as sa, bJ as nr, bK as ct, bL as sr, bM as or, bN as ir, bO as dr, bP as lr, bQ as cr, b6 as xe, bR as ve, p as C, bS as ur, bT as oa, bp as ut, bU as mr, bV as pr, bW as ia, bX as hr, bY as da, bZ as O, b_ as fr, au as gr, b$ as br, c0 as xr, c1 as vr, ay as yr, aG as Ve, aH as wr, O as tt, c2 as Nr, c3 as Dr, c4 as Cr, at as kr, c5 as Sr, c6 as Ir, I as Gt, c7 as Mr, c8 as Er, c9 as Ar, ca as Lr, cb as zt, cc as _t, cd as qt, ce as Pr, cf as Ur, cg as Rr, ch as Vr, a$ as Ht, ci as Fr, cj as Or, ck as Tr, Q as $r, cl as Br, aN as Gr, aQ as zr, aR as _r, aS as qr, aT as Hr, aU as jr, aV as Kr, aW as jt, w as st } from "./dashboard-
|
|
2
|
+
import { u as D, B as U, aw as it, D as Yt, L as Ga, Z as za, c as ge, ax as dt, ay as _a, az as qa, aA as Zt, aB as be, aC as lt, aD as ea, e as Te, aE as ta, aF as Ha, F as $t, Q as ja, V as Ka, W as Qa, Y as Wa, p as Ja, aG as Xa } from "./code-editor-Pod1s6SK.js";
|
|
3
|
+
import { bA as Ya, bB as Za, u as z, b as aa, bC as er, aX as H, c as ra, d as tr, e as rt, f as nt, o as ar, bD as fe, bE as Oe, bF as rr, bG as Bt, bH as na, bI as sa, bJ as nr, bK as ct, bL as sr, bM as or, bN as ir, bO as dr, bP as lr, bQ as cr, b6 as xe, bR as ve, p as C, bS as ur, bT as oa, bp as ut, bU as mr, bV as pr, bW as ia, bX as hr, bY as da, bZ as O, b_ as fr, au as gr, b$ as br, c0 as xr, c1 as vr, ay as yr, aG as Ve, aH as wr, O as tt, c2 as Nr, c3 as Dr, c4 as Cr, at as kr, c5 as Sr, c6 as Ir, I as Gt, c7 as Mr, c8 as Er, c9 as Ar, ca as Lr, cb as zt, cc as _t, cd as qt, ce as Pr, cf as Ur, cg as Rr, ch as Vr, a$ as Ht, ci as Fr, cj as Or, ck as Tr, Q as $r, cl as Br, aN as Gr, aQ as zr, aR as _r, aS as qr, aT as Hr, aU as jr, aV as Kr, aW as jt, w as st } from "./dashboard-ZoKNg47G.js";
|
|
4
4
|
import { c as Z, X as la, C as Qr } from "./index-xHCrHprY.js";
|
|
5
5
|
import "./analyze-result-contract-DnfF8kBb.js";
|
|
6
6
|
import * as L from "react";
|
|
7
7
|
import { useState as N, useMemo as Y, useEffect as $e, useRef as Kt, useLayoutEffect as Wr, useCallback as Jr } from "react";
|
|
8
8
|
import "./index-If0wlXGi.js";
|
|
9
|
-
import "./comparison-document-migration-
|
|
9
|
+
import "./comparison-document-migration-BJH1idOd.js";
|
|
10
10
|
import { createPortal as Xr } from "react-dom";
|
|
11
11
|
import "../briefings/index.js";
|
|
12
|
-
import { g as Yr, u as Zr, A as en, V as tn, c as an, f as rn, N as nn, D as sn, U as on } from "./dashboard-briefing-launcher-
|
|
12
|
+
import { g as Yr, u as Zr, A as en, V as tn, c as an, f as rn, N as nn, D as sn, U as on } from "./dashboard-briefing-launcher-BE-sNAzW.js";
|
|
13
13
|
import { S as dn, C as ln } from "./search-DHZCro8B.js";
|
|
14
14
|
import { d as ca } from "./index-CnujJ3fa.js";
|
|
15
|
-
import { C as cn } from "./calendar-preferences-dialog-
|
|
15
|
+
import { C as cn } from "./calendar-preferences-dialog-tBSngRN-.js";
|
|
16
16
|
import { u as un } from "./use-debounced-dirty-check-BwAbnX_5.js";
|
|
17
17
|
import { s as at } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
|
|
18
18
|
import { S as Qt } from "./save-HCJjjzdX.js";
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { n as h } from "./catalog-field-grounding-AOGwWu0K.js";
|
|
2
|
+
function N(e, n) {
|
|
3
|
+
const t = e.split(".").map((r) => r.trim()), i = n.split(".").map((r) => r.trim());
|
|
4
|
+
if (t.length === 0 || i.length === 0 || t.some((r) => !r) || i.some((r) => !r))
|
|
5
|
+
return !1;
|
|
6
|
+
const [s, o] = t.length <= i.length ? [t, i] : [i, t], a = o.length - s.length;
|
|
7
|
+
return s.every((r, c) => r === o[c + a]);
|
|
8
|
+
}
|
|
9
|
+
function q(e, n) {
|
|
10
|
+
const t = e.split("."), i = n.split("."), s = t.pop(), o = i.pop();
|
|
11
|
+
return !!(s && s === o && t.length > 0 && i.length > 0 && N(
|
|
12
|
+
t.join("."),
|
|
13
|
+
i.join(".")
|
|
14
|
+
));
|
|
15
|
+
}
|
|
16
|
+
function C(e) {
|
|
17
|
+
const n = e.map((i) => i.trim()).filter(Boolean);
|
|
18
|
+
if (n.every(
|
|
19
|
+
(i, s) => n.slice(s + 1).every(
|
|
20
|
+
(o) => N(i, o)
|
|
21
|
+
)
|
|
22
|
+
))
|
|
23
|
+
return [...n].sort(
|
|
24
|
+
(i, s) => s.split(".").length - i.split(".").length
|
|
25
|
+
)[0];
|
|
26
|
+
}
|
|
27
|
+
function u(e) {
|
|
28
|
+
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
29
|
+
}
|
|
30
|
+
function I(e) {
|
|
31
|
+
if (typeof e != "string") return "";
|
|
32
|
+
const n = e.split(".").map((t) => t.trim());
|
|
33
|
+
return n.length > 1 && n.every(Boolean) ? n.join(".") : "";
|
|
34
|
+
}
|
|
35
|
+
function v(e) {
|
|
36
|
+
if (typeof e != "string") return "";
|
|
37
|
+
const n = e.split(".").map((t) => t.trim());
|
|
38
|
+
return n.length > 0 && n.every(Boolean) ? n.join(".") : "";
|
|
39
|
+
}
|
|
40
|
+
function d(e) {
|
|
41
|
+
return typeof e == "string" ? e.trim() : "";
|
|
42
|
+
}
|
|
43
|
+
function D(e, n) {
|
|
44
|
+
return e.every(
|
|
45
|
+
(t, i) => e.slice(i + 1).every((s) => n(t, s))
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
function F(e, n) {
|
|
49
|
+
const t = d(e.id), i = d(e.name), s = d(n.entityId), o = d(n.entityName);
|
|
50
|
+
return !i || !s && !o ? !1 : (!s || s === t || s === i) && (!o || o === i);
|
|
51
|
+
}
|
|
52
|
+
function T(e) {
|
|
53
|
+
const n = u(e.semanticContext) ? e.semanticContext : void 0, t = u(e.fieldMeta) ? e.fieldMeta : void 0, i = d(n == null ? void 0 : n.semanticDomainId), s = Array.isArray(n == null ? void 0 : n.selectedEntities) ? n.selectedEntities.filter(
|
|
54
|
+
(g) => u(g) && g.type === "dataset"
|
|
55
|
+
) : [];
|
|
56
|
+
if (!!!(i || s.length > 0 || (t == null ? void 0 : t.entityType) === "dataset")) return;
|
|
57
|
+
if (!i)
|
|
58
|
+
return { status: "unresolved", reason: "incomplete_source_identity" };
|
|
59
|
+
const a = d(t == null ? void 0 : t.entityId), r = d(t == null ? void 0 : t.entityName), c = !!(a || r), f = c ? s.filter(
|
|
60
|
+
(g) => F(g, {
|
|
61
|
+
entityId: a,
|
|
62
|
+
entityName: r
|
|
63
|
+
})
|
|
64
|
+
) : s;
|
|
65
|
+
if (f.length > 1)
|
|
66
|
+
return { status: "unresolved", reason: "incomplete_source_identity" };
|
|
67
|
+
if (c && s.length > 0 && f.length === 0)
|
|
68
|
+
return { status: "unresolved", reason: "divergent_source_identity" };
|
|
69
|
+
const l = f[0], m = d(l == null ? void 0 : l.domainId), p = d(l == null ? void 0 : l.id), y = d(l == null ? void 0 : l.name);
|
|
70
|
+
if (m && m !== i)
|
|
71
|
+
return { status: "unresolved", reason: "divergent_source_identity" };
|
|
72
|
+
const _ = p, b = y || r;
|
|
73
|
+
return b ? {
|
|
74
|
+
status: "resolved",
|
|
75
|
+
source: {
|
|
76
|
+
kind: "semantic",
|
|
77
|
+
domainId: i,
|
|
78
|
+
datasetName: b,
|
|
79
|
+
..._ ? { datasetId: _ } : {}
|
|
80
|
+
}
|
|
81
|
+
} : { status: "unresolved", reason: "incomplete_source_identity" };
|
|
82
|
+
}
|
|
83
|
+
function S(e, n) {
|
|
84
|
+
const t = d(e.connectionId), i = u(e.semanticContext) ? e.semanticContext : void 0, s = d(i == null ? void 0 : i.connectionId);
|
|
85
|
+
if (t && s && t !== s)
|
|
86
|
+
return { status: "unresolved", reason: "divergent_source_identity" };
|
|
87
|
+
const o = t || s, a = u(e.fieldMeta) ? e.fieldMeta : void 0, r = n.split(".").slice(0, -1).join("."), c = v(e.qualifiedTableName), f = v(
|
|
88
|
+
a == null ? void 0 : a.qualifiedEntityName
|
|
89
|
+
), l = [
|
|
90
|
+
c,
|
|
91
|
+
f,
|
|
92
|
+
r
|
|
93
|
+
].filter(Boolean), m = C(l);
|
|
94
|
+
return !m && l.length > 0 ? { status: "unresolved", reason: "divergent_source_identity" } : !o || !m ? { status: "unresolved", reason: "incomplete_source_identity" } : {
|
|
95
|
+
status: "resolved",
|
|
96
|
+
source: { kind: "physical", connectionId: o, tableName: m }
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function A(e, n) {
|
|
100
|
+
const t = u(e.fieldMeta) ? e.fieldMeta : void 0, i = typeof (t == null ? void 0 : t.qualifiedFieldName) == "string" ? t.qualifiedFieldName.trim() : "", s = I(
|
|
101
|
+
t == null ? void 0 : t.qualifiedFieldName
|
|
102
|
+
), o = typeof e.column == "string" ? e.column.trim() : "", a = I(o), r = typeof e.qualifiedTableName == "string" ? e.qualifiedTableName.trim() : "", c = v(
|
|
103
|
+
e.qualifiedTableName
|
|
104
|
+
);
|
|
105
|
+
if (i && !s || n && r && !c || o.includes(".") && !a)
|
|
106
|
+
return { status: "unresolved", reason: "incomplete_field_identity" };
|
|
107
|
+
const f = a.split("."), l = a ? f[f.length - 1] : o, m = n && c && l ? `${c}.${l}` : "", p = [
|
|
108
|
+
s,
|
|
109
|
+
a,
|
|
110
|
+
m
|
|
111
|
+
].filter(Boolean);
|
|
112
|
+
if (!D(
|
|
113
|
+
p,
|
|
114
|
+
q
|
|
115
|
+
))
|
|
116
|
+
return { status: "unresolved", reason: "divergent_field_identity" };
|
|
117
|
+
const y = a || s || m;
|
|
118
|
+
return y ? { status: "resolved", qualifiedFieldName: y } : { status: "unresolved", reason: "incomplete_field_identity" };
|
|
119
|
+
}
|
|
120
|
+
function E(e) {
|
|
121
|
+
if (!u(e))
|
|
122
|
+
return { status: "ineligible", reason: "invalid_input" };
|
|
123
|
+
if (e.kind === "global-date")
|
|
124
|
+
return { status: "eligible", kind: "global_date" };
|
|
125
|
+
const n = h(e.dataType);
|
|
126
|
+
if (n !== "date" && n !== "datetime")
|
|
127
|
+
return { status: "ineligible", reason: "non_date_filter" };
|
|
128
|
+
const t = u(e.fieldMeta) ? e.fieldMeta : void 0, i = h(
|
|
129
|
+
t == null ? void 0 : t.dataType
|
|
130
|
+
);
|
|
131
|
+
if ((t == null ? void 0 : t.dataType) !== void 0 && i !== "date" && i !== "datetime")
|
|
132
|
+
return { status: "ineligible", reason: "non_date_filter" };
|
|
133
|
+
if (e.customFilterPreferences)
|
|
134
|
+
return { status: "ineligible", reason: "custom_filter" };
|
|
135
|
+
if (e.targetColumns !== void 0 && (!Array.isArray(e.targetColumns) || e.targetColumns.length > 0))
|
|
136
|
+
return { status: "ineligible", reason: "multi_target_filter" };
|
|
137
|
+
const s = T(e), o = A(e, s === void 0);
|
|
138
|
+
if (o.status === "unresolved")
|
|
139
|
+
return { status: "ineligible", reason: o.reason };
|
|
140
|
+
const a = s || S(e, o.qualifiedFieldName);
|
|
141
|
+
return a.status === "resolved" ? {
|
|
142
|
+
status: "eligible",
|
|
143
|
+
kind: "field_date",
|
|
144
|
+
qualifiedFieldName: o.qualifiedFieldName,
|
|
145
|
+
source: a.source
|
|
146
|
+
} : { status: "ineligible", reason: a.reason };
|
|
147
|
+
}
|
|
148
|
+
function B(e) {
|
|
149
|
+
if (!u(e) || e.kind !== "filter" || !u(e.filter))
|
|
150
|
+
return { status: "ineligible", reason: "invalid_input" };
|
|
151
|
+
const n = E(
|
|
152
|
+
e.filter
|
|
153
|
+
);
|
|
154
|
+
return n.status === "ineligible" ? n : n.kind === "field_date" && u(e.compatibility) && e.compatibility.source === "cardInlineFilter" ? { status: "ineligible", reason: "card_inline_filter" } : n;
|
|
155
|
+
}
|
|
156
|
+
function j(e) {
|
|
157
|
+
return B(e).status === "eligible";
|
|
158
|
+
}
|
|
159
|
+
export {
|
|
160
|
+
B as a,
|
|
161
|
+
C as b,
|
|
162
|
+
N as c,
|
|
163
|
+
j as i,
|
|
164
|
+
q,
|
|
165
|
+
E as r,
|
|
166
|
+
F as s
|
|
167
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const I=require("./catalog-field-grounding-Bnx-3tE0.js");function b(e,n){const t=e.split(".").map(r=>r.trim()),i=n.split(".").map(r=>r.trim());if(t.length===0||i.length===0||t.some(r=>!r)||i.some(r=>!r))return!1;const[s,o]=t.length<=i.length?[t,i]:[i,t],a=o.length-s.length;return s.every((r,c)=>r===o[c+a])}function C(e,n){const t=e.split("."),i=n.split("."),s=t.pop(),o=i.pop();return!!(s&&s===o&&t.length>0&&i.length>0&&b(t.join("."),i.join(".")))}function N(e){const n=e.map(i=>i.trim()).filter(Boolean);if(n.every((i,s)=>n.slice(s+1).every(o=>b(i,o))))return[...n].sort((i,s)=>s.split(".").length-i.split(".").length)[0]}function u(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function D(e){if(typeof e!="string")return"";const n=e.split(".").map(t=>t.trim());return n.length>1&&n.every(Boolean)?n.join("."):""}function v(e){if(typeof e!="string")return"";const n=e.split(".").map(t=>t.trim());return n.length>0&&n.every(Boolean)?n.join("."):""}function d(e){return typeof e=="string"?e.trim():""}function S(e,n){return e.every((t,i)=>e.slice(i+1).every(s=>n(t,s)))}function q(e,n){const t=d(e.id),i=d(e.name),s=d(n.entityId),o=d(n.entityName);return!i||!s&&!o?!1:(!s||s===t||s===i)&&(!o||o===i)}function E(e){const n=u(e.semanticContext)?e.semanticContext:void 0,t=u(e.fieldMeta)?e.fieldMeta:void 0,i=d(n==null?void 0:n.semanticDomainId),s=Array.isArray(n==null?void 0:n.selectedEntities)?n.selectedEntities.filter(g=>u(g)&&g.type==="dataset"):[];if(!!!(i||s.length>0||(t==null?void 0:t.entityType)==="dataset"))return;if(!i)return{status:"unresolved",reason:"incomplete_source_identity"};const a=d(t==null?void 0:t.entityId),r=d(t==null?void 0:t.entityName),c=!!(a||r),f=c?s.filter(g=>q(g,{entityId:a,entityName:r})):s;if(f.length>1)return{status:"unresolved",reason:"incomplete_source_identity"};if(c&&s.length>0&&f.length===0)return{status:"unresolved",reason:"divergent_source_identity"};const l=f[0],m=d(l==null?void 0:l.domainId),p=d(l==null?void 0:l.id),y=d(l==null?void 0:l.name);if(m&&m!==i)return{status:"unresolved",reason:"divergent_source_identity"};const h=p,_=y||r;return _?{status:"resolved",source:{kind:"semantic",domainId:i,datasetName:_,...h?{datasetId:h}:{}}}:{status:"unresolved",reason:"incomplete_source_identity"}}function A(e,n){const t=d(e.connectionId),i=u(e.semanticContext)?e.semanticContext:void 0,s=d(i==null?void 0:i.connectionId);if(t&&s&&t!==s)return{status:"unresolved",reason:"divergent_source_identity"};const o=t||s,a=u(e.fieldMeta)?e.fieldMeta:void 0,r=n.split(".").slice(0,-1).join("."),c=v(e.qualifiedTableName),f=v(a==null?void 0:a.qualifiedEntityName),l=[c,f,r].filter(Boolean),m=N(l);return!m&&l.length>0?{status:"unresolved",reason:"divergent_source_identity"}:!o||!m?{status:"unresolved",reason:"incomplete_source_identity"}:{status:"resolved",source:{kind:"physical",connectionId:o,tableName:m}}}function B(e,n){const t=u(e.fieldMeta)?e.fieldMeta:void 0,i=typeof(t==null?void 0:t.qualifiedFieldName)=="string"?t.qualifiedFieldName.trim():"",s=D(t==null?void 0:t.qualifiedFieldName),o=typeof e.column=="string"?e.column.trim():"",a=D(o),r=typeof e.qualifiedTableName=="string"?e.qualifiedTableName.trim():"",c=v(e.qualifiedTableName);if(i&&!s||n&&r&&!c||o.includes(".")&&!a)return{status:"unresolved",reason:"incomplete_field_identity"};const f=a.split("."),l=a?f[f.length-1]:o,m=n&&c&&l?`${c}.${l}`:"",p=[s,a,m].filter(Boolean);if(!S(p,C))return{status:"unresolved",reason:"divergent_field_identity"};const y=a||s||m;return y?{status:"resolved",qualifiedFieldName:y}:{status:"unresolved",reason:"incomplete_field_identity"}}function F(e){if(!u(e))return{status:"ineligible",reason:"invalid_input"};if(e.kind==="global-date")return{status:"eligible",kind:"global_date"};const n=I.normalizeAnalyticsCatalogDataType(e.dataType);if(n!=="date"&&n!=="datetime")return{status:"ineligible",reason:"non_date_filter"};const t=u(e.fieldMeta)?e.fieldMeta:void 0,i=I.normalizeAnalyticsCatalogDataType(t==null?void 0:t.dataType);if((t==null?void 0:t.dataType)!==void 0&&i!=="date"&&i!=="datetime")return{status:"ineligible",reason:"non_date_filter"};if(e.customFilterPreferences)return{status:"ineligible",reason:"custom_filter"};if(e.targetColumns!==void 0&&(!Array.isArray(e.targetColumns)||e.targetColumns.length>0))return{status:"ineligible",reason:"multi_target_filter"};const s=E(e),o=B(e,s===void 0);if(o.status==="unresolved")return{status:"ineligible",reason:o.reason};const a=s||A(e,o.qualifiedFieldName);return a.status==="resolved"?{status:"eligible",kind:"field_date",qualifiedFieldName:o.qualifiedFieldName,source:a.source}:{status:"ineligible",reason:a.reason}}function T(e){if(!u(e)||e.kind!=="filter"||!u(e.filter))return{status:"ineligible",reason:"invalid_input"};const n=F(e.filter);return n.status==="ineligible"?n:n.kind==="field_date"&&u(e.compatibility)&&e.compatibility.source==="cardInlineFilter"?{status:"ineligible",reason:"card_inline_filter"}:n}function k(e){return T(e).status==="eligible"}exports.isComparisonCapableDashboardDateInputDefinition=k;exports.qualifiedEntityIdentitiesReferToSameEntity=b;exports.qualifiedFieldIdentitiesReferToSameField=C;exports.resolveDashboardDateComparisonFilterDefinition=F;exports.resolveDashboardDateComparisonInputDefinition=T;exports.selectMostQualifiedCompatibleEntityIdentity=N;exports.semanticDatasetMatchesFieldCoordinates=q;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as u, useState as f, useRef as p, useEffect as b } from "react";
|
|
3
3
|
import { X as S } from "./index-xHCrHprY.js";
|
|
4
|
-
import { u as o, B as N, C as D, c as J } from "./code-editor-
|
|
4
|
+
import { u as o, B as N, C as D, c as J } from "./code-editor-Pod1s6SK.js";
|
|
5
5
|
import "./analyze-result-contract-DnfF8kBb.js";
|
|
6
|
-
import "./dashboard-
|
|
6
|
+
import "./dashboard-ZoKNg47G.js";
|
|
7
7
|
import "./index-If0wlXGi.js";
|
|
8
|
-
import "./comparison-document-migration-
|
|
8
|
+
import "./comparison-document-migration-BJH1idOd.js";
|
|
9
9
|
import "react-dom";
|
|
10
10
|
import "../briefings/index.js";
|
|
11
11
|
function E() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),o=require("react"),b=require("./index-jSrCwPQz.js"),s=require("./code-editor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),o=require("react"),b=require("./index-jSrCwPQz.js"),s=require("./code-editor-tfzm8LWW.js");require("./analyze-result-contract-ege_u6Nl.js");require("./dashboard-JNK2ly_e.js");require("./index-Dpm_VET4.js");require("./comparison-document-migration-b6c3xiWh.js");require("react-dom");require("../briefings/index.cjs");function S(){const t=s.useDashboardStore(e=>e.dashboard),u=s.useDashboardStore(e=>e.actions.setDashboard),c=s.useDashboardStore(e=>e.showDashboardJSON),h=s.useDashboardStore(e=>e.actions.setShowDashboardJSON),r=o.useMemo(()=>t?JSON.stringify(t,null,2):"",[t]),[l,i]=o.useState(r),n=o.useRef(r);return o.useEffect(()=>{r!==n.current&&(i(r),n.current=r)},[r]),a.jsxs("div",{className:s.cn("relative p-2",{hidden:!c}),children:[a.jsxs(s.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>h(!1),children:[a.jsx(b.X,{className:"mr-2 h-4 w-4"}),"Close"]}),a.jsx("div",{className:"h-[550px] overflow-hidden",children:a.jsx(s.CodeEditor,{value:l,onValueChange:e=>{i(e);try{const d=JSON.parse(e);n.current=JSON.stringify(d,null,2),u(d)}catch{}},language:"json"})})]})}exports.default=S;
|