react-semaphor 0.1.544 → 0.1.546
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 +405 -441
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +100 -76
- package/dist/brand-studio/index.js +5 -5
- package/dist/briefings/index.js +55 -52
- package/dist/chunks/{class-utils-Df1OVOT1.js → _commonjsHelpers-DimLPMtv.js} +124 -98
- package/dist/chunks/{add-to-dashboard-BuAqfA2Y.js → add-to-dashboard-BQRAAnc3.js} +55 -33
- package/dist/chunks/{analytics-base-schemas-BFAoRlkU.js → analytics-base-schemas-BKs3flFS.js} +2 -2
- package/dist/chunks/{assistant-chat-BNLkCDml.js → assistant-chat-BPXhulAx.js} +2792 -2562
- package/dist/chunks/{bookmark-state-CXw7lZ50.js → bookmark-state-C4vetoa0.js} +7 -8
- package/dist/chunks/column-catalog-BYnochWQ.js +3363 -0
- package/dist/chunks/comparison-window-caption-C2xF-eWw.js +1433 -0
- package/dist/chunks/{context-ClREvqCZ.js → context-BerEBuFR.js} +11 -6
- package/dist/chunks/custom-visual-inputs-CkJW9pBS.js +295 -0
- package/dist/chunks/{dashboard-g5a4DKWq.js → dashboard-C3CoKbGY.js} +1 -1
- package/dist/chunks/dashboard-briefing-launcher-Be4h-7My.js +3734 -0
- package/dist/chunks/dashboard-controls-bxPrlSyp.js +2307 -0
- package/dist/chunks/{dashboard-json-7qT9jmfL.js → dashboard-json-BrjxIiRt.js} +6 -6
- package/dist/chunks/document-dashboard-inputs-CRVHpIHp.js +3010 -0
- package/dist/chunks/{edit-dashboard-visual-BfJwnRIZ.js → edit-dashboard-visual-DYYYDjY6.js} +5986 -6063
- package/dist/chunks/{filter-value-text-CYsVYPuD.js → filter-value-text-Ddf55Ku1.js} +8 -8
- package/dist/chunks/global-date-filter-utils-9d6m9-FE.js +11859 -0
- package/dist/chunks/index-CtoK1Lgu.js +586 -0
- package/dist/chunks/{index-DkAyQvC6.js → index-DkQkMKa1.js} +385 -339
- package/dist/chunks/list-filter-DsaTbM3J.js +15 -0
- package/dist/chunks/matrix-analytical-definition-B9vW-osb.js +717 -0
- package/dist/chunks/{matrix-card-DjwWcCo8.js → matrix-card-LiMEipvq.js} +3 -3
- package/dist/chunks/{matrix-formatter-CxJLkztA.js → matrix-formatter-DWEeC0_c.js} +55 -55
- package/dist/chunks/{matrix-member-presentation-CQGdVks6.js → matrix-member-presentation-DqzG-UhQ.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-8OIO4gob.js → matrix-operation-contract-D6vYkZK4.js} +72 -72
- package/dist/chunks/{metric-comparison-DEwi9uc2.js → metric-comparison-zpGw4lD6.js} +2 -2
- package/dist/chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js +119 -0
- package/dist/chunks/{pivot-header-presentation-DHcx1XGQ.js → pivot-header-presentation-CQnIDtUv.js} +1 -1
- package/dist/chunks/{pivot-result-identity-DJhXXcns.js → pivot-result-identity-C-Q1j1Wb.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-DM4CyGKs.js → pivot-result-lifecycle-pwq3b7LC.js} +571 -380
- package/dist/chunks/{raw-temporal-contract-C51YG48G.js → raw-temporal-contract-WuXA8jBP.js} +1 -1
- package/dist/chunks/{raw-temporal-presentation-CLiVi90c.js → raw-temporal-presentation-CBzrDOjM.js} +8 -8
- package/dist/chunks/rendered-file-D8xEuVVx.js +108 -0
- package/dist/chunks/{report-preferences-dialog-Df7VpRVW.js → report-preferences-dialog-4QEZWe5U.js} +637 -610
- package/dist/chunks/{report-runtime-context-Dq8XyODK.js → report-runtime-context-hWiTCzFV.js} +2 -2
- package/dist/chunks/resolve-dashboard-input-context-UpK_LBpL.js +5677 -0
- package/dist/chunks/{saved-dashboard-context-B-mQ--nV.js → saved-dashboard-context-D_I3Lxk0.js} +184 -212
- package/dist/chunks/selection-filter-compiler-BKXmyLrS.js +79 -0
- package/dist/chunks/{selection-reducer-Dj_8xD69.js → selection-reducer-CJzkTZio.js} +15 -15
- package/dist/chunks/{semaphor-ready-indicator-DDAxk8us.js → semaphor-ready-indicator-4zpRHE-X.js} +56832 -59068
- package/dist/chunks/{shelf-drop-preview-context-BSRPwaED.js → shelf-drop-preview-context-Cfw7TRAx.js} +890 -871
- package/dist/chunks/{source-entity-resolution-BYn9giz3.js → source-entity-resolution-BIGRvtbG.js} +13 -13
- package/dist/chunks/{switch-C3jLxlG0.js → switch-CEBOR4n7.js} +47 -48
- package/dist/chunks/{table-export-sheet-CPfGAQ9X.js → table-export-sheet-4X9mAG3V.js} +1 -1
- package/dist/chunks/table-settings-CunhoDUi.js +605 -0
- package/dist/chunks/{temporal-bucket-D7NBrrtL.js → temporal-bucket-CQOSbv9-.js} +26 -26
- package/dist/chunks/{token-types-DBbZVQsm.js → token-types-BMqRmT-C.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BxzFviM-.js → use-create-flow-overlay-state-DZBZiiD-.js} +83 -83
- package/dist/chunks/{validators-DMHTpf7a.js → validators-C-aOQlTB.js} +713 -658
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1800 -1135
- package/dist/data-app-sdk/index.js +6 -6
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +14 -14
- package/dist/format-utils/index.js +198 -187
- package/dist/index.js +359 -325
- package/dist/layouts/index.js +5 -242
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/shared/index.js +4 -5
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
- package/dist/types/briefings/attachments.d.ts +33 -6
- package/dist/types/briefings/index.d.ts +6 -5
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/surfboard/arrange-layout-button.d.ts +8 -0
- package/dist/types/components/surfboard/filter/types.d.ts +0 -14
- package/dist/types/components/surfboard/screen-size-preview-button.d.ts +7 -0
- package/dist/types/index.js +6 -6
- package/dist/types/lib/charts/table-chart-types.d.ts +4 -0
- package/dist/types/lib/charts/types.d.ts +2 -2
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +68 -82
- package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +0 -8
- package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +41 -1
- package/dist/types/lib/dashboard-inputs/filter-settings.d.ts +201 -0
- package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +15 -0
- package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +7 -2
- package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +1 -1
- package/dist/types/lib/dashboard-viewer/captured-runtime-values.d.ts +40 -0
- package/dist/types/lib/dashboard-viewer/compatibility-input-storage.d.ts +16 -16
- package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +11 -9
- package/dist/types/lib/download-pdf.d.ts +75 -1
- package/dist/types/lib/hooks/use-date-filter.d.ts +5 -0
- package/dist/types/lib/hooks/use-text-filter.d.ts +5 -0
- package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +5 -4
- package/dist/types/lib/matrix-table/matrix-editor.d.ts +52 -0
- package/dist/types/lib/query-context/assemble-card-query.d.ts +158 -0
- package/dist/types/lib/query-context/build-card-query-context.d.ts +3 -3
- package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +15 -6
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +11 -13
- package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +22 -12
- package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +69 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +159 -56
- package/dist/types/lib/stores/editor-store.d.ts +0 -3
- package/dist/types/lib/types/common-types.d.ts +29 -6
- package/dist/types/lib/types/explorer-types.d.ts +10 -0
- package/dist/types/lib/types/semantic-types.d.ts +84 -0
- package/dist/types/lib/utils/build-saved-editor-card.d.ts +20 -0
- package/dist/types/lib/utils/card-type-change.d.ts +16 -0
- package/dist/types/lib/utils/field-availability-context.d.ts +25 -0
- package/dist/types/lib/utils/field-placement.d.ts +96 -0
- package/dist/types/lib/utils/field-state-calculator.d.ts +161 -0
- package/dist/types/lib/utils/qualified-entity-name.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/field-provenance.d.ts +89 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/query-policies.d.ts +52 -0
- package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/time-window.d.ts +40 -1
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +8 -12
- package/dist/types/shared/assistant-protocol/answer-text.d.ts +20 -0
- package/dist/types/shared/assistant-protocol/context.d.ts +21 -21
- package/dist/types/shared/assistant-protocol/index.d.ts +1 -0
- package/dist/types/shared/assistant-protocol/limits.d.ts +6 -1
- package/dist/types/shared/assistant-protocol/parts.d.ts +43 -3
- package/dist/types/shared/assistant-protocol/request.d.ts +14 -2
- package/dist/types/shared/dashboard-authoring/calculated-field-identity.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +487 -0
- package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +34 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +7886 -0
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +43 -0
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +54 -0
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +89 -0
- package/dist/types/shared/dashboard-authoring/column-catalog.d.ts +32 -0
- package/dist/types/shared/dashboard-authoring/contracts.d.ts +0 -55
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +16 -6
- package/dist/types/shared/dashboard-authoring/dashboard-card-source-index.d.ts +9 -1
- package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-contract.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/dashboard-input-scope.d.ts +118 -0
- package/dist/types/shared/dashboard-authoring/filter-applicability.d.ts +75 -0
- package/dist/types/shared/dashboard-authoring/filter-model/ad-hoc-filter-values.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +29 -0
- package/dist/types/shared/dashboard-authoring/filter-model/filter-values.d.ts +58 -0
- package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/filter-model/prototype-document-inputs.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/filter-model/read-dashboard-filter-model.d.ts +78 -0
- package/dist/types/shared/dashboard-authoring/filter-model/stored-dashboard.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/filter-model/toolbar-filter-reach.d.ts +23 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +20 -2
- package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +10 -37
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +189 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +94 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +78 -0
- package/dist/types/shared/dashboard-authoring/validators.d.ts +1 -2
- package/dist/types/shared/format-utils/exporters/index.d.ts +2 -0
- package/dist/types/shared/format-utils/exporters/rendered-file.d.ts +106 -0
- package/dist/types/shared/layouts/engine/grid.d.ts +25 -0
- package/dist/types/shared/layouts/engine/index.d.ts +4 -0
- package/dist/types/shared/layouts/engine/sheet-layout.d.ts +7 -0
- package/dist/types/shared/layouts/engine/types.d.ts +125 -0
- package/dist/types/shared/layouts/index.d.ts +1 -2
- package/package.json +2 -2
- package/dist/chunks/_commonjsHelpers-BkfeUUK-.js +0 -28
- package/dist/chunks/apply-dashboard-operations-Bz4n1Lq6.js +0 -2260
- package/dist/chunks/calendar-day-equality-BmJAWduY.js +0 -460
- package/dist/chunks/comparison-window-caption-BTkrN3W4.js +0 -1623
- package/dist/chunks/custom-visual-inputs-DUtpYZOk.js +0 -323
- package/dist/chunks/dashboard-briefing-launcher-DQ_8O_e2.js +0 -3725
- package/dist/chunks/dashboard-controls-8RyBTQUO.js +0 -2315
- package/dist/chunks/dashboard-filter-value-compatibility-CwQ_iSNb.js +0 -108
- package/dist/chunks/document-dashboard-inputs-BC6p-ESg.js +0 -8087
- package/dist/chunks/document-sheet-utils-Duo9uLoH.js +0 -3619
- package/dist/chunks/matrix-analytical-definition-C7Gb0e12.js +0 -117
- package/dist/chunks/normalize-dashboard-for-dirty-check-Bk3VYv_q.js +0 -67
- package/dist/chunks/numeric-presentation-DESvLiu9.js +0 -5227
- package/dist/chunks/sort-target-MT1WK1vX.js +0 -29
- package/dist/chunks/stable-serialize-CfqXeiBP.js +0 -6
- package/dist/chunks/table-settings-CLZocegs.js +0 -501
- package/dist/chunks/use-debounced-dirty-check-BwAbnX_5.js +0 -59
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +0 -88
- package/dist/types/lib/dashboard-inputs/dashboard-input-scope.d.ts +0 -10
- package/dist/types/shared/dashboard-authoring/change-compiler.d.ts +0 -7
- package/dist/types/shared/dashboard-authoring/layout-compiler.d.ts +0 -2
- package/dist/types/shared/layouts/create-frame-layouts.d.ts +0 -27
- package/dist/types/shared/layouts/frame-layouts.d.ts +0 -23
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { c as fe, C as Se } from "./x-4f5U2XwU.js";
|
|
2
|
-
import { useEffect as K, forwardRef as nt, useMemo as H, useState as
|
|
3
|
-
import {
|
|
2
|
+
import { useEffect as K, forwardRef as nt, useMemo as H, useState as M, useRef as ne, useCallback as A, Fragment as st } from "react";
|
|
3
|
+
import { a3 as qe, a4 as ot, aK as dt, u as it, i as ct, aL as ut, aM as mt, aN as De, aO as pt, aP as ft, aQ as ze, aR as Me, aS as ht, aT as gt, aU as bt, aV as xt, aW as vt, aX as yt, aY as Ct } from "./semaphor-ready-indicator-4zpRHE-X.js";
|
|
4
4
|
import { jsx as t, jsxs as o, Fragment as X } from "react/jsx-runtime";
|
|
5
5
|
import "./index-CuHybtft.js";
|
|
6
|
-
import "./validators-
|
|
7
|
-
import "./matrix-operation-contract-
|
|
8
|
-
import "./analytics-base-schemas-
|
|
6
|
+
import "./validators-C-aOQlTB.js";
|
|
7
|
+
import "./matrix-operation-contract-D6vYkZK4.js";
|
|
8
|
+
import "./analytics-base-schemas-BKs3flFS.js";
|
|
9
9
|
import "zod";
|
|
10
10
|
import "../value-format-preferences/index.js";
|
|
11
|
-
import { c as R } from "./
|
|
12
|
-
import { m as Re, n as je, o as Be, p as $e, x as
|
|
13
|
-
import {
|
|
14
|
-
import { C as Ie } from "./selection-reducer-
|
|
11
|
+
import { c as R } from "./_commonjsHelpers-DimLPMtv.js";
|
|
12
|
+
import { m as Re, n as je, o as Be, p as $e, x as Ue, B as E, l as z, q as Qe, r as se, s as oe, t as de, u as ie, v as ce } from "./switch-CEBOR4n7.js";
|
|
13
|
+
import { c as kt, e as Nt, f as G, h as we, j as Te, k as ue, l as me, m as St, o as Dt, p as _e, q as wt, t as Tt, u as J, w as _t, x as Ve, y as Ye, z as He, A as Xe, B as Ge, C as Vt, I as Lt, D as Le, E as Et, F as Ee, G as It, H as At, J as Ft, K as Ot, L as pe } from "./global-date-filter-utils-9d6m9-FE.js";
|
|
14
|
+
import { C as Ie } from "./selection-reducer-CJzkTZio.js";
|
|
15
15
|
/**
|
|
16
16
|
* @license lucide-react v0.453.0 - ISC
|
|
17
17
|
*
|
|
@@ -41,7 +41,7 @@ const qt = fe("Library", [
|
|
|
41
41
|
* This source code is licensed under the ISC license.
|
|
42
42
|
* See the LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
const
|
|
44
|
+
const zt = fe("Link2", [
|
|
45
45
|
["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }],
|
|
46
46
|
["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
|
|
47
47
|
["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }]
|
|
@@ -111,7 +111,7 @@ function na({
|
|
|
111
111
|
library: "fill-blue-50 dark:fill-blue-950"
|
|
112
112
|
}, T = {
|
|
113
113
|
local: /* @__PURE__ */ t("span", { className: "h-2 w-2 rounded-full bg-current/70" }),
|
|
114
|
-
linked: /* @__PURE__ */ t(
|
|
114
|
+
linked: /* @__PURE__ */ t(zt, { className: "h-3.5 w-3.5" }),
|
|
115
115
|
library: /* @__PURE__ */ t(qt, { className: "h-3.5 w-3.5" })
|
|
116
116
|
}, _ = {
|
|
117
117
|
local: "Local",
|
|
@@ -140,14 +140,14 @@ function na({
|
|
|
140
140
|
side: "bottom",
|
|
141
141
|
className: R("max-w-xs", f[p]),
|
|
142
142
|
children: [
|
|
143
|
-
/* @__PURE__ */ t(
|
|
143
|
+
/* @__PURE__ */ t(Ue, { className: S[p] }),
|
|
144
144
|
/* @__PURE__ */ t("p", { children: x[p] })
|
|
145
145
|
]
|
|
146
146
|
}
|
|
147
147
|
)
|
|
148
148
|
] }) });
|
|
149
149
|
}
|
|
150
|
-
const
|
|
150
|
+
const Mt = nt(
|
|
151
151
|
({
|
|
152
152
|
side: s = "bottom",
|
|
153
153
|
children: n,
|
|
@@ -183,19 +183,19 @@ const zt = nt(
|
|
|
183
183
|
),
|
|
184
184
|
children: [
|
|
185
185
|
i,
|
|
186
|
-
/* @__PURE__ */ t(
|
|
186
|
+
/* @__PURE__ */ t(Ue, { className: "fill-foreground" })
|
|
187
187
|
]
|
|
188
188
|
}
|
|
189
189
|
)
|
|
190
190
|
] }) })
|
|
191
191
|
);
|
|
192
|
-
|
|
192
|
+
Mt.displayName = "IconButton";
|
|
193
193
|
function Je(s) {
|
|
194
194
|
const { control: n, onChange: u } = s;
|
|
195
195
|
return /* @__PURE__ */ o("div", { className: "flex flex-col gap-1.5", children: [
|
|
196
|
-
/* @__PURE__ */ t(
|
|
196
|
+
/* @__PURE__ */ t(z, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Label" }),
|
|
197
197
|
/* @__PURE__ */ t(
|
|
198
|
-
|
|
198
|
+
Qe,
|
|
199
199
|
{
|
|
200
200
|
size: "xs",
|
|
201
201
|
value: n.label,
|
|
@@ -242,7 +242,7 @@ function Rt(s) {
|
|
|
242
242
|
] }, i);
|
|
243
243
|
}) }) });
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function W(s) {
|
|
246
246
|
const { secondary: n, tertiary: u, primary: i } = s;
|
|
247
247
|
return /* @__PURE__ */ o("div", { className: "sticky bottom-0 z-10 -mx-1 flex justify-end gap-2 border-t bg-background/95 px-1 pb-1 pt-3 backdrop-blur supports-[backdrop-filter]:bg-background/85", children: [
|
|
248
248
|
n,
|
|
@@ -269,7 +269,7 @@ function jt(s) {
|
|
|
269
269
|
] })
|
|
270
270
|
] });
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Ae(s) {
|
|
273
273
|
const {
|
|
274
274
|
control: n,
|
|
275
275
|
defaultValue: u,
|
|
@@ -287,7 +287,7 @@ function Fe(s) {
|
|
|
287
287
|
return /* @__PURE__ */ o("div", { className: "space-y-3", children: [
|
|
288
288
|
/* @__PURE__ */ t(Je, { control: n, onChange: p }),
|
|
289
289
|
/* @__PURE__ */ t(
|
|
290
|
-
|
|
290
|
+
ze,
|
|
291
291
|
{
|
|
292
292
|
control: n,
|
|
293
293
|
availableFieldChoices: i,
|
|
@@ -299,7 +299,7 @@ function Fe(s) {
|
|
|
299
299
|
}
|
|
300
300
|
),
|
|
301
301
|
/* @__PURE__ */ t(
|
|
302
|
-
|
|
302
|
+
Me,
|
|
303
303
|
{
|
|
304
304
|
control: n,
|
|
305
305
|
value: u,
|
|
@@ -312,7 +312,7 @@ function Fe(s) {
|
|
|
312
312
|
}
|
|
313
313
|
),
|
|
314
314
|
/* @__PURE__ */ t(
|
|
315
|
-
|
|
315
|
+
W,
|
|
316
316
|
{
|
|
317
317
|
secondary: /* @__PURE__ */ t(E, { type: "button", variant: "outline", size: "xs", onClick: x, children: "Back" }),
|
|
318
318
|
primary: /* @__PURE__ */ t(
|
|
@@ -335,8 +335,8 @@ const Bt = /* @__PURE__ */ new Set([
|
|
|
335
335
|
"field_selector",
|
|
336
336
|
"metric_selector"
|
|
337
337
|
]);
|
|
338
|
-
function
|
|
339
|
-
const { text: n, ariaLabel: u } = s, [i, k] =
|
|
338
|
+
function Fe(s) {
|
|
339
|
+
const { text: n, ariaLabel: u } = s, [i, k] = M(!1);
|
|
340
340
|
return /* @__PURE__ */ o(
|
|
341
341
|
"button",
|
|
342
342
|
{
|
|
@@ -357,7 +357,7 @@ function Oe(s) {
|
|
|
357
357
|
}
|
|
358
358
|
);
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Oe(s) {
|
|
361
361
|
const {
|
|
362
362
|
control: n,
|
|
363
363
|
scope: u,
|
|
@@ -388,14 +388,14 @@ function Ae(s) {
|
|
|
388
388
|
/* @__PURE__ */ o("div", { className: "space-y-1.5 px-3 py-2.5", children: [
|
|
389
389
|
/* @__PURE__ */ t("p", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "SQL cards" }),
|
|
390
390
|
/* @__PURE__ */ t(
|
|
391
|
-
|
|
391
|
+
Fe,
|
|
392
392
|
{
|
|
393
393
|
text: i,
|
|
394
394
|
ariaLabel: "Copy SQL control reference"
|
|
395
395
|
}
|
|
396
396
|
),
|
|
397
397
|
S ? /* @__PURE__ */ t(
|
|
398
|
-
|
|
398
|
+
Fe,
|
|
399
399
|
{
|
|
400
400
|
text: S,
|
|
401
401
|
ariaLabel: "Copy Jinja control reference"
|
|
@@ -420,7 +420,7 @@ function Ae(s) {
|
|
|
420
420
|
] })
|
|
421
421
|
] }),
|
|
422
422
|
/* @__PURE__ */ t(
|
|
423
|
-
|
|
423
|
+
W,
|
|
424
424
|
{
|
|
425
425
|
secondary: /* @__PURE__ */ t(E, { type: "button", variant: "outline", size: "xs", onClick: v, children: "Back" }),
|
|
426
426
|
tertiary: /* @__PURE__ */ t(E, { type: "button", variant: "outline", size: "xs", onClick: p, children: "Cancel" }),
|
|
@@ -474,25 +474,25 @@ function sa({
|
|
|
474
474
|
onCreateFlowActiveChange: _,
|
|
475
475
|
onCreateFlowComplete: I
|
|
476
476
|
}) {
|
|
477
|
-
const
|
|
477
|
+
const F = H(
|
|
478
478
|
() => new Set(u || []),
|
|
479
479
|
[u]
|
|
480
|
-
), Ke = Vt(s),
|
|
480
|
+
), Ke = Vt(s), We = Nt(s), [he, Z] = M(
|
|
481
481
|
null
|
|
482
|
-
), [
|
|
482
|
+
), [Ze, U] = M(
|
|
483
483
|
null
|
|
484
|
-
), [a, D] =
|
|
484
|
+
), [a, D] = M(
|
|
485
485
|
() => g ? {
|
|
486
486
|
step: 1,
|
|
487
|
-
control: G(s, n, Array.from(
|
|
487
|
+
control: G(s, n, Array.from(F))
|
|
488
488
|
} : null
|
|
489
|
-
),
|
|
489
|
+
), Q = ne({}), j = ne(void 0), ge = ne(g), be = H(() => {
|
|
490
490
|
const e = we({ scope: s, card: S });
|
|
491
491
|
if (!T)
|
|
492
492
|
return e;
|
|
493
493
|
const l = new Set(T);
|
|
494
494
|
return e.filter((r) => l.has(r.value));
|
|
495
|
-
}, [T, S, s]), Pe =
|
|
495
|
+
}, [T, S, s]), Pe = A(
|
|
496
496
|
(e) => {
|
|
497
497
|
const l = we({
|
|
498
498
|
scope: s,
|
|
@@ -505,7 +505,7 @@ function sa({
|
|
|
505
505
|
return l.filter((d) => r.has(d.value));
|
|
506
506
|
},
|
|
507
507
|
[T, S, s]
|
|
508
|
-
), L =
|
|
508
|
+
), L = A(
|
|
509
509
|
(e) => s === "dashboard" && (e === "field_selector" || e === "metric_selector"),
|
|
510
510
|
[s]
|
|
511
511
|
), P = H(
|
|
@@ -553,9 +553,9 @@ function sa({
|
|
|
553
553
|
const e = g && !ge.current;
|
|
554
554
|
ge.current = g, e && (D({
|
|
555
555
|
step: 1,
|
|
556
|
-
control: G(s, n, Array.from(
|
|
557
|
-
}),
|
|
558
|
-
}, [n, g,
|
|
556
|
+
control: G(s, n, Array.from(F))
|
|
557
|
+
}), U(null), Z(null));
|
|
558
|
+
}, [n, g, F, s]);
|
|
559
559
|
const et = (e) => {
|
|
560
560
|
if (!L(e.type))
|
|
561
561
|
return {
|
|
@@ -593,7 +593,7 @@ function sa({
|
|
|
593
593
|
controlType: e.control.type,
|
|
594
594
|
participants: x || [],
|
|
595
595
|
selectedCardIds: e.nextSelectedCardIds
|
|
596
|
-
}), d =
|
|
596
|
+
}), d = Ft({
|
|
597
597
|
control: e.control,
|
|
598
598
|
choices: r.choices
|
|
599
599
|
}), m = Object.fromEntries(
|
|
@@ -611,7 +611,7 @@ function sa({
|
|
|
611
611
|
nextControl: d,
|
|
612
612
|
cardBindingsById: m
|
|
613
613
|
};
|
|
614
|
-
}, V =
|
|
614
|
+
}, V = A(
|
|
615
615
|
(e, l = i, r = { type: "update" }) => {
|
|
616
616
|
const d = e.map((m) => (me({
|
|
617
617
|
control: m,
|
|
@@ -637,9 +637,9 @@ function sa({
|
|
|
637
637
|
nextSelectedCardIds: C
|
|
638
638
|
});
|
|
639
639
|
d = d.map(
|
|
640
|
-
(
|
|
640
|
+
(O) => O.id === e ? q.nextControl : O
|
|
641
641
|
), h = q.cardBindingsById, c = [m.id];
|
|
642
|
-
} else if (r && (!m || !
|
|
642
|
+
} else if (r && (!m || !At(m.type)) && s === "dashboard" && (r.type === "field_selector" || r.type === "metric_selector")) {
|
|
643
643
|
const C = (f == null ? void 0 : f[r.id]) || [];
|
|
644
644
|
h = Object.fromEntries(
|
|
645
645
|
C.map((q) => [q, void 0])
|
|
@@ -654,14 +654,14 @@ function sa({
|
|
|
654
654
|
control: r,
|
|
655
655
|
defaultValues: i
|
|
656
656
|
});
|
|
657
|
-
r.source.kind === "manual" && y.source.kind === "sql_query" && (
|
|
658
|
-
const q = C === void 0 && r.source.kind === "sql_query" && y.source.kind === "manual" ?
|
|
657
|
+
r.source.kind === "manual" && y.source.kind === "sql_query" && (Q.current[e] = C);
|
|
658
|
+
const q = C === void 0 && r.source.kind === "sql_query" && y.source.kind === "manual" ? Q.current[e] : C, O = Le({
|
|
659
659
|
previousControl: r,
|
|
660
660
|
nextControl: y,
|
|
661
661
|
currentDefaultValue: q
|
|
662
662
|
});
|
|
663
|
-
y.source.kind === "manual" && (
|
|
664
|
-
(Ne) => Ne.id === e ? { ...y, defaultValue:
|
|
663
|
+
y.source.kind === "manual" && (Q.current[e] = O), i && (w = { ...i }, O === void 0 ? delete w[e] : w[e] = O), d = d.map(
|
|
664
|
+
(Ne) => Ne.id === e ? { ...y, defaultValue: O } : Ne
|
|
665
665
|
);
|
|
666
666
|
}
|
|
667
667
|
V(d, w, {
|
|
@@ -672,8 +672,8 @@ function sa({
|
|
|
672
672
|
}, tt = (e, l) => {
|
|
673
673
|
if (!l.trim())
|
|
674
674
|
return;
|
|
675
|
-
const r =
|
|
676
|
-
if (r === e ||
|
|
675
|
+
const r = Ot(l);
|
|
676
|
+
if (r === e || F.has(r) || n.some(
|
|
677
677
|
(h) => h.id === r && h.id !== e
|
|
678
678
|
))
|
|
679
679
|
return;
|
|
@@ -702,12 +702,12 @@ function sa({
|
|
|
702
702
|
}
|
|
703
703
|
const r = { ...i };
|
|
704
704
|
delete r[e], V(l, r, { type: "remove", controlId: e });
|
|
705
|
-
}, rt =
|
|
705
|
+
}, rt = A(() => {
|
|
706
706
|
j.current = void 0, D({
|
|
707
707
|
step: 1,
|
|
708
|
-
control: G(s, n, Array.from(
|
|
709
|
-
}),
|
|
710
|
-
}, [n,
|
|
708
|
+
control: G(s, n, Array.from(F))
|
|
709
|
+
}), U(null), Z(null);
|
|
710
|
+
}, [n, F, s]), $ = (e) => {
|
|
711
711
|
D(
|
|
712
712
|
(l) => l && (() => {
|
|
713
713
|
const r = e(l.control);
|
|
@@ -763,7 +763,7 @@ function sa({
|
|
|
763
763
|
label: e.label,
|
|
764
764
|
fallbackId: e.id,
|
|
765
765
|
existingControls: n,
|
|
766
|
-
reservedIds: Array.from(
|
|
766
|
+
reservedIds: Array.from(F)
|
|
767
767
|
}), r = {
|
|
768
768
|
...e,
|
|
769
769
|
id: l
|
|
@@ -785,9 +785,9 @@ function sa({
|
|
|
785
785
|
matrixTargetIds: a.matrixTargetIds,
|
|
786
786
|
cardBindingsById: d
|
|
787
787
|
});
|
|
788
|
-
}, ae =
|
|
788
|
+
}, ae = A(() => {
|
|
789
789
|
D(null);
|
|
790
|
-
}, []), ye =
|
|
790
|
+
}, []), ye = A(() => {
|
|
791
791
|
if (!(a != null && a.createdControlId)) {
|
|
792
792
|
D(null);
|
|
793
793
|
return;
|
|
@@ -827,7 +827,7 @@ function sa({
|
|
|
827
827
|
cardBindingsById: a.cardBindingsById
|
|
828
828
|
}
|
|
829
829
|
);
|
|
830
|
-
|
|
830
|
+
U(l), D(null), I == null || I();
|
|
831
831
|
}, [n, a, i, V, I]), lt = a ? L(a.control.type) ? ["Choose type", "Select cards", "Configure", "Finish"] : ["Choose type", "Configure", "Finish"] : [], Ce = a != null && a.createdControlId ? `[[param.${a.createdControlId}]]` : a ? `[[param.${_t(a.control.label) || a.control.id}]]` : "", re = Ve({
|
|
832
832
|
controls: n,
|
|
833
833
|
defaultValues: i
|
|
@@ -874,7 +874,7 @@ function sa({
|
|
|
874
874
|
$t({
|
|
875
875
|
scope: s,
|
|
876
876
|
existingControls: n,
|
|
877
|
-
reservedIds: Array.from(
|
|
877
|
+
reservedIds: Array.from(F),
|
|
878
878
|
type: h.value
|
|
879
879
|
})
|
|
880
880
|
),
|
|
@@ -896,7 +896,7 @@ function sa({
|
|
|
896
896
|
/* @__PURE__ */ t("div", { className: "grid gap-1.5 sm:grid-cols-2", children: d.map(m) })
|
|
897
897
|
] }),
|
|
898
898
|
/* @__PURE__ */ t(
|
|
899
|
-
|
|
899
|
+
W,
|
|
900
900
|
{
|
|
901
901
|
secondary: /* @__PURE__ */ t(
|
|
902
902
|
E,
|
|
@@ -970,7 +970,7 @@ function sa({
|
|
|
970
970
|
}
|
|
971
971
|
),
|
|
972
972
|
/* @__PURE__ */ t(
|
|
973
|
-
|
|
973
|
+
W,
|
|
974
974
|
{
|
|
975
975
|
secondary: /* @__PURE__ */ t(
|
|
976
976
|
E,
|
|
@@ -1007,7 +1007,7 @@ function sa({
|
|
|
1007
1007
|
)
|
|
1008
1008
|
] }),
|
|
1009
1009
|
a.step === 2 && !L(a.control.type) && /* @__PURE__ */ t(
|
|
1010
|
-
|
|
1010
|
+
Ae,
|
|
1011
1011
|
{
|
|
1012
1012
|
control: a.control,
|
|
1013
1013
|
defaultValue: a.defaultValue,
|
|
@@ -1032,7 +1032,7 @@ function sa({
|
|
|
1032
1032
|
}
|
|
1033
1033
|
),
|
|
1034
1034
|
a.step === 3 && L(a.control.type) && /* @__PURE__ */ t(
|
|
1035
|
-
|
|
1035
|
+
Ae,
|
|
1036
1036
|
{
|
|
1037
1037
|
control: a.control,
|
|
1038
1038
|
defaultValue: a.defaultValue,
|
|
@@ -1057,7 +1057,7 @@ function sa({
|
|
|
1057
1057
|
}
|
|
1058
1058
|
),
|
|
1059
1059
|
a.step === 3 && !L(a.control.type) && /* @__PURE__ */ t(
|
|
1060
|
-
|
|
1060
|
+
Oe,
|
|
1061
1061
|
{
|
|
1062
1062
|
control: a.control,
|
|
1063
1063
|
scope: s,
|
|
@@ -1081,7 +1081,7 @@ function sa({
|
|
|
1081
1081
|
}
|
|
1082
1082
|
),
|
|
1083
1083
|
a.step === 4 && L(a.control.type) && /* @__PURE__ */ t(
|
|
1084
|
-
|
|
1084
|
+
Oe,
|
|
1085
1085
|
{
|
|
1086
1086
|
control: a.control,
|
|
1087
1087
|
scope: s,
|
|
@@ -1110,7 +1110,7 @@ function sa({
|
|
|
1110
1110
|
const l = et(e), r = v == null ? void 0 : v[e.id], d = me({
|
|
1111
1111
|
control: e,
|
|
1112
1112
|
defaultValues: i
|
|
1113
|
-
}), m =
|
|
1113
|
+
}), m = Ze === e.id, h = "inline-flex shrink-0 items-center rounded-[4px] border border-border/60 bg-muted/40 px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground";
|
|
1114
1114
|
return /* @__PURE__ */ o(
|
|
1115
1115
|
"div",
|
|
1116
1116
|
{
|
|
@@ -1122,7 +1122,7 @@ function sa({
|
|
|
1122
1122
|
{
|
|
1123
1123
|
type: "button",
|
|
1124
1124
|
className: "flex min-w-0 flex-1 items-start gap-2 rounded-control text-left focus:outline-none focus-visible:bg-muted/40",
|
|
1125
|
-
onClick: () =>
|
|
1125
|
+
onClick: () => U(
|
|
1126
1126
|
(c) => c === e.id ? null : e.id
|
|
1127
1127
|
),
|
|
1128
1128
|
children: [
|
|
@@ -1157,9 +1157,9 @@ function sa({
|
|
|
1157
1157
|
m && /* @__PURE__ */ o("div", { className: "space-y-4 border-t border-border/60 px-3 py-3", children: [
|
|
1158
1158
|
/* @__PURE__ */ o("div", { className: "grid gap-3 md:grid-cols-3", children: [
|
|
1159
1159
|
/* @__PURE__ */ o("div", { className: "flex flex-col gap-1.5", children: [
|
|
1160
|
-
/* @__PURE__ */ t(
|
|
1160
|
+
/* @__PURE__ */ t(z, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Label" }),
|
|
1161
1161
|
/* @__PURE__ */ t(
|
|
1162
|
-
|
|
1162
|
+
Qe,
|
|
1163
1163
|
{
|
|
1164
1164
|
size: "xs",
|
|
1165
1165
|
value: e.label,
|
|
@@ -1172,7 +1172,7 @@ function sa({
|
|
|
1172
1172
|
)
|
|
1173
1173
|
] }),
|
|
1174
1174
|
/* @__PURE__ */ o("div", { className: "flex flex-col gap-1.5", children: [
|
|
1175
|
-
/* @__PURE__ */ t(
|
|
1175
|
+
/* @__PURE__ */ t(z, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Type" }),
|
|
1176
1176
|
/* @__PURE__ */ o(
|
|
1177
1177
|
se,
|
|
1178
1178
|
{
|
|
@@ -1203,11 +1203,11 @@ function sa({
|
|
|
1203
1203
|
)
|
|
1204
1204
|
] }),
|
|
1205
1205
|
/* @__PURE__ */ o("div", { className: "flex flex-col gap-1.5", children: [
|
|
1206
|
-
/* @__PURE__ */ t(
|
|
1206
|
+
/* @__PURE__ */ t(z, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Show in" }),
|
|
1207
1207
|
/* @__PURE__ */ o(
|
|
1208
1208
|
se,
|
|
1209
1209
|
{
|
|
1210
|
-
value: e.placement ||
|
|
1210
|
+
value: e.placement || We,
|
|
1211
1211
|
onValueChange: (c) => B(e.id, (y) => ({
|
|
1212
1212
|
...y,
|
|
1213
1213
|
placement: c
|
|
@@ -1270,7 +1270,7 @@ function sa({
|
|
|
1270
1270
|
)
|
|
1271
1271
|
] }) : null,
|
|
1272
1272
|
/* @__PURE__ */ t(
|
|
1273
|
-
|
|
1273
|
+
ze,
|
|
1274
1274
|
{
|
|
1275
1275
|
control: e,
|
|
1276
1276
|
availableFieldChoices: l.fields,
|
|
@@ -1282,7 +1282,7 @@ function sa({
|
|
|
1282
1282
|
}
|
|
1283
1283
|
),
|
|
1284
1284
|
e.initialValueStrategy === "saved_default" && /* @__PURE__ */ t(
|
|
1285
|
-
|
|
1285
|
+
Me,
|
|
1286
1286
|
{
|
|
1287
1287
|
control: e,
|
|
1288
1288
|
value: d,
|
|
@@ -1294,7 +1294,7 @@ function sa({
|
|
|
1294
1294
|
const y = n.map(
|
|
1295
1295
|
(w) => w.id === e.id ? { ...w, defaultValue: c } : w
|
|
1296
1296
|
);
|
|
1297
|
-
if (e.source.kind === "manual" && (
|
|
1297
|
+
if (e.source.kind === "manual" && (Q.current[e.id] = c), i) {
|
|
1298
1298
|
const w = { ...i };
|
|
1299
1299
|
c === void 0 ? delete w[e.id] : w[e.id] = c, V(y, w);
|
|
1300
1300
|
return;
|
|
@@ -1307,7 +1307,7 @@ function sa({
|
|
|
1307
1307
|
ht,
|
|
1308
1308
|
{
|
|
1309
1309
|
open: he === e.id,
|
|
1310
|
-
onOpenChange: (c) =>
|
|
1310
|
+
onOpenChange: (c) => Z(c ? e.id : null),
|
|
1311
1311
|
children: [
|
|
1312
1312
|
/* @__PURE__ */ t(gt, { asChild: !0, children: /* @__PURE__ */ o(
|
|
1313
1313
|
E,
|
|
@@ -1325,7 +1325,7 @@ function sa({
|
|
|
1325
1325
|
/* @__PURE__ */ o(bt, { className: "space-y-3 pt-2", children: [
|
|
1326
1326
|
/* @__PURE__ */ o("div", { className: "grid gap-3 md:grid-cols-2", children: [
|
|
1327
1327
|
/* @__PURE__ */ o("div", { className: "flex flex-col gap-1.5", children: [
|
|
1328
|
-
/* @__PURE__ */ t(
|
|
1328
|
+
/* @__PURE__ */ t(z, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Variable name" }),
|
|
1329
1329
|
/* @__PURE__ */ t(
|
|
1330
1330
|
xt,
|
|
1331
1331
|
{
|
|
@@ -1336,7 +1336,7 @@ function sa({
|
|
|
1336
1336
|
)
|
|
1337
1337
|
] }),
|
|
1338
1338
|
/* @__PURE__ */ o("div", { className: "flex flex-col gap-1.5", children: [
|
|
1339
|
-
/* @__PURE__ */ t(
|
|
1339
|
+
/* @__PURE__ */ t(z, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Initial value" }),
|
|
1340
1340
|
/* @__PURE__ */ o(
|
|
1341
1341
|
se,
|
|
1342
1342
|
{
|
|
@@ -1398,20 +1398,20 @@ function oa(s) {
|
|
|
1398
1398
|
onOpenChange: u,
|
|
1399
1399
|
initialCreateFlowActive: i = !1,
|
|
1400
1400
|
dismissMode: k = "passive"
|
|
1401
|
-
} = s, b = n !== void 0, [g, v] =
|
|
1401
|
+
} = s, b = n !== void 0, [g, v] = M(!1), [p, N] = M(
|
|
1402
1402
|
i
|
|
1403
|
-
), x = b ? n : g, f =
|
|
1403
|
+
), x = b ? n : g, f = A(
|
|
1404
1404
|
(_) => {
|
|
1405
1405
|
!_ && p && k === "passive" || (b || v(_), _ || N(!1), u == null || u(_));
|
|
1406
1406
|
},
|
|
1407
1407
|
[b, p, k, u]
|
|
1408
|
-
), S =
|
|
1408
|
+
), S = A(() => {
|
|
1409
1409
|
b || v(!1), N(!1), u == null || u(!1);
|
|
1410
1410
|
}, [b, u]);
|
|
1411
1411
|
K(() => {
|
|
1412
1412
|
x || N(!1);
|
|
1413
1413
|
}, [x]);
|
|
1414
|
-
const T =
|
|
1414
|
+
const T = A(
|
|
1415
1415
|
(_) => {
|
|
1416
1416
|
p && _.preventDefault();
|
|
1417
1417
|
},
|
|
@@ -1429,10 +1429,10 @@ function oa(s) {
|
|
|
1429
1429
|
export {
|
|
1430
1430
|
sa as C,
|
|
1431
1431
|
ra as F,
|
|
1432
|
-
|
|
1432
|
+
Mt as I,
|
|
1433
1433
|
qt as L,
|
|
1434
1434
|
na as V,
|
|
1435
|
-
|
|
1435
|
+
zt as a,
|
|
1436
1436
|
la as b,
|
|
1437
1437
|
oa as u
|
|
1438
1438
|
};
|