react-semaphor 0.1.526 → 0.1.528
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/DATA_APP_SDK.md +5 -1
- package/dist/analytics-protocol/index.js +1190 -296
- package/dist/brand-studio/index.js +15 -15
- package/dist/briefings/index.js +50 -49
- package/dist/chunks/{calculated-field-identity-D1ofR4KJ.js → calculated-field-identity-DUu-tCQw.js} +66 -65
- package/dist/chunks/{card-config-utils-9sv4e-Vb.js → card-config-utils-BdPceiw8.js} +68 -65
- package/dist/chunks/{constants-DeLIHVAW.js → constants-DNWVy8Y3.js} +4 -4
- package/dist/chunks/dashboard-BkskKMck.js +14 -0
- package/dist/chunks/{dashboard-briefing-launcher-DXz1GhFZ.js → dashboard-briefing-launcher-Bb0RhGRC.js} +372 -359
- package/dist/chunks/{dashboard-controls-Df8qOSrs.js → dashboard-controls-loWTHPMi.js} +739 -686
- package/dist/chunks/{dashboard-json-Xldp0qww.js → dashboard-json-DUci_SOR.js} +10 -10
- package/dist/chunks/{edit-dashboard-visual-COHBqyic.js → edit-dashboard-visual-z9WN26w7.js} +6603 -6572
- package/dist/chunks/{editor-action-buttons-DahlP57T.js → editor-action-buttons-CGSFK9S-.js} +266 -267
- package/dist/chunks/{field-aggregations-BQjogiI1.js → field-aggregations-CdXSo1pb.js} +19 -19
- package/dist/chunks/{field-dependencies-v-lJNzC7.js → field-dependencies-CGYic38w.js} +1 -1
- package/dist/chunks/{index-CbjuruKe.js → index-CTYnXU85.js} +781 -780
- package/dist/chunks/{matrix-analytical-definition-BimC4XIV.js → matrix-analytical-definition-BJyH5-99.js} +1 -1
- package/dist/chunks/{matrix-card-CIlz0Dnp.js → matrix-card-DhykwdZs.js} +7 -6
- package/dist/chunks/{matrix-control-sources-2VAzGlt8.js → matrix-control-sources-BV9ywFtJ.js} +11 -11
- package/dist/chunks/{matrix-definition-E5gXXSTZ.js → matrix-definition-Cdn3LoxW.js} +3 -3
- package/dist/chunks/{semantic-format-Baqp8kD_.js → matrix-formatter-1Mm8x8w7.js} +655 -511
- package/dist/chunks/{matrix-member-presentation-Bw7-JCrr.js → matrix-member-presentation-BBW0n1iY.js} +1 -1
- package/dist/chunks/matrix-operation-contract-Dp7kFpVk.js +1383 -0
- package/dist/chunks/{metric-comparison-BphoJ9bq.js → metric-comparison-Crljx_XY.js} +15 -10
- package/dist/chunks/{numeric-presentation-VhMUHfrJ.js → numeric-presentation-LvnNY5Ma.js} +68 -68
- package/dist/chunks/pivot-header-presentation-CZa3556D.js +618 -0
- package/dist/chunks/{pivot-result-identity-BzUQiCEV.js → pivot-result-identity-CY__BuwI.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-BFO354lk.js → pivot-result-lifecycle-Bqdtknud.js} +259 -204
- package/dist/chunks/{raw-temporal-7bFbXd2a.js → raw-temporal-CdnA_OXJ.js} +10 -10
- package/dist/chunks/{raw-temporal-contract-BQZIJ1fn.js → raw-temporal-contract-Bc9z83t-.js} +1 -1
- package/dist/chunks/relative-date-DAF9J7mt.js +456 -0
- package/dist/chunks/{report-preferences-dialog-BcH-0lR-.js → report-preferences-dialog-VV0-Ro6F.js} +131 -132
- package/dist/chunks/{report-runtime-context-CxIoGyNM.js → report-runtime-context-CtaGGlit.js} +1 -1
- package/dist/chunks/{selection-reducer-NF5C07yM.js → selection-reducer-IZjBSU6Z.js} +47 -26
- package/dist/chunks/semantic-format-BBLvfwua.js +192 -0
- package/dist/chunks/{semaphor-ready-indicator-BLRDuLr4.js → semaphor-ready-indicator-DbA4mVQL.js} +49909 -46207
- package/dist/chunks/{slider-BYIH4icg.js → slider-DpiJG8lv.js} +81 -82
- package/dist/chunks/{source-entity-resolution-Bzefiive.js → source-entity-resolution-Bde29mqE.js} +25 -25
- package/dist/chunks/switch-C4YH-W1X.js +24003 -0
- package/dist/chunks/{temporal-bucket-PcLFSYWX.js → temporal-bucket-DlFuhCnT.js} +6 -6
- package/dist/chunks/{temporal-bucket-contract-DTLDRzgV.js → temporal-bucket-contract-C6lUGPS3.js} +1 -1
- package/dist/chunks/temporal-input-presentation-DyMWCZYh.js +195 -0
- package/dist/chunks/{token-types-BC6RcUY8.js → token-types-UjyNz95-.js} +1 -1
- package/dist/chunks/{validators-CsdOtZI6.js → validators-CQcG0EPN.js} +852 -731
- package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +46 -0
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +138 -137
- package/dist/data-app-sdk/index.js +12 -12
- package/dist/data-app-sdk-adapters/index.js +23 -22
- package/dist/data-app-sdk-validation/index.js +27 -26
- package/dist/format-utils/index.js +247 -329
- package/dist/index.js +165 -168
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/briefings/index.d.ts +3 -0
- package/dist/types/components/explorer/filters/card-date-filter.d.ts +13 -5
- package/dist/types/components/explorer/filters/card-date-selection.d.ts +28 -0
- package/dist/types/components/sharing-and-management/dashboard-actions-menu.d.ts +1 -1
- package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -1
- package/dist/types/components/surfboard/download-settings-dialog.d.ts +8 -0
- package/dist/types/components/surfboard/filter/types.d.ts +8 -29
- package/dist/types/components/surfboard/filter/use-dashboard-filter-mapping-popover.d.ts +5 -1
- package/dist/types/components/ui-custom/date-range-picker.d.ts +18 -2
- package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -21
- package/dist/types/components/ui-custom/report-calendar.d.ts +18 -0
- package/dist/types/components/visual/aggregated-table/utils/export-utils.d.ts +3 -5
- package/dist/types/components/visual/data-table/data-table-toolbar.d.ts +1 -1
- package/dist/types/components/visual/pivot-table/utils/pivot-table-export-utils.d.ts +3 -1
- package/dist/types/index.js +5 -5
- package/dist/types/lib/api/exports-api.d.ts +3 -0
- package/dist/types/lib/csv-download.d.ts +9 -0
- package/dist/types/lib/csv-encoding-options.d.ts +6 -0
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +2 -1
- package/dist/types/lib/dashboard-navigation/build-carried-click-context.d.ts +0 -1
- package/dist/types/lib/document/document-input-runtime.d.ts +2 -1
- package/dist/types/lib/export-utils.d.ts +17 -15
- package/dist/types/lib/hooks/explorer/use-filter-builder.d.ts +2 -2
- package/dist/types/lib/hooks/use-relative-date-summarizer.d.ts +7 -0
- package/dist/types/lib/matrix-table/matrix-application-adapter.d.ts +3 -2
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-card-draft.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-dataset-history.d.ts +47 -0
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +7 -3
- package/dist/types/lib/matrix-table/matrix-execution-context.d.ts +2 -0
- package/dist/types/lib/matrix-table/matrix-query-transport.d.ts +4 -1
- package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +105 -4
- package/dist/types/lib/matrix-table/matrix-runtime.d.ts +43 -2
- package/dist/types/lib/matrix-table/use-matrix.d.ts +6 -0
- package/dist/types/lib/query-context/build-card-query-context.d.ts +5 -1
- package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +0 -1
- package/dist/types/lib/query-context/build-global-date-comparison-context.d.ts +1 -2
- package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +1 -2
- package/dist/types/lib/query-context/dashboard-card-query-key.d.ts +10 -0
- package/dist/types/lib/query-context/query-auth-scope.d.ts +5 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +9 -4
- package/dist/types/lib/temporal-filter/temporal-filter-utils.d.ts +9 -2
- package/dist/types/lib/types/common-types.d.ts +5 -0
- package/dist/types/lib/types/explorer-types.d.ts +14 -0
- package/dist/types/lib/types/semantic-types.d.ts +4 -2
- package/dist/types/lib/types/token-types.d.ts +0 -1
- package/dist/types/lib/utils/aggregate-expression-utils.d.ts +0 -4
- package/dist/types/lib/utils/card-definition.d.ts +1 -1
- package/dist/types/lib/utils/date-timezone-utils.d.ts +4 -46
- package/dist/types/lib/utils/filter-default-value-utils.d.ts +8 -2
- package/dist/types/lib/utils/inline-filter-utils.d.ts +3 -2
- package/dist/types/lib/utils/relative-date-description.d.ts +38 -0
- package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +89 -0
- package/dist/types/shared/analytics-protocol/analytics-refusal.d.ts +32 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +48 -7
- package/dist/types/shared/analytics-protocol/index.d.ts +15 -1
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +20 -20
- package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +10 -10
- package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +8 -8
- package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +61 -6
- package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +63 -0
- package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +9 -3
- package/dist/types/shared/analytics-protocol/operation-temporal-state.d.ts +64 -0
- package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +61 -0
- package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +20 -0
- package/dist/types/shared/analytics-protocol/runtime-schemas.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +314 -0
- package/dist/types/shared/analytics-protocol/time-window.d.ts +13 -0
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
- package/dist/types/shared/format-utils/exporters/csv-utils.d.ts +46 -15
- package/dist/types/shared/format-utils/exporters/index.d.ts +2 -3
- package/dist/types/shared/format-utils/flat-table-export-totals.d.ts +2 -1
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +2 -2
- package/dist/types/shared/format-utils/types/format-types.d.ts +0 -42
- package/dist/types/shared/temporal/calendar-periods.d.ts +56 -0
- package/dist/types/shared/temporal/index.d.ts +5 -0
- package/dist/types/shared/temporal/relative-date.d.ts +21 -0
- package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +73 -0
- package/dist/types/shared/temporal/time-window-periods.d.ts +21 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +23 -0
- package/package.json +1 -17
- package/src/data-app-sdk/README.md +6 -3
- package/dist/chunks/code-highlight-994tgM9v.js +0 -22265
- package/dist/chunks/dashboard-CsHvEtjN.js +0 -15
- package/dist/chunks/dashboard-date-comparison-definition-BqNhECUr.js +0 -183
- package/dist/chunks/matrix-formatter-WBgtebUT.js +0 -341
- package/dist/chunks/matrix-operation-contract-D32U2CSw.js +0 -1802
- package/dist/chunks/mouse-pointer-2-BZvGk45-.js +0 -19
- package/dist/chunks/pivot-header-presentation-CGtudHo7.js +0 -661
- package/dist/chunks/pre-block-Cq1RqhZX.js +0 -3987
- package/dist/chunks/search-CJz-QQ0Q.js +0 -24
- package/dist/chunks/switch-XaAACBrJ.js +0 -2234
- package/dist/chunks/temporal-input-presentation-2RJrvmYL.js +0 -222
- package/dist/chunks/update-policy-DhAUtiC8.js +0 -913
- package/dist/data-app-builder/index.js +0 -3666
- package/dist/data-app-builder-browser-runtime/index.js +0 -8
- package/dist/data-app-codegen/index.js +0 -22
- package/dist/data-app-codegen-node/index.js +0 -1807
- package/dist/types/components/data-app-runtime/published-data-app-runtime.d.ts +0 -7
- package/dist/types/components/surfboard/json-to-csv.d.ts +0 -7
- package/dist/types/components/visual/data-table/utils/export-utils.d.ts +0 -31
- package/dist/types/data-app-builder/browser-runtime.d.ts +0 -174
- package/dist/types/data-app-builder/constants.d.ts +0 -14
- package/dist/types/data-app-builder/data-app-builder.d.ts +0 -14
- package/dist/types/data-app-builder/index.d.ts +0 -1
- package/dist/types/data-app-builder/lib/api.d.ts +0 -36
- package/dist/types/data-app-builder/lib/context-select.d.ts +0 -3
- package/dist/types/data-app-builder/lib/diagnostics.d.ts +0 -12
- package/dist/types/data-app-builder/lib/file-tree.d.ts +0 -2
- package/dist/types/data-app-builder/types.d.ts +0 -558
- package/dist/types/data-app-builder-browser-runtime.d.ts +0 -2
- package/dist/types/data-app-builder.d.ts +0 -2
- package/dist/types/data-app-codegen/generate-contract.d.ts +0 -26
- package/dist/types/data-app-codegen/generated-contract-files.d.ts +0 -7
- package/dist/types/data-app-codegen/generated-contract-validation.d.ts +0 -13
- package/dist/types/data-app-codegen/index.d.ts +0 -6
- package/dist/types/data-app-codegen/live-execution.d.ts +0 -42
- package/dist/types/data-app-codegen/node.d.ts +0 -2
- package/dist/types/data-app-codegen/update-policy.d.ts +0 -25
- package/dist/types/data-app-codegen/validation.d.ts +0 -8
- package/dist/types/data-app-codegen-node.d.ts +0 -2
- package/dist/types/data-app-codegen.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/data-app-codegen-summary.d.ts +0 -418
- package/dist/types/shared/format-utils/exporters/pivot-exporter.d.ts +0 -13
- package/dist/types/shared/format-utils/exporters/table-exporter.d.ts +0 -10
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const u = /* @__PURE__ */ new Map();
|
|
2
|
+
function l(e, t) {
|
|
3
|
+
let n = u.get(t);
|
|
4
|
+
n || (n = new Intl.DateTimeFormat("en-CA", {
|
|
5
|
+
calendar: "gregory",
|
|
6
|
+
numberingSystem: "latn",
|
|
7
|
+
timeZone: t,
|
|
8
|
+
year: "numeric",
|
|
9
|
+
month: "2-digit",
|
|
10
|
+
day: "2-digit",
|
|
11
|
+
hour: "2-digit",
|
|
12
|
+
minute: "2-digit",
|
|
13
|
+
second: "2-digit",
|
|
14
|
+
hourCycle: "h23"
|
|
15
|
+
}), u.set(t, n));
|
|
16
|
+
const c = n.formatToParts(e), r = (s) => {
|
|
17
|
+
var o;
|
|
18
|
+
return Number((o = c.find((i) => i.type === s)) == null ? void 0 : o.value);
|
|
19
|
+
};
|
|
20
|
+
return {
|
|
21
|
+
year: r("year"),
|
|
22
|
+
month: r("month"),
|
|
23
|
+
day: r("day"),
|
|
24
|
+
hour: r("hour"),
|
|
25
|
+
minute: r("minute"),
|
|
26
|
+
second: r("second")
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function m(e) {
|
|
30
|
+
const t = /* @__PURE__ */ new Date(0);
|
|
31
|
+
return t.setUTCFullYear(e.year, e.month - 1, e.day), t.setUTCHours(e.hour, e.minute, e.second, e.millisecond ?? 0), t.getTime();
|
|
32
|
+
}
|
|
33
|
+
function a(e, t) {
|
|
34
|
+
const n = e - (e % 1e3 + 1e3) % 1e3;
|
|
35
|
+
return m(l(new Date(n), t)) - n;
|
|
36
|
+
}
|
|
37
|
+
const d = 864e5;
|
|
38
|
+
function f(e, t) {
|
|
39
|
+
const n = m(e), c = a(n - d, t), r = a(n + d, t), s = [.../* @__PURE__ */ new Set([c, r])].map((o) => n - o).filter((o) => a(o, t) === n - o).sort((o, i) => o - i);
|
|
40
|
+
return new Date(s.length ? s[0] : n - c);
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
f as a,
|
|
44
|
+
m as w,
|
|
45
|
+
l as z
|
|
46
|
+
};
|
package/dist/dashboard/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { D as L, a as Ce } from "../chunks/matrix-control-sources-
|
|
2
|
-
import { k as
|
|
3
|
-
import { c as Se, r as ve } from "../chunks/field-aggregations-
|
|
4
|
-
import { A as
|
|
5
|
-
import { q as De,
|
|
6
|
-
import "../chunks/matrix-operation-contract-
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
1
|
+
import { D as L, a as Ce } from "../chunks/matrix-control-sources-BV9ywFtJ.js";
|
|
2
|
+
import { k as Vt, l as zt, n as qt, h as jt, i as Gt, j as Ht, C as Ut, d as Kt, f as Wt, e as Xt, o as Qt, c as Jt, p as Yt, u as Zt, w as ea, y as ta, g as aa, x as ra, m as na, b as ia, r as oa, s as sa, z as da, t as ca, q as la, v as ua } from "../chunks/matrix-control-sources-BV9ywFtJ.js";
|
|
3
|
+
import { c as Se, r as ve } from "../chunks/field-aggregations-CdXSo1pb.js";
|
|
4
|
+
import { A as fa, D as ha, n as ma, S as ga, h as ba, j as Ia, w as _a, k as ya, l as Ca, m as Sa, v as va, o as Da, B as Ta, g as Fa, b as ka, i as wa, z as xa, u as Aa, q as Oa, y as Ra, p as Na, e as Ea, f as Ma, d as La, a as Pa, x as Ba, s as $a, t as Va } from "../chunks/field-aggregations-CdXSo1pb.js";
|
|
5
|
+
import { q as De, G as K, b8 as Te, H as se, F as Fe, au as ke } from "../chunks/validators-CQcG0EPN.js";
|
|
6
|
+
import "../chunks/matrix-operation-contract-Dp7kFpVk.js";
|
|
7
|
+
import "zod";
|
|
8
|
+
import { m as $, r as q } from "../chunks/calculated-field-identity-DUu-tCQw.js";
|
|
9
|
+
import { C as qa, D as ja, l as Ga, p as Ha, J as Ua, q as Ka, k as Wa, f as Xa, d as Qa, i as Ja, z as Ya, g as Za, u as er, A as tr, h as ar, j as rr, v as nr, n as ir, t as or, B as sr, H as dr, x as cr, o as lr, e as ur, a as pr, b as fr, E as hr, F as mr, c as gr, w as br, G as Ir, s as _r, y as yr, I as Cr } from "../chunks/calculated-field-identity-DUu-tCQw.js";
|
|
9
10
|
import { n as we } from "../chunks/operators-B3zZoskU.js";
|
|
10
|
-
import { a as
|
|
11
|
-
import { b as
|
|
12
|
-
import { m as
|
|
11
|
+
import { a as vr, b as Dr, r as Tr } from "../chunks/canonical-result-keys-CEQefvdO.js";
|
|
12
|
+
import { b as kr, c as wr, g as xr, a as Ar, m as Or, r as Rr } from "../chunks/matrix-definition-Cdn3LoxW.js";
|
|
13
|
+
import { m as Er, a as Mr, r as Lr } from "../chunks/matrix-card-DhykwdZs.js";
|
|
13
14
|
function y(e) {
|
|
14
15
|
return e && typeof e == "object" ? e : null;
|
|
15
16
|
}
|
|
@@ -23,7 +24,7 @@ function xe(e) {
|
|
|
23
24
|
function A(e) {
|
|
24
25
|
return xe(e) ? e.kind === "semantic" ? !!(e.domainId && e.datasetName) : e.kind === "physical" ? !!(e.connectionId && e.tableName) : !1 : !1;
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
+
function Ot(e) {
|
|
27
28
|
return De(e);
|
|
28
29
|
}
|
|
29
30
|
function de(e, t) {
|
|
@@ -45,7 +46,7 @@ function P(e) {
|
|
|
45
46
|
}
|
|
46
47
|
return t;
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
+
function Rt(e) {
|
|
49
50
|
return P(e)[0];
|
|
50
51
|
}
|
|
51
52
|
function j(e, t) {
|
|
@@ -87,7 +88,7 @@ function Oe({
|
|
|
87
88
|
if ((t == null ? void 0 : t.source) === void 0)
|
|
88
89
|
return G(a);
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
+
function Nt(e, t) {
|
|
91
92
|
if (!(e != null && e.name) || !(t != null && t.name) || e.name !== t.name)
|
|
92
93
|
return !1;
|
|
93
94
|
const a = v(e), r = v(t);
|
|
@@ -125,11 +126,11 @@ function Pe(e) {
|
|
|
125
126
|
var t;
|
|
126
127
|
return k(e) !== "physical" ? "" : D((t = y(e)) == null ? void 0 : t.schemaName) || "";
|
|
127
128
|
}
|
|
128
|
-
function
|
|
129
|
+
function Be(e) {
|
|
129
130
|
if (e.analyticsIntent && typeof e.analyticsIntent == "object" && "source" in e.analyticsIntent)
|
|
130
131
|
return e.analyticsIntent.source;
|
|
131
132
|
}
|
|
132
|
-
function
|
|
133
|
+
function $e({
|
|
133
134
|
datasets: e,
|
|
134
135
|
requireAtLeastOne: t
|
|
135
136
|
}) {
|
|
@@ -149,7 +150,7 @@ function W(e, t) {
|
|
|
149
150
|
}
|
|
150
151
|
return t.kind === "physical" ? Ee(e) === t.connectionId && Me(e) === t.tableName && Le(e) === (t.databaseName || "") && Pe(e) === (t.schemaName || "") : !1;
|
|
151
152
|
}
|
|
152
|
-
function
|
|
153
|
+
function Et(e, t) {
|
|
153
154
|
return e.find(
|
|
154
155
|
(a) => W(a, t)
|
|
155
156
|
);
|
|
@@ -173,7 +174,7 @@ function le({
|
|
|
173
174
|
}) {
|
|
174
175
|
if (e.type === "text")
|
|
175
176
|
return;
|
|
176
|
-
const r =
|
|
177
|
+
const r = Be(e);
|
|
177
178
|
if (!r) {
|
|
178
179
|
if (t.length <= 1)
|
|
179
180
|
return;
|
|
@@ -279,7 +280,7 @@ function fe({
|
|
|
279
280
|
errors: t,
|
|
280
281
|
requireAtLeastOne: a
|
|
281
282
|
}) {
|
|
282
|
-
const r =
|
|
283
|
+
const r = $e({
|
|
283
284
|
datasets: e,
|
|
284
285
|
requireAtLeastOne: a
|
|
285
286
|
});
|
|
@@ -624,7 +625,7 @@ function Q(e, t) {
|
|
|
624
625
|
return;
|
|
625
626
|
const a = Xe(e.dataType), r = e.operation || "in";
|
|
626
627
|
if (Je(t))
|
|
627
|
-
return
|
|
628
|
+
return $({
|
|
628
629
|
definition: e,
|
|
629
630
|
sourceValue: t,
|
|
630
631
|
value: {
|
|
@@ -638,7 +639,7 @@ function Q(e, t) {
|
|
|
638
639
|
}
|
|
639
640
|
});
|
|
640
641
|
if (r === "is null" || r === "is not null")
|
|
641
|
-
return
|
|
642
|
+
return $({
|
|
642
643
|
definition: e,
|
|
643
644
|
value: {
|
|
644
645
|
filterId: e.id,
|
|
@@ -653,7 +654,7 @@ function Q(e, t) {
|
|
|
653
654
|
});
|
|
654
655
|
const o = Array.isArray(t) ? t : [t], n = a === "date" ? Ze(o) : Ye(o);
|
|
655
656
|
if (n.length !== 0 && !((r === "between" || r === "not between") && n.length < 2))
|
|
656
|
-
return
|
|
657
|
+
return $({
|
|
657
658
|
definition: e,
|
|
658
659
|
value: {
|
|
659
660
|
filterId: e.id,
|
|
@@ -769,7 +770,7 @@ function nt(e, t) {
|
|
|
769
770
|
defaultInputValues: a.shared && Object.keys(a.shared).length > 0 ? a : void 0
|
|
770
771
|
};
|
|
771
772
|
}
|
|
772
|
-
function
|
|
773
|
+
function Mt(e) {
|
|
773
774
|
var b, C;
|
|
774
775
|
const t = ze(e.plan);
|
|
775
776
|
if (!t.ok)
|
|
@@ -935,7 +936,7 @@ function lt(e, t) {
|
|
|
935
936
|
}
|
|
936
937
|
});
|
|
937
938
|
}
|
|
938
|
-
function
|
|
939
|
+
function Lt(e) {
|
|
939
940
|
var u;
|
|
940
941
|
const t = qe(e.changePlan);
|
|
941
942
|
if (!t.ok)
|
|
@@ -1430,7 +1431,7 @@ function vt(e) {
|
|
|
1430
1431
|
cardIds: t.filter((n) => !a.has(n))
|
|
1431
1432
|
};
|
|
1432
1433
|
}
|
|
1433
|
-
function
|
|
1434
|
+
function Pt(e) {
|
|
1434
1435
|
var b, C, c;
|
|
1435
1436
|
const t = [], a = ke(e);
|
|
1436
1437
|
for (const f of a.warnings)
|
|
@@ -1443,7 +1444,7 @@ function Lt(e) {
|
|
|
1443
1444
|
const l = typeof I.title == "string" ? I.title : `Section ${f + 1}`, Z = I.id || x(l, `section-${f + 1}`);
|
|
1444
1445
|
i.set(Z, []);
|
|
1445
1446
|
for (const [ee, g] of Y(I).entries()) {
|
|
1446
|
-
const te = bt(g),
|
|
1447
|
+
const te = bt(g), B = x(
|
|
1447
1448
|
g.id || `${l}-${g.title || `View ${ee + 1}`}`,
|
|
1448
1449
|
`card-${f + 1}-${ee + 1}`
|
|
1449
1450
|
);
|
|
@@ -1452,7 +1453,7 @@ function Lt(e) {
|
|
|
1452
1453
|
_(
|
|
1453
1454
|
"unsupported_presentation",
|
|
1454
1455
|
`Dashboard presentation "${((b = g.presentation) == null ? void 0 : b.kind) || "unknown"}" is not supported by the dashboard authoring adapter.`,
|
|
1455
|
-
`card-${
|
|
1456
|
+
`card-${B}`
|
|
1456
1457
|
)
|
|
1457
1458
|
);
|
|
1458
1459
|
continue;
|
|
@@ -1462,12 +1463,12 @@ function Lt(e) {
|
|
|
1462
1463
|
_(
|
|
1463
1464
|
"sql_intent_deferred",
|
|
1464
1465
|
"SQL analytics intent is valid protocol, but the current dashboard authoring adapter only materializes semantic and physical config-card intents.",
|
|
1465
|
-
`card-${
|
|
1466
|
+
`card-${B}`
|
|
1466
1467
|
)
|
|
1467
1468
|
);
|
|
1468
1469
|
continue;
|
|
1469
1470
|
}
|
|
1470
|
-
const ae = Ie(
|
|
1471
|
+
const ae = Ie(B, u), R = `card-${ae}`;
|
|
1471
1472
|
g.id && n.set(g.id, R), (c = i.get(Z)) == null || c.push(R);
|
|
1472
1473
|
const ye = g.analytics && "inputs" in g.analytics ? g.analytics.inputs : void 0;
|
|
1473
1474
|
for (const re of ye || []) {
|
|
@@ -1528,129 +1529,129 @@ function Lt(e) {
|
|
|
1528
1529
|
}, warnings: t };
|
|
1529
1530
|
}
|
|
1530
1531
|
export {
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1532
|
+
fa as AUTOMATIC_TEMPORAL_BUCKET_FORMAT,
|
|
1533
|
+
Vt as CONTROL_BINDING_MAPPING_MISSING_ERROR_CODE,
|
|
1534
|
+
zt as CONTROL_BINDING_TARGET_INVALID_ERROR_CODE,
|
|
1535
|
+
qt as CONTROL_BINDING_VALUE_INVALID_ERROR_CODE,
|
|
1536
|
+
jt as CONTROL_CONTEXT_UNSUPPORTED_ERROR_CODE,
|
|
1537
|
+
Gt as CONTROL_DEFINITION_DUPLICATE_ERROR_CODE,
|
|
1538
|
+
Ht as CONTROL_DEFINITION_INVALID_ERROR_CODE,
|
|
1539
|
+
Ut as CONTROL_PLACEHOLDER_QUOTED_ERROR_CODE,
|
|
1540
|
+
Kt as CONTROL_REFERENCE_MISSING_ERROR_CODE,
|
|
1541
|
+
Wt as CONTROL_VALUE_INVALID_ERROR_CODE,
|
|
1542
|
+
Xt as CONTROL_VALUE_MISSING_ERROR_CODE,
|
|
1543
|
+
Qt as ControlResolutionError,
|
|
1543
1544
|
Ce as DASHBOARD_AUTHORING_BREAKPOINTS,
|
|
1544
1545
|
L as DASHBOARD_AUTHORING_MAX_GENERATED_CARDS,
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1546
|
+
qa as DASHBOARD_DEFAULT_OPTION_DEPENDENCIES,
|
|
1547
|
+
ha as DOCUMENT_KPI_SECTION_MAX_CARDS,
|
|
1548
|
+
ma as DOCUMENT_KPI_SECTION_MAX_TILES,
|
|
1549
|
+
ja as DashboardFilterMappingContractError,
|
|
1550
|
+
ga as SEMAPHOR_CARTESIAN_CHART_TYPES,
|
|
1551
|
+
Ga as applyCardReferenceRemapping,
|
|
1552
|
+
Lt as applyDashboardChangePlan,
|
|
1553
|
+
Jt as applyGroupByOverride,
|
|
1554
|
+
Ha as applyLinkedClickToFilterOverrides,
|
|
1555
|
+
Ua as applyOptionDependencyOverride,
|
|
1556
|
+
Yt as buildControlDefinitionIndex,
|
|
1557
|
+
ba as buildDashboardCardSourceIndex,
|
|
1558
|
+
Ka as buildLinkedClickToFilterOverrides,
|
|
1558
1559
|
Se as clickToFilterSettingsSchema,
|
|
1559
|
-
|
|
1560
|
+
Mt as compileDashboardFromPlan,
|
|
1560
1561
|
X as compileResponsiveDashboardLayouts,
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1562
|
+
Wa as composeCardReferenceRemapping,
|
|
1563
|
+
Xa as createDashboardFilterBindingId,
|
|
1564
|
+
kr as createMatrixAuthoringDraft,
|
|
1565
|
+
wr as createMatrixConfig,
|
|
1565
1566
|
W as dashboardAuthoringDatasetMatchesSource,
|
|
1566
|
-
|
|
1567
|
+
Nt as dashboardAuthoringFieldsReferToSameTarget,
|
|
1567
1568
|
v as dashboardAuthoringSourceFromField,
|
|
1568
|
-
|
|
1569
|
+
Ot as dashboardAuthoringSourceKey,
|
|
1569
1570
|
de as dashboardAuthoringSourcesReferToSameDataset,
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1571
|
+
Ia as dashboardCardFilterSourceInventoryContains,
|
|
1572
|
+
Qa as dashboardFilterTargetMatchesLogicalValue,
|
|
1573
|
+
Ja as dashboardFilterValueTypeForDataType,
|
|
1574
|
+
Pt as dashboardPlanFromSemaphorDashboardIntent,
|
|
1575
|
+
_a as defaultClickToFilterSettings,
|
|
1576
|
+
Et as findDashboardAuthoringDatasetForSource,
|
|
1577
|
+
ya as findDashboardCardExecutableSource,
|
|
1578
|
+
Ca as findDashboardCardPinnedCatalogSource,
|
|
1579
|
+
Sa as findDashboardSqlPinnedCatalogSource,
|
|
1580
|
+
Zt as getCalculatedFieldAggregateOverrides,
|
|
1581
|
+
Ya as getCalculatedFieldNamespace,
|
|
1582
|
+
ea as getCalculatedFieldParameters,
|
|
1583
|
+
ta as getCalculatedFieldShelfOverrides,
|
|
1584
|
+
aa as getColumnCatalogFieldId,
|
|
1585
|
+
Be as getDashboardAuthoringCardSource,
|
|
1586
|
+
Za as getDashboardFilterSubscriptionHint,
|
|
1587
|
+
va as getDocumentKpiSectionShapeIssues,
|
|
1588
|
+
Da as getDocumentSectionCards,
|
|
1589
|
+
ra as getDomainCalculatedSelectionOverrides,
|
|
1590
|
+
Ta as getFieldAggregationOptions,
|
|
1591
|
+
er as getMatrixBindingTargets,
|
|
1592
|
+
xr as getMatrixLevelLabel,
|
|
1593
|
+
Ar as getMatrixMeasureLabel,
|
|
1594
|
+
tr as getStableDomainCalculatedFieldId,
|
|
1595
|
+
Fa as getTemporalBucketAuthoringOptions,
|
|
1596
|
+
ka as getTemporalBucketAuthoringSelection,
|
|
1597
|
+
ar as hasDashboardFilterSubscription,
|
|
1598
|
+
rr as isDashboardFilterOperationCompatible,
|
|
1598
1599
|
A as isMaterializableDashboardAuthoringSource,
|
|
1599
|
-
|
|
1600
|
+
wa as isSemaphorCartesianChartType,
|
|
1600
1601
|
xe as isSemaphorSourceRef,
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1602
|
+
xa as linkedClickToFilterOverridesSchema,
|
|
1603
|
+
Aa as listDashboardCardLocations,
|
|
1604
|
+
Oa as mapDocumentSectionCards,
|
|
1605
|
+
na as matrixCatalogSources,
|
|
1606
|
+
Er as matrixDefinitionFields,
|
|
1607
|
+
Mr as matrixDefinitionSources,
|
|
1608
|
+
ia as matrixExecutionSources,
|
|
1608
1609
|
P as mergeDashboardAuthoringSources,
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1610
|
+
Or as mergeMatrixSorts,
|
|
1611
|
+
nr as moveMatrixLevel,
|
|
1612
|
+
Ra as normalizeClickToFilterSettings,
|
|
1613
|
+
ir as normalizeDashboardInputs,
|
|
1614
|
+
or as normalizeLegacyLinkedTargetOverrides,
|
|
1614
1615
|
Ae as preferDashboardAuthoringSourceMetadata,
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1616
|
+
Rt as preferredDashboardAuthoringSource,
|
|
1617
|
+
Na as previewTemporalBucketAuthoringFormat,
|
|
1618
|
+
sr as readExactDomainCalculatedFieldReference,
|
|
1619
|
+
Lr as readMatrixCardConfig,
|
|
1620
|
+
dr as rebindDashboardOptionDependencyInputId,
|
|
1621
|
+
cr as reconcileMatrixSpecStructure,
|
|
1622
|
+
Ea as reconcileTemporalBucketAuthoringFormat,
|
|
1622
1623
|
q as remapClickToFilterReferences,
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1624
|
+
lr as remapLinkedClickToFilterOverrides,
|
|
1625
|
+
ur as requireNormalizedDashboardInputs,
|
|
1626
|
+
oa as resolveBindingControlValue,
|
|
1627
|
+
vr as resolveCanonicalDetailResultRawKey,
|
|
1628
|
+
Dr as resolveCanonicalResultOutputKey,
|
|
1629
|
+
Tr as resolveCanonicalResultRawKey,
|
|
1629
1630
|
Oe as resolveDashboardAuthoringSource,
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1631
|
+
Ma as resolveDashboardEntitySource,
|
|
1632
|
+
pr as resolveDashboardFilterAutomaticTarget,
|
|
1633
|
+
fr as resolveDashboardFilterInheritedTarget,
|
|
1634
|
+
hr as resolveDashboardOptionDependencies,
|
|
1635
|
+
mr as resolveDashboardOptionPopulation,
|
|
1636
|
+
gr as resolveDashboardSqlFilterTarget,
|
|
1637
|
+
sa as resolveGroupByFieldTarget,
|
|
1638
|
+
da as resolveMatrixControlBindings,
|
|
1639
|
+
Rr as resolveMatrixDefinition,
|
|
1640
|
+
ca as resolveMetricFieldTarget,
|
|
1641
|
+
la as resolveScalarMappedValue,
|
|
1642
|
+
La as resolveTemporalBucketAuthoringFormat,
|
|
1643
|
+
Pa as resolveTemporalResultOwner,
|
|
1643
1644
|
ve as respondsToSelectionsSchema,
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1645
|
+
br as retainMatrixConditionalFormatting,
|
|
1646
|
+
Ir as selectDashboardOptionDependencyInputIds,
|
|
1647
|
+
Ba as selectionFieldFromExplorerField,
|
|
1648
|
+
_r as stripInstanceTargetsForLibrarySave,
|
|
1648
1649
|
$a as supportsCanonicalDashboardTemporalResult,
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1650
|
+
Va as transformComparisonDocument,
|
|
1651
|
+
yr as updateMatrixConfig,
|
|
1652
|
+
ua as validateControlValue,
|
|
1653
|
+
$e as validateDashboardAuthoringDatasetScope,
|
|
1653
1654
|
qe as validateDashboardChangePlan,
|
|
1654
1655
|
ze as validateDashboardPlan,
|
|
1655
|
-
|
|
1656
|
+
Cr as withDashboardOptionDependencyOverride
|
|
1656
1657
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { toSemaphorInputSnapshots as rt, toSemaphorInputBinding as tt, toSemaphorSelectionSnapshots as nt, toSemaphorActiveInputSnapshots as X, toSemaphorMatrixIntent as it, toSemaphorSqlIntent as ot, toSemaphorInputOptionsIntent as st, toSemaphorRecordsIntent as at, toSemaphorAnalysisQueryOptions as lt, toSemaphorAnalysisIntent as dt, toSemaphorMetricIntent as ut, hasSemaphorInputValue as fe, normalizeSemaphorInputOptions as qr, toSemaphorInputSpec as Ar } from "../data-app-sdk-adapters/index.js";
|
|
2
2
|
import { jsxs as p, Fragment as Tr, jsx as l } from "react/jsx-runtime";
|
|
3
3
|
import { createContext as Ae, useContext as Q, useState as _, useRef as T, useEffect as B, useMemo as x, Fragment as ct, useId as kr, useCallback as L, useReducer as ft } from "react";
|
|
4
|
-
import { q as pt, u as gt,
|
|
5
|
-
import { a as Co,
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
4
|
+
import { q as pt, u as gt, H as mt, I as xe, s as yt } from "../chunks/validators-CQcG0EPN.js";
|
|
5
|
+
import { a as Co, b9 as Eo } from "../chunks/validators-CQcG0EPN.js";
|
|
6
|
+
import { m as ht, am as bt, al as vt, z as sr, o as ar, H as St } from "../chunks/matrix-operation-contract-Dp7kFpVk.js";
|
|
7
|
+
import "zod";
|
|
8
|
+
import { m as lr } from "../chunks/matrix-formatter-1Mm8x8w7.js";
|
|
9
|
+
import { a as wt, M as It, S as xt, E as qt, C as At, r as dr } from "../chunks/selection-reducer-IZjBSU6Z.js";
|
|
10
|
+
import { X as Tt, C as kt, j as Ct } from "../chunks/x-CXDkqdur.js";
|
|
11
11
|
function he(e, r, t) {
|
|
12
12
|
return {
|
|
13
13
|
...t,
|
|
@@ -1793,13 +1793,13 @@ function tn({
|
|
|
1793
1793
|
"aria-label": "Close Semaphor Inspector",
|
|
1794
1794
|
style: a.iconButton,
|
|
1795
1795
|
onClick: s.closeDevtools,
|
|
1796
|
-
children: /* @__PURE__ */ l(
|
|
1796
|
+
children: /* @__PURE__ */ l(Tt, { size: 15 })
|
|
1797
1797
|
}
|
|
1798
1798
|
)
|
|
1799
1799
|
] })
|
|
1800
1800
|
] }),
|
|
1801
1801
|
/* @__PURE__ */ p("label", { style: a.searchBox, children: [
|
|
1802
|
-
/* @__PURE__ */ l(
|
|
1802
|
+
/* @__PURE__ */ l(xt, { size: 14 }),
|
|
1803
1803
|
/* @__PURE__ */ l(
|
|
1804
1804
|
"input",
|
|
1805
1805
|
{
|
|
@@ -1949,7 +1949,7 @@ function vo({
|
|
|
1949
1949
|
viewId: u.viewId
|
|
1950
1950
|
}),
|
|
1951
1951
|
children: [
|
|
1952
|
-
/* @__PURE__ */ l(
|
|
1952
|
+
/* @__PURE__ */ l(qt, { size: 13 }),
|
|
1953
1953
|
/* @__PURE__ */ l("span", { style: a.inspectButtonText, children: ((h = u.latestAttempt) == null ? void 0 : h.status) || "idle" })
|
|
1954
1954
|
]
|
|
1955
1955
|
}
|
|
@@ -2341,7 +2341,7 @@ function dn({
|
|
|
2341
2341
|
onClick: () => n((u) => !u),
|
|
2342
2342
|
children: [
|
|
2343
2343
|
/* @__PURE__ */ p("span", { style: a.issueSummaryHeaderLabel, children: [
|
|
2344
|
-
t ? /* @__PURE__ */ l(
|
|
2344
|
+
t ? /* @__PURE__ */ l(kt, { size: 13 }) : /* @__PURE__ */ l(At, { size: 13 }),
|
|
2345
2345
|
/* @__PURE__ */ l("span", { children: "Issues" })
|
|
2346
2346
|
] }),
|
|
2347
2347
|
/* @__PURE__ */ l("span", { style: a.issueSummaryCount, children: e.length })
|
|
@@ -4105,7 +4105,7 @@ function Qi(e) {
|
|
|
4105
4105
|
if (!e.token)
|
|
4106
4106
|
return "";
|
|
4107
4107
|
try {
|
|
4108
|
-
return
|
|
4108
|
+
return Ct(e.token).apiServiceUrl || "";
|
|
4109
4109
|
} catch {
|
|
4110
4110
|
return "";
|
|
4111
4111
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { n as y } from "../chunks/operators-B3zZoskU.js";
|
|
2
|
-
import { m as v, s as m, p as I, a as S } from "../chunks/validators-
|
|
3
|
-
import {
|
|
2
|
+
import { m as v, s as m, p as I, a as S } from "../chunks/validators-CQcG0EPN.js";
|
|
3
|
+
import { a as F, c as b } from "../chunks/matrix-operation-contract-Dp7kFpVk.js";
|
|
4
|
+
import "zod";
|
|
4
5
|
function w(i) {
|
|
5
6
|
var n, r, o;
|
|
6
7
|
const t = R(i);
|
|
@@ -27,14 +28,14 @@ function w(i) {
|
|
|
27
28
|
...(o = i.derivedFields) != null && o.length ? { derivedFields: i.derivedFields } : {}
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
+
function G(i) {
|
|
31
32
|
return {
|
|
32
33
|
...w(i),
|
|
33
34
|
...i.timeWindow ? { timeWindow: i.timeWindow } : {},
|
|
34
35
|
...i.analysis ? { analysis: i.analysis } : {}
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
+
function j(i) {
|
|
38
39
|
return {
|
|
39
40
|
...i.chartTitle ? { chartTitle: i.chartTitle } : {},
|
|
40
41
|
...i.chartType ? { chartType: i.chartType } : {},
|
|
@@ -98,7 +99,7 @@ function f(i, t) {
|
|
|
98
99
|
aggregate: i.aggregate || t.aggregate
|
|
99
100
|
};
|
|
100
101
|
}
|
|
101
|
-
function
|
|
102
|
+
function K(i) {
|
|
102
103
|
var n, r;
|
|
103
104
|
if ("sort" in i)
|
|
104
105
|
throw new Error(
|
|
@@ -147,7 +148,7 @@ function O(i) {
|
|
|
147
148
|
return n;
|
|
148
149
|
});
|
|
149
150
|
}
|
|
150
|
-
function
|
|
151
|
+
function V(i) {
|
|
151
152
|
var n, r, o;
|
|
152
153
|
const t = s(i);
|
|
153
154
|
if (t.kind === "sql")
|
|
@@ -177,7 +178,7 @@ function K(i) {
|
|
|
177
178
|
...(o = i.derivedFields) != null && o.length ? { derivedFields: i.derivedFields } : {}
|
|
178
179
|
};
|
|
179
180
|
}
|
|
180
|
-
function
|
|
181
|
+
function Q(i) {
|
|
181
182
|
var t;
|
|
182
183
|
return {
|
|
183
184
|
version: 1,
|
|
@@ -195,7 +196,7 @@ function V(i) {
|
|
|
195
196
|
rationale: i.rationale
|
|
196
197
|
};
|
|
197
198
|
}
|
|
198
|
-
function
|
|
199
|
+
function D(i) {
|
|
199
200
|
const { id: t, label: n, inputs: r, matrixWindowRequest: o, ...e } = i, { queryKind: T, ...p } = e;
|
|
200
201
|
return v.parse({ ...p, kind: "matrix" });
|
|
201
202
|
}
|
|
@@ -235,17 +236,17 @@ function h(i) {
|
|
|
235
236
|
function z(i) {
|
|
236
237
|
return i === "grain" || i === "measure" || i === "dimension" || i === "aggregation" || i === "sqlParam";
|
|
237
238
|
}
|
|
238
|
-
function
|
|
239
|
+
function J(i) {
|
|
239
240
|
const t = d(i);
|
|
240
241
|
return t.length > 0 ? t : void 0;
|
|
241
242
|
}
|
|
242
243
|
function C(i) {
|
|
243
244
|
return (i || []).map(P);
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
+
function L(i) {
|
|
246
247
|
return C(i).filter((t) => t.isActive);
|
|
247
248
|
}
|
|
248
|
-
function
|
|
249
|
+
function N(i) {
|
|
249
250
|
const t = (i || []).flatMap((n) => {
|
|
250
251
|
const r = "toAnalyticsSelection" in n ? n.toAnalyticsSelection() : n;
|
|
251
252
|
return r ? [F.parse(r)] : [];
|
|
@@ -271,7 +272,7 @@ function g(i) {
|
|
|
271
272
|
controlRole: i.role
|
|
272
273
|
};
|
|
273
274
|
}
|
|
274
|
-
function
|
|
275
|
+
function U(i = []) {
|
|
275
276
|
return i.map(
|
|
276
277
|
(t) => typeof t == "object" ? t : {
|
|
277
278
|
label: String(t),
|
|
@@ -342,18 +343,18 @@ function c(i, t) {
|
|
|
342
343
|
}
|
|
343
344
|
export {
|
|
344
345
|
u as hasSemaphorInputValue,
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
346
|
+
U as normalizeSemaphorInputOptions,
|
|
347
|
+
L as toSemaphorActiveInputSnapshots,
|
|
348
|
+
G as toSemaphorAnalysisIntent,
|
|
349
|
+
j as toSemaphorAnalysisQueryOptions,
|
|
349
350
|
h as toSemaphorInputBinding,
|
|
350
|
-
|
|
351
|
-
|
|
351
|
+
J as toSemaphorInputBindings,
|
|
352
|
+
V as toSemaphorInputOptionsIntent,
|
|
352
353
|
C as toSemaphorInputSnapshots,
|
|
353
354
|
g as toSemaphorInputSpec,
|
|
354
|
-
|
|
355
|
+
D as toSemaphorMatrixIntent,
|
|
355
356
|
w as toSemaphorMetricIntent,
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
357
|
+
K as toSemaphorRecordsIntent,
|
|
358
|
+
N as toSemaphorSelectionSnapshots,
|
|
359
|
+
Q as toSemaphorSqlIntent
|
|
359
360
|
};
|