@burdenoff/microfe-bigconsole 2026.1124.3 → 2026.1124.5

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.
Files changed (26) hide show
  1. package/dist/bigconsole/components/builder/inspector/AppearanceSection.js +12 -6
  2. package/dist/bigconsole/components/builder/inspector/DataBindingSection.d.ts +2 -1
  3. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +34 -34
  4. package/dist/bigconsole/components/fleet/FleetBindingsDialog.d.ts +19 -0
  5. package/dist/bigconsole/components/fleet/FleetBindingsDialog.js +287 -0
  6. package/dist/bigconsole/components/fleet/FleetChildrenPanel.js +194 -170
  7. package/dist/bigconsole/components/widgets/PropertiesPanel.js +489 -474
  8. package/dist/bigconsole/components/widgets/chart/ChartConfig.d.ts +1 -0
  9. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +111 -107
  10. package/dist/bigconsole/components/widgets/chart/ChartFieldMappings.d.ts +8 -0
  11. package/dist/bigconsole/components/widgets/chart/ChartFieldMappings.js +85 -0
  12. package/dist/bigconsole/components/widgets/chart/chartMappingFields.d.ts +9 -0
  13. package/dist/bigconsole/components/widgets/chart/chartMappingFields.js +30 -0
  14. package/dist/bigconsole/components/widgets/chart/charts/funnelData.d.ts +2 -0
  15. package/dist/bigconsole/components/widgets/chart/charts/funnelData.js +11 -13
  16. package/dist/bigconsole/hooks/useFleetBindingActions.d.ts +23 -0
  17. package/dist/bigconsole/hooks/useFleetBindingActions.js +50 -0
  18. package/dist/bigconsole/hooks/useFleetBindings.d.ts +19 -0
  19. package/dist/bigconsole/hooks/useFleetBindings.js +140 -0
  20. package/dist/bigconsole/utils/fleetBindings.d.ts +49 -0
  21. package/dist/bigconsole/utils/fleetBindings.js +52 -0
  22. package/dist/bigconsole/utils/widgetBinding.js +57 -44
  23. package/dist/generated/wspace-operations.d.ts +109 -0
  24. package/dist/generated/wspace-operations.js +634 -131
  25. package/dist/generated/wspace-types.js +12 -10
  26. package/package.json +1 -1
@@ -2,20 +2,21 @@ import { useBigConsole as e } from "../../context/BigConsoleContext.js";
2
2
  import { BIGCONSOLE_PERMISSIONS as t } from "../../../constants/permissions.js";
3
3
  import { useTr as n } from "../../../shared/hooks/useTr.js";
4
4
  import "../../context/index.js";
5
- import { useFleetChildren as r } from "../../hooks/useFleetChildren.js";
6
- import { useActionLock as i, useOwnerBoundRun as a } from "../../hooks/useOwnerBoundRun.js";
7
- import { useFleetMasterActions as o } from "../../hooks/useFleetMasterActions.js";
8
- import { pushIsEmpty as s } from "../../utils/fleetPush.js";
9
- import { CreateLinkedCopyDialog as c } from "./CreateLinkedCopyDialog.js";
10
- import { FleetCopySection as l } from "./FleetCopySection.js";
11
- import { FleetPushResultTable as u } from "./FleetPushResultTable.js";
12
- import { memo as d, useCallback as f, useEffect as p, useRef as m, useState as h } from "react";
13
- import { PermissionButton as g } from "@burdenoff/fe-libs/shared/components";
14
- import { Network as ee, X as te } from "lucide-react";
15
- import { Button as _, Spinner as v } from "@burdenoff/fe-libs/ui";
16
- import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
5
+ import { useFleetChildren as ee } from "../../hooks/useFleetChildren.js";
6
+ import { useActionLock as te, useOwnerBoundRun as r } from "../../hooks/useOwnerBoundRun.js";
7
+ import { useFleetMasterActions as i } from "../../hooks/useFleetMasterActions.js";
8
+ import { pushIsEmpty as a } from "../../utils/fleetPush.js";
9
+ import { CreateLinkedCopyDialog as o } from "./CreateLinkedCopyDialog.js";
10
+ import { FleetBindingsDialog as s } from "./FleetBindingsDialog.js";
11
+ import { FleetCopySection as c } from "./FleetCopySection.js";
12
+ import { FleetPushResultTable as l } from "./FleetPushResultTable.js";
13
+ import { memo as u, useCallback as d, useEffect as f, useMemo as ne, useRef as p, useState as m } from "react";
14
+ import { PermissionButton as h } from "@burdenoff/fe-libs/shared/components";
15
+ import { Network as g, X as _ } from "lucide-react";
16
+ import { Button as v, Spinner as y } from "@burdenoff/fe-libs/ui";
17
+ import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
17
18
  // src/bigconsole/components/fleet/FleetChildrenPanel.tsx
18
- var S = {
19
+ var C = {
19
20
  display: "inline-flex",
20
21
  alignItems: "center",
21
22
  padding: "2px 8px",
@@ -26,107 +27,110 @@ var S = {
26
27
  textTransform: "uppercase",
27
28
  letterSpacing: "0.02em",
28
29
  whiteSpace: "nowrap"
29
- }, C = {
30
- ...S,
30
+ }, w = {
31
+ ...C,
31
32
  backgroundColor: "var(--color-status-warning-bgSubtle)",
32
33
  color: "var(--color-status-warning-text)"
33
- }, w = (e, t) => e instanceof Error && e.message ? e.message : t, T = d(function({ dashboardId: d, dashboardName: T, masterName: E = null, onBoardChanged: D, lock: O, changeToken: k, onClose: ne, onOpenBoard: re }) {
34
- let A = n(), { workspaceId: ie, currentUser: ae } = e(), j = `${ie ?? ""}:${ae?.id ?? ""}:${d}`, { loading: M, error: N, isMaster: P, linkStatus: F, summary: I, refetch: L } = r(d, !0), R = o(), [z, B] = h({ phase: "idle" }), [V, H] = h(!1), [U, W] = h(null), [G, K] = h(null), q = i(), J = O ?? q, Y = m(k);
35
- p(() => {
36
- k !== Y.current && (Y.current = k, B((e) => e.phase === "preview" ? { phase: "idle" } : e), L());
37
- }, [k, L]);
38
- let oe = f(() => {
39
- B({ phase: "idle" }), H(!1), W(null), K(null);
40
- }, []), { acting: se, run: X } = a(j, L, oe, J), Z = R.busy || se, Q = f(() => (K(null), X(() => R.setAsMaster(d), () => K({
34
+ }, T = (e, t) => e instanceof Error && e.message ? e.message : t, E = u(function({ dashboardId: u, dashboardName: E, masterName: re = null, onBoardChanged: ie, lock: D, changeToken: O, onClose: k, onOpenBoard: A }) {
35
+ let j = n(), { workspaceId: ae, currentUser: oe } = e(), se = `${ae ?? ""}:${oe?.id ?? ""}:${u}`, { loading: M, error: N, isMaster: P, linkStatus: F, summary: I, refetch: L } = ee(u, !0), R = i(), z = ne(() => (I?.children ?? []).filter((e) => e.status === "ACTIVE").map((e) => ({
36
+ id: e.dashboardId,
37
+ name: e.name
38
+ })), [I]), [B, V] = m({ phase: "idle" }), [H, U] = m(!1), [W, G] = m(!1), [ce, K] = m(null), [q, J] = m(null), le = te(), Y = D ?? le, X = p(O);
39
+ f(() => {
40
+ O !== X.current && (X.current = O, V((e) => e.phase === "preview" ? { phase: "idle" } : e), L());
41
+ }, [O, L]);
42
+ let ue = d(() => {
43
+ V({ phase: "idle" }), U(!1), G(!1), K(null), J(null);
44
+ }, []), { acting: de, run: Z } = r(se, L, ue, Y), Q = R.busy || de, fe = d(() => (J(null), Z(() => R.setAsMaster(u), () => J({
41
45
  tone: "ok",
42
- text: A("bigconsole.fleet.children.nowMaster", "This board is now a master.")
43
- }), (e) => K({
46
+ text: j("bigconsole.fleet.children.nowMaster", "This board is now a master.")
47
+ }), (e) => J({
44
48
  tone: "error",
45
- text: w(e, A("bigconsole.fleet.error.setMaster", "The board could not be made a master."))
49
+ text: T(e, j("bigconsole.fleet.error.setMaster", "The board could not be made a master."))
46
50
  }))), [
47
51
  R,
48
- d,
49
- X,
50
- A
51
- ]), ce = f(() => (K(null), X(() => R.unsetAsMaster(d), () => K({
52
+ u,
53
+ Z,
54
+ j
55
+ ]), pe = d(() => (J(null), Z(() => R.unsetAsMaster(u), () => J({
52
56
  tone: "ok",
53
- text: A("bigconsole.fleet.children.noLongerMaster", "This board is no longer a master.")
54
- }), (e) => K({
57
+ text: j("bigconsole.fleet.children.noLongerMaster", "This board is no longer a master.")
58
+ }), (e) => J({
55
59
  tone: "error",
56
- text: w(e, A("bigconsole.fleet.error.unsetMaster", "The board could not stop being a master."))
60
+ text: T(e, j("bigconsole.fleet.error.unsetMaster", "The board could not stop being a master."))
57
61
  }))), [
58
62
  R,
59
- d,
60
- X,
61
- A
62
- ]), le = f((e) => (W(null), X(() => R.createLinkedCopy(d, e), () => {
63
- H(!1), K({
63
+ u,
64
+ Z,
65
+ j
66
+ ]), me = d((e) => (K(null), Z(() => R.createLinkedCopy(u, e), () => {
67
+ U(!1), J({
64
68
  tone: "ok",
65
- text: A("bigconsole.fleet.children.created", "\"{{name}}\" is now a linked copy.", { name: e })
69
+ text: j("bigconsole.fleet.children.created", "\"{{name}}\" is now a linked copy.", { name: e })
66
70
  });
67
- }, (e) => W(w(e, A("bigconsole.fleet.error.create", "The linked copy could not be created."))))), [
71
+ }, (e) => K(T(e, j("bigconsole.fleet.error.create", "The linked copy could not be created."))))), [
68
72
  R,
69
- d,
70
- X,
71
- A
72
- ]), $ = f((e) => (K(null), X(() => R.previewPush(d, e), (t) => B({
73
+ u,
74
+ Z,
75
+ j
76
+ ]), $ = d((e) => (J(null), Z(() => R.previewPush(u, e), (t) => V({
73
77
  phase: "preview",
74
78
  scope: e,
75
79
  result: t
76
- }), (e) => K({
80
+ }), (e) => J({
77
81
  tone: "error",
78
- text: w(e, A("bigconsole.fleet.error.preview", "The preview could not be made."))
82
+ text: T(e, j("bigconsole.fleet.error.preview", "The preview could not be made."))
79
83
  }))), [
80
84
  R,
81
- d,
82
- X,
83
- A
84
- ]), ue = f((e) => (K(null), X(() => R.push(d, e), (e) => B({
85
+ u,
86
+ Z,
87
+ j
88
+ ]), he = d((e) => (J(null), Z(() => R.push(u, e), (e) => V({
85
89
  phase: "done",
86
90
  result: e
87
- }), (e) => K({
91
+ }), (e) => J({
88
92
  tone: "error",
89
- text: w(e, A("bigconsole.fleet.error.push", "The push could not be made."))
93
+ text: T(e, j("bigconsole.fleet.error.push", "The push could not be made."))
90
94
  }))), [
91
95
  R,
92
- d,
93
- X,
94
- A
95
- ]), de = (e) => /* @__PURE__ */ x("span", {
96
+ u,
97
+ Z,
98
+ j
99
+ ]), ge = (e) => /* @__PURE__ */ S("span", {
96
100
  className: "flex flex-wrap items-center gap-1",
97
101
  children: [
98
- e.status === "PENDING" && /* @__PURE__ */ b("span", {
102
+ e.status === "PENDING" && /* @__PURE__ */ x("span", {
99
103
  "data-testid": "fleet-child-pending",
100
- style: C,
101
- children: A("bigconsole.fleet.badge.pending", "Waiting for the owner's OK")
104
+ style: w,
105
+ children: j("bigconsole.fleet.badge.pending", "Waiting for the owner's OK")
102
106
  }),
103
- e.behindMaster && /* @__PURE__ */ b("span", {
107
+ e.behindMaster && /* @__PURE__ */ x("span", {
104
108
  "data-testid": "fleet-child-behind",
105
- style: C,
106
- children: e.missingWidgetCount ? A("bigconsole.fleet.children.behindCount", "Behind · {{count}} widgets missing", { count: e.missingWidgetCount }) : A("bigconsole.fleet.children.behind", "Behind the master")
109
+ style: w,
110
+ children: e.missingWidgetCount ? j("bigconsole.fleet.children.behindCount", "Behind · {{count}} widgets missing", { count: e.missingWidgetCount }) : j("bigconsole.fleet.children.behind", "Behind the master")
107
111
  }),
108
- e.openFlagCount > 0 && /* @__PURE__ */ b("span", {
112
+ e.openFlagCount > 0 && /* @__PURE__ */ x("span", {
109
113
  "data-testid": "fleet-child-flags",
110
- style: C,
111
- children: A("bigconsole.fleet.children.flags", "{{count}} open flags", { count: e.openFlagCount })
114
+ style: w,
115
+ children: j("bigconsole.fleet.children.flags", "{{count}} open flags", { count: e.openFlagCount })
112
116
  }),
113
- e.status === "ACTIVE" && !e.behindMaster && e.openFlagCount === 0 && /* @__PURE__ */ b("span", {
117
+ e.status === "ACTIVE" && !e.behindMaster && e.openFlagCount === 0 && /* @__PURE__ */ x("span", {
114
118
  style: {
115
- ...S,
119
+ ...C,
116
120
  color: "var(--color-status-success-text)"
117
121
  },
118
- children: A("bigconsole.fleet.children.inSync", "In sync")
122
+ children: j("bigconsole.fleet.children.inSync", "In sync")
119
123
  })
120
124
  ]
121
125
  });
122
- return /* @__PURE__ */ x("section", {
123
- "aria-label": A("bigconsole.fleet.children.title", "Children"),
126
+ return /* @__PURE__ */ S("section", {
127
+ "aria-label": j("bigconsole.fleet.children.title", "Children"),
124
128
  "data-testid": "fleet-children-panel",
125
129
  className: "flex flex-col gap-form-gap",
126
130
  children: [
127
- /* @__PURE__ */ x("div", {
131
+ /* @__PURE__ */ S("div", {
128
132
  className: "flex items-center justify-between gap-form-gap",
129
- children: [/* @__PURE__ */ x("h2", {
133
+ children: [/* @__PURE__ */ S("h2", {
130
134
  className: "flex items-center gap-2",
131
135
  style: {
132
136
  margin: 0,
@@ -134,118 +138,118 @@ var S = {
134
138
  fontSize: "var(--font-size-body)",
135
139
  fontWeight: "var(--font-weight-semibold)"
136
140
  },
137
- children: [/* @__PURE__ */ b(ee, {
141
+ children: [/* @__PURE__ */ x(g, {
138
142
  "aria-hidden": "true",
139
143
  style: {
140
144
  height: "var(--size-icon-sm)",
141
145
  width: "var(--size-icon-sm)"
142
146
  }
143
- }), A("bigconsole.fleet.children.title", "Children")]
144
- }), /* @__PURE__ */ b(_, {
147
+ }), j("bigconsole.fleet.children.title", "Children")]
148
+ }), /* @__PURE__ */ x(v, {
145
149
  variant: "ghost",
146
150
  size: "sm",
147
- onClick: ne,
148
- "aria-label": A("bigconsole.fleet.children.close", "Close the Children panel"),
149
- title: A("bigconsole.fleet.children.close", "Close the Children panel"),
151
+ onClick: k,
152
+ "aria-label": j("bigconsole.fleet.children.close", "Close the Children panel"),
153
+ title: j("bigconsole.fleet.children.close", "Close the Children panel"),
150
154
  "data-testid": "fleet-children-close",
151
- children: /* @__PURE__ */ b(te, { style: {
155
+ children: /* @__PURE__ */ x(_, { style: {
152
156
  height: "var(--size-icon-sm)",
153
157
  width: "var(--size-icon-sm)"
154
158
  } })
155
159
  })]
156
160
  }),
157
- G && /* @__PURE__ */ b("p", {
158
- role: G.tone === "error" ? "alert" : "status",
161
+ q && /* @__PURE__ */ x("p", {
162
+ role: q.tone === "error" ? "alert" : "status",
159
163
  "data-testid": "fleet-children-message",
160
164
  style: {
161
165
  margin: 0,
162
- color: G.tone === "error" ? "var(--color-status-error-text)" : "var(--color-text-primary)",
166
+ color: q.tone === "error" ? "var(--color-status-error-text)" : "var(--color-text-primary)",
163
167
  fontSize: "var(--font-size-body-sm)"
164
168
  },
165
- children: G.text
169
+ children: q.text
166
170
  }),
167
- M && !I && !P && /* @__PURE__ */ x("div", {
171
+ M && !I && !P && /* @__PURE__ */ S("div", {
168
172
  className: "flex items-center gap-2",
169
173
  style: { color: "var(--color-text-secondary)" },
170
- children: [/* @__PURE__ */ b(v, { style: {
174
+ children: [/* @__PURE__ */ x(y, { style: {
171
175
  height: "var(--size-icon-sm)",
172
176
  width: "var(--size-icon-sm)"
173
- } }), A("bigconsole.fleet.children.loading", "Loading the copies of this board…")]
177
+ } }), j("bigconsole.fleet.children.loading", "Loading the copies of this board…")]
174
178
  }),
175
- !M && N && /* @__PURE__ */ b("p", {
179
+ !M && N && /* @__PURE__ */ x("p", {
176
180
  role: "alert",
177
181
  style: {
178
182
  margin: 0,
179
183
  color: "var(--color-status-error-text)"
180
184
  },
181
- children: A("bigconsole.fleet.children.loadError", "The copies of this board could not be loaded.")
185
+ children: j("bigconsole.fleet.children.loadError", "The copies of this board could not be loaded.")
182
186
  }),
183
- !M && !N && F === "ACTIVE" && /* @__PURE__ */ b(l, {
184
- dashboardId: d,
185
- masterName: E,
186
- onBoardChanged: D,
187
- lock: J,
188
- changeToken: k
187
+ !M && !N && F === "ACTIVE" && /* @__PURE__ */ x(c, {
188
+ dashboardId: u,
189
+ masterName: re,
190
+ onBoardChanged: ie,
191
+ lock: Y,
192
+ changeToken: O
189
193
  }),
190
- !M && !N && !P && /* @__PURE__ */ x("div", {
194
+ !M && !N && !P && /* @__PURE__ */ S("div", {
191
195
  className: "flex flex-col gap-form-gap",
192
196
  "data-testid": "fleet-children-not-master",
193
- children: [/* @__PURE__ */ b("p", {
197
+ children: [/* @__PURE__ */ x("p", {
194
198
  style: {
195
199
  margin: 0,
196
200
  color: "var(--color-text-secondary)",
197
201
  fontSize: "var(--font-size-body-sm)"
198
202
  },
199
- children: A("bigconsole.fleet.children.notMaster", "Other boards can follow this one as linked copies once it is a master. Its own widgets stay as they are.")
200
- }), /* @__PURE__ */ b("div", { children: /* @__PURE__ */ b(g, {
203
+ children: j("bigconsole.fleet.children.notMaster", "Other boards can follow this one as linked copies once it is a master. Its own widgets stay as they are.")
204
+ }), /* @__PURE__ */ x("div", { children: /* @__PURE__ */ x(h, {
201
205
  permission: t.DASHBOARD_UPDATE,
202
206
  deniedBehavior: "hide",
203
- children: /* @__PURE__ */ x(_, {
204
- onClick: Q,
205
- disabled: Z,
207
+ children: /* @__PURE__ */ S(v, {
208
+ onClick: fe,
209
+ disabled: Q,
206
210
  "data-testid": "fleet-set-master",
207
- children: [Z && /* @__PURE__ */ b(v, { style: {
211
+ children: [Q && /* @__PURE__ */ x(y, { style: {
208
212
  height: "var(--size-icon-sm)",
209
213
  width: "var(--size-icon-sm)"
210
- } }), A("bigconsole.fleet.children.setMaster", "Set as master")]
214
+ } }), j("bigconsole.fleet.children.setMaster", "Set as master")]
211
215
  })
212
216
  }) })]
213
217
  }),
214
- !N && P && I && /* @__PURE__ */ x(y, { children: [
215
- /* @__PURE__ */ x("p", {
218
+ !N && P && I && /* @__PURE__ */ S(b, { children: [
219
+ /* @__PURE__ */ S("p", {
216
220
  "data-testid": "fleet-children-counts",
217
221
  style: {
218
222
  margin: 0,
219
223
  color: "var(--color-text-secondary)",
220
224
  fontSize: "var(--font-size-body-sm)"
221
225
  },
222
- children: [A("bigconsole.fleet.children.counts", "{{total}} copies: {{active}} active, {{pending}} waiting for an owner, {{behind}} behind the master.", {
226
+ children: [j("bigconsole.fleet.children.counts", "{{total}} copies: {{active}} active, {{pending}} waiting for an owner, {{behind}} behind the master.", {
223
227
  total: I.total,
224
228
  active: I.active,
225
229
  pending: I.pending,
226
230
  behind: I.behind
227
- }), I.hiddenCount > 0 && /* @__PURE__ */ x(y, { children: [" ", A("bigconsole.fleet.children.hidden", "{{count}} you cannot open are not listed.", { count: I.hiddenCount })] })]
231
+ }), I.hiddenCount > 0 && /* @__PURE__ */ S(b, { children: [" ", j("bigconsole.fleet.children.hidden", "{{count}} you cannot open are not listed.", { count: I.hiddenCount })] })]
228
232
  }),
229
- /* @__PURE__ */ x("ul", {
233
+ /* @__PURE__ */ S("ul", {
230
234
  className: "flex flex-col gap-1",
231
235
  style: {
232
236
  listStyle: "none",
233
237
  margin: 0,
234
238
  padding: 0
235
239
  },
236
- children: [I.children.length === 0 && I.total === 0 && /* @__PURE__ */ b("li", {
240
+ children: [I.children.length === 0 && I.total === 0 && /* @__PURE__ */ x("li", {
237
241
  style: {
238
242
  color: "var(--color-text-secondary)",
239
243
  fontSize: "var(--font-size-body-sm)"
240
244
  },
241
- children: A("bigconsole.fleet.children.none", "No copies yet. Create one, or link a board from the dashboards list.")
242
- }), I.children.map((e) => /* @__PURE__ */ x("li", {
245
+ children: j("bigconsole.fleet.children.none", "No copies yet. Create one, or link a board from the dashboards list.")
246
+ }), I.children.map((e) => /* @__PURE__ */ S("li", {
243
247
  "data-testid": "fleet-child",
244
248
  className: "flex items-center justify-between gap-form-gap rounded-input border px-3 py-2",
245
249
  style: { borderColor: "var(--color-border-subtle)" },
246
- children: [/* @__PURE__ */ b("button", {
250
+ children: [/* @__PURE__ */ x("button", {
247
251
  type: "button",
248
- onClick: () => re(e.dashboardId),
252
+ onClick: () => A(e.dashboardId),
249
253
  className: "min-w-0 truncate text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
250
254
  style: {
251
255
  color: "var(--color-text-primary)",
@@ -255,133 +259,153 @@ var S = {
255
259
  cursor: "pointer"
256
260
  },
257
261
  children: e.name
258
- }), de(e)]
262
+ }), ge(e)]
259
263
  }, e.dashboardId))]
260
264
  }),
261
- /* @__PURE__ */ x("div", {
265
+ /* @__PURE__ */ S("div", {
262
266
  className: "flex flex-wrap items-center gap-2",
263
267
  children: [
264
- /* @__PURE__ */ b(g, {
268
+ /* @__PURE__ */ x(h, {
265
269
  permission: t.DASHBOARD_CREATE,
266
270
  deniedBehavior: "hide",
267
- children: /* @__PURE__ */ b(_, {
271
+ children: /* @__PURE__ */ x(v, {
268
272
  variant: "outline",
269
273
  onClick: () => {
270
- W(null), H(!0);
274
+ K(null), U(!0);
271
275
  },
272
- disabled: Z,
276
+ disabled: Q,
273
277
  "data-testid": "fleet-create-copy",
274
- children: A("bigconsole.fleet.children.createCopy", "Create linked copy…")
278
+ children: j("bigconsole.fleet.children.createCopy", "Create linked copy…")
275
279
  })
276
280
  }),
277
- /* @__PURE__ */ b(g, {
281
+ /* @__PURE__ */ x(h, {
278
282
  permission: t.DASHBOARD_UPDATE,
279
283
  deniedBehavior: "hide",
280
- children: /* @__PURE__ */ b(_, {
284
+ children: /* @__PURE__ */ x(v, {
281
285
  onClick: () => $("DIRECT_COPIES"),
282
- disabled: Z || I.total === 0 || z.phase === "preview",
286
+ disabled: Q || I.total === 0 || B.phase === "preview",
283
287
  "data-testid": "fleet-push",
284
- children: A("bigconsole.fleet.children.push", "Push to copies…")
288
+ children: j("bigconsole.fleet.children.push", "Push to copies…")
289
+ })
290
+ }),
291
+ /* @__PURE__ */ x(h, {
292
+ permission: t.DASHBOARD_UPDATE,
293
+ deniedBehavior: "hide",
294
+ children: /* @__PURE__ */ x(v, {
295
+ variant: "outline",
296
+ onClick: () => G(!0),
297
+ disabled: Q || z.length === 0,
298
+ "data-testid": "fleet-bindings",
299
+ children: j("bigconsole.fleet.children.bindings", "Data sources…")
285
300
  })
286
301
  }),
287
- /* @__PURE__ */ b(g, {
302
+ /* @__PURE__ */ x(h, {
288
303
  permission: t.DASHBOARD_UPDATE,
289
304
  deniedBehavior: "hide",
290
- children: /* @__PURE__ */ b(_, {
305
+ children: /* @__PURE__ */ x(v, {
291
306
  variant: "ghost",
292
- onClick: ce,
293
- disabled: Z || I.total > 0,
294
- title: I.total > 0 ? A("bigconsole.fleet.children.unsetBlocked", "Detach or remove every copy first.") : void 0,
307
+ onClick: pe,
308
+ disabled: Q || I.total > 0,
309
+ title: I.total > 0 ? j("bigconsole.fleet.children.unsetBlocked", "Detach or remove every copy first.") : void 0,
295
310
  "data-testid": "fleet-unset-master",
296
- children: A("bigconsole.fleet.children.unsetMaster", "Stop being a master")
311
+ children: j("bigconsole.fleet.children.unsetMaster", "Stop being a master")
297
312
  })
298
313
  })
299
314
  ]
300
315
  })
301
316
  ] }),
302
- z.phase === "preview" && /* @__PURE__ */ x("div", {
317
+ B.phase === "preview" && /* @__PURE__ */ S("div", {
303
318
  className: "flex flex-col gap-form-gap rounded-input border p-3",
304
319
  style: { borderColor: "var(--color-border-subtle)" },
305
320
  "data-testid": "fleet-push-preview",
306
321
  children: [
307
- /* @__PURE__ */ b("strong", {
322
+ /* @__PURE__ */ x("strong", {
308
323
  style: { color: "var(--color-text-primary)" },
309
- children: A("bigconsole.fleet.push.previewTitle", "Preview: nothing has been changed yet")
324
+ children: j("bigconsole.fleet.push.previewTitle", "Preview: nothing has been changed yet")
310
325
  }),
311
- /* @__PURE__ */ b("div", {
326
+ /* @__PURE__ */ x("div", {
312
327
  role: "radiogroup",
313
- "aria-label": A("bigconsole.fleet.push.scopeLabel", "How far to push"),
328
+ "aria-label": j("bigconsole.fleet.push.scopeLabel", "How far to push"),
314
329
  className: "flex flex-wrap gap-2",
315
- children: ["DIRECT_COPIES", "ALL_UNDER"].map((e) => /* @__PURE__ */ b("button", {
330
+ children: ["DIRECT_COPIES", "ALL_UNDER"].map((e) => /* @__PURE__ */ x("button", {
316
331
  type: "button",
317
332
  role: "radio",
318
- "aria-checked": z.scope === e,
319
- disabled: Z,
320
- onClick: () => z.scope !== e && $(e),
333
+ "aria-checked": B.scope === e,
334
+ disabled: Q,
335
+ onClick: () => B.scope !== e && $(e),
321
336
  className: "rounded-input border px-3 py-1 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
322
337
  style: {
323
- borderColor: z.scope === e ? "var(--color-action-primary-bg)" : "var(--color-border-subtle)",
324
- backgroundColor: z.scope === e ? "var(--color-bg-accentSubtle)" : void 0,
338
+ borderColor: B.scope === e ? "var(--color-action-primary-bg)" : "var(--color-border-subtle)",
339
+ backgroundColor: B.scope === e ? "var(--color-bg-accentSubtle)" : void 0,
325
340
  color: "var(--color-text-primary)"
326
341
  },
327
342
  "data-testid": `fleet-push-scope-${e}`,
328
- children: e === "DIRECT_COPIES" ? A("bigconsole.fleet.push.scopeDirect", "Direct copies") : A("bigconsole.fleet.push.scopeAll", "Copies of copies too")
343
+ children: e === "DIRECT_COPIES" ? j("bigconsole.fleet.push.scopeDirect", "Direct copies") : j("bigconsole.fleet.push.scopeAll", "Copies of copies too")
329
344
  }, e))
330
345
  }),
331
- /* @__PURE__ */ b(u, { result: z.result }),
332
- s(z.result) && /* @__PURE__ */ b("p", {
346
+ /* @__PURE__ */ x(l, { result: B.result }),
347
+ a(B.result) && /* @__PURE__ */ x("p", {
333
348
  style: {
334
349
  margin: 0,
335
350
  color: "var(--color-text-secondary)",
336
351
  fontSize: "var(--font-size-body-sm)"
337
352
  },
338
- children: A("bigconsole.fleet.push.nothing", "Nothing to push: every copy already has what this board has.")
353
+ children: j("bigconsole.fleet.push.nothing", "Nothing to push: every copy already has what this board has.")
339
354
  }),
340
- /* @__PURE__ */ x("div", {
355
+ /* @__PURE__ */ S("div", {
341
356
  className: "flex gap-2",
342
- children: [/* @__PURE__ */ x(_, {
343
- onClick: () => ue(z.scope),
344
- disabled: Z || s(z.result),
357
+ children: [/* @__PURE__ */ S(v, {
358
+ onClick: () => he(B.scope),
359
+ disabled: Q || a(B.result),
345
360
  "data-testid": "fleet-push-confirm",
346
- children: [Z && /* @__PURE__ */ b(v, { style: {
361
+ children: [Q && /* @__PURE__ */ x(y, { style: {
347
362
  height: "var(--size-icon-sm)",
348
363
  width: "var(--size-icon-sm)"
349
- } }), A("bigconsole.fleet.push.confirm", "Push now")]
350
- }), /* @__PURE__ */ b(_, {
364
+ } }), j("bigconsole.fleet.push.confirm", "Push now")]
365
+ }), /* @__PURE__ */ x(v, {
351
366
  variant: "outline",
352
- onClick: () => B({ phase: "idle" }),
353
- disabled: Z,
354
- children: A("bigconsole.fleet.link.cancel", "Cancel")
367
+ onClick: () => V({ phase: "idle" }),
368
+ disabled: Q,
369
+ children: j("bigconsole.fleet.link.cancel", "Cancel")
355
370
  })]
356
371
  })
357
372
  ]
358
373
  }),
359
- z.phase === "done" && /* @__PURE__ */ x("div", {
374
+ B.phase === "done" && /* @__PURE__ */ S("div", {
360
375
  className: "flex flex-col gap-form-gap rounded-input border p-3",
361
376
  style: { borderColor: "var(--color-border-subtle)" },
362
377
  "data-testid": "fleet-push-done",
363
378
  children: [
364
- /* @__PURE__ */ b("strong", {
379
+ /* @__PURE__ */ x("strong", {
365
380
  style: { color: "var(--color-text-primary)" },
366
- children: A("bigconsole.fleet.push.doneTitle", "Pushed")
381
+ children: j("bigconsole.fleet.push.doneTitle", "Pushed")
367
382
  }),
368
- /* @__PURE__ */ b(u, { result: z.result }),
369
- /* @__PURE__ */ b("div", { children: /* @__PURE__ */ b(_, {
383
+ /* @__PURE__ */ x(l, { result: B.result }),
384
+ /* @__PURE__ */ x("div", { children: /* @__PURE__ */ x(v, {
370
385
  variant: "outline",
371
- onClick: () => B({ phase: "idle" }),
372
- children: A("bigconsole.fleet.push.done", "Done")
386
+ onClick: () => V({ phase: "idle" }),
387
+ children: j("bigconsole.fleet.push.done", "Done")
373
388
  }) })
374
389
  ]
375
390
  }),
376
- /* @__PURE__ */ b(c, {
377
- isOpen: V,
378
- masterName: T,
379
- busy: Z,
380
- error: U,
381
- onClose: () => H(!1),
382
- onCreate: le
391
+ W && /* @__PURE__ */ x(s, {
392
+ isOpen: !0,
393
+ masterId: u,
394
+ masterName: E,
395
+ copies: z,
396
+ lock: Y,
397
+ onClose: () => G(!1),
398
+ onChanged: L
399
+ }),
400
+ /* @__PURE__ */ x(o, {
401
+ isOpen: H,
402
+ masterName: E,
403
+ busy: Q,
404
+ error: ce,
405
+ onClose: () => U(!1),
406
+ onCreate: me
383
407
  })
384
408
  ]
385
409
  });
386
410
  });
387
- export { T as FleetChildrenPanel, T as default };
411
+ export { E as FleetChildrenPanel, E as default };