react-semaphor 0.1.568 → 0.1.569
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/README.md +0 -7
- package/dist/analytics-protocol/index.js +434 -454
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +10 -12
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/{_commonjsHelpers-DimLPMtv.js → _commonjsHelpers-Bid1ZNYj.js} +271 -222
- package/dist/chunks/{assistant-chat-BN5I8KuN.js → assistant-chat-Dzf2Mbph.js} +107 -109
- package/dist/chunks/{bookmark-impact-CJ-65omV.js → bookmark-impact-Czg6FGt5.js} +2 -2
- package/dist/chunks/{bookmark-state-Du3s13_V.js → bookmark-state-CflS88gq.js} +251 -250
- package/dist/chunks/{card-filter-builder-BBuB99GZ.js → card-filter-builder-BS982X7x.js} +986 -985
- package/dist/chunks/{code-editor-DJNOsgJH.js → code-editor-BsxHzm9u.js} +43 -45
- package/dist/chunks/{comparison-window-caption-CMLb3mut.js → comparison-window-caption-lLTgzOkM.js} +252 -253
- package/dist/chunks/{dashboard-YnWZC4dK.js → dashboard-BiYSbxZv.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BF89TU2h.js → dashboard-briefing-launcher-Bdj7luOr.js} +158 -159
- package/dist/chunks/{dashboard-controls-atHc1EjP.js → dashboard-controls-TViDsnb8.js} +17 -19
- package/dist/chunks/dashboard-json-Dg9dQd9U.js +66 -0
- package/dist/chunks/{dates-CKO05ino.js → dates-BsPrWZIP.js} +8 -8
- package/dist/chunks/{edit-dashboard-visual-DdmTfn-J.js → edit-dashboard-visual-C6hoIeEJ.js} +20 -21
- package/dist/chunks/{filter-reach-copy-jZGzK_IH.js → filter-reach-copy-hcQ4os0u.js} +695 -699
- package/dist/chunks/filter-value-text-CVxEEDVl.js +146 -0
- package/dist/chunks/{index-CPNZW0mu.js → index-G4q89J6O.js} +74 -76
- package/dist/chunks/{layout-grid-0hIlqEtk.js → layout-grid-BIcoFfdS.js} +1 -1
- package/dist/chunks/{list-filter-DkgoCeBm.js → list-filter-C6tYkHyv.js} +1 -1
- package/dist/chunks/matrix-analytical-definition-dkS8szLM.js +1253 -0
- package/dist/chunks/matrix-member-presentation-DRa-9e6Q.js +169 -0
- package/dist/chunks/{matrix-operation-contract-Eb6elidS.js → matrix-operation-contract-DCVinw1o.js} +122 -122
- package/dist/chunks/{metric-comparison-ChXUFaZu.js → metric-comparison-n9NsIa-2.js} +175 -128
- package/dist/chunks/{palette-4vf2BEEg.js → palette-NjHOE_6B.js} +1 -1
- package/dist/chunks/pivot-result-contract-expectations-DkmueDTW.js +55 -0
- package/dist/chunks/{pivot-result-identity-BlbLrqaC.js → pivot-result-identity-B89X5xjb.js} +1 -1
- package/dist/chunks/raw-temporal-value-DdT0s47W.js +159 -0
- package/dist/chunks/{report-preferences-dialog-Mbd-I0wV.js → report-preferences-dialog-Xc8_GFju.js} +26 -28
- package/dist/chunks/{report-runtime-context-DnA_PiKo.js → report-runtime-context-BhPzLTbS.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-Du0fjN3h.js → resolve-dashboard-input-context-KqvcLcTM.js} +4784 -4764
- package/dist/chunks/{save-D6pHmSSP.js → save-C6VmEJTA.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-y8N6RvjS.js → saved-dashboard-context-BeXXyoD4.js} +6 -6
- package/dist/chunks/{semaphor-ready-indicator-BSEdUq40.js → semaphor-ready-indicator-BNkaANsG.js} +28395 -28384
- package/dist/chunks/{shelf-drop-preview-context-D7QqPl36.js → shelf-drop-preview-context-C_issPBA.js} +18 -20
- package/dist/chunks/{stored-dashboard-d3xQYxBD.js → stored-dashboard-B6_StAty.js} +263 -265
- package/dist/chunks/{table-export-sheet--DUKWk6o.js → table-export-sheet-BWP2joD1.js} +1 -1
- package/dist/chunks/{temporal-input-presentation--2r9BLr0.js → temporal-input-presentation-scSWQXAB.js} +4 -4
- package/dist/chunks/{token-types-C8JymO8s.js → token-types-iKMplaBL.js} +1 -1
- package/dist/chunks/{upload-Cf3wXZT8.js → upload-BRW4Mwrd.js} +1 -1
- package/dist/chunks/validators-B8fpdinG.js +3651 -0
- package/dist/chunks/{variable-draft-DOX03R4A.js → variable-draft-BQ3OMjvy.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1527 -1517
- package/dist/format-utils/index.js +230 -231
- package/dist/index.js +236 -237
- 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 +5 -4
- package/dist/types/components/ui-custom/date-range-presets.d.ts +1 -17
- package/dist/types/index.js +9 -9
- package/dist/types/lib/hooks/use-date-filter.d.ts +3 -3
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
- package/dist/types/lib/types/explorer-types.d.ts +2 -2
- package/dist/types/lib/types/index.d.ts +1 -1
- package/dist/types/lib/utils/card-definition.d.ts +7 -7
- package/dist/types/shared/analytics-protocol/agent-time-window.d.ts +84 -0
- package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +2 -2
- package/dist/types/shared/analytics-protocol/contracts.d.ts +8 -17
- package/dist/types/shared/analytics-protocol/fixtures.d.ts +3 -2
- package/dist/types/shared/analytics-protocol/index.d.ts +2 -4
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +4 -4
- package/dist/types/shared/analytics-protocol/relative-date/describe.d.ts +18 -0
- package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +7 -0
- package/dist/types/shared/analytics-protocol/relative-date/limits.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/relative-date/presets.d.ts +11 -0
- package/dist/types/shared/analytics-protocol/relative-date/resolve.d.ts +49 -0
- package/dist/types/shared/analytics-protocol/relative-date/schemas.d.ts +76 -0
- package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +51 -0
- package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +111 -0
- package/dist/types/shared/analytics-protocol/selection-contract.d.ts +1 -1
- package/dist/types/shared/assistant-protocol/context.d.ts +12 -12
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +0 -2
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +155 -1753
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +8 -4
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +74 -74
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +20 -20
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +10 -2
- package/dist/types/shared/format-utils/filter-detail.d.ts +2 -8
- package/dist/types/shared/format-utils/filter-line.d.ts +2 -2
- package/dist/types/shared/format-utils/matrix-continuation.d.ts +3 -3
- package/dist/types/shared/temporal/index.d.ts +0 -2
- package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +2 -2
- package/package.json +2 -24
- package/DATA_APP_SDK.md +0 -339
- package/dist/chunks/dashboard-json-Cxp3inxd.js +0 -68
- package/dist/chunks/filter-value-text-7zhmth1S.js +0 -163
- package/dist/chunks/index-CuHybtft.js +0 -51
- package/dist/chunks/matrix-analytical-definition-C9xB_T84.js +0 -717
- package/dist/chunks/matrix-card-BSUeSXpD.js +0 -42
- package/dist/chunks/matrix-member-presentation-DZNgQpUq.js +0 -105
- package/dist/chunks/operators-B3zZoskU.js +0 -66
- package/dist/chunks/pivot-result-contract-expectations-Ddh1rNz5.js +0 -56
- package/dist/chunks/raw-temporal-value-Bqz8wc7L.js +0 -242
- package/dist/chunks/selection-reducer-OaJ-N5uN.js +0 -46
- package/dist/chunks/source-entity-resolution-DF6GulDn.js +0 -607
- package/dist/chunks/validators-wtjw0aw6.js +0 -3332
- package/dist/data-app-sdk/index.js +0 -1412
- package/dist/data-app-sdk-adapters/index.js +0 -361
- package/dist/data-app-sdk-validation/index.js +0 -1031
- package/dist/types/data-app-sdk/adapters.d.ts +0 -35
- package/dist/types/data-app-sdk/builders.d.ts +0 -62
- package/dist/types/data-app-sdk/contracts.d.ts +0 -419
- package/dist/types/data-app-sdk/executor.d.ts +0 -5
- package/dist/types/data-app-sdk/field-catalog-validation.d.ts +0 -29
- package/dist/types/data-app-sdk/hooks.d.ts +0 -11
- package/dist/types/data-app-sdk/index.d.ts +0 -9
- package/dist/types/data-app-sdk/provider.d.ts +0 -8
- package/dist/types/data-app-sdk/relationship-aware-field-policy.d.ts +0 -21
- package/dist/types/data-app-sdk/selection.d.ts +0 -2
- package/dist/types/data-app-sdk/validation.d.ts +0 -58
- package/dist/types/data-app-sdk-adapters.d.ts +0 -2
- package/dist/types/data-app-sdk-validation.d.ts +0 -2
- package/dist/types/data-app-sdk.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +0 -68
- package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +0 -20
- package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +0 -314
- package/dist/types/shared/analytics-protocol/time-window.d.ts +0 -52
- package/dist/types/shared/temporal/relative-date.d.ts +0 -21
- package/dist/types/shared/temporal/time-window-periods.d.ts +0 -21
- package/src/data-app-sdk/README.md +0 -402
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { m as p } from "./validators-B8fpdinG.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
|
+
};
|