react-semaphor 0.1.327 → 0.1.329
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.cjs +1 -1
- package/dist/analytics-protocol/index.js +211 -72
- package/dist/brand-studio/index.cjs +5 -5
- package/dist/brand-studio/index.js +23 -24
- package/dist/chunks/_commonjsHelpers-BVfed4GL.js +28 -0
- package/dist/chunks/_commonjsHelpers-DwTZ_eVU.js +1 -0
- package/dist/chunks/{braces-BGWZEnQJ.js → braces-CG8viaD2.js} +1 -1
- package/dist/chunks/{braces-B6qRDu1H.js → braces-DSaa_4Oc.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-fkLUMJyR.js → calendar-preferences-dialog-DD_qAthL.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-CjwbE_82.js → calendar-preferences-dialog-JRmNJptJ.js} +3 -3
- package/dist/chunks/{chevrons-up-down-xG-bVFD9.js → chevrons-up-down-CBa0uh0X.js} +1 -1
- package/dist/chunks/{chevrons-up-down-BpsogQvv.js → chevrons-up-down-ChDNqVP7.js} +1 -1
- package/dist/chunks/dashboard-briefing-launcher-BKdJFwH5.js +106 -0
- package/dist/chunks/{dashboard-briefing-launcher-Cy1nWZRW.js → dashboard-briefing-launcher-BfyNkd8i.js} +1141 -1137
- package/dist/chunks/{dashboard-controls-BWnVEFJq.js → dashboard-controls-0pZDLvFL.js} +218 -218
- package/dist/chunks/{dashboard-controls-C7rOGZO-.js → dashboard-controls-C0xm1QMR.js} +10 -10
- package/dist/chunks/dashboard-json-BW5OVZ6m.js +1 -0
- package/dist/chunks/{dashboard-json-BpRNSsF3.js → dashboard-json-DsruhRPD.js} +14 -13
- package/dist/chunks/{edit-dashboard-visual-B2vkIKEa.js → edit-dashboard-visual-DQyJ7SSv.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-CYf26co_.js → edit-dashboard-visual-g5SZZahJ.js} +9 -8
- package/dist/chunks/index-1JWDPCun.js +1935 -0
- package/dist/chunks/index-BdjXTQt4.js +1444 -0
- package/dist/chunks/{index-DTlbYpxd.js → index-BmKr-K7J.js} +116971 -113296
- package/dist/chunks/index-C1l78BIx.js +3247 -0
- package/dist/chunks/lib-Ce3zosXY.js +38 -0
- package/dist/chunks/lib-DFvr9fM4.js +5500 -0
- package/dist/chunks/{palette-CSF7IVJn.js → palette-D0YmAqBS.js} +1 -1
- package/dist/chunks/{palette-CWgEPBoG.js → palette-DQgq3edH.js} +1 -1
- package/dist/chunks/{resource-management-panel-D6nbfJY3.js → resource-management-panel-CIfBh46E.js} +1 -1
- package/dist/chunks/{resource-management-panel-D893Onv8.js → resource-management-panel-Cj19pw9M.js} +145 -145
- package/dist/chunks/{switch-DJJJD_g1.js → switch-BvTzw2AW.js} +39 -34
- package/dist/chunks/{switch-DKf6vHfP.js → switch-De31SR3q.js} +878 -885
- package/dist/chunks/typescript-Cmizj1hi.js +446 -0
- package/dist/chunks/typescript-H1EwZsOb.js +159820 -0
- package/dist/chunks/use-create-flow-overlay-state-BTQiKRD1.js +26 -0
- package/dist/chunks/{use-create-flow-overlay-state-p21zs2p6.js → use-create-flow-overlay-state-IcHP0l39.js} +150 -151
- package/dist/chunks/{use-visual-utils-BKBua6o4.js → use-visual-utils-DQ5zGYD2.js} +13 -13
- package/dist/chunks/{use-visual-utils-BqWm0QeW.js → use-visual-utils-XF-AqV8o.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/data-app-builder/index.cjs +1 -0
- package/dist/data-app-builder/index.js +4 -0
- package/dist/data-app-builder-browser-runtime/index.cjs +1 -0
- package/dist/data-app-builder-browser-runtime/index.js +10 -0
- package/dist/data-app-sdk/index.cjs +1 -1
- package/dist/data-app-sdk/index.js +208 -196
- package/dist/index.cjs +1 -1
- package/dist/index.js +14 -14
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/analytics-protocol.d.ts +76 -1
- package/dist/types/dashboard-authoring.d.ts +2 -1
- package/dist/types/data-app-builder-browser-runtime.d.ts +185 -0
- package/dist/types/data-app-builder.d.ts +631 -0
- package/dist/types/data-app-sdk.d.ts +16 -2
- package/dist/types/main.d.ts +4 -1
- package/package.json +11 -1
- package/dist/chunks/dashboard-briefing-launcher-Co57xBfS.js +0 -106
- package/dist/chunks/dashboard-json-DBPMknGo.js +0 -1
- package/dist/chunks/index-BD90s-wf.js +0 -1309
- package/dist/chunks/save-CtQbSub2.js +0 -6
- package/dist/chunks/save-DRdFKF57.js +0 -21
- package/dist/chunks/use-create-flow-overlay-state-C4LgoK8q.js +0 -26
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { c as te, G as L, H as ne, u as oe,
|
|
1
|
+
import { c as te, G as L, H as ne, u as oe, Z as ft, _ as ht, $ as gt, a as ie, a1 as bt, a9 as yt, B as V, e as xt, X as Ke, E as Pe, f as Ye, S as Ge, aa as vt, ab as Ct, ac as se, ad as Ae, ae as ze, af as be, ag as ye, ah as kt, ai as Me, aj as Nt, ak as St, al as le, am as Dt, an as Oe, g as Be, ao as Xe, ap as Je, aq as Ze, L as P, a2 as We, a3 as xe, a4 as ve, a5 as Ce, a6 as ke, a7 as Ne, ar as et, as as wt, at as It, au as Re, av as Et, aw as Qe, ax as Tt, ay as Se } from "./switch-De31SR3q.js";
|
|
2
2
|
import { useEffect as de, useMemo as z, useState as Q, useRef as De, useCallback as O, Fragment as Vt } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { jsx as t, jsxs as d, Fragment as
|
|
3
|
+
import { al as _t, am as tt, an as qt, ao as Ft, ap as Lt, aq as At, ar as zt, y as Mt, as as Ot, ae as ue, at, ag as rt, au as st, av as Bt, p as R, aw as Rt, ax as Qt, ay as je, az as jt, aA as Ut, aB as lt, aC as nt, aD as Ht, aE as $t, aF as Kt, aG as Pt, aH as Yt, aI as Gt, aJ as Xt, aK as Jt } from "./index-BmKr-K7J.js";
|
|
4
|
+
import { jsx as t, jsxs as d, Fragment as $ } from "react/jsx-runtime";
|
|
5
5
|
import "./index-CuHybtft.js";
|
|
6
|
-
import { u as we } from "./use-visual-utils-
|
|
7
|
-
import { S as nt } from "./save-DRdFKF57.js";
|
|
6
|
+
import { u as we } from "./use-visual-utils-DQ5zGYD2.js";
|
|
8
7
|
/**
|
|
9
8
|
* @license lucide-react v0.453.0 - ISC
|
|
10
9
|
*
|
|
11
10
|
* This source code is licensed under the ISC license.
|
|
12
11
|
* See the LICENSE file in the root directory of this source tree.
|
|
13
12
|
*/
|
|
14
|
-
const
|
|
13
|
+
const ua = te("CircleX", [
|
|
15
14
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
16
15
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
17
16
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
@@ -45,7 +44,7 @@ const Wt = te("Link2", [
|
|
|
45
44
|
* This source code is licensed under the ISC license.
|
|
46
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
47
46
|
*/
|
|
48
|
-
const
|
|
47
|
+
const pa = te("Rows3", [
|
|
49
48
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
50
49
|
["path", { d: "M21 9H3", key: "1338ky" }],
|
|
51
50
|
["path", { d: "M21 15H3", key: "9uk58r" }]
|
|
@@ -56,7 +55,7 @@ const ma = te("Rows3", [
|
|
|
56
55
|
* This source code is licensed under the ISC license.
|
|
57
56
|
* See the LICENSE file in the root directory of this source tree.
|
|
58
57
|
*/
|
|
59
|
-
const
|
|
58
|
+
const ma = te("SendHorizontal", [
|
|
60
59
|
[
|
|
61
60
|
"path",
|
|
62
61
|
{
|
|
@@ -66,7 +65,7 @@ const fa = te("SendHorizontal", [
|
|
|
66
65
|
],
|
|
67
66
|
["path", { d: "M6 12h16", key: "s4cdu5" }]
|
|
68
67
|
]);
|
|
69
|
-
function
|
|
68
|
+
function fa() {
|
|
70
69
|
const s = L((h) => h.card.dataSource), {
|
|
71
70
|
setSelectedConnectionId: r,
|
|
72
71
|
setSelectedDatabaseName: o,
|
|
@@ -77,8 +76,8 @@ function ha() {
|
|
|
77
76
|
de(() => {
|
|
78
77
|
var S;
|
|
79
78
|
if (!s) return;
|
|
80
|
-
const { tableName: h, schemaName: y, databaseName:
|
|
81
|
-
r(v || ""), o(
|
|
79
|
+
const { tableName: h, schemaName: y, databaseName: g, connectionId: v } = _t(s), b = (S = s.selectedEntities) == null ? void 0 : S[0], x = (b == null ? void 0 : b.type) === "model" && "id" in b ? b.id : "";
|
|
80
|
+
r(v || ""), o(g || ""), i(y || ""), p(h || ""), u(x);
|
|
82
81
|
}, [
|
|
83
82
|
s,
|
|
84
83
|
r,
|
|
@@ -89,16 +88,16 @@ function ha() {
|
|
|
89
88
|
]);
|
|
90
89
|
}
|
|
91
90
|
function ot() {
|
|
92
|
-
var
|
|
93
|
-
const s = L((
|
|
94
|
-
() =>
|
|
91
|
+
var g, v;
|
|
92
|
+
const s = L((b) => b.card), r = L((b) => b.frame), o = z(
|
|
93
|
+
() => tt(r, s),
|
|
95
94
|
[r, s]
|
|
96
95
|
), { manifest: i } = qt(
|
|
97
|
-
((
|
|
96
|
+
((g = o == null ? void 0 : o.customCardPreferences) == null ? void 0 : g.url) || ""
|
|
98
97
|
), p = z(
|
|
99
98
|
() => {
|
|
100
|
-
var
|
|
101
|
-
return (
|
|
99
|
+
var b;
|
|
100
|
+
return (b = i == null ? void 0 : i.visuals) == null ? void 0 : b.find(
|
|
102
101
|
(m) => {
|
|
103
102
|
var x;
|
|
104
103
|
return m.name === ((x = o == null ? void 0 : o.customCardPreferences) == null ? void 0 : x.componentName);
|
|
@@ -114,10 +113,10 @@ function ot() {
|
|
|
114
113
|
}),
|
|
115
114
|
[r, o, u]
|
|
116
115
|
), y = z(() => {
|
|
117
|
-
const
|
|
116
|
+
const b = h.findIndex(
|
|
118
117
|
(m) => (m == null ? void 0 : m.id) === s.id
|
|
119
118
|
);
|
|
120
|
-
return
|
|
119
|
+
return b < 0 ? -1 : At(s, b);
|
|
121
120
|
}, [h, s]);
|
|
122
121
|
return z(() => !o || u !== "multiple" || y < 0 ? s.type : zt(
|
|
123
122
|
s,
|
|
@@ -125,7 +124,7 @@ function ot() {
|
|
|
125
124
|
p == null ? void 0 : p.slots
|
|
126
125
|
) ?? s.type, [o, u, y, s, p == null ? void 0 : p.slots]);
|
|
127
126
|
}
|
|
128
|
-
function
|
|
127
|
+
function ha({
|
|
129
128
|
type: s,
|
|
130
129
|
isLinked: r,
|
|
131
130
|
className: o,
|
|
@@ -133,28 +132,28 @@ function ba({
|
|
|
133
132
|
showLocal: p = !1
|
|
134
133
|
}) {
|
|
135
134
|
const u = oe((D) => D.selectedFrameId), h = Mt((D) => D.selectedVisual), y = L((D) => D.frame);
|
|
136
|
-
let
|
|
135
|
+
let g;
|
|
137
136
|
if (s)
|
|
138
|
-
|
|
137
|
+
g = s;
|
|
139
138
|
else if (r !== void 0)
|
|
140
|
-
|
|
139
|
+
g = r ? "linked" : "library";
|
|
141
140
|
else if (!!!(y != null && y.visualId || h != null && h.id) && u)
|
|
142
|
-
|
|
141
|
+
g = "local";
|
|
143
142
|
else if (h && !u)
|
|
144
|
-
|
|
143
|
+
g = "library";
|
|
145
144
|
else if (y != null && y.visualId && u)
|
|
146
|
-
|
|
145
|
+
g = "linked";
|
|
147
146
|
else if (h != null && h.id && u)
|
|
148
|
-
|
|
147
|
+
g = "library";
|
|
149
148
|
else
|
|
150
149
|
return null;
|
|
151
|
-
if (
|
|
150
|
+
if (g === "local" && !p)
|
|
152
151
|
return null;
|
|
153
152
|
const v = {
|
|
154
153
|
local: "border-slate-200/70 bg-slate-50/80 text-slate-700 shadow-sm hover:bg-slate-100/80 dark:border-slate-700 dark:bg-slate-900/70 dark:text-slate-200 dark:hover:bg-slate-800/80",
|
|
155
154
|
linked: "border-purple-200/70 bg-gradient-to-r from-purple-50/50 to-purple-100/30 text-purple-900 shadow-sm hover:from-purple-100/60 hover:to-purple-100/50 hover:shadow-md dark:border-purple-800/50 dark:from-purple-950/40 dark:to-purple-900/30 dark:text-purple-100 dark:hover:from-purple-950/60 dark:hover:to-purple-900/50",
|
|
156
155
|
library: "border-blue-200/70 bg-gradient-to-r from-blue-50/50 to-blue-100/30 text-blue-900 shadow-sm hover:from-blue-100/60 hover:to-blue-100/50 hover:shadow-md dark:border-blue-800/50 dark:from-blue-950/40 dark:to-blue-900/30 dark:text-blue-100 dark:hover:from-blue-950/60 dark:hover:to-blue-900/50"
|
|
157
|
-
},
|
|
156
|
+
}, b = {
|
|
158
157
|
local: "Local to this dashboard: Changes made here only affect this dashboard copy.",
|
|
159
158
|
linked: "Linked to library: Changes made here update the library visual and all linked instances.",
|
|
160
159
|
library: "Library visual: Share and reuse this visual across multiple dashboards."
|
|
@@ -176,29 +175,29 @@ function ba({
|
|
|
176
175
|
library: "Library"
|
|
177
176
|
};
|
|
178
177
|
return /* @__PURE__ */ t(ft, { children: /* @__PURE__ */ d(ht, { delayDuration: 300, children: [
|
|
179
|
-
/* @__PURE__ */ t(
|
|
178
|
+
/* @__PURE__ */ t(gt, { asChild: !0, children: /* @__PURE__ */ d(
|
|
180
179
|
Ot,
|
|
181
180
|
{
|
|
182
181
|
variant: "outline",
|
|
183
182
|
className: ie(
|
|
184
183
|
"cursor-help select-none transition-all",
|
|
185
|
-
v[
|
|
184
|
+
v[g],
|
|
186
185
|
o
|
|
187
186
|
),
|
|
188
187
|
children: [
|
|
189
|
-
S[
|
|
190
|
-
i && /* @__PURE__ */ t("span", { className: "ml-1 text-xs font-medium leading-none", children: N[
|
|
188
|
+
S[g],
|
|
189
|
+
i && /* @__PURE__ */ t("span", { className: "ml-1 text-xs font-medium leading-none", children: N[g] })
|
|
191
190
|
]
|
|
192
191
|
}
|
|
193
192
|
) }),
|
|
194
193
|
/* @__PURE__ */ d(
|
|
195
|
-
|
|
194
|
+
bt,
|
|
196
195
|
{
|
|
197
196
|
side: "bottom",
|
|
198
|
-
className: ie("max-w-xs", m[
|
|
197
|
+
className: ie("max-w-xs", m[g]),
|
|
199
198
|
children: [
|
|
200
|
-
/* @__PURE__ */ t(yt, { className: x[
|
|
201
|
-
/* @__PURE__ */ t("p", { children: g
|
|
199
|
+
/* @__PURE__ */ t(yt, { className: x[g] }),
|
|
200
|
+
/* @__PURE__ */ t("p", { children: b[g] })
|
|
202
201
|
]
|
|
203
202
|
}
|
|
204
203
|
)
|
|
@@ -247,13 +246,13 @@ function ga({
|
|
|
247
246
|
}
|
|
248
247
|
);
|
|
249
248
|
}
|
|
250
|
-
function
|
|
249
|
+
function ba({
|
|
251
250
|
className: s,
|
|
252
251
|
variant: r = "default"
|
|
253
252
|
}) {
|
|
254
253
|
const o = ue(), [i, p] = Q(!1), u = oe(
|
|
255
254
|
(x) => x.actions.setIsDashboardPanelOpen
|
|
256
|
-
), { setIsVisualEditing: h } =
|
|
255
|
+
), { setIsVisualEditing: h } = Pe(), { getUpdatedFrame: y } = we(), g = rt(), v = L((x) => x.frame), b = st();
|
|
257
256
|
return /* @__PURE__ */ t(
|
|
258
257
|
V,
|
|
259
258
|
{
|
|
@@ -261,12 +260,12 @@ function ya({
|
|
|
261
260
|
const x = y();
|
|
262
261
|
if (!Ie(x))
|
|
263
262
|
return;
|
|
264
|
-
const S = (v == null ? void 0 : v.visualId) || (
|
|
263
|
+
const S = (v == null ? void 0 : v.visualId) || (g == null ? void 0 : g.id);
|
|
265
264
|
if (!S) {
|
|
266
265
|
R.error("No visual to save");
|
|
267
266
|
return;
|
|
268
267
|
}
|
|
269
|
-
p(!0),
|
|
268
|
+
p(!0), b.mutate(
|
|
270
269
|
{
|
|
271
270
|
visualId: S,
|
|
272
271
|
data: {
|
|
@@ -289,20 +288,20 @@ function ya({
|
|
|
289
288
|
className: s,
|
|
290
289
|
size: "xs",
|
|
291
290
|
variant: r,
|
|
292
|
-
children: i ? /* @__PURE__ */ d(
|
|
291
|
+
children: i ? /* @__PURE__ */ d($, { children: [
|
|
293
292
|
/* @__PURE__ */ t(Ye, { className: "h-3.5 w-3.5 animate-spin" }),
|
|
294
293
|
"Saving"
|
|
295
|
-
] }) : /* @__PURE__ */ d(
|
|
296
|
-
/* @__PURE__ */ t(
|
|
294
|
+
] }) : /* @__PURE__ */ d($, { children: [
|
|
295
|
+
/* @__PURE__ */ t(Ge, { className: "h-3.5 w-3.5" }),
|
|
297
296
|
"Save to Library"
|
|
298
297
|
] })
|
|
299
298
|
}
|
|
300
299
|
);
|
|
301
300
|
}
|
|
302
|
-
function
|
|
301
|
+
function ya({
|
|
303
302
|
className: s
|
|
304
303
|
}) {
|
|
305
|
-
const r = ue(), [o, i] = Q(!1), p =
|
|
304
|
+
const r = ue(), [o, i] = Q(!1), p = rt(), u = L((N) => N.frame), h = oe((N) => N.selectedSheetId), y = oe((N) => N.dashboard), { updateFrame: g, setIsVisualEditing: v } = Pe(), { getUpdatedFrame: b } = we(), m = st(), x = Bt();
|
|
306
305
|
return /* @__PURE__ */ t(
|
|
307
306
|
V,
|
|
308
307
|
{
|
|
@@ -318,7 +317,7 @@ function xa({
|
|
|
318
317
|
}
|
|
319
318
|
i(!0);
|
|
320
319
|
try {
|
|
321
|
-
const D =
|
|
320
|
+
const D = b();
|
|
322
321
|
if (!Ie(D)) {
|
|
323
322
|
i(!1);
|
|
324
323
|
return;
|
|
@@ -335,7 +334,7 @@ function xa({
|
|
|
335
334
|
data: {
|
|
336
335
|
frameObject: D
|
|
337
336
|
}
|
|
338
|
-
}),
|
|
337
|
+
}), g(h, q, {
|
|
339
338
|
semanticExecutionPayload: G
|
|
340
339
|
}), r.invalidateQueries({ queryKey: ["visuals"] }), r.invalidateQueries({ queryKey: ["visual", N] }), R.success("Saved to library and applied locally"), setTimeout(() => {
|
|
341
340
|
v(!1);
|
|
@@ -352,19 +351,19 @@ function xa({
|
|
|
352
351
|
size: "xs",
|
|
353
352
|
variant: "default",
|
|
354
353
|
disabled: o,
|
|
355
|
-
children: o ? /* @__PURE__ */ d(
|
|
354
|
+
children: o ? /* @__PURE__ */ d($, { children: [
|
|
356
355
|
/* @__PURE__ */ t(Ye, { className: "h-3.5 w-3.5 animate-spin" }),
|
|
357
356
|
"Saving..."
|
|
358
|
-
] }) : /* @__PURE__ */ d(
|
|
359
|
-
/* @__PURE__ */ t(
|
|
357
|
+
] }) : /* @__PURE__ */ d($, { children: [
|
|
358
|
+
/* @__PURE__ */ t(Ge, { className: "h-3.5 w-3.5" }),
|
|
360
359
|
"Save & Apply"
|
|
361
360
|
] })
|
|
362
361
|
}
|
|
363
362
|
);
|
|
364
363
|
}
|
|
365
|
-
function
|
|
366
|
-
const { setTempQueryData: r, setSqlGen: o } = ne(), i = ue(), p = L((m) => m.tempQueryData), u = L((m) => m.onClose), h = L((m) => m.card), y = ot(),
|
|
367
|
-
function
|
|
364
|
+
function xa({ className: s }) {
|
|
365
|
+
const { setTempQueryData: r, setSqlGen: o } = ne(), i = ue(), p = L((m) => m.tempQueryData), u = L((m) => m.onClose), h = L((m) => m.card), y = ot(), g = z(() => y !== h.type ? { ...h, type: y } : h, [h, y]), { queryKey: v } = at(g);
|
|
366
|
+
function b() {
|
|
368
367
|
if (p) {
|
|
369
368
|
const { queryKey: m, queryData: x } = p;
|
|
370
369
|
m && x && i.setQueryData(m, x);
|
|
@@ -374,24 +373,24 @@ function va({ className: s }) {
|
|
|
374
373
|
return /* @__PURE__ */ d(
|
|
375
374
|
V,
|
|
376
375
|
{
|
|
377
|
-
onClick:
|
|
376
|
+
onClick: b,
|
|
378
377
|
className: s,
|
|
379
378
|
size: "xs",
|
|
380
379
|
variant: "outline",
|
|
381
380
|
children: [
|
|
382
|
-
/* @__PURE__ */ t(
|
|
381
|
+
/* @__PURE__ */ t(Ke, { className: "h-3.5 w-3.5" }),
|
|
383
382
|
"Close"
|
|
384
383
|
]
|
|
385
384
|
}
|
|
386
385
|
);
|
|
387
386
|
}
|
|
388
|
-
function
|
|
387
|
+
function va({
|
|
389
388
|
label: s = "Clear",
|
|
390
389
|
variant: r = "secondary",
|
|
391
390
|
className: o
|
|
392
391
|
} = {}) {
|
|
393
|
-
const { setTempQueryData: i } = ne(), p = ue(), u = L((M) => M.tempQueryData), h = L((M) => M.card), y = ot(),
|
|
394
|
-
setCardSql:
|
|
392
|
+
const { setTempQueryData: i } = ne(), p = ue(), u = L((M) => M.tempQueryData), h = L((M) => M.card), y = ot(), g = z(() => y !== h.type ? { ...h, type: y } : h, [h, y]), { queryKey: v } = at(g), {
|
|
393
|
+
setCardSql: b,
|
|
395
394
|
setSqlGen: m,
|
|
396
395
|
setCardPython: x,
|
|
397
396
|
setCardCustomCfg: S,
|
|
@@ -409,8 +408,8 @@ function Ca({
|
|
|
409
408
|
u != null && u.queryData || i({
|
|
410
409
|
queryKey: v,
|
|
411
410
|
queryData: M
|
|
412
|
-
}), p.setQueryData(v, null), p.removeQueries({ queryKey: v, exact: !0 }),
|
|
413
|
-
const a = L.getState().frame, E = L.getState().card, T =
|
|
411
|
+
}), p.setQueryData(v, null), p.removeQueries({ queryKey: v, exact: !0 }), b(""), m({}), D(), q(void 0), x(""), S(""), N({});
|
|
412
|
+
const a = L.getState().frame, E = L.getState().card, T = tt(a, E), B = ((J = T == null ? void 0 : T.customCardPreferences) == null ? void 0 : J.visualType) === "multiple" || !!((re = T == null ? void 0 : T.customCardPreferences) != null && re.dataInputCardIds) || (((_ = T == null ? void 0 : T.customCardPreferences) == null ? void 0 : _.minInputs) || 0) > 1 || (((Z = T == null ? void 0 : T.customCardPreferences) == null ? void 0 : Z.maxInputs) || 0) > 1, j = ea(E, B);
|
|
414
413
|
G({
|
|
415
414
|
...a,
|
|
416
415
|
cards: a.cards.map(
|
|
@@ -426,7 +425,7 @@ function Ca({
|
|
|
426
425
|
size: "xs",
|
|
427
426
|
variant: r,
|
|
428
427
|
children: [
|
|
429
|
-
/* @__PURE__ */ t(
|
|
428
|
+
/* @__PURE__ */ t(Ke, { className: "h-3.5 w-3.5" }),
|
|
430
429
|
s
|
|
431
430
|
]
|
|
432
431
|
}
|
|
@@ -435,9 +434,9 @@ function Ca({
|
|
|
435
434
|
function it(s) {
|
|
436
435
|
const { control: r, onChange: o } = s;
|
|
437
436
|
return /* @__PURE__ */ d("div", { className: "flex flex-col gap-1.5", children: [
|
|
438
|
-
/* @__PURE__ */ t(
|
|
437
|
+
/* @__PURE__ */ t(P, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Label" }),
|
|
439
438
|
/* @__PURE__ */ t(
|
|
440
|
-
|
|
439
|
+
We,
|
|
441
440
|
{
|
|
442
441
|
size: "xs",
|
|
443
442
|
value: r.label,
|
|
@@ -499,13 +498,13 @@ function aa(s) {
|
|
|
499
498
|
/* @__PURE__ */ d("div", { className: "min-w-0 space-y-0.5", children: [
|
|
500
499
|
/* @__PURE__ */ t("div", { className: "text-[13px] font-medium text-foreground", children: r.label }),
|
|
501
500
|
/* @__PURE__ */ d("div", { className: "text-[12px] text-muted-foreground", children: [
|
|
502
|
-
|
|
501
|
+
Xe(r.type).label,
|
|
503
502
|
" ·",
|
|
504
503
|
" ",
|
|
505
|
-
|
|
504
|
+
Ze(r),
|
|
506
505
|
" ·",
|
|
507
506
|
" ",
|
|
508
|
-
|
|
507
|
+
Je(o, r.placement)
|
|
509
508
|
] }),
|
|
510
509
|
i ? /* @__PURE__ */ t("div", { className: "text-[12px] text-muted-foreground", children: i }) : null
|
|
511
510
|
] })
|
|
@@ -520,16 +519,16 @@ function Ue(s) {
|
|
|
520
519
|
previewControlDefinitions: u,
|
|
521
520
|
previewControlValues: h,
|
|
522
521
|
onControlChange: y,
|
|
523
|
-
onLabelChange:
|
|
522
|
+
onLabelChange: g,
|
|
524
523
|
onDefaultValueChange: v,
|
|
525
|
-
onBack:
|
|
524
|
+
onBack: b,
|
|
526
525
|
onNext: m,
|
|
527
526
|
nextDisabled: x
|
|
528
527
|
} = s;
|
|
529
528
|
return /* @__PURE__ */ d("div", { className: "space-y-3", children: [
|
|
530
|
-
/* @__PURE__ */ t(it, { control: r, onChange:
|
|
529
|
+
/* @__PURE__ */ t(it, { control: r, onChange: g }),
|
|
531
530
|
/* @__PURE__ */ t(
|
|
532
|
-
|
|
531
|
+
lt,
|
|
533
532
|
{
|
|
534
533
|
control: r,
|
|
535
534
|
availableFieldChoices: i,
|
|
@@ -541,7 +540,7 @@ function Ue(s) {
|
|
|
541
540
|
}
|
|
542
541
|
),
|
|
543
542
|
/* @__PURE__ */ t(
|
|
544
|
-
|
|
543
|
+
nt,
|
|
545
544
|
{
|
|
546
545
|
control: r,
|
|
547
546
|
value: o,
|
|
@@ -556,7 +555,7 @@ function Ue(s) {
|
|
|
556
555
|
/* @__PURE__ */ t(
|
|
557
556
|
ce,
|
|
558
557
|
{
|
|
559
|
-
secondary: /* @__PURE__ */ t(V, { type: "button", variant: "outline", size: "xs", onClick:
|
|
558
|
+
secondary: /* @__PURE__ */ t(V, { type: "button", variant: "outline", size: "xs", onClick: b, children: "Back" }),
|
|
560
559
|
primary: /* @__PURE__ */ t(
|
|
561
560
|
V,
|
|
562
561
|
{
|
|
@@ -599,7 +598,7 @@ function He(s) {
|
|
|
599
598
|
}
|
|
600
599
|
);
|
|
601
600
|
}
|
|
602
|
-
function
|
|
601
|
+
function $e(s) {
|
|
603
602
|
const {
|
|
604
603
|
control: r,
|
|
605
604
|
scope: o,
|
|
@@ -608,9 +607,9 @@ function Pe(s) {
|
|
|
608
607
|
sqlDescription: u,
|
|
609
608
|
summaryDetail: h,
|
|
610
609
|
onBack: y,
|
|
611
|
-
onCancel:
|
|
610
|
+
onCancel: g,
|
|
612
611
|
onDone: v
|
|
613
|
-
} = s,
|
|
612
|
+
} = s, b = ra.has(r.type), m = i.match(/\[\[param\.(.+?)\]\]/), x = m ? `{{ param('${m[1]}') }}` : "";
|
|
614
613
|
return /* @__PURE__ */ d("div", { className: "space-y-4", children: [
|
|
615
614
|
/* @__PURE__ */ t(
|
|
616
615
|
aa,
|
|
@@ -623,7 +622,7 @@ function Pe(s) {
|
|
|
623
622
|
/* @__PURE__ */ d("div", { className: "space-y-2", children: [
|
|
624
623
|
/* @__PURE__ */ t("p", { className: "text-[13px] font-medium text-foreground", children: "How cards use this control" }),
|
|
625
624
|
/* @__PURE__ */ d("div", { className: "divide-y divide-border/60 overflow-hidden rounded-control border border-border/60", children: [
|
|
626
|
-
|
|
625
|
+
b ? /* @__PURE__ */ d("div", { className: "space-y-1 px-3 py-2.5", children: [
|
|
627
626
|
/* @__PURE__ */ t("p", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Explorer cards" }),
|
|
628
627
|
/* @__PURE__ */ t("div", { className: "text-[12px] text-muted-foreground", children: p })
|
|
629
628
|
] }) : null,
|
|
@@ -665,7 +664,7 @@ function Pe(s) {
|
|
|
665
664
|
ce,
|
|
666
665
|
{
|
|
667
666
|
secondary: /* @__PURE__ */ t(V, { type: "button", variant: "outline", size: "xs", onClick: y, children: "Back" }),
|
|
668
|
-
tertiary: /* @__PURE__ */ t(V, { type: "button", variant: "outline", size: "xs", onClick:
|
|
667
|
+
tertiary: /* @__PURE__ */ t(V, { type: "button", variant: "outline", size: "xs", onClick: g, children: "Cancel" }),
|
|
669
668
|
primary: /* @__PURE__ */ t(V, { type: "button", size: "xs", onClick: v, children: "Done" })
|
|
670
669
|
}
|
|
671
670
|
)
|
|
@@ -680,7 +679,7 @@ function sa(s) {
|
|
|
680
679
|
...r,
|
|
681
680
|
label: Se[s.type]
|
|
682
681
|
} : {
|
|
683
|
-
...
|
|
682
|
+
...et({
|
|
684
683
|
controls: [
|
|
685
684
|
{
|
|
686
685
|
...r,
|
|
@@ -698,7 +697,7 @@ function sa(s) {
|
|
|
698
697
|
defaultValue: le(o, void 0)
|
|
699
698
|
};
|
|
700
699
|
}
|
|
701
|
-
function
|
|
700
|
+
function Ca({
|
|
702
701
|
scope: s,
|
|
703
702
|
controls: r,
|
|
704
703
|
reservedControlIds: o,
|
|
@@ -707,9 +706,9 @@ function ka({
|
|
|
707
706
|
emptyMessage: u,
|
|
708
707
|
initialCreateFlow: h = !1,
|
|
709
708
|
usageByControlId: y,
|
|
710
|
-
availableFieldChoices:
|
|
709
|
+
availableFieldChoices: g,
|
|
711
710
|
availableMetricChoices: v,
|
|
712
|
-
structuralParticipants:
|
|
711
|
+
structuralParticipants: b,
|
|
713
712
|
structuralParticipantIdsByControlId: m,
|
|
714
713
|
card: x,
|
|
715
714
|
allowedControlTypes: S,
|
|
@@ -752,24 +751,24 @@ function ka({
|
|
|
752
751
|
[s]
|
|
753
752
|
), Z = z(
|
|
754
753
|
() => a ? ze(
|
|
755
|
-
|
|
754
|
+
b || [],
|
|
756
755
|
a.control.type
|
|
757
756
|
) : [],
|
|
758
|
-
[a,
|
|
757
|
+
[a, b]
|
|
759
758
|
), U = z(() => {
|
|
760
759
|
if (!a)
|
|
761
760
|
return {
|
|
762
|
-
fields:
|
|
761
|
+
fields: g || [],
|
|
763
762
|
metrics: v || []
|
|
764
763
|
};
|
|
765
764
|
if (!_(a.control.type))
|
|
766
765
|
return {
|
|
767
|
-
fields:
|
|
766
|
+
fields: g || [],
|
|
768
767
|
metrics: v || []
|
|
769
768
|
};
|
|
770
|
-
const e = a.selectedCardIds || [], n =
|
|
769
|
+
const e = a.selectedCardIds || [], n = be({
|
|
771
770
|
controlType: a.control.type,
|
|
772
|
-
participants:
|
|
771
|
+
participants: b || [],
|
|
773
772
|
selectedCardIds: e
|
|
774
773
|
});
|
|
775
774
|
return {
|
|
@@ -783,11 +782,11 @@ function ka({
|
|
|
783
782
|
})) : []
|
|
784
783
|
};
|
|
785
784
|
}, [
|
|
786
|
-
|
|
785
|
+
g,
|
|
787
786
|
v,
|
|
788
787
|
a,
|
|
789
788
|
_,
|
|
790
|
-
|
|
789
|
+
b
|
|
791
790
|
]);
|
|
792
791
|
de(() => {
|
|
793
792
|
N == null || N(!!a);
|
|
@@ -801,18 +800,18 @@ function ka({
|
|
|
801
800
|
const dt = (e) => {
|
|
802
801
|
if (!_(e.type))
|
|
803
802
|
return {
|
|
804
|
-
fields:
|
|
803
|
+
fields: g || [],
|
|
805
804
|
metrics: v || []
|
|
806
805
|
};
|
|
807
806
|
const n = (m == null ? void 0 : m[e.id]) || [];
|
|
808
807
|
if (n.length === 0)
|
|
809
808
|
return {
|
|
810
|
-
fields:
|
|
809
|
+
fields: g || [],
|
|
811
810
|
metrics: v || []
|
|
812
811
|
};
|
|
813
|
-
const l =
|
|
812
|
+
const l = be({
|
|
814
813
|
controlType: e.type,
|
|
815
|
-
participants:
|
|
814
|
+
participants: b || [],
|
|
816
815
|
selectedCardIds: n
|
|
817
816
|
});
|
|
818
817
|
return {
|
|
@@ -831,9 +830,9 @@ function ka({
|
|
|
831
830
|
nextControl: e.control,
|
|
832
831
|
cardBindingsById: void 0
|
|
833
832
|
};
|
|
834
|
-
const n = (m == null ? void 0 : m[e.control.id]) || [], l =
|
|
833
|
+
const n = (m == null ? void 0 : m[e.control.id]) || [], l = be({
|
|
835
834
|
controlType: e.control.type,
|
|
836
|
-
participants:
|
|
835
|
+
participants: b || [],
|
|
837
836
|
selectedCardIds: e.nextSelectedCardIds
|
|
838
837
|
}), c = Tt({
|
|
839
838
|
control: e.control,
|
|
@@ -845,7 +844,7 @@ function ka({
|
|
|
845
844
|
C,
|
|
846
845
|
Qe({
|
|
847
846
|
control: c,
|
|
848
|
-
participants:
|
|
847
|
+
participants: b || [],
|
|
849
848
|
selectedCardIds: e.nextSelectedCardIds
|
|
850
849
|
})
|
|
851
850
|
), {
|
|
@@ -873,17 +872,17 @@ function ka({
|
|
|
873
872
|
);
|
|
874
873
|
let k, f;
|
|
875
874
|
if (C && s === "dashboard" && (C.type === "field_selector" || C.type === "metric_selector")) {
|
|
876
|
-
const I = (m == null ? void 0 : m[C.id]) || [],
|
|
875
|
+
const I = (m == null ? void 0 : m[C.id]) || [], K = Ee({
|
|
877
876
|
control: C,
|
|
878
877
|
nextSelectedCardIds: I
|
|
879
878
|
});
|
|
880
879
|
c = c.map(
|
|
881
|
-
(H) => H.id === e ?
|
|
882
|
-
), k =
|
|
880
|
+
(H) => H.id === e ? K.nextControl : H
|
|
881
|
+
), k = K.cardBindingsById, f = [C.id];
|
|
883
882
|
} else if (l && s === "dashboard" && (l.type === "field_selector" || l.type === "metric_selector")) {
|
|
884
883
|
const I = (m == null ? void 0 : m[l.id]) || [];
|
|
885
884
|
k = Object.fromEntries(
|
|
886
|
-
I.map((
|
|
885
|
+
I.map((K) => [K, void 0])
|
|
887
886
|
), f = [l.id];
|
|
888
887
|
}
|
|
889
888
|
const w = c.find(
|
|
@@ -896,10 +895,10 @@ function ka({
|
|
|
896
895
|
defaultValues: i
|
|
897
896
|
});
|
|
898
897
|
l.source.kind === "manual" && w.source.kind === "sql_query" && (T.current[e] = I);
|
|
899
|
-
const
|
|
898
|
+
const K = I === void 0 && l.source.kind === "sql_query" && w.source.kind === "manual" ? T.current[e] : I, H = Re({
|
|
900
899
|
previousControl: l,
|
|
901
900
|
nextControl: w,
|
|
902
|
-
currentDefaultValue:
|
|
901
|
+
currentDefaultValue: K
|
|
903
902
|
});
|
|
904
903
|
w.source.kind === "manual" && (T.current[e] = H), i && (F = { ...i }, H === void 0 ? delete F[e] : F[e] = H), c = c.map(
|
|
905
904
|
(Le) => Le.id === e ? { ...w, defaultValue: H } : Le
|
|
@@ -1005,7 +1004,7 @@ function ka({
|
|
|
1005
1004
|
id: n
|
|
1006
1005
|
}, c = s === "dashboard" && (l.type === "field_selector" || l.type === "metric_selector") && ((k = a.selectedCardIds) != null && k.length) ? Qe({
|
|
1007
1006
|
control: l,
|
|
1008
|
-
participants:
|
|
1007
|
+
participants: b || [],
|
|
1009
1008
|
selectedCardIds: a.selectedCardIds
|
|
1010
1009
|
}) : void 0, C = le(
|
|
1011
1010
|
l,
|
|
@@ -1065,8 +1064,8 @@ function ka({
|
|
|
1065
1064
|
}, [r, a, i, A, D]), mt = a ? _(a.control.type) ? ["Choose type", "Select cards", "Configure", "Finish"] : ["Choose type", "Configure", "Finish"] : [], qe = a != null && a.createdControlId ? `[[param.${a.createdControlId}]]` : a ? `[[param.${Dt(a.control.label) || a.control.id}]]` : "", he = Oe({
|
|
1066
1065
|
controls: r,
|
|
1067
1066
|
defaultValues: i
|
|
1068
|
-
}),
|
|
1069
|
-
controls:
|
|
1067
|
+
}), ge = a ? [...r, a.control] : r, Fe = a ? Oe({
|
|
1068
|
+
controls: ge,
|
|
1070
1069
|
defaultValues: i,
|
|
1071
1070
|
overrides: [
|
|
1072
1071
|
{
|
|
@@ -1237,7 +1236,7 @@ function ka({
|
|
|
1237
1236
|
defaultValue: a.defaultValue,
|
|
1238
1237
|
availableFieldChoices: U.fields,
|
|
1239
1238
|
availableMetricChoices: U.metrics,
|
|
1240
|
-
previewControlDefinitions:
|
|
1239
|
+
previewControlDefinitions: ge,
|
|
1241
1240
|
previewControlValues: Fe,
|
|
1242
1241
|
onControlChange: (e) => ee(() => e),
|
|
1243
1242
|
onLabelChange: (e) => ee((n) => ({
|
|
@@ -1262,7 +1261,7 @@ function ka({
|
|
|
1262
1261
|
defaultValue: a.defaultValue,
|
|
1263
1262
|
availableFieldChoices: U.fields,
|
|
1264
1263
|
availableMetricChoices: U.metrics,
|
|
1265
|
-
previewControlDefinitions:
|
|
1264
|
+
previewControlDefinitions: ge,
|
|
1266
1265
|
previewControlValues: Fe,
|
|
1267
1266
|
onControlChange: (e) => ee(() => e),
|
|
1268
1267
|
onLabelChange: (e) => ee((n) => ({
|
|
@@ -1281,12 +1280,12 @@ function ka({
|
|
|
1281
1280
|
}
|
|
1282
1281
|
),
|
|
1283
1282
|
a.step === 3 && !_(a.control.type) && /* @__PURE__ */ t(
|
|
1284
|
-
|
|
1283
|
+
$e,
|
|
1285
1284
|
{
|
|
1286
1285
|
control: a.control,
|
|
1287
1286
|
scope: s,
|
|
1288
1287
|
createdReference: qe,
|
|
1289
|
-
explorerContent: /* @__PURE__ */ d(
|
|
1288
|
+
explorerContent: /* @__PURE__ */ d($, { children: [
|
|
1290
1289
|
"Open the card and use",
|
|
1291
1290
|
" ",
|
|
1292
1291
|
/* @__PURE__ */ t("span", { className: "font-medium text-foreground", children: "Settings → Controls" }),
|
|
@@ -1305,18 +1304,18 @@ function ka({
|
|
|
1305
1304
|
}
|
|
1306
1305
|
),
|
|
1307
1306
|
a.step === 4 && _(a.control.type) && /* @__PURE__ */ t(
|
|
1308
|
-
|
|
1307
|
+
$e,
|
|
1309
1308
|
{
|
|
1310
1309
|
control: a.control,
|
|
1311
1310
|
scope: s,
|
|
1312
1311
|
createdReference: qe,
|
|
1313
|
-
summaryDetail: /* @__PURE__ */ d(
|
|
1312
|
+
summaryDetail: /* @__PURE__ */ d($, { children: [
|
|
1314
1313
|
"Used by ",
|
|
1315
1314
|
(a.selectedCardIds || []).length,
|
|
1316
1315
|
" selected card",
|
|
1317
1316
|
(a.selectedCardIds || []).length === 1 ? "" : "s"
|
|
1318
1317
|
] }),
|
|
1319
|
-
explorerContent: /* @__PURE__ */ t(
|
|
1318
|
+
explorerContent: /* @__PURE__ */ t($, { children: "Selected cards have been set up to respond to this control automatically." }),
|
|
1320
1319
|
sqlDescription: "SQL cards can still reference this control directly in the SQL editor.",
|
|
1321
1320
|
onBack: () => E(
|
|
1322
1321
|
(e) => e && {
|
|
@@ -1354,11 +1353,11 @@ function ka({
|
|
|
1354
1353
|
/* @__PURE__ */ d("div", { className: "min-w-0", children: [
|
|
1355
1354
|
/* @__PURE__ */ d("div", { className: "flex flex-wrap items-center gap-1.5", children: [
|
|
1356
1355
|
/* @__PURE__ */ t("span", { className: "truncate text-[13px] font-medium text-foreground", children: e.label || "Untitled control" }),
|
|
1357
|
-
/* @__PURE__ */ t("span", { className: k, children:
|
|
1358
|
-
/* @__PURE__ */ t("span", { className: k, children:
|
|
1356
|
+
/* @__PURE__ */ t("span", { className: k, children: Xe(e.type).label }),
|
|
1357
|
+
/* @__PURE__ */ t("span", { className: k, children: Je(s, e.placement) })
|
|
1359
1358
|
] }),
|
|
1360
1359
|
/* @__PURE__ */ d("div", { className: "mt-0.5 text-[12px] text-muted-foreground", children: [
|
|
1361
|
-
|
|
1360
|
+
Ze(e),
|
|
1362
1361
|
l != null && l.status ? ` · ${l.status}` : ""
|
|
1363
1362
|
] })
|
|
1364
1363
|
] })
|
|
@@ -1381,9 +1380,9 @@ function ka({
|
|
|
1381
1380
|
C && /* @__PURE__ */ d("div", { className: "space-y-4 border-t border-border/60 px-3 py-3", children: [
|
|
1382
1381
|
/* @__PURE__ */ d("div", { className: "grid gap-3 md:grid-cols-3", children: [
|
|
1383
1382
|
/* @__PURE__ */ d("div", { className: "flex flex-col gap-1.5", children: [
|
|
1384
|
-
/* @__PURE__ */ t(
|
|
1383
|
+
/* @__PURE__ */ t(P, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Label" }),
|
|
1385
1384
|
/* @__PURE__ */ t(
|
|
1386
|
-
|
|
1385
|
+
We,
|
|
1387
1386
|
{
|
|
1388
1387
|
size: "xs",
|
|
1389
1388
|
value: e.label,
|
|
@@ -1396,13 +1395,13 @@ function ka({
|
|
|
1396
1395
|
)
|
|
1397
1396
|
] }),
|
|
1398
1397
|
/* @__PURE__ */ d("div", { className: "flex flex-col gap-1.5", children: [
|
|
1399
|
-
/* @__PURE__ */ t(
|
|
1398
|
+
/* @__PURE__ */ t(P, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Type" }),
|
|
1400
1399
|
/* @__PURE__ */ d(
|
|
1401
1400
|
xe,
|
|
1402
1401
|
{
|
|
1403
1402
|
value: e.type,
|
|
1404
1403
|
onValueChange: (f) => {
|
|
1405
|
-
const w =
|
|
1404
|
+
const w = et({
|
|
1406
1405
|
controls: r,
|
|
1407
1406
|
controlId: e.id,
|
|
1408
1407
|
nextType: f,
|
|
@@ -1427,7 +1426,7 @@ function ka({
|
|
|
1427
1426
|
)
|
|
1428
1427
|
] }),
|
|
1429
1428
|
/* @__PURE__ */ d("div", { className: "flex flex-col gap-1.5", children: [
|
|
1430
|
-
/* @__PURE__ */ t(
|
|
1429
|
+
/* @__PURE__ */ t(P, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Show in" }),
|
|
1431
1430
|
/* @__PURE__ */ d(
|
|
1432
1431
|
xe,
|
|
1433
1432
|
{
|
|
@@ -1449,7 +1448,7 @@ function ka({
|
|
|
1449
1448
|
{
|
|
1450
1449
|
type: e.type,
|
|
1451
1450
|
participants: ze(
|
|
1452
|
-
|
|
1451
|
+
b || [],
|
|
1453
1452
|
e.type
|
|
1454
1453
|
).map((f) => ({
|
|
1455
1454
|
cardId: f.cardId,
|
|
@@ -1472,7 +1471,7 @@ function ka({
|
|
|
1472
1471
|
}
|
|
1473
1472
|
) : null,
|
|
1474
1473
|
/* @__PURE__ */ t(
|
|
1475
|
-
|
|
1474
|
+
lt,
|
|
1476
1475
|
{
|
|
1477
1476
|
control: e,
|
|
1478
1477
|
availableFieldChoices: n.fields,
|
|
@@ -1484,7 +1483,7 @@ function ka({
|
|
|
1484
1483
|
}
|
|
1485
1484
|
),
|
|
1486
1485
|
e.initialValueStrategy === "saved_default" && /* @__PURE__ */ t(
|
|
1487
|
-
|
|
1486
|
+
nt,
|
|
1488
1487
|
{
|
|
1489
1488
|
control: e,
|
|
1490
1489
|
value: c,
|
|
@@ -1511,7 +1510,7 @@ function ka({
|
|
|
1511
1510
|
open: ae === e.id,
|
|
1512
1511
|
onOpenChange: (f) => X(f ? e.id : null),
|
|
1513
1512
|
children: [
|
|
1514
|
-
/* @__PURE__ */ t(
|
|
1513
|
+
/* @__PURE__ */ t($t, { asChild: !0, children: /* @__PURE__ */ d(
|
|
1515
1514
|
V,
|
|
1516
1515
|
{
|
|
1517
1516
|
type: "button",
|
|
@@ -1524,12 +1523,12 @@ function ka({
|
|
|
1524
1523
|
]
|
|
1525
1524
|
}
|
|
1526
1525
|
) }),
|
|
1527
|
-
/* @__PURE__ */ d(
|
|
1526
|
+
/* @__PURE__ */ d(Kt, { className: "space-y-3 pt-2", children: [
|
|
1528
1527
|
/* @__PURE__ */ d("div", { className: "grid gap-3 md:grid-cols-2", children: [
|
|
1529
1528
|
/* @__PURE__ */ d("div", { className: "flex flex-col gap-1.5", children: [
|
|
1530
|
-
/* @__PURE__ */ t(
|
|
1529
|
+
/* @__PURE__ */ t(P, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Variable name" }),
|
|
1531
1530
|
/* @__PURE__ */ t(
|
|
1532
|
-
|
|
1531
|
+
Pt,
|
|
1533
1532
|
{
|
|
1534
1533
|
controlId: e.id,
|
|
1535
1534
|
onCommit: (f) => ct(e.id, f)
|
|
@@ -1538,7 +1537,7 @@ function ka({
|
|
|
1538
1537
|
)
|
|
1539
1538
|
] }),
|
|
1540
1539
|
/* @__PURE__ */ d("div", { className: "flex flex-col gap-1.5", children: [
|
|
1541
|
-
/* @__PURE__ */ t(
|
|
1540
|
+
/* @__PURE__ */ t(P, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Initial value" }),
|
|
1542
1541
|
/* @__PURE__ */ d(
|
|
1543
1542
|
xe,
|
|
1544
1543
|
{
|
|
@@ -1594,54 +1593,54 @@ function ka({
|
|
|
1594
1593
|
)
|
|
1595
1594
|
] });
|
|
1596
1595
|
}
|
|
1597
|
-
function
|
|
1596
|
+
function ka(s) {
|
|
1598
1597
|
const {
|
|
1599
1598
|
open: r,
|
|
1600
1599
|
onOpenChange: o,
|
|
1601
1600
|
initialCreateFlowActive: i = !1,
|
|
1602
1601
|
dismissMode: p = "passive"
|
|
1603
|
-
} = s, u = r !== void 0, [h, y] = Q(!1), [
|
|
1602
|
+
} = s, u = r !== void 0, [h, y] = Q(!1), [g, v] = Q(
|
|
1604
1603
|
i
|
|
1605
|
-
),
|
|
1604
|
+
), b = u ? r : h, m = O(
|
|
1606
1605
|
(N) => {
|
|
1607
|
-
!N &&
|
|
1606
|
+
!N && g && p === "passive" || (u || y(N), N || v(!1), o == null || o(N));
|
|
1608
1607
|
},
|
|
1609
|
-
[u,
|
|
1608
|
+
[u, g, p, o]
|
|
1610
1609
|
), x = O(() => {
|
|
1611
1610
|
u || y(!1), v(!1), o == null || o(!1);
|
|
1612
1611
|
}, [u, o]);
|
|
1613
1612
|
de(() => {
|
|
1614
|
-
|
|
1615
|
-
}, [
|
|
1613
|
+
b || v(!1);
|
|
1614
|
+
}, [b]);
|
|
1616
1615
|
const S = O(
|
|
1617
1616
|
(N) => {
|
|
1618
|
-
|
|
1617
|
+
g && N.preventDefault();
|
|
1619
1618
|
},
|
|
1620
|
-
[
|
|
1619
|
+
[g]
|
|
1621
1620
|
);
|
|
1622
1621
|
return {
|
|
1623
1622
|
forceClose: x,
|
|
1624
1623
|
handleOpenChange: m,
|
|
1625
|
-
isCreateFlowActive:
|
|
1624
|
+
isCreateFlowActive: g,
|
|
1626
1625
|
preventPassiveDismissDuringCreate: S,
|
|
1627
|
-
resolvedOpen:
|
|
1626
|
+
resolvedOpen: b,
|
|
1628
1627
|
setIsCreateFlowActive: v
|
|
1629
1628
|
};
|
|
1630
1629
|
}
|
|
1631
1630
|
export {
|
|
1632
|
-
|
|
1631
|
+
ua as C,
|
|
1633
1632
|
ga as E,
|
|
1634
1633
|
Zt as L,
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1634
|
+
pa as R,
|
|
1635
|
+
ma as S,
|
|
1636
|
+
ha as V,
|
|
1637
|
+
xa as a,
|
|
1638
|
+
ba as b,
|
|
1639
|
+
ya as c,
|
|
1641
1640
|
Wt as d,
|
|
1642
|
-
|
|
1643
|
-
|
|
1641
|
+
Ca as e,
|
|
1642
|
+
fa as f,
|
|
1644
1643
|
ot as g,
|
|
1645
|
-
|
|
1646
|
-
|
|
1644
|
+
va as h,
|
|
1645
|
+
ka as u
|
|
1647
1646
|
};
|