react-semaphor 0.1.597 → 0.1.599
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 +355 -346
- 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-C86FsM8D.js → add-to-dashboard-ClhEIFst.js} +1 -1
- package/dist/chunks/{analytics-base-schemas-8wz9vqn_.js → analytics-base-schemas-DevrgqQb.js} +67 -60
- package/dist/chunks/{assistant-chat-DUDiH9z4.js → assistant-chat-f3XuzrAm.js} +88 -89
- package/dist/chunks/{bookmark-impact-Dh-wiTs3.js → bookmark-impact-B5hyttm2.js} +3 -3
- package/dist/chunks/{bookmark-state-Be2W3s6t.js → bookmark-state-h1OLXVjE.js} +153 -153
- package/dist/chunks/{card-filter-builder-2-OxEBWf.js → card-filter-builder-DfLqD2RV.js} +1047 -1075
- package/dist/chunks/{comparison-window-caption-DmMFtNP5.js → comparison-window-caption-DJDwP9XO.js} +6 -6
- package/dist/chunks/{context-CVXTFljo.js → context-BJoEFgNl.js} +1 -1
- package/dist/chunks/{dashboard-g-7XY0Kw.js → dashboard-CoI4aOUc.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CVDhvsTk.js → dashboard-briefing-launcher-RxYGtk-F.js} +181 -181
- package/dist/chunks/{dashboard-controls-CtQY-J33.js → dashboard-controls-DeaXrtLK.js} +85 -85
- package/dist/chunks/{dashboard-json-DkhzPI3-.js → dashboard-json-DvxKpKd_.js} +5 -5
- package/dist/chunks/dates-BhtO28Sn.js +164 -0
- package/dist/chunks/{edit-dashboard-visual-DWn74pCl.js → edit-dashboard-visual-C4f5hONA.js} +5489 -5433
- package/dist/chunks/{filter-line-BpdPq1D2.js → filter-line-Dkg3yuOX.js} +6 -6
- package/dist/chunks/{filter-reach-copy-DoXmRmk-.js → filter-reach-copy-Cl5Od38Q.js} +1760 -1584
- package/dist/chunks/{filter-value-text-CDQCIREQ.js → filter-value-text-CXyuLW9Q.js} +4 -4
- package/dist/chunks/{index-C0jX5wlM.js → index-EKpTtkYF.js} +7 -7
- package/dist/chunks/{layout-grid-DoFIfQGd.js → layout-grid-DSrBSfPM.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-CyWOwLmE.js → matrix-analytical-definition-BuUSBDm7.js} +242 -214
- package/dist/chunks/matrix-member-presentation-B_2beBc0.js +258 -0
- package/dist/chunks/{matrix-operation-contract-CAanJeCj.js → matrix-operation-contract-DdK0J_KU.js} +47 -47
- package/dist/chunks/{metric-comparison-BeKnUD08.js → metric-comparison-Bhz0V841.js} +2 -2
- package/dist/chunks/{paintbrush-KeaU1L1a.js → paintbrush-1UiU-uTz.js} +1 -1
- package/dist/chunks/{palette-BcFJLeXB.js → palette-DFIFf_-m.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-Dt0E1Wou.js → pivot-result-contract-expectations-Dk7WFR_u.js} +47 -47
- package/dist/chunks/{pivot-result-identity-BKUjYO1u.js → pivot-result-identity-CzzrJpEm.js} +1 -1
- package/dist/chunks/{raw-temporal-value-BzdgeDa7.js → raw-temporal-value-BLvdaMng.js} +2 -2
- package/dist/chunks/{report-preferences-dialog-5WUi6jC0.js → report-preferences-dialog-CZaYsQLK.js} +14 -14
- package/dist/chunks/{report-runtime-context-g4Zp_TU9.js → report-runtime-context-CEGluufW.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-DfJshnw8.js → resolve-dashboard-input-context-vPtbuDDz.js} +11786 -11247
- package/dist/chunks/{save-C9CZAk6V.js → save-CWQ02kHo.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-DdhPU2Kq.js → saved-dashboard-context-C6X5nP4C.js} +97 -97
- package/dist/chunks/{selection-filter-compiler-BclSpK3P.js → selection-filter-compiler-Ce4BpjRX.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-miYoJ-HP.js → semaphor-ready-indicator-BUiaKY6O.js} +60709 -59628
- package/dist/chunks/{shelf-drop-preview-context-D-awfyyo.js → shelf-drop-preview-context-CwxWJjBv.js} +6 -6
- package/dist/chunks/{stored-dashboard-D6FtWx_3.js → stored-dashboard-Bmct-STp.js} +1165 -1148
- package/dist/chunks/{style-sheet-parts-DM_Mw_sm.js → style-sheet-parts-BX7d7-2-.js} +198 -198
- package/dist/chunks/{table-export-sheet-DBlFMvE8.js → table-export-sheet-BWSVTclx.js} +1 -1
- package/dist/chunks/{token-types-BB2ImFx6.js → token-types-CnlEiAdS.js} +1 -1
- package/dist/chunks/{upload-CMTCg47S.js → upload-DsqUSS8l.js} +1 -1
- package/dist/chunks/{validators-BlEWWX9O.js → validators-D2Hm57lJ.js} +1090 -1071
- package/dist/chunks/{variable-draft-CxdgKDCx.js → variable-draft-Bi-zUa_a.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2554 -2538
- package/dist/format-utils/index.js +14 -14
- package/dist/index.js +48 -48
- 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/components/surfboard/filter/types.d.ts +13 -1
- package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +0 -2
- package/dist/types/components/visual/data-table/types/data-table.d.ts +14 -21
- package/dist/types/index.js +5 -5
- package/dist/types/lib/dashboard-view-state/card-view-state.d.ts +11 -1
- package/dist/types/lib/dashboard-view-state/drill-path.d.ts +7 -0
- package/dist/types/lib/dashboard-viewer/table-view.d.ts +20 -0
- package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +8 -0
- package/dist/types/lib/matrix-table/matrix-runtime.d.ts +1 -0
- package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +2 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +3 -1
- package/dist/types/lib/utils/filter-default-value-utils.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +64 -0
- package/dist/types/shared/analytics-protocol/catalog-field-grounding.d.ts +7 -0
- package/dist/types/shared/analytics-protocol/column-filter-id.d.ts +4 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +26 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/numeric-range-options.d.ts +46 -0
- package/dist/types/shared/dashboard-authoring/card-query-request.d.ts +12 -1
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +63 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-contract.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/filter-model/number-condition-spec.d.ts +24 -0
- package/dist/types/shared/dashboard-authoring/filter-model/number-range-setting.d.ts +47 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +8 -1
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +3 -1
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +35 -3
- package/dist/types/shared/usage-events/attribution.d.ts +2 -2
- package/dist/types/shared/usage-events/envelope.d.ts +2 -2
- package/dist/usage-events/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/aggregate-measure-field-DHlDj0Pc.js +0 -22
- package/dist/chunks/dates-B-bKEsiu.js +0 -115
- package/dist/chunks/list-filter-BeTQxjNy.js +0 -15
- package/dist/chunks/matrix-member-presentation-Bj2YcHAP.js +0 -169
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { m as p } from "./validators-BlEWWX9O.js";
|
|
2
|
-
function h(e) {
|
|
3
|
-
const t = b(e);
|
|
4
|
-
return d(t) ? t : void 0;
|
|
5
|
-
}
|
|
6
|
-
function b(e) {
|
|
7
|
-
if (typeof e != "string" || e.trim().length === 0)
|
|
8
|
-
return;
|
|
9
|
-
const t = e.trim().toLowerCase();
|
|
10
|
-
switch (t) {
|
|
11
|
-
case "=":
|
|
12
|
-
return "=";
|
|
13
|
-
case "!=":
|
|
14
|
-
return "!=";
|
|
15
|
-
case "in":
|
|
16
|
-
return "in";
|
|
17
|
-
case "not_in":
|
|
18
|
-
return "not_in";
|
|
19
|
-
case "contains":
|
|
20
|
-
return "contains";
|
|
21
|
-
case "not_contains":
|
|
22
|
-
return "not_contains";
|
|
23
|
-
case "between":
|
|
24
|
-
return "between";
|
|
25
|
-
case "not_between":
|
|
26
|
-
return "not_between";
|
|
27
|
-
case ">":
|
|
28
|
-
case ">=":
|
|
29
|
-
case "<":
|
|
30
|
-
case "<=":
|
|
31
|
-
return t;
|
|
32
|
-
case "is_null":
|
|
33
|
-
return "is_null";
|
|
34
|
-
case "is_not_null":
|
|
35
|
-
return "is_not_null";
|
|
36
|
-
default:
|
|
37
|
-
return _(e) ? e : void 0;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
function d(e) {
|
|
41
|
-
return e === "=" || e === "!=" || e === "in" || e === "not_in" || e === "contains" || e === "not_contains" || e === "between" || e === "not_between" || e === ">" || e === ">=" || e === "<" || e === "<=";
|
|
42
|
-
}
|
|
43
|
-
function _(e) {
|
|
44
|
-
return d(e) || e === "not_contains" || e === "is_null" || e === "is_not_null";
|
|
45
|
-
}
|
|
46
|
-
function O(e) {
|
|
47
|
-
switch (e) {
|
|
48
|
-
case "not in":
|
|
49
|
-
return "not_in";
|
|
50
|
-
case "like":
|
|
51
|
-
return "contains";
|
|
52
|
-
case "not like":
|
|
53
|
-
return "not_contains";
|
|
54
|
-
case "not between":
|
|
55
|
-
return "not_between";
|
|
56
|
-
case "is null":
|
|
57
|
-
case "is not null":
|
|
58
|
-
return;
|
|
59
|
-
default:
|
|
60
|
-
return h(e);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
const w = [
|
|
64
|
-
"=",
|
|
65
|
-
"!=",
|
|
66
|
-
">",
|
|
67
|
-
"<",
|
|
68
|
-
">=",
|
|
69
|
-
"<=",
|
|
70
|
-
"like",
|
|
71
|
-
"not like",
|
|
72
|
-
"between",
|
|
73
|
-
"not between",
|
|
74
|
-
"in",
|
|
75
|
-
"not in",
|
|
76
|
-
"is null",
|
|
77
|
-
"is not null"
|
|
78
|
-
], y = /* @__PURE__ */ new Set(["string", "number", "date", "boolean"]);
|
|
79
|
-
function g(e) {
|
|
80
|
-
return typeof e == "string" && w.includes(e);
|
|
81
|
-
}
|
|
82
|
-
function P(e, t) {
|
|
83
|
-
switch (e) {
|
|
84
|
-
case "is null":
|
|
85
|
-
case "is not null":
|
|
86
|
-
return t.length === 0;
|
|
87
|
-
case "between":
|
|
88
|
-
case "not between":
|
|
89
|
-
return t.length === 2;
|
|
90
|
-
case "in":
|
|
91
|
-
case "not in":
|
|
92
|
-
return t.length >= 1;
|
|
93
|
-
default:
|
|
94
|
-
return t.length === 1;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
function S(e) {
|
|
98
|
-
if (!e || typeof e != "object" || Array.isArray(e))
|
|
99
|
-
return;
|
|
100
|
-
const t = e, o = {};
|
|
101
|
-
for (const n of A)
|
|
102
|
-
t[n] !== void 0 && (o[n] = t[n]);
|
|
103
|
-
return o;
|
|
104
|
-
}
|
|
105
|
-
const A = [
|
|
106
|
-
"operation",
|
|
107
|
-
"values",
|
|
108
|
-
"valueType",
|
|
109
|
-
"temporalBucket",
|
|
110
|
-
"relativeMeta",
|
|
111
|
-
"temporalPrecision"
|
|
112
|
-
];
|
|
113
|
-
function E(e) {
|
|
114
|
-
const t = S(e);
|
|
115
|
-
if (!t) return;
|
|
116
|
-
const { operation: o, values: n } = t;
|
|
117
|
-
if (!g(o) || !Array.isArray(n) || !P(o, n)) return;
|
|
118
|
-
const r = typeof t.valueType == "string" && y.has(t.valueType) ? t.valueType : void 0;
|
|
119
|
-
return {
|
|
120
|
-
operation: o,
|
|
121
|
-
values: n,
|
|
122
|
-
...r ? { valueType: r } : {},
|
|
123
|
-
...t.temporalBucket !== void 0 ? { temporalBucket: t.temporalBucket } : {},
|
|
124
|
-
...t.relativeMeta !== void 0 ? { relativeMeta: t.relativeMeta } : {},
|
|
125
|
-
...t.temporalPrecision !== void 0 ? { temporalPrecision: t.temporalPrecision } : {}
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
function v(e) {
|
|
129
|
-
const t = E(e);
|
|
130
|
-
if (!t)
|
|
131
|
-
throw new Error(
|
|
132
|
-
`Filter operation "${String(e.operation)}" cannot be expressed as predicate semantics.`
|
|
133
|
-
);
|
|
134
|
-
return t;
|
|
135
|
-
}
|
|
136
|
-
function I(e) {
|
|
137
|
-
return e.operation === "is null" || e.operation === "is not null";
|
|
138
|
-
}
|
|
139
|
-
function k(e, t) {
|
|
140
|
-
var n;
|
|
141
|
-
if (t === null) return !0;
|
|
142
|
-
if (t.overrides.length === 0) return e.length <= t.depth;
|
|
143
|
-
const o = p(e);
|
|
144
|
-
return ((n = t.overrides.find((r) => r.path.length === e.length && p(r.path) === o)) == null ? void 0 : n.expanded) ?? e.length <= t.depth;
|
|
145
|
-
}
|
|
146
|
-
function N(e) {
|
|
147
|
-
var u;
|
|
148
|
-
const { path: t, levelCount: o, expansion: n, total: r, axis: f } = e, a = t.length >= o || ((u = t[t.length - 1]) == null ? void 0 : u.member.kind) === "others", c = !a && !e.childrenEmpty, i = c && k(t, n), l = f === "rows" && e.rowLayout !== "tabular", m = i && !!e.skipRedundant && !!e.singleChild, s = !!(r != null && r.visible) && !m;
|
|
149
|
-
return {
|
|
150
|
-
expandable: c,
|
|
151
|
-
expanded: i,
|
|
152
|
-
memberVisible: l || !i,
|
|
153
|
-
valueVisible: a || s && (!i || r.position === "before"),
|
|
154
|
-
subtotalBefore: !l && i && s && r.position === "before",
|
|
155
|
-
subtotalAfter: i && s && r.position === "after"
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
export {
|
|
159
|
-
w as N,
|
|
160
|
-
b as a,
|
|
161
|
-
E as b,
|
|
162
|
-
v as c,
|
|
163
|
-
k as d,
|
|
164
|
-
I as i,
|
|
165
|
-
h as n,
|
|
166
|
-
S as p,
|
|
167
|
-
N as r,
|
|
168
|
-
O as t
|
|
169
|
-
};
|