react-semaphor 0.1.466 → 0.1.468
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 +152 -282
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +4 -4
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/{analyze-result-contract-CMZDRRwo.js → analyze-result-contract-kaCNxjA7.js} +1 -1
- package/dist/chunks/{common-types-Co766x6t.js → common-types-BgI-ymBp.js} +30 -23
- package/dist/chunks/common-types-tRK8fhXV.cjs +1 -0
- package/dist/chunks/{dashboard-briefing-launcher-DbLc4VV9.cjs → dashboard-briefing-launcher-Bo4GmnB7.cjs} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-C_Iy9yvg.js → dashboard-briefing-launcher-DjBmkS6v.js} +9 -9
- package/dist/chunks/{dashboard-controls-Rotbld-z.cjs → dashboard-controls-CstKugeB.cjs} +1 -1
- package/dist/chunks/{dashboard-controls-C25Pk_CY.js → dashboard-controls-CvrCyVPZ.js} +9 -9
- package/dist/chunks/{dashboard-filter-value-compatibility-B8ynE_O1.js → dashboard-filter-value-compatibility-o-kufPZB.js} +7 -7
- package/dist/chunks/{dashboard-input-contract-Px64VWBL.js → dashboard-input-contract-Ciboc347.js} +6 -6
- package/dist/chunks/{dashboard-json-DjMbADzW.js → dashboard-json-D9r_xere.js} +7 -7
- package/dist/chunks/{dashboard-json-LeJ0JD4L.cjs → dashboard-json-ZGqzmExU.cjs} +1 -1
- package/dist/chunks/{edit-dashboard-visual-ryv-jOUA.cjs → edit-dashboard-visual-BzVDWVyZ.cjs} +11 -11
- package/dist/chunks/{edit-dashboard-visual-BDNcPoBS.js → edit-dashboard-visual-D64tmqA4.js} +1720 -1720
- package/dist/chunks/{editor-action-buttons-lBwd5Stw.cjs → editor-action-buttons-BXJlZl7z.cjs} +1 -1
- package/dist/chunks/{editor-action-buttons-CFDC0po3.js → editor-action-buttons-C2msc_en.js} +6 -6
- package/dist/chunks/{index-Bs9OvwM2.js → index-B6cfDHwn.js} +28534 -28321
- package/dist/chunks/{index-BlCnNcaB.js → index-DO4BESNy.js} +9 -9
- package/dist/chunks/{index-UKhl24L_.cjs → index-DZdmd5AL.cjs} +223 -223
- package/dist/chunks/matrix-result-contract-C3cGHj_y.js +598 -0
- package/dist/chunks/matrix-result-contract-CkRVx693.cjs +1 -0
- package/dist/chunks/{pivot-header-presentation-CSf6CyOt.js → pivot-header-presentation-OpY8xzdT.js} +2 -2
- package/dist/chunks/{pivot-result-identity-BvT51Nog.js → pivot-result-identity-CCMpd8ZA.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle--NNNPUtG.js → pivot-result-lifecycle-B38AZx4a.js} +19 -19
- package/dist/chunks/{raw-temporal-contract-BqVMduCs.js → raw-temporal-contract-r_EMdR85.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-DzUi-b9O.cjs → report-preferences-dialog-B89ypIJ-.cjs} +1 -1
- package/dist/chunks/{report-preferences-dialog-JCUuGAtd.js → report-preferences-dialog-Dvy818KV.js} +6 -6
- package/dist/chunks/{report-runtime-context-CrTzKt0C.js → report-runtime-context-CcXUjpb-.js} +7 -7
- package/dist/chunks/{saved-temporal-bucket-format-DfqnCGCz.js → saved-temporal-bucket-format-hylaofsQ.js} +29 -29
- package/dist/chunks/{switch-B6rFVSdw.js → switch-8PklEEN1.js} +9 -9
- package/dist/chunks/{switch-BghC7eOM.cjs → switch-DykyqM66.cjs} +1 -1
- package/dist/chunks/{temporal-bucket-DFYIkexB.js → temporal-bucket-Cc9fmx8s.js} +12 -12
- package/dist/chunks/{temporal-bucket-authoring-ZxFzhTmL.js → temporal-bucket-authoring-DjPFtRSF.js} +3 -3
- package/dist/chunks/{temporal-bucket-contract-COPPwwbi.js → temporal-bucket-contract-DT4kU0VY.js} +1 -1
- package/dist/chunks/{token-types-p1M3SA2G.js → token-types-Z889rD6g.js} +1 -1
- package/dist/chunks/{update-policy-BKOA5S76.js → update-policy-Bu5Tw43R.js} +1 -1
- package/dist/chunks/{validators-CCpBY1e0.js → validators-DhTaCK1O.js} +50 -50
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +4 -4
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +2 -2
- package/dist/data-app-codegen/index.js +2 -2
- package/dist/data-app-codegen-node/index.js +3 -3
- package/dist/data-app-sdk/index.js +3 -3
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.js +9 -9
- package/dist/format-utils/index.js +10 -10
- package/dist/index.cjs +1 -1
- package/dist/index.js +117 -115
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +3 -3
- package/dist/types/analytics-protocol.d.ts +18 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +18 -16
- package/dist/types/main.d.ts +9 -0
- package/dist/types/types.d.ts +9 -0
- package/package.json +1 -1
- package/dist/chunks/common-types-o3LJcrpg.cjs +0 -1
- package/dist/chunks/matrix-result-contract-DQ9_UadF.js +0 -421
- package/dist/chunks/matrix-result-contract-DiHDIyQk.cjs +0 -1
package/dist/briefings/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../chunks/pivot-result-lifecycle
|
|
1
|
+
import "../chunks/pivot-result-lifecycle-B38AZx4a.js";
|
|
2
2
|
import "../value-format-preferences/index.js";
|
|
3
|
-
import "../chunks/validators-
|
|
4
|
-
import "../chunks/analyze-result-contract-
|
|
5
|
-
import { a3 as t, a7 as f, a2 as g, a6 as o, ab as B, a4 as l, X as m, a5 as I, af as T, W as d, ah as C, A as E, ai as u, Z as F, d as p, aa as A, a9 as c, S as D, T as _, a as b, ao as R, g as N, an as S, al as h, am as y, a8 as G, Y as L, U as M, ac as U, ag as v, ae as V, V as z, ad as O, aj as x, ak as J } from "../chunks/index-
|
|
3
|
+
import "../chunks/validators-DhTaCK1O.js";
|
|
4
|
+
import "../chunks/analyze-result-contract-kaCNxjA7.js";
|
|
5
|
+
import { a3 as t, a7 as f, a2 as g, a6 as o, ab as B, a4 as l, X as m, a5 as I, af as T, W as d, ah as C, A as E, ai as u, Z as F, d as p, aa as A, a9 as c, S as D, T as _, a as b, ao as R, g as N, an as S, al as h, am as y, a8 as G, Y as L, U as M, ac as U, ag as v, ae as V, V as z, ad as O, aj as x, ak as J } from "../chunks/index-DO4BESNy.js";
|
|
6
6
|
export {
|
|
7
7
|
t as BRIEFING_ARTIFACT_FORMATS,
|
|
8
8
|
f as BRIEFING_CONTENT_LIMITS,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./validators-
|
|
2
|
-
const
|
|
3
|
-
function
|
|
1
|
+
import "./validators-DhTaCK1O.js";
|
|
2
|
+
const n = "SEMAPHOR_CALCULATED_FIELD", e = "calculated_fields";
|
|
3
|
+
function u(Y) {
|
|
4
4
|
return (Y == null ? void 0 : Y.sourceField) || (Y == null ? void 0 : Y.name) || "";
|
|
5
5
|
}
|
|
6
6
|
const r = [
|
|
@@ -38,39 +38,46 @@ const r = [
|
|
|
38
38
|
// Custom format
|
|
39
39
|
"custom"
|
|
40
40
|
];
|
|
41
|
-
function
|
|
41
|
+
function _(Y) {
|
|
42
42
|
return Y.role === "metric" && "expression" in Y && !!Y.expression;
|
|
43
43
|
}
|
|
44
44
|
function o(Y) {
|
|
45
45
|
return !!Y.expression;
|
|
46
46
|
}
|
|
47
|
-
function _(Y) {
|
|
48
|
-
return !!Y.expression;
|
|
49
|
-
}
|
|
50
47
|
function c(Y) {
|
|
51
|
-
|
|
52
|
-
const M = Y;
|
|
53
|
-
return !!(M != null && M.expression && ((s = (n = M.calculatedFormula) == null ? void 0 : n.inputFields) != null && s.length));
|
|
48
|
+
return !!Y.expression;
|
|
54
49
|
}
|
|
55
50
|
function L(Y) {
|
|
56
|
-
|
|
51
|
+
var M, a;
|
|
52
|
+
const t = Y;
|
|
53
|
+
return !!(t != null && t.expression && ((a = (M = t.calculatedFormula) == null ? void 0 : M.inputFields) != null && a.length));
|
|
54
|
+
}
|
|
55
|
+
function A(Y) {
|
|
56
|
+
return !!(Y && (Y.entityName === n || Y.entityId === n));
|
|
57
|
+
}
|
|
58
|
+
function i(Y) {
|
|
59
|
+
return Y ? [Y.entityName, Y.entityId, Y.qualifiedEntityName].some(
|
|
60
|
+
(t) => t === n || t === e
|
|
61
|
+
) : !1;
|
|
57
62
|
}
|
|
58
|
-
var
|
|
59
|
-
const
|
|
63
|
+
var s = /* @__PURE__ */ ((Y) => (Y.SUBTOTAL = "__SUBTOTAL__", Y.TOTAL = "__TOTAL__", Y.ALL = "__ALL__", Y))(s || {});
|
|
64
|
+
const l = {
|
|
60
65
|
database: null,
|
|
61
66
|
schema: null,
|
|
62
67
|
table: null
|
|
63
|
-
},
|
|
68
|
+
}, m = "__card_default__";
|
|
64
69
|
export {
|
|
65
|
-
|
|
70
|
+
m as C,
|
|
66
71
|
r as D,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
72
|
+
l as E,
|
|
73
|
+
e as L,
|
|
74
|
+
s as P,
|
|
75
|
+
n as a,
|
|
70
76
|
o as b,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
c,
|
|
78
|
+
A as d,
|
|
79
|
+
i as e,
|
|
80
|
+
u as g,
|
|
81
|
+
L as h,
|
|
82
|
+
_ as i
|
|
76
83
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require("./validators-DO-YuzgO.cjs");const t="SEMAPHOR_CALCULATED_FIELD",a="calculated_fields";function s(Y){return(Y==null?void 0:Y.sourceField)||(Y==null?void 0:Y.name)||""}const _=["MM-DD-YYYY","YYYY-MM-DD","MM/DD/YYYY","DD/MM/YYYY","MMMM DD, YYYY","MMM DD, YYYY","DD MMM YYYY","YYYY-MM-DD HH:mm","YYYY-MM-DD HH:mm:ss","YYYY-MM-DD HH:mm Z","YYYY-MM-DD HH:mm:ss Z","Week of MMM DD, YYYY","Week of MMMM DD, YYYY","YYYY-WW","MMM YYYY","MMMM YYYY","YYYY-MM","MM/YYYY","YYYY MMM","Q1 YYYY","YYYY Q1","1st Quarter YYYY","YYYY-Q1","Quarter 1, YYYY","YYYY","YY","custom"];function D(Y){return Y.role==="metric"&&"expression"in Y&&!!Y.expression}function r(Y){return!!Y.expression}function l(Y){return!!Y.expression}function c(Y){var n,M;const e=Y;return!!(e!=null&&e.expression&&((M=(n=e.calculatedFormula)==null?void 0:n.inputFields)!=null&&M.length))}function A(Y){return!!(Y&&(Y.entityName===t||Y.entityId===t))}function E(Y){return Y?[Y.entityName,Y.entityId,Y.qualifiedEntityName].some(e=>e===t||e===a):!1}var u=(Y=>(Y.SUBTOTAL="__SUBTOTAL__",Y.TOTAL="__TOTAL__",Y.ALL="__ALL__",Y))(u||{});const L={database:null,schema:null,table:null},i="__card_default__";exports.CALCULATED_FIELD_ENTITY_MARKER=t;exports.CONTROL_CARD_DEFAULT_VALUE=i;exports.DATE_FORMAT_VALUES=_;exports.EMPTY_SELECTION=L;exports.LEGACY_CALCULATED_FIELD_ENTITY_MARKER=a;exports.PivotMarkerEnum=u;exports.getFieldRuntimeColumnName=s;exports.hasCalculatedFieldMarker=A;exports.hasCalculatedFormulaInputs=c;exports.hasSyntheticCalculatedFieldOwner=E;exports.isCalculatedDimension=r;exports.isCalculatedField=l;exports.isCalculatedMetric=D;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),p=require("react"),s=require("./index-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),p=require("react"),s=require("./index-DZdmd5AL.cjs"),n=require("./switch-DykyqM66.cjs"),Ce=require("./layout-grid-xm8pqtx0.cjs"),K=require("./x-B6ghREd2.cjs"),V=require("./editor-action-buttons-BXJlZl7z.cjs"),we=require("./saved-temporal-bucket-format-Ca4hUfTo.cjs");require("./validators-DO-YuzgO.cjs");require("./analyze-result-contract-CMwVg9w2.cjs");require("../value-format-preferences/index.cjs");const Ue=require("./search-BqqhaMx9.cjs"),Oe=require("./mouse-pointer-2-DX4A_XZw.cjs"),Ne=require("./pivot-header-presentation-DyV0iOZ_.cjs");require("./appearance-runtime-provider-BgNYdUYH.cjs");require("./appearance-context-DhyjbQk1.cjs");require("./index-ByFbacH7.cjs");require("./temporal-bucket-authoring-C6sZAVqS.cjs");require("./color-CyB5o13F.cjs");require("react-dom");const X=require("./index-CQN-X1jN.cjs");/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r, Fragment as W } from "react/jsx-runtime";
|
|
2
2
|
import Wt, { useState as E, useEffect as Q, useMemo as ee, useContext as Ht, useRef as he, useCallback as K } from "react";
|
|
3
|
-
import { cm as et, aH as De, aI as ke, aK as Ae, bb as wt, bY as Gt, cn as Kt, co as qt, aZ as fe, ca as Nt, bl as Pe, s as Xt, o as Zt, cp as Qt, aP as tt, aS as rt, aT as at, aU as nt, aV as st, aW as ot, aX as it, aY as St, bk as lt, aG as O, cq as Yt, cr as Jt, cs as qe, cb as $e, cc as je, ct as Dt, cd as We, bW as G, b1 as er, bB as Me, cu as tr, bV as rr, aJ as ct, aL as dt, cv as ar, aF as nr, ba as sr, bw as kt, cw as or, bZ as ir, u as lr, aM as cr, b3 as dr, az as He, O as ue, aw as ut, as as At, at as ht, P as Et, ar as ur, ay as hr, ch as mr, cx as pr, bu as fr, au as gt, R as gr, T as br, cy as xr, cz as vr, cA as yr, cB as Cr, cC as wr, cD as Nr, cE as It, cF as Sr, b4 as Dr, cG as kr, ce as Ft, cH as Ar, cI as Er, cJ as Re, cK as Ir, cL as Fr, cM as Lr, an as Br, ap as Tr, a3 as Vr, a2 as Rr, a1 as Ur, a0 as Pr, Z as Mr, X as Or, cN as _r, cO as zr, cP as $r, cQ as jr, cR as Wr, al as Hr, cS as Gr, cT as Kr, a9 as qr, cU as Xr, cV as Zr, cW as Qr } from "./index-
|
|
4
|
-
import { B, O as Se, Z as Ye, L as te, M as Lt, d as Bt, c as q, K as Yr, D as ge, u as P, z as be, aw as Tt, av as Je, E as Vt, P as Oe, a as _e, b as ze, aH as Jr, aI as ea, S as Rt, aJ as ta, aK as ra, aL as aa, aM as na, aF as sa } from "./switch-
|
|
3
|
+
import { cm as et, aH as De, aI as ke, aK as Ae, bb as wt, bY as Gt, cn as Kt, co as qt, aZ as fe, ca as Nt, bl as Pe, s as Xt, o as Zt, cp as Qt, aP as tt, aS as rt, aT as at, aU as nt, aV as st, aW as ot, aX as it, aY as St, bk as lt, aG as O, cq as Yt, cr as Jt, cs as qe, cb as $e, cc as je, ct as Dt, cd as We, bW as G, b1 as er, bB as Me, cu as tr, bV as rr, aJ as ct, aL as dt, cv as ar, aF as nr, ba as sr, bw as kt, cw as or, bZ as ir, u as lr, aM as cr, b3 as dr, az as He, O as ue, aw as ut, as as At, at as ht, P as Et, ar as ur, ay as hr, ch as mr, cx as pr, bu as fr, au as gt, R as gr, T as br, cy as xr, cz as vr, cA as yr, cB as Cr, cC as wr, cD as Nr, cE as It, cF as Sr, b4 as Dr, cG as kr, ce as Ft, cH as Ar, cI as Er, cJ as Re, cK as Ir, cL as Fr, cM as Lr, an as Br, ap as Tr, a3 as Vr, a2 as Rr, a1 as Ur, a0 as Pr, Z as Mr, X as Or, cN as _r, cO as zr, cP as $r, cQ as jr, cR as Wr, al as Hr, cS as Gr, cT as Kr, a9 as qr, cU as Xr, cV as Zr, cW as Qr } from "./index-B6cfDHwn.js";
|
|
4
|
+
import { B, O as Se, Z as Ye, L as te, M as Lt, d as Bt, c as q, K as Yr, D as ge, u as P, z as be, aw as Tt, av as Je, E as Vt, P as Oe, a as _e, b as ze, aH as Jr, aI as ea, S as Rt, aJ as ta, aK as ra, aL as aa, aM as na, aF as sa } from "./switch-8PklEEN1.js";
|
|
5
5
|
import { L as mt } from "./layout-grid-CiubineE.js";
|
|
6
6
|
import { c as Ee, X as Ge, C as Ut } from "./x-CXDkqdur.js";
|
|
7
|
-
import { u as pt, V as oa, E as Xe, a as Ze, b as ia, c as la, L as ca, d as da, e as Pt, C as Mt, F as ua, f as ha } from "./editor-action-buttons-
|
|
8
|
-
import { v as bt } from "./saved-temporal-bucket-format-
|
|
9
|
-
import "./validators-
|
|
10
|
-
import "./analyze-result-contract-
|
|
7
|
+
import { u as pt, V as oa, E as Xe, a as Ze, b as ia, c as la, L as ca, d as da, e as Pt, C as Mt, F as ua, f as ha } from "./editor-action-buttons-C2msc_en.js";
|
|
8
|
+
import { v as bt } from "./saved-temporal-bucket-format-hylaofsQ.js";
|
|
9
|
+
import "./validators-DhTaCK1O.js";
|
|
10
|
+
import "./analyze-result-contract-kaCNxjA7.js";
|
|
11
11
|
import "../value-format-preferences/index.js";
|
|
12
12
|
import { S as ma } from "./search-BHsQIWBV.js";
|
|
13
13
|
import { M as pa } from "./mouse-pointer-2-BZvGk45-.js";
|
|
14
|
-
import { u as xt } from "./pivot-header-presentation-
|
|
14
|
+
import { u as xt } from "./pivot-header-presentation-OpY8xzdT.js";
|
|
15
15
|
import "./appearance-runtime-provider-CjmE4gBY.js";
|
|
16
16
|
import "./appearance-context-DVXt8qjW.js";
|
|
17
17
|
import "./index-DSKR3nKn.js";
|
|
18
|
-
import "./temporal-bucket-authoring-
|
|
18
|
+
import "./temporal-bucket-authoring-DjPFtRSF.js";
|
|
19
19
|
import "./color-CJvdlFM_.js";
|
|
20
20
|
import "react-dom";
|
|
21
|
-
import { g as se, d as fa, a as ga } from "./index-
|
|
21
|
+
import { g as se, d as fa, a as ga } from "./index-DO4BESNy.js";
|
|
22
22
|
/**
|
|
23
23
|
* @license lucide-react v0.453.0 - ISC
|
|
24
24
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("./switch-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("./switch-DykyqM66.cjs"),s=require("./index-DZdmd5AL.cjs"),U=require("./x-B6ghREd2.cjs");require("./saved-temporal-bucket-format-Ca4hUfTo.cjs");require("./validators-DO-YuzgO.cjs");require("./analyze-result-contract-CMwVg9w2.cjs");require("../value-format-preferences/index.cjs");const y=require("react");require("./appearance-context-DhyjbQk1.cjs");require("./index-ByFbacH7.cjs");require("./temporal-bucket-authoring-C6sZAVqS.cjs");require("./color-CyB5o13F.cjs");const cs=require("react-dom");require("./index-CQN-X1jN.cjs");require("./appearance-runtime-provider-BgNYdUYH.cjs");const $=require("./dashboard-briefing-launcher-Bo4GmnB7.cjs"),wt=require("./search-BqqhaMx9.cjs"),St=require("./format-types-PSZZ7hG8.cjs"),us=require("./report-preferences-dialog-B89ypIJ-.cjs"),ms=require("./use-debounced-dirty-check-XHSwAefL.cjs"),qe=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.cjs"),xt=require("./save-3dYRmehL.cjs"),hs=require("./palette-BN-jYtaK.cjs"),ps=require("./braces-v55uLCAK.cjs");function fs(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const M=fs(y);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as T } from "react/jsx-runtime";
|
|
2
|
-
import { u as S, B as R, ax as mt, z as sr, O as na, Z as sa, c as be, ay as oa, az as ia, aA as ot, aB as xe, aC as pt, aD as or, L as Be, aE as ir, aF as da, D as $t, Q as Gt, V as Bt, W as zt, Y as Ht, X as la, i as ca, aG as ua } from "./switch-
|
|
3
|
-
import { bx as ma, by as pa, az as q, aH as dr, bz as ha, aZ as K, aI as lr, aJ as fa, aK as it, aL as dt, aF as ga, bA as ge, bB as Ge, bC as ba, bD as jt, bE as cr, bF as ur, bG as xa, bH as ht, bI as va, bJ as ya, bK as wa, bL as Na, bM as Sa, bN as Da, b8 as ve, bO as ye, aG as C, bP as Ca, bQ as mr, bl as ft, bR as ka, bS as Ea, bT as pr, bU as La, bV as hr, bW as V, bX as Ia, ap as Ma, bY as Aa, bZ as Pa, b_ as Oa, b$ as _a, n as Ra, u as Fe, t as Ua, o as rt, c0 as Va, c1 as Ta, c2 as Fa, c3 as $a, N as Ga, c4 as Ba, c5 as za, I as qt, c6 as Ha, c7 as ja, c8 as qa, c9 as Ka, ca as Wa, cb as Kt, cc as Wt, cd as Qt, ce as Qa, cf as Ja, cg as Ya, ch as Xa, b1 as Jt, ci as Za, cj as en, ck as tn, s as rn, cl as an, aP as nn, aS as sn, aT as on, aU as dn, aV as ln, aW as cn, aX as un, aY as Yt, g as lt } from "./index-
|
|
2
|
+
import { u as S, B as R, ax as mt, z as sr, O as na, Z as sa, c as be, ay as oa, az as ia, aA as ot, aB as xe, aC as pt, aD as or, L as Be, aE as ir, aF as da, D as $t, Q as Gt, V as Bt, W as zt, Y as Ht, X as la, i as ca, aG as ua } from "./switch-8PklEEN1.js";
|
|
3
|
+
import { bx as ma, by as pa, az as q, aH as dr, bz as ha, aZ as K, aI as lr, aJ as fa, aK as it, aL as dt, aF as ga, bA as ge, bB as Ge, bC as ba, bD as jt, bE as cr, bF as ur, bG as xa, bH as ht, bI as va, bJ as ya, bK as wa, bL as Na, bM as Sa, bN as Da, b8 as ve, bO as ye, aG as C, bP as Ca, bQ as mr, bl as ft, bR as ka, bS as Ea, bT as pr, bU as La, bV as hr, bW as V, bX as Ia, ap as Ma, bY as Aa, bZ as Pa, b_ as Oa, b$ as _a, n as Ra, u as Fe, t as Ua, o as rt, c0 as Va, c1 as Ta, c2 as Fa, c3 as $a, N as Ga, c4 as Ba, c5 as za, I as qt, c6 as Ha, c7 as ja, c8 as qa, c9 as Ka, ca as Wa, cb as Kt, cc as Wt, cd as Qt, ce as Qa, cf as Ja, cg as Ya, ch as Xa, b1 as Jt, ci as Za, cj as en, ck as tn, s as rn, cl as an, aP as nn, aS as sn, aT as on, aU as dn, aV as ln, aW as cn, aX as un, aY as Yt, g as lt } from "./index-B6cfDHwn.js";
|
|
4
4
|
import { c as ee, X as fr, C as mn } from "./x-CXDkqdur.js";
|
|
5
|
-
import "./saved-temporal-bucket-format-
|
|
6
|
-
import "./validators-
|
|
7
|
-
import "./analyze-result-contract-
|
|
5
|
+
import "./saved-temporal-bucket-format-hylaofsQ.js";
|
|
6
|
+
import "./validators-DhTaCK1O.js";
|
|
7
|
+
import "./analyze-result-contract-kaCNxjA7.js";
|
|
8
8
|
import "../value-format-preferences/index.js";
|
|
9
9
|
import * as I from "react";
|
|
10
10
|
import gr, { useState as N, useMemo as Z, useEffect as ze, useRef as Xt, useLayoutEffect as pn, useCallback as hn } from "react";
|
|
11
11
|
import "./appearance-context-DVXt8qjW.js";
|
|
12
12
|
import "./index-DSKR3nKn.js";
|
|
13
|
-
import "./temporal-bucket-authoring-
|
|
13
|
+
import "./temporal-bucket-authoring-DjPFtRSF.js";
|
|
14
14
|
import "./color-CJvdlFM_.js";
|
|
15
15
|
import { createPortal as fn } from "react-dom";
|
|
16
|
-
import "./index-
|
|
16
|
+
import "./index-DO4BESNy.js";
|
|
17
17
|
import "./appearance-runtime-provider-CjmE4gBY.js";
|
|
18
|
-
import { c as gn, u as bn, A as xn, a as vn, f as yn, V as wn, N as Nn, g as Sn, U as Dn } from "./dashboard-briefing-launcher-
|
|
18
|
+
import { c as gn, u as bn, A as xn, a as vn, f as yn, V as wn, N as Nn, g as Sn, U as Dn } from "./dashboard-briefing-launcher-DjBmkS6v.js";
|
|
19
19
|
import { S as Cn, C as kn } from "./search-BHsQIWBV.js";
|
|
20
20
|
import { d as br } from "./format-types-CFHQoIuk.js";
|
|
21
|
-
import { R as En } from "./report-preferences-dialog-
|
|
21
|
+
import { R as En } from "./report-preferences-dialog-Dvy818KV.js";
|
|
22
22
|
import { u as Ln } from "./use-debounced-dirty-check-BwAbnX_5.js";
|
|
23
23
|
import { s as at } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
|
|
24
24
|
import { S as Zt } from "./save-DgMfP0j8.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var O = Object.defineProperty;
|
|
2
2
|
var M = (e, n, i) => n in e ? O(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
|
-
var
|
|
4
|
-
import { ah as h, aj as S,
|
|
5
|
-
import "./analyze-result-contract-
|
|
3
|
+
var C = (e, n, i) => M(e, typeof n != "symbol" ? n + "" : n, i);
|
|
4
|
+
import { ah as h, aj as S, h as N, ag as q, B as I, E as D } from "./validators-DhTaCK1O.js";
|
|
5
|
+
import "./analyze-result-contract-kaCNxjA7.js";
|
|
6
6
|
import "../value-format-preferences/index.js";
|
|
7
7
|
function p(e) {
|
|
8
8
|
return !!e && typeof e == "object" && !Array.isArray(e);
|
|
@@ -229,7 +229,7 @@ function $e(e) {
|
|
|
229
229
|
class X extends Error {
|
|
230
230
|
constructor(i) {
|
|
231
231
|
super(i.map((d) => d.message).join(" "));
|
|
232
|
-
|
|
232
|
+
C(this, "issues");
|
|
233
233
|
this.name = "DashboardFilterMappingContractError", this.issues = i;
|
|
234
234
|
}
|
|
235
235
|
}
|
|
@@ -557,12 +557,12 @@ function oe({
|
|
|
557
557
|
});
|
|
558
558
|
return;
|
|
559
559
|
}
|
|
560
|
-
const
|
|
561
|
-
if (
|
|
560
|
+
const w = a.get(b.id);
|
|
561
|
+
if (w) {
|
|
562
562
|
t.push({
|
|
563
563
|
code: "duplicate_filter_reference",
|
|
564
564
|
path: `${u}.filterReference.filterId`,
|
|
565
|
-
message: `${u}.filterReference duplicates dashboard filter '${b.id}' already owned by Dashboard Input '${
|
|
565
|
+
message: `${u}.filterReference duplicates dashboard filter '${b.id}' already owned by Dashboard Input '${w}'.`,
|
|
566
566
|
inputId: l.id
|
|
567
567
|
});
|
|
568
568
|
return;
|
package/dist/chunks/{dashboard-input-contract-Px64VWBL.js → dashboard-input-contract-Ciboc347.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as _ } from "./validators-DhTaCK1O.js";
|
|
2
2
|
function C(e, n) {
|
|
3
3
|
const t = e.split(".").map((r) => r.trim()), i = n.split(".").map((r) => r.trim());
|
|
4
4
|
if (t.length === 0 || i.length === 0 || t.some((r) => !r) || i.some((r) => !r))
|
|
@@ -96,7 +96,7 @@ function S(e, n) {
|
|
|
96
96
|
source: { kind: "physical", connectionId: o, tableName: m }
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function E(e, n) {
|
|
100
100
|
const t = u(e.fieldMeta) ? e.fieldMeta : void 0, i = typeof (t == null ? void 0 : t.qualifiedFieldName) == "string" ? t.qualifiedFieldName.trim() : "", s = h(
|
|
101
101
|
t == null ? void 0 : t.qualifiedFieldName
|
|
102
102
|
), o = typeof e.column == "string" ? e.column.trim() : "", a = h(o), r = typeof e.qualifiedTableName == "string" ? e.qualifiedTableName.trim() : "", c = v(
|
|
@@ -117,7 +117,7 @@ function A(e, n) {
|
|
|
117
117
|
const g = a || s || m;
|
|
118
118
|
return g ? { status: "resolved", qualifiedFieldName: g } : { status: "unresolved", reason: "incomplete_field_identity" };
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function A(e) {
|
|
121
121
|
if (!u(e))
|
|
122
122
|
return { status: "ineligible", reason: "invalid_input" };
|
|
123
123
|
if (e.kind === "global-date")
|
|
@@ -134,7 +134,7 @@ function E(e) {
|
|
|
134
134
|
return { status: "ineligible", reason: "custom_filter" };
|
|
135
135
|
if (e.targetColumns !== void 0 && (!Array.isArray(e.targetColumns) || e.targetColumns.length > 0))
|
|
136
136
|
return { status: "ineligible", reason: "multi_target_filter" };
|
|
137
|
-
const s = T(e), o =
|
|
137
|
+
const s = T(e), o = E(e, s === void 0);
|
|
138
138
|
if (o.status === "unresolved")
|
|
139
139
|
return { status: "ineligible", reason: o.reason };
|
|
140
140
|
const a = s || S(e, o.qualifiedFieldName);
|
|
@@ -148,7 +148,7 @@ function E(e) {
|
|
|
148
148
|
function B(e) {
|
|
149
149
|
if (!u(e) || e.kind !== "filter" || !u(e.filter))
|
|
150
150
|
return { status: "ineligible", reason: "invalid_input" };
|
|
151
|
-
const n =
|
|
151
|
+
const n = A(
|
|
152
152
|
e.filter
|
|
153
153
|
);
|
|
154
154
|
return n.status === "ineligible" ? n : n.kind === "field_date" && u(e.compatibility) && e.compatibility.source === "cardInlineFilter" ? { status: "ineligible", reason: "card_inline_filter" } : n;
|
|
@@ -178,6 +178,6 @@ export {
|
|
|
178
178
|
j as g,
|
|
179
179
|
k as i,
|
|
180
180
|
N as q,
|
|
181
|
-
|
|
181
|
+
A as r,
|
|
182
182
|
F as s
|
|
183
183
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as p, useState as u, useRef as f, useEffect as b } from "react";
|
|
3
3
|
import { X as S } from "./x-CXDkqdur.js";
|
|
4
|
-
import { u as a, c as N, B as D, C as J } from "./switch-
|
|
5
|
-
import "./saved-temporal-bucket-format-
|
|
6
|
-
import "./validators-
|
|
7
|
-
import "./analyze-result-contract-
|
|
4
|
+
import { u as a, c as N, B as D, C as J } from "./switch-8PklEEN1.js";
|
|
5
|
+
import "./saved-temporal-bucket-format-hylaofsQ.js";
|
|
6
|
+
import "./validators-DhTaCK1O.js";
|
|
7
|
+
import "./analyze-result-contract-kaCNxjA7.js";
|
|
8
8
|
import "../value-format-preferences/index.js";
|
|
9
|
-
import "./index-
|
|
9
|
+
import "./index-B6cfDHwn.js";
|
|
10
10
|
import "./appearance-runtime-provider-CjmE4gBY.js";
|
|
11
11
|
import "./appearance-context-DVXt8qjW.js";
|
|
12
12
|
import "./index-DSKR3nKn.js";
|
|
13
|
-
import "./temporal-bucket-authoring-
|
|
13
|
+
import "./temporal-bucket-authoring-DjPFtRSF.js";
|
|
14
14
|
import "./color-CJvdlFM_.js";
|
|
15
15
|
import "react-dom";
|
|
16
|
-
import "./index-
|
|
16
|
+
import "./index-DO4BESNy.js";
|
|
17
17
|
function q() {
|
|
18
18
|
const r = a((o) => o.dashboard), c = a((o) => o.actions.setDashboard), h = a(
|
|
19
19
|
(o) => o.showDashboardJSON
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),o=require("react"),b=require("./x-B6ghREd2.cjs"),r=require("./switch-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),o=require("react"),b=require("./x-B6ghREd2.cjs"),r=require("./switch-DykyqM66.cjs");require("./saved-temporal-bucket-format-Ca4hUfTo.cjs");require("./validators-DO-YuzgO.cjs");require("./analyze-result-contract-CMwVg9w2.cjs");require("../value-format-preferences/index.cjs");require("./index-DZdmd5AL.cjs");require("./appearance-runtime-provider-BgNYdUYH.cjs");require("./appearance-context-DhyjbQk1.cjs");require("./index-ByFbacH7.cjs");require("./temporal-bucket-authoring-C6sZAVqS.cjs");require("./color-CyB5o13F.cjs");require("react-dom");require("./index-CQN-X1jN.cjs");function S(){const t=r.useDashboardStore(e=>e.dashboard),d=r.useDashboardStore(e=>e.actions.setDashboard),c=r.useDashboardStore(e=>e.showDashboardJSON),h=r.useDashboardStore(e=>e.actions.setShowDashboardJSON),s=o.useMemo(()=>t?JSON.stringify(t,null,2):"",[t]),[l,n]=o.useState(s),i=o.useRef(s);return o.useEffect(()=>{s!==i.current&&(n(s),i.current=s)},[s]),a.jsxs("div",{className:r.cn("relative p-2",{hidden:!c}),children:[a.jsxs(r.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(r.CodeEditor,{value:l,onValueChange:e=>{n(e);try{const u=JSON.parse(e);i.current=JSON.stringify(u,null,2),d(u)}catch{}},language:"json"})})]})}exports.default=S;
|