react-semaphor 0.1.590 → 0.1.592
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 +254 -236
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +7 -7
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/{aggregate-measure-field-BrkXsSJp.js → aggregate-measure-field-DHlDj0Pc.js} +2 -2
- package/dist/chunks/{assistant-chat-C_6dBLUk.js → assistant-chat-BusR-5uT.js} +13 -13
- package/dist/chunks/bookmark-impact-DozXJZDS.js +76 -0
- package/dist/chunks/{bookmark-state-Bn7k3ttp.js → bookmark-state-Be2W3s6t.js} +632 -592
- package/dist/chunks/{card-filter-builder-6vflbF9O.js → card-filter-builder-DBTJ74yy.js} +916 -897
- package/dist/chunks/{comparison-window-caption-fqijZdVd.js → comparison-window-caption-h8w3ySL6.js} +90 -91
- package/dist/chunks/{dashboard-DpgRl65K.js → dashboard-CmzJzmph.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BLbhONJz.js → dashboard-briefing-launcher-BOQGpYr2.js} +160 -160
- package/dist/chunks/{dashboard-controls-kCTYEEsq.js → dashboard-controls-BxI3e2_o.js} +64 -64
- package/dist/chunks/{dashboard-json-CNIFresY.js → dashboard-json-BMqXV2Rx.js} +4 -4
- package/dist/chunks/{dates-BoeweqEo.js → dates-DBsscxL_.js} +8 -8
- package/dist/chunks/{edit-dashboard-visual-D0eWTlPL.js → edit-dashboard-visual-Dvc_Pkfg.js} +5443 -5417
- package/dist/chunks/filter-line-CYT7KIXb.js +133 -0
- package/dist/chunks/{filter-reach-copy-eMhDPTYH.js → filter-reach-copy-hEzlpBu7.js} +224 -224
- package/dist/chunks/filter-value-text-CHBm4IU7.js +153 -0
- package/dist/chunks/{index-D8LFjI8j.js → index-BoYJqc3F.js} +24 -24
- package/dist/chunks/{layout-grid-BG__sPkb.js → layout-grid-DoFIfQGd.js} +1 -1
- package/dist/chunks/{list-filter-Cb8i7N8f.js → list-filter-BeTQxjNy.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-D9Ll_9R-.js → matrix-analytical-definition-CyWOwLmE.js} +17 -17
- package/dist/chunks/{matrix-member-presentation-DVBJR0MA.js → matrix-member-presentation-Bj2YcHAP.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-JSmproo9.js → matrix-operation-contract-CAanJeCj.js} +60 -60
- package/dist/chunks/{metric-comparison-xE_J6hkg.js → metric-comparison-BeKnUD08.js} +27 -31
- package/dist/chunks/{paintbrush-C310xSuR.js → paintbrush-KeaU1L1a.js} +1 -1
- package/dist/chunks/{palette-Ci5P91Zb.js → palette-BcFJLeXB.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-DbBahmgc.js → pivot-result-contract-expectations-CaS0y823.js} +522 -486
- package/dist/chunks/{pivot-result-identity-CUsMt_4r.js → pivot-result-identity-BKUjYO1u.js} +1 -1
- package/dist/chunks/raw-temporal-value-BzdgeDa7.js +454 -0
- package/dist/chunks/{report-preferences-dialog-dUlVLgEk.js → report-preferences-dialog-Cu_f-8Kw.js} +13 -13
- package/dist/chunks/{report-runtime-context-CrOgmuxO.js → report-runtime-context-g4Zp_TU9.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-NurwNg4I.js → resolve-dashboard-input-context-CkMk1RW6.js} +7600 -6398
- package/dist/chunks/{save-BhhXfp4s.js → save-C9CZAk6V.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-CPp--vXU.js → saved-dashboard-context-RgBS_PIj.js} +19 -19
- package/dist/chunks/{selection-filter-compiler-CHG-8xnW.js → selection-filter-compiler-BclSpK3P.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-CXojR95M.js → semaphor-ready-indicator-DXpTZJ7R.js} +31502 -31453
- package/dist/chunks/{shelf-drop-preview-context-BDScAUdq.js → shelf-drop-preview-context-qdlJKaH7.js} +5 -5
- package/dist/chunks/stored-dashboard-Baw6Bp2A.js +4029 -0
- package/dist/chunks/{style-sheet-parts-CmXmKqGw.js → style-sheet-parts-DM_Mw_sm.js} +45 -42
- package/dist/chunks/{table-export-sheet-ClSgERQC.js → table-export-sheet-Cd6z7SsG.js} +1 -1
- package/dist/chunks/{token-types-DTocOcwt.js → token-types-BB2ImFx6.js} +1 -1
- package/dist/chunks/{upload-DDYc1Qjj.js → upload-CMTCg47S.js} +1 -1
- package/dist/chunks/{validators-CrYXNnNE.js → validators-BlEWWX9O.js} +576 -562
- package/dist/chunks/{variable-draft-Bi3RlULA.js → variable-draft-BxtN6YcG.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1672 -1633
- package/dist/format-utils/index.js +217 -218
- package/dist/index.js +62 -62
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/surfboard/filter/types.d.ts +7 -5
- package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +3 -3
- package/dist/types/components/visual/data-table/types/data-table.d.ts +24 -2
- package/dist/types/index.js +30 -29
- package/dist/types/lib/dashboard-inputs/dashboard-date-comparison-plan.d.ts +0 -1
- package/dist/types/lib/dashboard-viewer/table-view-edit.d.ts +27 -0
- package/dist/types/lib/dashboard-viewer/table-view.d.ts +37 -1
- package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/agent-time-window.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +2 -1
- package/dist/types/shared/analytics-protocol/relative-date/sentence.d.ts +81 -0
- package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +0 -9
- package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +23 -2
- package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +20 -0
- package/dist/types/shared/dashboard-authoring/card-formats/detail-date-display.d.ts +84 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +36 -36
- package/dist/types/shared/dashboard-authoring/filter-model/date-filter-default.d.ts +37 -0
- package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-viewer/table-column-move.d.ts +56 -0
- package/dist/types/shared/dashboard-viewer/table-settings.d.ts +7 -0
- package/dist/types/shared/format-utils/filter-line.d.ts +2 -0
- package/package.json +1 -1
- package/dist/chunks/bookmark-impact-DkZABEd3.js +0 -75
- package/dist/chunks/filter-line-Dza3ee4w.js +0 -131
- package/dist/chunks/filter-value-text-DQw4v3nC.js +0 -146
- package/dist/chunks/pivot-header-presentation-D-DfPAjb.js +0 -42
- package/dist/chunks/raw-temporal-value-BnGCWJAL.js +0 -322
- package/dist/chunks/stored-dashboard-KkH4zOhq.js +0 -4998
- package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -53
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var y = Object.defineProperty;
|
|
2
2
|
var c = (i, t, e) => t in i ? y(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var a = (i, t, e) => c(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { v as u } from "./metric-comparison-
|
|
4
|
+
import { v as u } from "./metric-comparison-BeKnUD08.js";
|
|
5
5
|
class l extends Error {
|
|
6
6
|
constructor(e) {
|
|
7
7
|
super(`missing_pivot_member_identity: ${e}`);
|
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
var O = Object.defineProperty;
|
|
2
|
+
var P = (t, e, n) => e in t ? O(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var b = (t, e, n) => P(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { j as U, l as W, aL as E } from "./validators-BlEWWX9O.js";
|
|
5
|
+
import { R as x } from "./analytics-base-schemas-8wz9vqn_.js";
|
|
6
|
+
const k = /* @__PURE__ */ new Map();
|
|
7
|
+
function y(t, e) {
|
|
8
|
+
let n = k.get(e);
|
|
9
|
+
n || (n = new Intl.DateTimeFormat("en-CA", {
|
|
10
|
+
calendar: "gregory",
|
|
11
|
+
numberingSystem: "latn",
|
|
12
|
+
timeZone: e,
|
|
13
|
+
year: "numeric",
|
|
14
|
+
month: "2-digit",
|
|
15
|
+
day: "2-digit",
|
|
16
|
+
hour: "2-digit",
|
|
17
|
+
minute: "2-digit",
|
|
18
|
+
second: "2-digit",
|
|
19
|
+
hourCycle: "h23"
|
|
20
|
+
}), k.set(e, n));
|
|
21
|
+
const r = n.formatToParts(t), o = (a) => {
|
|
22
|
+
var i;
|
|
23
|
+
return Number((i = r.find((u) => u.type === a)) == null ? void 0 : i.value);
|
|
24
|
+
};
|
|
25
|
+
return {
|
|
26
|
+
year: o("year"),
|
|
27
|
+
month: o("month"),
|
|
28
|
+
day: o("day"),
|
|
29
|
+
hour: o("hour"),
|
|
30
|
+
minute: o("minute"),
|
|
31
|
+
second: o("second")
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function s(t) {
|
|
35
|
+
const e = /* @__PURE__ */ new Date(0);
|
|
36
|
+
return e.setUTCFullYear(t.year, t.month - 1, t.day), e.setUTCHours(t.hour, t.minute, t.second, t.millisecond ?? 0), e.getTime();
|
|
37
|
+
}
|
|
38
|
+
function f(t, e) {
|
|
39
|
+
const n = t - (t % 1e3 + 1e3) % 1e3;
|
|
40
|
+
return s(y(new Date(n), e)) - n;
|
|
41
|
+
}
|
|
42
|
+
const v = 864e5;
|
|
43
|
+
function K(t, e) {
|
|
44
|
+
const n = F(t, e);
|
|
45
|
+
if (n.length) return n[0];
|
|
46
|
+
const r = s(t);
|
|
47
|
+
return new Date(r - f(r - v, e));
|
|
48
|
+
}
|
|
49
|
+
function F(t, e) {
|
|
50
|
+
const n = s(t), r = f(n - v, e), o = f(n + v, e);
|
|
51
|
+
return [.../* @__PURE__ */ new Set([r, o])].map((a) => n - a).filter((a) => f(a, e) === n - a).sort((a, i) => a - i).map((a) => new Date(a));
|
|
52
|
+
}
|
|
53
|
+
const D = 864e5, w = {
|
|
54
|
+
second: 1e3,
|
|
55
|
+
minute: 6e4,
|
|
56
|
+
hour: 36e5
|
|
57
|
+
};
|
|
58
|
+
function g(t, e) {
|
|
59
|
+
return {
|
|
60
|
+
...y(t, e),
|
|
61
|
+
millisecond: (t.getTime() % 1e3 + 1e3) % 1e3
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function d(t, e) {
|
|
65
|
+
return K(t, e);
|
|
66
|
+
}
|
|
67
|
+
function p(t) {
|
|
68
|
+
const e = new Date(t);
|
|
69
|
+
return {
|
|
70
|
+
year: e.getUTCFullYear(),
|
|
71
|
+
month: e.getUTCMonth() + 1,
|
|
72
|
+
day: e.getUTCDate(),
|
|
73
|
+
hour: e.getUTCHours(),
|
|
74
|
+
minute: e.getUTCMinutes(),
|
|
75
|
+
second: e.getUTCSeconds(),
|
|
76
|
+
millisecond: e.getUTCMilliseconds()
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function S(t, e) {
|
|
80
|
+
const n = /* @__PURE__ */ new Date(0);
|
|
81
|
+
return n.setUTCFullYear(t, e, 0), n.getUTCDate();
|
|
82
|
+
}
|
|
83
|
+
function m(t, e) {
|
|
84
|
+
const n = t.year * 12 + (t.month - 1) + e, r = Math.floor(n / 12), o = n - r * 12 + 1;
|
|
85
|
+
return { ...t, year: r, month: o, day: Math.min(t.day, S(r, o)) };
|
|
86
|
+
}
|
|
87
|
+
function l(t, e, n) {
|
|
88
|
+
if (e === 0) return t;
|
|
89
|
+
switch (n) {
|
|
90
|
+
case "second":
|
|
91
|
+
case "minute":
|
|
92
|
+
case "hour":
|
|
93
|
+
return p(
|
|
94
|
+
s(t) + e * w[n]
|
|
95
|
+
);
|
|
96
|
+
case "day":
|
|
97
|
+
return p(s(t) + e * D);
|
|
98
|
+
case "week":
|
|
99
|
+
return p(s(t) + e * 7 * D);
|
|
100
|
+
case "month":
|
|
101
|
+
return m(t, e);
|
|
102
|
+
case "quarter":
|
|
103
|
+
return m(t, e * 3);
|
|
104
|
+
case "year":
|
|
105
|
+
return m(t, e * 12);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
function j(t) {
|
|
109
|
+
return new Date(
|
|
110
|
+
s({ ...t, hour: 0, minute: 0, second: 0 })
|
|
111
|
+
).getUTCDay();
|
|
112
|
+
}
|
|
113
|
+
function A(t) {
|
|
114
|
+
var n;
|
|
115
|
+
const e = (n = t.fiscalCalendar) == null ? void 0 : n.yearStartMonth;
|
|
116
|
+
return e && e >= 1 && e <= 12 ? e : 1;
|
|
117
|
+
}
|
|
118
|
+
function Y(t, e, n) {
|
|
119
|
+
const r = { ...t, hour: 0, minute: 0, second: 0, millisecond: 0 };
|
|
120
|
+
switch (e) {
|
|
121
|
+
case "day":
|
|
122
|
+
return r;
|
|
123
|
+
case "week":
|
|
124
|
+
return l(
|
|
125
|
+
r,
|
|
126
|
+
-((j(t) - n.weekStart + 7) % 7),
|
|
127
|
+
"day"
|
|
128
|
+
);
|
|
129
|
+
case "month":
|
|
130
|
+
return { ...r, day: 1 };
|
|
131
|
+
case "quarter": {
|
|
132
|
+
const o = (t.month - A(n) + 12) % 12;
|
|
133
|
+
return m({ ...r, day: 1 }, -(o % 3));
|
|
134
|
+
}
|
|
135
|
+
case "year": {
|
|
136
|
+
const o = A(n);
|
|
137
|
+
return {
|
|
138
|
+
...r,
|
|
139
|
+
year: t.month >= o ? t.year : t.year - 1,
|
|
140
|
+
month: o,
|
|
141
|
+
day: 1
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function _(t, e, n, r = 0) {
|
|
147
|
+
const o = w[e];
|
|
148
|
+
if (o !== void 0) {
|
|
149
|
+
const u = g(t, n.tz), L = u.millisecond + (e === "second" ? 0 : u.second * 1e3) + (e === "hour" ? u.minute * 6e4 : 0), C = t.getTime() - L + r * o;
|
|
150
|
+
return { start: new Date(C), endExclusive: new Date(C + o) };
|
|
151
|
+
}
|
|
152
|
+
const a = e, i = l(
|
|
153
|
+
Y(g(t, n.tz), a, n),
|
|
154
|
+
r,
|
|
155
|
+
e
|
|
156
|
+
);
|
|
157
|
+
return {
|
|
158
|
+
start: d(i, n.tz),
|
|
159
|
+
endExclusive: d(l(i, 1, e), n.tz)
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
function ct(t, e, n) {
|
|
163
|
+
return _(t, e, n).start;
|
|
164
|
+
}
|
|
165
|
+
function dt(t, e, n) {
|
|
166
|
+
return new Date(_(t, e, n).endExclusive.getTime() - 1);
|
|
167
|
+
}
|
|
168
|
+
function lt(t, e, n, r) {
|
|
169
|
+
return e === 0 ? t : d(
|
|
170
|
+
l(g(t, r.tz), e, n),
|
|
171
|
+
r.tz
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
function ft(t, e, n) {
|
|
175
|
+
const r = (o) => {
|
|
176
|
+
const { year: a, month: i, day: u } = y(o, n);
|
|
177
|
+
return s({ year: a, month: i, day: u, hour: 0, minute: 0, second: 0 });
|
|
178
|
+
};
|
|
179
|
+
return Math.round((r(e) - r(t)) / D);
|
|
180
|
+
}
|
|
181
|
+
const B = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
182
|
+
function mt(t, e) {
|
|
183
|
+
const { year: n, month: r, day: o } = y(t, e);
|
|
184
|
+
return `${String(n).padStart(4, "0")}-${String(r).padStart(2, "0")}-${String(o).padStart(2, "0")}`;
|
|
185
|
+
}
|
|
186
|
+
function q(t) {
|
|
187
|
+
const e = B.exec(t);
|
|
188
|
+
if (!e) return null;
|
|
189
|
+
const n = Number(e[1]), r = Number(e[2]), o = Number(e[3]);
|
|
190
|
+
return r < 1 || r > 12 || o < 1 || o > S(n, r) ? null : { year: n, month: r, day: o };
|
|
191
|
+
}
|
|
192
|
+
function ht(t, e) {
|
|
193
|
+
const n = q(t);
|
|
194
|
+
if (!n) return null;
|
|
195
|
+
const r = { ...n, hour: 0, minute: 0, second: 0, millisecond: 0 };
|
|
196
|
+
return {
|
|
197
|
+
start: d(r, e),
|
|
198
|
+
endExclusive: d(l(r, 1, "day"), e)
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
const yt = {
|
|
202
|
+
direction: "last",
|
|
203
|
+
count: 7,
|
|
204
|
+
unit: "day",
|
|
205
|
+
includeCurrent: !0,
|
|
206
|
+
toDate: !1
|
|
207
|
+
}, V = /* @__PURE__ */ new Set(["minute", "hour"]), T = (t) => V.has(t);
|
|
208
|
+
function z(t) {
|
|
209
|
+
const { direction: e, unit: n } = t;
|
|
210
|
+
return T(n) ? { direction: "last", count: t.count, unit: n, includeCurrent: !0, toDate: !1 } : e === "this" || t.count === 1 && t.includeCurrent ? { direction: "this", count: 1, unit: n, includeCurrent: !0, toDate: e === "this" && t.toDate } : { direction: e, count: t.count, unit: n, includeCurrent: t.includeCurrent, toDate: !1 };
|
|
211
|
+
}
|
|
212
|
+
function H(t) {
|
|
213
|
+
const { direction: e, count: n, unit: r } = t;
|
|
214
|
+
if (T(r) && e !== "last") return `Only the last ${r}s can be picked.`;
|
|
215
|
+
if (e === "this") return;
|
|
216
|
+
if (!Number.isInteger(n) || n < 1) return "Enter a whole number, 1 or more.";
|
|
217
|
+
const o = E[r];
|
|
218
|
+
if (n > o) return `At most ${o.toLocaleString("en-US")} ${r}s (ten years).`;
|
|
219
|
+
}
|
|
220
|
+
function Tt(t) {
|
|
221
|
+
if (H(t)) return;
|
|
222
|
+
const e = z(t);
|
|
223
|
+
if (T(e.unit)) return { kind: "rolling", unit: e.unit, n: e.count, anchor: "now" };
|
|
224
|
+
const n = e.unit;
|
|
225
|
+
if (e.direction === "this") return { kind: "periods", unit: n, from: 0, to: 0, ...e.toDate ? { toDate: !0 } : {}, anchor: "now" };
|
|
226
|
+
const [r, o] = e.direction === "last" ? e.includeCurrent ? [-(e.count - 1), 0] : [-e.count, -1] : e.includeCurrent ? [0, e.count - 1] : [1, e.count];
|
|
227
|
+
return { kind: "periods", unit: n, from: r, to: o, anchor: "now" };
|
|
228
|
+
}
|
|
229
|
+
function pt(t) {
|
|
230
|
+
if (t.kind === "rolling")
|
|
231
|
+
return t.anchor === "now" && T(t.unit) ? { direction: "last", count: t.n, unit: t.unit, includeCurrent: !0, toDate: !1 } : void 0;
|
|
232
|
+
if (t.kind !== "periods" || t.anchor !== "now") return;
|
|
233
|
+
const { unit: e, from: n, to: r } = t, o = (a, i, u) => ({
|
|
234
|
+
direction: a,
|
|
235
|
+
count: i,
|
|
236
|
+
unit: e,
|
|
237
|
+
includeCurrent: u,
|
|
238
|
+
toDate: !1
|
|
239
|
+
});
|
|
240
|
+
if (n === 0 && r === 0) return { ...o("this", 1, !0), toDate: !!t.toDate };
|
|
241
|
+
if (!t.toDate) {
|
|
242
|
+
if (r === 0 && n < 0) return o("last", 1 - n, !0);
|
|
243
|
+
if (r === -1 && n <= -1) return o("last", -n, !1);
|
|
244
|
+
if (n === 0 && r > 0) return o("next", r + 1, !0);
|
|
245
|
+
if (n === 1 && r >= 1) return o("next", r, !1);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
const vt = {
|
|
249
|
+
side: "before",
|
|
250
|
+
point: { kind: "ago", count: 30, unit: "day" },
|
|
251
|
+
inclusive: !1
|
|
252
|
+
};
|
|
253
|
+
function Z(t) {
|
|
254
|
+
const { point: e } = t;
|
|
255
|
+
if (e.kind === "now" || e.kind === "current") return;
|
|
256
|
+
if (!Number.isInteger(e.count) || e.count < 1) return "Enter a whole number, 1 or more.";
|
|
257
|
+
const n = E[e.unit];
|
|
258
|
+
if (e.count > n) return `At most ${n.toLocaleString("en-US")} ${e.unit}s (ten years).`;
|
|
259
|
+
}
|
|
260
|
+
function R(t) {
|
|
261
|
+
if (t === "<" || t === "<=") return { side: "before", inclusive: t === "<=" };
|
|
262
|
+
if (t === ">" || t === ">=") return { side: "after", inclusive: t === ">=" };
|
|
263
|
+
}
|
|
264
|
+
const h = (t, e) => t === "before" ? e ? "<=" : "<" : e ? ">=" : ">";
|
|
265
|
+
function Dt(t) {
|
|
266
|
+
if (Z(t)) return;
|
|
267
|
+
const { side: e, point: n, inclusive: r } = t;
|
|
268
|
+
if (n.kind === "now")
|
|
269
|
+
return {
|
|
270
|
+
operator: h(e, e === "before"),
|
|
271
|
+
window: { kind: "periods", unit: "day", from: 0, to: 0, toDate: !0, anchor: "now" }
|
|
272
|
+
};
|
|
273
|
+
const o = n.kind === "current" ? 0 : n.kind === "ago" ? -n.count : n.count;
|
|
274
|
+
return {
|
|
275
|
+
operator: h(e, r),
|
|
276
|
+
window: { kind: "periods", unit: n.unit, from: o, to: o, anchor: "now" }
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
function G(t, e) {
|
|
280
|
+
var i;
|
|
281
|
+
const n = (i = R(t)) == null ? void 0 : i.side;
|
|
282
|
+
if (!n || e.kind !== "periods" || e.anchor !== "now" || e.from !== e.to) return;
|
|
283
|
+
const { unit: r, from: o } = e;
|
|
284
|
+
if (e.toDate)
|
|
285
|
+
return r === "day" && o === 0 && t === h(n, n === "before") ? { side: n, point: { kind: "now" }, inclusive: !1 } : void 0;
|
|
286
|
+
const a = o === 0 ? { kind: "current", unit: r } : { kind: o < 0 ? "ago" : "ahead", count: Math.abs(o), unit: r };
|
|
287
|
+
return { side: n, point: a, inclusive: t === "<=" || t === ">=" };
|
|
288
|
+
}
|
|
289
|
+
function J(t) {
|
|
290
|
+
if (t.kind === "now") return "now";
|
|
291
|
+
const { unit: e } = t;
|
|
292
|
+
if (t.kind === "current") return e === "day" ? "today" : `this ${e}`;
|
|
293
|
+
const { count: n } = t;
|
|
294
|
+
return e === "day" && n === 1 ? t.kind === "ago" ? "yesterday" : "tomorrow" : `${n} ${n === 1 ? e : `${e}s`} ${t.kind === "ago" ? "ago" : "from now"}`;
|
|
295
|
+
}
|
|
296
|
+
const X = {
|
|
297
|
+
"<": "Before",
|
|
298
|
+
"<=": "On or before",
|
|
299
|
+
">": "After",
|
|
300
|
+
">=": "On or after"
|
|
301
|
+
};
|
|
302
|
+
function N(t) {
|
|
303
|
+
return X[t];
|
|
304
|
+
}
|
|
305
|
+
function Q(t) {
|
|
306
|
+
const e = t.point.kind === "now" ? t.side === "before" ? "<" : ">" : h(t.side, t.inclusive);
|
|
307
|
+
return `${N(e)} ${J(t.point)}`;
|
|
308
|
+
}
|
|
309
|
+
function gt(t, e) {
|
|
310
|
+
if (!R(t)) return;
|
|
311
|
+
const r = G(t, e);
|
|
312
|
+
if (r) return Q(r);
|
|
313
|
+
const o = U(e).label;
|
|
314
|
+
return `${N(t)} the ${W(t)} of ${o.charAt(0).toLowerCase()}${o.slice(1)}`;
|
|
315
|
+
}
|
|
316
|
+
class c extends Error {
|
|
317
|
+
constructor(n) {
|
|
318
|
+
super(n);
|
|
319
|
+
b(this, "code");
|
|
320
|
+
this.name = "RawTemporalMetadataContractError", this.code = x.invalidMetadata;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
function tt(t) {
|
|
324
|
+
if (t === null || typeof t != "object" || Array.isArray(t))
|
|
325
|
+
return !1;
|
|
326
|
+
const e = Object.getPrototypeOf(t);
|
|
327
|
+
return e === null || e === Object.prototype;
|
|
328
|
+
}
|
|
329
|
+
function et(t) {
|
|
330
|
+
if (!tt(t))
|
|
331
|
+
throw new c(
|
|
332
|
+
"Raw temporal metadata must be an object."
|
|
333
|
+
);
|
|
334
|
+
const e = Object.keys(t);
|
|
335
|
+
if (e.length !== 2 || !e.includes("kind") || !e.includes("valueKind"))
|
|
336
|
+
throw new c(
|
|
337
|
+
"Raw temporal metadata must contain only kind and valueKind."
|
|
338
|
+
);
|
|
339
|
+
if (t.kind !== "raw_temporal")
|
|
340
|
+
throw new c(
|
|
341
|
+
"Raw temporal metadata kind must be raw_temporal."
|
|
342
|
+
);
|
|
343
|
+
if (t.valueKind !== "date" && t.valueKind !== "wall_datetime" && t.valueKind !== "instant")
|
|
344
|
+
throw new c(
|
|
345
|
+
"Raw temporal valueKind must be date, wall_datetime, or instant."
|
|
346
|
+
);
|
|
347
|
+
return {
|
|
348
|
+
kind: "raw_temporal",
|
|
349
|
+
valueKind: t.valueKind
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
function Ct(t, e) {
|
|
353
|
+
if (!t.rawTemporal) {
|
|
354
|
+
if (e.metadataRequired)
|
|
355
|
+
throw new c(
|
|
356
|
+
"Activated raw temporal result is missing metadata."
|
|
357
|
+
);
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
360
|
+
if (t.temporalBucket)
|
|
361
|
+
throw new c(
|
|
362
|
+
"A result column cannot carry both raw and grouped temporal metadata."
|
|
363
|
+
);
|
|
364
|
+
const n = et(t.rawTemporal), r = n.valueKind === "date" ? "date" : "datetime";
|
|
365
|
+
if (t.dataType !== r)
|
|
366
|
+
throw new c(
|
|
367
|
+
`${n.valueKind} raw temporal values require dataType ${r}.`
|
|
368
|
+
);
|
|
369
|
+
return n;
|
|
370
|
+
}
|
|
371
|
+
const M = /^(\d{4})-(\d{2})-(\d{2})$/, $ = /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,9}))?)?$/, I = /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,9}))?)?(Z|[+-]\d{2}:\d{2})$/;
|
|
372
|
+
function bt(t) {
|
|
373
|
+
if (M.test(t)) return "date";
|
|
374
|
+
if (I.test(t)) return "instant";
|
|
375
|
+
if ($.test(t)) return "wall_datetime";
|
|
376
|
+
}
|
|
377
|
+
function nt(t) {
|
|
378
|
+
return t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0);
|
|
379
|
+
}
|
|
380
|
+
function rt(t, e) {
|
|
381
|
+
return e === 2 ? nt(t) ? 29 : 28 : [4, 6, 9, 11].includes(e) ? 30 : 31;
|
|
382
|
+
}
|
|
383
|
+
function ot(t) {
|
|
384
|
+
return t.year >= 1 && t.year <= 9999 && t.month >= 1 && t.month <= 12 && t.day >= 1 && t.day <= rt(t.year, t.month) && t.hour >= 0 && t.hour <= 23 && t.minute >= 0 && t.minute <= 59 && t.second >= 0 && t.second <= 59;
|
|
385
|
+
}
|
|
386
|
+
function at(t) {
|
|
387
|
+
return {
|
|
388
|
+
year: Number(t[1]),
|
|
389
|
+
month: Number(t[2]),
|
|
390
|
+
day: Number(t[3]),
|
|
391
|
+
hour: Number(t[4] ?? 0),
|
|
392
|
+
minute: Number(t[5] ?? 0),
|
|
393
|
+
second: Number(t[6] ?? 0),
|
|
394
|
+
fraction: t[7] ?? ""
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
function kt(t, e) {
|
|
398
|
+
const n = e === "date" ? t.match(M) : e === "wall_datetime" ? t.match($) : t.match(I);
|
|
399
|
+
if (!n) return { status: "invalid_shape" };
|
|
400
|
+
const r = at(n);
|
|
401
|
+
if (!ot(r)) return { status: "out_of_range" };
|
|
402
|
+
if (e === "instant") {
|
|
403
|
+
const o = n[8];
|
|
404
|
+
if (o && o !== "Z") {
|
|
405
|
+
const [i, u] = o.slice(1).split(":").map(Number);
|
|
406
|
+
if (i > 23 || u > 59) return { status: "out_of_range" };
|
|
407
|
+
}
|
|
408
|
+
const a = new Date(t.replace(" ", "T"));
|
|
409
|
+
return Number.isNaN(a.getTime()) ? { status: "out_of_range" } : { status: "valid", fields: r, instant: a };
|
|
410
|
+
}
|
|
411
|
+
return { status: "valid", fields: r };
|
|
412
|
+
}
|
|
413
|
+
export {
|
|
414
|
+
S as A,
|
|
415
|
+
j as B,
|
|
416
|
+
Y as C,
|
|
417
|
+
vt as D,
|
|
418
|
+
w as E,
|
|
419
|
+
_ as F,
|
|
420
|
+
ct as G,
|
|
421
|
+
dt as H,
|
|
422
|
+
lt as I,
|
|
423
|
+
ft as J,
|
|
424
|
+
mt as K,
|
|
425
|
+
q as L,
|
|
426
|
+
ht as M,
|
|
427
|
+
c as R,
|
|
428
|
+
kt as a,
|
|
429
|
+
Dt as b,
|
|
430
|
+
bt as c,
|
|
431
|
+
gt as d,
|
|
432
|
+
Z as e,
|
|
433
|
+
N as f,
|
|
434
|
+
h as g,
|
|
435
|
+
R as h,
|
|
436
|
+
d as i,
|
|
437
|
+
Q as j,
|
|
438
|
+
J as k,
|
|
439
|
+
yt as l,
|
|
440
|
+
H as m,
|
|
441
|
+
T as n,
|
|
442
|
+
z as o,
|
|
443
|
+
et as p,
|
|
444
|
+
pt as q,
|
|
445
|
+
G as r,
|
|
446
|
+
l as s,
|
|
447
|
+
Tt as t,
|
|
448
|
+
y as u,
|
|
449
|
+
Ct as v,
|
|
450
|
+
g as w,
|
|
451
|
+
s as x,
|
|
452
|
+
K as y,
|
|
453
|
+
F as z
|
|
454
|
+
};
|
package/dist/chunks/{report-preferences-dialog-dUlVLgEk.js → report-preferences-dialog-Cu_f-8Kw.js}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as r, Fragment as M, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import He, { useMemo as j, useState as I, useEffect as B, lazy as ae, Suspense as Y, useRef as L, useLayoutEffect as ee, useCallback as P, Activity as Ke, useId as $ } from "react";
|
|
3
|
-
import { b as qe, b8 as be, bk as Ge, bl as Je, u as D, bm as ze, Y as Xe, W as Ze, bn as Ye, bo as Qe, bp as et, bq as tt, br as J, bs as Le, bt as ge, bu as at, ad as X, ac as rt, bv as nt, bw as st, ae as ye, af as lt, bx as it, E as ot, F as dt, S as ct, B as ut, a as mt, U as ht, by as ft, D as bt, A as pt, C as gt, bz as yt, bA as ve, bB as ne, bC as vt, i as St, j as wt, k as xt, l as Tt, m as Se, n as we, bD as Ct, bE as pe, bF as F, bG as Nt, bH as Et, bI as It, bJ as At, bK as Dt } from "./semaphor-ready-indicator-
|
|
3
|
+
import { b as qe, b8 as be, bk as Ge, bl as Je, u as D, bm as ze, Y as Xe, W as Ze, bn as Ye, bo as Qe, bp as et, bq as tt, br as J, bs as Le, bt as ge, bu as at, ad as X, ac as rt, bv as nt, bw as st, ae as ye, af as lt, bx as it, E as ot, F as dt, S as ct, B as ut, a as mt, U as ht, by as ft, D as bt, A as pt, C as gt, bz as yt, bA as ve, bB as ne, bC as vt, i as St, j as wt, k as xt, l as Tt, m as Se, n as we, bD as Ct, bE as pe, bF as F, bG as Nt, bH as Et, bI as It, bJ as At, bK as Dt } from "./semaphor-ready-indicator-DXpTZJ7R.js";
|
|
4
4
|
import { j as kt, c as U } from "./pickers-DkqmtnTL.js";
|
|
5
|
-
import {
|
|
5
|
+
import { K as _t } from "./bookmark-state-Be2W3s6t.js";
|
|
6
6
|
import { r as Pt, a as Re } from "./availability-Bp5Gfu1I.js";
|
|
7
|
-
import { s as zt } from "./resolve-dashboard-input-context-
|
|
8
|
-
import { B as z, Z as Lt, _ as Rt, $ as Ut, a0 as Ft, a1 as Ot, a2 as Bt, s as G, e as jt, f as Mt, h as Vt, j as xe, L as Ue, y as de, z as ce, A as ue, D as me, E as O, T as Wt, k as $t, l as Te, n as Ce } from "./style-sheet-parts-
|
|
9
|
-
import "./validators-
|
|
10
|
-
import "./matrix-operation-contract-
|
|
7
|
+
import { s as zt } from "./resolve-dashboard-input-context-CkMk1RW6.js";
|
|
8
|
+
import { B as z, Z as Lt, _ as Rt, $ as Ut, a0 as Ft, a1 as Ot, a2 as Bt, s as G, e as jt, f as Mt, h as Vt, j as xe, L as Ue, y as de, z as ce, A as ue, D as me, E as O, T as Wt, k as $t, l as Te, n as Ce } from "./style-sheet-parts-DM_Mw_sm.js";
|
|
9
|
+
import "./validators-BlEWWX9O.js";
|
|
10
|
+
import "./matrix-operation-contract-CAanJeCj.js";
|
|
11
11
|
import "./analytics-base-schemas-8wz9vqn_.js";
|
|
12
12
|
import { parseValueFormatPreferencesResponse as Ht, canonicalizeSupportedLocale as Fe, getSupportedCurrencyCodes as Kt, canonicalizeSupportedCurrencyCode as qt } from "../value-format-preferences/index.js";
|
|
13
|
-
import { f as Gt } from "./filter-reach-copy-
|
|
14
|
-
import { a as Jt } from "./report-runtime-context-
|
|
15
|
-
import { ar as Z, ay as H } from "./pivot-result-contract-expectations-
|
|
13
|
+
import { f as Gt } from "./filter-reach-copy-hEzlpBu7.js";
|
|
14
|
+
import { a as Jt } from "./report-runtime-context-g4Zp_TU9.js";
|
|
15
|
+
import { ar as Z, ay as H } from "./pivot-result-contract-expectations-CaS0y823.js";
|
|
16
16
|
function Xt() {
|
|
17
17
|
return /* @__PURE__ */ r(
|
|
18
18
|
"div",
|
|
@@ -93,7 +93,7 @@ function na(e, a, t) {
|
|
|
93
93
|
const n = t ? _t(t, e.cardId) : void 0;
|
|
94
94
|
return !!n && n.sheet.id === e.sheetId;
|
|
95
95
|
}
|
|
96
|
-
const sa = ae(() => import("./assistant-chat-
|
|
96
|
+
const sa = ae(() => import("./assistant-chat-BusR-5uT.js"));
|
|
97
97
|
function Ya() {
|
|
98
98
|
const e = Xe(), a = Ze();
|
|
99
99
|
if (!e.available) return null;
|
|
@@ -535,9 +535,9 @@ function Q(e) {
|
|
|
535
535
|
function Sa() {
|
|
536
536
|
return globalThis.crypto.randomUUID();
|
|
537
537
|
}
|
|
538
|
-
const wa = ae(() => import("./dashboard-controls-
|
|
539
|
-
() => import("./edit-dashboard-visual-
|
|
540
|
-
), Ta = ae(() => import("./dashboard-json-
|
|
538
|
+
const wa = ae(() => import("./dashboard-controls-BxI3e2_o.js")), xa = ae(
|
|
539
|
+
() => import("./edit-dashboard-visual-Dvc_Pkfg.js")
|
|
540
|
+
), Ta = ae(() => import("./dashboard-json-BMqXV2Rx.js"));
|
|
541
541
|
function Qa({
|
|
542
542
|
showControls: e = !1,
|
|
543
543
|
showFooter: a = !0,
|
package/dist/chunks/{report-runtime-context-CrOgmuxO.js → report-runtime-context-g4Zp_TU9.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseValueFormatPreferences as _, isReportPreferenceSource as C } from "../value-format-preferences/index.js";
|
|
2
|
-
import { p as g } from "./validators-
|
|
2
|
+
import { p as g } from "./validators-BlEWWX9O.js";
|
|
3
3
|
import { i as k } from "./analytics-base-schemas-8wz9vqn_.js";
|
|
4
4
|
const D = {
|
|
5
5
|
tz: "UTC",
|