react-semaphor 0.1.229 → 0.1.231
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/chunks/dashboard-controls-D5LGwleP.js +47 -0
- package/dist/chunks/dashboard-controls-WDfLhTmh.js +1837 -0
- package/dist/chunks/{dashboard-json-C6i1R8Wf.js → dashboard-json-BWWfRH2_.js} +1 -1
- package/dist/chunks/{dashboard-json-Bb4sPs1-.js → dashboard-json-DXunjBeA.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-B-EIaEfz.js → dashboard-summary-settings-dialog-BzEEwHOF.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-B5oZC5Et.js → dashboard-summary-settings-dialog-CB5TScfc.js} +23 -23
- package/dist/chunks/{edit-dashboard-visual-BrR2eN_x.js → edit-dashboard-visual-CCQoz0-3.js} +3 -3
- package/dist/chunks/{edit-dashboard-visual-BhqnGTNb.js → edit-dashboard-visual-Ct8MHaNG.js} +461 -461
- package/dist/chunks/{editor-action-buttons-BuGSShg4.js → editor-action-buttons-TCC22i95.js} +42 -42
- package/dist/chunks/{editor-action-buttons-DZHYde-x.js → editor-action-buttons-acRlz-51.js} +1 -1
- package/dist/chunks/{index-C_FfPMsT.js → index-BSv9U5tc.js} +5658 -5645
- package/dist/chunks/{index--t-xJkFo.js → index-CcysLOA4.js} +161 -161
- package/dist/chunks/{notification-bell-BJx5GZ0K.js → notification-bell-a6BxRjVN.js} +60 -60
- package/dist/chunks/{notification-bell-BUK6qo6E.js → notification-bell-z7oT5LAh.js} +1 -1
- package/dist/chunks/resource-management-panel-6WdgxllK.js +6 -0
- package/dist/chunks/resource-management-panel-BacphZKd.js +920 -0
- package/dist/chunks/{use-visual-utils-C-1MadD0.js → use-visual-utils-Bgi4-2vL.js} +33 -33
- package/dist/chunks/{use-visual-utils-CckIJVB_.js → use-visual-utils-CUrMP3ER.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +44 -44
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/dashboard-controls-C4Yq0TiH.js +0 -1764
- package/dist/chunks/dashboard-controls-DUVPeEnP.js +0 -47
- package/dist/chunks/resource-management-panel-C--Zp8ix.js +0 -6
- package/dist/chunks/resource-management-panel-CliUOxsc.js +0 -913
- package/dist/chunks/use-role-aware-display-preferences-Dza-JBu0.js +0 -29
- package/dist/chunks/use-role-aware-display-preferences-YdbXXiO7.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { jsx as y, jsxs as f, Fragment as
|
|
3
|
-
import { u as be, a as
|
|
1
|
+
import { bK as T, U as i, bL as B, bM as te, bN as se, bO as re, bP as le, bQ as oe, u as V, a9 as ne, bR as ie, bS as de, bT as ue, bU as ce, c as S, bV as pe, bW as me, M as x, B as I, s as ye, H as D, N as U, J as K, bX as j, w as O, bY as H, X, x as C } from "./index-BSv9U5tc.js";
|
|
2
|
+
import { jsx as y, jsxs as f, Fragment as q } from "react/jsx-runtime";
|
|
3
|
+
import { u as be, a as M } from "./use-visual-utils-Bgi4-2vL.js";
|
|
4
4
|
import { useMemo as k, useState as G } from "react";
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -42,7 +42,7 @@ const fe = T("Link2", [
|
|
|
42
42
|
* This source code is licensed under the ISC license.
|
|
43
43
|
* See the LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
const
|
|
45
|
+
const R = T("Save", [
|
|
46
46
|
[
|
|
47
47
|
"path",
|
|
48
48
|
{
|
|
@@ -53,7 +53,7 @@ const Y = T("Save", [
|
|
|
53
53
|
["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
|
|
54
54
|
["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
|
|
55
55
|
]);
|
|
56
|
-
function
|
|
56
|
+
function J() {
|
|
57
57
|
var e, m;
|
|
58
58
|
const r = i((p) => p.card), d = i((p) => p.frame), l = k(
|
|
59
59
|
() => B(d, r),
|
|
@@ -96,7 +96,7 @@ function Ne({
|
|
|
96
96
|
className: l,
|
|
97
97
|
showLabel: c = !1
|
|
98
98
|
}) {
|
|
99
|
-
const t =
|
|
99
|
+
const t = V((v) => v.selectedFrameId), s = ne((v) => v.selectedVisual), o = i((v) => v.frame);
|
|
100
100
|
let a;
|
|
101
101
|
if (r)
|
|
102
102
|
a = r;
|
|
@@ -176,12 +176,12 @@ function ve(r, d) {
|
|
|
176
176
|
type: d ? r.type : "bar"
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function xe({
|
|
180
180
|
className: r,
|
|
181
181
|
variant: d = "outline"
|
|
182
182
|
}) {
|
|
183
183
|
var a;
|
|
184
|
-
const { setCardSql: l } =
|
|
184
|
+
const { setCardSql: l } = x();
|
|
185
185
|
i((e) => e.frame);
|
|
186
186
|
const c = i((e) => e.card);
|
|
187
187
|
be(
|
|
@@ -195,7 +195,7 @@ function qe({
|
|
|
195
195
|
), i((e) => e.selectedTableName), i(
|
|
196
196
|
(e) => e.selectedConnectionId
|
|
197
197
|
), i((e) => e.isShowingVisual), c.sql;
|
|
198
|
-
const t = i((e) => e.onSave), { getUpdatedFrame: s } =
|
|
198
|
+
const t = i((e) => e.onSave), { getUpdatedFrame: s } = M();
|
|
199
199
|
function o() {
|
|
200
200
|
const e = s();
|
|
201
201
|
t == null || t(e);
|
|
@@ -214,13 +214,13 @@ function qe({
|
|
|
214
214
|
}
|
|
215
215
|
);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function qe({
|
|
218
218
|
className: r,
|
|
219
219
|
variant: d = "default"
|
|
220
220
|
}) {
|
|
221
|
-
const l =
|
|
221
|
+
const l = D(), [c, t] = G(!1), s = V(
|
|
222
222
|
(n) => n.actions.setIsDashboardPanelOpen
|
|
223
|
-
), { setIsVisualEditing: o } = U(), { getUpdatedFrame: a } =
|
|
223
|
+
), { setIsVisualEditing: o } = U(), { getUpdatedFrame: a } = M(), e = K(), m = i((n) => n.frame), p = j();
|
|
224
224
|
return /* @__PURE__ */ f(
|
|
225
225
|
I,
|
|
226
226
|
{
|
|
@@ -254,12 +254,12 @@ function xe({
|
|
|
254
254
|
size: "sm",
|
|
255
255
|
variant: d,
|
|
256
256
|
children: [
|
|
257
|
-
c && /* @__PURE__ */ f(
|
|
257
|
+
c && /* @__PURE__ */ f(q, { children: [
|
|
258
258
|
/* @__PURE__ */ y(O, { className: "mr-2 size-4 animate-spin font-bold" }),
|
|
259
259
|
" Saving"
|
|
260
260
|
] }),
|
|
261
|
-
!c && /* @__PURE__ */ f(
|
|
262
|
-
/* @__PURE__ */ y(
|
|
261
|
+
!c && /* @__PURE__ */ f(q, { children: [
|
|
262
|
+
/* @__PURE__ */ y(R, { className: "mr-2 size-4 font-bold" }),
|
|
263
263
|
"Save to Library"
|
|
264
264
|
] })
|
|
265
265
|
]
|
|
@@ -269,7 +269,7 @@ function xe({
|
|
|
269
269
|
function Te({
|
|
270
270
|
className: r
|
|
271
271
|
}) {
|
|
272
|
-
const d =
|
|
272
|
+
const d = D(), [l, c] = G(!1), t = K(), s = i((n) => n.frame), o = V((n) => n.selectedSheetId), { updateFrame: a, setIsVisualEditing: e } = U(), { getUpdatedFrame: m } = M(), p = j();
|
|
273
273
|
return /* @__PURE__ */ y(
|
|
274
274
|
I,
|
|
275
275
|
{
|
|
@@ -310,18 +310,18 @@ function Te({
|
|
|
310
310
|
size: "sm",
|
|
311
311
|
variant: "default",
|
|
312
312
|
disabled: l,
|
|
313
|
-
children: l ? /* @__PURE__ */ f(
|
|
313
|
+
children: l ? /* @__PURE__ */ f(q, { children: [
|
|
314
314
|
/* @__PURE__ */ y(O, { className: "mr-2 size-4 animate-spin font-bold" }),
|
|
315
315
|
" Saving..."
|
|
316
|
-
] }) : /* @__PURE__ */ f(
|
|
317
|
-
/* @__PURE__ */ y(
|
|
316
|
+
] }) : /* @__PURE__ */ f(q, { children: [
|
|
317
|
+
/* @__PURE__ */ y(R, { className: "mr-2 size-4 font-bold" }),
|
|
318
318
|
"Save & Apply"
|
|
319
319
|
] })
|
|
320
320
|
}
|
|
321
321
|
);
|
|
322
322
|
}
|
|
323
|
-
function
|
|
324
|
-
const { setTempQueryData: d, setSqlGen: l } =
|
|
323
|
+
function De({ className: r }) {
|
|
324
|
+
const { setTempQueryData: d, setSqlGen: l } = x(), c = D(), t = i((u) => u.tempQueryData), s = i((u) => u.onClose), o = i((u) => u.card), a = J(), e = k(() => a !== o.type ? { ...o, type: a } : o, [o, a]), { queryKey: m } = H(e);
|
|
325
325
|
function p() {
|
|
326
326
|
if (t) {
|
|
327
327
|
const { queryKey: u, queryData: n } = t;
|
|
@@ -343,38 +343,38 @@ function Ve({ className: r }) {
|
|
|
343
343
|
}
|
|
344
344
|
);
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function Fe({
|
|
347
347
|
label: r = "Clear",
|
|
348
348
|
variant: d = "secondary",
|
|
349
349
|
className: l
|
|
350
350
|
} = {}) {
|
|
351
|
-
const { setTempQueryData: c } =
|
|
351
|
+
const { setTempQueryData: c } = x(), t = D(), s = i((g) => g.tempQueryData), o = i((g) => g.card), a = J(), e = k(() => a !== o.type ? { ...o, type: a } : o, [o, a]), { queryKey: m } = H(e), {
|
|
352
352
|
setCardSql: p,
|
|
353
353
|
setSqlGen: u,
|
|
354
354
|
setCardPython: n,
|
|
355
355
|
setCardCustomCfg: b,
|
|
356
356
|
setCardPreferences: v,
|
|
357
|
-
clearQueryConfig:
|
|
358
|
-
setCardConfig:
|
|
359
|
-
setCardType:
|
|
360
|
-
setFrame:
|
|
361
|
-
setCard:
|
|
357
|
+
clearQueryConfig: W,
|
|
358
|
+
setCardConfig: Y,
|
|
359
|
+
setCardType: Z,
|
|
360
|
+
setFrame: _,
|
|
361
|
+
setCard: $,
|
|
362
362
|
setActiveTabCardId: ee
|
|
363
|
-
} =
|
|
363
|
+
} = x();
|
|
364
364
|
function ae() {
|
|
365
|
-
var
|
|
365
|
+
var A, Q, E, w;
|
|
366
366
|
const g = t.getQueryData(m);
|
|
367
367
|
s != null && s.queryData || c({
|
|
368
368
|
queryKey: m,
|
|
369
369
|
queryData: g
|
|
370
|
-
}), t.setQueryData(m, null), t.removeQueries({ queryKey: m, exact: !0 }), p(""), u({}),
|
|
371
|
-
const
|
|
372
|
-
|
|
373
|
-
...
|
|
374
|
-
cards:
|
|
370
|
+
}), t.setQueryData(m, null), t.removeQueries({ queryKey: m, exact: !0 }), p(""), u({}), W(), Y(void 0), n(""), b(""), v({});
|
|
371
|
+
const F = i.getState().frame, P = i.getState().card, h = B(F, P), z = ((A = h == null ? void 0 : h.customCardPreferences) == null ? void 0 : A.visualType) === "multiple" || !!((Q = h == null ? void 0 : h.customCardPreferences) != null && Q.dataInputCardIds) || (((E = h == null ? void 0 : h.customCardPreferences) == null ? void 0 : E.minInputs) || 0) > 1 || (((w = h == null ? void 0 : h.customCardPreferences) == null ? void 0 : w.maxInputs) || 0) > 1, N = ve(P, z);
|
|
372
|
+
_({
|
|
373
|
+
...F,
|
|
374
|
+
cards: F.cards.map(
|
|
375
375
|
(L) => L.id === N.id ? N : L
|
|
376
376
|
)
|
|
377
|
-
}), ee(N.id),
|
|
377
|
+
}), ee(N.id), $(N), z || Z("bar");
|
|
378
378
|
}
|
|
379
379
|
return /* @__PURE__ */ f(
|
|
380
380
|
I,
|
|
@@ -392,14 +392,14 @@ function De({
|
|
|
392
392
|
}
|
|
393
393
|
export {
|
|
394
394
|
Ie as C,
|
|
395
|
-
|
|
395
|
+
xe as E,
|
|
396
396
|
he as L,
|
|
397
|
-
|
|
397
|
+
R as S,
|
|
398
398
|
Ne as V,
|
|
399
|
-
|
|
399
|
+
qe as a,
|
|
400
400
|
Te as b,
|
|
401
401
|
fe as c,
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
402
|
+
De as d,
|
|
403
|
+
Fe as e,
|
|
404
|
+
J as u
|
|
405
405
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("./index
|
|
1
|
+
"use strict";const e=require("./index-CcysLOA4.js"),a=require("react/jsx-runtime"),k=require("./use-visual-utils-CUrMP3ER.js"),v=require("react");/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|