@burdenoff/microfe-bigconsole 2026.1122.2 → 2026.1122.4

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 (35) hide show
  1. package/dist/bigconsole/asof/AsOfProvider.d.ts +7 -0
  2. package/dist/bigconsole/asof/AsOfProvider.js +5 -2
  3. package/dist/bigconsole/asof/asOfParam.d.ts +5 -0
  4. package/dist/bigconsole/asof/asOfParam.js +7 -4
  5. package/dist/bigconsole/asof/index.d.ts +2 -2
  6. package/dist/bigconsole/asof/index.js +6 -6
  7. package/dist/bigconsole/asof/liveOnlySurfaces.d.ts +43 -0
  8. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +133 -127
  9. package/dist/bigconsole/components/dashboard/DashboardCommentsDrawer.d.ts +16 -0
  10. package/dist/bigconsole/components/dashboard/DashboardCommentsDrawer.js +308 -0
  11. package/dist/bigconsole/components/dashboard/DashboardPresenceBar.d.ts +8 -0
  12. package/dist/bigconsole/components/dashboard/DashboardPresenceBar.js +138 -0
  13. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +51 -51
  14. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.d.ts +3 -1
  15. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +34 -34
  16. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +154 -145
  17. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +302 -294
  18. package/dist/bigconsole/components/dashboard/index.d.ts +2 -0
  19. package/dist/bigconsole/components/dashboard/index.js +3 -1
  20. package/dist/bigconsole/components/widgets/WidgetWrapper.js +165 -163
  21. package/dist/bigconsole/components/widgets/comments/WidgetComments.d.ts +13 -0
  22. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +213 -117
  23. package/dist/bigconsole/components/widgets/comments/commentMentions.d.ts +58 -0
  24. package/dist/bigconsole/components/widgets/comments/commentMentions.js +66 -0
  25. package/dist/bigconsole/hooks/index.d.ts +2 -1
  26. package/dist/bigconsole/hooks/index.js +1 -0
  27. package/dist/bigconsole/hooks/useDashboardPresence.d.ts +44 -0
  28. package/dist/bigconsole/hooks/useDashboardPresence.js +147 -0
  29. package/dist/bigconsole/hooks/useWidgetComments.d.ts +12 -1
  30. package/dist/bigconsole/hooks/useWidgetComments.js +25 -13
  31. package/dist/bigconsole/pages/DashboardBuilderPage.js +88 -64
  32. package/dist/bigconsole/pages/DashboardViewPage.js +255 -221
  33. package/dist/generated/wspace-operations.d.ts +35 -0
  34. package/dist/generated/wspace-operations.js +353 -54
  35. package/package.json +1 -1
@@ -12,8 +12,8 @@ import "../../asof/index.js";
12
12
  import { memo as o, useCallback as s } from "react";
13
13
  import { PermissionButton as c } from "@burdenoff/fe-libs/shared/components";
14
14
  import { usePermissions as l } from "@burdenoff/fe-libs/shared/providers/shell";
15
- import { Clipboard as u, ClipboardCheck as d, Download as te, Eye as f, FileText as p, Image as m, Minus as h, PanelLeft as g, PanelLeftClose as _, Pencil as v, Plus as y, RotateCcw as b, Save as x, Share2 as S, Store as C } from "lucide-react";
16
- import { Button as w, Spinner as T, Tooltip as E, TooltipContent as D, TooltipProvider as ne, TooltipTrigger as O } from "@burdenoff/fe-libs/ui";
15
+ import { Clipboard as u, ClipboardCheck as d, Download as te, Eye as ne, FileText as f, Image as p, Minus as m, PanelLeft as h, PanelLeftClose as g, Pencil as _, Plus as v, RotateCcw as y, Save as b, Share2 as x, Store as S } from "lucide-react";
16
+ import { Button as C, Spinner as w, Tooltip as T, TooltipContent as E, TooltipProvider as D, TooltipTrigger as O } from "@burdenoff/fe-libs/ui";
17
17
  import { useI18n as k } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
18
18
  import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
19
19
  // src/bigconsole/components/dashboard/DashboardToolbar.tsx
@@ -21,7 +21,7 @@ var N = o(function({ dashboardId: o, title: N, onAddWidget: P, onTogglePalette:
21
21
  let { hasPermission: re } = l(), { t: q } = k(), J = t((e) => e.viewMode === "edit"), Y = t((e) => e.toggleViewMode), { asOf: X } = i(), Z = t((e) => e.zoomLevel), Q = t((e) => e.setZoomLevel), $ = !!e((e) => e.clipboardWidgetId), ie = s(() => {
22
22
  $ && L && L();
23
23
  }, [$, L]);
24
- return /* @__PURE__ */ j(ne, { children: /* @__PURE__ */ M(n, {
24
+ return /* @__PURE__ */ j(D, { children: /* @__PURE__ */ M(n, {
25
25
  emphasis: "bare",
26
26
  padding: "none",
27
27
  "aria-label": N ? `Board toolbar — ${N}` : "Board toolbar",
@@ -31,46 +31,46 @@ var N = o(function({ dashboardId: o, title: N, onAddWidget: P, onTogglePalette:
31
31
  children: [
32
32
  /* @__PURE__ */ j("div", {
33
33
  className: "flex min-w-0 items-center gap-4",
34
- children: o && /* @__PURE__ */ j(a, { dashboardId: o })
34
+ children: o && !X && /* @__PURE__ */ j(a, { dashboardId: o })
35
35
  }),
36
36
  /* @__PURE__ */ M("div", {
37
37
  role: "group",
38
38
  "aria-label": "Zoom",
39
39
  className: "flex min-w-0 items-center gap-1 border-l border-[var(--color-border-subtle)] pl-4",
40
40
  children: [
41
- /* @__PURE__ */ M(E, { children: [/* @__PURE__ */ j(O, {
41
+ /* @__PURE__ */ M(T, { children: [/* @__PURE__ */ j(O, {
42
42
  asChild: !0,
43
- children: /* @__PURE__ */ j(w, {
43
+ children: /* @__PURE__ */ j(C, {
44
44
  variant: "ghost",
45
45
  size: "icon-sm",
46
46
  onClick: () => Q(Math.max(50, Z - 10)),
47
47
  disabled: Z <= 50,
48
- children: /* @__PURE__ */ j(h, { className: "size-4" })
48
+ children: /* @__PURE__ */ j(m, { className: "size-4" })
49
49
  })
50
- }), /* @__PURE__ */ j(D, { children: q("bigconsole.dashboards.toolbar.zoomOut", "Zoom out") })] }),
50
+ }), /* @__PURE__ */ j(E, { children: q("bigconsole.dashboards.toolbar.zoomOut", "Zoom out") })] }),
51
51
  /* @__PURE__ */ M("span", {
52
52
  className: "text-sm text-text-secondary w-12 text-center",
53
53
  children: [Z, "%"]
54
54
  }),
55
- /* @__PURE__ */ M(E, { children: [/* @__PURE__ */ j(O, {
55
+ /* @__PURE__ */ M(T, { children: [/* @__PURE__ */ j(O, {
56
56
  asChild: !0,
57
- children: /* @__PURE__ */ j(w, {
57
+ children: /* @__PURE__ */ j(C, {
58
58
  variant: "ghost",
59
59
  size: "icon-sm",
60
60
  onClick: () => Q(Math.min(200, Z + 10)),
61
61
  disabled: Z >= 200,
62
- children: /* @__PURE__ */ j(y, { className: "size-4" })
62
+ children: /* @__PURE__ */ j(v, { className: "size-4" })
63
63
  })
64
- }), /* @__PURE__ */ j(D, { children: q("bigconsole.dashboards.toolbar.zoomIn", "Zoom in") })] }),
65
- /* @__PURE__ */ M(E, { children: [/* @__PURE__ */ j(O, {
64
+ }), /* @__PURE__ */ j(E, { children: q("bigconsole.dashboards.toolbar.zoomIn", "Zoom in") })] }),
65
+ /* @__PURE__ */ M(T, { children: [/* @__PURE__ */ j(O, {
66
66
  asChild: !0,
67
- children: /* @__PURE__ */ M(w, {
67
+ children: /* @__PURE__ */ M(C, {
68
68
  variant: "ghost",
69
69
  size: "sm",
70
70
  onClick: () => Q(100),
71
- children: [/* @__PURE__ */ j(b, { className: "size-3.5 mr-1" }), q("bigconsole.dashboards.toolbar.reset", "Reset")]
71
+ children: [/* @__PURE__ */ j(y, { className: "size-3.5 mr-1" }), q("bigconsole.dashboards.toolbar.reset", "Reset")]
72
72
  })
73
- }), /* @__PURE__ */ j(D, { children: q("bigconsole.dashboards.toolbar.resetZoomTooltip", "Reset zoom to 100%") })] })
73
+ }), /* @__PURE__ */ j(E, { children: q("bigconsole.dashboards.toolbar.resetZoomTooltip", "Reset zoom to 100%") })] })
74
74
  ]
75
75
  }),
76
76
  /* @__PURE__ */ M("div", {
@@ -80,81 +80,81 @@ var N = o(function({ dashboardId: o, title: N, onAddWidget: P, onTogglePalette:
80
80
  children: [
81
81
  !J && /* @__PURE__ */ j(ee, {}),
82
82
  J && /* @__PURE__ */ M(A, { children: [
83
- F && /* @__PURE__ */ M(E, { children: [/* @__PURE__ */ j(O, {
83
+ F && /* @__PURE__ */ M(T, { children: [/* @__PURE__ */ j(O, {
84
84
  asChild: !0,
85
- children: /* @__PURE__ */ M(w, {
85
+ children: /* @__PURE__ */ M(C, {
86
86
  variant: I ? "secondary" : "outline",
87
87
  size: "sm",
88
88
  onClick: F,
89
- children: [j(I ? _ : g, { className: "size-4" }), q("bigconsole.dashboards.toolbar.widgets", "Widgets")]
89
+ children: [j(I ? g : h, { className: "size-4" }), q("bigconsole.dashboards.toolbar.widgets", "Widgets")]
90
90
  })
91
- }), /* @__PURE__ */ j(D, { children: I ? q("bigconsole.dashboards.toolbar.hidePalette", "Hide widget palette") : q("bigconsole.dashboards.toolbar.showPalette", "Show widget palette for drag & drop") })] }),
92
- /* @__PURE__ */ M(E, { children: [/* @__PURE__ */ j(O, {
91
+ }), /* @__PURE__ */ j(E, { children: I ? q("bigconsole.dashboards.toolbar.hidePalette", "Hide widget palette") : q("bigconsole.dashboards.toolbar.showPalette", "Show widget palette for drag & drop") })] }),
92
+ /* @__PURE__ */ M(T, { children: [/* @__PURE__ */ j(O, {
93
93
  asChild: !0,
94
- children: /* @__PURE__ */ M(w, {
94
+ children: /* @__PURE__ */ M(C, {
95
95
  variant: "ghost",
96
96
  size: "sm",
97
97
  onClick: ie,
98
98
  disabled: !$,
99
99
  children: [/* @__PURE__ */ j(u, { className: "size-4" }), q("bigconsole.dashboards.toolbar.paste", "Paste")]
100
100
  })
101
- }), /* @__PURE__ */ j(D, { children: q("bigconsole.dashboards.toolbar.pasteTooltip", "Paste widget from clipboard") })] }),
101
+ }), /* @__PURE__ */ j(E, { children: q("bigconsole.dashboards.toolbar.pasteTooltip", "Paste widget from clipboard") })] }),
102
102
  /* @__PURE__ */ j(c, {
103
103
  permission: r.WIDGET_CREATE,
104
104
  deniedBehavior: "hide",
105
- children: /* @__PURE__ */ M(w, {
105
+ children: /* @__PURE__ */ M(C, {
106
106
  size: "sm",
107
107
  onClick: P,
108
- children: [/* @__PURE__ */ j(y, { className: "size-4" }), q("bigconsole.dashboards.toolbar.addWidget", "Add Widget")]
108
+ children: [/* @__PURE__ */ j(v, { className: "size-4" }), q("bigconsole.dashboards.toolbar.addWidget", "Add Widget")]
109
109
  })
110
110
  })
111
111
  ] }),
112
- /* @__PURE__ */ j(w, {
112
+ /* @__PURE__ */ j(C, {
113
113
  variant: J ? "secondary" : "outline",
114
114
  size: "sm",
115
115
  onClick: Y,
116
116
  disabled: !J && !!X,
117
- children: J ? /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(f, { className: "size-4" }), q("bigconsole.dashboards.toolbar.preview", "Preview")] }) : /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(v, { className: "size-4" }), q("bigconsole.dashboards.toolbar.edit", "Edit")] })
117
+ children: J ? /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(ne, { className: "size-4" }), q("bigconsole.dashboards.toolbar.preview", "Preview")] }) : /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(_, { className: "size-4" }), q("bigconsole.dashboards.toolbar.edit", "Edit")] })
118
118
  }),
119
- R && /* @__PURE__ */ j(w, {
119
+ R && /* @__PURE__ */ j(C, {
120
120
  variant: "outline",
121
121
  size: "sm",
122
122
  onClick: R,
123
123
  disabled: z,
124
- children: z ? /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(T, { className: "size-4" }), q("bigconsole.dashboards.toolbar.saving", "Saving...")] }) : /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(x, { className: "size-4" }), q("bigconsole.dashboards.toolbar.save", "Save")] })
124
+ children: z ? /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(w, { className: "size-4" }), q("bigconsole.dashboards.toolbar.saving", "Saving...")] }) : /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(b, { className: "size-4" }), q("bigconsole.dashboards.toolbar.save", "Save")] })
125
125
  }),
126
126
  K && /* @__PURE__ */ j(c, {
127
127
  permission: r.DASHBOARD_SHARE,
128
128
  deniedBehavior: "hide",
129
- children: /* @__PURE__ */ M(E, { children: [/* @__PURE__ */ j(O, {
129
+ children: /* @__PURE__ */ M(T, { children: [/* @__PURE__ */ j(O, {
130
130
  asChild: !0,
131
- children: /* @__PURE__ */ M(w, {
131
+ children: /* @__PURE__ */ M(C, {
132
132
  variant: "outline",
133
133
  size: "sm",
134
134
  onClick: K,
135
- children: [/* @__PURE__ */ j(S, { className: "size-4" }), q("bigconsole.dashboards.toolbar.share", "Share")]
135
+ children: [/* @__PURE__ */ j(x, { className: "size-4" }), q("bigconsole.dashboards.toolbar.share", "Share")]
136
136
  })
137
- }), /* @__PURE__ */ j(D, { children: q("bigconsole.dashboards.toolbar.shareTooltip", "Share dashboard with others") })] })
137
+ }), /* @__PURE__ */ j(E, { children: q("bigconsole.dashboards.toolbar.shareTooltip", "Share dashboard with others") })] })
138
138
  }),
139
139
  H && /* @__PURE__ */ j(c, {
140
140
  permission: r.DASHBOARD_PUBLISH,
141
141
  deniedBehavior: "hide",
142
- children: /* @__PURE__ */ M(E, { children: [/* @__PURE__ */ j(O, {
142
+ children: /* @__PURE__ */ M(T, { children: [/* @__PURE__ */ j(O, {
143
143
  asChild: !0,
144
- children: /* @__PURE__ */ M(w, {
144
+ children: /* @__PURE__ */ M(C, {
145
145
  variant: "outline",
146
146
  size: "sm",
147
147
  onClick: H,
148
- children: [/* @__PURE__ */ j(C, { className: "size-4" }), /* @__PURE__ */ j("span", {
148
+ children: [/* @__PURE__ */ j(S, { className: "size-4" }), /* @__PURE__ */ j("span", {
149
149
  className: "hidden sm:inline",
150
150
  children: q("bigconsole.dashboards.toolbar.publish", "Publish")
151
151
  })]
152
152
  })
153
- }), /* @__PURE__ */ j(D, { children: q("bigconsole.dashboards.toolbar.publishTooltip", "Publish this dashboard as a reusable template") })] })
153
+ }), /* @__PURE__ */ j(E, { children: q("bigconsole.dashboards.toolbar.publishTooltip", "Publish this dashboard as a reusable template") })] })
154
154
  }),
155
- B && /* @__PURE__ */ M(E, { children: [/* @__PURE__ */ j(O, {
155
+ B && /* @__PURE__ */ M(T, { children: [/* @__PURE__ */ j(O, {
156
156
  asChild: !0,
157
- children: /* @__PURE__ */ M(w, {
157
+ children: /* @__PURE__ */ M(C, {
158
158
  variant: "outline",
159
159
  size: "sm",
160
160
  onClick: B,
@@ -164,36 +164,36 @@ var N = o(function({ dashboardId: o, title: N, onAddWidget: P, onTogglePalette:
164
164
  children: q("bigconsole.dashboards.toolbar.review", "Review")
165
165
  })]
166
166
  })
167
- }), /* @__PURE__ */ j(D, { children: q("bigconsole.dashboards.toolbar.reviewTooltip", "Check charts for misleading axes, colour-only meaning and unclear titles") })] }),
168
- V && /* @__PURE__ */ M(E, { children: [/* @__PURE__ */ j(O, {
167
+ }), /* @__PURE__ */ j(E, { children: q("bigconsole.dashboards.toolbar.reviewTooltip", "Check charts for misleading axes, colour-only meaning and unclear titles") })] }),
168
+ V && /* @__PURE__ */ M(T, { children: [/* @__PURE__ */ j(O, {
169
169
  asChild: !0,
170
- children: /* @__PURE__ */ M(w, {
170
+ children: /* @__PURE__ */ M(C, {
171
171
  variant: "outline",
172
172
  size: "sm",
173
173
  onClick: V,
174
174
  children: [/* @__PURE__ */ j(te, { className: "size-4" }), q("bigconsole.dashboards.toolbar.export", "Export")]
175
175
  })
176
- }), /* @__PURE__ */ j(D, { children: q("bigconsole.dashboards.toolbar.exportTooltip", "Export dashboard to JSON") })] }),
177
- U && /* @__PURE__ */ M(E, { children: [/* @__PURE__ */ j(O, {
176
+ }), /* @__PURE__ */ j(E, { children: q("bigconsole.dashboards.toolbar.exportTooltip", "Export dashboard to JSON") })] }),
177
+ U && /* @__PURE__ */ M(T, { children: [/* @__PURE__ */ j(O, {
178
178
  asChild: !0,
179
- children: /* @__PURE__ */ j(w, {
179
+ children: /* @__PURE__ */ j(C, {
180
180
  variant: "outline",
181
181
  size: "icon-sm",
182
182
  onClick: U,
183
183
  disabled: G,
184
- children: j(G ? T : m, { className: "size-4" })
184
+ children: j(G ? w : p, { className: "size-4" })
185
185
  })
186
- }), /* @__PURE__ */ j(D, { children: q("bigconsole.dashboards.toolbar.exportPngTooltip", "Export board as PNG image") })] }),
187
- W && /* @__PURE__ */ M(E, { children: [/* @__PURE__ */ j(O, {
186
+ }), /* @__PURE__ */ j(E, { children: q("bigconsole.dashboards.toolbar.exportPngTooltip", "Export board as PNG image") })] }),
187
+ W && /* @__PURE__ */ M(T, { children: [/* @__PURE__ */ j(O, {
188
188
  asChild: !0,
189
- children: /* @__PURE__ */ j(w, {
189
+ children: /* @__PURE__ */ j(C, {
190
190
  variant: "outline",
191
191
  size: "icon-sm",
192
192
  onClick: W,
193
193
  disabled: G,
194
- children: /* @__PURE__ */ j(p, { className: "size-4" })
194
+ children: /* @__PURE__ */ j(f, { className: "size-4" })
195
195
  })
196
- }), /* @__PURE__ */ j(D, { children: q("bigconsole.dashboards.toolbar.exportPdfTooltip", "Export board as PDF") })] })
196
+ }), /* @__PURE__ */ j(E, { children: q("bigconsole.dashboards.toolbar.exportPdfTooltip", "Export board as PDF") })] })
197
197
  ]
198
198
  })
199
199
  ]
@@ -8,6 +8,8 @@ export interface FilterChipProps {
8
8
  onChange: (value: unknown) => void;
9
9
  onEdit: () => void;
10
10
  onDelete: () => void;
11
+ /** No edit or delete menu: a past view must not change the live board's filters (BOFF-15492). */
12
+ readOnly?: boolean;
11
13
  }
12
14
  /**
13
15
  * Format filter value for display
@@ -15,5 +17,5 @@ export interface FilterChipProps {
15
17
  * Category values are shown by their option label ("Germany"), not the stored value ("DE").
16
18
  */
17
19
  export declare function formatFilterValue(value: unknown, type: FilterType, t: TranslateFn, options?: readonly FilterOption[]): string;
18
- export declare function FilterChip({ filter, value, onChange, onEdit, onDelete }: FilterChipProps): React.JSX.Element;
20
+ export declare function FilterChip({ filter, value, onChange, onEdit, onDelete, readOnly }: FilterChipProps): React.JSX.Element;
19
21
  export default FilterChip;
@@ -73,23 +73,23 @@ function h(n) {
73
73
  i
74
74
  ]);
75
75
  }
76
- function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m }) {
77
- let { t: g } = o(), [v, y] = a(!1), [b, x] = a(!1), S = i(null), C = i(null), w = u(d()), T = t != null && t !== "", E = h(e), D = p(t, e.type, g, E);
76
+ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m, readOnly: g = !1 }) {
77
+ let { t: v } = o(), [y, b] = a(!1), [x, S] = a(!1), C = i(null), w = i(null), T = u(d()), E = t != null && t !== "", D = h(e), O = p(t, e.type, v, D);
78
78
  return n(() => {
79
79
  function e(e) {
80
- S.current && !S.current.contains(e.target) && (y(!1), x(!1));
80
+ C.current && !C.current.contains(e.target) && (b(!1), S(!1));
81
81
  }
82
82
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
83
83
  }, []), /* @__PURE__ */ l("div", {
84
- ref: S,
84
+ ref: C,
85
85
  style: {
86
86
  position: "relative",
87
87
  display: "inline-flex",
88
88
  alignItems: "center",
89
89
  gap: "var(--space-iconGap)",
90
90
  padding: "0 var(--space-controlGap)",
91
- backgroundColor: T ? "var(--color-bg-accentSubtle)" : "var(--color-bg-surface)",
92
- border: `1px solid ${T ? "var(--color-action-primary-border)" : "var(--color-border-subtle)"}`,
91
+ backgroundColor: E ? "var(--color-bg-accentSubtle)" : "var(--color-bg-surface)",
92
+ border: `1px solid ${E ? "var(--color-action-primary-border)" : "var(--color-border-subtle)"}`,
93
93
  borderRadius: "var(--radius-pill)",
94
94
  fontSize: "var(--font-size-body-sm)",
95
95
  cursor: "pointer",
@@ -105,12 +105,12 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m }) {
105
105
  color: "var(--color-text-primary)",
106
106
  fontSize: "var(--font-size-body-sm)"
107
107
  },
108
- onClick: () => y(!v),
108
+ onClick: () => b(!y),
109
109
  children: [e.name, ":"]
110
110
  }),
111
111
  /* @__PURE__ */ c("span", {
112
112
  style: {
113
- color: T ? "var(--color-text-primary)" : "var(--color-text-secondary)",
113
+ color: E ? "var(--color-text-primary)" : "var(--color-text-secondary)",
114
114
  maxWidth: "min(200px, 45vw)",
115
115
  overflow: "hidden",
116
116
  textOverflow: "ellipsis",
@@ -118,10 +118,10 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m }) {
118
118
  fontWeight: "var(--font-weight-medium)",
119
119
  fontSize: "var(--font-size-body-sm)"
120
120
  },
121
- onClick: () => y(!v),
122
- children: D
121
+ onClick: () => b(!y),
122
+ children: O
123
123
  }),
124
- T && /* @__PURE__ */ c("button", {
124
+ E && /* @__PURE__ */ c("button", {
125
125
  onClick: (e) => {
126
126
  e.stopPropagation(), r(void 0);
127
127
  },
@@ -132,22 +132,22 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m }) {
132
132
  width: "22px",
133
133
  height: "22px",
134
134
  padding: 0,
135
- backgroundColor: w.statusErrorBg,
135
+ backgroundColor: T.statusErrorBg,
136
136
  border: "none",
137
137
  borderRadius: "50%",
138
138
  cursor: "pointer",
139
- color: w.actionPrimaryFg,
139
+ color: T.actionPrimaryFg,
140
140
  fontSize: "14px",
141
141
  fontWeight: "bold",
142
142
  marginLeft: "4px",
143
143
  boxShadow: "var(--shadow-elevation-1)"
144
144
  },
145
- title: g("bigconsole.filters.chip.action.clear", "Clear filter"),
145
+ title: v("bigconsole.filters.chip.action.clear", "Clear filter"),
146
146
  children: "×"
147
147
  }),
148
- /* @__PURE__ */ c("button", {
148
+ !g && /* @__PURE__ */ c("button", {
149
149
  onClick: (e) => {
150
- e.stopPropagation(), x(!b);
150
+ e.stopPropagation(), S(!x);
151
151
  },
152
152
  style: {
153
153
  display: "flex",
@@ -156,28 +156,28 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m }) {
156
156
  width: "22px",
157
157
  height: "22px",
158
158
  padding: 0,
159
- backgroundColor: w.textTertiary,
159
+ backgroundColor: T.textTertiary,
160
160
  border: "none",
161
161
  borderRadius: "50%",
162
162
  cursor: "pointer",
163
- color: w.actionPrimaryFg,
163
+ color: T.actionPrimaryFg,
164
164
  fontSize: "16px",
165
165
  fontWeight: "bold",
166
166
  marginLeft: "4px",
167
167
  boxShadow: "var(--shadow-elevation-1)"
168
168
  },
169
- title: g("bigconsole.filters.chip.action.options", "Filter options"),
169
+ title: v("bigconsole.filters.chip.action.options", "Filter options"),
170
170
  children: "⋮"
171
171
  }),
172
- v && /* @__PURE__ */ c(_, {
172
+ y && /* @__PURE__ */ c(_, {
173
173
  filter: e,
174
174
  value: t,
175
175
  onChange: (e) => {
176
- r(e), y(!1);
176
+ r(e), b(!1);
177
177
  },
178
- onClose: () => y(!1)
178
+ onClose: () => b(!1)
179
179
  }),
180
- b && /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("div", {
180
+ x && !g && /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("div", {
181
181
  style: {
182
182
  position: "fixed",
183
183
  top: 0,
@@ -187,10 +187,10 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m }) {
187
187
  zIndex: 99998
188
188
  },
189
189
  onClick: (e) => {
190
- e.stopPropagation(), x(!1);
190
+ e.stopPropagation(), S(!1);
191
191
  }
192
192
  }), /* @__PURE__ */ l("div", {
193
- ref: C,
193
+ ref: w,
194
194
  style: {
195
195
  position: "absolute",
196
196
  top: "100%",
@@ -198,8 +198,8 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m }) {
198
198
  marginTop: "8px",
199
199
  minWidth: "min(150px, calc(100vw - 2rem))",
200
200
  maxWidth: "calc(100vw - 2rem)",
201
- backgroundColor: w.bgPrimary,
202
- border: `1px solid ${w.borderDefault}`,
201
+ backgroundColor: T.bgPrimary,
202
+ border: `1px solid ${T.borderDefault}`,
203
203
  borderRadius: "8px",
204
204
  boxShadow: "var(--shadow-elevation-3)",
205
205
  zIndex: 99999,
@@ -207,7 +207,7 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m }) {
207
207
  },
208
208
  children: [/* @__PURE__ */ l("button", {
209
209
  onClick: (e) => {
210
- e.stopPropagation(), x(!1), f();
210
+ e.stopPropagation(), S(!1), f();
211
211
  },
212
212
  style: {
213
213
  display: "flex",
@@ -218,16 +218,16 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m }) {
218
218
  textAlign: "left",
219
219
  backgroundColor: "transparent",
220
220
  border: "none",
221
- borderBottom: `1px solid ${w.borderDefault}`,
221
+ borderBottom: `1px solid ${T.borderDefault}`,
222
222
  cursor: "pointer",
223
223
  fontSize: "14px",
224
- color: w.textPrimary,
224
+ color: T.textPrimary,
225
225
  fontWeight: 500
226
226
  },
227
- children: ["✏️ ", g("bigconsole.filters.chip.menu.edit", "Edit Filter")]
227
+ children: ["✏️ ", v("bigconsole.filters.chip.menu.edit", "Edit Filter")]
228
228
  }), /* @__PURE__ */ l("button", {
229
229
  onClick: (e) => {
230
- e.stopPropagation(), x(!1), m();
230
+ e.stopPropagation(), S(!1), m();
231
231
  },
232
232
  style: {
233
233
  display: "flex",
@@ -240,10 +240,10 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m }) {
240
240
  border: "none",
241
241
  cursor: "pointer",
242
242
  fontSize: "14px",
243
- color: w.statusErrorText,
243
+ color: T.statusErrorText,
244
244
  fontWeight: 500
245
245
  },
246
- children: ["🗑️ ", g("bigconsole.filters.chip.menu.delete", "Delete Filter")]
246
+ children: ["🗑️ ", v("bigconsole.filters.chip.menu.delete", "Delete Filter")]
247
247
  })]
248
248
  })] })
249
249
  ]