react-semaphor 0.1.302 → 0.1.304
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/appearance/index.cjs +1 -1
- package/dist/appearance/index.js +1 -1
- package/dist/brand-studio/index.cjs +5 -5
- package/dist/brand-studio/index.js +334 -385
- package/dist/chunks/common-types-C6cAQgyh.js +9 -0
- package/dist/chunks/common-types-nBuCd3u2.js +1 -0
- package/dist/chunks/{dashboard-controls-CZuC_QjN.js → dashboard-controls-CyFZfGaN.js} +800 -776
- package/dist/chunks/dashboard-controls-DCZnUFI0.js +47 -0
- package/dist/chunks/{dashboard-filter-controls-button-kfb_T18o.js → dashboard-filter-controls-button-DI7XUgZK.js} +142 -142
- package/dist/chunks/{dashboard-filter-controls-button-2I1ltWQ9.js → dashboard-filter-controls-button-YQZ-oeN5.js} +3 -3
- package/dist/chunks/{dashboard-json-Df6v2Jem.js → dashboard-json-C6R2qixD.js} +3 -3
- package/dist/chunks/{dashboard-json-C3v6rBdp.js → dashboard-json-Z8jz16Yj.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-DKAaWq-G.js → dashboard-summary-settings-dialog-BlD77h63.js} +2 -2
- package/dist/chunks/{dashboard-summary-settings-dialog-BBALEHJQ.js → dashboard-summary-settings-dialog-DJyY-PB9.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-CGBYahAK.js → edit-dashboard-visual-CNGc1zcN.js} +33 -33
- package/dist/chunks/{edit-dashboard-visual-D8L0cl_U.js → edit-dashboard-visual-CfRJXwDR.js} +167 -168
- package/dist/chunks/{index-uRJmUpof.js → index-CJdxSyQq.js} +679 -656
- package/dist/chunks/index-D2vz3gvd.js +1360 -0
- package/dist/chunks/index-DRlMUglg.js +4 -0
- package/dist/chunks/{index-BmoR3VQT.js → index-GHhvGdF9.js} +42745 -40322
- package/dist/chunks/{palette-326-dgn0.js → palette-BqJlrRto.js} +7 -2
- package/dist/chunks/{palette-jd7xiGTg.js → palette-DD-i7bNS.js} +23 -3
- package/dist/chunks/{resource-management-panel-C_c-BwrC.js → resource-management-panel-7Y4ITzGH.js} +65 -65
- package/dist/chunks/{resource-management-panel-DrcEEARD.js → resource-management-panel-Bdus73Iu.js} +1 -1
- package/dist/chunks/{rotate-ccw-BugHcM1w.js → rotate-ccw-CdGW8Rxm.js} +1 -1
- package/dist/chunks/{rotate-ccw-yFwqBFJZ.js → rotate-ccw-X8MbX_hF.js} +1 -1
- package/dist/chunks/{save-CaybXtdd.js → save-CFBIhbHD.js} +1 -1
- package/dist/chunks/{save-DU0FXUlM.js → save-j-clxFtx.js} +1 -1
- package/dist/chunks/{switch-CZtMtqEj.js → switch-BFhVVwh9.js} +4285 -3275
- package/dist/chunks/switch-BH17qlxH.js +163 -0
- package/dist/chunks/use-create-flow-overlay-state-CSytlf2H.js +16 -0
- package/dist/chunks/{use-create-flow-overlay-state-84Xe8VrP.js → use-create-flow-overlay-state-CllZvyvE.js} +318 -316
- package/dist/chunks/{use-visual-utils-lp5DfmvL.js → use-visual-utils-CDO4kVX5.js} +1 -1
- package/dist/chunks/{use-visual-utils-z3ifg6Fd.js → use-visual-utils-CyjLzcDG.js} +2 -2
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +5 -5
- package/dist/index.cjs +1 -1
- package/dist/index.js +61 -60
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +6 -6
- package/dist/types/dashboard.d.ts +168 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +8 -11
- package/dist/types/main.d.ts +195 -2
- package/dist/types/shared.d.ts +120 -0
- package/dist/types/surfboard.d.ts +168 -0
- package/dist/types/types.d.ts +168 -0
- package/package.json +1 -1
- package/dist/chunks/braces-CpOcaBNm.js +0 -6
- package/dist/chunks/braces-TYclg8Hl.js +0 -23
- package/dist/chunks/dashboard-controls-BkuB9TQX.js +0 -47
- package/dist/chunks/index-Cxb9UUro.js +0 -4
- package/dist/chunks/index-eM6MU4q_.js +0 -1361
- package/dist/chunks/switch-AmoR1YIA.js +0 -163
- package/dist/chunks/use-create-flow-overlay-state-CiKVJGWF.js +0 -16
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Se, { useState as T, useRef as X, useCallback as $, useEffect as O, useContext as Ae } from "react";
|
|
2
|
-
import { u as
|
|
2
|
+
import { u as W, ae as z, aZ as q, aV as le, aW as K, af as de, aU as Ie, b as ce, c as ue, d as me, e as he, f as pe, bV as Fe, o as Le, t as Te, v as Pe, b8 as fe, bW as ke, p as k, b9 as G, W as Ue, bq as ve, br as ge, bt as be, bu as R, by as Ve, bl as Me, bX as Be, bY as Oe, bF as ze, bG as Re, bH as $e, bI as _e, bJ as He, bK as je, bL as Xe, a$ as Ge, bZ as We, b_ as qe, bn as Ke, aX as J, M as Qe, ah as Ze, b$ as Ye, c0 as Je, c1 as et, c2 as tt, c3 as ee, c4 as at } from "./index-GHhvGdF9.js";
|
|
3
3
|
import { jsx as t, jsxs as s, Fragment as _ } from "react/jsx-runtime";
|
|
4
|
-
import { c as xe, L as te, I as
|
|
5
|
-
import { V as
|
|
6
|
-
import { u as Ee } from "./use-visual-utils-
|
|
4
|
+
import { c as xe, L as te, I as st, B as I, f as Q, n as j, u as B, m as Z, aE as ae, ae as ye, G as we, e as rt, l as ot, a as H, p as Y, X as nt, P as Ce, b as De, d as Ne, aF as it, aG as lt } from "./switch-BFhVVwh9.js";
|
|
5
|
+
import { V as dt, E as se, a as re, b as ct, c as ut, L as mt, d as ht, C as pt, u as ft, e as vt } from "./use-create-flow-overlay-state-CllZvyvE.js";
|
|
6
|
+
import { u as Ee } from "./use-visual-utils-CyjLzcDG.js";
|
|
7
7
|
import { k as oe } from "./date-formatter-DyIOb6uC.js";
|
|
8
8
|
/**
|
|
9
9
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -28,17 +28,17 @@ const gt = xe("FilterX", [
|
|
|
28
28
|
["path", { d: "m22 3-5 5", key: "12jva0" }],
|
|
29
29
|
["path", { d: "m17 3 5 5", key: "k36vhe" }]
|
|
30
30
|
]), bt = 1e4, xt = 15e3, yt = 3e4, wt = 3e4, Ct = 12e4, ie = 2 * 60 * 60 * 1e3;
|
|
31
|
-
function
|
|
31
|
+
function Dt(e) {
|
|
32
32
|
const a = Date.now() - e.getTime();
|
|
33
33
|
return a < wt ? bt : a < Ct ? xt : yt;
|
|
34
34
|
}
|
|
35
35
|
function Bt() {
|
|
36
|
-
const { authToken: e, tokenProps: a } =
|
|
36
|
+
const { authToken: e, tokenProps: a } = W(), v = z((h) => h.activeExports), [l, n] = T(
|
|
37
37
|
typeof document < "u" ? !document.hidden : !0
|
|
38
|
-
),
|
|
38
|
+
), d = X(null), c = X(!1), m = X(void 0), i = a == null ? void 0 : a.apiServiceUrl, r = e == null ? void 0 : e.accessToken, p = $(() => {
|
|
39
39
|
const h = z.getState().activeExports;
|
|
40
40
|
return Array.from(h.values()).filter(
|
|
41
|
-
(y) =>
|
|
41
|
+
(y) => q(y.status)
|
|
42
42
|
);
|
|
43
43
|
}, []);
|
|
44
44
|
O(() => {
|
|
@@ -52,12 +52,12 @@ function Bt() {
|
|
|
52
52
|
}, []);
|
|
53
53
|
const b = $(async () => {
|
|
54
54
|
if (!i || !r) {
|
|
55
|
-
|
|
55
|
+
c.current = !1;
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
58
|
const h = p();
|
|
59
59
|
if (h.length === 0) {
|
|
60
|
-
|
|
60
|
+
c.current = !1;
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
63
|
const y = Date.now(), E = h.filter(
|
|
@@ -76,17 +76,17 @@ function Bt() {
|
|
|
76
76
|
(o) => y - o.startedAt.getTime() <= ie
|
|
77
77
|
);
|
|
78
78
|
if (f.length === 0) {
|
|
79
|
-
|
|
79
|
+
c.current = !1;
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
82
|
const w = await Promise.allSettled(
|
|
83
83
|
f.map(async (o) => {
|
|
84
84
|
try {
|
|
85
85
|
const x = await le(i, r, o.id);
|
|
86
|
-
let
|
|
86
|
+
let N;
|
|
87
87
|
if (x.status === "completed")
|
|
88
88
|
try {
|
|
89
|
-
|
|
89
|
+
N = await K(i, r, o.id);
|
|
90
90
|
} catch (F) {
|
|
91
91
|
console.error(
|
|
92
92
|
`[useExportPolling] Failed to get download URL for ${o.id}:`,
|
|
@@ -102,7 +102,7 @@ function Bt() {
|
|
|
102
102
|
lastUpdatedAt: /* @__PURE__ */ new Date(),
|
|
103
103
|
fileSize: x.fileSize,
|
|
104
104
|
error: x.error,
|
|
105
|
-
downloadUrl:
|
|
105
|
+
downloadUrl: N
|
|
106
106
|
};
|
|
107
107
|
} catch (x) {
|
|
108
108
|
return console.error(
|
|
@@ -117,42 +117,42 @@ function Bt() {
|
|
|
117
117
|
const C = p();
|
|
118
118
|
if (C.length > 0 && !document.hidden) {
|
|
119
119
|
const o = C.reduce(
|
|
120
|
-
(
|
|
120
|
+
(N, F) => F.startedAt < N ? F.startedAt : N,
|
|
121
121
|
C[0].startedAt
|
|
122
|
-
), x =
|
|
123
|
-
|
|
124
|
-
var
|
|
125
|
-
(
|
|
122
|
+
), x = Dt(o);
|
|
123
|
+
d.current && clearTimeout(d.current), d.current = setTimeout(() => {
|
|
124
|
+
var N;
|
|
125
|
+
(N = m.current) == null || N.call(m);
|
|
126
126
|
}, x);
|
|
127
127
|
} else
|
|
128
|
-
|
|
128
|
+
c.current = !1;
|
|
129
129
|
}, [i, r, p]);
|
|
130
130
|
return O(() => {
|
|
131
131
|
m.current = b;
|
|
132
132
|
}, [b]), O(() => {
|
|
133
133
|
var y;
|
|
134
|
-
p().length > 0 && l && !
|
|
134
|
+
p().length > 0 && l && !c.current && (c.current = !0, (y = m.current) == null || y.call(m));
|
|
135
135
|
}, [v, l, p]), O(() => {
|
|
136
136
|
var y;
|
|
137
137
|
const h = p();
|
|
138
|
-
l && h.length > 0 && !
|
|
138
|
+
l && h.length > 0 && !c.current && (c.current = !0, (y = m.current) == null || y.call(m));
|
|
139
139
|
}, [l, p]), O(() => {
|
|
140
|
-
!l &&
|
|
140
|
+
!l && d.current && (clearTimeout(d.current), d.current = null, c.current = !1);
|
|
141
141
|
}, [l]), O(() => () => {
|
|
142
|
-
|
|
142
|
+
d.current && (clearTimeout(d.current), d.current = null);
|
|
143
143
|
}, []), {
|
|
144
|
-
isPolling:
|
|
144
|
+
isPolling: c.current,
|
|
145
145
|
isTabVisible: l,
|
|
146
146
|
inProgressCount: p().length
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
149
|
function Ot() {
|
|
150
|
-
const { authToken: e, tokenProps: a } =
|
|
150
|
+
const { authToken: e, tokenProps: a } = W(), v = z((m) => m.activeExports), { addExport: l } = de(), n = X(!1), d = a == null ? void 0 : a.apiServiceUrl, c = e == null ? void 0 : e.accessToken;
|
|
151
151
|
O(() => {
|
|
152
|
-
if (n.current || !
|
|
152
|
+
if (n.current || !d || !c) return;
|
|
153
153
|
(async () => {
|
|
154
154
|
try {
|
|
155
|
-
const { exports: i } = await Ie(
|
|
155
|
+
const { exports: i } = await Ie(d, c, {
|
|
156
156
|
status: ["pending", "processing", "chunking", "compacting", "completed", "failed"],
|
|
157
157
|
limit: 20
|
|
158
158
|
// Limit to recent exports
|
|
@@ -163,7 +163,7 @@ function Ot() {
|
|
|
163
163
|
let b;
|
|
164
164
|
if (r.status === "completed")
|
|
165
165
|
try {
|
|
166
|
-
b = await
|
|
166
|
+
b = await K(d, c, r.id);
|
|
167
167
|
} catch (y) {
|
|
168
168
|
console.error(
|
|
169
169
|
`[useExportRecovery] Failed to get download URL for ${r.id}:`,
|
|
@@ -174,7 +174,7 @@ function Ot() {
|
|
|
174
174
|
id: r.id,
|
|
175
175
|
status: r.status,
|
|
176
176
|
progress: p,
|
|
177
|
-
title:
|
|
177
|
+
title: Nt(r),
|
|
178
178
|
totalRows: r.totalRows,
|
|
179
179
|
totalChunks: r.totalChunks,
|
|
180
180
|
completedChunks: r.completedChunks,
|
|
@@ -193,10 +193,10 @@ function Ot() {
|
|
|
193
193
|
console.error("[useExportRecovery] Failed to recover exports:", i), n.current = !0;
|
|
194
194
|
}
|
|
195
195
|
})();
|
|
196
|
-
}, [
|
|
196
|
+
}, [d, c, l, v]);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
return e.title ? e.title :
|
|
198
|
+
function Nt(e) {
|
|
199
|
+
return e.title ? e.title : q(
|
|
200
200
|
e.status
|
|
201
201
|
) ? "Export in progress..." : e.status === "completed" ? "Export completed" : e.status === "failed" ? "Export failed" : "Export";
|
|
202
202
|
}
|
|
@@ -206,8 +206,8 @@ function Et({
|
|
|
206
206
|
isLibraryVisual: v,
|
|
207
207
|
currentVisualName: l,
|
|
208
208
|
isSaving: n = !1,
|
|
209
|
-
destinationMode:
|
|
210
|
-
onConfirm:
|
|
209
|
+
destinationMode: d = "both",
|
|
210
|
+
onConfirm: c
|
|
211
211
|
}) {
|
|
212
212
|
const [m, i] = T(
|
|
213
213
|
v && l ? `Copy of ${l}` : l || ""
|
|
@@ -217,13 +217,13 @@ function Et({
|
|
|
217
217
|
v && l ? `Copy of ${l}` : l || ""
|
|
218
218
|
), p(""));
|
|
219
219
|
}, [e, v, l]);
|
|
220
|
-
const b = !!m.trim(), h =
|
|
220
|
+
const b = !!m.trim(), h = d === "local" ? {
|
|
221
221
|
saveToLibrary: !1,
|
|
222
222
|
saveToCurrentDashboard: !0,
|
|
223
223
|
badgeType: "local",
|
|
224
224
|
description: "Creates a local copy on the current dashboard.",
|
|
225
225
|
actionLabel: "Add to Dashboard (Local)"
|
|
226
|
-
} :
|
|
226
|
+
} : d === "library" ? {
|
|
227
227
|
saveToLibrary: !0,
|
|
228
228
|
saveToCurrentDashboard: !1,
|
|
229
229
|
badgeType: "library",
|
|
@@ -236,19 +236,19 @@ function Et({
|
|
|
236
236
|
description: "Creates a new library visual and adds a linked copy to this dashboard.",
|
|
237
237
|
actionLabel: "Save Copy as Linked Visual"
|
|
238
238
|
}, y = () => {
|
|
239
|
-
!b || n ||
|
|
239
|
+
!b || n || c({
|
|
240
240
|
name: m.trim(),
|
|
241
241
|
description: r.trim() || void 0,
|
|
242
242
|
saveToLibrary: h.saveToLibrary,
|
|
243
243
|
saveToCurrentDashboard: h.saveToCurrentDashboard
|
|
244
244
|
});
|
|
245
245
|
};
|
|
246
|
-
return /* @__PURE__ */ t(
|
|
246
|
+
return /* @__PURE__ */ t(ce, { open: e, onOpenChange: a, children: /* @__PURE__ */ s(ue, { className: "sm:max-w-[500px]", children: [
|
|
247
247
|
/* @__PURE__ */ s(me, { children: [
|
|
248
248
|
/* @__PURE__ */ s(he, { className: "flex items-center gap-2", children: [
|
|
249
249
|
/* @__PURE__ */ t("span", { children: "Save Visual As" }),
|
|
250
250
|
h.badgeType !== "local" && /* @__PURE__ */ t(
|
|
251
|
-
|
|
251
|
+
dt,
|
|
252
252
|
{
|
|
253
253
|
type: h.badgeType,
|
|
254
254
|
showLabel: !0,
|
|
@@ -262,7 +262,7 @@ function Et({
|
|
|
262
262
|
/* @__PURE__ */ s("div", { className: "grid gap-2", children: [
|
|
263
263
|
/* @__PURE__ */ t(te, { htmlFor: "name", children: "Name" }),
|
|
264
264
|
/* @__PURE__ */ t(
|
|
265
|
-
|
|
265
|
+
st,
|
|
266
266
|
{
|
|
267
267
|
id: "name",
|
|
268
268
|
value: m,
|
|
@@ -298,20 +298,20 @@ function Et({
|
|
|
298
298
|
}
|
|
299
299
|
),
|
|
300
300
|
/* @__PURE__ */ s(I, { onClick: y, disabled: !b || n, children: [
|
|
301
|
-
n && /* @__PURE__ */ t(
|
|
301
|
+
n && /* @__PURE__ */ t(Q, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
302
302
|
h.actionLabel
|
|
303
303
|
] })
|
|
304
304
|
] })
|
|
305
305
|
] }) });
|
|
306
306
|
}
|
|
307
307
|
function St() {
|
|
308
|
-
const [e, a] = T(!1), [v, l] = T(!1), [n,
|
|
308
|
+
const [e, a] = T(!1), [v, l] = T(!1), [n, d] = T(null), [c, m] = T(null), i = j((u) => u.frame), r = j((u) => u.card), p = Te(), b = B((u) => u.selectedSheetId), h = B((u) => u.dashboard), y = B(
|
|
309
309
|
(u) => u.actions.setIsDashboardPanelOpen
|
|
310
|
-
), { getUpdatedFrame: E } = Ee(), { selectVisual: f } =
|
|
310
|
+
), { getUpdatedFrame: E } = Ee(), { selectVisual: f } = Pe(), { addFrame: w, setSelectedFrameId: S, setIsVisualEditing: C } = Z(), o = fe(), x = !!(i != null && i.visualId), N = (() => {
|
|
311
311
|
var u, g;
|
|
312
312
|
return ((u = i == null ? void 0 : i.cards) == null ? void 0 : u.length) === 1 && ((g = i.cards[0]) != null && g.title) ? i.cards[0].title : p != null && p.title ? p.title : (r == null ? void 0 : r.title) || "Untitled Visual";
|
|
313
|
-
})(), F =
|
|
314
|
-
u != null && u.id && (f(u), v && n &&
|
|
313
|
+
})(), F = ke((u) => {
|
|
314
|
+
u != null && u.id && (f(u), v && n && c && b && (async () => {
|
|
315
315
|
try {
|
|
316
316
|
const g = {
|
|
317
317
|
...n,
|
|
@@ -321,13 +321,13 @@ function St() {
|
|
|
321
321
|
};
|
|
322
322
|
w(b, g, {
|
|
323
323
|
position: "end",
|
|
324
|
-
semanticExecutionPayload:
|
|
325
|
-
}), S(g.id), l(!1),
|
|
324
|
+
semanticExecutionPayload: c
|
|
325
|
+
}), S(g.id), l(!1), d(null), m(null), C(!1);
|
|
326
326
|
} catch (g) {
|
|
327
327
|
console.error(
|
|
328
328
|
"Failed to promote semantic metadata for saved visual:",
|
|
329
329
|
g
|
|
330
|
-
),
|
|
330
|
+
), k.error(
|
|
331
331
|
g instanceof Error ? g.message : "Failed to prepare semantic metadata for the saved visual"
|
|
332
332
|
);
|
|
333
333
|
}
|
|
@@ -338,15 +338,15 @@ function St() {
|
|
|
338
338
|
setSaveAsDialogOpen: a,
|
|
339
339
|
handleSaveAs: async (u) => {
|
|
340
340
|
if (!b) {
|
|
341
|
-
|
|
341
|
+
k.error("No sheet selected");
|
|
342
342
|
return;
|
|
343
343
|
}
|
|
344
344
|
const g = E(), A = ye(g);
|
|
345
345
|
if (A) {
|
|
346
|
-
|
|
346
|
+
k.error(A);
|
|
347
347
|
return;
|
|
348
348
|
}
|
|
349
|
-
const
|
|
349
|
+
const P = g.cards.length === 1 ? {
|
|
350
350
|
...g,
|
|
351
351
|
cards: g.cards.map((L) => ({
|
|
352
352
|
...L,
|
|
@@ -358,61 +358,61 @@ function St() {
|
|
|
358
358
|
let L = null;
|
|
359
359
|
if (u.saveToCurrentDashboard)
|
|
360
360
|
try {
|
|
361
|
-
L = await o(
|
|
362
|
-
previousFrame: G(h,
|
|
361
|
+
L = await o(P, {
|
|
362
|
+
previousFrame: G(h, P.id)
|
|
363
363
|
});
|
|
364
364
|
} catch (M) {
|
|
365
365
|
console.error(
|
|
366
366
|
"Failed to prepare semantic metadata before saving visual:",
|
|
367
367
|
M
|
|
368
|
-
),
|
|
368
|
+
), k.error(
|
|
369
369
|
M instanceof Error ? M.message : "Failed to prepare semantic metadata for the saved visual"
|
|
370
370
|
);
|
|
371
371
|
return;
|
|
372
372
|
}
|
|
373
|
-
l(u.saveToCurrentDashboard),
|
|
373
|
+
l(u.saveToCurrentDashboard), d(P), m(L);
|
|
374
374
|
const V = {
|
|
375
375
|
title: u.name,
|
|
376
376
|
description: u.description,
|
|
377
|
-
frameObject:
|
|
377
|
+
frameObject: P,
|
|
378
378
|
// Card title synced for single-card frames
|
|
379
379
|
isPrivate: !1
|
|
380
380
|
};
|
|
381
381
|
F.mutate(V);
|
|
382
382
|
} else if (u.saveToCurrentDashboard) {
|
|
383
383
|
const L = {
|
|
384
|
-
...
|
|
384
|
+
...P,
|
|
385
385
|
// Card title already synced
|
|
386
386
|
id: ae(),
|
|
387
387
|
visualId: void 0
|
|
388
388
|
// Explicitly no visualId for local visuals
|
|
389
389
|
};
|
|
390
390
|
try {
|
|
391
|
-
const V = await o(
|
|
392
|
-
previousFrame: G(h,
|
|
391
|
+
const V = await o(P, {
|
|
392
|
+
previousFrame: G(h, P.id)
|
|
393
393
|
});
|
|
394
394
|
w(b, L, {
|
|
395
395
|
position: "end",
|
|
396
396
|
semanticExecutionPayload: V
|
|
397
|
-
}), S(L.id),
|
|
397
|
+
}), S(L.id), k.success("Visual saved to dashboard"), a(!1), C(!1);
|
|
398
398
|
} catch (V) {
|
|
399
|
-
console.error("Failed to save visual to dashboard:", V),
|
|
399
|
+
console.error("Failed to save visual to dashboard:", V), k.error(
|
|
400
400
|
V instanceof Error ? V.message : "Failed to prepare semantic metadata for the visual"
|
|
401
401
|
);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
},
|
|
405
405
|
isLibraryVisual: x,
|
|
406
|
-
currentVisualName:
|
|
406
|
+
currentVisualName: N,
|
|
407
407
|
isSaving: F.isPending
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
410
|
function zt(e = {}) {
|
|
411
|
-
const a =
|
|
411
|
+
const a = j((D) => D.frame), v = j((D) => D.editorContext), l = Ue((D) => D.selectedVisual), n = B((D) => D.selectedFrameId), d = B((D) => D.selectedSheetId), c = B((D) => D.dashboard), { setIsVisualEditing: m, updateFrame: i } = Z(), [r, p] = T(!1), [b, h] = T("both"), y = fe(), E = (v == null ? void 0 : v.type) === "documentSection", f = !!(a != null && a.visualId || l != null && l.id), w = !!(a != null && a.visualId && n), S = f && !w, {
|
|
412
412
|
saveAsDialogOpen: C,
|
|
413
413
|
setSaveAsDialogOpen: o,
|
|
414
414
|
handleSaveAs: x,
|
|
415
|
-
isLibraryVisual:
|
|
415
|
+
isLibraryVisual: N,
|
|
416
416
|
currentVisualName: F,
|
|
417
417
|
isSaving: U
|
|
418
418
|
} = St(), { getUpdatedFrame: u } = Ee();
|
|
@@ -422,44 +422,44 @@ function zt(e = {}) {
|
|
|
422
422
|
/* @__PURE__ */ t(re, {})
|
|
423
423
|
] });
|
|
424
424
|
const g = async () => {
|
|
425
|
-
if (!
|
|
426
|
-
|
|
425
|
+
if (!d) {
|
|
426
|
+
k.error("No sheet selected");
|
|
427
427
|
return;
|
|
428
428
|
}
|
|
429
429
|
if (r) return;
|
|
430
430
|
p(!0);
|
|
431
|
-
const
|
|
432
|
-
if (
|
|
433
|
-
p(!1),
|
|
431
|
+
const D = u(), P = ye(D);
|
|
432
|
+
if (P) {
|
|
433
|
+
p(!1), k.error(P);
|
|
434
434
|
return;
|
|
435
435
|
}
|
|
436
436
|
const L = {
|
|
437
|
-
...
|
|
437
|
+
...D,
|
|
438
438
|
visualId: void 0
|
|
439
|
-
}, V = G(
|
|
439
|
+
}, V = G(c, L.id);
|
|
440
440
|
try {
|
|
441
441
|
const M = await y(L, {
|
|
442
442
|
previousFrame: V
|
|
443
443
|
});
|
|
444
|
-
i(
|
|
444
|
+
i(d, L, {
|
|
445
445
|
semanticExecutionPayload: M
|
|
446
446
|
});
|
|
447
447
|
} catch (M) {
|
|
448
|
-
console.error("Failed to apply local semantic metadata:", M), p(!1),
|
|
448
|
+
console.error("Failed to apply local semantic metadata:", M), p(!1), k.error(
|
|
449
449
|
M instanceof Error ? M.message : "Failed to prepare semantic metadata for this visual"
|
|
450
450
|
);
|
|
451
451
|
return;
|
|
452
452
|
}
|
|
453
453
|
setTimeout(() => {
|
|
454
|
-
p(!1),
|
|
454
|
+
p(!1), k.success("Changes applied. Visual is now local to this dashboard"), m(!1);
|
|
455
455
|
}, 300);
|
|
456
|
-
}, A = (
|
|
457
|
-
h(
|
|
456
|
+
}, A = (D) => {
|
|
457
|
+
h(D), o(!0);
|
|
458
458
|
};
|
|
459
459
|
return /* @__PURE__ */ s(_, { children: [
|
|
460
460
|
/* @__PURE__ */ s("div", { className: "inline-flex items-center overflow-hidden rounded-control", children: [
|
|
461
461
|
!f && /* @__PURE__ */ t(se, { className: "!rounded-none", variant: "default" }),
|
|
462
|
-
f && S && /* @__PURE__ */ t(
|
|
462
|
+
f && S && /* @__PURE__ */ t(ct, { className: "!rounded-none", variant: "default" }),
|
|
463
463
|
f && w && /* @__PURE__ */ t(ut, { className: "!rounded-none" }),
|
|
464
464
|
/* @__PURE__ */ s(ve, { modal: !1, children: [
|
|
465
465
|
/* @__PURE__ */ t(ge, { asChild: !0, children: /* @__PURE__ */ t(
|
|
@@ -486,7 +486,7 @@ function zt(e = {}) {
|
|
|
486
486
|
onClick: g,
|
|
487
487
|
disabled: r,
|
|
488
488
|
children: [
|
|
489
|
-
/* @__PURE__ */ t(
|
|
489
|
+
/* @__PURE__ */ t(rt, { className: "h-3.5 w-3.5" }),
|
|
490
490
|
r ? "Applying..." : "Apply Locally"
|
|
491
491
|
]
|
|
492
492
|
}
|
|
@@ -536,10 +536,10 @@ function zt(e = {}) {
|
|
|
536
536
|
Et,
|
|
537
537
|
{
|
|
538
538
|
open: C,
|
|
539
|
-
onOpenChange: (
|
|
540
|
-
U || o(
|
|
539
|
+
onOpenChange: (D) => {
|
|
540
|
+
U || o(D);
|
|
541
541
|
},
|
|
542
|
-
isLibraryVisual:
|
|
542
|
+
isLibraryVisual: N,
|
|
543
543
|
currentVisualName: F,
|
|
544
544
|
isSaving: U,
|
|
545
545
|
destinationMode: b,
|
|
@@ -549,10 +549,10 @@ function zt(e = {}) {
|
|
|
549
549
|
] });
|
|
550
550
|
}
|
|
551
551
|
function Rt({ className: e }) {
|
|
552
|
-
const a =
|
|
553
|
-
if (!v || !
|
|
552
|
+
const a = j((r) => r.isDevMode), v = B((r) => r.isVisualEditing), { setIsDevMode: l } = ot(), { config: n } = Ae(Be).tokenProps, d = (n == null ? void 0 : n.showAdvancedMode) !== !1;
|
|
553
|
+
if (!v || !d)
|
|
554
554
|
return null;
|
|
555
|
-
const
|
|
555
|
+
const c = a ? Y : Oe, m = a ? "Drag & drop" : "SQL", i = a ? "Switch to drag-and-drop mode" : "Switch to SQL mode";
|
|
556
556
|
return /* @__PURE__ */ s(
|
|
557
557
|
"button",
|
|
558
558
|
{
|
|
@@ -560,12 +560,12 @@ function Rt({ className: e }) {
|
|
|
560
560
|
"aria-label": i,
|
|
561
561
|
title: i,
|
|
562
562
|
onClick: () => l(!a),
|
|
563
|
-
className:
|
|
563
|
+
className: H(
|
|
564
564
|
"inline-flex h-7 items-center gap-1.5 rounded-control border border-input bg-background px-2 text-[12px] font-medium text-foreground transition-colors hover:bg-muted/40 focus-visible:border-ring focus-visible:outline-none",
|
|
565
565
|
e
|
|
566
566
|
),
|
|
567
567
|
children: [
|
|
568
|
-
/* @__PURE__ */ t(
|
|
568
|
+
/* @__PURE__ */ t(c, { className: "h-3 w-3 text-muted-foreground" }),
|
|
569
569
|
m
|
|
570
570
|
]
|
|
571
571
|
}
|
|
@@ -577,8 +577,8 @@ function $t({
|
|
|
577
577
|
onSave: v,
|
|
578
578
|
onDiscard: l,
|
|
579
579
|
isSaving: n,
|
|
580
|
-
title:
|
|
581
|
-
description:
|
|
580
|
+
title: d = "Unsaved changes",
|
|
581
|
+
description: c = "You have unsaved changes to this dashboard. What would you like to do?",
|
|
582
582
|
cancelLabel: m = "Cancel",
|
|
583
583
|
discardLabel: i = "Discard",
|
|
584
584
|
saveLabel: r = "Save"
|
|
@@ -587,10 +587,10 @@ function $t({
|
|
|
587
587
|
!b && n || a(b);
|
|
588
588
|
}, children: /* @__PURE__ */ s(Re, { children: [
|
|
589
589
|
/* @__PURE__ */ s($e, { children: [
|
|
590
|
-
/* @__PURE__ */ t(_e, { children:
|
|
591
|
-
/* @__PURE__ */ t(
|
|
590
|
+
/* @__PURE__ */ t(_e, { children: d }),
|
|
591
|
+
/* @__PURE__ */ t(He, { children: c })
|
|
592
592
|
] }),
|
|
593
|
-
/* @__PURE__ */ s(
|
|
593
|
+
/* @__PURE__ */ s(je, { children: [
|
|
594
594
|
/* @__PURE__ */ t(
|
|
595
595
|
I,
|
|
596
596
|
{
|
|
@@ -605,7 +605,7 @@ function $t({
|
|
|
605
605
|
),
|
|
606
606
|
/* @__PURE__ */ t(Xe, { disabled: n, children: m }),
|
|
607
607
|
/* @__PURE__ */ t(I, { type: "button", size: "xs", onClick: v, disabled: n, children: n ? /* @__PURE__ */ s(_, { children: [
|
|
608
|
-
/* @__PURE__ */ t(
|
|
608
|
+
/* @__PURE__ */ t(Q, { className: "mr-2 h-3.5 w-3.5 animate-spin" }),
|
|
609
609
|
"Saving..."
|
|
610
610
|
] }) : r })
|
|
611
611
|
] })
|
|
@@ -622,13 +622,13 @@ function At({
|
|
|
622
622
|
}, n = () => {
|
|
623
623
|
switch (e.status) {
|
|
624
624
|
case "completed":
|
|
625
|
-
return /* @__PURE__ */ t(
|
|
625
|
+
return /* @__PURE__ */ t(Ke, { className: "mt-0.5 h-5 w-5 shrink-0 text-green-600" });
|
|
626
626
|
case "failed":
|
|
627
627
|
return /* @__PURE__ */ t(pt, { className: "mt-0.5 h-5 w-5 shrink-0 text-destructive" });
|
|
628
628
|
default:
|
|
629
|
-
return /* @__PURE__ */ t(
|
|
629
|
+
return /* @__PURE__ */ t(Q, { className: "text-foreground-muted mt-0.5 h-5 w-5 shrink-0 animate-spin" });
|
|
630
630
|
}
|
|
631
|
-
},
|
|
631
|
+
}, d = q(e.status), c = (() => {
|
|
632
632
|
switch (e.status) {
|
|
633
633
|
case "pending":
|
|
634
634
|
return "Queued...";
|
|
@@ -658,7 +658,7 @@ function At({
|
|
|
658
658
|
/* @__PURE__ */ t("span", { children: Ge(e.fileSize) })
|
|
659
659
|
] })
|
|
660
660
|
] }),
|
|
661
|
-
|
|
661
|
+
d && /* @__PURE__ */ t("div", { className: "text-xs text-muted-foreground", children: c }),
|
|
662
662
|
e.status === "failed" && /* @__PURE__ */ t("div", { className: "line-clamp-2 text-xs text-destructive", children: e.error || "Export failed" })
|
|
663
663
|
] })
|
|
664
664
|
] }),
|
|
@@ -670,7 +670,7 @@ function At({
|
|
|
670
670
|
className: "h-6 w-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100",
|
|
671
671
|
onClick: l,
|
|
672
672
|
"aria-label": "Remove notification",
|
|
673
|
-
children: /* @__PURE__ */ t(
|
|
673
|
+
children: /* @__PURE__ */ t(nt, { className: "h-4 w-4" })
|
|
674
674
|
}
|
|
675
675
|
)
|
|
676
676
|
] }),
|
|
@@ -685,14 +685,14 @@ function At({
|
|
|
685
685
|
className: "h-8 bg-transparent",
|
|
686
686
|
onClick: v,
|
|
687
687
|
children: [
|
|
688
|
-
/* @__PURE__ */ t(
|
|
688
|
+
/* @__PURE__ */ t(We, { className: "mr-1.5 h-3.5 w-3.5" }),
|
|
689
689
|
"Download"
|
|
690
690
|
]
|
|
691
691
|
}
|
|
692
692
|
)
|
|
693
693
|
] }),
|
|
694
|
-
|
|
695
|
-
/* @__PURE__ */ t(
|
|
694
|
+
d && /* @__PURE__ */ s("div", { children: [
|
|
695
|
+
/* @__PURE__ */ t(qe, { value: e.progress, className: "h-1.5" }),
|
|
696
696
|
/* @__PURE__ */ s("span", { className: "mt-1 block text-xs text-muted-foreground", children: [
|
|
697
697
|
e.progress,
|
|
698
698
|
"% complete"
|
|
@@ -703,7 +703,7 @@ function At({
|
|
|
703
703
|
] });
|
|
704
704
|
}
|
|
705
705
|
function It() {
|
|
706
|
-
const { authToken: e, tokenProps: a } =
|
|
706
|
+
const { authToken: e, tokenProps: a } = W(), v = z((f) => f.activeExports), { clearCompleted: l, removeExport: n, updateExport: d } = de(), [c, m] = T(!1), [i, r] = T(!1), p = Array.from(v.values()).sort(
|
|
707
707
|
(f, w) => w.startedAt.getTime() - f.startedAt.getTime()
|
|
708
708
|
), b = p.some(
|
|
709
709
|
(f) => f.status === "completed" || f.status === "failed"
|
|
@@ -720,15 +720,15 @@ function It() {
|
|
|
720
720
|
let x;
|
|
721
721
|
if (o.status === "completed")
|
|
722
722
|
try {
|
|
723
|
-
x = await
|
|
723
|
+
x = await K(
|
|
724
724
|
f,
|
|
725
725
|
w,
|
|
726
726
|
C.id
|
|
727
727
|
);
|
|
728
|
-
} catch (
|
|
729
|
-
console.error(`Failed to get download URL for ${C.id}:`,
|
|
728
|
+
} catch (N) {
|
|
729
|
+
console.error(`Failed to get download URL for ${C.id}:`, N);
|
|
730
730
|
}
|
|
731
|
-
|
|
731
|
+
d(C.id, {
|
|
732
732
|
status: o.status,
|
|
733
733
|
progress: o.progress,
|
|
734
734
|
completedChunks: o.completedChunks,
|
|
@@ -751,7 +751,7 @@ function It() {
|
|
|
751
751
|
v,
|
|
752
752
|
e == null ? void 0 : e.accessToken,
|
|
753
753
|
a == null ? void 0 : a.apiServiceUrl,
|
|
754
|
-
|
|
754
|
+
d
|
|
755
755
|
]), y = $(async () => {
|
|
756
756
|
const f = a == null ? void 0 : a.apiServiceUrl, w = e == null ? void 0 : e.accessToken;
|
|
757
757
|
if (!f || !w) {
|
|
@@ -808,12 +808,12 @@ function It() {
|
|
|
808
808
|
size: "sm",
|
|
809
809
|
className: "h-7 w-7 p-0",
|
|
810
810
|
onClick: h,
|
|
811
|
-
disabled:
|
|
811
|
+
disabled: c,
|
|
812
812
|
title: "Refresh status",
|
|
813
813
|
children: /* @__PURE__ */ t(
|
|
814
|
-
|
|
814
|
+
Qe,
|
|
815
815
|
{
|
|
816
|
-
className: `h-4 w-4 ${
|
|
816
|
+
className: `h-4 w-4 ${c ? "animate-spin" : ""}`
|
|
817
817
|
}
|
|
818
818
|
)
|
|
819
819
|
}
|
|
@@ -846,9 +846,9 @@ function _t({
|
|
|
846
846
|
}) {
|
|
847
847
|
const a = z((i) => i.activeExports), v = Ze(), l = a.size > 0, n = Array.from(a.values()).some(
|
|
848
848
|
(i) => i.status === "completed" || i.status === "failed"
|
|
849
|
-
),
|
|
849
|
+
), c = v > 0 ? v > 9 ? "9+" : String(v) : null;
|
|
850
850
|
return /* @__PURE__ */ s(Ce, { children: [
|
|
851
|
-
/* @__PURE__ */ t(
|
|
851
|
+
/* @__PURE__ */ t(De, { asChild: !0, children: /* @__PURE__ */ s(
|
|
852
852
|
I,
|
|
853
853
|
{
|
|
854
854
|
variant: e ?? "ghost",
|
|
@@ -860,14 +860,14 @@ function _t({
|
|
|
860
860
|
l && /* @__PURE__ */ t(
|
|
861
861
|
"span",
|
|
862
862
|
{
|
|
863
|
-
className: `absolute flex items-center justify-center rounded-full bg-primary text-primary-foreground ${
|
|
864
|
-
children:
|
|
863
|
+
className: `absolute flex items-center justify-center rounded-full bg-primary text-primary-foreground ${c ? "-right-0.5 -top-0.5 h-3.5 min-w-3.5 px-0.5 text-[9px] font-semibold" : "right-1 top-1 h-1.5 w-1.5"}`,
|
|
864
|
+
children: c
|
|
865
865
|
}
|
|
866
866
|
)
|
|
867
867
|
]
|
|
868
868
|
}
|
|
869
869
|
) }),
|
|
870
|
-
/* @__PURE__ */ t(
|
|
870
|
+
/* @__PURE__ */ t(Ne, { className: "w-80 p-0", align: "end", sideOffset: 8, children: /* @__PURE__ */ t(It, {}) })
|
|
871
871
|
] });
|
|
872
872
|
}
|
|
873
873
|
function Ft(e) {
|
|
@@ -879,15 +879,15 @@ function Ft(e) {
|
|
|
879
879
|
affectedBindingControlIds: e.type === "add" || e.type === "update" ? e.affectedBindingControlIds : void 0
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function Ht({
|
|
883
883
|
open: e,
|
|
884
884
|
onOpenChange: a,
|
|
885
885
|
trigger: v,
|
|
886
886
|
showTrigger: l = !0,
|
|
887
887
|
initialMode: n = "manage"
|
|
888
888
|
}) {
|
|
889
|
-
const
|
|
890
|
-
forceClose:
|
|
889
|
+
const d = n === "create", {
|
|
890
|
+
forceClose: c,
|
|
891
891
|
handleOpenChange: m,
|
|
892
892
|
isCreateFlowActive: i,
|
|
893
893
|
preventPassiveDismissDuringCreate: r,
|
|
@@ -904,7 +904,7 @@ function jt({
|
|
|
904
904
|
// create and make consumers use `forceClose()` from a dedicated
|
|
905
905
|
// button.
|
|
906
906
|
dismissMode: l ? "passive" : "explicit-only"
|
|
907
|
-
}), h = B((u) => u.dashboard), { setDashboardControlsModel: y } = Z(), { participants: E } = Je(
|
|
907
|
+
}), h = B((u) => u.dashboard), { setDashboardControlsModel: y } = Z(), { participants: E } = Je(it(h)), f = Array.from(
|
|
908
908
|
new Map(
|
|
909
909
|
E.flatMap(
|
|
910
910
|
(u) => u.fieldChoices.map((g) => {
|
|
@@ -934,29 +934,29 @@ function jt({
|
|
|
934
934
|
})
|
|
935
935
|
)
|
|
936
936
|
).values()
|
|
937
|
-
), S =
|
|
937
|
+
), S = lt({
|
|
938
938
|
...h || {},
|
|
939
939
|
controls: []
|
|
940
|
-
}), C =
|
|
940
|
+
}), C = et(h), o = (u, g, A) => {
|
|
941
941
|
y(
|
|
942
942
|
u,
|
|
943
943
|
g,
|
|
944
944
|
Ft(A)
|
|
945
945
|
);
|
|
946
946
|
}, x = $(() => {
|
|
947
|
-
if (
|
|
948
|
-
|
|
947
|
+
if (d) {
|
|
948
|
+
c();
|
|
949
949
|
return;
|
|
950
950
|
}
|
|
951
951
|
b(!1);
|
|
952
|
-
}, [
|
|
952
|
+
}, [d, c, b]), N = /* @__PURE__ */ t(
|
|
953
953
|
vt,
|
|
954
954
|
{
|
|
955
955
|
scope: "dashboard",
|
|
956
956
|
controls: h.controls || [],
|
|
957
957
|
reservedControlIds: S,
|
|
958
958
|
defaultValues: h.defaultControlValues || {},
|
|
959
|
-
usageByControlId:
|
|
959
|
+
usageByControlId: tt(h),
|
|
960
960
|
availableFieldChoices: f,
|
|
961
961
|
availableMetricChoices: w,
|
|
962
962
|
structuralParticipants: E,
|
|
@@ -972,15 +972,15 @@ function jt({
|
|
|
972
972
|
/* @__PURE__ */ t("h4", { className: "text-sm font-medium", children: "Dashboard Controls" }),
|
|
973
973
|
/* @__PURE__ */ t("p", { className: "text-xs text-muted-foreground", children: "Add shared controls viewers can use across the dashboard. Each card can decide how to respond to the same control." })
|
|
974
974
|
] }),
|
|
975
|
-
|
|
975
|
+
N
|
|
976
976
|
] });
|
|
977
977
|
return l ? /* @__PURE__ */ s(Ce, { open: p, onOpenChange: m, children: [
|
|
978
|
-
/* @__PURE__ */ t(
|
|
978
|
+
/* @__PURE__ */ t(De, { asChild: !0, children: v || /* @__PURE__ */ s(I, { variant: "outline", className: "h-7 px-2", size: "sm", children: [
|
|
979
979
|
/* @__PURE__ */ t(Y, { className: "mr-2 h-4 w-4" }),
|
|
980
980
|
"Controls"
|
|
981
981
|
] }) }),
|
|
982
982
|
/* @__PURE__ */ t(
|
|
983
|
-
|
|
983
|
+
Ne,
|
|
984
984
|
{
|
|
985
985
|
className: "w-[620px] max-w-[95vw] space-y-4",
|
|
986
986
|
align: "end",
|
|
@@ -989,7 +989,7 @@ function jt({
|
|
|
989
989
|
children: U
|
|
990
990
|
}
|
|
991
991
|
)
|
|
992
|
-
] }) : /* @__PURE__ */ t(
|
|
992
|
+
] }) : /* @__PURE__ */ t(ce, { open: p, onOpenChange: m, children: /* @__PURE__ */ s(
|
|
993
993
|
ue,
|
|
994
994
|
{
|
|
995
995
|
className: "flex max-h-[88vh] flex-col overflow-hidden sm:max-w-[600px]",
|
|
@@ -1012,19 +1012,19 @@ function jt({
|
|
|
1012
1012
|
]
|
|
1013
1013
|
}
|
|
1014
1014
|
),
|
|
1015
|
-
/* @__PURE__ */ t("div", { className: "min-h-0 overflow-y-auto pr-1", children:
|
|
1015
|
+
/* @__PURE__ */ t("div", { className: "min-h-0 overflow-y-auto pr-1", children: N })
|
|
1016
1016
|
]
|
|
1017
1017
|
}
|
|
1018
1018
|
) });
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1020
|
+
function jt({
|
|
1021
1021
|
showFilters: e,
|
|
1022
1022
|
onToggleFilters: a,
|
|
1023
1023
|
onAddFilter: v,
|
|
1024
1024
|
onAddControl: l,
|
|
1025
1025
|
onManageControls: n,
|
|
1026
|
-
size:
|
|
1027
|
-
className:
|
|
1026
|
+
size: d = "default",
|
|
1027
|
+
className: c,
|
|
1028
1028
|
primaryButtonClassName: m,
|
|
1029
1029
|
secondaryButtonClassName: i,
|
|
1030
1030
|
dropdownContentClassName: r
|
|
@@ -1032,14 +1032,14 @@ function Ht({
|
|
|
1032
1032
|
return /* @__PURE__ */ s(
|
|
1033
1033
|
"div",
|
|
1034
1034
|
{
|
|
1035
|
-
className:
|
|
1035
|
+
className: H(
|
|
1036
1036
|
// Height lives on the shell so the outer border is part of the
|
|
1037
1037
|
// h-7 box (matches regular `size="xs"` buttons). Inner buttons
|
|
1038
1038
|
// stretch to fill via `h-full`, avoiding the 2px stack-up that
|
|
1039
1039
|
// makes the combo taller than a sibling `<Button size="xs">`.
|
|
1040
1040
|
"relative inline-flex items-stretch overflow-hidden rounded-control border border-input bg-background",
|
|
1041
|
-
|
|
1042
|
-
|
|
1041
|
+
d === "toolbar" ? "h-8" : "h-7",
|
|
1042
|
+
c
|
|
1043
1043
|
),
|
|
1044
1044
|
children: [
|
|
1045
1045
|
/* @__PURE__ */ s(
|
|
@@ -1047,7 +1047,7 @@ function Ht({
|
|
|
1047
1047
|
{
|
|
1048
1048
|
variant: "ghost",
|
|
1049
1049
|
size: "xs",
|
|
1050
|
-
className:
|
|
1050
|
+
className: H(
|
|
1051
1051
|
"h-full rounded-none border-0 bg-transparent pl-2.5 pr-2 shadow-none hover:bg-accent/50",
|
|
1052
1052
|
m
|
|
1053
1053
|
),
|
|
@@ -1064,7 +1064,7 @@ function Ht({
|
|
|
1064
1064
|
{
|
|
1065
1065
|
variant: "ghost",
|
|
1066
1066
|
size: "xs",
|
|
1067
|
-
className:
|
|
1067
|
+
className: H(
|
|
1068
1068
|
"h-full w-7 rounded-none border-0 border-l border-border/60 bg-transparent px-0 shadow-none hover:bg-accent/50",
|
|
1069
1069
|
i
|
|
1070
1070
|
),
|
|
@@ -1076,7 +1076,7 @@ function Ht({
|
|
|
1076
1076
|
be,
|
|
1077
1077
|
{
|
|
1078
1078
|
align: "start",
|
|
1079
|
-
className:
|
|
1079
|
+
className: H(
|
|
1080
1080
|
"min-w-[180px] rounded-control border border-border/60 p-1 shadow-sm",
|
|
1081
1081
|
r
|
|
1082
1082
|
),
|
|
@@ -1090,7 +1090,7 @@ function Ht({
|
|
|
1090
1090
|
"Add control"
|
|
1091
1091
|
] }),
|
|
1092
1092
|
/* @__PURE__ */ s(R, { onSelect: n, children: [
|
|
1093
|
-
/* @__PURE__ */ t(
|
|
1093
|
+
/* @__PURE__ */ t(at, { className: "h-3.5 w-3.5" }),
|
|
1094
1094
|
"Manage controls"
|
|
1095
1095
|
] })
|
|
1096
1096
|
]
|
|
@@ -1103,13 +1103,13 @@ function Ht({
|
|
|
1103
1103
|
}
|
|
1104
1104
|
export {
|
|
1105
1105
|
Rt as A,
|
|
1106
|
-
|
|
1106
|
+
Ht as D,
|
|
1107
1107
|
It as E,
|
|
1108
1108
|
_t as N,
|
|
1109
1109
|
$t as U,
|
|
1110
1110
|
zt as V,
|
|
1111
1111
|
At as a,
|
|
1112
1112
|
Ot as b,
|
|
1113
|
-
|
|
1113
|
+
jt as c,
|
|
1114
1114
|
Bt as u
|
|
1115
1115
|
};
|