@burdenoff/microfe-bigconsole 2026.1124.9 → 2026.1124.10

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.
@@ -30,6 +30,7 @@ var h = (e) => e.stopPropagation(), g = r(function({ dashboard: r, description:
30
30
  className: "m-0 min-w-0 flex-1 pt-0.5 text-base font-semibold leading-snug text-text-primary",
31
31
  children: /* @__PURE__ */ p("button", {
32
32
  type: "button",
33
+ "data-drag-through": "",
33
34
  className: "line-clamp-2 max-w-full text-start hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
34
35
  onClick: (e) => {
35
36
  e.stopPropagation(), T();
@@ -12,6 +12,10 @@ export interface FleetCardActionsProps {
12
12
  disabled?: boolean;
13
13
  onAccept?: (event: MouseEvent) => void;
14
14
  onDecline?: (event: MouseEvent) => void;
15
+ /** The board is already a master: "Set as master" is not offered. */
16
+ isMaster?: boolean;
17
+ /** Makes the board a master, so other boards can follow it. Offered for a board that follows nothing. */
18
+ onSetMaster?: (event: MouseEvent) => void;
15
19
  }
16
20
  export declare const FleetCardActions: FC<FleetCardActionsProps>;
17
21
  export default FleetCardActions;
@@ -2,52 +2,52 @@ import { BIGCONSOLE_PERMISSIONS as e } from "../../../constants/permissions.js";
2
2
  import { useTr as t } from "../../../shared/hooks/useTr.js";
3
3
  import { memo as n } from "react";
4
4
  import { PermissionButton as r } from "@burdenoff/fe-libs/shared/components";
5
- import { Check as i, Link2 as a, Unlink as o, X as s } from "lucide-react";
6
- import { Button as c } from "@burdenoff/fe-libs/ui";
7
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
5
+ import { Check as i, Link2 as a, Network as o, Unlink as s, X as c } from "lucide-react";
6
+ import { Button as l } from "@burdenoff/fe-libs/ui";
7
+ import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
8
8
  // src/bigconsole/components/fleet/FleetCardActions.tsx
9
- var d = {
9
+ var p = {
10
10
  height: "var(--size-controlHeight-md)",
11
11
  width: "var(--size-controlHeight-md)",
12
12
  padding: 0,
13
13
  borderRadius: "var(--radius-button)"
14
- }, f = n(function({ linked: n, onLink: f, onDetach: p, awaitingAnswer: m = !1, ready: h = !0, disabled: g = !1, onAccept: _, onDecline: v }) {
15
- let y = t();
16
- if (!h) return null;
17
- if (m) {
18
- let t = y("bigconsole.fleet.action.accept", "Accept link request"), n = y("bigconsole.fleet.action.decline", "Decline link request");
19
- return /* @__PURE__ */ l(r, {
14
+ }, m = n(function({ linked: n, onLink: m, onDetach: h, awaitingAnswer: g = !1, ready: _ = !0, disabled: v = !1, onAccept: y, onDecline: b, isMaster: x = !1, onSetMaster: S }) {
15
+ let C = t();
16
+ if (!_) return null;
17
+ if (g) {
18
+ let t = C("bigconsole.fleet.action.accept", "Accept link request"), n = C("bigconsole.fleet.action.decline", "Decline link request");
19
+ return /* @__PURE__ */ d(r, {
20
20
  permission: e.DASHBOARD_UPDATE,
21
21
  deniedBehavior: "hide",
22
- children: /* @__PURE__ */ u("span", {
22
+ children: /* @__PURE__ */ f("span", {
23
23
  style: {
24
24
  display: "inline-flex",
25
25
  alignItems: "center",
26
26
  gap: "var(--space-controlGap)"
27
27
  },
28
- children: [/* @__PURE__ */ l(c, {
28
+ children: [/* @__PURE__ */ d(l, {
29
29
  variant: "ghost",
30
30
  size: "sm",
31
- onClick: _,
32
- disabled: g,
31
+ onClick: y,
32
+ disabled: v,
33
33
  "aria-label": t,
34
34
  title: t,
35
35
  "data-testid": "fleet-accept",
36
- style: d,
37
- children: /* @__PURE__ */ l(i, { style: {
36
+ style: p,
37
+ children: /* @__PURE__ */ d(i, { style: {
38
38
  height: "var(--size-icon-sm)",
39
39
  width: "var(--size-icon-sm)"
40
40
  } })
41
- }), /* @__PURE__ */ l(c, {
41
+ }), /* @__PURE__ */ d(l, {
42
42
  variant: "ghost",
43
43
  size: "sm",
44
- onClick: v,
45
- disabled: g,
44
+ onClick: b,
45
+ disabled: v,
46
46
  "aria-label": n,
47
47
  title: n,
48
48
  "data-testid": "fleet-decline",
49
- style: d,
50
- children: /* @__PURE__ */ l(s, { style: {
49
+ style: p,
50
+ children: /* @__PURE__ */ d(c, { style: {
51
51
  height: "var(--size-icon-sm)",
52
52
  width: "var(--size-icon-sm)"
53
53
  } })
@@ -55,24 +55,38 @@ var d = {
55
55
  })
56
56
  });
57
57
  }
58
- let b = n ? y("bigconsole.fleet.action.detach", "Detach from master") : y("bigconsole.fleet.action.link", "Link to master…");
59
- return /* @__PURE__ */ l(r, {
58
+ let w = n ? C("bigconsole.fleet.action.detach", "Detach from master") : C("bigconsole.fleet.action.link", "Link to master…"), T = C("bigconsole.fleet.action.setMaster", "Set as master"), E = {
59
+ height: "var(--size-icon-sm)",
60
+ width: "var(--size-icon-sm)"
61
+ };
62
+ return /* @__PURE__ */ f(u, { children: [!n && !x && S && /* @__PURE__ */ d(r, {
60
63
  permission: e.DASHBOARD_UPDATE,
61
64
  deniedBehavior: "hide",
62
- children: /* @__PURE__ */ l(c, {
65
+ children: /* @__PURE__ */ d(l, {
63
66
  variant: "ghost",
64
67
  size: "sm",
65
- onClick: n ? p : f,
66
- disabled: g,
67
- "aria-label": b,
68
- title: b,
68
+ onClick: S,
69
+ disabled: v,
70
+ "aria-label": T,
71
+ title: T,
72
+ "data-testid": "fleet-set-master-card",
73
+ style: p,
74
+ children: /* @__PURE__ */ d(o, { style: E })
75
+ })
76
+ }), /* @__PURE__ */ d(r, {
77
+ permission: e.DASHBOARD_UPDATE,
78
+ deniedBehavior: "hide",
79
+ children: /* @__PURE__ */ d(l, {
80
+ variant: "ghost",
81
+ size: "sm",
82
+ onClick: n ? h : m,
83
+ disabled: v,
84
+ "aria-label": w,
85
+ title: w,
69
86
  "data-testid": n ? "fleet-detach" : "fleet-link",
70
- style: d,
71
- children: l(n ? o : a, { style: {
72
- height: "var(--size-icon-sm)",
73
- width: "var(--size-icon-sm)"
74
- } })
87
+ style: p,
88
+ children: d(n ? s : a, { style: E })
75
89
  })
76
- });
90
+ })] });
77
91
  });
78
- export { f as FleetCardActions, f as default };
92
+ export { m as FleetCardActions, m as default };