react-semaphor 0.1.583 → 0.1.585
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 +470 -428
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +7 -7
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/aggregate-measure-field-DsFXETpI.js +22 -0
- package/dist/chunks/{assistant-chat-D3fm5qod.js → assistant-chat-BdbLmAnK.js} +12 -12
- package/dist/chunks/{bookmark-impact-Dpxl46Wd.js → bookmark-impact-BhT3k379.js} +2 -2
- package/dist/chunks/{bookmark-state-BEl_G9vr.js → bookmark-state-CL4WEpgB.js} +22 -22
- package/dist/chunks/{card-filter-builder-IxkFVxy2.js → card-filter-builder-CEcKF6Fw.js} +124 -124
- package/dist/chunks/comparison-window-caption-CoART8BC.js +1254 -0
- package/dist/chunks/{dashboard-BMqG98fc.js → dashboard-MPku_x1M.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-D45YfCkm.js → dashboard-briefing-launcher-CkFNlkr1.js} +13 -13
- package/dist/chunks/{dashboard-controls-DOvZRfof.js → dashboard-controls-Clt4ovXS.js} +84 -84
- package/dist/chunks/{dashboard-json-B_4TqF_o.js → dashboard-json-DSmXazIg.js} +4 -4
- package/dist/chunks/{dates-44_rcNj2.js → dates-CYZW9owO.js} +8 -8
- package/dist/chunks/{edit-dashboard-visual-BBPKJWSe.js → edit-dashboard-visual-Dn2ECRbX.js} +2752 -2687
- package/dist/chunks/filter-line-Cu2u1K36.js +131 -0
- package/dist/chunks/{filter-reach-copy-DWPq4Swi.js → filter-reach-copy-CmJpPa4G.js} +1745 -1326
- package/dist/chunks/{filter-value-text-DXGYypEd.js → filter-value-text-xefXzZlf.js} +6 -6
- package/dist/chunks/{index-DPRzcFp0.js → index-0WYn6RMz.js} +37 -37
- package/dist/chunks/{layout-grid-8rR-LPTk.js → layout-grid-9nSS2SL-.js} +1 -1
- package/dist/chunks/{list-filter-C1-uTgjR.js → list-filter-CfMPI6v4.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-D_HgptqZ.js → matrix-analytical-definition-QjBgUYhP.js} +382 -544
- package/dist/chunks/{matrix-member-presentation-DRa-9e6Q.js → matrix-member-presentation-BKDyxJho.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-DCVinw1o.js → matrix-operation-contract-BM5TveR3.js} +153 -147
- package/dist/chunks/{metric-comparison-n9NsIa-2.js → metric-comparison-ZmurmEIs.js} +3 -3
- package/dist/chunks/{paintbrush-aR17Z3C9.js → paintbrush-LzAje2ff.js} +1 -1
- package/dist/chunks/{palette-a5FCZKFI.js → palette-DicJG0TC.js} +1 -1
- package/dist/chunks/{pivot-header-presentation-MvvlxtIB.js → pivot-header-presentation-CdeTU96P.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-8tuNjRvG.js → pivot-result-contract-expectations-Bx_BCu-7.js} +1029 -1010
- package/dist/chunks/{pivot-result-identity-B89X5xjb.js → pivot-result-identity-Bvs6Uq3v.js} +1 -1
- package/dist/chunks/raw-temporal-value-DH-feMc2.js +322 -0
- package/dist/chunks/{report-preferences-dialog-B8PhISua.js → report-preferences-dialog-BRaeufEi.js} +63 -62
- package/dist/chunks/{report-runtime-context-BhPzLTbS.js → report-runtime-context-NlOXwyRB.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-BfT8y5xL.js → resolve-dashboard-input-context-Cn9jumxl.js} +4924 -4823
- package/dist/chunks/{save-D985VvYp.js → save-0wu1Z1U7.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-DH91-2B9.js → saved-dashboard-context-CfqkUMzR.js} +6 -6
- package/dist/chunks/selection-filter-compiler-BReJy-uv.js +92 -0
- package/dist/chunks/{semaphor-ready-indicator-Cg_Z2IDc.js → semaphor-ready-indicator-D6WjdTGl.js} +48377 -47074
- package/dist/chunks/{shelf-drop-preview-context-C7-BgcP4.js → shelf-drop-preview-context-Bbbrr9u4.js} +5 -5
- package/dist/chunks/{stored-dashboard-BpyCiE49.js → stored-dashboard-sPkTjxYf.js} +210 -221
- package/dist/chunks/{style-sheet-parts-C7qGZuH1.js → style-sheet-parts-_dGSFzDi.js} +2 -2
- package/dist/chunks/{table-export-sheet-wBkk17aa.js → table-export-sheet-Dmtqi5NV.js} +1 -1
- package/dist/chunks/{token-types-iKMplaBL.js → token-types-DEe_FP4l.js} +1 -1
- package/dist/chunks/{upload-CiGNKJ_0.js → upload-CtyOkU_B.js} +1 -1
- package/dist/chunks/{validators-B8fpdinG.js → validators-CJ8Jh0E8.js} +2 -2
- package/dist/chunks/{variable-draft-D8GFhAkm.js → variable-draft-D1RotIEG.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +670 -647
- package/dist/format-utils/index.js +218 -215
- package/dist/index.js +234 -231
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/visual/data-table/types/data-table.d.ts +3 -0
- package/dist/types/components/visual/matrix-table/matrix-interaction-actions.d.ts +24 -3
- package/dist/types/index.js +5 -5
- package/dist/types/lib/hooks/interactions/use-drill-actions.d.ts +1 -1
- package/dist/types/lib/interactions/get-click-context-from-chartjs.d.ts +9 -0
- package/dist/types/lib/matrix-table/matrix-runtime.d.ts +8 -3
- package/dist/types/lib/query-context/compile-selection-filters.d.ts +1 -5
- package/dist/types/lib/see-records/click.d.ts +79 -0
- package/dist/types/lib/see-records/see-records-offer.d.ts +25 -0
- package/dist/types/lib/see-records/use-see-records-offer.d.ts +16 -0
- package/dist/types/lib/types/common-types.d.ts +6 -0
- package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +7 -0
- package/dist/types/shared/analytics-protocol/aggregate-measure-field.d.ts +13 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/selection-filter-compiler.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/index.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +191 -0
- package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/see-records/availability.d.ts +30 -0
- package/dist/types/shared/dashboard-authoring/see-records/click.d.ts +37 -0
- package/dist/types/shared/dashboard-authoring/see-records/index.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/see-records/limits.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/see-records/measure-kind.d.ts +49 -0
- package/dist/types/shared/dashboard-authoring/see-records/request.d.ts +28 -0
- package/dist/types/shared/dashboard-authoring/see-records/result.d.ts +94 -0
- package/dist/types/shared/format-utils/semantic-format.d.ts +0 -1
- package/dist/types/shared/format-utils/temporal-bucket.d.ts +20 -0
- package/dist/types/shared/temporal/calendar-periods.d.ts +15 -0
- package/dist/types/shared/temporal/raw-temporal-equality.d.ts +14 -0
- package/dist/types/shared/usage-events/envelope.d.ts +4 -4
- package/package.json +1 -1
- package/dist/chunks/comparison-window-caption-sRFtnX1q.js +0 -1371
- package/dist/chunks/raw-temporal-value-DdT0s47W.js +0 -159
- package/dist/chunks/selection-filter-compiler-CUDRnUxc.js +0 -80
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as t, b as r, c as d, d as o, p as i, e as n, f as p } from "../chunks/saved-dashboard-context-
|
|
1
|
+
import { A as e, a as t, b as r, c as d, d as o, p as i, e as n, f as p } from "../chunks/saved-dashboard-context-CfqkUMzR.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AssistantContextSourceError,
|
|
4
4
|
t as assistantCardReplayFields,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsxs as d, jsx as r, Fragment as ue } from "react/jsx-runtime";
|
|
2
2
|
import g, { useState as pe } from "react";
|
|
3
|
-
import { c as de, P as be, N as B, S as M, a as Ye, b as We, d as Ce, e as ye, f as Ne, B as S, g as qe, h as Se, C as Ke, R as we, L as fe, X as Xe, i as me, j as Ze, T as Qe, k as er, l as V, m as rr, n as G, o as or, p as ar, q as nr, r as tr, s as E, t as Q, u as ee, v as re, I as Fe, w as oe, x as ae, y as Pe, z as Oe, A as Te, D as Be, E as Re } from "../chunks/style-sheet-parts-
|
|
3
|
+
import { c as de, P as be, N as B, S as M, a as Ye, b as We, d as Ce, e as ye, f as Ne, B as S, g as qe, h as Se, C as Ke, R as we, L as fe, X as Xe, i as me, j as Ze, T as Qe, k as er, l as V, m as rr, n as G, o as or, p as ar, q as nr, r as tr, s as E, t as Q, u as ee, v as re, I as Fe, w as oe, x as ae, y as Pe, z as Oe, A as Te, D as Be, E as Re } from "../chunks/style-sheet-parts-_dGSFzDi.js";
|
|
4
4
|
import { v as dr, A as ne, d as cr, p as sr } from "../chunks/schema-C9NPiIru.js";
|
|
5
5
|
import { S as j, C as lr, a as ge, c as te } from "../chunks/pickers-DkqmtnTL.js";
|
|
6
|
-
import "../chunks/validators-
|
|
7
|
-
import "../chunks/matrix-operation-contract-
|
|
6
|
+
import "../chunks/validators-CJ8Jh0E8.js";
|
|
7
|
+
import "../chunks/matrix-operation-contract-BM5TveR3.js";
|
|
8
8
|
import "../chunks/analytics-base-schemas-BaIQrEzX.js";
|
|
9
9
|
import "../value-format-preferences/index.js";
|
|
10
10
|
import { e as ir } from "../chunks/brand-BoUV0iHF.js";
|
|
11
11
|
import { b as ur, D as pr } from "../chunks/edit-9df1zOWe.js";
|
|
12
12
|
import { n as Ee } from "../chunks/index-BVKzKl5d.js";
|
|
13
13
|
import { b as br } from "../chunks/resolver-DG_tfEpt.js";
|
|
14
|
-
import { P as H } from "../chunks/palette-
|
|
15
|
-
import { U as fr } from "../chunks/upload-
|
|
16
|
-
import { S as mr } from "../chunks/save-
|
|
17
|
-
import { L as gr } from "../chunks/layout-grid-
|
|
14
|
+
import { P as H } from "../chunks/palette-DicJG0TC.js";
|
|
15
|
+
import { U as fr } from "../chunks/upload-CtyOkU_B.js";
|
|
16
|
+
import { S as mr } from "../chunks/save-0wu1Z1U7.js";
|
|
17
|
+
import { L as gr } from "../chunks/layout-grid-9nSS2SL-.js";
|
|
18
18
|
/**
|
|
19
19
|
* @license lucide-react v0.453.0 - ISC
|
|
20
20
|
*
|
package/dist/briefings/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../chunks/pivot-result-contract-expectations-
|
|
2
|
-
import "../chunks/validators-
|
|
1
|
+
import "../chunks/pivot-result-contract-expectations-Bx_BCu-7.js";
|
|
2
|
+
import "../chunks/validators-CJ8Jh0E8.js";
|
|
3
3
|
import "../chunks/export-file-format-C-tJsxsf.js";
|
|
4
4
|
import "zod";
|
|
5
|
-
import "../chunks/matrix-operation-contract-
|
|
5
|
+
import "../chunks/matrix-operation-contract-BM5TveR3.js";
|
|
6
6
|
import "../chunks/analytics-base-schemas-BaIQrEzX.js";
|
|
7
7
|
import "../value-format-preferences/index.js";
|
|
8
|
-
import { A as g, J as l, a2 as B, F as m, a4 as E, z as c, B as I, E as T, K as d, C, D as u, M as A, Z as h, i as p, _ as D, $ as _, a5 as b, n as F, l as S, m as R, P as N, k as y, R as M, f as O, e as G, S as v, u as x, q as L, c as U, d as V, I as z, H, h as J, b as P, a as q, a6 as X, g as K, a0 as Q, V as Y, a3 as j, W as k, G as W, a1 as Z, r as $, j as w, X as ee, Y as ie, o as ae, L as re, Q as te, O as se, p as ne, s as oe, t as fe, N as ge, T as le, U as Be } from "../chunks/index-
|
|
8
|
+
import { A as g, J as l, a2 as B, F as m, a4 as E, z as c, B as I, E as T, K as d, C, D as u, M as A, Z as h, i as p, _ as D, $ as _, a5 as b, n as F, l as S, m as R, P as N, k as y, R as M, f as O, e as G, S as v, u as x, q as L, c as U, d as V, I as z, H, h as J, b as P, a as q, a6 as X, g as K, a0 as Q, V as Y, a3 as j, W as k, G as W, a1 as Z, r as $, j as w, X as ee, Y as ie, o as ae, L as re, Q as te, O as se, p as ne, s as oe, t as fe, N as ge, T as le, U as Be } from "../chunks/index-0WYn6RMz.js";
|
|
9
9
|
export {
|
|
10
10
|
g as BRIEFING_ARTIFACT_FORMATS,
|
|
11
11
|
l as BRIEFING_ATTACHMENT_FORMATS,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { h as n } from "./validators-CJ8Jh0E8.js";
|
|
2
|
+
import { s as c } from "./matrix-operation-contract-BM5TveR3.js";
|
|
3
|
+
function i(r) {
|
|
4
|
+
var a;
|
|
5
|
+
if (!r) return !1;
|
|
6
|
+
if (typeof r.aggregate == "string" || r.isPreAggregated) return !0;
|
|
7
|
+
const s = typeof r.expression == "string" ? r.expression : "";
|
|
8
|
+
if (!s) return !1;
|
|
9
|
+
if (c(s).calls.length > 0) return !0;
|
|
10
|
+
const t = (a = r.calculatedFormula) == null ? void 0 : a.inputFields;
|
|
11
|
+
return Array.isArray(t) && t.some((e) => {
|
|
12
|
+
const g = String((e == null ? void 0 : e.role) || "").toLowerCase(), o = String((e == null ? void 0 : e.aggregate) || "").trim();
|
|
13
|
+
return g === "metric" && o.length > 0;
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function u(r) {
|
|
17
|
+
return !!((r == null ? void 0 : r.role) === "metric" && (n(r) || i(r)));
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
i as h,
|
|
21
|
+
u as i
|
|
22
|
+
};
|
|
@@ -5,26 +5,26 @@ var Qt = (e, t, a) => t.has(e) || Yt("Cannot " + a);
|
|
|
5
5
|
var B = (e, t, a) => (Qt(e, t, "read from private field"), a ? a.call(e) : t.get(e)), oe = (e, t, a) => t.has(e) ? Yt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, a), W = (e, t, a, s) => (Qt(e, t, "write to private field"), s ? s.call(e, a) : t.set(e, a), a);
|
|
6
6
|
import { jsx as d, jsxs as b, Fragment as xe } from "react/jsx-runtime";
|
|
7
7
|
import { useCallback as G, useRef as te, useMemo as We, useEffect as ve, useState as $, useLayoutEffect as _e, useId as Xs } from "react";
|
|
8
|
-
import { u as H,
|
|
9
|
-
import { c as Re, B as q, X as He, p as Ua, q as Dr, j as Pe, L as we, I as $t, R as $r, e as za, f as qa, h as Va } from "./style-sheet-parts-
|
|
8
|
+
import { u as H, dk as er, b4 as tr, bo as ar, a6 as sr, dl as rr, dm as nr, a7 as Xt, b1 as or, dn as ir, c1 as lr, dp as dr, dq as Rt, dr as cr, ds as ur, dt, du as _a, dv as pr, bX as qe, cj as ea, dw as Oa, a9 as mr, cd as Ra, br as fr, c6 as Pt, bW as Pa, dx as Da, dy as Dt, cE as hr, dz as $a, dA as gr, cG as yr, bx as br, dB as vr, dC as xr, cg as wr, ch as Nr, dD as Ir, ci as Sr, co as Ar, dE as Cr, c3 as pt, cn as Er, cs as Tr, c5 as ja, a$ as Fa, b2 as kr, bi as tt, aZ as La, dF as Mr, dG as _r, dH as Or, dI as Rr, ag as Ba, dJ as Pr } from "./semaphor-ready-indicator-D6WjdTGl.js";
|
|
9
|
+
import { c as Re, B as q, X as He, p as Ua, q as Dr, j as Pe, L as we, I as $t, R as $r, e as za, f as qa, h as Va } from "./style-sheet-parts-_dGSFzDi.js";
|
|
10
10
|
import { g as jr, c as F } from "./pickers-DkqmtnTL.js";
|
|
11
|
-
import "./validators-
|
|
12
|
-
import "./matrix-operation-contract-
|
|
11
|
+
import "./validators-CJ8Jh0E8.js";
|
|
12
|
+
import "./matrix-operation-contract-BM5TveR3.js";
|
|
13
13
|
import "./analytics-base-schemas-BaIQrEzX.js";
|
|
14
14
|
import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as Fr } from "../value-format-preferences/index.js";
|
|
15
|
-
import { J as Lr } from "./bookmark-state-
|
|
15
|
+
import { J as Lr } from "./bookmark-state-CL4WEpgB.js";
|
|
16
16
|
import { n as Br, o as Ge, c as It, A as ze, d as Za } from "./context-BTLBjQNh.js";
|
|
17
|
-
import { p as ta, a as Ur, A as Ja } from "./saved-dashboard-context-
|
|
18
|
-
import {
|
|
19
|
-
import { u as Ka, i as Vr } from "./report-preferences-dialog-
|
|
20
|
-
import { m as Zr } from "./stored-dashboard-
|
|
17
|
+
import { p as ta, a as Ur, A as Ja } from "./saved-dashboard-context-CfqkUMzR.js";
|
|
18
|
+
import { g2 as zr, o as qr, g3 as aa } from "./resolve-dashboard-input-context-Cn9jumxl.js";
|
|
19
|
+
import { u as Ka, i as Vr } from "./report-preferences-dialog-BRaeufEi.js";
|
|
20
|
+
import { m as Zr } from "./stored-dashboard-sPkTjxYf.js";
|
|
21
21
|
import { w as Jr, c as Wa } from "./visual-choice-JiJ-_3bi.js";
|
|
22
22
|
import { n as Kr, v as Ha, o as Wr, t as Hr, x as jt, l as ce, d as Gr, b as Yr, m as Ft, M as mt, r as Qr, w as Xr, h as en, j as tn, s as St, f as an, a as sn } from "./add-to-dashboard-DhP8wVtM.js";
|
|
23
23
|
import { safeParseAsync as rn, lazy as nn, unknown as on, union as ln, string as dn, record as cn, object as un, number as pn, null as mn, never as fn, looseObject as hn, literal as gn, instanceof as yn, enum as bn, discriminatedUnion as vn, custom as xn, boolean as wn, array as Nn } from "zod/v4";
|
|
24
24
|
import { toJSONSchema as In } from "zod/v4/core";
|
|
25
|
-
import {
|
|
26
|
-
import { L as _n } from "./list-filter-
|
|
27
|
-
import { L as la } from "./layout-grid-
|
|
25
|
+
import { aR as Sn, aS as An, aT as Cn, aU as at, aV as En, aW as sa, aX as ra, aY as na, aZ as oa, a_ as ia, a$ as Tn, f as kn, al as Mn } from "./pivot-result-contract-expectations-Bx_BCu-7.js";
|
|
26
|
+
import { L as _n } from "./list-filter-CfMPI6v4.js";
|
|
27
|
+
import { L as la } from "./layout-grid-9nSS2SL-.js";
|
|
28
28
|
function On(e, t, a) {
|
|
29
29
|
const s = Sn(), r = (a == null ? void 0 : a.locale) ?? s.locale ?? An, l = Cn(e, t);
|
|
30
30
|
if (isNaN(l))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { x as g, z as $ } from "./bookmark-state-
|
|
2
|
-
import { l as F, h as C, a as O, b as v, i as S, f as T } from "./stored-dashboard-
|
|
1
|
+
import { x as g, z as $ } from "./bookmark-state-CL4WEpgB.js";
|
|
2
|
+
import { l as F, h as C, a as O, b as v, i as S, f as T } from "./stored-dashboard-sPkTjxYf.js";
|
|
3
3
|
function D(e) {
|
|
4
4
|
var d, c, f;
|
|
5
5
|
const { saved: s, draft: a, usage: l } = e, b = [], j = F(s);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a5 as
|
|
1
|
+
import { a5 as G, f as Ve, r as Pe } from "./validators-CJ8Jh0E8.js";
|
|
2
2
|
import { z as l } from "zod";
|
|
3
|
-
import {
|
|
4
|
-
import { D as qe, C as Be,
|
|
3
|
+
import { Q as B, F as Le, r as $e } from "./matrix-operation-contract-BM5TveR3.js";
|
|
4
|
+
import { D as qe, C as Be, a as j, r as je, e as Ue } from "./metric-comparison-ZmurmEIs.js";
|
|
5
5
|
import "./analytics-base-schemas-BaIQrEzX.js";
|
|
6
6
|
import { a as O } from "./applied-constraints-DU-wndZ7.js";
|
|
7
|
-
import { r as ze } from "./pivot-result-identity-
|
|
7
|
+
import { r as ze } from "./pivot-result-identity-Bvs6Uq3v.js";
|
|
8
8
|
const ne = 8, re = 6, V = Object.freeze([]);
|
|
9
9
|
function We(e) {
|
|
10
10
|
switch (e.type) {
|
|
@@ -17,7 +17,7 @@ function We(e) {
|
|
|
17
17
|
return V;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Qe(e, t) {
|
|
21
21
|
switch (e.type) {
|
|
22
22
|
case "table":
|
|
23
23
|
case "chart": {
|
|
@@ -64,14 +64,14 @@ function _(e) {
|
|
|
64
64
|
}
|
|
65
65
|
function Zt(e, t, n) {
|
|
66
66
|
let r = !1;
|
|
67
|
-
const a =
|
|
67
|
+
const a = Ge(e, (i) => i.id !== n.id ? i : (r = !0, i === n ? i : n));
|
|
68
68
|
if (r || !t) return a;
|
|
69
69
|
const s = (a.sheets || []).map(
|
|
70
70
|
(i) => i.id === t && i.kind !== "document" ? { ...i, cards: [...i.cards ?? [], n] } : i
|
|
71
71
|
);
|
|
72
72
|
return { ...a, sheets: s };
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Ge(e, t) {
|
|
75
75
|
const n = (a, s) => {
|
|
76
76
|
const i = a.map((o) => t(o, s(o)));
|
|
77
77
|
return i.every((o, c) => o === a[c]) ? a : i;
|
|
@@ -82,7 +82,7 @@ function Qe(e, t) {
|
|
|
82
82
|
const I = n(p.cards, (g) => ({ kind: "frameCard", sheetId: s, frameId: p.id, cardId: g.id, card: g }));
|
|
83
83
|
return I === p.cards ? p : { ...p, cards: I };
|
|
84
84
|
}), c = (h = (y = a.document) == null ? void 0 : y.sections) == null ? void 0 : h.map(
|
|
85
|
-
(p) =>
|
|
85
|
+
(p) => Qe(p, (I) => t(I, { kind: "documentSectionCard", sheetId: s, sectionId: p.id, cardId: I.id, card: I }))
|
|
86
86
|
), u = !!o && o.some((p, I) => p !== a.frames[I]), d = !!c && c.some((p, I) => p !== a.document.sections[I]);
|
|
87
87
|
return i === a.cards && !u && !d ? a : {
|
|
88
88
|
...a,
|
|
@@ -730,7 +730,7 @@ function En(e, t, n) {
|
|
|
730
730
|
return n in t ? t[n] : void 0;
|
|
731
731
|
}
|
|
732
732
|
function z(e) {
|
|
733
|
-
const t =
|
|
733
|
+
const t = G(e);
|
|
734
734
|
return t === "string" || t === "unknown" ? "text" : t;
|
|
735
735
|
}
|
|
736
736
|
function mt(e) {
|
|
@@ -767,7 +767,7 @@ function Nn(e, t) {
|
|
|
767
767
|
const n = e.query.config, r = (u, d) => {
|
|
768
768
|
if (!u) return;
|
|
769
769
|
const f = d === "metric" ? B(u) : u.dataType;
|
|
770
|
-
return
|
|
770
|
+
return G(f) === "unknown" ? void 0 : z(f);
|
|
771
771
|
};
|
|
772
772
|
if (e.get.kind === "aggregate")
|
|
773
773
|
return dt(t) && H(e) ? "number" : t === S ? r((i = n == null ? void 0 : n.metricColumns) == null ? void 0 : i[0], "metric") : void 0;
|
|
@@ -1155,11 +1155,11 @@ function zn(e, t, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(),
|
|
|
1155
1155
|
function Wn(e, t) {
|
|
1156
1156
|
return t != null && t[e] ? t[e] : (e.includes(".") ? e.slice(e.lastIndexOf(".") + 1) : e).replace(/[_-]+/g, " ").replace(/([a-z])([A-Z])/g, "$1 $2").replace(/\s+/g, " ").trim().replace(/\b\w/g, (r) => r.toUpperCase());
|
|
1157
1157
|
}
|
|
1158
|
-
const
|
|
1158
|
+
const Qn = {
|
|
1159
1159
|
database: null,
|
|
1160
1160
|
schema: null,
|
|
1161
1161
|
table: null
|
|
1162
|
-
},
|
|
1162
|
+
}, Gn = "__card_default__", Nt = {
|
|
1163
1163
|
date: /* @__PURE__ */ new Set([
|
|
1164
1164
|
"between",
|
|
1165
1165
|
"not between",
|
|
@@ -1199,7 +1199,7 @@ const Gn = {
|
|
|
1199
1199
|
boolean: /* @__PURE__ */ new Set(["=", "!=", "in", "not in", "is null", "is not null"])
|
|
1200
1200
|
};
|
|
1201
1201
|
function Ot(e) {
|
|
1202
|
-
const t =
|
|
1202
|
+
const t = G(e);
|
|
1203
1203
|
return t === "number" || t === "boolean" ? t : t === "date" || t === "datetime" ? "date" : "string";
|
|
1204
1204
|
}
|
|
1205
1205
|
function Yn(e, t) {
|
|
@@ -1267,7 +1267,7 @@ function Mt(e, t, n, r, a) {
|
|
|
1267
1267
|
return;
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
1270
|
-
const
|
|
1270
|
+
const Q = {
|
|
1271
1271
|
bookmarksPerViewerPerDashboard: 20,
|
|
1272
1272
|
bookmarkNameMaxChars: 100,
|
|
1273
1273
|
columnLabelMaxChars: 120,
|
|
@@ -1322,7 +1322,7 @@ function D(e) {
|
|
|
1322
1322
|
const pe = l.array(l.string()).max(2e3), Vt = l.object({
|
|
1323
1323
|
order: pe.optional(),
|
|
1324
1324
|
hidden: pe.optional(),
|
|
1325
|
-
labels: l.record(l.string(), l.string().max(
|
|
1325
|
+
labels: l.record(l.string(), l.string().max(Q.columnLabelMaxChars)).optional(),
|
|
1326
1326
|
sort: l.array(
|
|
1327
1327
|
l.object({
|
|
1328
1328
|
columnId: l.string(),
|
|
@@ -1331,7 +1331,7 @@ const pe = l.array(l.string()).max(2e3), Vt = l.object({
|
|
|
1331
1331
|
).max(2e3).optional(),
|
|
1332
1332
|
widths: l.record(
|
|
1333
1333
|
l.string(),
|
|
1334
|
-
l.number().int().min(1).max(
|
|
1334
|
+
l.number().int().min(1).max(Q.columnWidthMaxPx)
|
|
1335
1335
|
).optional()
|
|
1336
1336
|
}).strict();
|
|
1337
1337
|
function he(e) {
|
|
@@ -1348,7 +1348,7 @@ function Oe(e) {
|
|
|
1348
1348
|
return D(c) && d ? [
|
|
1349
1349
|
[
|
|
1350
1350
|
c,
|
|
1351
|
-
d.slice(0,
|
|
1351
|
+
d.slice(0, Q.columnLabelMaxChars)
|
|
1352
1352
|
]
|
|
1353
1353
|
] : [];
|
|
1354
1354
|
}
|
|
@@ -1517,9 +1517,9 @@ export {
|
|
|
1517
1517
|
Zt as $,
|
|
1518
1518
|
_ as A,
|
|
1519
1519
|
$ as B,
|
|
1520
|
-
|
|
1520
|
+
Gn as C,
|
|
1521
1521
|
C as D,
|
|
1522
|
-
|
|
1522
|
+
Qn as E,
|
|
1523
1523
|
un as F,
|
|
1524
1524
|
xn as G,
|
|
1525
1525
|
An as H,
|
|
@@ -1536,14 +1536,14 @@ export {
|
|
|
1536
1536
|
Kn as S,
|
|
1537
1537
|
In as T,
|
|
1538
1538
|
J as U,
|
|
1539
|
-
|
|
1539
|
+
Q as V,
|
|
1540
1540
|
wn as W,
|
|
1541
1541
|
ct as X,
|
|
1542
1542
|
ne as Y,
|
|
1543
1543
|
re as Z,
|
|
1544
|
-
|
|
1544
|
+
Qe as _,
|
|
1545
1545
|
$n as a,
|
|
1546
|
-
|
|
1546
|
+
Ge as a0,
|
|
1547
1547
|
en as a1,
|
|
1548
1548
|
cn as a2,
|
|
1549
1549
|
dn as a3,
|