react-semaphor 0.1.587 → 0.1.588
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 +341 -338
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +8 -8
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{add-to-dashboard-DhP8wVtM.js → add-to-dashboard-C86FsM8D.js} +1 -1
- package/dist/chunks/{aggregate-measure-field-DsFXETpI.js → aggregate-measure-field-BrkXsSJp.js} +2 -2
- package/dist/chunks/{analytics-base-schemas-BaIQrEzX.js → analytics-base-schemas-8wz9vqn_.js} +173 -165
- package/dist/chunks/{assistant-chat-pfJK-T0b.js → assistant-chat-BeM6joPc.js} +19 -18
- package/dist/chunks/{bookmark-impact-BSpGQL1M.js → bookmark-impact-B7pbMx2e.js} +2 -2
- package/dist/chunks/{bookmark-state-CL4WEpgB.js → bookmark-state-Bn7k3ttp.js} +5 -5
- package/dist/chunks/{card-filter-builder-C8PbhHjq.js → card-filter-builder-DmodrhyI.js} +81 -81
- package/dist/chunks/{comparison-window-caption-CoART8BC.js → comparison-window-caption-fqijZdVd.js} +451 -395
- package/dist/chunks/{context-BTLBjQNh.js → context-CVXTFljo.js} +1 -1
- package/dist/chunks/{dashboard-CVj1oMoW.js → dashboard-Tu5wT0Cw.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-TqA58rKz.js → dashboard-briefing-launcher-D8jMxIJo.js} +249 -265
- package/dist/chunks/{dashboard-controls-DQ8FsxAz.js → dashboard-controls-uzeAIEkM.js} +65 -65
- package/dist/chunks/{dashboard-json-DM88pmk2.js → dashboard-json-i5rpFNCg.js} +5 -5
- package/dist/chunks/dates-BunbHJH0.js +115 -0
- package/dist/chunks/{edit-dashboard-visual-BpRnU_6G.js → edit-dashboard-visual-BpEK_Sls.js} +2357 -2344
- package/dist/chunks/{filter-line-Cu2u1K36.js → filter-line-Dza3ee4w.js} +5 -5
- package/dist/chunks/{filter-reach-copy-0Xp97cLk.js → filter-reach-copy-D5AmDHda.js} +944 -942
- package/dist/chunks/{filter-value-text-xefXzZlf.js → filter-value-text-DQw4v3nC.js} +6 -6
- package/dist/chunks/{index-D_QSeVKy.js → index-dGxJTaP1.js} +39 -39
- package/dist/chunks/{layout-grid-9nSS2SL-.js → layout-grid-XCYphks2.js} +1 -1
- package/dist/chunks/{list-filter-CfMPI6v4.js → list-filter-DGV3fqqv.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-DOVSFFuf.js → matrix-analytical-definition-SN0JUJVk.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-BKDyxJho.js → matrix-member-presentation-DVBJR0MA.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-BM5TveR3.js → matrix-operation-contract-JSmproo9.js} +15 -15
- package/dist/chunks/{metric-comparison-ZmurmEIs.js → metric-comparison-xE_J6hkg.js} +2 -2
- package/dist/chunks/{paintbrush-LzAje2ff.js → paintbrush-DEEZXhDj.js} +1 -1
- package/dist/chunks/{palette-DicJG0TC.js → palette-Bgy0H-Nt.js} +1 -1
- package/dist/chunks/{pivot-header-presentation-CdeTU96P.js → pivot-header-presentation-D-DfPAjb.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-Bx_BCu-7.js → pivot-result-contract-expectations-DbBahmgc.js} +545 -536
- package/dist/chunks/{pivot-result-identity-Bvs6Uq3v.js → pivot-result-identity-CUsMt_4r.js} +1 -1
- package/dist/chunks/{raw-temporal-value-DH-feMc2.js → raw-temporal-value-BnGCWJAL.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-CXKmWyLm.js → report-preferences-dialog-CTM0xfd0.js} +14 -14
- package/dist/chunks/{report-runtime-context-NlOXwyRB.js → report-runtime-context-CrOgmuxO.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-zEXuitoF.js → resolve-dashboard-input-context-DFBIngUZ.js} +5617 -5485
- package/dist/chunks/{save-0wu1Z1U7.js → save-xnRCvMeA.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-Cll5LipJ.js → saved-dashboard-context-DKMTP9ib.js} +17 -17
- package/dist/chunks/selection-filter-compiler-DkIjp1yH.js +131 -0
- package/dist/chunks/{semaphor-ready-indicator-Bnj3H0Dm.js → semaphor-ready-indicator-zU9reNmX.js} +45952 -45617
- package/dist/chunks/{shelf-drop-preview-context-B8rmn6BD.js → shelf-drop-preview-context-R9sf4oDX.js} +6 -6
- package/dist/chunks/{stored-dashboard-CURqJgoa.js → stored-dashboard-CksluF2S.js} +1539 -1404
- package/dist/chunks/{style-sheet-parts-_dGSFzDi.js → style-sheet-parts-D7NbsFL0.js} +3 -3
- package/dist/chunks/{table-export-sheet-Dmtqi5NV.js → table-export-sheet-ClSgERQC.js} +1 -1
- package/dist/chunks/{token-types-DEe_FP4l.js → token-types-DTocOcwt.js} +1 -1
- package/dist/chunks/{upload-CtyOkU_B.js → upload-BXGgYS4g.js} +1 -1
- package/dist/chunks/{validators-CJ8Jh0E8.js → validators-CrYXNnNE.js} +51 -49
- package/dist/chunks/{variable-draft-DIv-9y6Q.js → variable-draft-rbtGPvmX.js} +16 -14
- package/dist/chunks/visual-choice-DDfHfHvY.js +172 -0
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +821 -791
- package/dist/format-utils/index.js +162 -158
- package/dist/index.js +21 -21
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/index.js +5 -5
- package/dist/types/lib/dashboard-view-state/card-view-state.d.ts +39 -2
- package/dist/types/lib/dashboard-view-state/date-zoom.d.ts +65 -0
- package/dist/types/lib/dashboard-view-state/grain-pick.d.ts +38 -0
- package/dist/types/lib/dashboard-view-state/index.d.ts +2 -0
- package/dist/types/lib/formatters/grouped-temporal-presentation.d.ts +6 -2
- package/dist/types/lib/hooks/interactions/use-drill-actions.d.ts +1 -1
- package/dist/types/lib/interactions/get-click-context-from-table.d.ts +2 -2
- package/dist/types/lib/query-context/assemble-card-query.d.ts +2 -1
- package/dist/types/lib/query-context/build-card-query-context.d.ts +15 -1
- package/dist/types/lib/query-context/describe-card-execution-snapshot.d.ts +3 -0
- package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +14 -1
- package/dist/types/lib/stores/dashboard-store.d.ts +7 -1
- package/dist/types/lib/types/explorer-types.d.ts +13 -0
- package/dist/types/lib/utils/card-config-utils.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +32 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +30 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +13 -0
- package/dist/types/shared/dashboard-authoring/automatic-grain.d.ts +77 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +13 -8
- package/dist/types/shared/dashboard-authoring/control-value-resolution.d.ts +24 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/kpi-trend-rule.d.ts +6 -29
- package/dist/types/shared/dashboard-authoring/variable-draft.d.ts +1 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/partial-period.d.ts +40 -0
- package/dist/types/shared/format-utils/temporal-bucket.d.ts +11 -0
- package/dist/types/shared/usage-events/details.d.ts +2 -2
- package/dist/usage-events/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/dates-5z3b9Loo.js +0 -136
- package/dist/chunks/selection-filter-compiler-BReJy-uv.js +0 -92
- package/dist/chunks/visual-choice-BBPizkRo.js +0 -206
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
var _s = Object.defineProperty;
|
|
2
2
|
var Cs = (e, a, t) => a in e ? _s(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
|
|
3
3
|
var lt = (e, a, t) => Cs(e, typeof a != "symbol" ? a + "" : a, t);
|
|
4
|
-
import { _ as $s, $ as ws, a0 as xs, a1 as Ss, a2 as ks, a3 as qa, a4 as Ie, a5 as Ts, a6 as he, a7 as $e, a8 as la, a9 as ot, aa as Na, ab as Q, ac as U, ad as Ee, ae as Rs, af as As, ag as Ft, ah as Fs, ai as Ds, aj as Os, ak as Es, al as qs, am as Ns, an as Pa, ao as Ps, ap as Ls, aq as Ms, ar as Bs, as as Vs, at as
|
|
5
|
-
import {
|
|
6
|
-
import { K as
|
|
7
|
-
import { ae as
|
|
8
|
-
import { L as
|
|
9
|
-
import { r as
|
|
10
|
-
import {
|
|
11
|
-
import { f as
|
|
12
|
-
import { p as
|
|
13
|
-
import { r as Ha, D as Ia, h as
|
|
14
|
-
import { N as
|
|
15
|
-
import { a7 as Ya, r as Ja, aN as
|
|
4
|
+
import { _ as $s, $ as ws, a0 as xs, a1 as Ss, a2 as ks, a3 as qa, a4 as Ie, a5 as Ts, a6 as he, a7 as $e, a8 as la, a9 as ot, aa as Na, ab as Q, ac as U, ad as Ee, ae as Rs, af as As, ag as Ft, ah as Fs, ai as Ds, aj as Os, ak as Es, al as qs, am as Ns, an as Pa, ao as Ps, ap as Ls, aq as Ms, ar as Bs, as as Vs, at as Gs, au as Ks, av as ca, aw as La, ax as ua, ay as we, az as be, aA as qe, aB as js, aC as Ws, aD as Us, o as Xe, aE as Qs, aF as Hs, aG as _t, aH as Ze, aI as zs, aJ as Ys, aK as Ma, aL as Dt, aM as Ct, aN as Js, aO as Xs, aP as Zs, aQ as ie, aR as Ba, aS as Va, aT as ct, aU as eo, aV as to, aW as fa, aX as $t, aY as ao, aZ as ma, a_ as so, a$ as ha, b0 as pa, b1 as et, b2 as ga, b3 as Fe, b4 as oo, b5 as He, m as no, b6 as Ga, b7 as io, b8 as ro, b9 as lo, ba as Ka, a as co, bb as uo, bc as fo, bd as mo, be as ho, bf as po, bg as go, bh as bo, bi as yo, bj as vo, bk as Io, bl as _o, bm as Co, bn as $o, bo as ba, bp as wo, bq as xo, br as So, bs as ko, bt as To, bu as Ro, bv as Ao, bw as Fo, bx as Do, by as Oo, bz as Eo, bA as qo } from "../chunks/resolve-dashboard-input-context-DFBIngUZ.js";
|
|
5
|
+
import { dT as jr, bX as Wr, c0 as Ur, dw as Qr, dx as Hr, dL as zr, dK as Yr, dF as Jr, eP as Xr, dM as Zr, dN as ed, ed as td, d7 as ad, d8 as sd, d9 as od, d4 as nd, d5 as id, d6 as rd, d0 as dd, d1 as ld, d3 as cd, d2 as ud, da as fd, e7 as md, dy as hd, co as pd, ei as gd, ej as bd, cn as yd, dq as vd, dV as Id, cx as _d, eR as Cd, ce as $d, bR as wd, ea as xd, dY as Sd, ek as kd, fg as Td, fr as Rd, fk as Ad, dI as Fd, dJ as Dd, cu as Od, e$ as Ed, eZ as qd, e_ as Nd, bO as Pd, fb as Ld, dX as Md, cA as Bd, e2 as Vd, ct as Gd, fv as Kd, fw as jd, eE as Wd, bV as Ud, dW as Qd, de as Hd, f2 as zd, fA as Yd, cR as Jd, fl as Xd, dE as Zd, cv as el, bS as tl, es as al, et as sl, db as ol, cS as nl, e9 as il, bI as rl, ee as dl, eC as ll, bW as cl, d_ as ul, fF as fl, f3 as ml, bJ as hl, b$ as pl, en as gl, cM as bl, fy as yl, eF as vl, e1 as Il, eD as _l, ec as Cl, dp as $l, dn as wl, cs as xl, e8 as Sl, ca as kl, cg as Tl, e6 as Rl, cV as Al, cX as Fl, cJ as Dl, bG as Ol, fm as El, fq as ql, cB as Nl, eh as Pl, ef as Ll, ey as Ml, bK as Bl, bT as Vl, eG as Gl, fc as Kl, bU as jl, dR as Wl, dS as Ul, fB as Ql, fC as Hl, fE as zl, cW as Yl, cb as Jl, cc as Xl, cd as Zl, cw as ec, cy as tc, fx as ac, eM as sc, dt as oc, f as nc, c$ as ic, cl as rc, cG as dc, b as lc, cY as cc, du as uc, c2 as fc, c3 as mc, bY as hc, df as pc, e0 as gc, ck as bc, ep as yc, cC as vc, bB as Ic, cp as _c, dG as Cc, c6 as $c, dQ as wc, cf as xc, dj as Sc, f0 as kc, fD as Tc, bP as Rc, dl as Ac, eq as Fc, dm as Dc, eu as Oc, eU as Ec, eT as qc, e3 as Nc, cO as Pc, cF as Lc, cH as Mc, l as Bc, cI as Vc, eK as Gc, dO as Kc, d$ as jc, bC as Wc, bD as Uc, bE as Qc, bL as Hc, fi as zc, fd as Yc, dU as Jc, fe as Xc, cL as Zc, cq as eu, cU as tu, dP as au, eJ as su, dr as ou, ds as nu, c1 as iu, fz as ru, dZ as du, eH as lu, dv as cu, eY as uu, eW as fu, J as mu, fh as hu, cj as pu, fn as gu, fo as bu, dC as yu, c_ as vu, c5 as Iu, eg as _u, eb as Cu, bF as $u, cP as wu, cQ as xu, cr as Su, dd as ku, c9 as Tu, ch as Ru, ci as Au, dz as Fu, dA as Du, cm as Ou, bM as Eu, c8 as qu, dh as Nu, eS as Pu, eO as Lu, fp as Mu, di as Bu, dg as Vu, fs as Gu, c4 as Ku, eQ as ju, cN as Wu, eN as Uu, cZ as Qu, er as Hu, f1 as zu, dB as Yu, cK as Ju, dH as Xu, bH as Zu, c7 as ef, e4 as tf, eX as af, eo as sf, cT as of, dk as nf, bQ as rf, e5 as df, ft as lf, em as cf, el as uf, eL as ff, eV as mf, cz as hf, cE as pf, bN as gf, fj as bf, ff as yf, fu as vf, dc as If, eI as _f, eB as Cf, dD as $f, eA as wf, f5 as xf, bZ as Sf, ex as kf, b_ as Tf, ez as Rf, cD as Af, ev as Ff, ew as Df, f4 as Of, f6 as Ef, f7 as qf, f8 as Nf, f9 as Pf, fa as Lf } from "../chunks/resolve-dashboard-input-context-DFBIngUZ.js";
|
|
6
|
+
import { K as No, L as ja, G as Wa, M as Po, N as Lo, O as Ot, P as Ua, Q as Qa, A as xe, R as Mo, S as Bo, H as Vo, T as Go } from "../chunks/bookmark-state-Bn7k3ttp.js";
|
|
7
|
+
import { ae as Bf, ay as Vf, Y as Gf, Z as Kf, a8 as jf, ac as Wf, a9 as Uf, aa as Qf, ab as Hf, af as zf, aw as Yf, aq as Jf, D as Xf, au as Zf, F as em, a1 as tm, I as am, ax as sm, a4 as om, a5 as nm, as as im, ad as rm, a2 as dm, ao as lm, at as cm, av as um, ap as fm, ar as mm, a0 as hm, _ as pm, ah as gm, am as bm, W as ym, X as vm, U as Im, a3 as _m, an as Cm, az as $m, ai as wm, ag as xm, aj as Sm, ak as km, al as Tm, a7 as Rm, a6 as Am, $ as Fm } from "../chunks/bookmark-state-Bn7k3ttp.js";
|
|
8
|
+
import { L as Om, G as Em, H as qm, g as Nm, F as Pm, q as Lm, A as Mm, D as Bm, u as Vm, v as Gm, E as Km, C as jm, s as Wm, t as Um, p as Qm, B as Hm, I as zm, w as Ym, y as Jm, x as Xm, z as Zm } from "../chunks/stored-dashboard-CksluF2S.js";
|
|
9
|
+
import { r as Ko, ac as ya } from "../chunks/pivot-result-contract-expectations-DbBahmgc.js";
|
|
10
|
+
import { aP as th, aO as ah, aK as sh, aN as oh, aQ as nh, aE as ih } from "../chunks/pivot-result-contract-expectations-DbBahmgc.js";
|
|
11
|
+
import { f as jo, w as Wo, D as va, a as Uo } from "../chunks/metric-comparison-xE_J6hkg.js";
|
|
12
|
+
import { p as Qo } from "../chunks/report-runtime-context-CrOgmuxO.js";
|
|
13
|
+
import { r as Ha, D as Ia, h as Ho, i as za, j as zo, k as Yo, l as Jo, f as wt, m as Xo, v as Zo } from "../chunks/filter-reach-copy-D5AmDHda.js";
|
|
14
|
+
import { N as dh, $ as lh, S as ch, o as uh, t as fh, w as mh, u as hh, G as ph, C as gh, n as bh, q as yh, J as vh, d as Ih, a1 as _h, L as Ch, M as $h, _ as wh, a0 as xh, E as Sh, X as kh, F as Th, x as Rh, y as Ah, A as Fh, p as Dh, z as Oh, R as Eh, O as qh, a2 as Nh, Z as Ph, Y as Lh, K as Mh, H as Bh, I as Vh, U as Gh, T as Kh, Q as jh, V as Wh, P as Uh, s as Qh, W as Hh, B as zh } from "../chunks/filter-reach-copy-D5AmDHda.js";
|
|
15
|
+
import { a7 as Ya, r as Ja, aN as en, a_ as Ne, aL as tn, aQ as an, aK as sn, aE as on, aM as nn, a5 as rn } from "../chunks/validators-CrYXNnNE.js";
|
|
16
16
|
import "../chunks/schema-C9NPiIru.js";
|
|
17
|
-
import { i as Xa, C as
|
|
18
|
-
import "../chunks/matrix-operation-contract-
|
|
19
|
-
import {
|
|
20
|
-
import { A as _a, E as
|
|
17
|
+
import { i as Xa, C as Ge, D as dn, e as ln, b as cn } from "../chunks/edit-9df1zOWe.js";
|
|
18
|
+
import "../chunks/matrix-operation-contract-JSmproo9.js";
|
|
19
|
+
import { C as Le, D as ze, B as un, f as fn, z as Et, t as Me, e as mn } from "../chunks/analytics-base-schemas-8wz9vqn_.js";
|
|
20
|
+
import { A as _a, E as hn } from "../chunks/matrix-analytical-definition-SN0JUJVk.js";
|
|
21
21
|
import "zod";
|
|
22
22
|
import "../value-format-preferences/index.js";
|
|
23
|
-
import { C as
|
|
24
|
-
import { r as
|
|
25
|
-
import "../chunks/context-
|
|
26
|
-
import { v as Ye, a as
|
|
27
|
-
import { S as
|
|
28
|
-
import { K as
|
|
29
|
-
import { b as
|
|
30
|
-
import { r as ye, b as
|
|
31
|
-
import { n as
|
|
32
|
-
import { e as
|
|
33
|
-
const
|
|
23
|
+
import { C as Jh, a as Xh, S as Zh } from "../chunks/pickers-DkqmtnTL.js";
|
|
24
|
+
import { r as pn } from "../chunks/index-CV_Kzou0.js";
|
|
25
|
+
import "../chunks/context-CVXTFljo.js";
|
|
26
|
+
import { v as Ye, a as gn, i as Ca, o as ut, d as bn, b as yn, c as vn } from "../chunks/variable-draft-rbtGPvmX.js";
|
|
27
|
+
import { S as tp, f as ap, g as sp, e as op, n as np } from "../chunks/variable-draft-rbtGPvmX.js";
|
|
28
|
+
import { K as rp, a as dp, d as lp, r as cp, b as up } from "../chunks/dates-BunbHJH0.js";
|
|
29
|
+
import { b as mp, d as hp } from "../chunks/bookmark-impact-B7pbMx2e.js";
|
|
30
|
+
import { r as ye, b as In, s as _n, a as Cn } from "../chunks/resolver-DG_tfEpt.js";
|
|
31
|
+
import { n as $n, r as wn } from "../chunks/index-BVKzKl5d.js";
|
|
32
|
+
import { e as gp } from "../chunks/brand-BoUV0iHF.js";
|
|
33
|
+
const Rr = [
|
|
34
34
|
"cardType",
|
|
35
35
|
"sql",
|
|
36
36
|
"python",
|
|
@@ -46,7 +46,7 @@ const Sr = [
|
|
|
46
46
|
"globalDateComparison",
|
|
47
47
|
"calendarContext",
|
|
48
48
|
"sqlRowLimit"
|
|
49
|
-
],
|
|
49
|
+
], Ar = [
|
|
50
50
|
"cardId",
|
|
51
51
|
"cardTitle",
|
|
52
52
|
"cache_config",
|
|
@@ -67,13 +67,13 @@ function qt(e) {
|
|
|
67
67
|
function ve(e) {
|
|
68
68
|
return !e || typeof e != "object" || Array.isArray(e) ? {} : { ...e };
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Ke(e) {
|
|
71
71
|
return typeof e == "string" ? e : "";
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function xn(e, a = {}) {
|
|
74
74
|
const t = ve(e), s = qt(a), o = {};
|
|
75
75
|
if (t.calendarContext !== void 0) {
|
|
76
|
-
const i =
|
|
76
|
+
const i = Qo(t.calendarContext);
|
|
77
77
|
if (!i.ok)
|
|
78
78
|
throw new ce(
|
|
79
79
|
`${s}calendarContext: ${i.issues.map((d) => d.message).join("; ")}`,
|
|
@@ -90,20 +90,20 @@ function $n(e, a = {}) {
|
|
|
90
90
|
n.issues
|
|
91
91
|
);
|
|
92
92
|
if (t.resolvedPrimaryDateField && (o.resolvedPrimaryDateField = t.resolvedPrimaryDateField), t.globalDateComparison !== void 0) {
|
|
93
|
-
const i =
|
|
93
|
+
const i = jo(t.globalDateComparison);
|
|
94
94
|
if (!i.ok)
|
|
95
95
|
throw new ce(
|
|
96
96
|
`${s}Invalid globalDateComparison: ${i.errors.map((d) => `${d.path}: ${d.message}`).join("; ")}`,
|
|
97
97
|
"globalDateComparison",
|
|
98
98
|
i.errors
|
|
99
99
|
);
|
|
100
|
-
o.globalDateComparison =
|
|
100
|
+
o.globalDateComparison = Wo(
|
|
101
101
|
t.globalDateComparison
|
|
102
102
|
);
|
|
103
103
|
}
|
|
104
104
|
return o;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Fr(e, a = {}) {
|
|
107
107
|
const t = ve(e), s = qt(a), o = {};
|
|
108
108
|
if (t.pagination !== void 0) {
|
|
109
109
|
const n = ve(t.pagination), i = n.page, d = n.pageSize;
|
|
@@ -135,15 +135,15 @@ function Tr(e, a = {}) {
|
|
|
135
135
|
}
|
|
136
136
|
return o;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
const t = ve(e), s = qt(a), o = (x) => new ce(`${s}${x} is required`, x), n =
|
|
138
|
+
function Dr(e, a = {}) {
|
|
139
|
+
const t = ve(e), s = qt(a), o = (x) => new ce(`${s}${x} is required`, x), n = Ke(t.connection_id).trim();
|
|
140
140
|
if (!n) throw o("connection_id");
|
|
141
|
-
const i =
|
|
141
|
+
const i = Ke(t.cardType).trim();
|
|
142
142
|
if (!i) throw o("cardType");
|
|
143
143
|
const d = t.resultOwner;
|
|
144
144
|
if (d !== "config" && d !== "freeform" && d !== "none")
|
|
145
145
|
throw o("resultOwner");
|
|
146
|
-
const l = ve(t.cardConfig), c =
|
|
146
|
+
const l = ve(t.cardConfig), c = Ke(t.sql), h = Ke(t.python), p = !!a.configOptional || Object.keys(l).length > 0;
|
|
147
147
|
if (d === "config" && !p) throw o("cardConfig");
|
|
148
148
|
if (d === "freeform" && !c.trim()) throw o("sql");
|
|
149
149
|
const v = xs({
|
|
@@ -178,12 +178,12 @@ function Rr(e, a = {}) {
|
|
|
178
178
|
controlDefinitions: S.controlDefinitions,
|
|
179
179
|
cardControlDefinitions: S.cardControlDefinitions,
|
|
180
180
|
controlBindings: S.controlBindings,
|
|
181
|
-
|
|
181
|
+
...xn(t, a),
|
|
182
182
|
...typeof t.sqlRowLimit == "number" && Number.isInteger(t.sqlRowLimit) && t.sqlRowLimit > 0 ? { sqlRowLimit: t.sqlRowLimit } : {}
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
|
-
const ft = ["#14b8a6", "#5eead4", "#374151", "#6b7280", "#d1d5db"],
|
|
186
|
-
function
|
|
185
|
+
const ft = ["#14b8a6", "#5eead4", "#374151", "#6b7280", "#d1d5db"], Sn = ["spacing", "canvasPadding", "canvas", "cardCorners", "chartColors"], Za = ["light", "dark"];
|
|
186
|
+
function Or(e) {
|
|
187
187
|
const a = [], t = ht(e.globalStyle) ? e.globalStyle : {}, s = ht(t.default) ? t.default : {}, o = ht(t.dark) ? t.dark : {}, n = (p) => ye(o, p) ?? ye(s, p), i = {}, d = n(["gridLayout", "margin"]);
|
|
188
188
|
Array.isArray(d) && typeof d[1] == "number" && (i.spacing = De("spacing", d[1], a), i.canvasPadding = De("canvasPadding", d[1], a));
|
|
189
189
|
const l = n(["cardBorderRadius"]);
|
|
@@ -193,24 +193,24 @@ function Ar(e) {
|
|
|
193
193
|
const h = n(["chart", "options", "borderRadius"]);
|
|
194
194
|
typeof h == "number" && (i.barCorners = De("barCorners", h, a));
|
|
195
195
|
for (const p of Za) {
|
|
196
|
-
const v = p === "light" ? ye(s, ["canvasTheme"]) : n(["canvasTheme"]), y =
|
|
196
|
+
const v = p === "light" ? ye(s, ["canvasTheme"]) : n(["canvasTheme"]), y = Rn(v, a);
|
|
197
197
|
y !== void 0 && (i.canvas = { ...i.canvas, [p]: y });
|
|
198
|
-
const S =
|
|
198
|
+
const S = Tn(s, o, p);
|
|
199
199
|
if (S) {
|
|
200
200
|
const x = S.filter(Xa).map((E) => E.toLowerCase());
|
|
201
|
-
x.length < S.length && a.push({ field: "chartColors", kind: "dropped_colour", detail: `${p}: ${S.length - x.length} colours that aren't hex` }), x.length >=
|
|
201
|
+
x.length < S.length && a.push({ field: "chartColors", kind: "dropped_colour", detail: `${p}: ${S.length - x.length} colours that aren't hex` }), x.length >= Ge.min && (i.chartColors = { ...i.chartColors, [p]: x.slice(0, Ge.max) }), x.length > Ge.max && a.push({ field: "chartColors", kind: "clamped", detail: `${p}: kept the first ${Ge.max} colours` });
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
return { style:
|
|
204
|
+
return { style: kn(i, e.organizationAppearance, a), notes: a };
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
const s =
|
|
206
|
+
function kn(e, a, t) {
|
|
207
|
+
const s = In({ organizationAppearance: a ? $n(a).spec : null }), o = { ...e };
|
|
208
208
|
for (const n of Object.keys(e)) {
|
|
209
|
-
const i =
|
|
209
|
+
const i = Cn[n], d = n === "canvas" || n === "chartColors";
|
|
210
210
|
for (const l of Za) {
|
|
211
|
-
const c =
|
|
211
|
+
const c = _n(o, n, l);
|
|
212
212
|
if (c === void 0) continue;
|
|
213
|
-
const h =
|
|
213
|
+
const h = Sn.includes(n) && ye(wn(a, l), i) !== void 0, p = JSON.stringify(ye(s.schemes[l], i)) === JSON.stringify(c);
|
|
214
214
|
if (!(!h && !p))
|
|
215
215
|
if ((d || l === "light") && t.push({ field: n, kind: h ? "brand_wins" : "equal_to_inherited", detail: d ? l : `${JSON.stringify(c)}` }), d) {
|
|
216
216
|
const v = { ...o[n] };
|
|
@@ -220,7 +220,7 @@ function xn(e, a, t) {
|
|
|
220
220
|
}
|
|
221
221
|
return Object.keys(o).length > 0 ? o : void 0;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Tn(e, a, t) {
|
|
224
224
|
const s = ye(e, ["chart", "dataset", "backgroundColor"]), o = ye(a, ["chart", "dataset", "backgroundColor"]), n = mt(ft, s);
|
|
225
225
|
if (t === "light") return Array.isArray(s) ? n : void 0;
|
|
226
226
|
const i = mt(n, mt(ft, o));
|
|
@@ -232,7 +232,7 @@ function mt(e, a) {
|
|
|
232
232
|
const t = Math.max(e.length, a.length);
|
|
233
233
|
return Array.from({ length: t }, (s, o) => a[o] !== void 0 ? String(a[o]) : e[o]);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function Rn(e, a) {
|
|
236
236
|
if (!(e == null || e === "")) {
|
|
237
237
|
if (e === "muted") return "muted";
|
|
238
238
|
if (e === "clear") return "background";
|
|
@@ -241,7 +241,7 @@ function kn(e, a) {
|
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
function De(e, a, t) {
|
|
244
|
-
const { min: s, max: o } =
|
|
244
|
+
const { min: s, max: o } = dn[e], n = Math.min(o, Math.max(s, Math.round(a)));
|
|
245
245
|
return n !== a && t.push({ field: e, kind: "clamped", detail: `${a} → ${n}` }), n;
|
|
246
246
|
}
|
|
247
247
|
function ht(e) {
|
|
@@ -258,21 +258,21 @@ const pt = {
|
|
|
258
258
|
chartColors: (e, a) => a.chartColors = e,
|
|
259
259
|
barCorners: (e, a) => a.barCorners = e
|
|
260
260
|
};
|
|
261
|
-
function
|
|
261
|
+
function An(e) {
|
|
262
262
|
var t;
|
|
263
263
|
const a = {};
|
|
264
264
|
for (const [s, o] of Object.entries(e ?? {}))
|
|
265
265
|
o !== void 0 && ((t = pt[s]) == null || t.call(pt, o, a));
|
|
266
266
|
return a;
|
|
267
267
|
}
|
|
268
|
-
const
|
|
268
|
+
const Fn = {
|
|
269
269
|
global_date: "The date filter for the whole report can't be changed through the MCP. Change it in the editor; removing or excluding it works.",
|
|
270
270
|
not_semantic: "This filter reads a database table, not a dataset, so it can't be changed through the MCP. Change it in the editor; removing or excluding it works.",
|
|
271
271
|
scope_not_expressible: "This filter applies to chosen cards rather than whole sheets, so it can't be changed through the MCP. Change it in the editor; removing or excluding it works."
|
|
272
272
|
};
|
|
273
|
-
function
|
|
273
|
+
function Dn(e, a, t = {}) {
|
|
274
274
|
var d;
|
|
275
|
-
const s = Ie(e), o =
|
|
275
|
+
const s = Ie(e), o = No(a.scope), n = new Set(ja(e).map((l) => l.id)), i = {
|
|
276
276
|
reaches: [],
|
|
277
277
|
excluded: [
|
|
278
278
|
.../* @__PURE__ */ new Set([
|
|
@@ -328,7 +328,7 @@ function An(e, a, t = {}) {
|
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
for (const l of s.reachedVariables({ inputId: a.id })) {
|
|
331
|
-
const c =
|
|
331
|
+
const c = Wa(e, l.variableId);
|
|
332
332
|
if ((c == null ? void 0 : c.kind) !== "variable") continue;
|
|
333
333
|
const h = $e(a, c.card, t), p = he(c.card), v = { cardId: c.id, title: c.variable.name, ...(p == null ? void 0 : p.kind) === "semantic" ? { datasetName: p.datasetName } : {} };
|
|
334
334
|
switch (h.reach) {
|
|
@@ -357,16 +357,16 @@ function An(e, a, t = {}) {
|
|
|
357
357
|
}
|
|
358
358
|
return i;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function On(e, a) {
|
|
361
361
|
var o;
|
|
362
362
|
const t = a.scope;
|
|
363
363
|
if (t.kind === "allSheets") {
|
|
364
364
|
if ((o = t.sheetKinds) != null && o.length && !t.sheetKinds.includes("dashboard")) return;
|
|
365
|
-
const n =
|
|
365
|
+
const n = Po(t);
|
|
366
366
|
return {
|
|
367
367
|
sheetIds: "all",
|
|
368
368
|
...n.length ? { exceptSheetIds: [...n] } : {},
|
|
369
|
-
...
|
|
369
|
+
...Lo(t) ? { includesDocumentSheets: !0 } : {}
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
372
|
if (t.kind !== "sheets") return;
|
|
@@ -382,12 +382,12 @@ function es(e, a) {
|
|
|
382
382
|
}
|
|
383
383
|
function ts(e, a, t, s) {
|
|
384
384
|
var E, C, k;
|
|
385
|
-
const { input: o } = a, n =
|
|
385
|
+
const { input: o } = a, n = Dn(e, o, s), i = (b, D) => ({
|
|
386
386
|
filterId: o.id,
|
|
387
387
|
label: o.label,
|
|
388
388
|
editable: !1,
|
|
389
389
|
kind: D,
|
|
390
|
-
notEditable: { reason: b, message:
|
|
390
|
+
notEditable: { reason: b, message: Fn[b] },
|
|
391
391
|
reaches: n.reaches,
|
|
392
392
|
excluded: n.excluded,
|
|
393
393
|
...n.blocked ? { blocked: n.blocked } : {},
|
|
@@ -397,13 +397,13 @@ function ts(e, a, t, s) {
|
|
|
397
397
|
if (o.filter.kind === "global-date") return i("global_date", "global_date");
|
|
398
398
|
const d = ks(o.filter).filter((b) => b.kind === "semantic");
|
|
399
399
|
if (d.length !== 1 || d[0].kind !== "semantic") return i("not_semantic", "field");
|
|
400
|
-
const l =
|
|
400
|
+
const l = On(e, o);
|
|
401
401
|
if (!l || a.origin !== "embeddedInput") return i("scope_not_expressible", "field");
|
|
402
402
|
const c = ((E = o.filter.fieldMeta) == null ? void 0 : E.name) ?? ((C = o.filter.column) == null ? void 0 : C.split(".").pop()) ?? "", h = Ha({
|
|
403
403
|
dashboard: e,
|
|
404
404
|
target: { kind: "dashboardInput", input: o, scope: {} },
|
|
405
405
|
calendar: es(t, void 0)
|
|
406
|
-
}).value, p = Ya(o.filter.dataType), v = p || (k = h == null ? void 0 : h.values) == null ? void 0 : k.filter((b) => ["string", "number", "boolean"].includes(typeof b)), y = Ja(h && "relativeMeta" in h ? h.relativeMeta : void 0), S = p ? y : void 0, x = S ?
|
|
406
|
+
}).value, p = Ya(o.filter.dataType), v = p || (k = h == null ? void 0 : h.values) == null ? void 0 : k.filter((b) => ["string", "number", "boolean"].includes(typeof b)), y = Ja(h && "relativeMeta" in h ? h.relativeMeta : void 0), S = p ? y : void 0, x = S ? en(
|
|
407
407
|
S,
|
|
408
408
|
{ use: "filterDefault", columnHasTime: qa(o.filter) === "datetime" },
|
|
409
409
|
"defaultPeriod"
|
|
@@ -455,7 +455,7 @@ function ns(e) {
|
|
|
455
455
|
field: s
|
|
456
456
|
}));
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function En(e) {
|
|
459
459
|
const a = os(e), t = /* @__PURE__ */ new Map();
|
|
460
460
|
for (const { field: s } of ns(e)) {
|
|
461
461
|
const o = ss(s, a);
|
|
@@ -463,14 +463,14 @@ function Dn(e) {
|
|
|
463
463
|
}
|
|
464
464
|
return [...t.values()];
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function qn(e, a, t) {
|
|
467
467
|
if (!t) return;
|
|
468
468
|
const s = la(a), o = ns(e).find((d) => la(d.ref) === s);
|
|
469
469
|
if (!o) return;
|
|
470
470
|
const n = ss(o.field, os(e)), i = n ? t[Nt(n)] : void 0;
|
|
471
471
|
return i ? ot(i, o.field.name, n.datasetName) : void 0;
|
|
472
472
|
}
|
|
473
|
-
const xt = ["orientation", "stack", "donut", "totals", "dataLabels", "legend", "axes", "comparisonDisplay", "inheritComparison", "trend", "trendGrain", "seeRecords"],
|
|
473
|
+
const xt = ["orientation", "stack", "donut", "totals", "dataLabels", "legend", "axes", "comparisonDisplay", "inheritComparison", "trend", "trendGrain", "seeRecords"], Nn = {
|
|
474
474
|
orientation: "orientation",
|
|
475
475
|
stack: "stacking",
|
|
476
476
|
donut: "donut hole",
|
|
@@ -483,16 +483,16 @@ const xt = ["orientation", "stack", "donut", "totals", "dataLabels", "legend", "
|
|
|
483
483
|
trend: "trend under its value",
|
|
484
484
|
trendGrain: "trend grain",
|
|
485
485
|
seeRecords: "records to see"
|
|
486
|
-
},
|
|
487
|
-
function
|
|
486
|
+
}, Pn = { x: "xAxisConfig", y: "yAxisConfig" }, gt = { x: "horizontal", y: "vertical" };
|
|
487
|
+
function Ln(e) {
|
|
488
488
|
const a = `${e.sql ? "SQL " : ""}${qs(e.type)}`;
|
|
489
489
|
return `${/^[aeiou]/i.test(a) ? "an" : "a"} ${a}`;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Mn(e, a, t) {
|
|
492
492
|
const s = Object.fromEntries(Object.entries(a).filter(([o, n]) => n !== void 0 && !t.includes(o)));
|
|
493
493
|
return Object.keys(s).length ? { op: "card.update", cardId: e.cardRef, ...s } : void 0;
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function Bn(e, a, t, s, o) {
|
|
496
496
|
var y, S, x, E, C, k, b, D, w, N, _;
|
|
497
497
|
const n = xt.filter((I) => t[I] !== void 0);
|
|
498
498
|
if (!n.length) return {};
|
|
@@ -500,11 +500,11 @@ function Ln(e, a, t, s, o) {
|
|
|
500
500
|
for (const I of d)
|
|
501
501
|
o.push(
|
|
502
502
|
Q("setting_not_for_card", {
|
|
503
|
-
message: `${U(e.title)} is ${
|
|
503
|
+
message: `${U(e.title)} is ${Ln(a)}, which has no ${Nn[I]}.`,
|
|
504
504
|
path: `${s.path}.${I}`,
|
|
505
505
|
fix: i.length ? `Leave out ${I}; this card takes ${i.join(", ")}.` : `Leave out ${I}.`,
|
|
506
506
|
allowed: i,
|
|
507
|
-
suggestedChange:
|
|
507
|
+
suggestedChange: Mn(s, t, d)
|
|
508
508
|
})
|
|
509
509
|
);
|
|
510
510
|
if (d.length) return {};
|
|
@@ -525,7 +525,7 @@ function Ln(e, a, t, s, o) {
|
|
|
525
525
|
t.dataLabels.show !== Ds(p) && (I.show = t.dataLabels.show);
|
|
526
526
|
const R = t.dataLabels.format;
|
|
527
527
|
if (R === null && ((x = v.dataLabels) != null && x.format) && (I.format = null), R) {
|
|
528
|
-
const P =
|
|
528
|
+
const P = Vn(e, a, R, `${s.path}.dataLabels.format`, o);
|
|
529
529
|
P && !Ne(P, (E = v.dataLabels) == null ? void 0 : E.format) && (I.format = P);
|
|
530
530
|
}
|
|
531
531
|
Object.keys(I).length && (l.dataLabels = I);
|
|
@@ -539,14 +539,14 @@ function Ln(e, a, t, s, o) {
|
|
|
539
539
|
for (const P of ["x", "y"]) {
|
|
540
540
|
const V = t.axes[P];
|
|
541
541
|
if (!V) continue;
|
|
542
|
-
const
|
|
543
|
-
|
|
542
|
+
const G = Gn(e, P, V, ((b = v.axes) == null ? void 0 : b[P]) ?? {}, P === I, `${s.path}.axes.${P}`, o);
|
|
543
|
+
G && (R[Pn[P]] = G);
|
|
544
544
|
}
|
|
545
545
|
Object.keys(R).length && (l.axes = R);
|
|
546
546
|
}
|
|
547
547
|
if (t.comparisonDisplay) {
|
|
548
|
-
const I = (D = e.preferences) == null ? void 0 : D.comparisonPresentation, R = {}, { show: P, mode: V, precision:
|
|
549
|
-
P !== void 0 && P !== ((I == null ? void 0 : I.showComparison) ?? !0) && (R.show = P), V !== void 0 && V !== ((I == null ? void 0 : I.displayMode) ?? "difference") && (R.mode = V),
|
|
548
|
+
const I = (D = e.preferences) == null ? void 0 : D.comparisonPresentation, R = {}, { show: P, mode: V, precision: G } = t.comparisonDisplay;
|
|
549
|
+
P !== void 0 && P !== ((I == null ? void 0 : I.showComparison) ?? !0) && (R.show = P), V !== void 0 && V !== ((I == null ? void 0 : I.displayMode) ?? "difference") && (R.mode = V), G !== void 0 && G !== ((I == null ? void 0 : I.precision) ?? null) && (R.precision = G), Object.keys(R).length && (l.comparisonDisplay = R);
|
|
550
550
|
}
|
|
551
551
|
if (t.inheritComparison !== void 0 && t.inheritComparison !== (((w = e.preferences) == null ? void 0 : w.inheritGlobalComparison) !== !1) && (l.inheritComparison = t.inheritComparison), t.seeRecords !== void 0 && t.seeRecords !== (e.seeRecords !== !1) && (l.seeRecords = t.seeRecords), t.trend !== void 0 && t.trend !== (((N = e.config) == null ? void 0 : N.kpiBand) === "trend") && (l.trend = t.trend), t.trendGrain !== void 0) {
|
|
552
552
|
const I = Es(e.config);
|
|
@@ -561,7 +561,7 @@ function Ln(e, a, t, s, o) {
|
|
|
561
561
|
}
|
|
562
562
|
return l;
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function Vn(e, a, t, s, o) {
|
|
565
565
|
const n = String(t.type), i = Ns("cartesian", "number"), d = Le(n), l = d == null ? void 0 : d.safeParse(t);
|
|
566
566
|
if (!i.includes(n) || !(l != null && l.success)) {
|
|
567
567
|
const h = l && !l.success ? l.error.issues[0] : void 0;
|
|
@@ -582,7 +582,7 @@ function Mn(e, a, t, s, o) {
|
|
|
582
582
|
}
|
|
583
583
|
return l.data;
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function Gn(e, a, t, s, o, n, i) {
|
|
586
586
|
const d = {};
|
|
587
587
|
t.title !== void 0 && (t.title !== null && !t.title.trim() ? i.push(Q("value_invalid", { message: "An axis title can't be empty.", path: `${n}.title`, fix: "Send a title, or null for none." })) : (t.title ?? void 0) !== s.title && (d.title = t.title));
|
|
588
588
|
const l = ["min", "max"].filter((c) => t[c] !== void 0 && t[c] !== null);
|
|
@@ -638,14 +638,14 @@ function St(e, a, t, s) {
|
|
|
638
638
|
const { [s]: o, ...n } = t;
|
|
639
639
|
return Object.keys(n).length ? { op: "card.update", cardId: e.cardRef, columns: { [a]: n } } : void 0;
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function Kn(e, a, t) {
|
|
642
642
|
const { hidden: s, width: o, ...n } = t;
|
|
643
643
|
return Object.keys(n).length ? { op: "card.update", cardId: e.cardRef, columns: { [a]: n } } : void 0;
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function je(e, a, t) {
|
|
646
646
|
return { op: "card.update", cardId: e.cardRef, columns: { [a]: { format: t } } };
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function jn(e, a, t, s, o, n, i) {
|
|
649
649
|
var c;
|
|
650
650
|
const d = o.label;
|
|
651
651
|
if (d === void 0 || d === t.label) return;
|
|
@@ -662,7 +662,7 @@ function Kn(e, a, t, s, o, n, i) {
|
|
|
662
662
|
return;
|
|
663
663
|
}
|
|
664
664
|
if (d === null) {
|
|
665
|
-
const h = ((c =
|
|
665
|
+
const h = ((c = qn(e, t.ref, n.catalogs)) == null ? void 0 : c.label) || t.field || t.label;
|
|
666
666
|
return t.labelInherited && t.label === h ? void 0 : { key: t.labelKey, label: h, origin: "semantic" };
|
|
667
667
|
}
|
|
668
668
|
if (!d.trim()) {
|
|
@@ -671,14 +671,14 @@ function Kn(e, a, t, s, o, n, i) {
|
|
|
671
671
|
}
|
|
672
672
|
return { key: t.labelKey, label: d };
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function Wn(e, a, t, s, o, n, i) {
|
|
675
675
|
var _, I;
|
|
676
676
|
const d = `${Se(n.path, s)}.format`;
|
|
677
677
|
if (!a.settings.has("columns.format")) {
|
|
678
678
|
i.push(Q("setting_not_for_card", { message: `${U(e.title)} takes no column formats.`, path: d }));
|
|
679
679
|
return;
|
|
680
680
|
}
|
|
681
|
-
const l = t.ref, c = ((_ = n.modelFormats) == null ? void 0 : _.status) === "read" ? n.modelFormats.formats : void 0, h = l.kind === "matrixLevel" ? c == null ? void 0 : c[l.levelId] : l.kind === "matrixMeasure" ? c == null ? void 0 : c[l.measureId] : void 0, p =
|
|
681
|
+
const l = t.ref, c = ((_ = n.modelFormats) == null ? void 0 : _.status) === "read" ? n.modelFormats.formats : void 0, h = l.kind === "matrixLevel" ? c == null ? void 0 : c[l.levelId] : l.kind === "matrixMeasure" ? c == null ? void 0 : c[l.measureId] : void 0, p = Ko({
|
|
682
682
|
card: e,
|
|
683
683
|
column: l,
|
|
684
684
|
...c ? { modelFormats: c } : {},
|
|
@@ -686,7 +686,7 @@ function jn(e, a, t, s, o, n, i) {
|
|
|
686
686
|
}), v = p.source === "override" ? p.format : void 0;
|
|
687
687
|
if (o === null) return v ? null : void 0;
|
|
688
688
|
if (v && Ne(o, v)) return;
|
|
689
|
-
const y =
|
|
689
|
+
const y = Gs(e, a, t, n.sqlResultColumns), S = y.value, x = Ks(y);
|
|
690
690
|
if (x.length === 0) {
|
|
691
691
|
i.push($a(e, s, d, t, S));
|
|
692
692
|
return;
|
|
@@ -701,7 +701,7 @@ function jn(e, a, t, s, o, n, i) {
|
|
|
701
701
|
path: d,
|
|
702
702
|
fix: "Add `type` to the format.",
|
|
703
703
|
allowed: ze(R),
|
|
704
|
-
suggestedChange:
|
|
704
|
+
suggestedChange: je(n, s, { type: R, ...o })
|
|
705
705
|
})
|
|
706
706
|
);
|
|
707
707
|
return;
|
|
@@ -724,16 +724,16 @@ function jn(e, a, t, s, o, n, i) {
|
|
|
724
724
|
Q("format_invalid", {
|
|
725
725
|
message: b ? (R == null ? void 0 : R.code) === "unrecognized_keys" ? `A ${k} format has no ${R.keys.join(", ")}.` : `That format for ${s} isn't valid: ${(R == null ? void 0 : R.message) ?? "invalid"}.` : `${JSON.stringify(k)} isn't a format type.`,
|
|
726
726
|
path: d,
|
|
727
|
-
fix:
|
|
728
|
-
allowed: b ? ze(k) : [...
|
|
729
|
-
...p.format ? { suggestedChange:
|
|
727
|
+
fix: zn(k),
|
|
728
|
+
allowed: b ? ze(k) : [...un],
|
|
729
|
+
...p.format ? { suggestedChange: je(n, s, p.format) } : {}
|
|
730
730
|
})
|
|
731
731
|
);
|
|
732
732
|
return;
|
|
733
733
|
}
|
|
734
734
|
const w = D.data;
|
|
735
735
|
if (w.type === "temporal_bucket" && t.granularity && !ya(w, t.granularity).ok) {
|
|
736
|
-
const P =
|
|
736
|
+
const P = fn.filter(
|
|
737
737
|
(V) => ya({ presentation: { mode: "preset", preset: V } }, t.granularity).ok
|
|
738
738
|
);
|
|
739
739
|
i.push(
|
|
@@ -741,22 +741,22 @@ function jn(e, a, t, s, o, n, i) {
|
|
|
741
741
|
message: `${s} on ${U(e.title)} is grouped by ${t.granularity}, which that date format doesn't fit.`,
|
|
742
742
|
path: d,
|
|
743
743
|
allowed: P,
|
|
744
|
-
suggestedChange:
|
|
744
|
+
suggestedChange: je(n, s, { type: "temporal_bucket", presentation: { mode: "preset", preset: P[0] ?? "short" } })
|
|
745
745
|
})
|
|
746
746
|
);
|
|
747
747
|
return;
|
|
748
748
|
}
|
|
749
749
|
if (w.type === "date") {
|
|
750
|
-
const R = o, P = p.format ?? {}, V = Object.keys(R).filter((
|
|
750
|
+
const R = o, P = p.format ?? {}, V = Object.keys(R).filter((G) => !ca.includes(G) && !Ne(R[G], P[G]));
|
|
751
751
|
if (V.length) {
|
|
752
|
-
const
|
|
752
|
+
const G = Object.fromEntries(Object.entries(w).filter(([B]) => !V.includes(B)));
|
|
753
753
|
i.push(
|
|
754
754
|
Q("format_invalid", {
|
|
755
755
|
message: `A date format set here takes a pattern or a preset; it doesn't set ${V.join(", ")}.`,
|
|
756
756
|
path: d,
|
|
757
757
|
fix: `Leave out ${V.join(", ")}.`,
|
|
758
758
|
allowed: ca.filter((B) => B !== "type"),
|
|
759
|
-
suggestedChange:
|
|
759
|
+
suggestedChange: je(n, s, G)
|
|
760
760
|
})
|
|
761
761
|
);
|
|
762
762
|
return;
|
|
@@ -776,7 +776,7 @@ function jn(e, a, t, s, o, n, i) {
|
|
|
776
776
|
}
|
|
777
777
|
return v && Ne(v, w) ? void 0 : w;
|
|
778
778
|
}
|
|
779
|
-
function
|
|
779
|
+
function Un(e, a, t, s, o, n, i) {
|
|
780
780
|
var x, E;
|
|
781
781
|
const d = o.polarity;
|
|
782
782
|
if (d === void 0) return;
|
|
@@ -808,7 +808,7 @@ function Wn(e, a, t, s, o, n, i) {
|
|
|
808
808
|
}
|
|
809
809
|
return d === (S ?? y ?? va) ? void 0 : d;
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function Qn(e, a, t, s, o, n, i, d) {
|
|
812
812
|
var h, p, v;
|
|
813
813
|
if (o.hidden === void 0 && o.width === void 0) return {};
|
|
814
814
|
const l = Se(i.path, s);
|
|
@@ -819,7 +819,7 @@ function Gn(e, a, t, s, o, n, i, d) {
|
|
|
819
819
|
message: y ? `${s} on ${U(e.title)} has a column for each pivot value; hide or size them in the editor.` : `${U(e.title)} has no hidden columns or column widths; those are for tables.`,
|
|
820
820
|
path: `${l}.${o.hidden !== void 0 ? "hidden" : "width"}`,
|
|
821
821
|
allowed: y ? ["label", "format"] : ["label", "format"].filter((S) => a.settings.has(`columns.${S}`)),
|
|
822
|
-
suggestedChange:
|
|
822
|
+
suggestedChange: Kn(i, s, o)
|
|
823
823
|
})
|
|
824
824
|
), {};
|
|
825
825
|
}
|
|
@@ -836,7 +836,7 @@ function Gn(e, a, t, s, o, n, i, d) {
|
|
|
836
836
|
}
|
|
837
837
|
return c;
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function Hn(e, a, t) {
|
|
840
840
|
var E, C, k, b;
|
|
841
841
|
const { columns: s = {}, ...o } = a.settings ?? {}, n = [], i = xt.some((D) => o[D] !== void 0), d = !!((C = (E = a.highlights) == null ? void 0 : E.add) != null && C.length || (b = (k = a.highlights) == null ? void 0 : k.remove) != null && b.length);
|
|
842
842
|
if (!Object.keys(s).length && !i && !d) return { ok: !0, labels: [], settings: null, warnings: [] };
|
|
@@ -846,7 +846,7 @@ function Un(e, a, t) {
|
|
|
846
846
|
ok: !1,
|
|
847
847
|
problems: [Q("setting_not_for_card", { message: `${U(e.title)} takes no card settings through this tool.`, path: t.path })]
|
|
848
848
|
};
|
|
849
|
-
const c =
|
|
849
|
+
const c = Bn(e, l, o, t, n), h = Ls(e, l, t.sqlResultColumns), p = d ? Ms(e, l, h, a.highlights, t, n) : void 0, v = Ft(e), y = [], S = [];
|
|
850
850
|
for (const [D, w] of Object.entries(s)) {
|
|
851
851
|
const N = Bs(h, D, { path: Se(t.path, D), cardTitle: U(e.title) });
|
|
852
852
|
if (!N.ok) {
|
|
@@ -864,25 +864,25 @@ function Un(e, a, t) {
|
|
|
864
864
|
);
|
|
865
865
|
continue;
|
|
866
866
|
}
|
|
867
|
-
const I =
|
|
867
|
+
const I = jn(e, l, _, D, w, t, n);
|
|
868
868
|
I && y.push(I);
|
|
869
|
-
const R =
|
|
869
|
+
const R = Qn(e, l, _, D, w, v.columns[_.name], t, n), P = w.format !== void 0 ? Wn(e, l, _, D, w.format, t, n) : void 0, V = Un(e, l, _, D, w, t, n), G = {
|
|
870
870
|
column: _.ref,
|
|
871
871
|
...R,
|
|
872
872
|
...P !== void 0 ? { format: P } : {},
|
|
873
873
|
...V !== void 0 ? { polarity: V } : {}
|
|
874
874
|
};
|
|
875
|
-
Object.keys(
|
|
875
|
+
Object.keys(G).length > 1 && S.push(G);
|
|
876
876
|
}
|
|
877
877
|
if (n.length) return { ok: !1, problems: n };
|
|
878
878
|
const x = { ...c, ...S.length ? { columns: S } : {}, ...p ? { highlights: p } : {} };
|
|
879
879
|
return { ok: !0, labels: y, settings: Object.keys(x).length ? x : null, warnings: [] };
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function zn(e) {
|
|
882
882
|
const a = Le(e), t = a && a === Le("number") ? ua.number : e === "temporal_bucket" || e === "date" ? ua[e] : void 0;
|
|
883
883
|
return t ? `Send a stored format: ${t}.` : "Send the format in the stored shape the outline shows.";
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function Yn(e, a, t, s, o) {
|
|
886
886
|
var C, k, b, D, w, N;
|
|
887
887
|
const n = we(e, { sql: !0, calculations: !1 });
|
|
888
888
|
if (!n.editable) return [n.message];
|
|
@@ -899,7 +899,7 @@ function Hn(e, a, t, s, o) {
|
|
|
899
899
|
if (l && !l.editable) return ["the compiled query"];
|
|
900
900
|
const c = l != null && l.editable ? l.query : void 0, h = String(d.datasetName ?? ""), p = [], v = (_) => be(_, h), y = (_, I, R) => {
|
|
901
901
|
const P = I ?? [], V = R ?? [];
|
|
902
|
-
(P.length !== V.length || P.some((
|
|
902
|
+
(P.length !== V.length || P.some((G, B) => v(G) !== v(V[B]))) && p.push(_);
|
|
903
903
|
};
|
|
904
904
|
for (const _ of ["domainId", "datasetName"]) d[_] !== i[_] && p.push(_);
|
|
905
905
|
if (y("measures", d.measures, i.measures), y("columns", d.columns, i.columns), t || n.matrix) {
|
|
@@ -915,30 +915,30 @@ function Hn(e, a, t, s, o) {
|
|
|
915
915
|
R && _a(E[I] ?? {}) !== R && p.push(`the aggregate of measures[${I}]`);
|
|
916
916
|
});
|
|
917
917
|
for (const { key: _, label: I } of qe(a))
|
|
918
|
-
|
|
918
|
+
js(e, _) !== I && p.push(`the label "${I}"`);
|
|
919
919
|
if (!o || o.aspects.includes("filters")) {
|
|
920
920
|
const _ = d.filters ?? [];
|
|
921
921
|
let I = i.filters ?? [];
|
|
922
|
-
const R = d.timeWindow, P = i.timeWindow, V = (
|
|
922
|
+
const R = d.timeWindow, P = i.timeWindow, V = (G, B) => {
|
|
923
923
|
const se = (oe) => JSON.stringify((oe ?? []).map(String));
|
|
924
|
-
return v(
|
|
924
|
+
return v(G.field) === v(B.field) && G.operator === B.operator && (G.scope ?? "row") === (B.scope ?? "row") && (typeof G.field == "object" ? G.field.aggregate : void 0) === (typeof B.field == "object" ? B.field.aggregate : void 0) && (G.values === void 0 || se(G.values) === se(B.values));
|
|
925
925
|
};
|
|
926
926
|
if (R && !P) {
|
|
927
|
-
const
|
|
927
|
+
const G = ((c == null ? void 0 : c.filters) ?? []).filter(
|
|
928
928
|
(B) => !(c != null && c.timeWindow) && !_.some((se) => V(se, B))
|
|
929
929
|
);
|
|
930
|
-
(!
|
|
931
|
-
} else R ?
|
|
932
|
-
(_.length !== I.length || _.some((
|
|
930
|
+
(!G.length || G.some((B) => !I.some((se) => V(B, se)))) && p.push("timeWindow"), I = I.filter((B) => !G.some((se) => V(se, B)));
|
|
931
|
+
} else R ? tn(d.timeWindow, i.timeWindow) || p.push("timeWindow") : P && p.push("timeWindow");
|
|
932
|
+
(_.length !== I.length || _.some((G, B) => !V(G, I[B]))) && p.push("filters");
|
|
933
933
|
}
|
|
934
934
|
if (d.orderBy !== void 0) {
|
|
935
|
-
const _ = d.orderBy, I = (w = (D = e.config) == null ? void 0 : D.sortByColumns) == null ? void 0 : w[0], R = I &&
|
|
935
|
+
const _ = d.orderBy, I = (w = (D = e.config) == null ? void 0 : D.sortByColumns) == null ? void 0 : w[0], R = I && Ws(e.config ?? {}, I), P = _.field && typeof _.field == "object" ? _.field.aggregate : void 0;
|
|
936
936
|
(!I || !R || I.direction !== _.direction || v(_.field) !== Us(R.name, Na(R)) || P !== void 0 && _a(R) !== P) && p.push("orderBy");
|
|
937
937
|
}
|
|
938
938
|
return d.limit !== void 0 && ((N = e.config) == null ? void 0 : N.rowLimit) !== d.limit && p.push("limit"), p;
|
|
939
939
|
}
|
|
940
940
|
function kt(e) {
|
|
941
|
-
const a =
|
|
941
|
+
const a = ja({ variables: [e] })[0];
|
|
942
942
|
return a ? he(a.card) : void 0;
|
|
943
943
|
}
|
|
944
944
|
function rs(e, a) {
|
|
@@ -950,7 +950,7 @@ function Je(e, a) {
|
|
|
950
950
|
const t = e.variables ?? [];
|
|
951
951
|
return t.find((s) => s.name === a) ?? t.find((s) => s.id === a);
|
|
952
952
|
}
|
|
953
|
-
function
|
|
953
|
+
function Jn(e, a, t, s) {
|
|
954
954
|
var i;
|
|
955
955
|
const o = Je(e, a);
|
|
956
956
|
o || s.problem(ls(e, a, t));
|
|
@@ -1031,7 +1031,7 @@ async function wa(e, a, t) {
|
|
|
1031
1031
|
dataSource: h.dataSource,
|
|
1032
1032
|
connectionId: h.connectionId,
|
|
1033
1033
|
get: "only",
|
|
1034
|
-
...(b = d.filters) != null && b.length ? { conditions: await
|
|
1034
|
+
...(b = d.filters) != null && b.length ? { conditions: await Zn(d, n, i, t.refuseAll) } : {}
|
|
1035
1035
|
};
|
|
1036
1036
|
if (l.kind === "aggregate") {
|
|
1037
1037
|
(y.length !== 1 || S.length) && s({
|
|
@@ -1040,7 +1040,7 @@ async function wa(e, a, t) {
|
|
|
1040
1040
|
path: `${i}.query`,
|
|
1041
1041
|
fix: `Send measures: [{ name, aggregate }] alone; for one field's value use get: "only", "first" or "list" with dimensions: [field].`
|
|
1042
1042
|
}), d.orderBy && s({ code: "invalid_change", message: "An aggregate is one value, so it has no order.", path: `${i}.query.orderBy`, fix: "Leave out orderBy." });
|
|
1043
|
-
const w = v(y[0], `${i}.query.measures[0]`), N = typeof y[0] == "string" ? void 0 : y[0].aggregate, _ =
|
|
1043
|
+
const w = v(y[0], `${i}.query.measures[0]`), N = typeof y[0] == "string" ? void 0 : y[0].aggregate, _ = gn(w).filter((P) => Ca(P.value)), I = N ?? (ut(w) ? "calculation" : bn(w));
|
|
1044
1044
|
if (!Ca(I) || !_.some((P) => P.value === I)) {
|
|
1045
1045
|
const P = _.map((V) => V.value);
|
|
1046
1046
|
s({
|
|
@@ -1051,7 +1051,7 @@ async function wa(e, a, t) {
|
|
|
1051
1051
|
allowed: P
|
|
1052
1052
|
});
|
|
1053
1053
|
}
|
|
1054
|
-
const R =
|
|
1054
|
+
const R = Xn(y[0], { ...x, field: w, get: I }, `${i}.query.measures[0].comparison`, s);
|
|
1055
1055
|
return k(Ye({ ...x, field: w, get: I, ...R ? { comparison: R } : {} }, a));
|
|
1056
1056
|
}
|
|
1057
1057
|
(S.length !== 1 || y.length) && s({
|
|
@@ -1096,7 +1096,7 @@ async function wa(e, a, t) {
|
|
|
1096
1096
|
return _.length && t.refuseAll(cs(_, i)), N;
|
|
1097
1097
|
}
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1099
|
+
function Xn(e, a, t, s) {
|
|
1100
1100
|
var n, i;
|
|
1101
1101
|
const o = typeof e == "string" ? void 0 : e.comparison;
|
|
1102
1102
|
if (!(!o || o.kind === "inherit" || o.kind === "off"))
|
|
@@ -1105,14 +1105,14 @@ function Yn(e, a, t, s) {
|
|
|
1105
1105
|
message: "A variable compares with an earlier period, not a target.",
|
|
1106
1106
|
path: t,
|
|
1107
1107
|
fix: "Send comparison: { kind: 'previous_period' } or { kind: 'previous_year' }; put a target in the words, or on a KPI card."
|
|
1108
|
-
}),
|
|
1108
|
+
}), vn(a) || s({
|
|
1109
1109
|
code: "invalid_change",
|
|
1110
1110
|
message: `${((n = a.field) == null ? void 0 : n.label) || ((i = a.field) == null ? void 0 : i.name)} with ${String(a.get)} isn't a number, so it has no comparison.`,
|
|
1111
1111
|
path: t,
|
|
1112
1112
|
fix: "Compare a count, or a numeric field's total, average, lowest or highest; leave comparison out here."
|
|
1113
1113
|
}), Xs(o);
|
|
1114
1114
|
}
|
|
1115
|
-
async function
|
|
1115
|
+
async function Zn(e, a, t, s) {
|
|
1116
1116
|
var n;
|
|
1117
1117
|
const o = await a.compileCardQuery({
|
|
1118
1118
|
query: { domainId: e.domainId, datasetName: e.datasetName, measures: ["__count"], filters: e.filters },
|
|
@@ -1120,8 +1120,8 @@ async function Jn(e, a, t, s) {
|
|
|
1120
1120
|
});
|
|
1121
1121
|
return o.ok ? ((n = o.part.config) == null ? void 0 : n.filters) ?? null : s(o.problems.map((i) => ({ ...i, path: i.path ? `${t}.query.${i.path}` : `${t}.query.filters` })));
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1124
|
-
const n = ds(a), i =
|
|
1123
|
+
function ei(e, a, t, s, o) {
|
|
1124
|
+
const n = ds(a), i = yn(e);
|
|
1125
1125
|
n.kind === "aggregate" && e.get.kind !== "aggregate" && s.problem({ code: "invalid_change", message: `${e.name} reads a field's rows; an aggregate needs its measure.`, path: `${o}.get`, fix: 'Send query with measures: [{ name, aggregate }] and get: "aggregate".' }), n.kind !== "aggregate" && e.get.kind === "aggregate" && s.problem({ code: "invalid_change", message: `${e.name} is an aggregate; a value, the first or a list reads a dimension.`, path: `${o}.get`, fix: "Send query with dimensions: [field] and the get." }), i.mode === "sql" && n.kind !== "only" && n.kind !== "first" && s.problem({ code: "invalid_change", message: "A SQL variable takes the only row or the first row of its result.", path: `${o}.get`, fix: 'Send get: "only" or "first", or write the list in the SQL itself.' });
|
|
1126
1126
|
const d = Ye(
|
|
1127
1127
|
{
|
|
@@ -1134,7 +1134,7 @@ function Xn(e, a, t, s, o) {
|
|
|
1134
1134
|
);
|
|
1135
1135
|
return { query: d.query, get: d.get };
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1137
|
+
function ti(e, a) {
|
|
1138
1138
|
const t = Qa(e).filter(({ ref: i }) => i.source === "data" && i.variableId === a), s = (i) => {
|
|
1139
1139
|
var d;
|
|
1140
1140
|
return `"${((d = (e.sheets ?? []).find((l) => l.id === i)) == null ? void 0 : d.title) ?? i}"`;
|
|
@@ -1150,7 +1150,7 @@ function Zn(e, a) {
|
|
|
1150
1150
|
)
|
|
1151
1151
|
].join(", "), places: t };
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function ai(e, a, t, s, o) {
|
|
1154
1154
|
const { problem: n } = o;
|
|
1155
1155
|
(!Xe(t) || !t.document) && n({
|
|
1156
1156
|
code: "invalid_change",
|
|
@@ -1176,7 +1176,7 @@ function ei(e, a, t, s, o) {
|
|
|
1176
1176
|
path: `${s}.style`,
|
|
1177
1177
|
fix: "Leave style out for a footer line."
|
|
1178
1178
|
});
|
|
1179
|
-
const C = i[x] ?
|
|
1179
|
+
const C = i[x] ? Ho(i[x].blocks, E) : void 0;
|
|
1180
1180
|
l = (C == null ? void 0 : C.content) ?? [], c = C == null ? void 0 : C.style;
|
|
1181
1181
|
}
|
|
1182
1182
|
const h = e.style !== void 0 ? Hs(e.style) : void 0, p = !h || Object.entries(h).every(([x, E]) => (c == null ? void 0 : c[x]) === E);
|
|
@@ -1196,12 +1196,18 @@ function ei(e, a, t, s, o) {
|
|
|
1196
1196
|
};
|
|
1197
1197
|
return { edit: "sectionId" in d ? { type: "updateText", sectionId: d.sectionId, ...y } : { type: "updateRegionText", region: d.region, role: d.role, ...y }, unchanged: v === void 0 && p };
|
|
1198
1198
|
}
|
|
1199
|
+
const si = {
|
|
1200
|
+
matrix: "A Matrix",
|
|
1201
|
+
pie: "A pie chart",
|
|
1202
|
+
detail_table: "A detail table",
|
|
1203
|
+
text: "A text card"
|
|
1204
|
+
};
|
|
1199
1205
|
class me extends Error {
|
|
1200
1206
|
}
|
|
1201
1207
|
const xa = "A text card takes title, description and text.", bt = (e) => e.cards.some((a) => {
|
|
1202
1208
|
var t, s;
|
|
1203
1209
|
return ((t = a.customCardPreferences) == null ? void 0 : t.visualType) === "multiple" || !!((s = a.customCardPreferences) != null && s.dataInputCardIds);
|
|
1204
|
-
}), Tt = (e) => (e ?? "").trim().toLowerCase(), tt = oo, Sa = { measures: lo, records: ro, sql: io },
|
|
1210
|
+
}), Tt = (e) => (e ?? "").trim().toLowerCase(), tt = oo, Sa = { measures: lo, records: ro, sql: io }, We = {
|
|
1205
1211
|
measures: "a measures query (measures, with optional dimensions)",
|
|
1206
1212
|
records: "a records query (columns)",
|
|
1207
1213
|
sql: "a SQL query"
|
|
@@ -1209,9 +1215,9 @@ const xa = "A text card takes title, description and text.", bt = (e) => e.cards
|
|
|
1209
1215
|
function us(e, a) {
|
|
1210
1216
|
return a.path.reduce((t, s) => typeof s == "number" ? `${t}[${s}]` : `${t}.${s}`, e);
|
|
1211
1217
|
}
|
|
1212
|
-
const
|
|
1213
|
-
async function
|
|
1214
|
-
return fs(e, a, t, { limit:
|
|
1218
|
+
const oi = { max: $o, what: "A proposal", fix: "Split the changes into several proposals." };
|
|
1219
|
+
async function Er(e, a, t) {
|
|
1220
|
+
return fs(e, a, t, { limit: oi });
|
|
1215
1221
|
}
|
|
1216
1222
|
async function fs(e, a, t, s) {
|
|
1217
1223
|
var Ut, Qt, Ht, zt, Yt, Jt, Xt, Zt, ea, ta, aa, sa, oa, na, ia, ra;
|
|
@@ -1238,7 +1244,7 @@ async function fs(e, a, t, s) {
|
|
|
1238
1244
|
return;
|
|
1239
1245
|
}
|
|
1240
1246
|
for (const u of f.error.issues) {
|
|
1241
|
-
const g =
|
|
1247
|
+
const g = an(u.message);
|
|
1242
1248
|
o.push({
|
|
1243
1249
|
code: "invalid_change",
|
|
1244
1250
|
message: (g == null ? void 0 : g.message) ?? u.message,
|
|
@@ -1260,19 +1266,19 @@ async function fs(e, a, t, s) {
|
|
|
1260
1266
|
const f = wt(y, [m], p);
|
|
1261
1267
|
f.ok ? (y = f.dashboard, i.push(m)) : b({ code: "invalid_change", message: f.failedAt.message, path: r, ...f.failedAt.fix ? { fix: f.failedAt.fix } : {} });
|
|
1262
1268
|
}, N = async (m) => {
|
|
1263
|
-
var X, Y,
|
|
1269
|
+
var X, Y, K, ne, fe;
|
|
1264
1270
|
const { cardId: r, index: f, path: u } = m, { settings: g = {}, highlights: $ } = m.request, O = g.columns && Object.keys(g.columns).length ? g.columns : void 0, A = Object.entries(g).some(([H, de]) => H !== "columns" && de !== void 0), F = !!((X = $ == null ? void 0 : $.add) != null && X.length);
|
|
1265
1271
|
if (!O && !A && !F && !((Y = $ == null ? void 0 : $.remove) != null && Y.length)) return null;
|
|
1266
1272
|
const T = ie(y, r).card, L = Object.values(O ?? {}).some((H) => H.label === null), q = Object.values(O ?? {}).some((H) => H.format !== void 0 && H.format !== null), M = {};
|
|
1267
|
-
if (L && !((
|
|
1268
|
-
for (const H of
|
|
1273
|
+
if (L && !((K = T.sql) != null && K.trim()))
|
|
1274
|
+
for (const H of En(T)) {
|
|
1269
1275
|
const de = await t.loadCardSource(H);
|
|
1270
1276
|
de && (M[Nt(H)] = de.fields);
|
|
1271
1277
|
}
|
|
1272
|
-
let
|
|
1278
|
+
let W;
|
|
1273
1279
|
if (q && !((ne = T.sql) != null && ne.trim())) {
|
|
1274
1280
|
const H = t.readModelFormats ? await t.readModelFormats({ card: T }) : null;
|
|
1275
|
-
|
|
1281
|
+
W = H ? { status: "read", formats: H } : { status: "unavailable" };
|
|
1276
1282
|
}
|
|
1277
1283
|
let z;
|
|
1278
1284
|
if ((O || F) && ((fe = T.sql) != null && fe.trim()) && T.type !== "kpi") {
|
|
@@ -1284,7 +1290,7 @@ async function fs(e, a, t, s) {
|
|
|
1284
1290
|
fix: "Check that the card runs and returns rows, then propose again."
|
|
1285
1291
|
}), z = H;
|
|
1286
1292
|
}
|
|
1287
|
-
const
|
|
1293
|
+
const j = Hn(
|
|
1288
1294
|
T,
|
|
1289
1295
|
{
|
|
1290
1296
|
settings: { ...g, ...O ? { columns: O } : { columns: void 0 } },
|
|
@@ -1295,13 +1301,13 @@ async function fs(e, a, t, s) {
|
|
|
1295
1301
|
cardRef: m.cardRef,
|
|
1296
1302
|
catalogs: M,
|
|
1297
1303
|
newId: t.newId,
|
|
1298
|
-
...
|
|
1304
|
+
...W ? { modelFormats: W } : {},
|
|
1299
1305
|
...z ? { sqlResultColumns: z } : {}
|
|
1300
1306
|
}
|
|
1301
1307
|
);
|
|
1302
|
-
if (!
|
|
1303
|
-
throw o.push(...
|
|
1304
|
-
for (const H of
|
|
1308
|
+
if (!j.ok)
|
|
1309
|
+
throw o.push(...j.problems), new me();
|
|
1310
|
+
for (const H of j.labels) {
|
|
1305
1311
|
const de = m.queryLabels.find((Ae) => He(Ae.key, H.key) && Ae.label !== H.label);
|
|
1306
1312
|
de && b({
|
|
1307
1313
|
code: "value_invalid",
|
|
@@ -1310,7 +1316,7 @@ async function fs(e, a, t, s) {
|
|
|
1310
1316
|
fix: "State the label once."
|
|
1311
1317
|
});
|
|
1312
1318
|
}
|
|
1313
|
-
return n.push(...
|
|
1319
|
+
return n.push(...j.warnings), j.labels.length && pa(T, j.labels).changed.length && w({ op: "card.update", cardId: r, update: { kind: "relabel", labels: j.labels }, changeIndex: f }, `${u}.columns`), j.settings && w({ op: "card.update", cardId: r, update: { kind: "settings", settings: j.settings }, changeIndex: f }, O ? `${u}.columns` : u), j.settings;
|
|
1314
1320
|
}, _ = (m, r) => {
|
|
1315
1321
|
var g;
|
|
1316
1322
|
const f = ie(y, m);
|
|
@@ -1330,7 +1336,7 @@ async function fs(e, a, t, s) {
|
|
|
1330
1336
|
}), { card: f.card, read: u };
|
|
1331
1337
|
}, I = /* @__PURE__ */ new Map(), R = (m, r, f) => {
|
|
1332
1338
|
var g;
|
|
1333
|
-
const u =
|
|
1339
|
+
const u = Ka("metric", ((g = m.config) == null ? void 0 : g.metricColumns) ?? []);
|
|
1334
1340
|
return r.map(({ index: $, calculations: O }) => ({
|
|
1335
1341
|
...O,
|
|
1336
1342
|
measure: u[$] ?? { role: "metric", field: "", ordinal: $ },
|
|
@@ -1361,15 +1367,15 @@ async function fs(e, a, t, s) {
|
|
|
1361
1367
|
trend: m.trend,
|
|
1362
1368
|
trendGrain: m.trendGrain,
|
|
1363
1369
|
seeRecords: m.seeRecords
|
|
1364
|
-
}),
|
|
1365
|
-
const { card: g } = r, $ = [...m.type ? ["type"] : [], ...m.query ? ["query"] : [], ...m.matrix ? ["matrix"] : [], ...
|
|
1370
|
+
}), G = (m) => Object.entries(V(m)).filter(([, r]) => r !== void 0).map(([r]) => r), B = (m) => (o.push(...m.slice(0, -1)), b(m[m.length - 1])), se = (m, r, f, u) => {
|
|
1371
|
+
const { card: g } = r, $ = [...m.type ? ["type"] : [], ...m.query ? ["query"] : [], ...m.matrix ? ["matrix"] : [], ...G(m)];
|
|
1366
1372
|
$.length && b({
|
|
1367
1373
|
code: "invalid_change",
|
|
1368
1374
|
message: `"${g.title}" is a text card, so it takes no ${et($)}.`,
|
|
1369
1375
|
path: u,
|
|
1370
1376
|
fix: "Change a card to or from text in the editor, or add a new card and remove this one."
|
|
1371
1377
|
});
|
|
1372
|
-
const O =
|
|
1378
|
+
const O = Ga(g, { inputs: y.inputs, variables: y.variables });
|
|
1373
1379
|
O.editable || b({ code: "card_not_editable", message: O.message, path: `${u}.cardId`, fix: "Tell the user to change it in the editor.", details: { reason: "text" } });
|
|
1374
1380
|
const A = O.editable && (O.form === "legacy_html" || O.form === "legacy_runs");
|
|
1375
1381
|
A && m.description !== void 0 && m.text === void 0 && b({
|
|
@@ -1453,7 +1459,7 @@ async function fs(e, a, t, s) {
|
|
|
1453
1459
|
}
|
|
1454
1460
|
const g = (y.sheets ?? []).find(($) => $.id === u);
|
|
1455
1461
|
return g || b({ code: "sheet_not_found", message: `There's no sheet ${u} on this dashboard.`, path: r, fix: "Read the outline again and use its sheet ids.", details: { sheets: Be() } }), f.grid && Xe(g) && b({ code: "sheet_not_a_grid", message: `"${g.title}" is a Document sheet.`, path: r, fix: "Add the card to a grid sheet; Document sheets are changed in the editor.", details: { sheets: Be() } }), g;
|
|
1456
|
-
}, Re = (m, r) => it(m, r, { grid: !0 }), Vt = (m, r) => m.map((f, u) => Re(f, `${r}.sheetIds[${u}]`).id),
|
|
1462
|
+
}, Re = (m, r) => it(m, r, { grid: !0 }), Vt = (m, r) => m.map((f, u) => Re(f, `${r}.sheetIds[${u}]`).id), Gt = (m, r, f, u) => {
|
|
1457
1463
|
var A;
|
|
1458
1464
|
for (const F of Ma(r, f)) b({ ...F, path: `${u}.${F.path}` });
|
|
1459
1465
|
const g = Fe[m], $ = tt(r), O = r.dateField;
|
|
@@ -1466,9 +1472,9 @@ async function fs(e, a, t, s) {
|
|
|
1466
1472
|
const F = Object.keys(Fe).filter((T) => Fe[T].forms.includes($));
|
|
1467
1473
|
b({
|
|
1468
1474
|
code: "type_not_supported",
|
|
1469
|
-
message: `A ${m.replace(/_/g, " ")} card takes ${g.forms.map((T) =>
|
|
1475
|
+
message: `A ${m.replace(/_/g, " ")} card takes ${g.forms.map((T) => We[T]).join(" or ")}, not ${We[$]}.`,
|
|
1470
1476
|
path: `${u}.query`,
|
|
1471
|
-
fix: `Send ${g.forms.map((T) =>
|
|
1477
|
+
fix: `Send ${g.forms.map((T) => We[T]).join(" or ")}, or use a type this query fits: ${F.join(", ")}.`
|
|
1472
1478
|
});
|
|
1473
1479
|
}
|
|
1474
1480
|
if ($ === "measures") {
|
|
@@ -1497,30 +1503,30 @@ async function fs(e, a, t, s) {
|
|
|
1497
1503
|
fix: "Send matrix: { columns: [...] } naming dimensions or the date field of the query (an empty list puts nothing across the top)."
|
|
1498
1504
|
}), !g.matrixColumns && f && b({ code: "type_not_supported", message: "matrix.columns is only for Matrix cards.", path: `${u}.matrix`, fix: 'Leave out matrix, or use type "matrix".' }), f && $ === "measures") {
|
|
1499
1505
|
const F = r, T = F.datasetName, L = [...F.dimensions ?? [], ...F.timeGrain && F.dateField ? [F.dateField] : []];
|
|
1500
|
-
L.length && f.columns.length >= L.length && L.every((M) => f.columns.some((
|
|
1506
|
+
L.length && f.columns.length >= L.length && L.every((M) => f.columns.some((W) => be(W, T) === be(M, T))) && b({
|
|
1501
1507
|
code: "type_not_supported",
|
|
1502
1508
|
message: "A Matrix needs at least one field down the side.",
|
|
1503
1509
|
path: `${u}.matrix.columns`,
|
|
1504
1510
|
fix: "Leave one dimension or the date field out of matrix.columns."
|
|
1505
1511
|
});
|
|
1506
1512
|
const q = new Set([...F.dimensions ?? [], ...F.dateField ? [F.dateField] : []].map((M) => be(M, T)));
|
|
1507
|
-
f.columns.forEach((M,
|
|
1513
|
+
f.columns.forEach((M, W) => {
|
|
1508
1514
|
q.has(be(M, T)) || b({
|
|
1509
1515
|
code: "type_not_supported",
|
|
1510
1516
|
message: `"${Ct(M)}" isn't one of the query's dimensions or its date field.`,
|
|
1511
|
-
path: `${u}.matrix.columns[${
|
|
1517
|
+
path: `${u}.matrix.columns[${W}]`,
|
|
1512
1518
|
fix: "Name dimensions or the date field of the query in matrix.columns."
|
|
1513
1519
|
});
|
|
1514
1520
|
});
|
|
1515
1521
|
}
|
|
1516
|
-
},
|
|
1522
|
+
}, Kt = (m, r) => b({
|
|
1517
1523
|
code: m.code === "query_not_kept" ? "card_not_editable" : "invalid_change",
|
|
1518
1524
|
message: m.message,
|
|
1519
1525
|
path: `${r}.query`,
|
|
1520
1526
|
fix: m.code === "query_not_kept" ? "Tell the user to make this change in the editor." : "Read the outline again and propose again.",
|
|
1521
1527
|
details: { reason: "not_expressible", ..."parts" in m ? { parts: m.parts } : {} }
|
|
1522
|
-
}),
|
|
1523
|
-
const A =
|
|
1528
|
+
}), jt = (m, r, f, u, g, $, O) => {
|
|
1529
|
+
const A = Yn(m, r, f, $, O);
|
|
1524
1530
|
if (!A.length) return;
|
|
1525
1531
|
const F = r;
|
|
1526
1532
|
if (A.length === 1 && A[0] === "dateField" && F.dateField && !F.timeGrain && !F.timeWindow) {
|
|
@@ -1540,28 +1546,41 @@ async function fs(e, a, t, s) {
|
|
|
1540
1546
|
fix: O ? "Tell the user to make this change in the editor." : `Leave out ${T}; the rest of the card can be added.`,
|
|
1541
1547
|
details: { reason: "not_expressible", detail: `doesn't hold: ${T}` }
|
|
1542
1548
|
});
|
|
1543
|
-
},
|
|
1549
|
+
}, Wt = async (m, r, f, u, g = !1) => {
|
|
1544
1550
|
const $ = ct(m);
|
|
1545
1551
|
if ("sql" in r)
|
|
1546
1552
|
return D(`${u}.query`), { type: $, source: { kind: "sql", connectionId: r.connectionId, sql: r.sql } };
|
|
1553
|
+
"measures" in r && r.timeGrain === uo && (fo({ cardType: $, configBacked: !0, shelf: "groupBy", dataType: "date" }).ok || b(
|
|
1554
|
+
m === "kpi" ? {
|
|
1555
|
+
code: "type_not_supported",
|
|
1556
|
+
message: "A KPI's query can't group by a grain that follows the dashboard date.",
|
|
1557
|
+
path: `${u}.query.timeGrain`,
|
|
1558
|
+
fix: 'For a trend that follows the dashboard date, send trend: true and trendGrain: "automatic" with no Trend By.'
|
|
1559
|
+
} : {
|
|
1560
|
+
code: "type_not_supported",
|
|
1561
|
+
message: `${si[m] ?? `A ${m.replace(/_/g, " ")}`} can't group by a grain that follows the dashboard date.`,
|
|
1562
|
+
path: `${u}.query.timeGrain`,
|
|
1563
|
+
fix: 'Use a bar, line or area chart or a table, or send a fixed timeGrain such as "month".'
|
|
1564
|
+
}
|
|
1565
|
+
));
|
|
1547
1566
|
const O = $ === "matrixTable" || $ === "detailTable" ? "table" : $, A = await t.compileCardQuery({ query: r, chartType: O });
|
|
1548
1567
|
if (!A.ok)
|
|
1549
1568
|
throw o.push(...A.problems.map((q) => ({ ...q, path: q.path ? `${u}.query.${q.path}` : `${u}.query` }))), new me();
|
|
1550
1569
|
n.push(...A.warnings.map((q) => ({ ...q, path: q.path ?? `${u}.query` })));
|
|
1551
|
-
const F = !g && "timeWindow" in r && r.timeWindow ?
|
|
1552
|
-
F && "timeWindow" in r && r.timeWindow && hs(r.timeWindow, { use: "cardFilter", columnHasTime:
|
|
1570
|
+
const F = !g && "timeWindow" in r && r.timeWindow ? mi(A.part.config) : void 0;
|
|
1571
|
+
F && "timeWindow" in r && r.timeWindow && hs(r.timeWindow, { use: "cardFilter", columnHasTime: mo(F) }, `${u}.query.timeWindow`, b);
|
|
1553
1572
|
let T = { ...A.part, type: $ };
|
|
1554
1573
|
const L = T.config ?? {};
|
|
1555
1574
|
if ($ === "detailTable") {
|
|
1556
|
-
const q =
|
|
1557
|
-
T = { ...T, config:
|
|
1575
|
+
const q = ho(po("table", "detailTable", L)) ?? {};
|
|
1576
|
+
T = { ...T, config: ii(q) };
|
|
1558
1577
|
}
|
|
1559
|
-
return $ === "matrixTable" && (T = await vs(T, L, r, f, u)),
|
|
1578
|
+
return $ === "matrixTable" && (T = await vs(T, L, r, f, u)), ri(T, qe(r));
|
|
1560
1579
|
}, vs = async (m, r, f, u, g) => {
|
|
1561
1580
|
var q;
|
|
1562
1581
|
const $ = await t.loadCardSource({ domainId: f.domainId, datasetName: f.datasetName });
|
|
1563
1582
|
if ($ || b({ code: "field_not_found", message: `The dataset "${f.datasetName}" isn't available.`, path: `${g}.query.datasetName`, fix: "Find datasets with semaphor_list_datasets." }), m.source.kind !== "semantic") throw new me();
|
|
1564
|
-
const O = { id: "scratch", title: "", type: "table", dataSource: m.source.dataSource, config: r }, A =
|
|
1583
|
+
const O = { id: "scratch", title: "", type: "table", dataSource: m.source.dataSource, config: r }, A = bo(O, "matrixTable", { catalog: $.fields, createId: t.newId }), F = A.status === "changed" ? (q = A.card.config) == null ? void 0 : q.matrix : void 0;
|
|
1565
1584
|
(A.status !== "changed" || A.leftOut.length || !F) && b({
|
|
1566
1585
|
code: "type_not_supported",
|
|
1567
1586
|
message: A.status === "changed" && A.leftOut.length ? `These fields can't run in a Matrix: ${A.leftOut.join(", ")}.` : "This query can't be shown as a Matrix.",
|
|
@@ -1570,11 +1589,11 @@ async function fs(e, a, t, s) {
|
|
|
1570
1589
|
});
|
|
1571
1590
|
let T = F;
|
|
1572
1591
|
const L = f.datasetName;
|
|
1573
|
-
for (const [M,
|
|
1592
|
+
for (const [M, W] of u.columns.entries()) {
|
|
1574
1593
|
const z = [...T.spec.rows, ...T.spec.columns].find(
|
|
1575
|
-
(
|
|
1594
|
+
(j) => yo(j.field) === be(W, L)
|
|
1576
1595
|
);
|
|
1577
|
-
z || b({ code: "type_not_supported", message: `"${Ct(
|
|
1596
|
+
z || b({ code: "type_not_supported", message: `"${Ct(W)}" isn't a level of this Matrix.`, path: `${g}.matrix.columns[${M}]`, fix: "Name dimensions or the date field of the query in matrix.columns." }), T = vo(T, Io(T.spec, z.id, "columns")).config;
|
|
1578
1597
|
}
|
|
1579
1598
|
return { ...m, config: { matrix: T } };
|
|
1580
1599
|
}, rt = /* @__PURE__ */ new Map(), dt = /* @__PURE__ */ new Map();
|
|
@@ -1584,20 +1603,20 @@ async function fs(e, a, t, s) {
|
|
|
1584
1603
|
switch (r.op) {
|
|
1585
1604
|
case "card.add": {
|
|
1586
1605
|
const u = r.position && typeof r.position == "object" ? (() => {
|
|
1587
|
-
const Y = oe(r.position.after, `${f}.position.after`),
|
|
1606
|
+
const Y = oe(r.position.after, `${f}.position.after`), K = xe(y).find(
|
|
1588
1607
|
(ne) => ne.cardId === Y && ne.kind === "frameCard"
|
|
1589
1608
|
);
|
|
1590
|
-
return !
|
|
1609
|
+
return !K || K.kind !== "frameCard" ? b({
|
|
1591
1610
|
code: "card_not_found",
|
|
1592
1611
|
message: `${r.position.after} isn't a card on a grid sheet.`,
|
|
1593
1612
|
path: `${f}.position.after`,
|
|
1594
1613
|
fix: "Use a cardId from semaphor_get_dashboard_details on the same sheet, or a handle from this proposal."
|
|
1595
|
-
}) : (r.sheetId && Re(r.sheetId, `${f}.sheetId`).id !==
|
|
1614
|
+
}) : (r.sheetId && Re(r.sheetId, `${f}.sheetId`).id !== K.sheetId && b({
|
|
1596
1615
|
code: "invalid_change",
|
|
1597
1616
|
message: `position.after names a card on another sheet than ${r.sheetId}.`,
|
|
1598
1617
|
path: `${f}.position.after`,
|
|
1599
1618
|
fix: "Leave out sheetId, or name the card's sheet."
|
|
1600
|
-
}), { sheetId:
|
|
1619
|
+
}), { sheetId: K.sheetId, frameId: K.frameId });
|
|
1601
1620
|
})() : void 0, g = u ? Re(u.sheetId, `${f}.position.after`) : r.sheetId ? Re(r.sheetId, `${f}.sheetId`) : (() => {
|
|
1602
1621
|
const Y = nt();
|
|
1603
1622
|
return Y.length !== 1 && b({
|
|
@@ -1608,19 +1627,19 @@ async function fs(e, a, t, s) {
|
|
|
1608
1627
|
details: { sheets: Be() }
|
|
1609
1628
|
}), Y[0];
|
|
1610
1629
|
})(), $ = u ? { after: u.frameId } : typeof r.position == "string" ? r.position : void 0, O = $ || r.width ? { ...$ ? { position: $ } : {}, ...r.width ? { width: r.width } : {} } : void 0, A = (Y) => {
|
|
1611
|
-
const
|
|
1612
|
-
return h.has(
|
|
1630
|
+
const K = r.handle ?? `$card_${++x}`;
|
|
1631
|
+
return h.has(K) && b({ code: "invalid_change", message: `The handle ${K} is defined twice.`, path: `${f}.handle`, fix: "Give each new card, filter or sheet its own handle." }), h.set(K, { kind: "card", id: Y.id, title: r.title }), d.push({ ref: K, kind: "card", id: Y.id, title: r.title, changeIndex: m }), K;
|
|
1613
1632
|
};
|
|
1614
1633
|
if (r.type === "text") {
|
|
1615
|
-
const Y = [...r.query ? ["query"] : [], ...r.matrix ? ["matrix"] : [], ...
|
|
1634
|
+
const Y = [...r.query ? ["query"] : [], ...r.matrix ? ["matrix"] : [], ...G(r)];
|
|
1616
1635
|
Y.length && b({ code: "invalid_change", message: `A text card takes no ${et(Y)}.`, path: f, fix: xa }), r.text === void 0 && b({ code: "invalid_change", message: "A text card needs its words in text.", path: `${f}.text`, fix: xa });
|
|
1617
|
-
const
|
|
1618
|
-
|
|
1619
|
-
const ne =
|
|
1636
|
+
const K = ga({ text: r.text, context: { dashboard: y, place: { kind: "sheet", sheetId: g.id } }, path: `${f}.text` });
|
|
1637
|
+
K.ok || B(K.problems);
|
|
1638
|
+
const ne = Yo({
|
|
1620
1639
|
id: t.newId(),
|
|
1621
1640
|
title: r.title,
|
|
1622
1641
|
...r.description ? { description: r.description } : {},
|
|
1623
|
-
richContent:
|
|
1642
|
+
richContent: K.ok && !K.unchanged ? K.richContent : { version: 1, blocks: [{ type: "paragraph", children: [] }] }
|
|
1624
1643
|
});
|
|
1625
1644
|
w({ op: "card.add", sheetId: g.id, frame: { id: t.newId(), cards: [ne], activeCardId: ne.id }, ...O ? { placement: O } : {}, changeIndex: m }, f), A(ne);
|
|
1626
1645
|
break;
|
|
@@ -1632,16 +1651,16 @@ async function fs(e, a, t, s) {
|
|
|
1632
1651
|
fix: "Send query; text is for type text."
|
|
1633
1652
|
});
|
|
1634
1653
|
const F = yt(r.query), T = F.query, L = r.type;
|
|
1635
|
-
|
|
1636
|
-
const q = await
|
|
1637
|
-
...
|
|
1654
|
+
Gt(L, T, r.matrix, f);
|
|
1655
|
+
const q = await Wt(L, T, r.matrix, f), M = {
|
|
1656
|
+
...Jo({ id: t.newId(), title: r.title, ...r.description ? { description: r.description } : {} }),
|
|
1638
1657
|
type: q.type
|
|
1639
|
-
},
|
|
1640
|
-
|
|
1641
|
-
const z =
|
|
1642
|
-
|
|
1643
|
-
const
|
|
1644
|
-
w({ op: "card.add", sheetId: g.id, frame:
|
|
1658
|
+
}, W = ha(M, q);
|
|
1659
|
+
W.ok || b({ code: "invalid_change", message: W.message, path: f });
|
|
1660
|
+
const z = W.ok ? W.card : M;
|
|
1661
|
+
jt(z, T, r.matrix, f, r.title, q);
|
|
1662
|
+
const j = { id: t.newId(), cards: [z], activeCardId: z.id };
|
|
1663
|
+
w({ op: "card.add", sheetId: g.id, frame: j, ...O ? { placement: O } : {}, changeIndex: m }, f);
|
|
1645
1664
|
const X = A(z);
|
|
1646
1665
|
c.push(z.id), await P({ cardId: z.id, cardRef: X, stated: F.calculations, index: m, path: f }), await N({
|
|
1647
1666
|
cardId: z.id,
|
|
@@ -1664,30 +1683,30 @@ async function fs(e, a, t, s) {
|
|
|
1664
1683
|
let A = !1, F = [];
|
|
1665
1684
|
const T = r.type && r.type !== ((Ut = Ee($)) == null ? void 0 : Ut.type) ? ct(r.type) : void 0;
|
|
1666
1685
|
if (T && T !== $.type) {
|
|
1667
|
-
const q = O.editable ? O.source : void 0, M = eo($, T),
|
|
1668
|
-
...
|
|
1669
|
-
...M && !
|
|
1686
|
+
const q = O.editable ? O.source : void 0, M = eo($, T), W = M && q && q.kind === "semantic" ? (Qt = await t.loadCardSource({ domainId: q.domainId, datasetName: q.datasetName })) == null ? void 0 : Qt.fields : void 0, z = [], j = to($, T, {
|
|
1687
|
+
...W ? { catalog: W } : {},
|
|
1688
|
+
...M && !W ? { catalogLoading: !0 } : {},
|
|
1670
1689
|
createId: () => {
|
|
1671
1690
|
const X = t.newId();
|
|
1672
1691
|
return z.push(X), X;
|
|
1673
1692
|
}
|
|
1674
1693
|
});
|
|
1675
|
-
if (
|
|
1676
|
-
const X = [...
|
|
1694
|
+
if (j.status === "refused" && b({ code: "type_not_supported", message: "The card's dataset fields couldn't be loaded for a change to or from a Matrix.", path: `${f}.type`, fix: "Send a complete query with the type change." }), j.status === "changed") {
|
|
1695
|
+
const X = [...j.leftOut, ...j.droppedPreferences];
|
|
1677
1696
|
X.length && n.push({
|
|
1678
1697
|
code: "type_change_drops",
|
|
1679
1698
|
message: `Changing "${$.title}" to ${r.type.replace(/_/g, " ")} leaves out ${X.join(", ")}.`,
|
|
1680
1699
|
path: `${f}.type`,
|
|
1681
1700
|
details: { dropped: X }
|
|
1682
1701
|
}), w(
|
|
1683
|
-
{ op: "card.update", cardId: u, update: { kind: "retype", type: T, ...
|
|
1702
|
+
{ op: "card.update", cardId: u, update: { kind: "retype", type: T, ...W ? { catalog: W } : {}, newIds: z }, changeIndex: m },
|
|
1684
1703
|
`${f}.type`
|
|
1685
1704
|
), A = !0;
|
|
1686
1705
|
}
|
|
1687
1706
|
}
|
|
1688
1707
|
const L = r.query ? yt(r.query) : void 0;
|
|
1689
1708
|
if (r.query || r.matrix) {
|
|
1690
|
-
const q = ie(y, u).card, M = we(q, { sql: !0, calculations: !1 }),
|
|
1709
|
+
const q = ie(y, u).card, M = we(q, { sql: !0, calculations: !1 }), W = M.editable ? yt(M.query).query : void 0, z = W, j = ui(z, (L == null ? void 0 : L.query) ?? {}, `${f}.query`, (le) => {
|
|
1691
1710
|
if (le.code === "query_form_mismatch" && (L != null && L.calculations.length)) {
|
|
1692
1711
|
const pe = R(q, L.calculations, f), Ce = fa({ card: q, stated: pe, context: { path: f, cardRef: r.cardId, dates: ka(q) } });
|
|
1693
1712
|
if (!Ce.ok)
|
|
@@ -1695,22 +1714,22 @@ async function fs(e, a, t, s) {
|
|
|
1695
1714
|
}
|
|
1696
1715
|
return b(le);
|
|
1697
1716
|
});
|
|
1698
|
-
F =
|
|
1717
|
+
F = ci((L == null ? void 0 : L.query) ?? {}, j);
|
|
1699
1718
|
const X = ((Ht = Ee(q)) == null ? void 0 : Ht.type) ?? $t(q.type), Y = r.matrix ?? (M.editable ? M.matrix : void 0);
|
|
1700
|
-
|
|
1701
|
-
const
|
|
1702
|
-
H &&
|
|
1703
|
-
let de =
|
|
1704
|
-
if (
|
|
1705
|
-
const { orderBy: le, ...pe } =
|
|
1719
|
+
Gt(X, j, Y, f);
|
|
1720
|
+
const K = M.editable && W ? ao(W, j, M.matrix, Y) : void 0, ne = !K || K.aspects.length > 0, fe = K && !("sql" in j) ? qe(j).filter((le) => !ma(K, le.key.role)) : [], H = so(q, K, fe.map((le) => le.key.role));
|
|
1721
|
+
H && Kt(H, f);
|
|
1722
|
+
let de = j;
|
|
1723
|
+
if (K && !("sql" in j) && j.orderBy && !K.aspects.includes("order") && ["metric", "group_by", "detail"].some((le) => ma(K, le))) {
|
|
1724
|
+
const { orderBy: le, ...pe } = j;
|
|
1706
1725
|
de = pe;
|
|
1707
1726
|
}
|
|
1708
1727
|
let Ae;
|
|
1709
1728
|
if (ne) {
|
|
1710
|
-
const le = !!(z && ms(z, (L == null ? void 0 : L.query) ?? {}) && (
|
|
1729
|
+
const le = !!(z && ms(z, (L == null ? void 0 : L.query) ?? {}) && (K != null && K.keptWindow)), pe = await Wt(X, de, Y, f, le), Ce = pe.type === ct(X) ? { ...pe, type: q.type } : pe;
|
|
1711
1730
|
Ae = Ce;
|
|
1712
|
-
const da =
|
|
1713
|
-
if (ge.ok ||
|
|
1731
|
+
const da = K ? { ...Ce, change: K } : Ce, ge = ha(q, da);
|
|
1732
|
+
if (ge.ok || Kt(ge, f), ge.ok && ge.droppedBindings.length && n.push({
|
|
1714
1733
|
code: "control_binding_dropped",
|
|
1715
1734
|
message: `"${q.title}" loses the controls bound to the levels or measures this change removes; they stop changing this card.`,
|
|
1716
1735
|
path: `${f}.query`,
|
|
@@ -1727,7 +1746,7 @@ async function fs(e, a, t, s) {
|
|
|
1727
1746
|
});
|
|
1728
1747
|
w({ op: "card.update", cardId: u, update: { kind: "requery", query: da }, changeIndex: m }, `${f}.query`), A = !0;
|
|
1729
1748
|
}
|
|
1730
|
-
fe.length && pa(ie(y, u).card, fe).changed.length && w({ op: "card.update", cardId: u, update: { kind: "relabel", labels: fe }, changeIndex: m }, `${f}.query`), (ne || fe.length) &&
|
|
1749
|
+
fe.length && pa(ie(y, u).card, fe).changed.length && w({ op: "card.update", cardId: u, update: { kind: "relabel", labels: fe }, changeIndex: m }, `${f}.query`), (ne || fe.length) && jt(ie(y, u).card, de, Y, f, q.title ?? "", Ae, K);
|
|
1731
1750
|
}
|
|
1732
1751
|
(r.query || T) && await P({ cardId: u, cardRef: r.cardId, stated: (L == null ? void 0 : L.calculations) ?? [], index: m, path: f }) && (A = !0), (r.title !== void 0 || r.description !== void 0) && w(
|
|
1733
1752
|
{
|
|
@@ -1772,7 +1791,7 @@ async function fs(e, a, t, s) {
|
|
|
1772
1791
|
fix: "Use one of details.available, or read semaphor_get_dataset_schema.",
|
|
1773
1792
|
details: { available: u.fields.slice(0, 20).map((L) => L.name) }
|
|
1774
1793
|
});
|
|
1775
|
-
const $ = r.sheetIds ? Vt(r.sheetIds, f) : void 0, O = Ta($), A =
|
|
1794
|
+
const $ = r.sheetIds ? Vt(r.sheetIds, f) : void 0, O = Ta($), A = zo({
|
|
1776
1795
|
field: g,
|
|
1777
1796
|
dataSource: u.dataSource,
|
|
1778
1797
|
connectionId: u.connectionId,
|
|
@@ -1810,7 +1829,7 @@ async function fs(e, a, t, s) {
|
|
|
1810
1829
|
...r.selection !== void 0 || A ? { definition: O } : {},
|
|
1811
1830
|
// A change of sheets states the sheets; what else the scope says (the cards it leaves out,
|
|
1812
1831
|
// whether it covers Document sheets) stays.
|
|
1813
|
-
...F ? { scope:
|
|
1832
|
+
...F ? { scope: Mo(
|
|
1814
1833
|
$.scope,
|
|
1815
1834
|
Ta(F === "all" ? void 0 : F),
|
|
1816
1835
|
new Set([...Ot(y).values()].filter((L) => L.sheetKind === "document").map((L) => L.sheetId))
|
|
@@ -1833,7 +1852,7 @@ async function fs(e, a, t, s) {
|
|
|
1833
1852
|
path: `${f}.filterId`,
|
|
1834
1853
|
fix: "Tell the user to change it in the editor; removing or excluding it works."
|
|
1835
1854
|
});
|
|
1836
|
-
const $ = Bt(r.cardId, `${f}.cardId`), O =
|
|
1855
|
+
const $ = Bt(r.cardId, `${f}.cardId`), O = Wa(y, $).card, A = Ie(y).findFilterInput({ inputId: u }), F = A && $e(A.input, O, v).reach === "relationshipApplied", T = await hi(O, r.field, t, `${f}.field`, b, F ? g.label : void 0);
|
|
1837
1856
|
w({ op: "filter.bind", filterId: u, cardId: $, binding: { kind: "bound", cardId: $, bindingId: t.newId(), target: T }, changeIndex: m }, f), d.push({ ref: r.filterId, kind: "filter", id: u, title: g.label, changeIndex: m });
|
|
1838
1857
|
break;
|
|
1839
1858
|
}
|
|
@@ -1852,7 +1871,7 @@ async function fs(e, a, t, s) {
|
|
|
1852
1871
|
break;
|
|
1853
1872
|
}
|
|
1854
1873
|
case "layout.tabs": {
|
|
1855
|
-
const u = r.cardIds.map((q, M) => oe(q, `${f}.cardIds[${M}]`)), g = (q, M,
|
|
1874
|
+
const u = r.cardIds.map((q, M) => oe(q, `${f}.cardIds[${M}]`)), g = (q, M, W = `${f}.cardIds`) => b({ code: "layout_invalid", message: q, path: W, fix: M });
|
|
1856
1875
|
new Set(u).size !== u.length && g("Each card is named once in tabs.", "Name two or more different cards, each once.");
|
|
1857
1876
|
const $ = u.map((q, M) => ie(y, q) ?? g("A Document section's card can't be a tab.", "Name cards on a grid sheet.", `${f}.cardIds[${M}]`)), O = $[0].sheet;
|
|
1858
1877
|
$.some((q) => q.sheet.id !== O.id) && g("Tabs are cards on one sheet.", "Name cards on one sheet; a card moves to another sheet in the editor."), $.some((q) => bt(q.frame) && q.frame.cards.length > 1) && g("A custom visual's inputs stay in its spot.", "Name cards that aren't a custom visual's inputs, or arrange them in the editor.");
|
|
@@ -1931,7 +1950,7 @@ async function fs(e, a, t, s) {
|
|
|
1931
1950
|
case "dashboard.style": {
|
|
1932
1951
|
const { op: u, ...g } = r;
|
|
1933
1952
|
S ?? (S = t.readOrganizationAppearance ? t.readOrganizationAppearance() : Promise.resolve(null));
|
|
1934
|
-
const { style: $, organizationAppearance: O } = za(y, await S), A =
|
|
1953
|
+
const { style: $, organizationAppearance: O } = za(y, await S), A = ln({ style: $, edit: g, layers: { organizationAppearance: O } });
|
|
1935
1954
|
if (A.ok)
|
|
1936
1955
|
A.sentences.length && w({ op: "dashboard.style", style: A.style, sentences: A.sentences, changeIndex: m }, f);
|
|
1937
1956
|
else {
|
|
@@ -1960,7 +1979,7 @@ async function fs(e, a, t, s) {
|
|
|
1960
1979
|
break;
|
|
1961
1980
|
}
|
|
1962
1981
|
case "variable.update": {
|
|
1963
|
-
const u =
|
|
1982
|
+
const u = Jn(y, r.name, `${f}.name`, Te), g = r.rename ?? u.name, $ = {
|
|
1964
1983
|
...r.rename !== void 0 ? { name: r.rename } : {},
|
|
1965
1984
|
...r.label !== void 0 ? { label: r.label } : {},
|
|
1966
1985
|
...r.presentation !== void 0 ? { presentation: r.presentation } : {},
|
|
@@ -1983,7 +2002,7 @@ async function fs(e, a, t, s) {
|
|
|
1983
2002
|
);
|
|
1984
2003
|
$.query = T.query, $.get = T.get;
|
|
1985
2004
|
} else if (r.get !== void 0) {
|
|
1986
|
-
const T =
|
|
2005
|
+
const T = ei(u, r.get, O, Te, f);
|
|
1987
2006
|
$.query = T.query, $.get = T.get;
|
|
1988
2007
|
}
|
|
1989
2008
|
Object.keys($).length || b({ code: "invalid_change", message: `variable.update on ${u.name} changes nothing.`, path: f, fix: "Send rename, label, query, get, presentation or emptyText." });
|
|
@@ -1994,7 +2013,7 @@ async function fs(e, a, t, s) {
|
|
|
1994
2013
|
case "variable.remove": {
|
|
1995
2014
|
const u = Je(y, r.name);
|
|
1996
2015
|
u || b(ls(y, r.name, `${f}.name`));
|
|
1997
|
-
const g = u, $ =
|
|
2016
|
+
const g = u, $ = ti(y, g.id);
|
|
1998
2017
|
$.places.length && b({
|
|
1999
2018
|
code: "variable_in_use",
|
|
2000
2019
|
message: `${g.name} is shown in ${$.words}.`,
|
|
@@ -2005,7 +2024,7 @@ async function fs(e, a, t, s) {
|
|
|
2005
2024
|
break;
|
|
2006
2025
|
}
|
|
2007
2026
|
case "document.text.update": {
|
|
2008
|
-
const u = it(r.sheetId, `${f}.sheetId`, { grid: !1 }), { edit: g, unchanged: $ } =
|
|
2027
|
+
const u = it(r.sheetId, `${f}.sheetId`, { grid: !1 }), { edit: g, unchanged: $ } = ai(r, y, u, f, Te);
|
|
2009
2028
|
if (d.push({ ref: r.sheetId, kind: "sheet", id: u.id, title: u.title ?? "", changeIndex: m }), $) break;
|
|
2010
2029
|
w({ op: "document.text", sheetId: u.id, edit: g, changeIndex: m }, f);
|
|
2011
2030
|
break;
|
|
@@ -2041,10 +2060,10 @@ async function fs(e, a, t, s) {
|
|
|
2041
2060
|
code: "type_not_supported",
|
|
2042
2061
|
message: `As changed, "${r.card.title}" would have no query a ${g.replace(/_/g, " ")} can run.`,
|
|
2043
2062
|
path: `changes[${f}]`,
|
|
2044
|
-
fix: `Send a complete query with the type change: ${((sa = Fe[g]) == null ? void 0 : sa.forms.map((O) =>
|
|
2063
|
+
fix: `Send a complete query with the type change: ${((sa = Fe[g]) == null ? void 0 : sa.forms.map((O) => We[O]).join(" or ")) ?? "a measures query"}.`
|
|
2045
2064
|
});
|
|
2046
2065
|
}
|
|
2047
|
-
if (o.push(...
|
|
2066
|
+
if (o.push(...di(e, ae.dashboard, i, rt, v)), o.push(...li(ae.dashboard, dt, t.calendar)), o.length) return { ok: !1, problems: o };
|
|
2048
2067
|
for (const m of i) {
|
|
2049
2068
|
if (m.op !== "filter.add" && !(m.op === "filter.update" && m.settings.scope)) continue;
|
|
2050
2069
|
const r = m.op === "filter.add" ? m.input.id : m.filterId, f = Pe(ae.dashboard, r, void 0, v);
|
|
@@ -2107,7 +2126,7 @@ async function fs(e, a, t, s) {
|
|
|
2107
2126
|
fix: "Add a timeWindow on that date, or a dashboard date filter that reaches the card."
|
|
2108
2127
|
});
|
|
2109
2128
|
}
|
|
2110
|
-
const Is =
|
|
2129
|
+
const Is = ni(ae.dashboard, i, ae.descriptions, v);
|
|
2111
2130
|
return {
|
|
2112
2131
|
ok: !0,
|
|
2113
2132
|
operations: i,
|
|
@@ -2121,7 +2140,7 @@ async function fs(e, a, t, s) {
|
|
|
2121
2140
|
warnings: n
|
|
2122
2141
|
};
|
|
2123
2142
|
}
|
|
2124
|
-
function
|
|
2143
|
+
function ni(e, a, t, s) {
|
|
2125
2144
|
const o = a.filter((l) => l.op === "card.add");
|
|
2126
2145
|
if (!o.length) return [...t];
|
|
2127
2146
|
const n = as(e, void 0, s);
|
|
@@ -2160,16 +2179,16 @@ function Pt(e) {
|
|
|
2160
2179
|
if (e.op === "card.update" || e.op === "card.remove") return e.cardId;
|
|
2161
2180
|
if (e.op === "card.add") return (a = e.frame.cards[0]) == null ? void 0 : a.id;
|
|
2162
2181
|
}
|
|
2163
|
-
function
|
|
2182
|
+
function ii(e) {
|
|
2164
2183
|
return Object.fromEntries(
|
|
2165
|
-
|
|
2184
|
+
go.flatMap((a) => e[a] === void 0 ? [] : [[a, e[a]]])
|
|
2166
2185
|
);
|
|
2167
2186
|
}
|
|
2168
|
-
function
|
|
2187
|
+
function ri(e, a) {
|
|
2169
2188
|
if (!a.length || !e.config) return e;
|
|
2170
2189
|
const t = { ...e.config }, s = [];
|
|
2171
2190
|
if (t.matrix) {
|
|
2172
|
-
const n = t.matrix, i =
|
|
2191
|
+
const n = t.matrix, i = _o(n), d = [...n.spec.rows, ...n.spec.columns], l = { ...n.presentation.levelLabels }, c = { ...n.presentation.measureLabels };
|
|
2173
2192
|
for (const { key: h, label: p } of a) {
|
|
2174
2193
|
if (h.role === "metric") {
|
|
2175
2194
|
const v = i.measures.findIndex((y) => He(y, h));
|
|
@@ -2186,12 +2205,12 @@ function oi(e, a) {
|
|
|
2186
2205
|
}
|
|
2187
2206
|
const o = { metric: "metricColumns", group_by: "groupByColumns", detail: "detailColumns" };
|
|
2188
2207
|
for (const { key: n, label: i } of a) {
|
|
2189
|
-
const d = [...t[o[n.role]] ?? []], l =
|
|
2190
|
-
l < 0 || (d[l] =
|
|
2208
|
+
const d = [...t[o[n.role]] ?? []], l = Ka(n.role, d).findIndex((c) => He(c, n));
|
|
2209
|
+
l < 0 || (d[l] = hn(d[l], i), t[o[n.role]] = d, s.push(n));
|
|
2191
2210
|
}
|
|
2192
2211
|
return { ...e, config: t, statedLabels: s };
|
|
2193
2212
|
}
|
|
2194
|
-
function
|
|
2213
|
+
function di(e, a, t, s, o) {
|
|
2195
2214
|
var E;
|
|
2196
2215
|
const n = [], i = new Map(xe(a).map((C) => [C.cardId, C])), d = Ot(a), l = Ie(a), c = (C) => {
|
|
2197
2216
|
var k, b;
|
|
@@ -2214,7 +2233,7 @@ function ni(e, a, t, s, o) {
|
|
|
2214
2233
|
message: `${N} isn't shown on "${c(D.sheetId)}", so it can't filter ${w}.`,
|
|
2215
2234
|
fix: "Show it on that sheet first with filter.update sheetIds (null for every sheet), in the same proposal."
|
|
2216
2235
|
};
|
|
2217
|
-
const I =
|
|
2236
|
+
const I = Co(b, D.card);
|
|
2218
2237
|
switch (I.status) {
|
|
2219
2238
|
case "incompatible":
|
|
2220
2239
|
return { reason: "incompatible_field", message: `${w} can't take ${N}'s values on that field: their types differ.`, fix: "Bind a field of the same type (filter.bind)." };
|
|
@@ -2311,7 +2330,7 @@ function ni(e, a, t, s, o) {
|
|
|
2311
2330
|
}
|
|
2312
2331
|
return n;
|
|
2313
2332
|
}
|
|
2314
|
-
function
|
|
2333
|
+
function li(e, a, t) {
|
|
2315
2334
|
const s = [], o = Ie(e);
|
|
2316
2335
|
for (const [n, i] of a) {
|
|
2317
2336
|
const d = o.findFilterInput({ inputId: n });
|
|
@@ -2325,7 +2344,7 @@ function ii(e, a, t) {
|
|
|
2325
2344
|
});
|
|
2326
2345
|
if (i.period) {
|
|
2327
2346
|
const v = Ja(l && "relativeMeta" in l ? l.relativeMeta : void 0);
|
|
2328
|
-
(!v ||
|
|
2347
|
+
(!v || sn(i.period) || !on(v, i.period)) && p(
|
|
2329
2348
|
`"${d.input.label}" wouldn't load with that default${h ? `: ${h}` : ""}.`,
|
|
2330
2349
|
h ? "Ask for a default the picker can take, or tell the user to make it a date range in the editor." : "Tell the user to change the filter's default in the editor."
|
|
2331
2350
|
);
|
|
@@ -2352,7 +2371,7 @@ function ka(e) {
|
|
|
2352
2371
|
const a = (s = (t = e.config) == null ? void 0 : t.groupByColumns) == null ? void 0 : s.find((o) => co(o.dataType || "") === "date");
|
|
2353
2372
|
return { comparisonDate: a ? { name: a.name, label: a.label || a.name } : null, dateWindow: "unknown" };
|
|
2354
2373
|
}
|
|
2355
|
-
function
|
|
2374
|
+
function ci(e, a) {
|
|
2356
2375
|
if ("sql" in a) return [];
|
|
2357
2376
|
const t = e, s = (...n) => new Set(n.flatMap((i) => Array.isArray(i) ? i : i ? [i] : []).map((i) => be(i, a.datasetName))), o = {
|
|
2358
2377
|
metric: s(t.measures),
|
|
@@ -2361,7 +2380,7 @@ function ri(e, a) {
|
|
|
2361
2380
|
};
|
|
2362
2381
|
return qe(a).filter((n) => o[n.key.role].has(n.key.field));
|
|
2363
2382
|
}
|
|
2364
|
-
function
|
|
2383
|
+
function ui(e, a, t, s) {
|
|
2365
2384
|
const o = Object.fromEntries(Object.entries(a).filter(([, p]) => p != null)), n = tt(o), i = tt(e), d = (p) => Sa[p].safeParse(o);
|
|
2366
2385
|
if (!e || n && n !== i) {
|
|
2367
2386
|
const p = n ?? i, v = p ? d(p) : void 0;
|
|
@@ -2397,10 +2416,10 @@ function Ta(e) {
|
|
|
2397
2416
|
return e ? { kind: "sheets", sheetIds: e } : { kind: "allSheets", sheetKinds: ["dashboard"] };
|
|
2398
2417
|
}
|
|
2399
2418
|
function Ra(e, a, t, s) {
|
|
2400
|
-
return ["date", "datetime", "timestamp"].some((i) => Tt(a.dataType).includes(i)) || s({ code: "invalid_change", message: "defaultPeriod is for date filters.", path: t, fix: "Use defaultValues for this field." }), hs(e, { use: "filterDefault", columnHasTime:
|
|
2419
|
+
return ["date", "datetime", "timestamp"].some((i) => Tt(a.dataType).includes(i)) || s({ code: "invalid_change", message: "defaultPeriod is for date filters.", path: t, fix: "Use defaultValues for this field." }), hs(e, { use: "filterDefault", columnHasTime: fi(a) }, t, s);
|
|
2401
2420
|
}
|
|
2402
2421
|
function hs(e, a, t, s) {
|
|
2403
|
-
const o =
|
|
2422
|
+
const o = nn(e, a);
|
|
2404
2423
|
return o.ok ? o.window : s({
|
|
2405
2424
|
code: "invalid_change",
|
|
2406
2425
|
message: o.refusal.message,
|
|
@@ -2408,14 +2427,14 @@ function hs(e, a, t, s) {
|
|
|
2408
2427
|
path: o.refusal.path ? `${t}.${o.refusal.path}` : t
|
|
2409
2428
|
});
|
|
2410
2429
|
}
|
|
2411
|
-
function
|
|
2430
|
+
function fi(e) {
|
|
2412
2431
|
return qa({ dataType: e.dataType }) === "datetime";
|
|
2413
2432
|
}
|
|
2414
|
-
function
|
|
2433
|
+
function mi(e) {
|
|
2415
2434
|
var a, t, s;
|
|
2416
2435
|
return (s = (t = (a = e == null ? void 0 : e.filters) == null ? void 0 : a.conditions) == null ? void 0 : t.find((o) => o.relativeMeta)) == null ? void 0 : s.field;
|
|
2417
2436
|
}
|
|
2418
|
-
async function
|
|
2437
|
+
async function hi(e, a, t, s, o, n) {
|
|
2419
2438
|
const i = no(e), d = i.kind === "config" ? i.executableSources : i.kind === "sql" ? i.pinnedCatalogSources.map((x) => x.source) : [], l = he(e), c = typeof a == "string" ? (l == null ? void 0 : l.kind) === "semantic" ? l.datasetName : void 0 : a.datasetName, h = d.find((x) => x.kind === "semantic" && Tt(x.datasetName) === Tt(c));
|
|
2420
2439
|
if ((!h || h.kind !== "semantic") && n)
|
|
2421
2440
|
return o({
|
|
@@ -2431,7 +2450,7 @@ async function ui(e, a, t, s, o, n) {
|
|
|
2431
2450
|
path: s,
|
|
2432
2451
|
fix: "Name a field of the card's own dataset, or { name, datasetName } for a dataset its query joins."
|
|
2433
2452
|
});
|
|
2434
|
-
const p = await t.loadCardSource({ domainId: h.domainId, datasetName: h.datasetName }), v = typeof a == "string" ? a : a.name, y = p ? ot(p.fields, v, h.datasetName) : void 0, S = y ?
|
|
2453
|
+
const p = await t.loadCardSource({ domainId: h.domainId, datasetName: h.datasetName }), v = typeof a == "string" ? a : a.name, y = p ? ot(p.fields, v, h.datasetName) : void 0, S = y ? Xo(h, { column_name: y.name, data_type: y.dataType, ...y.sourceField ? { sourceField: y.sourceField } : {} }) : void 0;
|
|
2435
2454
|
return S || o({
|
|
2436
2455
|
code: "field_not_found",
|
|
2437
2456
|
message: `"${v}" isn't a field of ${h.datasetName}.`,
|
|
@@ -2440,12 +2459,12 @@ async function ui(e, a, t, s, o, n) {
|
|
|
2440
2459
|
details: { available: ((p == null ? void 0 : p.fields) ?? []).slice(0, 20).map((x) => x.name) }
|
|
2441
2460
|
});
|
|
2442
2461
|
}
|
|
2443
|
-
const
|
|
2462
|
+
const pi = {
|
|
2444
2463
|
max: ba,
|
|
2445
2464
|
what: "A proposal that creates a dashboard",
|
|
2446
2465
|
fix: `Create with the first ${ba}, then change the new dashboard in a second proposal.`
|
|
2447
2466
|
};
|
|
2448
|
-
async function
|
|
2467
|
+
async function qr(e, a) {
|
|
2449
2468
|
const t = (d) => d && typeof d == "object" ? d.op : void 0, s = e.changes.flatMap(
|
|
2450
2469
|
(d, l) => t(d) === "dashboard.update" ? [
|
|
2451
2470
|
{
|
|
@@ -2457,12 +2476,12 @@ async function Dr(e, a) {
|
|
|
2457
2476
|
] : []
|
|
2458
2477
|
);
|
|
2459
2478
|
if (s.length) return { ok: !1, problems: s };
|
|
2460
|
-
const o =
|
|
2479
|
+
const o = bi(e, a), n = await fs(o, e.changes, a, { limit: pi });
|
|
2461
2480
|
if (!n.ok) return n;
|
|
2462
|
-
const i =
|
|
2463
|
-
return { ...i, seed: o, sentence:
|
|
2481
|
+
const i = gi(n, e.changes);
|
|
2482
|
+
return { ...i, seed: o, sentence: yi(i.dashboard) };
|
|
2464
2483
|
}
|
|
2465
|
-
function
|
|
2484
|
+
function gi(e, a) {
|
|
2466
2485
|
if (a.some((n) => {
|
|
2467
2486
|
if (!n || typeof n != "object") return !1;
|
|
2468
2487
|
const { op: i } = n;
|
|
@@ -2479,7 +2498,7 @@ function mi(e, a) {
|
|
|
2479
2498
|
descriptions: [...e.descriptions, ...o.descriptions]
|
|
2480
2499
|
};
|
|
2481
2500
|
}
|
|
2482
|
-
function
|
|
2501
|
+
function bi(e, a) {
|
|
2483
2502
|
const t = e.changes.some((s) => s && typeof s == "object" && s.op === "sheet.add");
|
|
2484
2503
|
return {
|
|
2485
2504
|
id: e.dashboardId,
|
|
@@ -2491,19 +2510,19 @@ function hi(e, a) {
|
|
|
2491
2510
|
};
|
|
2492
2511
|
}
|
|
2493
2512
|
const vt = (e, a) => `${e} ${a}${e === 1 ? "" : "s"}`;
|
|
2494
|
-
function
|
|
2513
|
+
function yi(e) {
|
|
2495
2514
|
const a = e.sheets ?? [], t = a.reduce((n, i) => n + (i.frames ?? []).reduce((d, l) => {
|
|
2496
2515
|
var c;
|
|
2497
2516
|
return d + (((c = l.cards) == null ? void 0 : c.length) ?? 0);
|
|
2498
2517
|
}, 0), 0), s = (e.inputs ?? []).filter((n) => n.kind === "filter").length, o = [vt(a.length, "sheet"), vt(t, "card"), ...s ? [vt(s, "filter")] : []];
|
|
2499
2518
|
return `Creates a private dashboard ${Va(e.title)} with ${et(o)}.`;
|
|
2500
2519
|
}
|
|
2501
|
-
const
|
|
2502
|
-
function
|
|
2520
|
+
const vi = 50;
|
|
2521
|
+
function Nr(e, a) {
|
|
2503
2522
|
var w, N;
|
|
2504
2523
|
const t = (w = a.sheetIds) != null && w.length ? new Set(a.sheetIds) : void 0, s = (N = a.cardIds) != null && N.length ? new Set(a.cardIds) : void 0, o = (e.sheets ?? []).filter((_) => !t || t.has(_.id)), n = xe(e).filter(
|
|
2505
2524
|
(_) => (!t || t.has(_.sheetId)) && (!s || s.has(_.cardId))
|
|
2506
|
-
), i = n.length > (a.maxQueryCards ??
|
|
2525
|
+
), i = n.length > (a.maxQueryCards ?? vi), d = new Map(
|
|
2507
2526
|
(e.sheets ?? []).flatMap((_) => (_.frames ?? []).map((I) => [I.id, I]))
|
|
2508
2527
|
), l = /* @__PURE__ */ new Map(), c = (_) => {
|
|
2509
2528
|
(_ == null ? void 0 : _.kind) === "semantic" && l.set(`${_.domainId}|${_.datasetName}`, { domainId: _.domainId, datasetName: _.datasetName });
|
|
@@ -2517,14 +2536,14 @@ function Or(e, a) {
|
|
|
2517
2536
|
sheetId: _.id,
|
|
2518
2537
|
title: _.title ?? "",
|
|
2519
2538
|
kind: _.kind === "document" ? "document" : "dashboard",
|
|
2520
|
-
..._.kind === "document" ?
|
|
2539
|
+
..._.kind === "document" ? _i(_, v(_.id)) : { layout: wi(_) },
|
|
2521
2540
|
cards: n.filter((I) => I.sheetId === _.id).map((I) => {
|
|
2522
2541
|
var oe;
|
|
2523
|
-
const R = I.card, P = I.kind === "frameCard" ? (oe = d.get(I.frameId)) == null ? void 0 : oe.visualId : void 0, V = P ? { linkedVisualId: P } : {},
|
|
2542
|
+
const R = I.card, P = I.kind === "frameCard" ? (oe = d.get(I.frameId)) == null ? void 0 : oe.visualId : void 0, V = P ? { linkedVisualId: P } : {}, G = { cardId: I.cardId, title: R.title ?? "" };
|
|
2524
2543
|
if (I.kind !== "frameCard") {
|
|
2525
2544
|
const te = he(R);
|
|
2526
2545
|
return c(te), {
|
|
2527
|
-
...
|
|
2546
|
+
...G,
|
|
2528
2547
|
...Ue(R),
|
|
2529
2548
|
...te ? { source: te } : {},
|
|
2530
2549
|
editable: !1,
|
|
@@ -2536,13 +2555,13 @@ function Or(e, a) {
|
|
|
2536
2555
|
};
|
|
2537
2556
|
}
|
|
2538
2557
|
if (R.type === "text") {
|
|
2539
|
-
const te =
|
|
2540
|
-
return te.editable ? { ...
|
|
2558
|
+
const te = Ga(R, S(_, R.id));
|
|
2559
|
+
return te.editable ? { ...G, type: "text", ...V, editable: !0, text: te.text, ...te.editorOnly.length ? { editorOnly: te.editorOnly } : {} } : { ...G, ...Ue(R), ...V, editable: !1, notEditable: { reason: "text", message: te.message } };
|
|
2541
2560
|
}
|
|
2542
2561
|
const B = we(R, { sql: a.sql });
|
|
2543
2562
|
if (c(B.source), !B.editable)
|
|
2544
2563
|
return {
|
|
2545
|
-
...
|
|
2564
|
+
...G,
|
|
2546
2565
|
...Ue(R),
|
|
2547
2566
|
...B.source ? { source: B.source } : {},
|
|
2548
2567
|
...V,
|
|
@@ -2551,7 +2570,7 @@ function Or(e, a) {
|
|
|
2551
2570
|
};
|
|
2552
2571
|
const se = i ? void 0 : Ft(R);
|
|
2553
2572
|
return {
|
|
2554
|
-
...
|
|
2573
|
+
...G,
|
|
2555
2574
|
...Ue(R),
|
|
2556
2575
|
type: B.type,
|
|
2557
2576
|
source: B.source,
|
|
@@ -2570,7 +2589,7 @@ function Or(e, a) {
|
|
|
2570
2589
|
});
|
|
2571
2590
|
for (const _ of E)
|
|
2572
2591
|
_.editable && l.set(`${_.domainId}|${_.datasetName}`, { domainId: _.domainId, datasetName: _.datasetName });
|
|
2573
|
-
const C =
|
|
2592
|
+
const C = Ci(e, a, new Map([...h, ...y]));
|
|
2574
2593
|
for (const _ of e.variables ?? []) {
|
|
2575
2594
|
const I = kt(_);
|
|
2576
2595
|
(I == null ? void 0 : I.kind) === "semantic" && l.set(`${I.domainId}|${I.datasetName}`, { domainId: I.domainId, datasetName: I.datasetName });
|
|
@@ -2606,20 +2625,20 @@ function Or(e, a) {
|
|
|
2606
2625
|
sheets: x,
|
|
2607
2626
|
filters: E,
|
|
2608
2627
|
variables: C,
|
|
2609
|
-
style:
|
|
2628
|
+
style: Ii(e, a),
|
|
2610
2629
|
editorOnly: D,
|
|
2611
2630
|
...i ? { truncated: !0 } : {}
|
|
2612
2631
|
};
|
|
2613
2632
|
}
|
|
2614
|
-
function
|
|
2633
|
+
function Ii(e, a) {
|
|
2615
2634
|
const { style: t, organizationAppearance: s } = za(e, a.organizationAppearance);
|
|
2616
|
-
return { set:
|
|
2635
|
+
return { set: An(t), shows: cn({ organizationAppearance: s, dashboardStyle: t }, "light").shows };
|
|
2617
2636
|
}
|
|
2618
2637
|
function Aa(e, a) {
|
|
2619
|
-
const t =
|
|
2638
|
+
const t = xo(a);
|
|
2620
2639
|
return t ? { ...e, style: t } : e;
|
|
2621
2640
|
}
|
|
2622
|
-
function
|
|
2641
|
+
function _i(e, a) {
|
|
2623
2642
|
const t = e.document;
|
|
2624
2643
|
if (!t) return {};
|
|
2625
2644
|
const s = (o) => {
|
|
@@ -2636,7 +2655,7 @@ function yi(e, a) {
|
|
|
2636
2655
|
)
|
|
2637
2656
|
};
|
|
2638
2657
|
}
|
|
2639
|
-
function
|
|
2658
|
+
function Ci(e, a, t) {
|
|
2640
2659
|
const s = Qa(e), o = (c) => s.filter(({ ref: h }) => c(h)).map(({ place: h, where: p }) => ({
|
|
2641
2660
|
sheetId: h.sheetId,
|
|
2642
2661
|
where: p.kind,
|
|
@@ -2657,17 +2676,17 @@ function vi(e, a, t) {
|
|
|
2657
2676
|
})), d = [...n.values()].filter((c) => c.kind === "report").map((c) => ({
|
|
2658
2677
|
name: c.name,
|
|
2659
2678
|
kind: "report",
|
|
2660
|
-
words:
|
|
2679
|
+
words: $i[c.reportKey],
|
|
2661
2680
|
parts: [],
|
|
2662
2681
|
usedIn: o((h) => h.source === "documentMeta" && h.key === c.reportKey),
|
|
2663
2682
|
editable: !1
|
|
2664
2683
|
})), l = (e.variables ?? []).map((c) => {
|
|
2665
|
-
const h = rs(c, { sql: a.sql }), p = Dt(c, e)[0], v =
|
|
2684
|
+
const h = rs(c, { sql: a.sql }), p = Dt(c, e)[0], v = wo(c.presentation);
|
|
2666
2685
|
return {
|
|
2667
2686
|
name: c.name,
|
|
2668
2687
|
kind: "data",
|
|
2669
|
-
words:
|
|
2670
|
-
parts:
|
|
2688
|
+
words: Zo(c),
|
|
2689
|
+
parts: Bo(c),
|
|
2671
2690
|
...v ? { presentation: v } : {},
|
|
2672
2691
|
usedIn: o((y) => y.source === "data" && y.variableId === c.id),
|
|
2673
2692
|
editable: h.editable,
|
|
@@ -2677,7 +2696,7 @@ function vi(e, a, t) {
|
|
|
2677
2696
|
});
|
|
2678
2697
|
return [...i, ...d, ...l];
|
|
2679
2698
|
}
|
|
2680
|
-
const
|
|
2699
|
+
const $i = {
|
|
2681
2700
|
generatedAt: "When the report was generated",
|
|
2682
2701
|
pageNumber: "The page number (Documents)",
|
|
2683
2702
|
pageCount: "The page count (Documents)"
|
|
@@ -2686,9 +2705,9 @@ function Ue(e) {
|
|
|
2686
2705
|
const a = Ee(e);
|
|
2687
2706
|
return a ? { type: a.type, ...a.properties } : { type: $t(e.type) };
|
|
2688
2707
|
}
|
|
2689
|
-
function
|
|
2708
|
+
function wi(e) {
|
|
2690
2709
|
const a = new Map((e.frames ?? []).map((t) => [t.id, t]));
|
|
2691
|
-
return
|
|
2710
|
+
return pn(e).rows.map((t) => ({
|
|
2692
2711
|
tiles: t.tiles.map((s) => {
|
|
2693
2712
|
const o = a.get(s.frameId);
|
|
2694
2713
|
return { cardIds: o ? Ba(o) : [], width: s.width };
|
|
@@ -2701,13 +2720,13 @@ function Z(e) {
|
|
|
2701
2720
|
function ue(e, a) {
|
|
2702
2721
|
return Z(e) && Object.prototype.hasOwnProperty.call(e, a) && e[a] !== void 0;
|
|
2703
2722
|
}
|
|
2704
|
-
const re = ue,
|
|
2705
|
-
function
|
|
2723
|
+
const re = ue, xi = ["metricColumns", "groupByColumns", "detailColumns", "pivotByColumns", "sortByColumns"], Si = ["xAxisConfig", "yAxisConfig", "secondaryYAxisConfig", "tooltipConfig", "dataLabelsConfig"], ki = '`format` on the matching column in `config.metricColumns`, `groupByColumns` or `detailColumns`; for a SQL or Python card, `preferences.sqlColumns["<column>"].format`', Qe = "`preferences.conditionalFormatting`, with columns named by card column id";
|
|
2724
|
+
function Ti(e) {
|
|
2706
2725
|
return Le(String(e.type)) ?? Et;
|
|
2707
2726
|
}
|
|
2708
2727
|
function Oe(e, a, t) {
|
|
2709
2728
|
if (t === void 0) return;
|
|
2710
|
-
const s = Z(t) ?
|
|
2729
|
+
const s = Z(t) ? Ti(t).safeParse(t) : Et.safeParse(t);
|
|
2711
2730
|
if (!s.success)
|
|
2712
2731
|
for (const o of s.error.issues) {
|
|
2713
2732
|
const n = o.code === "unrecognized_keys" ? o.keys : [o.path.length ? String(o.path[o.path.length - 1]) : "type"];
|
|
@@ -2728,7 +2747,7 @@ function It(e, a, t) {
|
|
|
2728
2747
|
}
|
|
2729
2748
|
function ps(e, a) {
|
|
2730
2749
|
const t = [], s = e.config;
|
|
2731
|
-
for (const S of
|
|
2750
|
+
for (const S of xi) {
|
|
2732
2751
|
const x = s == null ? void 0 : s[S];
|
|
2733
2752
|
Array.isArray(x) && x.forEach((E, C) => It(t, `${a}.config.${S}[${C}]`, E));
|
|
2734
2753
|
}
|
|
@@ -2764,10 +2783,10 @@ function ps(e, a) {
|
|
|
2764
2783
|
if (!Z(x)) continue;
|
|
2765
2784
|
const E = `${c}.tablePrefs.columnSettingsMap.${S}`;
|
|
2766
2785
|
for (const C of ["numberFormat", "dateFormat", "inheritMetricFormat"])
|
|
2767
|
-
re(x, C) && t.push({ path: `${E}.${C}`, field: C, replacement: C === "inheritMetricFormat" ? "nothing: a column follows its `format`" :
|
|
2786
|
+
re(x, C) && t.push({ path: `${E}.${C}`, field: C, replacement: C === "inheritMetricFormat" ? "nothing: a column follows its `format`" : ki });
|
|
2768
2787
|
re(x, "colorRanges") && t.push({ path: `${E}.colorRanges`, field: "colorRanges", replacement: Qe });
|
|
2769
2788
|
}
|
|
2770
|
-
for (const S of
|
|
2789
|
+
for (const S of Si) {
|
|
2771
2790
|
const x = l[S];
|
|
2772
2791
|
if (Z(x)) {
|
|
2773
2792
|
for (const E of ["formatMode", "mode", "formatOptions"])
|
|
@@ -2781,7 +2800,7 @@ function ps(e, a) {
|
|
|
2781
2800
|
Z(x) && Oe(t, `${c}.sqlColumns.${S}.format`, x.format);
|
|
2782
2801
|
return Z(l.sqlKpiValue) && Oe(t, `${c}.sqlKpiValue.format`, l.sqlKpiValue.format), t;
|
|
2783
2802
|
}
|
|
2784
|
-
function
|
|
2803
|
+
function Ri(e) {
|
|
2785
2804
|
const a = `sheets[id=${e.sheetId}]`;
|
|
2786
2805
|
switch (e.kind) {
|
|
2787
2806
|
case "sheetCard":
|
|
@@ -2797,20 +2816,20 @@ function gs(e) {
|
|
|
2797
2816
|
if (Array.isArray(e.sheets))
|
|
2798
2817
|
return xe(e).map((t) => ({
|
|
2799
2818
|
card: t.card,
|
|
2800
|
-
at:
|
|
2819
|
+
at: Ri(t)
|
|
2801
2820
|
}));
|
|
2802
2821
|
const a = e;
|
|
2803
2822
|
return Array.isArray(a.cards) ? a.cards.map((t) => ({ card: t, at: `cards[id=${t.id}]` })) : [];
|
|
2804
2823
|
}
|
|
2805
|
-
function
|
|
2824
|
+
function Pr(e) {
|
|
2806
2825
|
return gs(e).flatMap(({ card: a, at: t }) => ps(a, t));
|
|
2807
2826
|
}
|
|
2808
|
-
function
|
|
2827
|
+
function Ai(e, a) {
|
|
2809
2828
|
var n;
|
|
2810
2829
|
const t = (n = e.preferences) == null ? void 0 : n.conditionalFormatting;
|
|
2811
2830
|
if (t === void 0) return [];
|
|
2812
|
-
const s = `${a}.preferences.conditionalFormatting`, o =
|
|
2813
|
-
return o.success ?
|
|
2831
|
+
const s = `${a}.preferences.conditionalFormatting`, o = So.safeParse(t);
|
|
2832
|
+
return o.success ? ko(e).map((i) => ({
|
|
2814
2833
|
code: "invalid_conditional_formatting",
|
|
2815
2834
|
path: `${s}.rules[id=${i.ruleId}].${i.path}`,
|
|
2816
2835
|
message: i.message
|
|
@@ -2820,14 +2839,14 @@ function ki(e, a) {
|
|
|
2820
2839
|
message: i.message
|
|
2821
2840
|
}));
|
|
2822
2841
|
}
|
|
2823
|
-
function
|
|
2842
|
+
function Lr(e) {
|
|
2824
2843
|
return gs(e).flatMap(({ card: a, at: t }) => [
|
|
2825
2844
|
...ps(a, t).map((s) => ({
|
|
2826
2845
|
code: "retired_presentation_field",
|
|
2827
2846
|
path: s.path,
|
|
2828
2847
|
message: `\`${s.field}\` is retired: use ${s.replacement}.`
|
|
2829
2848
|
})),
|
|
2830
|
-
...
|
|
2849
|
+
...Ai(a, t)
|
|
2831
2850
|
]);
|
|
2832
2851
|
}
|
|
2833
2852
|
const Lt = [
|
|
@@ -2836,7 +2855,7 @@ const Lt = [
|
|
|
2836
2855
|
"detailColumns",
|
|
2837
2856
|
"pivotByColumns",
|
|
2838
2857
|
"sortByColumns"
|
|
2839
|
-
],
|
|
2858
|
+
], Fi = [
|
|
2840
2859
|
"xAxisConfig",
|
|
2841
2860
|
"yAxisConfig",
|
|
2842
2861
|
"secondaryYAxisConfig",
|
|
@@ -2856,15 +2875,15 @@ function _e(e, a) {
|
|
|
2856
2875
|
return bs(t(e), t(a));
|
|
2857
2876
|
}
|
|
2858
2877
|
function at(e) {
|
|
2859
|
-
const a =
|
|
2878
|
+
const a = rn(e);
|
|
2860
2879
|
return a === "date" || a === "datetime";
|
|
2861
2880
|
}
|
|
2862
2881
|
function ys(e) {
|
|
2863
2882
|
var a, t;
|
|
2864
2883
|
return !!((a = e.sql) != null && a.trim() || (t = e.python) != null && t.trim());
|
|
2865
2884
|
}
|
|
2866
|
-
function
|
|
2867
|
-
return e.type === "kpi" &&
|
|
2885
|
+
function Di(e) {
|
|
2886
|
+
return e.type === "kpi" && qo(e);
|
|
2868
2887
|
}
|
|
2869
2888
|
function Rt(e) {
|
|
2870
2889
|
return e.type === "table" || e.type === "detailTable";
|
|
@@ -2874,7 +2893,7 @@ function ee(e, a) {
|
|
|
2874
2893
|
const t = (s = e.config) == null ? void 0 : s[a];
|
|
2875
2894
|
return Array.isArray(t) ? t : [];
|
|
2876
2895
|
}
|
|
2877
|
-
function
|
|
2896
|
+
function Oi(e, a) {
|
|
2878
2897
|
for (const t of Lt) {
|
|
2879
2898
|
const s = ee(e, t).indexOf(a);
|
|
2880
2899
|
if (s >= 0) return `config.${t}[${s}]`;
|
|
@@ -2890,7 +2909,7 @@ function st(e, a, t, s) {
|
|
|
2890
2909
|
a.format = t, a.formatOrigin = "override", e.changes.push({
|
|
2891
2910
|
path: s,
|
|
2892
2911
|
action: "moved",
|
|
2893
|
-
to: `${
|
|
2912
|
+
to: `${Oi(e.card, a) ?? "config"}.format`
|
|
2894
2913
|
});
|
|
2895
2914
|
}
|
|
2896
2915
|
function Mt(e) {
|
|
@@ -2900,7 +2919,7 @@ function Mt(e) {
|
|
|
2900
2919
|
function At(e, a, t) {
|
|
2901
2920
|
if (!(!ue(a, "dateFormat") && !ue(a, "customFormat"))) {
|
|
2902
2921
|
if (at(a.dataType) && a.format == null && a.dateFormat != null) {
|
|
2903
|
-
const s =
|
|
2922
|
+
const s = Oo({
|
|
2904
2923
|
fieldId: a.id,
|
|
2905
2924
|
dataType: a.dataType,
|
|
2906
2925
|
granularity: a.granularity,
|
|
@@ -2916,7 +2935,7 @@ function At(e, a, t) {
|
|
|
2916
2935
|
ke(a, ["dateFormat", "customFormat"]) && e.changes.push({ path: `${t}.dateFormat`, action: "removed" });
|
|
2917
2936
|
}
|
|
2918
2937
|
}
|
|
2919
|
-
function
|
|
2938
|
+
function Ei(e, a, t) {
|
|
2920
2939
|
if (!ue(a, "dateFormat") && !ue(a, "customFormat")) return;
|
|
2921
2940
|
const s = a.dateFormat === "custom" ? a.customFormat : a.dateFormat;
|
|
2922
2941
|
e.card.type === "detailTable" && at(a.dataType) && !a.format && typeof s == "string" && s.trim() ? (a.format = { type: "date", pattern: s }, a.formatOrigin = "override", e.changes.push({
|
|
@@ -2929,14 +2948,14 @@ function Fi(e, a, t) {
|
|
|
2929
2948
|
detail: "A detail date pattern on a column that has a format of its own."
|
|
2930
2949
|
}), ke(a, ["dateFormat", "customFormat"]) && e.changes.push({ path: `${t}.dateFormat`, action: "removed" });
|
|
2931
2950
|
}
|
|
2932
|
-
function
|
|
2951
|
+
function qi(e, a, t, s) {
|
|
2933
2952
|
if (a.format !== void 0) {
|
|
2934
2953
|
const o = Mt(a.format);
|
|
2935
2954
|
o ? _e(o, a.format) || (a.format = o, e.changes.push({ path: `${s}.format`, action: "cleaned" })) : (delete a.format, e.changes.push({ path: `${s}.format`, action: "removed" }));
|
|
2936
2955
|
}
|
|
2937
|
-
t === "groupByColumns" || t === "pivotByColumns" ? At(e, a, s) : t === "detailColumns" ?
|
|
2956
|
+
t === "groupByColumns" || t === "pivotByColumns" ? At(e, a, s) : t === "detailColumns" ? Ei(e, a, s) : ke(a, ["dateFormat", "customFormat"]) && e.changes.push({ path: `${s}.dateFormat`, action: "removed" });
|
|
2938
2957
|
}
|
|
2939
|
-
function
|
|
2958
|
+
function Ni(e, a) {
|
|
2940
2959
|
for (const t of Lt)
|
|
2941
2960
|
ee(e.card, t).forEach((s, o) => {
|
|
2942
2961
|
var i;
|
|
@@ -2948,7 +2967,7 @@ function Oi(e, a) {
|
|
|
2948
2967
|
});
|
|
2949
2968
|
});
|
|
2950
2969
|
}
|
|
2951
|
-
function
|
|
2970
|
+
function Pi(e) {
|
|
2952
2971
|
var t;
|
|
2953
2972
|
const a = (t = e.card.interactionConfig) == null ? void 0 : t.drillHierarchies;
|
|
2954
2973
|
Array.isArray(a) && a.forEach((s, o) => {
|
|
@@ -2966,13 +2985,13 @@ function Ei(e) {
|
|
|
2966
2985
|
});
|
|
2967
2986
|
});
|
|
2968
2987
|
}
|
|
2969
|
-
const
|
|
2988
|
+
const Li = [
|
|
2970
2989
|
"numberFormat",
|
|
2971
2990
|
"dateFormat",
|
|
2972
2991
|
"inheritMetricFormat",
|
|
2973
2992
|
"colorRanges"
|
|
2974
2993
|
];
|
|
2975
|
-
function
|
|
2994
|
+
function Mi(e, a) {
|
|
2976
2995
|
const t = (o) => o == null ? void 0 : o.trim().toLowerCase(), s = t(a);
|
|
2977
2996
|
return [
|
|
2978
2997
|
e.id,
|
|
@@ -2980,32 +2999,32 @@ function Ni(e, a) {
|
|
|
2980
2999
|
e.name,
|
|
2981
3000
|
e.qualifiedFieldName,
|
|
2982
3001
|
e.label,
|
|
2983
|
-
e.role === "metric" ?
|
|
3002
|
+
e.role === "metric" ? Uo(e) : void 0
|
|
2984
3003
|
].some((o) => o !== void 0 && t(o) === s);
|
|
2985
3004
|
}
|
|
2986
3005
|
function Fa(e, a) {
|
|
2987
|
-
const t =
|
|
3006
|
+
const t = Eo(e, { columnId: a });
|
|
2988
3007
|
if (t) return t;
|
|
2989
3008
|
const s = [
|
|
2990
3009
|
...ee(e, "detailColumns"),
|
|
2991
3010
|
...ee(e, "metricColumns"),
|
|
2992
3011
|
...ee(e, "groupByColumns")
|
|
2993
|
-
].filter((o) =>
|
|
3012
|
+
].filter((o) => Mi(o, a));
|
|
2994
3013
|
return s.length === 1 ? s[0] : void 0;
|
|
2995
3014
|
}
|
|
2996
|
-
function
|
|
3015
|
+
function Bi(e) {
|
|
2997
3016
|
return e.type === "number" && J(e.numberFormat) && e.inheritMetricFormat !== !0;
|
|
2998
3017
|
}
|
|
2999
|
-
function
|
|
3018
|
+
function Vi(e, a) {
|
|
3000
3019
|
var t;
|
|
3001
|
-
return at(a.dataType) ? ee(e, "detailColumns").includes(a) ? e.type === "detailTable" :
|
|
3020
|
+
return at(a.dataType) ? ee(e, "detailColumns").includes(a) ? e.type === "detailTable" : mn(a.granularity) || ((t = a.format) == null ? void 0 : t.type) === "temporal_bucket" || a.semanticTemporalPresentation != null : !1;
|
|
3002
3021
|
}
|
|
3003
3022
|
function Da(e, a, t, s) {
|
|
3004
3023
|
var i;
|
|
3005
3024
|
const o = (i = e.card).preferences ?? (i.preferences = {}), n = o.sqlColumns ?? (o.sqlColumns = {});
|
|
3006
3025
|
n[a] = { ...n[a], format: t }, e.changes.push({ path: s, action: "moved", to: `preferences.sqlColumns[${JSON.stringify(a)}].format` });
|
|
3007
3026
|
}
|
|
3008
|
-
function
|
|
3027
|
+
function Gi(e) {
|
|
3009
3028
|
const [a, ...t] = e;
|
|
3010
3029
|
if (!a) return;
|
|
3011
3030
|
const s = Object.fromEntries(
|
|
@@ -3013,8 +3032,8 @@ function Mi(e) {
|
|
|
3013
3032
|
);
|
|
3014
3033
|
return Et.safeParse(s).success ? s : void 0;
|
|
3015
3034
|
}
|
|
3016
|
-
function
|
|
3017
|
-
const t = e.card, s =
|
|
3035
|
+
function Ki(e, a) {
|
|
3036
|
+
const t = e.card, s = Vo({
|
|
3018
3037
|
groupByColumns: ee(t, "groupByColumns"),
|
|
3019
3038
|
metricColumns: ee(t, "metricColumns"),
|
|
3020
3039
|
pivotByColumns: ee(t, "pivotByColumns"),
|
|
@@ -3031,10 +3050,10 @@ function Bi(e, a) {
|
|
|
3031
3050
|
});
|
|
3032
3051
|
}
|
|
3033
3052
|
}
|
|
3034
|
-
function
|
|
3053
|
+
function ji(e, a) {
|
|
3035
3054
|
var n;
|
|
3036
3055
|
if (!a.length) return;
|
|
3037
|
-
const t = ee(e.card, "metricColumns"), s = t.length === 1 ? t[0] : void 0, o = s && !s.format ?
|
|
3056
|
+
const t = ee(e.card, "metricColumns"), s = t.length === 1 ? t[0] : void 0, o = s && !s.format ? Gi(a.map((i) => i.format)) : void 0;
|
|
3038
3057
|
s && o && st(e, s, o, a[0].from);
|
|
3039
3058
|
for (const i of a)
|
|
3040
3059
|
if (!(s != null && s.format && _e(i.format, s.format))) {
|
|
@@ -3059,7 +3078,7 @@ function Vi(e, a) {
|
|
|
3059
3078
|
);
|
|
3060
3079
|
}
|
|
3061
3080
|
}
|
|
3062
|
-
function
|
|
3081
|
+
function Wi(e) {
|
|
3063
3082
|
var l;
|
|
3064
3083
|
const a = (l = e.card.preferences) == null ? void 0 : l.tablePrefs, t = a == null ? void 0 : a.columnSettingsMap;
|
|
3065
3084
|
if (!J(t)) return;
|
|
@@ -3067,8 +3086,8 @@ function Ki(e) {
|
|
|
3067
3086
|
for (const [c, h] of Object.entries(t)) {
|
|
3068
3087
|
if (!J(h)) continue;
|
|
3069
3088
|
const p = h, v = `preferences.tablePrefs.columnSettingsMap[${JSON.stringify(c)}]`;
|
|
3070
|
-
if (
|
|
3071
|
-
const y =
|
|
3089
|
+
if (Bi(p)) {
|
|
3090
|
+
const y = To(p.numberFormat);
|
|
3072
3091
|
if (y && o)
|
|
3073
3092
|
Da(e, c, y, `${v}.numberFormat`);
|
|
3074
3093
|
else if (y && Rt(s)) {
|
|
@@ -3089,39 +3108,39 @@ function Ki(e) {
|
|
|
3089
3108
|
if (J(p.dateFormat)) {
|
|
3090
3109
|
const y = p.type === "date";
|
|
3091
3110
|
if (y && o)
|
|
3092
|
-
Da(e, c,
|
|
3111
|
+
Da(e, c, Ro(p.dateFormat), `${v}.dateFormat`);
|
|
3093
3112
|
else if (y && Rt(s)) {
|
|
3094
3113
|
const S = Fa(s, c);
|
|
3095
|
-
(!S || !
|
|
3114
|
+
(!S || !Vi(s, S)) && e.unconverted.push({
|
|
3096
3115
|
path: `${v}.dateFormat`,
|
|
3097
3116
|
reason: "config_column_date_setting",
|
|
3098
3117
|
detail: `"${c}"'s download formats its dates with this setting.`
|
|
3099
3118
|
});
|
|
3100
3119
|
}
|
|
3101
3120
|
}
|
|
3102
|
-
for (const y of
|
|
3121
|
+
for (const y of Li)
|
|
3103
3122
|
Object.prototype.hasOwnProperty.call(p, y) && (delete p[y], e.changes.push({ path: `${v}.${y}`, action: "removed" }));
|
|
3104
3123
|
}
|
|
3105
|
-
|
|
3124
|
+
Ki(e, i), ji(e, d);
|
|
3106
3125
|
}
|
|
3107
|
-
function
|
|
3126
|
+
function Ui(e) {
|
|
3108
3127
|
return Object.keys(e).some(
|
|
3109
3128
|
(a) => a !== "enabled" && a !== "colorRanges" && e[a] !== void 0
|
|
3110
3129
|
);
|
|
3111
3130
|
}
|
|
3112
|
-
function
|
|
3131
|
+
function Qi(e) {
|
|
3113
3132
|
return (e == null ? void 0 : e.enabled) === !1 || (e == null ? void 0 : e.enabled) === "false";
|
|
3114
3133
|
}
|
|
3115
|
-
function
|
|
3134
|
+
function Hi(e) {
|
|
3116
3135
|
const a = e.card, t = a.preferences;
|
|
3117
3136
|
if (!t) return;
|
|
3118
|
-
const s = t.kpiVisualOptions, o = J(s == null ? void 0 : s.formatOptions) ? s.formatOptions : void 0, n = t, i = J(n.formatNumber) ? n.formatNumber : void 0, d = o ? Me(
|
|
3137
|
+
const s = t.kpiVisualOptions, o = J(s == null ? void 0 : s.formatOptions) ? s.formatOptions : void 0, n = t, i = J(n.formatNumber) ? n.formatNumber : void 0, d = o ? Me(Ao(o)) : void 0, l = i && Ui(i) ? Me(Fo(i)) : void 0;
|
|
3119
3138
|
if (a.type === "kpi") {
|
|
3120
|
-
if (
|
|
3139
|
+
if (Qi(i) && e.unconverted.push({
|
|
3121
3140
|
path: "preferences.formatNumber.enabled",
|
|
3122
3141
|
reason: "raw_display",
|
|
3123
3142
|
detail: "Formatting is switched off on this KPI."
|
|
3124
|
-
}),
|
|
3143
|
+
}), Di(a)) {
|
|
3125
3144
|
const c = d ?? l, h = s == null ? void 0 : s.queryComparisonPolarity;
|
|
3126
3145
|
(c || h) && (t.sqlKpiValue = {
|
|
3127
3146
|
...t.sqlKpiValue,
|
|
@@ -3136,7 +3155,7 @@ function Gi(e) {
|
|
|
3136
3155
|
ee(a, "metricColumns").forEach((h) => {
|
|
3137
3156
|
d ? st(e, h, d, "preferences.kpiVisualOptions.formatOptions") : l && !h.format && st(e, h, l, "preferences.formatNumber");
|
|
3138
3157
|
});
|
|
3139
|
-
|
|
3158
|
+
zi(e, i);
|
|
3140
3159
|
} else if (l) {
|
|
3141
3160
|
const c = ee(a, "metricColumns");
|
|
3142
3161
|
ys(a) ? e.unconverted.push({
|
|
@@ -3157,11 +3176,11 @@ function Gi(e) {
|
|
|
3157
3176
|
for (const c of ["numberAxisFormat", "columnSettings"])
|
|
3158
3177
|
ke(t, [c]) && e.changes.push({ path: `preferences.${c}`, action: "removed" });
|
|
3159
3178
|
}
|
|
3160
|
-
function
|
|
3179
|
+
function zi(e, a) {
|
|
3161
3180
|
var n;
|
|
3162
3181
|
const t = a == null ? void 0 : a.decimalPlaces, s = e.card.preferences;
|
|
3163
3182
|
if (typeof t != "number" || ((n = s.comparisonPresentation) == null ? void 0 : n.precision) !== void 0) return;
|
|
3164
|
-
const o =
|
|
3183
|
+
const o = Go(t);
|
|
3165
3184
|
o !== void 0 && (s.comparisonPresentation = {
|
|
3166
3185
|
...s.comparisonPresentation,
|
|
3167
3186
|
precision: o
|
|
@@ -3171,24 +3190,24 @@ function Ui(e, a) {
|
|
|
3171
3190
|
to: "preferences.comparisonPresentation.precision"
|
|
3172
3191
|
}));
|
|
3173
3192
|
}
|
|
3174
|
-
const
|
|
3175
|
-
function
|
|
3193
|
+
const Yi = /* @__PURE__ */ new Set(["number", "currency", "percent", "scientific", "date", "duration"]);
|
|
3194
|
+
function Ji(e) {
|
|
3176
3195
|
const a = e.card.preferences;
|
|
3177
3196
|
if (a)
|
|
3178
|
-
for (const t of
|
|
3197
|
+
for (const t of Fi) {
|
|
3179
3198
|
const s = a[t];
|
|
3180
3199
|
if (!J(s)) continue;
|
|
3181
3200
|
const o = `preferences.${t}`, n = J(s.formatOptions) ? s.formatOptions : void 0, i = t === "dataLabelsConfig" && typeof s.format == "string" ? s.format : void 0, d = s.formatMode === "override" || s.formatMode === "inherit" ? s.formatMode : s.mode === "override" || s.mode === "inherit" ? s.mode : void 0, l = d ?? (i === "none" ? "raw" : i && i !== "auto" || n ? "override" : "inherit");
|
|
3182
3201
|
if (l === "raw" || d === void 0 && i === "none")
|
|
3183
3202
|
e.unconverted.push({ path: `${o}.format`, reason: "raw_display", detail: "Data labels show raw values." });
|
|
3184
3203
|
else if (l === "override") {
|
|
3185
|
-
const c = n && n.type ? n : i &&
|
|
3204
|
+
const c = n && n.type ? n : i && Yi.has(i) ? { ...n, type: i } : n, h = c ? Me(Do(c, { preserveOmittedProperties: !0 })) : void 0;
|
|
3186
3205
|
h && (s.valueFormat = h, e.changes.push({ path: `${o}.formatOptions`, action: "moved", to: `${o}.valueFormat` }));
|
|
3187
3206
|
}
|
|
3188
3207
|
ke(s, ["formatMode", "mode", "formatOptions", ...t === "dataLabelsConfig" ? ["format"] : []]) && e.changes.push({ path: `${o}.formatMode`, action: "removed" });
|
|
3189
3208
|
}
|
|
3190
3209
|
}
|
|
3191
|
-
function
|
|
3210
|
+
function Xi(e) {
|
|
3192
3211
|
var s;
|
|
3193
3212
|
const a = (s = e.card.config) == null ? void 0 : s.matrix, t = J(a) && J(a.presentation) ? a.presentation : void 0;
|
|
3194
3213
|
if (t)
|
|
@@ -3201,27 +3220,27 @@ function zi(e) {
|
|
|
3201
3220
|
}
|
|
3202
3221
|
}
|
|
3203
3222
|
}
|
|
3204
|
-
function
|
|
3223
|
+
function Zi(e, a = {}) {
|
|
3205
3224
|
const t = { card: structuredClone(e), changes: [], unconverted: [] };
|
|
3206
3225
|
for (const s of Lt)
|
|
3207
3226
|
ee(t.card, s).forEach((o, n) => {
|
|
3208
|
-
J(o) &&
|
|
3227
|
+
J(o) && qi(t, o, s, `config.${s}[${n}]`);
|
|
3209
3228
|
});
|
|
3210
|
-
return
|
|
3229
|
+
return Pi(t), Wi(t), Hi(t), Ji(t), Xi(t), Ni(t, a), t.changes.length === 0 && t.unconverted.length === 0 ? { card: e, changes: [], unconverted: [] } : t;
|
|
3211
3230
|
}
|
|
3212
|
-
const
|
|
3213
|
-
function
|
|
3231
|
+
const er = "__semaphor_unassigned_trigger__", tr = "__NULL__";
|
|
3232
|
+
function ar(e) {
|
|
3214
3233
|
var a, t;
|
|
3215
3234
|
return !!((a = e.sql) != null && a.trim() || (t = e.python) != null && t.trim());
|
|
3216
3235
|
}
|
|
3217
|
-
function
|
|
3236
|
+
function sr(e) {
|
|
3218
3237
|
const a = e.config;
|
|
3219
3238
|
return a ? e.type === "detailTable" ? a.detailColumns ?? [] : [...a.detailColumns ?? [], ...a.metricColumns ?? [], ...a.groupByColumns ?? []] : [];
|
|
3220
3239
|
}
|
|
3221
3240
|
function Oa(e) {
|
|
3222
3241
|
return [e.id, e.alias, e.name, e.qualifiedFieldName, e.label];
|
|
3223
3242
|
}
|
|
3224
|
-
function
|
|
3243
|
+
function or(e, a) {
|
|
3225
3244
|
var c, h;
|
|
3226
3245
|
const t = ((c = e.config) == null ? void 0 : c.metricColumns) ?? [], s = ((h = e.config) == null ? void 0 : h.pivotByColumns) ?? [];
|
|
3227
3246
|
if (t.length !== 1 || s.length !== 1) return { reason: "pivot_key_form" };
|
|
@@ -3230,16 +3249,16 @@ function tr(e, a) {
|
|
|
3230
3249
|
ref: {
|
|
3231
3250
|
kind: "pivot",
|
|
3232
3251
|
metricId: o.id,
|
|
3233
|
-
members: [{ fieldId: n.id, value: a ===
|
|
3252
|
+
members: [{ fieldId: n.id, value: a === tr ? null : a }]
|
|
3234
3253
|
}
|
|
3235
3254
|
};
|
|
3236
3255
|
}
|
|
3237
|
-
function
|
|
3256
|
+
function nr(e, a) {
|
|
3238
3257
|
var i, d;
|
|
3239
|
-
if (a ===
|
|
3240
|
-
if (
|
|
3241
|
-
const t =
|
|
3242
|
-
return n.length === 1 ? { ref: { kind: "field", fieldId: n[0] } } : n.length > 1 ? { reason: "ambiguous_column" } : (d = (i = e.config) == null ? void 0 : i.pivotByColumns) != null && d.length ?
|
|
3258
|
+
if (a === er) return { reason: "unassigned_trigger" };
|
|
3259
|
+
if (ar(e)) return { ref: { kind: "result", key: a } };
|
|
3260
|
+
const t = sr(e), s = t.filter((l) => Oa(l).includes(a)), o = s.length ? s : t.filter((l) => Oa(l).some((c) => (c == null ? void 0 : c.trim().toLowerCase()) === a.trim().toLowerCase())), n = [...new Set(o.map((l) => l.id))];
|
|
3261
|
+
return n.length === 1 ? { ref: { kind: "field", fieldId: n[0] } } : n.length > 1 ? { reason: "ambiguous_column" } : (d = (i = e.config) == null ? void 0 : i.pivotByColumns) != null && d.length ? or(e, a) : { reason: "no_matching_column" };
|
|
3243
3262
|
}
|
|
3244
3263
|
function Ea(e, a, t, s, o) {
|
|
3245
3264
|
const n = (_, I, R) => {
|
|
@@ -3284,7 +3303,7 @@ function Ea(e, a, t, s, o) {
|
|
|
3284
3303
|
target: N
|
|
3285
3304
|
};
|
|
3286
3305
|
}
|
|
3287
|
-
function
|
|
3306
|
+
function ir(e, a) {
|
|
3288
3307
|
var o;
|
|
3289
3308
|
const t = (o = La(e)) == null ? void 0 : o.value;
|
|
3290
3309
|
if (!t) return [];
|
|
@@ -3297,7 +3316,7 @@ function sr(e, a) {
|
|
|
3297
3316
|
return [{ id: `kpi-color-range-${i + 1}`, condition: S, target: { level: "cell" }, style: { textColor: x } }];
|
|
3298
3317
|
}).reverse();
|
|
3299
3318
|
}
|
|
3300
|
-
function
|
|
3319
|
+
function rr(e) {
|
|
3301
3320
|
var h, p, v, y, S, x, E;
|
|
3302
3321
|
const a = structuredClone(e), t = [], s = [], o = [], n = (C) => {
|
|
3303
3322
|
t.some((k) => k.from.startsWith(C)) || t.push({ ruleId: "", action: "removed", from: C });
|
|
@@ -3310,7 +3329,7 @@ function or(e) {
|
|
|
3310
3329
|
t.push({ ruleId: D.id, action: "removed", from: `${k}.rules[${w}]` });
|
|
3311
3330
|
return;
|
|
3312
3331
|
}
|
|
3313
|
-
const N = Ea(D, (I) =>
|
|
3332
|
+
const N = Ea(D, (I) => nr(a, I), `${k}.rules[${w}]`, s, !1);
|
|
3314
3333
|
N && (o.push(N), t.push({ ruleId: D.id, action: "moved", from: `${k}.rules[${w}]` }));
|
|
3315
3334
|
}), delete i.conditionalFormatting, s.some((D) => D.path.startsWith(k)) || n(k);
|
|
3316
3335
|
}
|
|
@@ -3332,7 +3351,7 @@ function or(e) {
|
|
|
3332
3351
|
if (c && ue(c, "colorRanges")) {
|
|
3333
3352
|
const C = Array.isArray(c.colorRanges) ? c.colorRanges : [];
|
|
3334
3353
|
if (a.type === "kpi") {
|
|
3335
|
-
const k =
|
|
3354
|
+
const k = ir(a, C);
|
|
3336
3355
|
o.push(...k), k.forEach((b) => t.push({ ruleId: b.id, action: "moved", from: "preferences.formatNumber.colorRanges" }));
|
|
3337
3356
|
}
|
|
3338
3357
|
delete c.colorRanges, Object.keys(c).length === 0 && delete l.formatNumber, t.some((k) => k.from === "preferences.formatNumber.colorRanges") || t.push({ ruleId: "", action: "removed", from: "preferences.formatNumber.colorRanges" });
|
|
@@ -3350,14 +3369,14 @@ function or(e) {
|
|
|
3350
3369
|
}
|
|
3351
3370
|
return { card: a, changes: t, unresolved: s };
|
|
3352
3371
|
}
|
|
3353
|
-
function
|
|
3354
|
-
const { only: t, ...s } = a, o = t === "rules" ? void 0 :
|
|
3372
|
+
function Mr(e, a = {}) {
|
|
3373
|
+
const { only: t, ...s } = a, o = t === "rules" ? void 0 : Zi(e, s), n = t === "formats" ? void 0 : rr((o == null ? void 0 : o.card) ?? e);
|
|
3355
3374
|
return { card: (n == null ? void 0 : n.card) ?? (o == null ? void 0 : o.card) ?? e, formats: o, rules: n };
|
|
3356
3375
|
}
|
|
3357
|
-
function
|
|
3376
|
+
function Br(e) {
|
|
3358
3377
|
return e.kind === "metric" ? e.resultId : e.measureId;
|
|
3359
3378
|
}
|
|
3360
|
-
function
|
|
3379
|
+
function dr(e) {
|
|
3361
3380
|
if (e.op === "dashboard.update" || e.op === "dashboard.style" || e.op === "sheet.update") return !0;
|
|
3362
3381
|
if (e.op !== "card.update") return !1;
|
|
3363
3382
|
switch (e.update.kind) {
|
|
@@ -3369,512 +3388,523 @@ function nr(e) {
|
|
|
3369
3388
|
return !1;
|
|
3370
3389
|
}
|
|
3371
3390
|
}
|
|
3372
|
-
function
|
|
3373
|
-
return e.impact.length || e.detaches ? "needed" : e.operations.length > 0 && e.operations.every(
|
|
3391
|
+
function Vr(e) {
|
|
3392
|
+
return e.impact.length || e.detaches ? "needed" : e.operations.length > 0 && e.operations.every(dr) ? "not_needed" : "needed";
|
|
3374
3393
|
}
|
|
3375
3394
|
export {
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3395
|
+
jr as AGGREGATES,
|
|
3396
|
+
Wr as AUTOMATIC_FALLBACK_GRAIN,
|
|
3397
|
+
Ur as AUTOMATIC_TEMPORAL_BUCKET_FORMAT,
|
|
3398
|
+
uo as AUTOMATIC_TIME_GRAIN,
|
|
3399
|
+
Qr as CALCULATED_FIELDS_GROUP_ID,
|
|
3400
|
+
Hr as CALCULATED_FIELDS_GROUP_NAME,
|
|
3401
|
+
zr as CARD_CONFIG_KEY_CLASSES,
|
|
3402
|
+
Yr as CARD_KEY_CLASSES,
|
|
3403
|
+
go as CARD_QUERY_CONFIG_KEYS,
|
|
3404
|
+
Ar as CARD_QUERY_REQUEST_DESCRIPTIVE_FIELDS,
|
|
3405
|
+
Rr as CARD_QUERY_REQUEST_EXECUTED_FIELDS,
|
|
3406
|
+
Jh as CARD_SURFACES,
|
|
3407
|
+
Jr as CARD_TYPES,
|
|
3387
3408
|
Fe as CARD_TYPE_RULES,
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3409
|
+
Ge as CHART_COLORS_BOUNDS,
|
|
3410
|
+
Xr as CHIP_VALUE_COLUMN,
|
|
3411
|
+
Zr as COLUMN_KEY_CLASSES,
|
|
3412
|
+
ed as COLUMN_PRESENTATION_KEYS,
|
|
3413
|
+
td as COMPARISON_POLARITIES,
|
|
3414
|
+
Bf as COMPARISON_SIGN_WORDS,
|
|
3415
|
+
ad as CONTROL_BINDING_MAPPING_MISSING_ERROR_CODE,
|
|
3416
|
+
sd as CONTROL_BINDING_TARGET_INVALID_ERROR_CODE,
|
|
3417
|
+
od as CONTROL_BINDING_VALUE_INVALID_ERROR_CODE,
|
|
3418
|
+
nd as CONTROL_CONTEXT_UNSUPPORTED_ERROR_CODE,
|
|
3419
|
+
id as CONTROL_DEFINITION_DUPLICATE_ERROR_CODE,
|
|
3420
|
+
rd as CONTROL_DEFINITION_INVALID_ERROR_CODE,
|
|
3421
|
+
dd as CONTROL_PLACEHOLDER_QUOTED_ERROR_CODE,
|
|
3422
|
+
ld as CONTROL_REFERENCE_MISSING_ERROR_CODE,
|
|
3423
|
+
cd as CONTROL_VALUE_INVALID_ERROR_CODE,
|
|
3424
|
+
ud as CONTROL_VALUE_MISSING_ERROR_CODE,
|
|
3425
|
+
Xh as CORNER_STEPS,
|
|
3405
3426
|
ce as CardQueryRequestError,
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3427
|
+
fd as ControlResolutionError,
|
|
3428
|
+
md as DASHBOARD_CHANGE_OPS,
|
|
3429
|
+
hd as DASHBOARD_DEFAULT_OPTION_DEPENDENCIES,
|
|
3430
|
+
Vf as DASHBOARD_FILTER_OPERATIONS,
|
|
3431
|
+
pd as DASHBOARD_INPUT_RUNTIME_SCOPE_KINDS,
|
|
3432
|
+
dn as DASHBOARD_STYLE_NUMBER_BOUNDS,
|
|
3433
|
+
Gf as DOCUMENT_KPI_SECTION_MAX_CARDS,
|
|
3434
|
+
Kf as DOCUMENT_KPI_SECTION_MAX_TILES,
|
|
3435
|
+
gd as DOMAIN_EDIT_CHANGE_OPS,
|
|
3436
|
+
bd as DYNAMIC_TEXT_MESSAGE,
|
|
3437
|
+
yd as DashboardFilterMappingContractError,
|
|
3438
|
+
vd as ExecutionControlContractError,
|
|
3439
|
+
Id as FILTER_OPERATORS,
|
|
3419
3440
|
ua as FORMAT_WORDS,
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
ym as LEGACY_TABLE_ROUTING_ID_NAMESPACE,
|
|
3441
|
+
_d as FilterModelError,
|
|
3442
|
+
Cd as KPI_MEASURES_SHOWN,
|
|
3443
|
+
rp as KPI_TREND_GRAINS,
|
|
3444
|
+
dp as KPI_TREND_PERIODS,
|
|
3445
|
+
$d as LEGACY_TABLE_CARD_TYPES,
|
|
3446
|
+
Om as LEGACY_TABLE_ROUTING_ID_NAMESPACE,
|
|
3427
3447
|
ba as MAX_CREATE_CHANGES,
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3448
|
+
wd as MAX_DATE_GRAIN_POINTS,
|
|
3449
|
+
xd as MAX_NEXT_STEP_CHARS,
|
|
3450
|
+
$o as MAX_PROPOSED_CHANGES,
|
|
3451
|
+
Sd as MAX_QUERY_LIMIT,
|
|
3452
|
+
kd as MAX_TEXT_WORDS,
|
|
3453
|
+
Td as MEASURE_CALCULATION_SUMMARIES,
|
|
3454
|
+
dh as NEW_CARD_TYPE,
|
|
3455
|
+
Rd as NON_ADDITIVE_SUM_OF_ROWS_HINT,
|
|
3456
|
+
Ad as PUBLIC_TRANSFORM_KIND,
|
|
3457
|
+
Fd as QUERY_ASPECTS,
|
|
3458
|
+
Dd as QUERY_CONFIG_KEY_ASPECTS,
|
|
3459
|
+
lh as RELATIONSHIP_ROUTE_CHANGED_MESSAGE,
|
|
3460
|
+
Od as RESERVED_VARIABLE_NAMES,
|
|
3461
|
+
Ed as SEE_RECORDS_CARD_TYPES,
|
|
3462
|
+
qd as SEE_RECORDS_LIMITS,
|
|
3463
|
+
Nd as SEE_RECORDS_MAX_PAGE,
|
|
3464
|
+
ch as SEE_RECORDS_MESSAGES,
|
|
3465
|
+
Pd as SEMAPHOR_CARTESIAN_CHART_TYPES,
|
|
3466
|
+
Ld as SETTINGS_BY_KIND,
|
|
3467
|
+
tp as SHELF_FIELD_KEYS,
|
|
3468
|
+
Zh as SPACING_STEPS,
|
|
3469
|
+
Md as TIME_GRAINS,
|
|
3470
|
+
Bd as TOOLBAR_FILTER_REACH_FIELDS,
|
|
3471
|
+
jf as VARIABLE_CARD_TYPE,
|
|
3472
|
+
Wf as VARIABLE_COMPARISON_PARTS,
|
|
3473
|
+
Vd as VARIABLE_GETS,
|
|
3474
|
+
Uf as VARIABLE_LIST_CAP,
|
|
3475
|
+
Qf as VARIABLE_LIST_SHOWN,
|
|
3476
|
+
Gd as VARIABLE_NAME_PATTERN,
|
|
3477
|
+
Hf as VARIABLE_VALUE_PART,
|
|
3478
|
+
Kd as WINDOW_ERROR_CODES,
|
|
3479
|
+
jd as WINDOW_WARNING_CODES,
|
|
3480
|
+
Wd as acceptedColumnRefKinds,
|
|
3481
|
+
Ud as acceptsGrainThatRan,
|
|
3482
|
+
Qd as analyticsFilterSchema,
|
|
3483
|
+
Hd as appliedBindingControlValue,
|
|
3484
|
+
Em as applyCardReferenceRemapping,
|
|
3485
|
+
zd as applyCardSettings,
|
|
3463
3486
|
wt as applyDashboardOperations,
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3487
|
+
Yd as applyFilterApplicability,
|
|
3488
|
+
uh as applyFilterSettingsChange,
|
|
3489
|
+
qm as applyGroupByOverride,
|
|
3490
|
+
Jd as applyLinkedClickToFilterOverrides,
|
|
3491
|
+
Xd as applyMeasureCalculations,
|
|
3492
|
+
Zd as applyOptionDependencyOverride,
|
|
3493
|
+
el as applyVariableChange,
|
|
3494
|
+
tl as automaticDateGrain,
|
|
3495
|
+
fo as automaticGrainSupport,
|
|
3496
|
+
al as blockClause,
|
|
3497
|
+
sl as blockSentence,
|
|
3498
|
+
mp as bookmarkImpactSentence,
|
|
3499
|
+
fh as buildCardExportFormatOptions,
|
|
3500
|
+
Nm as buildCardExportQueryContext,
|
|
3501
|
+
mh as buildCardExportRequest,
|
|
3502
|
+
hh as buildCardExportRequestFromOptions,
|
|
3503
|
+
ph as buildColumnCatalog,
|
|
3504
|
+
ol as buildControlDefinitionIndex,
|
|
3481
3505
|
no as buildDashboardCardSourceIndex,
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3506
|
+
gh as buildEntityColumnGroup,
|
|
3507
|
+
bh as buildFilterInputFromDefinition,
|
|
3508
|
+
zo as buildFilterInputFromField,
|
|
3509
|
+
nl as buildLinkedClickToFilterOverrides,
|
|
3510
|
+
il as buildProposeChangeInputSchema,
|
|
3511
|
+
rl as buildSavedEditorCard,
|
|
3512
|
+
yh as buildTableExportFormatOptions,
|
|
3513
|
+
dl as calculationAddSchema,
|
|
3514
|
+
vh as cardColumnRefForKey,
|
|
3515
|
+
ll as cardColumnRefSchema,
|
|
3516
|
+
So as cardConditionalFormattingSchema,
|
|
3517
|
+
cl as cardConfigAsRan,
|
|
3518
|
+
ul as cardQueryPatchSchema,
|
|
3519
|
+
fl as cardReachesDatasetThroughRelationships,
|
|
3495
3520
|
Ps as cardSettingsKind,
|
|
3496
3521
|
qs as cardTypeSentenceName,
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3522
|
+
ml as carryColumnSettings,
|
|
3523
|
+
bo as changeCardType,
|
|
3524
|
+
hl as changeMatrixEditor,
|
|
3525
|
+
ko as checkConditionalRuleColumns,
|
|
3501
3526
|
Dt as checkDataVariable,
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3527
|
+
pl as checkDetailDateFormat,
|
|
3528
|
+
Lr as checkPresentationStores,
|
|
3529
|
+
gl as chipOverVariable,
|
|
3530
|
+
bl as clickToFilterSettingsSchema,
|
|
3531
|
+
yl as collectJoinPlanIdentifiers,
|
|
3507
3532
|
Qa as collectVariableReferences,
|
|
3508
3533
|
Na as columnDataset,
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3534
|
+
yo as columnFieldKey,
|
|
3535
|
+
Ka as columnKeys,
|
|
3536
|
+
vl as columnRefIssue,
|
|
3512
3537
|
la as columnRefKey,
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3538
|
+
Il as columnSettingsInputSchema,
|
|
3539
|
+
zf as comparisonPartPresentation,
|
|
3540
|
+
Pm as composeCardReferenceRemapping,
|
|
3541
|
+
_l as conditionalRuleSchema,
|
|
3542
|
+
Vr as confirmClassFor,
|
|
3543
|
+
Cl as contextChangeSchema,
|
|
3544
|
+
$l as controlBindingExecutionSchema,
|
|
3545
|
+
wl as controlDefinitionExecutionSchema,
|
|
3521
3546
|
so as controlRefusal,
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3547
|
+
Or as convertLegacyStyle,
|
|
3548
|
+
xl as createDashboardFilterBindingId,
|
|
3549
|
+
th as createMatrixAuthoringDraft,
|
|
3550
|
+
ah as createMatrixConfig,
|
|
3551
|
+
Jo as createNewCard,
|
|
3552
|
+
Sl as createTargetSchema,
|
|
3553
|
+
Yo as createTextCard,
|
|
3554
|
+
kl as dashboardCardFilterSourceInventoryContains,
|
|
3530
3555
|
Zs as dashboardChangeSchema,
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3556
|
+
Tl as dashboardFilterTargetMatchesLogicalValue,
|
|
3557
|
+
Yf as dashboardFilterValueTypeForDataType,
|
|
3558
|
+
Lo as dashboardInputScopeIncludesDocumentSheets,
|
|
3559
|
+
An as dashboardStyleAsEdit,
|
|
3560
|
+
Rl as dashboardStyleChangeSchema,
|
|
3536
3561
|
za as dashboardStyleLayers,
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3562
|
+
Al as decideClickToFilterCardLevel,
|
|
3563
|
+
Fl as decideClickToFilterField,
|
|
3564
|
+
Dl as defaultClickToFilterSettings,
|
|
3565
|
+
bn as defaultVariableGet,
|
|
3566
|
+
ap as defaultVariableName,
|
|
3567
|
+
hp as describeBookmarkImpact,
|
|
3568
|
+
Ol as describeDashboardFilterCardReach,
|
|
3544
3569
|
$e as describeDashboardFilterCardReachDetail,
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3570
|
+
Ih as describeDateWindow,
|
|
3571
|
+
_h as describeFilterReachEntry,
|
|
3572
|
+
Ch as describeKpiDateSection,
|
|
3573
|
+
$h as describeKpiTileDate,
|
|
3574
|
+
lp as describeKpiTrendRow,
|
|
3575
|
+
El as describeMeasureCalculations,
|
|
3551
3576
|
ao as describeQueryChange,
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3577
|
+
wh as describeRelationshipRoute,
|
|
3578
|
+
xh as describeRelationshipSkip,
|
|
3579
|
+
ql as describeTableColumnTotal,
|
|
3580
|
+
Jf as documentInputTextUsage,
|
|
3581
|
+
Xf as doesDashboardInputApplyToTarget,
|
|
3582
|
+
Zf as doesDashboardInputReachFilterTarget,
|
|
3583
|
+
em as doesDashboardInputSurviveCarriedContext,
|
|
3584
|
+
Nl as doesToolbarFilterReachTab,
|
|
3585
|
+
Sh as domainCalculatedFields,
|
|
3586
|
+
Pl as domainEditChangeSchema,
|
|
3587
|
+
Ll as domainEditChangeSchemas,
|
|
3588
|
+
sp as draftBlocker,
|
|
3589
|
+
yn as draftFromVariable,
|
|
3590
|
+
Ml as drawsDetailDatesInBrowser,
|
|
3591
|
+
Bl as dropMatrixEditorField,
|
|
3592
|
+
gp as editBrandStyle,
|
|
3593
|
+
ln as editDashboardStyle,
|
|
3594
|
+
Vl as estimateDateGrainPoints,
|
|
3595
|
+
Gl as evaluateConditionalRules,
|
|
3596
|
+
Kl as explicitComparisonSchema,
|
|
3597
|
+
jl as fieldAsRan,
|
|
3572
3598
|
Us as fieldIdentityKey,
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3599
|
+
Wl as fieldRef,
|
|
3600
|
+
Ul as fieldRefSchema,
|
|
3601
|
+
Ql as filterApplicabilityContextForCard,
|
|
3602
|
+
kh as filterReachPreviewAnswers,
|
|
3603
|
+
Hl as filterValueReachForCard,
|
|
3604
|
+
zl as filterValueSemanticDataset,
|
|
3605
|
+
Yl as findBorrowedSelectionBinding,
|
|
3580
3606
|
ot as findCatalogField,
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3607
|
+
Jl as findDashboardCardExecutableSource,
|
|
3608
|
+
Xl as findDashboardCardPinnedCatalogSource,
|
|
3609
|
+
Wa as findDashboardFilterTarget,
|
|
3610
|
+
Zl as findDashboardSqlPinnedCatalogSource,
|
|
3585
3611
|
ps as findRetiredCardPresentationFields,
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3612
|
+
Pr as findRetiredPresentationFields,
|
|
3613
|
+
Ws as findSortedColumn,
|
|
3614
|
+
Th as flattenEntityColumns,
|
|
3615
|
+
ec as foldPrototypeDocumentInputs,
|
|
3616
|
+
tc as formatFilterModelIssues,
|
|
3591
3617
|
ws as formatResolvedPrimaryDateFieldIssues,
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3618
|
+
ac as formatSkippedFilterWarnings,
|
|
3619
|
+
sc as fromEditableRules,
|
|
3620
|
+
Rh as getCalculatedFieldAggregateOverrides,
|
|
3621
|
+
oc as getCalculatedFieldNamespace,
|
|
3622
|
+
Ah as getCalculatedFieldParameters,
|
|
3623
|
+
Fh as getCalculatedFieldShelfOverrides,
|
|
3624
|
+
nc as getCardDefinition,
|
|
3625
|
+
Dh as getClickContextFromTable,
|
|
3626
|
+
ic as getColumnCatalogFieldId,
|
|
3627
|
+
rc as getDashboardFilterSubscriptionHint,
|
|
3628
|
+
dc as getDashboardGlobalDateFilter,
|
|
3629
|
+
tm as getDocumentKpiSectionShapeIssues,
|
|
3630
|
+
am as getDocumentSectionCards,
|
|
3631
|
+
Oh as getDomainCalculatedSelectionOverrides,
|
|
3632
|
+
lc as getFieldAggregationOptions,
|
|
3633
|
+
cc as getMatrixBindingTargets,
|
|
3634
|
+
sh as getMatrixLevelLabel,
|
|
3635
|
+
oh as getMatrixMeasureLabel,
|
|
3636
|
+
uc as getStableDomainCalculatedFieldId,
|
|
3637
|
+
fc as getTemporalBucketAuthoringOptions,
|
|
3638
|
+
mc as getTemporalBucketAuthoringSelection,
|
|
3639
|
+
hc as grainChoicePatch,
|
|
3640
|
+
pc as grainControlApplies,
|
|
3641
|
+
gc as handleSchema,
|
|
3642
|
+
bc as hasDashboardFilterSubscription,
|
|
3643
|
+
Eh as hasSeeRecordsMeasureFilter,
|
|
3616
3644
|
ue as hasStoredKey,
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3645
|
+
yc as hasTextCardRichWords,
|
|
3646
|
+
vc as hasToolbarFilterReachField,
|
|
3647
|
+
Lm as hostFilterValueFor,
|
|
3648
|
+
Mm as hostFilterValuesToSlots,
|
|
3649
|
+
Ic as inspectMatrixCardConfig,
|
|
3650
|
+
Bm as isAdHocFilterValueOnTab,
|
|
3623
3651
|
Ca as isAggregateGet,
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3652
|
+
_c as isAllowedDashboardInputScopeCombination,
|
|
3653
|
+
Cc as isCardType,
|
|
3654
|
+
sm as isDashboardFilterOperationCompatible,
|
|
3627
3655
|
Ua as isDashboardInputOnTab,
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3656
|
+
om as isDashboardInputOwnedBySheet,
|
|
3657
|
+
nm as isDashboardInputScopeEmpty,
|
|
3658
|
+
im as isDashboardTargetIdTaken,
|
|
3659
|
+
$c as isDatabaseEntityReference,
|
|
3660
|
+
wc as isGroupedDate,
|
|
3661
|
+
xc as isLegacyTableCard,
|
|
3662
|
+
Sc as isPresentationCurrencyBinding,
|
|
3663
|
+
kc as isSeeRecordsCardType,
|
|
3664
|
+
Tc as isSemanticAutoJoinCard,
|
|
3665
|
+
Rc as isSemaphorCartesianChartType,
|
|
3666
|
+
qo as isSqlKpi,
|
|
3667
|
+
Ac as isStructuralControlBinding,
|
|
3668
|
+
Fc as isTextCardRichContent,
|
|
3669
|
+
Dc as isValidControlOptionPresentation,
|
|
3670
|
+
rm as isVariableComparisonPart,
|
|
3671
|
+
Oc as isWhenRun,
|
|
3672
|
+
Ec as kpiSegmentMetricId,
|
|
3673
|
+
qc as kpiShowsTrend,
|
|
3646
3674
|
Es as kpiTrendBy,
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3675
|
+
qh as kpiTrendByHint,
|
|
3676
|
+
js as labelAt,
|
|
3677
|
+
Nc as layoutArrangeSchema,
|
|
3678
|
+
Vm as legacyTableRoutingIds,
|
|
3679
|
+
Gm as legacyTableRoutingTarget,
|
|
3680
|
+
Pc as linkedClickToFilterOverridesSchema,
|
|
3681
|
+
Km as listAdHocFilterValuesOnTab,
|
|
3654
3682
|
xe as listDashboardCardLocations,
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3683
|
+
Lc as listDashboardFilterDefinitions,
|
|
3684
|
+
Mc as listDashboardFilterInputsOnTab,
|
|
3685
|
+
ja as listDashboardFilterTargets,
|
|
3686
|
+
dm as listDashboardInputReachKeys,
|
|
3687
|
+
No as listDashboardInputScopeExceptedCardIds,
|
|
3688
|
+
Po as listDashboardInputScopeExceptedSheetIds,
|
|
3689
|
+
Bc as listDashboardInputsTolerantly,
|
|
3662
3690
|
Ot as listDashboardTabTargets,
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3691
|
+
lm as listDataVariablePlaces,
|
|
3692
|
+
jm as listFilterInputValueTargets,
|
|
3693
|
+
cm as listFilterTargetScopeTargets,
|
|
3694
|
+
um as listReachedVariableTargets,
|
|
3695
|
+
fm as listReferencedDataVariableIds,
|
|
3696
|
+
Vc as listStoredFilterDefinitions,
|
|
3697
|
+
mm as listVariableScopeTargets,
|
|
3698
|
+
hm as mapDashboardCards,
|
|
3699
|
+
pm as mapDocumentSectionCards,
|
|
3700
|
+
Gc as mapRuleColumns,
|
|
3701
|
+
Kc as matchColumns,
|
|
3702
|
+
Wm as matrixCatalogSources,
|
|
3703
|
+
_o as matrixColumnKeys,
|
|
3704
|
+
jc as matrixColumnsSchema,
|
|
3705
|
+
Wc as matrixDefinitionFieldRefs,
|
|
3706
|
+
Uc as matrixDefinitionFields,
|
|
3707
|
+
Qc as matrixDefinitionSources,
|
|
3708
|
+
Hc as matrixEditorCatalogFromFields,
|
|
3709
|
+
Um as matrixExecutionSources,
|
|
3710
|
+
zc as measureCalculationOptions,
|
|
3711
|
+
Yc as measureComparisonSchema,
|
|
3712
|
+
Jc as measureRefSchema,
|
|
3713
|
+
Xc as measureTransformSchema,
|
|
3714
|
+
nh as mergeMatrixSorts,
|
|
3687
3715
|
lo as metricCardQuerySchema,
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3716
|
+
Io as moveMatrixLevel,
|
|
3717
|
+
op as newVariableDraft,
|
|
3718
|
+
np as newVariableId,
|
|
3719
|
+
Zc as normalizeClickToFilterSettings,
|
|
3720
|
+
eu as normalizeDashboardInputs,
|
|
3721
|
+
tu as normalizeLegacyLinkedTargetOverrides,
|
|
3722
|
+
au as occurrenceKeys,
|
|
3695
3723
|
es as outlineCalendar,
|
|
3696
|
-
|
|
3724
|
+
Nr as outlineDashboard,
|
|
3697
3725
|
Pe as outlineFilter,
|
|
3698
3726
|
as as outlineFilters,
|
|
3699
3727
|
ut as ownsItsAggregate,
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3728
|
+
Dr as parseCardQueryRequest,
|
|
3729
|
+
xn as parseCardQueryRequestContext,
|
|
3730
|
+
Fr as parseCardQueryRequestExtras,
|
|
3731
|
+
su as parseColumnRefKey,
|
|
3732
|
+
Nh as parseDashboardStyle,
|
|
3733
|
+
ou as parseExecutionControlBindingsShallow,
|
|
3706
3734
|
Ss as parseExecutionControlContext,
|
|
3707
|
-
|
|
3735
|
+
nu as parseExecutionControlContract,
|
|
3708
3736
|
pa as planCardLabels,
|
|
3709
3737
|
ha as planCardRequery,
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3738
|
+
Ph as pluralDatasetLabel,
|
|
3739
|
+
Qm as prepareLoadedDashboard,
|
|
3740
|
+
iu as previewTemporalBucketAuthoringFormat,
|
|
3741
|
+
gm as projectDataVariableToCard,
|
|
3742
|
+
ru as pruneUnrelatedCalculatedFilters,
|
|
3715
3743
|
oo as queryForm,
|
|
3716
|
-
|
|
3717
|
-
|
|
3744
|
+
du as queryMeasureSchema,
|
|
3745
|
+
lu as readCardConditionalRules,
|
|
3718
3746
|
we as readCardQuery,
|
|
3719
3747
|
Ft as readCardSettings,
|
|
3720
3748
|
he as readCardSource,
|
|
3721
3749
|
Ee as readCardTypeProperties,
|
|
3722
|
-
|
|
3750
|
+
cp as readComparisonDates,
|
|
3723
3751
|
Ie as readDashboardFilterModel,
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3752
|
+
up as readDefaultComparisonDates,
|
|
3753
|
+
cu as readExactDomainCalculatedFieldReference,
|
|
3754
|
+
Lh as readFilterReachResponse,
|
|
3755
|
+
Hm as readFilterValueList,
|
|
3756
|
+
Mh as readKpiDateContext,
|
|
3757
|
+
uu as readKpiFigure,
|
|
3758
|
+
fu as readKpiNumber,
|
|
3759
|
+
mu as readMatrixCardConfig,
|
|
3760
|
+
hu as readMeasureCalculations,
|
|
3761
|
+
pu as readSqlFilterUse,
|
|
3762
|
+
gu as readStoredTransform,
|
|
3763
|
+
Ga as readTextCardWords,
|
|
3736
3764
|
Ze as readTextWords,
|
|
3737
|
-
|
|
3738
|
-
|
|
3765
|
+
bu as readTransform,
|
|
3766
|
+
bm as readVariableAnswer,
|
|
3739
3767
|
rs as readVariableEditability,
|
|
3740
3768
|
kt as readVariableSource,
|
|
3741
|
-
|
|
3742
|
-
|
|
3769
|
+
wo as readablePresentation,
|
|
3770
|
+
yu as rebindDashboardOptionDependencyInputId,
|
|
3743
3771
|
ma as rebuildsRole,
|
|
3744
|
-
|
|
3745
|
-
|
|
3772
|
+
vu as reconcileMatrixSpecStructure,
|
|
3773
|
+
Iu as reconcileTemporalBucketAuthoringFormat,
|
|
3746
3774
|
ro as recordsCardQuerySchema,
|
|
3747
3775
|
Js as refDataset,
|
|
3748
3776
|
be as refKey,
|
|
3749
3777
|
Ct as refName,
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3778
|
+
_u as registeredDomainEditChangeSchemas,
|
|
3779
|
+
Cu as relationshipAddSchema,
|
|
3780
|
+
$u as relationshipRouteTarget,
|
|
3781
|
+
wu as remapClickToFilterReferences,
|
|
3782
|
+
xu as remapLinkedClickToFilterOverrides,
|
|
3783
|
+
Su as requireNormalizedDashboardInputs,
|
|
3784
|
+
ku as resolveBindingControlValue,
|
|
3785
|
+
ym as resolveCanonicalDetailResultRawKey,
|
|
3786
|
+
vm as resolveCanonicalResultOutputKey,
|
|
3787
|
+
Vo as resolveCanonicalResultOutputKeys,
|
|
3788
|
+
Im as resolveCanonicalResultRawKey,
|
|
3789
|
+
Bh as resolveCardColumnRef,
|
|
3790
|
+
Hn as resolveCardSettings,
|
|
3791
|
+
Vh as resolveConditionalRules,
|
|
3792
|
+
Er as resolveDashboardChanges,
|
|
3793
|
+
qr as resolveDashboardCreate,
|
|
3794
|
+
Tu as resolveDashboardEntitySource,
|
|
3795
|
+
Ru as resolveDashboardFilterAutomaticTarget,
|
|
3796
|
+
Au as resolveDashboardFilterInheritedTarget,
|
|
3797
|
+
Fu as resolveDashboardOptionDependencies,
|
|
3798
|
+
Du as resolveDashboardOptionPopulation,
|
|
3799
|
+
Ou as resolveDashboardSqlFilterTarget,
|
|
3800
|
+
cn as resolveDashboardStyle,
|
|
3801
|
+
Eu as resolveDetailTableRawTemporalPresentation,
|
|
3802
|
+
qu as resolveFieldSelectedSource,
|
|
3803
|
+
Nu as resolveGroupByFieldTarget,
|
|
3804
|
+
Pu as resolveKpiLayout,
|
|
3777
3805
|
La as resolveKpiShape,
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3806
|
+
Lu as resolveKpiValueStyle,
|
|
3807
|
+
zm as resolveMatrixControlBindings,
|
|
3808
|
+
ih as resolveMatrixDefinition,
|
|
3781
3809
|
fa as resolveMeasureCalculations,
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3810
|
+
Mu as resolveMeasureTransform,
|
|
3811
|
+
Bu as resolveMetricFieldTarget,
|
|
3812
|
+
Vu as resolveScalarMappedValue,
|
|
3813
|
+
Gu as resolveTableColumnTotal,
|
|
3814
|
+
Ku as resolveTemporalBucketAuthoringFormat,
|
|
3787
3815
|
xs as resolveTemporalResultOwner,
|
|
3788
3816
|
ga as resolveTextCardWords,
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3817
|
+
ju as resolveValueStyle,
|
|
3818
|
+
Wu as respondsToSelectionsSchema,
|
|
3819
|
+
Uu as retainConditionalRules,
|
|
3820
|
+
Qu as retainedMatrixPath,
|
|
3821
|
+
_m as rewriteDashboardInputScopeIds,
|
|
3822
|
+
Ym as routeLegacyTableCard,
|
|
3823
|
+
Jm as routeLegacyTableCards,
|
|
3824
|
+
Xm as routeLegacyTableFrame,
|
|
3797
3825
|
He as sameColumnKey,
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3826
|
+
Hu as sanitizeTextCardUrl,
|
|
3827
|
+
Gh as seeRecordsAvailability,
|
|
3828
|
+
Kh as seeRecordsCardAvailability,
|
|
3829
|
+
Br as seeRecordsMeasureId,
|
|
3830
|
+
jh as seeRecordsMeasureKind,
|
|
3831
|
+
Wh as seeRecordsReasonHidesOffer,
|
|
3832
|
+
zu as seeRecordsRequestSchema,
|
|
3833
|
+
Uh as seeRecordsRowField,
|
|
3834
|
+
Yu as selectDashboardOptionDependencyInputIds,
|
|
3835
|
+
Ju as selectionFieldFromExplorerField,
|
|
3836
|
+
Qh as selectionTupleFromClickContext,
|
|
3837
|
+
Hh as setMeasureCalculations,
|
|
3838
|
+
Xu as settableCardType,
|
|
3839
|
+
Zu as sharedCardPreferences,
|
|
3840
|
+
ef as sharedTableDialect,
|
|
3841
|
+
tf as sheetChangeSchemas,
|
|
3814
3842
|
io as sqlCardQuerySchema,
|
|
3815
|
-
|
|
3843
|
+
af as sqlKpiResultKeys,
|
|
3816
3844
|
qe as statedLabelsOf,
|
|
3817
3845
|
Rs as storedCardTypeFor,
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3846
|
+
sf as storedRunPresentation,
|
|
3847
|
+
Cm as storedTextRefs,
|
|
3848
|
+
of as stripInstanceTargetsForLibrarySave,
|
|
3849
|
+
nf as structuralControlOverride,
|
|
3822
3850
|
ts as summarizeFilter,
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3851
|
+
rf as supportsCanonicalDashboardTemporalResult,
|
|
3852
|
+
df as tabChangeSchemas,
|
|
3853
|
+
lf as tableColumnTotalLabel,
|
|
3854
|
+
cf as textCardExcerpt,
|
|
3855
|
+
uf as textCardWordingClauses,
|
|
3828
3856
|
_t as textCatalogAt,
|
|
3829
3857
|
ct as toChartType,
|
|
3830
|
-
|
|
3831
|
-
|
|
3858
|
+
ff as toEditableRules,
|
|
3859
|
+
mf as toFiniteKpiNumber,
|
|
3832
3860
|
$t as toPublicCardType,
|
|
3833
3861
|
Xs as toStoredComparison,
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3862
|
+
hf as toolbarFilterInputFields,
|
|
3863
|
+
pf as toolbarFilterScope,
|
|
3864
|
+
gf as transformComparisonDocument,
|
|
3865
|
+
bf as transformGroupings,
|
|
3866
|
+
yf as transformOrderSchema,
|
|
3867
|
+
vo as updateMatrixConfig,
|
|
3868
|
+
Zi as upgradeCardFormats,
|
|
3869
|
+
Mr as upgradeCardPresentation,
|
|
3870
|
+
rr as upgradeConditionalFormatting,
|
|
3871
|
+
Zm as upgradeToStoredDashboard,
|
|
3872
|
+
vf as validateAndResolveWindowTransforms,
|
|
3873
|
+
If as validateControlValue,
|
|
3874
|
+
$m as validateDashboardFilterValues,
|
|
3847
3875
|
$s as validateResolvedPrimaryDateFieldShape,
|
|
3848
|
-
|
|
3849
|
-
|
|
3876
|
+
wm as variableCardKeepsComparison,
|
|
3877
|
+
xm as variableComparison,
|
|
3850
3878
|
Ye as variableFromDraft,
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
+
gn as variableGetOptions,
|
|
3880
|
+
Sm as variablePartCell,
|
|
3881
|
+
km as variablePartType,
|
|
3882
|
+
Bo as variableParts,
|
|
3883
|
+
Tm as variableQueryResponseOf,
|
|
3884
|
+
zh as variableSourceWords,
|
|
3885
|
+
vn as variableTakesComparison,
|
|
3886
|
+
Zo as variableWords,
|
|
3887
|
+
_f as withCardConditionalRules,
|
|
3888
|
+
Cf as withCardConfigSqlDatePatterns,
|
|
3889
|
+
Rm as withCardExcludedFromScope,
|
|
3890
|
+
Am as withCardIncludedInScope,
|
|
3891
|
+
$f as withDashboardOptionDependencyOverride,
|
|
3892
|
+
wf as withDetailSqlDatePattern,
|
|
3893
|
+
Fm as withDraftCard,
|
|
3894
|
+
xf as withFormatOverride,
|
|
3895
|
+
Sf as withGrainChoice,
|
|
3896
|
+
kf as withSqlDatePattern,
|
|
3897
|
+
Tf as withStartingGrain,
|
|
3898
|
+
Mo as withUnstatedScopeParts,
|
|
3899
|
+
Rf as withoutSqlDatePattern,
|
|
3900
|
+
Af as withoutToolbarFilterReachFields,
|
|
3901
|
+
Ff as wordingBlocks,
|
|
3902
|
+
Df as wordingClauses,
|
|
3903
|
+
Of as writeColumnFormat,
|
|
3904
|
+
Ef as writeColumnPolarity,
|
|
3905
|
+
qf as writeComparisonDisplay,
|
|
3906
|
+
Nf as writeComparisonPresentation,
|
|
3907
|
+
Pf as writeInheritComparison,
|
|
3908
|
+
Lf as writeSeeRecords,
|
|
3879
3909
|
Ys as writeTextWords
|
|
3880
3910
|
};
|