react-semaphor 0.1.556 → 0.1.557
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DATA_APP_SDK.md +6 -29
- package/dist/analytics-protocol/index.js +19 -20
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +28 -29
- package/dist/briefings/index.js +55 -56
- package/dist/chunks/{assistant-chat-C7Acww1T.js → assistant-chat-WMTpYirZ.js} +78 -80
- package/dist/chunks/{bookmark-state-7iZErWnR.js → bookmark-state-PjQpxbG7.js} +3 -3
- package/dist/chunks/{braces-o9UiRQes.js → braces-BOErQVyi.js} +1 -1
- package/dist/chunks/{comparison-window-caption-BseG5aOZ.js → comparison-window-caption-Dc7BaCMz.js} +186 -189
- package/dist/chunks/{custom-visual-inputs-ChuKjx27.js → custom-visual-inputs-CxYI-gFa.js} +1 -1
- package/dist/chunks/{dashboard-BU6rE5kV.js → dashboard-4D8Vy4pL.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-qrYd2zkN.js → dashboard-briefing-launcher-C4EmOfxs.js} +147 -149
- package/dist/chunks/{dashboard-controls-BsapXI2H.js → dashboard-controls-DBWykmvL.js} +170 -172
- package/dist/chunks/{dashboard-json-CJqPqYnI.js → dashboard-json-DiX-p0F7.js} +20 -21
- package/dist/chunks/{document-dashboard-inputs-BNSprf5_.js → document-dashboard-inputs-DP5hquBR.js} +30 -30
- package/dist/chunks/{edit-dashboard-visual-CjAdV-WG.js → edit-dashboard-visual-n1jLV_7V.js} +4773 -4802
- package/dist/chunks/{filter-reach-copy-BTrqtFkh.js → filter-reach-copy-BB9iakLA.js} +147 -148
- package/dist/chunks/{filter-value-text-CJTJDCym.js → filter-value-text-CUBpotVN.js} +3 -3
- package/dist/chunks/{global-date-filter-utils-CTVf3dG3.js → global-date-filter-utils-Cc5tqkoW.js} +585 -591
- package/dist/chunks/{index-B_vIRa-q.js → index-CgjhzkKM.js} +69 -70
- package/dist/chunks/{layout-grid-Bgzth8vd.js → layout-grid-CcNklCwL.js} +1 -1
- package/dist/chunks/{list-filter-DsaTbM3J.js → list-filter-Ds_4UTpD.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-Cg0ioFGQ.js → matrix-analytical-definition-4GTUDheD.js} +3 -3
- package/dist/chunks/{matrix-card-yYibXSw1.js → matrix-card-fS_4O7zA.js} +2 -2
- package/dist/chunks/{matrix-member-presentation-DEEauKXC.js → matrix-member-presentation-Dj7HaAHC.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-C1G6AJNh.js → matrix-operation-contract-CpgLZ7E5.js} +21 -21
- package/dist/chunks/{metric-comparison-BfcmwxM1.js → metric-comparison-C8LY7GG5.js} +1 -1
- package/dist/chunks/{palette-D10o_yYX.js → palette-DMkIhagj.js} +1 -1
- package/dist/chunks/{matrix-formatter-C2kjsCDf.js → pivot-result-contract-expectations-DMk-mKhG.js} +444 -395
- package/dist/chunks/{pivot-result-identity-CWi5WrrY.js → pivot-result-identity-CrQ54Xbj.js} +1 -1
- package/dist/chunks/{raw-temporal-presentation-DWzLIHc3.js → raw-temporal-presentation-DdEpgPRB.js} +24 -25
- package/dist/chunks/report-preferences-dialog-CFg5VFLk.js +2109 -0
- package/dist/chunks/{report-runtime-context-BgM-iNWB.js → report-runtime-context-CohdtiMg.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-Df8V5QHW.js → resolve-dashboard-input-context-Djl3kCFL.js} +224 -226
- package/dist/chunks/{save-CfJpQQ68.js → save-D1EpMcwT.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-VvXI6r03.js → saved-dashboard-context-umlQFevH.js} +8 -8
- package/dist/chunks/selection-reducer-_d6aKJnj.js +46 -0
- package/dist/chunks/{semaphor-ready-indicator-fejZmdq9.js → semaphor-ready-indicator-4cOp6sla.js} +40458 -43400
- package/dist/chunks/{shelf-drop-preview-context-BuTCXe-S.js → shelf-drop-preview-context-DAtRuvR7.js} +6 -6
- package/dist/chunks/{source-entity-resolution-B46EZIzX.js → source-entity-resolution-DXW1HpKf.js} +1 -1
- package/dist/chunks/{switch-Bq92UGId.js → switch-9CJt5EF_.js} +1430 -1341
- package/dist/chunks/{table-export-sheet-noKl8-en.js → table-export-sheet-CTCTA_bd.js} +1 -1
- package/dist/chunks/{table-settings-PpINOzw8.js → table-settings-DF1gdVQR.js} +2 -2
- package/dist/chunks/temporal-input-presentation-DoSniQj1.js +2939 -0
- package/dist/chunks/{token-types--0bgRCaO.js → token-types-DFyLflLY.js} +1 -1
- package/dist/chunks/{upload-BFX7apKV.js → upload-LSNKpt0w.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-Cz-ve64t.js → use-create-flow-overlay-state-esyMT9vU.js} +124 -126
- package/dist/chunks/{validators-CZo_H4E6.js → validators-hmfNNQz8.js} +5 -5
- package/dist/chunks/zoned-wall-clock-E35Frf9v.js +191 -0
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +130 -131
- package/dist/data-app-sdk/index.js +788 -4153
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.js +5 -5
- package/dist/format-utils/index.js +230 -233
- package/dist/index.js +216 -217
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/data-app-sdk/contracts.d.ts +0 -146
- package/dist/types/data-app-sdk/index.d.ts +0 -2
- package/dist/types/index.js +6 -6
- package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +1 -7
- package/package.json +1 -3
- package/src/data-app-sdk/README.md +7 -31
- package/dist/chunks/pivot-result-contract-expectations-fKBHFPfz.js +0 -56
- package/dist/chunks/raw-temporal-contract-CjHaUIsE.js +0 -64
- package/dist/chunks/report-preferences-dialog-D_wrbIQt.js +0 -2261
- package/dist/chunks/selection-reducer-By4CSmEF.js +0 -111
- package/dist/chunks/temporal-bucket-DzyadxVY.js +0 -2071
- package/dist/chunks/temporal-input-presentation-CJWS4d0L.js +0 -879
- package/dist/chunks/x-4f5U2XwU.js +0 -100
- package/dist/chunks/zoned-wall-clock-MulfA26h.js +0 -129
- package/dist/types/data-app-sdk/devtools/index.d.ts +0 -49
- package/dist/types/data-app-sdk/devtools.d.ts +0 -1
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import { c as fe,
|
|
2
|
-
import { useEffect as K, forwardRef as nt, useMemo as H, useState as M, useRef as
|
|
3
|
-
import { a6 as
|
|
1
|
+
import { c as fe, n as qe, o as ze, p as Me, q as Re, z as je, B as E, y as Se, m as z, r as Be, s as ne, t as se, u as oe, v as de, w as ie } from "./switch-9CJt5EF_.js";
|
|
2
|
+
import { useEffect as K, forwardRef as nt, useMemo as H, useState as M, useRef as ce, useCallback as A, Fragment as st } from "react";
|
|
3
|
+
import { a6 as $e, a7 as ot, aN as dt, u as it, i as ct, aO as ut, aP as pt, aQ as De, aR as we, aS as mt, aT as ft, aU as Ue, aV as Qe, aW as ht, aX as gt, aY as bt, aZ as xt, a_ as vt, a$ as yt, b0 as Ct } from "./semaphor-ready-indicator-4cOp6sla.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-
|
|
6
|
+
import "./validators-hmfNNQz8.js";
|
|
7
|
+
import "./matrix-operation-contract-CpgLZ7E5.js";
|
|
8
8
|
import "./analytics-base-schemas-BUFUoO6G.js";
|
|
9
9
|
import "zod";
|
|
10
10
|
import "../value-format-preferences/index.js";
|
|
11
11
|
import { c as R } from "./_commonjsHelpers-DimLPMtv.js";
|
|
12
|
-
import {
|
|
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-CTVf3dG3.js";
|
|
14
|
-
import { C as Ie } from "./selection-reducer-By4CSmEF.js";
|
|
12
|
+
import { c as kt, e as Nt, f as G, h as Te, j as _e, k as ue, l as pe, m as St, o as Dt, p as Ve, q as wt, t as Tt, u as J, w as _t, x as Le, y as Ye, z as He, A as Xe, B as Ge, C as Vt, I as Lt, D as Ee, E as Et, F as Ie, G as It, H as At, J as Ft, K as Ot, L as me } from "./global-date-filter-utils-Cc5tqkoW.js";
|
|
15
13
|
/**
|
|
16
14
|
* @license lucide-react v0.453.0 - ISC
|
|
17
15
|
*
|
|
18
16
|
* This source code is licensed under the ISC license.
|
|
19
17
|
* See the LICENSE file in the root directory of this source tree.
|
|
20
18
|
*/
|
|
21
|
-
const
|
|
19
|
+
const ta = fe("FilterX", [
|
|
22
20
|
["path", { d: "M13.013 3H2l8 9.46V19l4 2v-8.54l.9-1.055", key: "1fi1da" }],
|
|
23
21
|
["path", { d: "m22 3-5 5", key: "12jva0" }],
|
|
24
22
|
["path", { d: "m17 3 5 5", key: "k36vhe" }]
|
|
@@ -46,8 +44,8 @@ const zt = fe("Link2", [
|
|
|
46
44
|
["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
|
|
47
45
|
["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }]
|
|
48
46
|
]);
|
|
49
|
-
function
|
|
50
|
-
const s =
|
|
47
|
+
function aa() {
|
|
48
|
+
const s = $e((g) => g.card.dataSource), {
|
|
51
49
|
setSelectedConnectionId: n,
|
|
52
50
|
setSelectedDatabaseName: u,
|
|
53
51
|
setSelectedSchemaName: i,
|
|
@@ -57,8 +55,8 @@ function la() {
|
|
|
57
55
|
K(() => {
|
|
58
56
|
var T;
|
|
59
57
|
if (!s) return;
|
|
60
|
-
const { tableName: g, schemaName: v, databaseName:
|
|
61
|
-
n(N || ""), u(
|
|
58
|
+
const { tableName: g, schemaName: v, databaseName: m, connectionId: N } = dt(s), x = (T = s.selectedEntities) == null ? void 0 : T[0], S = (x == null ? void 0 : x.type) === "model" && "id" in x ? x.id : "";
|
|
59
|
+
n(N || ""), u(m || ""), i(v || ""), k(g || ""), b(S);
|
|
62
60
|
}, [
|
|
63
61
|
s,
|
|
64
62
|
n,
|
|
@@ -68,30 +66,30 @@ function la() {
|
|
|
68
66
|
b
|
|
69
67
|
]);
|
|
70
68
|
}
|
|
71
|
-
function
|
|
69
|
+
function ra({
|
|
72
70
|
type: s,
|
|
73
71
|
isLinked: n,
|
|
74
72
|
className: u,
|
|
75
73
|
showLabel: i = !1,
|
|
76
74
|
showLocal: k = !1
|
|
77
75
|
}) {
|
|
78
|
-
const b = it((I) => I.selectedFrameId), g = ct((I) => I.selectedVisual), v =
|
|
79
|
-
let
|
|
76
|
+
const b = it((I) => I.selectedFrameId), g = ct((I) => I.selectedVisual), v = $e((I) => I.frame);
|
|
77
|
+
let m;
|
|
80
78
|
if (s)
|
|
81
|
-
|
|
79
|
+
m = s;
|
|
82
80
|
else if (n !== void 0)
|
|
83
|
-
|
|
81
|
+
m = n ? "linked" : "library";
|
|
84
82
|
else if (!!!(v != null && v.visualId || g != null && g.id) && b)
|
|
85
|
-
|
|
83
|
+
m = "local";
|
|
86
84
|
else if (g && !b)
|
|
87
|
-
|
|
85
|
+
m = "library";
|
|
88
86
|
else if (v != null && v.visualId && b)
|
|
89
|
-
|
|
87
|
+
m = "linked";
|
|
90
88
|
else if (g != null && g.id && b)
|
|
91
|
-
|
|
89
|
+
m = "library";
|
|
92
90
|
else
|
|
93
91
|
return null;
|
|
94
|
-
if (
|
|
92
|
+
if (m === "local" && !k)
|
|
95
93
|
return null;
|
|
96
94
|
const N = {
|
|
97
95
|
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",
|
|
@@ -118,30 +116,30 @@ function na({
|
|
|
118
116
|
linked: "Linked",
|
|
119
117
|
library: "Library"
|
|
120
118
|
};
|
|
121
|
-
return /* @__PURE__ */ t(
|
|
122
|
-
/* @__PURE__ */ t(
|
|
119
|
+
return /* @__PURE__ */ t(qe, { children: /* @__PURE__ */ o(ze, { delayDuration: 300, children: [
|
|
120
|
+
/* @__PURE__ */ t(Me, { asChild: !0, children: /* @__PURE__ */ o(
|
|
123
121
|
ut,
|
|
124
122
|
{
|
|
125
123
|
variant: "outline",
|
|
126
124
|
className: R(
|
|
127
125
|
"cursor-help select-none transition-all",
|
|
128
|
-
N[
|
|
126
|
+
N[m],
|
|
129
127
|
u
|
|
130
128
|
),
|
|
131
129
|
children: [
|
|
132
|
-
T[
|
|
133
|
-
i && /* @__PURE__ */ t("span", { className: "ml-1 text-xs font-medium leading-none", children: _[
|
|
130
|
+
T[m],
|
|
131
|
+
i && /* @__PURE__ */ t("span", { className: "ml-1 text-xs font-medium leading-none", children: _[m] })
|
|
134
132
|
]
|
|
135
133
|
}
|
|
136
134
|
) }),
|
|
137
135
|
/* @__PURE__ */ o(
|
|
138
|
-
|
|
136
|
+
Re,
|
|
139
137
|
{
|
|
140
138
|
side: "bottom",
|
|
141
|
-
className: R("max-w-xs", f[
|
|
139
|
+
className: R("max-w-xs", f[m]),
|
|
142
140
|
children: [
|
|
143
|
-
/* @__PURE__ */ t(
|
|
144
|
-
/* @__PURE__ */ t("p", { children: x[
|
|
141
|
+
/* @__PURE__ */ t(je, { className: S[m] }),
|
|
142
|
+
/* @__PURE__ */ t("p", { children: x[m] })
|
|
145
143
|
]
|
|
146
144
|
}
|
|
147
145
|
)
|
|
@@ -157,9 +155,9 @@ const Mt = nt(
|
|
|
157
155
|
openDelay: b = 300,
|
|
158
156
|
buttonProps: g,
|
|
159
157
|
disabled: v,
|
|
160
|
-
...
|
|
161
|
-
}, N) => /* @__PURE__ */ t(
|
|
162
|
-
/* @__PURE__ */ t(
|
|
158
|
+
...m
|
|
159
|
+
}, N) => /* @__PURE__ */ t(qe, { children: /* @__PURE__ */ o(ze, { delayDuration: b, children: [
|
|
160
|
+
/* @__PURE__ */ t(Me, { asChild: !0, children: /* @__PURE__ */ t(
|
|
163
161
|
E,
|
|
164
162
|
{
|
|
165
163
|
disabled: v,
|
|
@@ -167,14 +165,14 @@ const Mt = nt(
|
|
|
167
165
|
size: "sm",
|
|
168
166
|
variant: "ghost",
|
|
169
167
|
onClick: k,
|
|
170
|
-
...
|
|
168
|
+
...m,
|
|
171
169
|
...g,
|
|
172
170
|
className: R(`${kt}`, u),
|
|
173
171
|
children: n
|
|
174
172
|
}
|
|
175
173
|
) }),
|
|
176
174
|
i && /* @__PURE__ */ o(
|
|
177
|
-
|
|
175
|
+
Re,
|
|
178
176
|
{
|
|
179
177
|
side: s,
|
|
180
178
|
sideOffset: 10,
|
|
@@ -183,7 +181,7 @@ const Mt = nt(
|
|
|
183
181
|
),
|
|
184
182
|
children: [
|
|
185
183
|
i,
|
|
186
|
-
/* @__PURE__ */ t(
|
|
184
|
+
/* @__PURE__ */ t(je, { className: "fill-foreground" })
|
|
187
185
|
]
|
|
188
186
|
}
|
|
189
187
|
)
|
|
@@ -195,7 +193,7 @@ function Je(s) {
|
|
|
195
193
|
return /* @__PURE__ */ o("div", { className: "flex flex-col gap-1.5", children: [
|
|
196
194
|
/* @__PURE__ */ t(z, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Label" }),
|
|
197
195
|
/* @__PURE__ */ t(
|
|
198
|
-
|
|
196
|
+
Be,
|
|
199
197
|
{
|
|
200
198
|
size: "xs",
|
|
201
199
|
value: n.label,
|
|
@@ -278,16 +276,16 @@ function Ae(s) {
|
|
|
278
276
|
previewControlDefinitions: b,
|
|
279
277
|
previewControlValues: g,
|
|
280
278
|
onControlChange: v,
|
|
281
|
-
onLabelChange:
|
|
279
|
+
onLabelChange: m,
|
|
282
280
|
onDefaultValueChange: N,
|
|
283
281
|
onBack: x,
|
|
284
282
|
onNext: f,
|
|
285
283
|
nextDisabled: S
|
|
286
284
|
} = s;
|
|
287
285
|
return /* @__PURE__ */ o("div", { className: "space-y-3", children: [
|
|
288
|
-
/* @__PURE__ */ t(Je, { control: n, onChange:
|
|
286
|
+
/* @__PURE__ */ t(Je, { control: n, onChange: m }),
|
|
289
287
|
/* @__PURE__ */ t(
|
|
290
|
-
|
|
288
|
+
Ue,
|
|
291
289
|
{
|
|
292
290
|
control: n,
|
|
293
291
|
availableFieldChoices: i,
|
|
@@ -299,7 +297,7 @@ function Ae(s) {
|
|
|
299
297
|
}
|
|
300
298
|
),
|
|
301
299
|
/* @__PURE__ */ t(
|
|
302
|
-
|
|
300
|
+
Qe,
|
|
303
301
|
{
|
|
304
302
|
control: n,
|
|
305
303
|
value: u,
|
|
@@ -366,7 +364,7 @@ function Oe(s) {
|
|
|
366
364
|
sqlDescription: b,
|
|
367
365
|
summaryDetail: g,
|
|
368
366
|
onBack: v,
|
|
369
|
-
onCancel:
|
|
367
|
+
onCancel: m,
|
|
370
368
|
onDone: N
|
|
371
369
|
} = s, x = Bt.has(n.type), f = i.match(/\[\[param\.(.+?)\]\]/), S = f ? `{{ param('${f[1]}') }}` : "";
|
|
372
370
|
return /* @__PURE__ */ o("div", { className: "space-y-4", children: [
|
|
@@ -423,7 +421,7 @@ function Oe(s) {
|
|
|
423
421
|
W,
|
|
424
422
|
{
|
|
425
423
|
secondary: /* @__PURE__ */ t(E, { type: "button", variant: "outline", size: "xs", onClick: v, children: "Back" }),
|
|
426
|
-
tertiary: /* @__PURE__ */ t(E, { type: "button", variant: "outline", size: "xs", onClick:
|
|
424
|
+
tertiary: /* @__PURE__ */ t(E, { type: "button", variant: "outline", size: "xs", onClick: m, children: "Cancel" }),
|
|
427
425
|
primary: /* @__PURE__ */ t(E, { type: "button", size: "xs", onClick: N, children: "Done" })
|
|
428
426
|
}
|
|
429
427
|
)
|
|
@@ -436,19 +434,19 @@ function $t(s) {
|
|
|
436
434
|
s.reservedIds
|
|
437
435
|
), u = s.type === n.type ? {
|
|
438
436
|
...n,
|
|
439
|
-
label:
|
|
437
|
+
label: me[s.type]
|
|
440
438
|
} : {
|
|
441
439
|
...Ge({
|
|
442
440
|
controls: [
|
|
443
441
|
{
|
|
444
442
|
...n,
|
|
445
|
-
label:
|
|
443
|
+
label: me[s.type]
|
|
446
444
|
}
|
|
447
445
|
],
|
|
448
446
|
controlId: n.id,
|
|
449
447
|
nextType: s.type
|
|
450
448
|
}).controls[0],
|
|
451
|
-
label:
|
|
449
|
+
label: me[s.type]
|
|
452
450
|
};
|
|
453
451
|
return {
|
|
454
452
|
step: 2,
|
|
@@ -456,7 +454,7 @@ function $t(s) {
|
|
|
456
454
|
defaultValue: J(u, void 0)
|
|
457
455
|
};
|
|
458
456
|
}
|
|
459
|
-
function
|
|
457
|
+
function la({
|
|
460
458
|
scope: s,
|
|
461
459
|
controls: n,
|
|
462
460
|
reservedControlIds: u,
|
|
@@ -465,7 +463,7 @@ function sa({
|
|
|
465
463
|
emptyMessage: b,
|
|
466
464
|
initialCreateFlow: g = !1,
|
|
467
465
|
usageByControlId: v,
|
|
468
|
-
availableFieldChoices:
|
|
466
|
+
availableFieldChoices: m,
|
|
469
467
|
availableMetricChoices: N,
|
|
470
468
|
structuralParticipants: x,
|
|
471
469
|
structuralParticipantIdsByControlId: f,
|
|
@@ -486,15 +484,15 @@ function sa({
|
|
|
486
484
|
step: 1,
|
|
487
485
|
control: G(s, n, Array.from(F))
|
|
488
486
|
} : null
|
|
489
|
-
), Q =
|
|
490
|
-
const e =
|
|
487
|
+
), Q = ce({}), j = ce(void 0), ge = ce(g), be = H(() => {
|
|
488
|
+
const e = Te({ scope: s, card: S });
|
|
491
489
|
if (!T)
|
|
492
490
|
return e;
|
|
493
491
|
const l = new Set(T);
|
|
494
492
|
return e.filter((r) => l.has(r.value));
|
|
495
493
|
}, [T, S, s]), Pe = A(
|
|
496
494
|
(e) => {
|
|
497
|
-
const l =
|
|
495
|
+
const l = Te({
|
|
498
496
|
scope: s,
|
|
499
497
|
card: S,
|
|
500
498
|
includeType: T ? void 0 : e
|
|
@@ -509,7 +507,7 @@ function sa({
|
|
|
509
507
|
(e) => s === "dashboard" && (e === "field_selector" || e === "metric_selector"),
|
|
510
508
|
[s]
|
|
511
509
|
), P = H(
|
|
512
|
-
() => a ?
|
|
510
|
+
() => a ? _e(
|
|
513
511
|
x || [],
|
|
514
512
|
a.control.type
|
|
515
513
|
) : [],
|
|
@@ -517,12 +515,12 @@ function sa({
|
|
|
517
515
|
), Y = H(() => {
|
|
518
516
|
if (!a)
|
|
519
517
|
return {
|
|
520
|
-
fields:
|
|
518
|
+
fields: m || [],
|
|
521
519
|
metrics: N || []
|
|
522
520
|
};
|
|
523
521
|
if (!L(a.control.type))
|
|
524
522
|
return {
|
|
525
|
-
fields:
|
|
523
|
+
fields: m || [],
|
|
526
524
|
metrics: N || []
|
|
527
525
|
};
|
|
528
526
|
const e = a.selectedCardIds || [], l = ue({
|
|
@@ -541,7 +539,7 @@ function sa({
|
|
|
541
539
|
})) : []
|
|
542
540
|
};
|
|
543
541
|
}, [
|
|
544
|
-
|
|
542
|
+
m,
|
|
545
543
|
N,
|
|
546
544
|
a,
|
|
547
545
|
L,
|
|
@@ -559,13 +557,13 @@ function sa({
|
|
|
559
557
|
const et = (e) => {
|
|
560
558
|
if (!L(e.type))
|
|
561
559
|
return {
|
|
562
|
-
fields:
|
|
560
|
+
fields: m || [],
|
|
563
561
|
metrics: N || []
|
|
564
562
|
};
|
|
565
563
|
const l = (f == null ? void 0 : f[e.id]) || [];
|
|
566
564
|
if (l.length === 0)
|
|
567
565
|
return {
|
|
568
|
-
fields:
|
|
566
|
+
fields: m || [],
|
|
569
567
|
metrics: N || []
|
|
570
568
|
};
|
|
571
569
|
const r = ue({
|
|
@@ -596,12 +594,12 @@ function sa({
|
|
|
596
594
|
}), d = Ft({
|
|
597
595
|
control: e.control,
|
|
598
596
|
choices: r.choices
|
|
599
|
-
}),
|
|
597
|
+
}), p = Object.fromEntries(
|
|
600
598
|
l.filter((h) => !e.nextSelectedCardIds.includes(h)).map((h) => [h, void 0])
|
|
601
599
|
);
|
|
602
600
|
return e.nextSelectedCardIds.length > 0 && d.source.kind === "manual" && d.source.options.length > 0 && Object.assign(
|
|
603
|
-
|
|
604
|
-
|
|
601
|
+
p,
|
|
602
|
+
Ie({
|
|
605
603
|
control: d,
|
|
606
604
|
participants: x || [],
|
|
607
605
|
selectedCardIds: e.nextSelectedCardIds,
|
|
@@ -609,15 +607,15 @@ function sa({
|
|
|
609
607
|
})
|
|
610
608
|
), {
|
|
611
609
|
nextControl: d,
|
|
612
|
-
cardBindingsById:
|
|
610
|
+
cardBindingsById: p
|
|
613
611
|
};
|
|
614
612
|
}, V = A(
|
|
615
613
|
(e, l = i, r = { type: "update" }) => {
|
|
616
|
-
const d = e.map((
|
|
617
|
-
control:
|
|
614
|
+
const d = e.map((p) => (pe({
|
|
615
|
+
control: p,
|
|
618
616
|
defaultValues: l
|
|
619
617
|
}), St(
|
|
620
|
-
|
|
618
|
+
p
|
|
621
619
|
)));
|
|
622
620
|
k(d, l, r);
|
|
623
621
|
},
|
|
@@ -627,19 +625,19 @@ function sa({
|
|
|
627
625
|
(C) => C.id === e
|
|
628
626
|
);
|
|
629
627
|
let d = n.map((C) => C.id !== e ? C : l(C));
|
|
630
|
-
const
|
|
628
|
+
const p = d.find(
|
|
631
629
|
(C) => C.id === e
|
|
632
630
|
);
|
|
633
631
|
let h, c;
|
|
634
|
-
if (
|
|
635
|
-
const C = (f == null ? void 0 : f[
|
|
636
|
-
control:
|
|
632
|
+
if (p && (!r || It({ control: r }, { control: p })) && s === "dashboard" && (p.type === "field_selector" || p.type === "metric_selector")) {
|
|
633
|
+
const C = (f == null ? void 0 : f[p.id]) || [], q = ee({
|
|
634
|
+
control: p,
|
|
637
635
|
nextSelectedCardIds: C
|
|
638
636
|
});
|
|
639
637
|
d = d.map(
|
|
640
638
|
(O) => O.id === e ? q.nextControl : O
|
|
641
|
-
), h = q.cardBindingsById, c = [
|
|
642
|
-
} else if (r && (!
|
|
639
|
+
), h = q.cardBindingsById, c = [p.id];
|
|
640
|
+
} else if (r && (!p || !At(p.type)) && s === "dashboard" && (r.type === "field_selector" || r.type === "metric_selector")) {
|
|
643
641
|
const C = (f == null ? void 0 : f[r.id]) || [];
|
|
644
642
|
h = Object.fromEntries(
|
|
645
643
|
C.map((q) => [q, void 0])
|
|
@@ -650,12 +648,12 @@ function sa({
|
|
|
650
648
|
);
|
|
651
649
|
let w = i;
|
|
652
650
|
if (r && y) {
|
|
653
|
-
const C =
|
|
651
|
+
const C = pe({
|
|
654
652
|
control: r,
|
|
655
653
|
defaultValues: i
|
|
656
654
|
});
|
|
657
655
|
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 =
|
|
656
|
+
const q = C === void 0 && r.source.kind === "sql_query" && y.source.kind === "manual" ? Q.current[e] : C, O = Ee({
|
|
659
657
|
previousControl: r,
|
|
660
658
|
nextControl: y,
|
|
661
659
|
currentDefaultValue: q
|
|
@@ -688,8 +686,8 @@ function sa({
|
|
|
688
686
|
});
|
|
689
687
|
return;
|
|
690
688
|
}
|
|
691
|
-
const
|
|
692
|
-
Object.prototype.hasOwnProperty.call(
|
|
689
|
+
const p = { ...i };
|
|
690
|
+
Object.prototype.hasOwnProperty.call(p, e) && (p[r] = p[e], delete p[e]), V(d, p, {
|
|
693
691
|
type: "rename",
|
|
694
692
|
oldId: e,
|
|
695
693
|
newId: r
|
|
@@ -712,15 +710,15 @@ function sa({
|
|
|
712
710
|
(l) => l && (() => {
|
|
713
711
|
const r = e(l.control);
|
|
714
712
|
l.control.source.kind === "manual" && r.source.kind === "sql_query" && (j.current = l.defaultValue);
|
|
715
|
-
const d = l.defaultValue === void 0 && l.control.source.kind === "sql_query" && r.source.kind === "manual" ? j.current : l.defaultValue,
|
|
713
|
+
const d = l.defaultValue === void 0 && l.control.source.kind === "sql_query" && r.source.kind === "manual" ? j.current : l.defaultValue, p = Ee({
|
|
716
714
|
previousControl: l.control,
|
|
717
715
|
nextControl: r,
|
|
718
716
|
currentDefaultValue: d
|
|
719
717
|
});
|
|
720
|
-
return r.source.kind === "manual" && (j.current =
|
|
718
|
+
return r.source.kind === "manual" && (j.current = p), {
|
|
721
719
|
...l,
|
|
722
720
|
control: r,
|
|
723
|
-
defaultValue:
|
|
721
|
+
defaultValue: p
|
|
724
722
|
};
|
|
725
723
|
})()
|
|
726
724
|
);
|
|
@@ -743,14 +741,14 @@ function sa({
|
|
|
743
741
|
});
|
|
744
742
|
if (a.step !== 2 && a.step !== 3 || !a.control.label.trim())
|
|
745
743
|
return !1;
|
|
746
|
-
const l = a.control.source.kind === "sql_query" ? a.control :
|
|
744
|
+
const l = a.control.source.kind === "sql_query" ? a.control : Ve(a.control);
|
|
747
745
|
if (l.source.kind === "manual" && (wt(l) && l.source.options.length === 0 || l.source.options.some(
|
|
748
746
|
(d) => d.label.trim().length === 0 || d.value.trim().length === 0
|
|
749
747
|
)))
|
|
750
748
|
return !1;
|
|
751
749
|
if (l.source.kind === "sql_query") {
|
|
752
|
-
const { connectionId: r, sql: d, valueColumn:
|
|
753
|
-
return r.trim().length > 0 && d.trim().length > 0 &&
|
|
750
|
+
const { connectionId: r, sql: d, valueColumn: p } = l.source;
|
|
751
|
+
return r.trim().length > 0 && d.trim().length > 0 && p.trim().length > 0;
|
|
754
752
|
}
|
|
755
753
|
return Tt(
|
|
756
754
|
J(l, a.defaultValue)
|
|
@@ -759,7 +757,7 @@ function sa({
|
|
|
759
757
|
var h;
|
|
760
758
|
if (!a)
|
|
761
759
|
return;
|
|
762
|
-
const e =
|
|
760
|
+
const e = Ve(a.control), l = Et({
|
|
763
761
|
label: e.label,
|
|
764
762
|
fallbackId: e.id,
|
|
765
763
|
existingControls: n,
|
|
@@ -767,19 +765,19 @@ function sa({
|
|
|
767
765
|
}), r = {
|
|
768
766
|
...e,
|
|
769
767
|
id: l
|
|
770
|
-
}, d = s === "dashboard" && (r.type === "field_selector" || r.type === "metric_selector") && ((h = a.selectedCardIds) != null && h.length) ?
|
|
768
|
+
}, d = s === "dashboard" && (r.type === "field_selector" || r.type === "metric_selector") && ((h = a.selectedCardIds) != null && h.length) ? Ie({
|
|
771
769
|
control: r,
|
|
772
770
|
participants: x || [],
|
|
773
771
|
selectedCardIds: a.selectedCardIds,
|
|
774
772
|
matrixTargetIds: a.matrixTargetIds
|
|
775
|
-
}) : void 0,
|
|
773
|
+
}) : void 0, p = J(
|
|
776
774
|
r,
|
|
777
775
|
a.defaultValue
|
|
778
776
|
);
|
|
779
777
|
D({
|
|
780
778
|
step: s === "dashboard" && (r.type === "field_selector" || r.type === "metric_selector") ? 4 : 3,
|
|
781
779
|
control: r,
|
|
782
|
-
defaultValue:
|
|
780
|
+
defaultValue: p,
|
|
783
781
|
createdControlId: l,
|
|
784
782
|
selectedCardIds: a.selectedCardIds,
|
|
785
783
|
matrixTargetIds: a.matrixTargetIds,
|
|
@@ -828,10 +826,10 @@ function sa({
|
|
|
828
826
|
}
|
|
829
827
|
);
|
|
830
828
|
U(l), D(null), I == null || I();
|
|
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 =
|
|
829
|
+
}, [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 = Le({
|
|
832
830
|
controls: n,
|
|
833
831
|
defaultValues: i
|
|
834
|
-
}), le = a ? [...n, a.control] : n, ke = a ?
|
|
832
|
+
}), le = a ? [...n, a.control] : n, ke = a ? Le({
|
|
835
833
|
controls: le,
|
|
836
834
|
defaultValues: i,
|
|
837
835
|
overrides: [
|
|
@@ -865,7 +863,7 @@ function sa({
|
|
|
865
863
|
(h) => !e.has(h.value) && !l.has(h.value)
|
|
866
864
|
), d = be.filter(
|
|
867
865
|
(h) => e.has(h.value)
|
|
868
|
-
),
|
|
866
|
+
), p = (h) => /* @__PURE__ */ o(
|
|
869
867
|
"button",
|
|
870
868
|
{
|
|
871
869
|
type: "button",
|
|
@@ -889,11 +887,11 @@ function sa({
|
|
|
889
887
|
s === "card" && (S == null ? void 0 : S.sql) == null ? /* @__PURE__ */ t("p", { className: "text-[12px] text-muted-foreground", children: "Explorer cards support displayed metric, group by field, aggregation, and time grain controls here." }) : null,
|
|
890
888
|
r.length > 0 && /* @__PURE__ */ o("div", { className: "space-y-1.5", children: [
|
|
891
889
|
/* @__PURE__ */ t("p", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Input controls" }),
|
|
892
|
-
/* @__PURE__ */ t("div", { className: "grid gap-1.5 sm:grid-cols-2", children: r.map(
|
|
890
|
+
/* @__PURE__ */ t("div", { className: "grid gap-1.5 sm:grid-cols-2", children: r.map(p) })
|
|
893
891
|
] }),
|
|
894
892
|
d.length > 0 && /* @__PURE__ */ o("div", { className: "space-y-1.5", children: [
|
|
895
893
|
/* @__PURE__ */ t("p", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Data-driven controls" }),
|
|
896
|
-
/* @__PURE__ */ t("div", { className: "grid gap-1.5 sm:grid-cols-2", children: d.map(
|
|
894
|
+
/* @__PURE__ */ t("div", { className: "grid gap-1.5 sm:grid-cols-2", children: d.map(p) })
|
|
897
895
|
] }),
|
|
898
896
|
/* @__PURE__ */ t(
|
|
899
897
|
W,
|
|
@@ -934,7 +932,7 @@ function sa({
|
|
|
934
932
|
className: "flex items-start gap-2 rounded-control px-1.5 py-1 text-[13px] hover:bg-muted/40",
|
|
935
933
|
children: [
|
|
936
934
|
/* @__PURE__ */ t(
|
|
937
|
-
|
|
935
|
+
pt,
|
|
938
936
|
{
|
|
939
937
|
checked: l,
|
|
940
938
|
onCheckedChange: (r) => D(
|
|
@@ -944,7 +942,7 @@ function sa({
|
|
|
944
942
|
...d.selectedCardIds || [],
|
|
945
943
|
e.cardId
|
|
946
944
|
] : (d.selectedCardIds || []).filter(
|
|
947
|
-
(
|
|
945
|
+
(p) => p !== e.cardId
|
|
948
946
|
)
|
|
949
947
|
}
|
|
950
948
|
)
|
|
@@ -1107,10 +1105,10 @@ function sa({
|
|
|
1107
1105
|
] }) : null,
|
|
1108
1106
|
!a && n.length === 0 ? /* @__PURE__ */ t("div", { className: "rounded-md border border-dashed p-3 text-sm text-muted-foreground", children: b }) : null,
|
|
1109
1107
|
!a && n.map((e) => {
|
|
1110
|
-
const l = et(e), r = v == null ? void 0 : v[e.id], d =
|
|
1108
|
+
const l = et(e), r = v == null ? void 0 : v[e.id], d = pe({
|
|
1111
1109
|
control: e,
|
|
1112
1110
|
defaultValues: i
|
|
1113
|
-
}),
|
|
1111
|
+
}), p = 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
1112
|
return /* @__PURE__ */ o(
|
|
1115
1113
|
"div",
|
|
1116
1114
|
{
|
|
@@ -1126,7 +1124,7 @@ function sa({
|
|
|
1126
1124
|
(c) => c === e.id ? null : e.id
|
|
1127
1125
|
),
|
|
1128
1126
|
children: [
|
|
1129
|
-
|
|
1127
|
+
p ? /* @__PURE__ */ t(Se, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ t(we, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
1130
1128
|
/* @__PURE__ */ o("div", { className: "min-w-0", children: [
|
|
1131
1129
|
/* @__PURE__ */ o("div", { className: "flex flex-wrap items-center gap-1.5", children: [
|
|
1132
1130
|
/* @__PURE__ */ t("span", { className: "truncate text-[13px] font-medium text-foreground", children: e.label || "Untitled control" }),
|
|
@@ -1150,16 +1148,16 @@ function sa({
|
|
|
1150
1148
|
className: "h-7 w-7 shrink-0 p-0 text-muted-foreground",
|
|
1151
1149
|
onClick: () => at(e.id),
|
|
1152
1150
|
"aria-label": `Remove ${e.label}`,
|
|
1153
|
-
children: /* @__PURE__ */ t(
|
|
1151
|
+
children: /* @__PURE__ */ t(mt, { className: "h-3.5 w-3.5" })
|
|
1154
1152
|
}
|
|
1155
1153
|
)
|
|
1156
1154
|
] }),
|
|
1157
|
-
|
|
1155
|
+
p && /* @__PURE__ */ o("div", { className: "space-y-4 border-t border-border/60 px-3 py-3", children: [
|
|
1158
1156
|
/* @__PURE__ */ o("div", { className: "grid gap-3 md:grid-cols-3", children: [
|
|
1159
1157
|
/* @__PURE__ */ o("div", { className: "flex flex-col gap-1.5", children: [
|
|
1160
1158
|
/* @__PURE__ */ t(z, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Label" }),
|
|
1161
1159
|
/* @__PURE__ */ t(
|
|
1162
|
-
|
|
1160
|
+
Be,
|
|
1163
1161
|
{
|
|
1164
1162
|
size: "xs",
|
|
1165
1163
|
value: e.label,
|
|
@@ -1174,7 +1172,7 @@ function sa({
|
|
|
1174
1172
|
/* @__PURE__ */ o("div", { className: "flex flex-col gap-1.5", children: [
|
|
1175
1173
|
/* @__PURE__ */ t(z, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Type" }),
|
|
1176
1174
|
/* @__PURE__ */ o(
|
|
1177
|
-
|
|
1175
|
+
ne,
|
|
1178
1176
|
{
|
|
1179
1177
|
value: e.type,
|
|
1180
1178
|
onValueChange: (c) => {
|
|
@@ -1187,10 +1185,10 @@ function sa({
|
|
|
1187
1185
|
V(y.controls, y.defaultValues);
|
|
1188
1186
|
},
|
|
1189
1187
|
children: [
|
|
1190
|
-
/* @__PURE__ */ t(
|
|
1191
|
-
/* @__PURE__ */ t(
|
|
1188
|
+
/* @__PURE__ */ t(se, { size: "xs", children: /* @__PURE__ */ t(oe, {}) }),
|
|
1189
|
+
/* @__PURE__ */ t(de, { children: Pe(e.type).map(
|
|
1192
1190
|
(c) => /* @__PURE__ */ t(
|
|
1193
|
-
|
|
1191
|
+
ie,
|
|
1194
1192
|
{
|
|
1195
1193
|
value: c.value,
|
|
1196
1194
|
children: c.label
|
|
@@ -1205,7 +1203,7 @@ function sa({
|
|
|
1205
1203
|
/* @__PURE__ */ o("div", { className: "flex flex-col gap-1.5", children: [
|
|
1206
1204
|
/* @__PURE__ */ t(z, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Show in" }),
|
|
1207
1205
|
/* @__PURE__ */ o(
|
|
1208
|
-
|
|
1206
|
+
ne,
|
|
1209
1207
|
{
|
|
1210
1208
|
value: e.placement || We,
|
|
1211
1209
|
onValueChange: (c) => B(e.id, (y) => ({
|
|
@@ -1213,8 +1211,8 @@ function sa({
|
|
|
1213
1211
|
placement: c
|
|
1214
1212
|
})),
|
|
1215
1213
|
children: [
|
|
1216
|
-
/* @__PURE__ */ t(
|
|
1217
|
-
/* @__PURE__ */ t(
|
|
1214
|
+
/* @__PURE__ */ t(se, { size: "xs", children: /* @__PURE__ */ t(oe, {}) }),
|
|
1215
|
+
/* @__PURE__ */ t(de, { children: Ke.map((c) => /* @__PURE__ */ t(ie, { value: c.value, children: c.label }, c.value)) })
|
|
1218
1216
|
]
|
|
1219
1217
|
}
|
|
1220
1218
|
)
|
|
@@ -1225,7 +1223,7 @@ function sa({
|
|
|
1225
1223
|
ft,
|
|
1226
1224
|
{
|
|
1227
1225
|
type: e.type,
|
|
1228
|
-
participants:
|
|
1226
|
+
participants: _e(
|
|
1229
1227
|
x || [],
|
|
1230
1228
|
e.type
|
|
1231
1229
|
).map((c) => ({
|
|
@@ -1270,7 +1268,7 @@ function sa({
|
|
|
1270
1268
|
)
|
|
1271
1269
|
] }) : null,
|
|
1272
1270
|
/* @__PURE__ */ t(
|
|
1273
|
-
|
|
1271
|
+
Ue,
|
|
1274
1272
|
{
|
|
1275
1273
|
control: e,
|
|
1276
1274
|
availableFieldChoices: l.fields,
|
|
@@ -1282,7 +1280,7 @@ function sa({
|
|
|
1282
1280
|
}
|
|
1283
1281
|
),
|
|
1284
1282
|
e.initialValueStrategy === "saved_default" && /* @__PURE__ */ t(
|
|
1285
|
-
|
|
1283
|
+
Qe,
|
|
1286
1284
|
{
|
|
1287
1285
|
control: e,
|
|
1288
1286
|
value: d,
|
|
@@ -1317,7 +1315,7 @@ function sa({
|
|
|
1317
1315
|
size: "xs",
|
|
1318
1316
|
className: "-ml-2 gap-1 text-muted-foreground hover:text-foreground",
|
|
1319
1317
|
children: [
|
|
1320
|
-
he === e.id ? /* @__PURE__ */ t(Se, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ t(
|
|
1318
|
+
he === e.id ? /* @__PURE__ */ t(Se, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ t(we, { className: "h-3.5 w-3.5" }),
|
|
1321
1319
|
"Advanced"
|
|
1322
1320
|
]
|
|
1323
1321
|
}
|
|
@@ -1338,7 +1336,7 @@ function sa({
|
|
|
1338
1336
|
/* @__PURE__ */ o("div", { className: "flex flex-col gap-1.5", children: [
|
|
1339
1337
|
/* @__PURE__ */ t(z, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Initial value" }),
|
|
1340
1338
|
/* @__PURE__ */ o(
|
|
1341
|
-
|
|
1339
|
+
ne,
|
|
1342
1340
|
{
|
|
1343
1341
|
value: e.initialValueStrategy,
|
|
1344
1342
|
onValueChange: (c) => B(e.id, (y) => ({
|
|
@@ -1346,9 +1344,9 @@ function sa({
|
|
|
1346
1344
|
initialValueStrategy: c
|
|
1347
1345
|
})),
|
|
1348
1346
|
children: [
|
|
1349
|
-
/* @__PURE__ */ t(
|
|
1350
|
-
/* @__PURE__ */ t(
|
|
1351
|
-
|
|
1347
|
+
/* @__PURE__ */ t(se, { size: "xs", children: /* @__PURE__ */ t(oe, {}) }),
|
|
1348
|
+
/* @__PURE__ */ t(de, { children: Lt.map((c) => /* @__PURE__ */ t(
|
|
1349
|
+
ie,
|
|
1352
1350
|
{
|
|
1353
1351
|
value: c.value,
|
|
1354
1352
|
children: c.label
|
|
@@ -1392,19 +1390,19 @@ function sa({
|
|
|
1392
1390
|
)
|
|
1393
1391
|
] });
|
|
1394
1392
|
}
|
|
1395
|
-
function
|
|
1393
|
+
function na(s) {
|
|
1396
1394
|
const {
|
|
1397
1395
|
open: n,
|
|
1398
1396
|
onOpenChange: u,
|
|
1399
1397
|
initialCreateFlowActive: i = !1,
|
|
1400
1398
|
dismissMode: k = "passive"
|
|
1401
|
-
} = s, b = n !== void 0, [g, v] = M(!1), [
|
|
1399
|
+
} = s, b = n !== void 0, [g, v] = M(!1), [m, N] = M(
|
|
1402
1400
|
i
|
|
1403
1401
|
), x = b ? n : g, f = A(
|
|
1404
1402
|
(_) => {
|
|
1405
|
-
!_ &&
|
|
1403
|
+
!_ && m && k === "passive" || (b || v(_), _ || N(!1), u == null || u(_));
|
|
1406
1404
|
},
|
|
1407
|
-
[b,
|
|
1405
|
+
[b, m, k, u]
|
|
1408
1406
|
), S = A(() => {
|
|
1409
1407
|
b || v(!1), N(!1), u == null || u(!1);
|
|
1410
1408
|
}, [b, u]);
|
|
@@ -1413,26 +1411,26 @@ function oa(s) {
|
|
|
1413
1411
|
}, [x]);
|
|
1414
1412
|
const T = A(
|
|
1415
1413
|
(_) => {
|
|
1416
|
-
|
|
1414
|
+
m && _.preventDefault();
|
|
1417
1415
|
},
|
|
1418
|
-
[
|
|
1416
|
+
[m]
|
|
1419
1417
|
);
|
|
1420
1418
|
return {
|
|
1421
1419
|
forceClose: S,
|
|
1422
1420
|
handleOpenChange: f,
|
|
1423
|
-
isCreateFlowActive:
|
|
1421
|
+
isCreateFlowActive: m,
|
|
1424
1422
|
preventPassiveDismissDuringCreate: T,
|
|
1425
1423
|
resolvedOpen: x,
|
|
1426
1424
|
setIsCreateFlowActive: N
|
|
1427
1425
|
};
|
|
1428
1426
|
}
|
|
1429
1427
|
export {
|
|
1430
|
-
|
|
1431
|
-
|
|
1428
|
+
la as C,
|
|
1429
|
+
ta as F,
|
|
1432
1430
|
Mt as I,
|
|
1433
1431
|
qt as L,
|
|
1434
|
-
|
|
1432
|
+
ra as V,
|
|
1435
1433
|
zt as a,
|
|
1436
|
-
|
|
1437
|
-
|
|
1434
|
+
aa as b,
|
|
1435
|
+
na as u
|
|
1438
1436
|
};
|