@burdenoff/microfe-bigconsole 2026.1123.6 → 2026.1124.1

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 (88) hide show
  1. package/dist/bigconsole/asof/AsOfControl.js +2 -2
  2. package/dist/bigconsole/components/dashboard/DashboardCommentsDrawer.js +107 -106
  3. package/dist/bigconsole/components/dashboard/DashboardGalleryCard.d.ts +34 -0
  4. package/dist/bigconsole/components/dashboard/DashboardGalleryCard.js +123 -0
  5. package/dist/bigconsole/components/dashboard/DashboardReviewDialog.js +1 -1
  6. package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +19 -35
  7. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +119 -116
  8. package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
  9. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
  10. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +172 -170
  11. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +210 -208
  12. package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +97 -97
  13. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
  14. package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +92 -92
  15. package/dist/bigconsole/components/datasink/AlertRuleEditor.js +149 -149
  16. package/dist/bigconsole/components/datasink/AnomalyDetectorPanel.js +54 -54
  17. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -37
  18. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +4 -4
  19. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +130 -129
  20. package/dist/bigconsole/components/datasink/SetupStateBadge.js +24 -33
  21. package/dist/bigconsole/components/datasink/SinkWorkflowLinkForm.js +38 -38
  22. package/dist/bigconsole/components/explore/CreateQueryWidget.js +57 -56
  23. package/dist/bigconsole/components/explore/SqlDraftEditor.js +140 -140
  24. package/dist/bigconsole/components/explore/VisualBuilder.js +85 -84
  25. package/dist/bigconsole/components/explore/queryAccess/GrantsPanel.js +168 -167
  26. package/dist/bigconsole/components/explore/queryAccess/QueryAccessAdmin.js +2 -2
  27. package/dist/bigconsole/components/explore/queryAccess/RelationEditor.js +118 -117
  28. package/dist/bigconsole/components/insights/BoardLintPanel.js +2 -2
  29. package/dist/bigconsole/components/insights/OutlierSpottingDialog.js +123 -123
  30. package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +2 -2
  31. package/dist/bigconsole/components/narrative/NarrativePanel.js +1 -1
  32. package/dist/bigconsole/components/overview/DataHealthCard.js +3 -0
  33. package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +3 -0
  34. package/dist/bigconsole/components/parser/ParserStatusBadge.js +25 -28
  35. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +23 -22
  36. package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +15 -26
  37. package/dist/bigconsole/components/reconcile/KpiReconcileDialog.js +24 -24
  38. package/dist/bigconsole/components/settings/WidgetCatalogSection.js +1 -1
  39. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +188 -187
  40. package/dist/bigconsole/components/widgets/FilterNotAppliedNotice.js +1 -1
  41. package/dist/bigconsole/components/widgets/UnsupportedDataSourceNotice.js +1 -1
  42. package/dist/bigconsole/components/widgets/WidgetCompareView.js +3 -1
  43. package/dist/bigconsole/components/widgets/WidgetHeader.js +1 -1
  44. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +45 -44
  45. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +151 -147
  46. package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +48 -47
  47. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
  48. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +139 -138
  49. package/dist/bigconsole/components/widgets/form/FormWidget.js +149 -148
  50. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +80 -77
  51. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +58 -56
  52. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +75 -73
  53. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +86 -85
  54. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +80 -77
  55. package/dist/bigconsole/components/widgets/retention/RetentionView.js +1 -1
  56. package/dist/bigconsole/components/widgets/table/TableConfig.js +214 -211
  57. package/dist/bigconsole/components/widgets/table/TablePagination.js +59 -58
  58. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +140 -138
  59. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +74 -66
  60. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +48 -48
  61. package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +28 -37
  62. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +69 -69
  63. package/dist/bigconsole/hooks/useDashboardListQuery.d.ts +22 -0
  64. package/dist/bigconsole/hooks/useDashboardListQuery.js +39 -0
  65. package/dist/bigconsole/pages/AdminPage.js +147 -146
  66. package/dist/bigconsole/pages/DashboardViewPage.js +2 -0
  67. package/dist/bigconsole/pages/DashboardsPage.js +638 -855
  68. package/dist/bigconsole/pages/DataParsersPage.js +5 -0
  69. package/dist/bigconsole/pages/DataSinkBuilderPage.js +4 -1
  70. package/dist/bigconsole/pages/DataSinkViewPage.js +263 -261
  71. package/dist/bigconsole/pages/DataSinksPage.js +210 -186
  72. package/dist/bigconsole/pages/InsightsPage.js +386 -383
  73. package/dist/bigconsole/pages/ParserBuilderPage.js +413 -413
  74. package/dist/bigconsole/pages/ParserViewPage.js +2 -0
  75. package/dist/bigconsole/pages/PipelineBuilderPage.js +279 -276
  76. package/dist/bigconsole/pages/PipelineViewPage.js +3 -0
  77. package/dist/bigconsole/pages/PipelinesPage.js +198 -165
  78. package/dist/bigconsole/pages/SettingsPage.js +160 -160
  79. package/dist/bigconsole/pages/WidgetDemoPage.js +2 -0
  80. package/dist/bigconsole/pages/WorkflowViewPage.js +5 -0
  81. package/dist/bigconsole/pages/WorkflowsPage.js +144 -123
  82. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +1 -1
  83. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +123 -122
  84. package/dist/bigconsole/utils/dashboardGallery.d.ts +84 -0
  85. package/dist/bigconsole/utils/dashboardGallery.js +93 -0
  86. package/dist/bigconsole/utils/statusTone.d.ts +17 -0
  87. package/dist/bigconsole/utils/statusTone.js +44 -0
  88. package/package.json +4 -4
@@ -8,12 +8,12 @@ import { useShareRecipients as ee } from "../../../hooks/useShareRecipients.js";
8
8
  import { useBigConsole as o, useBigConsoleBasePath as te } from "../../../context/BigConsoleContext.js";
9
9
  import "../../../asof/index.js";
10
10
  import { useCallback as s, useEffect as c, useRef as l, useState as u } from "react";
11
- import { ResponsiveDialog as ne, ResponsiveDialogContent as d, ResponsiveDialogDescription as re, ResponsiveDialogTitle as ie } from "@burdenoff/fe-libs/ui";
12
- import { useI18n as ae } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
13
- import { Fragment as oe, jsx as f, jsxs as p } from "react/jsx-runtime";
14
- import { formatDistanceToNow as m } from "date-fns";
11
+ import { ResponsiveDialog as ne, ResponsiveDialogContent as re, ResponsiveDialogDescription as ie, ResponsiveDialogTitle as ae, ThemedSelect as d } from "@burdenoff/fe-libs/ui";
12
+ import { useI18n as f } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
13
+ import { Fragment as oe, jsx as p, jsxs as m } from "react/jsx-runtime";
14
+ import { formatDistanceToNow as h } from "date-fns";
15
15
  // src/bigconsole/components/dashboard/ShareDialog/ShareDialog.tsx
16
- var h = {
16
+ var g = {
17
17
  bgPrimary: "var(--color-bg-surface)",
18
18
  bgSecondary: "var(--color-bg-sunken)",
19
19
  bgTertiary: "var(--color-bg-canvas)",
@@ -23,9 +23,10 @@ var h = {
23
23
  borderDefault: "var(--color-border-default)",
24
24
  actionPrimaryBg: "var(--color-action-primary-bg)",
25
25
  actionPrimaryBgHover: "var(--color-action-primary-bgHover)",
26
- statusSuccessBg: "var(--color-status-success-bg)",
26
+ statusSuccessBgSubtle: "var(--color-status-success-bgSubtle)",
27
+ statusSuccessText: "var(--color-status-success-text)",
27
28
  statusErrorText: "var(--color-status-error-text)"
28
- }, g = [
29
+ }, _ = [
29
30
  {
30
31
  value: "PRIVATE",
31
32
  label: "Private",
@@ -41,7 +42,7 @@ var h = {
41
42
  label: "Public",
42
43
  description: "Anyone with the link"
43
44
  }
44
- ], _ = [{
45
+ ], v = [{
45
46
  value: "VIEW",
46
47
  label: "View",
47
48
  description: "Can view the dashboard"
@@ -50,29 +51,29 @@ var h = {
50
51
  label: "Edit",
51
52
  description: "Can edit widgets, layout, and share"
52
53
  }];
53
- function v(e) {
54
+ function y(e) {
54
55
  let { workspaceId: t, currentUser: n } = o(), r = l(null);
55
- return /* @__PURE__ */ f(y, {
56
+ return /* @__PURE__ */ p(b, {
56
57
  ...e,
57
58
  returnFocusRef: r
58
59
  }, `${n?.id ?? ""}|${t ?? ""}|${e.dashboardId}`);
59
60
  }
60
- function y({ dashboardId: o, dashboardName: l, isOpen: m, onClose: v, visibility: y, onVisibilityChange: b, canChangeVisibility: x = !0, returnFocusRef: S }) {
61
- let { t: C } = ae(), { shares: w, loading: T, error: ce, fetchShares: E, shareWithUser: D, shareWithGroup: O, updateShare: k, revokeShare: A, revokeAllShares: j } = t(), M = e(), [N, P] = u(""), [F, I] = u(null), [L, le] = u("VIEW"), [R, ue] = u(""), [z, B] = u(!1), [V, H] = u("people"), [U, W] = u(!1), [G, K] = u(null), [q, J] = u(null), Y = a().asOf?.getTime() ?? null, X = Y !== null, Z = ee(m && !X, N), Q = te();
61
+ function b({ dashboardId: o, dashboardName: l, isOpen: h, onClose: y, visibility: b, onVisibilityChange: x, canChangeVisibility: S = !0, returnFocusRef: C }) {
62
+ let { t: w } = f(), { shares: T, loading: E, error: ce, fetchShares: D, shareWithUser: O, shareWithGroup: k, updateShare: A, revokeShare: j, revokeAllShares: M } = t(), N = e(), [P, F] = u(""), [I, L] = u(null), [R, le] = u("VIEW"), [z, ue] = u(""), [B, V] = u(!1), [H, de] = u("people"), [U, W] = u(!1), [G, K] = u(null), [q, J] = u(null), Y = a().asOf?.getTime() ?? null, X = Y !== null, Z = ee(h && !X, P), Q = te();
62
63
  c(() => {
63
64
  let e = !1;
64
65
  return Promise.resolve().then(() => {
65
- e || (I(null), P(""), J(null));
66
+ e || (L(null), F(""), J(null));
66
67
  }), () => {
67
68
  e = !0;
68
69
  };
69
70
  }, [
70
71
  Z.owner,
71
72
  o,
72
- m
73
+ h
73
74
  ]), c(() => {
74
- if (m && o) {
75
- X || E(o);
75
+ if (h && o) {
76
+ X || D(o);
76
77
  let e = new URL(`${Q}/dashboards/${encodeURIComponent(o)}`, window.location.origin), t = new URLSearchParams(window.location.search);
77
78
  for (let n of [
78
79
  "org",
@@ -86,129 +87,129 @@ function y({ dashboardId: o, dashboardName: l, isOpen: m, onClose: v, visibility
86
87
  Z.workspaceId && e.searchParams.set("workspace", Z.workspaceId), Y !== null && e.searchParams.set(r, i(new Date(Y))), ue(e.toString());
87
88
  }
88
89
  }, [
89
- m,
90
+ h,
90
91
  o,
91
- E,
92
+ D,
92
93
  Q,
93
94
  Z.workspaceId,
94
95
  Y,
95
96
  X
96
97
  ]);
97
- let de = s(async () => {
98
- if (!F || T || F.workspaceId !== Z.workspaceId) return;
99
- J(null), M("bigconsole.dashboard.share_clicked", {
98
+ let fe = s(async () => {
99
+ if (!I || E || I.workspaceId !== Z.workspaceId) return;
100
+ J(null), N("bigconsole.dashboard.share_clicked", {
100
101
  dashboardId: o,
101
- permission: L,
102
- recipientType: F.type
102
+ permission: R,
103
+ recipientType: I.type
103
104
  });
104
105
  let e = null;
105
- F.type === "USER" ? e = await D(o, F.id, L) : F.type === "GROUP" && (e = await O(o, F.id, L)), e && M("bigconsole.dashboard.shared", {
106
+ I.type === "USER" ? e = await O(o, I.id, R) : I.type === "GROUP" && (e = await k(o, I.id, R)), e && N("bigconsole.dashboard.shared", {
106
107
  dashboardId: o,
107
- permission: L,
108
- recipientType: F.type
109
- }), e ? (I(null), P("")) : J(C("bigconsole.share.error.grantFailed", "Access could not be granted. Review the recipient and try again."));
108
+ permission: R,
109
+ recipientType: I.type
110
+ }), e ? (L(null), F("")) : J(w("bigconsole.share.error.grantFailed", "Access could not be granted. Review the recipient and try again."));
110
111
  }, [
111
112
  Z.workspaceId,
112
- C,
113
- T,
113
+ w,
114
+ E,
114
115
  o,
115
- M,
116
- F,
117
- L,
118
- O,
119
- D
120
- ]), fe = s(async (e, t) => {
121
- await k({
116
+ N,
117
+ I,
118
+ R,
119
+ k,
120
+ O
121
+ ]), pe = s(async (e, t) => {
122
+ await A({
122
123
  id: e,
123
124
  permission: t
124
125
  });
125
- }, [k]), pe = s(async (e) => {
126
- window.confirm("Are you sure you want to revoke this access?") && await A(e);
127
- }, [A]), me = s(async () => {
128
- window.confirm("Are you sure you want to revoke all shared access?") && await j(o);
129
- }, [o, j]), he = s(async (e) => {
130
- if (b && e !== y) {
126
+ }, [A]), me = s(async (e) => {
127
+ window.confirm("Are you sure you want to revoke this access?") && await j(e);
128
+ }, [j]), he = s(async () => {
129
+ window.confirm("Are you sure you want to revoke all shared access?") && await M(o);
130
+ }, [o, M]), ge = s(async (e) => {
131
+ if (x && e !== b) {
131
132
  K(null), W(!0);
132
133
  try {
133
- await b(e);
134
+ await x(e);
134
135
  } catch (e) {
135
136
  K(e instanceof Error ? e.message : "Could not update general access.");
136
137
  } finally {
137
138
  W(!1);
138
139
  }
139
140
  }
140
- }, [b, y]), ge = s(async () => {
141
+ }, [x, b]), _e = s(async () => {
141
142
  try {
142
- await navigator.clipboard.writeText(R), B(!0), setTimeout(() => B(!1), 2e3);
143
+ await navigator.clipboard.writeText(z), V(!0), setTimeout(() => V(!1), 2e3);
143
144
  } catch {
144
- J(C("bigconsole.share.error.copyFailed", "The link could not be copied. Select the link and copy it manually."));
145
+ J(w("bigconsole.share.error.copyFailed", "The link could not be copied. Select the link and copy it manually."));
145
146
  }
146
- }, [R, C]), $ = Z.results;
147
- return m ? /* @__PURE__ */ f(ne, {
148
- open: m,
147
+ }, [z, w]), $ = Z.results;
148
+ return h ? /* @__PURE__ */ p(ne, {
149
+ open: h,
149
150
  onOpenChange: (e) => {
150
- e || v();
151
+ e || y();
151
152
  },
152
- children: /* @__PURE__ */ p(d, {
153
+ children: /* @__PURE__ */ m(re, {
153
154
  showCloseButton: !1,
154
155
  "data-testid": "share-dialog",
155
156
  className: "flex w-full flex-col gap-0 overflow-hidden rounded-card p-0 sm:w-[calc(100%-2rem)] sm:max-w-[520px]",
156
157
  onOpenAutoFocus: () => {
157
158
  let e = document.activeElement;
158
- e instanceof HTMLElement && e !== document.body && !e.closest("[role=dialog]") && (S.current = e);
159
+ e instanceof HTMLElement && e !== document.body && !e.closest("[role=dialog]") && (C.current = e);
159
160
  },
160
161
  onCloseAutoFocus: (e) => {
161
- e.preventDefault(), S.current?.isConnected && S.current.focus();
162
+ e.preventDefault(), C.current?.isConnected && C.current.focus();
162
163
  },
163
164
  style: {
164
165
  maxWidth: "520px",
165
166
  maxHeight: "85dvh",
166
- backgroundColor: h.bgPrimary,
167
- color: h.textPrimary
167
+ backgroundColor: g.bgPrimary,
168
+ color: g.textPrimary
168
169
  },
169
170
  children: [
170
- /* @__PURE__ */ p("div", {
171
+ /* @__PURE__ */ m("div", {
171
172
  style: {
172
173
  flexShrink: 0,
173
174
  padding: "20px 24px",
174
- borderBottom: `1px solid ${h.borderDefault}`,
175
+ borderBottom: `1px solid ${g.borderDefault}`,
175
176
  display: "flex",
176
177
  alignItems: "center",
177
178
  justifyContent: "space-between",
178
- backgroundColor: h.bgPrimary
179
+ backgroundColor: g.bgPrimary
179
180
  },
180
- children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(ie, {
181
+ children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(ae, {
181
182
  style: {
182
183
  margin: 0,
183
184
  fontSize: "18px",
184
185
  fontWeight: 600,
185
- color: h.textPrimary
186
+ color: g.textPrimary
186
187
  },
187
188
  children: "Share Dashboard"
188
- }), /* @__PURE__ */ f(re, {
189
+ }), /* @__PURE__ */ p(ie, {
189
190
  style: {
190
191
  margin: "4px 0 0",
191
192
  fontSize: "13px",
192
- color: h.textSecondary
193
+ color: g.textSecondary
193
194
  },
194
195
  children: l
195
- })] }), /* @__PURE__ */ f("button", {
196
+ })] }), /* @__PURE__ */ p("button", {
196
197
  type: "button",
197
- "aria-label": C("bigconsole.share.closeLabel", "Close share dialog"),
198
- onClick: v,
198
+ "aria-label": w("bigconsole.share.closeLabel", "Close share dialog"),
199
+ onClick: y,
199
200
  style: {
200
201
  background: "none",
201
202
  border: "none",
202
203
  fontSize: "24px",
203
204
  cursor: "pointer",
204
- color: h.textSecondary,
205
+ color: g.textSecondary,
205
206
  padding: "4px",
206
207
  lineHeight: 1
207
208
  },
208
209
  children: "×"
209
210
  })]
210
211
  }),
211
- !X && /* @__PURE__ */ f("div", {
212
+ !X && /* @__PURE__ */ p("div", {
212
213
  role: "tablist",
213
214
  "aria-label": "Share options",
214
215
  style: {
@@ -216,20 +217,20 @@ function y({ dashboardId: o, dashboardName: l, isOpen: m, onClose: v, visibility
216
217
  display: "flex",
217
218
  gap: "4px",
218
219
  padding: "0 24px",
219
- borderBottom: `1px solid ${h.borderDefault}`,
220
- backgroundColor: h.bgPrimary
220
+ borderBottom: `1px solid ${g.borderDefault}`,
221
+ backgroundColor: g.bgPrimary
221
222
  },
222
- children: ["people", "embed"].map((e) => /* @__PURE__ */ f("button", {
223
+ children: ["people", "embed"].map((e) => /* @__PURE__ */ p("button", {
223
224
  type: "button",
224
225
  role: "tab",
225
- "aria-selected": V === e,
226
- onClick: () => H(e),
226
+ "aria-selected": H === e,
227
+ onClick: () => de(e),
227
228
  style: {
228
229
  padding: "10px 12px",
229
230
  background: "none",
230
231
  border: "none",
231
- borderBottom: `2px solid ${V === e ? h.actionPrimaryBg : "transparent"}`,
232
- color: V === e ? h.textPrimary : h.textSecondary,
232
+ borderBottom: `2px solid ${H === e ? g.actionPrimaryBg : "transparent"}`,
233
+ color: H === e ? g.textPrimary : g.textSecondary,
233
234
  fontSize: "13px",
234
235
  fontWeight: 600,
235
236
  cursor: "pointer"
@@ -237,112 +238,112 @@ function y({ dashboardId: o, dashboardName: l, isOpen: m, onClose: v, visibility
237
238
  children: e === "people" ? "People" : "Publish to web"
238
239
  }, e))
239
240
  }),
240
- !X && V === "embed" && /* @__PURE__ */ f("div", {
241
+ !X && H === "embed" && /* @__PURE__ */ p("div", {
241
242
  className: "min-h-0 flex-1 overflow-y-auto",
242
- style: { backgroundColor: h.bgPrimary },
243
- children: /* @__PURE__ */ f(n, {
243
+ style: { backgroundColor: g.bgPrimary },
244
+ children: /* @__PURE__ */ p(n, {
244
245
  dashboardId: o,
245
- colors: h
246
+ colors: g
246
247
  })
247
248
  }),
248
- (X || V === "people") && /* @__PURE__ */ p("div", {
249
+ (X || H === "people") && /* @__PURE__ */ m("div", {
249
250
  className: "flex min-h-0 flex-1 flex-col gap-section-gap overflow-y-auto p-card-padding",
250
- style: { backgroundColor: h.bgPrimary },
251
+ style: { backgroundColor: g.bgPrimary },
251
252
  children: [
252
- !X && y && b && /* @__PURE__ */ p("section", {
253
+ !X && b && x && /* @__PURE__ */ m("section", {
253
254
  "aria-labelledby": "share-visibility-heading",
254
255
  children: [
255
- /* @__PURE__ */ f("h3", {
256
+ /* @__PURE__ */ p("h3", {
256
257
  id: "share-visibility-heading",
257
258
  className: "mb-form-gap text-sm font-semibold",
258
- style: { color: h.textPrimary },
259
+ style: { color: g.textPrimary },
259
260
  children: "General access"
260
261
  }),
261
- /* @__PURE__ */ p("div", {
262
+ /* @__PURE__ */ m("div", {
262
263
  style: {
263
264
  display: "flex",
264
265
  alignItems: "center",
265
266
  gap: "8px",
266
267
  flexWrap: "wrap"
267
268
  },
268
- children: [/* @__PURE__ */ f("select", {
269
+ children: [/* @__PURE__ */ p(d, {
269
270
  "aria-label": "General access",
270
271
  "data-testid": "share-visibility",
271
- value: y,
272
- disabled: !x || U,
273
- onChange: (e) => void he(e.target.value),
272
+ value: b,
273
+ disabled: !S || U,
274
+ onChange: (e) => void ge(e.target.value),
274
275
  style: {
275
276
  padding: "10px 12px",
276
- border: `1px solid ${h.borderDefault}`,
277
+ border: `1px solid ${g.borderDefault}`,
277
278
  borderRadius: "6px",
278
279
  fontSize: "13px",
279
- backgroundColor: h.bgPrimary,
280
- color: h.textPrimary,
281
- cursor: !x || U ? "not-allowed" : "pointer",
282
- opacity: !x || U ? .6 : 1
280
+ backgroundColor: g.bgPrimary,
281
+ color: g.textPrimary,
282
+ cursor: !S || U ? "not-allowed" : "pointer",
283
+ opacity: !S || U ? .6 : 1
283
284
  },
284
- children: g.map((e) => /* @__PURE__ */ f("option", {
285
+ children: _.map((e) => /* @__PURE__ */ p("option", {
285
286
  value: e.value,
286
287
  children: e.label
287
288
  }, e.value))
288
- }), /* @__PURE__ */ f("span", {
289
+ }), /* @__PURE__ */ p("span", {
289
290
  style: {
290
291
  fontSize: "12px",
291
- color: h.textSecondary
292
+ color: g.textSecondary
292
293
  },
293
- children: g.find((e) => e.value === y)?.description
294
+ children: _.find((e) => e.value === b)?.description
294
295
  })]
295
296
  }),
296
- !x && /* @__PURE__ */ f("p", {
297
+ !S && /* @__PURE__ */ p("p", {
297
298
  style: {
298
299
  margin: "6px 0 0",
299
300
  fontSize: "11px",
300
- color: h.textSecondary
301
+ color: g.textSecondary
301
302
  },
302
303
  children: "You don't have permission to change general access."
303
304
  }),
304
- G && /* @__PURE__ */ f("p", {
305
+ G && /* @__PURE__ */ p("p", {
305
306
  style: {
306
307
  margin: "6px 0 0",
307
308
  fontSize: "11px",
308
- color: h.statusErrorText
309
+ color: g.statusErrorText
309
310
  },
310
311
  children: G
311
312
  })
312
313
  ]
313
314
  }),
314
- /* @__PURE__ */ p("section", {
315
+ /* @__PURE__ */ m("section", {
315
316
  "aria-labelledby": "share-link-heading",
316
- children: [/* @__PURE__ */ f("h3", {
317
+ children: [/* @__PURE__ */ p("h3", {
317
318
  id: "share-link-heading",
318
319
  className: "mb-form-gap text-sm font-semibold",
319
- style: { color: h.textPrimary },
320
+ style: { color: g.textPrimary },
320
321
  children: "Share link"
321
- }), /* @__PURE__ */ p("div", {
322
+ }), /* @__PURE__ */ m("div", {
322
323
  style: {
323
324
  display: "flex",
324
325
  gap: "8px",
325
326
  flexWrap: "wrap"
326
327
  },
327
- children: [/* @__PURE__ */ f("input", {
328
+ children: [/* @__PURE__ */ p("input", {
328
329
  type: "text",
329
- value: R,
330
+ value: z,
330
331
  readOnly: !0,
331
332
  style: {
332
333
  flex: 1,
333
334
  padding: "10px 12px",
334
- border: `1px solid ${h.borderDefault}`,
335
+ border: `1px solid ${g.borderDefault}`,
335
336
  borderRadius: "6px",
336
337
  fontSize: "13px",
337
- backgroundColor: h.bgSecondary,
338
- color: h.textPrimary
338
+ backgroundColor: g.bgSecondary,
339
+ color: g.textPrimary
339
340
  }
340
- }), /* @__PURE__ */ f("button", {
341
- onClick: ge,
341
+ }), /* @__PURE__ */ p("button", {
342
+ onClick: _e,
342
343
  style: {
343
344
  padding: "10px 16px",
344
- backgroundColor: z ? h.statusSuccessBg : h.actionPrimaryBg,
345
- color: "var(--color-action-primary-text)",
345
+ backgroundColor: B ? g.statusSuccessBgSubtle : g.actionPrimaryBg,
346
+ color: B ? g.statusSuccessText : "var(--color-action-primary-text)",
346
347
  border: "none",
347
348
  borderRadius: "6px",
348
349
  cursor: "pointer",
@@ -350,62 +351,62 @@ function y({ dashboardId: o, dashboardName: l, isOpen: m, onClose: v, visibility
350
351
  fontWeight: 500,
351
352
  minWidth: "80px"
352
353
  },
353
- children: z ? "Copied!" : "Copy"
354
+ children: B ? "Copied!" : "Copy"
354
355
  })]
355
356
  })]
356
357
  }),
357
- X ? /* @__PURE__ */ f("p", {
358
+ X ? /* @__PURE__ */ p("p", {
358
359
  className: "text-sm",
359
- style: { color: h.textSecondary },
360
+ style: { color: g.textSecondary },
360
361
  "data-testid": "share-past-view-note",
361
- children: C("bigconsole.share.pastViewNote", "Access and publishing settings apply to the live board, so they are not available while you view a past time. The link above keeps that time.")
362
- }) : /* @__PURE__ */ p(oe, { children: [
363
- (ce || q) && /* @__PURE__ */ f("p", {
362
+ children: w("bigconsole.share.pastViewNote", "Access and publishing settings apply to the live board, so they are not available while you view a past time. The link above keeps that time.")
363
+ }) : /* @__PURE__ */ m(oe, { children: [
364
+ (ce || q) && /* @__PURE__ */ p("p", {
364
365
  role: "alert",
365
- style: { color: h.statusErrorText },
366
- children: q || C("bigconsole.share.error.loadFailed", "Dashboard access could not be loaded or updated. Try again.")
366
+ style: { color: g.statusErrorText },
367
+ children: q || w("bigconsole.share.error.loadFailed", "Dashboard access could not be loaded or updated. Try again.")
367
368
  }),
368
- /* @__PURE__ */ p("section", {
369
+ /* @__PURE__ */ m("section", {
369
370
  "aria-labelledby": "share-invite-heading",
370
371
  children: [
371
- /* @__PURE__ */ f("h3", {
372
+ /* @__PURE__ */ p("h3", {
372
373
  id: "share-invite-heading",
373
374
  className: "mb-form-gap text-sm font-semibold",
374
- style: { color: h.textPrimary },
375
+ style: { color: g.textPrimary },
375
376
  children: "Invite people"
376
377
  }),
377
- /* @__PURE__ */ f("p", {
378
+ /* @__PURE__ */ p("p", {
378
379
  style: {
379
- color: h.textSecondary,
380
+ color: g.textSecondary,
380
381
  fontSize: "13px",
381
382
  marginBottom: "8px"
382
383
  },
383
- children: C("bigconsole.share.directory.scopeHint", "Only members and groups from the current workspace are listed.")
384
+ children: w("bigconsole.share.directory.scopeHint", "Only members and groups from the current workspace are listed.")
384
385
  }),
385
- Z.loading && /* @__PURE__ */ f("p", {
386
+ Z.loading && /* @__PURE__ */ p("p", {
386
387
  role: "status",
387
- children: C("bigconsole.share.directory.loading", "Loading workspace recipients…")
388
+ children: w("bigconsole.share.directory.loading", "Loading workspace recipients…")
388
389
  }),
389
- Z.error && /* @__PURE__ */ p("div", {
390
+ Z.error && /* @__PURE__ */ m("div", {
390
391
  role: "alert",
391
- children: [/* @__PURE__ */ f("p", { children: C("bigconsole.share.directory.loadFailed", "The workspace directory could not be loaded. Your access may not allow directory lookup.") }), /* @__PURE__ */ f("button", {
392
+ children: [/* @__PURE__ */ p("p", { children: w("bigconsole.share.directory.loadFailed", "The workspace directory could not be loaded. Your access may not allow directory lookup.") }), /* @__PURE__ */ p("button", {
392
393
  type: "button",
393
394
  onClick: Z.retry,
394
- children: C("bigconsole.share.directory.retry", "Retry directory")
395
+ children: w("bigconsole.share.directory.retry", "Retry directory")
395
396
  })]
396
397
  }),
397
- N && !F && !Z.loading && !Z.error && $.length === 0 && /* @__PURE__ */ f("p", {
398
+ P && !I && !Z.loading && !Z.error && $.length === 0 && /* @__PURE__ */ p("p", {
398
399
  role: "status",
399
- children: C("bigconsole.share.directory.empty", "No matching workspace members or groups.")
400
+ children: w("bigconsole.share.directory.empty", "No matching workspace members or groups.")
400
401
  }),
401
- Z.hasMoreMembers && /* @__PURE__ */ f("button", {
402
+ Z.hasMoreMembers && /* @__PURE__ */ p("button", {
402
403
  type: "button",
403
404
  disabled: Z.loading,
404
405
  onClick: Z.loadMoreMembers,
405
- children: C("bigconsole.share.directory.loadMore", "Load more workspace members")
406
+ children: w("bigconsole.share.directory.loadMore", "Load more workspace members")
406
407
  }),
407
- Z.hasMoreGroups && /* @__PURE__ */ f("p", { children: C("bigconsole.share.directory.moreGroups", "More groups match. Narrow your search to find a specific group.") }),
408
- /* @__PURE__ */ p("div", {
408
+ Z.hasMoreGroups && /* @__PURE__ */ p("p", { children: w("bigconsole.share.directory.moreGroups", "More groups match. Narrow your search to find a specific group.") }),
409
+ /* @__PURE__ */ m("div", {
409
410
  style: {
410
411
  display: "flex",
411
412
  gap: "8px",
@@ -413,46 +414,46 @@ function y({ dashboardId: o, dashboardName: l, isOpen: m, onClose: v, visibility
413
414
  flexWrap: "wrap"
414
415
  },
415
416
  children: [
416
- /* @__PURE__ */ p("div", {
417
+ /* @__PURE__ */ m("div", {
417
418
  style: {
418
419
  flex: 1,
419
420
  position: "relative"
420
421
  },
421
- children: [/* @__PURE__ */ f("input", {
422
+ children: [/* @__PURE__ */ p("input", {
422
423
  type: "text",
423
- value: F ? F.name : N,
424
+ value: I ? I.name : P,
424
425
  onChange: (e) => {
425
- P(e.target.value), I(null);
426
+ F(e.target.value), L(null);
426
427
  },
427
- "aria-label": C("bigconsole.share.directory.searchLabel", "Search workspace members and groups"),
428
- placeholder: C("bigconsole.share.directory.searchPlaceholder", "Search workspace members or groups..."),
428
+ "aria-label": w("bigconsole.share.directory.searchLabel", "Search workspace members and groups"),
429
+ placeholder: w("bigconsole.share.directory.searchPlaceholder", "Search workspace members or groups..."),
429
430
  style: {
430
431
  width: "100%",
431
432
  padding: "10px 12px",
432
- border: `1px solid ${h.borderDefault}`,
433
+ border: `1px solid ${g.borderDefault}`,
433
434
  borderRadius: "6px",
434
435
  fontSize: "13px",
435
- backgroundColor: h.bgPrimary,
436
- color: h.textPrimary
436
+ backgroundColor: g.bgPrimary,
437
+ color: g.textPrimary
437
438
  }
438
- }), N && !F && $.length > 0 && /* @__PURE__ */ f("div", {
439
+ }), P && !I && $.length > 0 && /* @__PURE__ */ p("div", {
439
440
  style: {
440
441
  position: "absolute",
441
442
  top: "100%",
442
443
  left: 0,
443
444
  right: 0,
444
445
  marginTop: "4px",
445
- backgroundColor: h.bgPrimary,
446
- border: `1px solid ${h.borderDefault}`,
446
+ backgroundColor: g.bgPrimary,
447
+ border: `1px solid ${g.borderDefault}`,
447
448
  borderRadius: "6px",
448
449
  boxShadow: "var(--shadow-elevation-3)",
449
450
  zIndex: 100001,
450
451
  maxHeight: "200px",
451
452
  overflowY: "auto"
452
453
  },
453
- children: $.map((e) => /* @__PURE__ */ p("button", {
454
+ children: $.map((e) => /* @__PURE__ */ m("button", {
454
455
  type: "button",
455
- onClick: () => I(e),
456
+ onClick: () => L(e),
456
457
  style: {
457
458
  display: "block",
458
459
  width: "100%",
@@ -461,28 +462,28 @@ function y({ dashboardId: o, dashboardName: l, isOpen: m, onClose: v, visibility
461
462
  backgroundColor: "transparent",
462
463
  border: "none",
463
464
  cursor: "pointer",
464
- borderBottom: `1px solid ${h.borderDefault}`
465
+ borderBottom: `1px solid ${g.borderDefault}`
465
466
  },
466
467
  children: [
467
- /* @__PURE__ */ f("div", {
468
+ /* @__PURE__ */ p("div", {
468
469
  style: {
469
470
  fontSize: "13px",
470
471
  fontWeight: 500,
471
- color: h.textPrimary
472
+ color: g.textPrimary
472
473
  },
473
474
  children: e.name
474
475
  }),
475
- e.email && /* @__PURE__ */ f("div", {
476
+ e.email && /* @__PURE__ */ p("div", {
476
477
  style: {
477
478
  fontSize: "11px",
478
- color: h.textSecondary
479
+ color: g.textSecondary
479
480
  },
480
481
  children: e.email
481
482
  }),
482
- /* @__PURE__ */ f("span", {
483
+ /* @__PURE__ */ p("span", {
483
484
  style: {
484
485
  fontSize: "10px",
485
- color: h.textTertiary,
486
+ color: g.textTertiary,
486
487
  textTransform: "uppercase"
487
488
  },
488
489
  children: e.type
@@ -491,33 +492,33 @@ function y({ dashboardId: o, dashboardName: l, isOpen: m, onClose: v, visibility
491
492
  }, `${e.type}:${e.id}`))
492
493
  })]
493
494
  }),
494
- /* @__PURE__ */ f("select", {
495
- "aria-label": C("bigconsole.share.permissionLabel", "Access permission"),
496
- value: L,
495
+ /* @__PURE__ */ p(d, {
496
+ "aria-label": w("bigconsole.share.permissionLabel", "Access permission"),
497
+ value: R,
497
498
  onChange: (e) => le(e.target.value),
498
499
  style: {
499
500
  padding: "10px 12px",
500
- border: `1px solid ${h.borderDefault}`,
501
+ border: `1px solid ${g.borderDefault}`,
501
502
  borderRadius: "6px",
502
503
  fontSize: "13px",
503
- backgroundColor: h.bgPrimary,
504
- color: h.textPrimary
504
+ backgroundColor: g.bgPrimary,
505
+ color: g.textPrimary
505
506
  },
506
- children: _.map((e) => /* @__PURE__ */ f("option", {
507
+ children: v.map((e) => /* @__PURE__ */ p("option", {
507
508
  value: e.value,
508
509
  children: e.label
509
510
  }, e.value))
510
511
  }),
511
- /* @__PURE__ */ f("button", {
512
- onClick: de,
513
- disabled: !F || T || F.workspaceId !== Z.workspaceId,
512
+ /* @__PURE__ */ p("button", {
513
+ onClick: fe,
514
+ disabled: !I || E || I.workspaceId !== Z.workspaceId,
514
515
  style: {
515
516
  padding: "10px 16px",
516
- backgroundColor: F ? h.actionPrimaryBg : h.bgTertiary,
517
- color: F ? "var(--color-action-primary-text)" : h.textSecondary,
517
+ backgroundColor: I ? g.actionPrimaryBg : g.bgTertiary,
518
+ color: I ? "var(--color-action-primary-text)" : g.textSecondary,
518
519
  border: "none",
519
520
  borderRadius: "6px",
520
- cursor: F ? "pointer" : "not-allowed",
521
+ cursor: I ? "pointer" : "not-allowed",
521
522
  fontSize: "13px",
522
523
  fontWeight: 500
523
524
  },
@@ -527,9 +528,9 @@ function y({ dashboardId: o, dashboardName: l, isOpen: m, onClose: v, visibility
527
528
  })
528
529
  ]
529
530
  }),
530
- /* @__PURE__ */ p("section", {
531
+ /* @__PURE__ */ m("section", {
531
532
  "aria-labelledby": "share-access-heading",
532
- children: [/* @__PURE__ */ p("div", {
533
+ children: [/* @__PURE__ */ m("div", {
533
534
  style: {
534
535
  display: "flex",
535
536
  alignItems: "center",
@@ -538,50 +539,50 @@ function y({ dashboardId: o, dashboardName: l, isOpen: m, onClose: v, visibility
538
539
  gap: "8px",
539
540
  marginBottom: "12px"
540
541
  },
541
- children: [/* @__PURE__ */ p("h3", {
542
+ children: [/* @__PURE__ */ m("h3", {
542
543
  id: "share-access-heading",
543
544
  className: "text-sm font-semibold",
544
- style: { color: h.textPrimary },
545
+ style: { color: g.textPrimary },
545
546
  children: [
546
547
  "People with access (",
547
- w.length,
548
+ T.length,
548
549
  ")"
549
550
  ]
550
- }), w.length > 0 && /* @__PURE__ */ f("button", {
551
- onClick: me,
551
+ }), T.length > 0 && /* @__PURE__ */ p("button", {
552
+ onClick: he,
552
553
  style: {
553
554
  padding: "4px 8px",
554
555
  backgroundColor: "transparent",
555
- color: h.statusErrorText,
556
+ color: g.statusErrorText,
556
557
  border: "none",
557
558
  cursor: "pointer",
558
559
  fontSize: "12px"
559
560
  },
560
561
  children: "Revoke All"
561
562
  })]
562
- }), T && w.length === 0 ? /* @__PURE__ */ f("p", {
563
+ }), E && T.length === 0 ? /* @__PURE__ */ p("p", {
563
564
  style: {
564
- color: h.textSecondary,
565
+ color: g.textSecondary,
565
566
  fontSize: "13px"
566
567
  },
567
568
  children: "Loading..."
568
- }) : w.length === 0 ? /* @__PURE__ */ f("p", {
569
+ }) : T.length === 0 ? /* @__PURE__ */ p("p", {
569
570
  style: {
570
- color: h.textSecondary,
571
+ color: g.textSecondary,
571
572
  fontSize: "13px"
572
573
  },
573
574
  children: "No one has access to this dashboard yet."
574
- }) : /* @__PURE__ */ f("div", {
575
+ }) : /* @__PURE__ */ p("div", {
575
576
  style: {
576
577
  display: "flex",
577
578
  flexDirection: "column",
578
579
  gap: "8px"
579
580
  },
580
- children: w.map((e) => /* @__PURE__ */ f(se, {
581
+ children: T.map((e) => /* @__PURE__ */ p(se, {
581
582
  share: e,
582
- onUpdatePermission: fe,
583
- onRevoke: pe,
584
- colors: h
583
+ onUpdatePermission: pe,
584
+ onRevoke: me,
585
+ colors: g
585
586
  }, e.id))
586
587
  })]
587
588
  })
@@ -592,7 +593,7 @@ function y({ dashboardId: o, dashboardName: l, isOpen: m, onClose: v, visibility
592
593
  })
593
594
  }) : null;
594
595
  }
595
- function b(e) {
596
+ function x(e) {
596
597
  if (!e) return {
597
598
  label: "No expiry",
598
599
  expired: !1
@@ -602,16 +603,16 @@ function b(e) {
602
603
  label: "No expiry",
603
604
  expired: !1
604
605
  } : t.getTime() <= Date.now() ? {
605
- label: `Expired ${m(t, { addSuffix: !0 })}`,
606
+ label: `Expired ${h(t, { addSuffix: !0 })}`,
606
607
  expired: !0
607
608
  } : {
608
- label: `Expires ${m(t, { addSuffix: !0 })}`,
609
+ label: `Expires ${h(t, { addSuffix: !0 })}`,
609
610
  expired: !1
610
611
  };
611
612
  }
612
613
  function se({ share: e, onUpdatePermission: t, onRevoke: n, colors: r }) {
613
- let i = b(e.expiresAt);
614
- return /* @__PURE__ */ p("div", {
614
+ let { t: i } = f(), a = x(e.expiresAt);
615
+ return /* @__PURE__ */ m("div", {
615
616
  style: {
616
617
  display: "flex",
617
618
  alignItems: "center",
@@ -620,13 +621,13 @@ function se({ share: e, onUpdatePermission: t, onRevoke: n, colors: r }) {
620
621
  backgroundColor: r.bgSecondary,
621
622
  borderRadius: "6px"
622
623
  },
623
- children: [/* @__PURE__ */ p("div", {
624
+ children: [/* @__PURE__ */ m("div", {
624
625
  style: {
625
626
  display: "flex",
626
627
  alignItems: "center",
627
628
  gap: "10px"
628
629
  },
629
- children: [/* @__PURE__ */ f("div", {
630
+ children: [/* @__PURE__ */ p("div", {
630
631
  style: {
631
632
  width: "36px",
632
633
  height: "36px",
@@ -640,14 +641,14 @@ function se({ share: e, onUpdatePermission: t, onRevoke: n, colors: r }) {
640
641
  fontSize: "14px"
641
642
  },
642
643
  children: e.recipientType === "USER" ? "U" : "R"
643
- }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("div", {
644
+ }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("div", {
644
645
  style: {
645
646
  fontSize: "13px",
646
647
  fontWeight: 500,
647
648
  color: r.textPrimary
648
649
  },
649
650
  children: e.recipientId
650
- }), /* @__PURE__ */ p("div", {
651
+ }), /* @__PURE__ */ m("div", {
651
652
  style: {
652
653
  fontSize: "11px",
653
654
  color: r.textSecondary
@@ -658,7 +659,7 @@ function se({ share: e, onUpdatePermission: t, onRevoke: n, colors: r }) {
658
659
  new Date(e.createdAt).toLocaleDateString()
659
660
  ]
660
661
  })] })]
661
- }), /* @__PURE__ */ p("div", {
662
+ }), /* @__PURE__ */ m("div", {
662
663
  style: {
663
664
  display: "flex",
664
665
  alignItems: "center",
@@ -666,7 +667,7 @@ function se({ share: e, onUpdatePermission: t, onRevoke: n, colors: r }) {
666
667
  flexWrap: "wrap"
667
668
  },
668
669
  children: [
669
- /* @__PURE__ */ f("span", {
670
+ /* @__PURE__ */ p("span", {
670
671
  "data-testid": "share-expiry",
671
672
  title: e.expiresAt ? new Date(e.expiresAt).toLocaleString() : "Access does not expire",
672
673
  style: {
@@ -675,12 +676,13 @@ function se({ share: e, onUpdatePermission: t, onRevoke: n, colors: r }) {
675
676
  borderRadius: "999px",
676
677
  whiteSpace: "nowrap",
677
678
  backgroundColor: r.bgTertiary,
678
- color: i.expired ? r.statusErrorText : r.textSecondary,
679
- fontWeight: i.expired ? 600 : 400
679
+ color: a.expired ? r.statusErrorText : r.textSecondary,
680
+ fontWeight: a.expired ? 600 : 400
680
681
  },
681
- children: i.label
682
+ children: a.label
682
683
  }),
683
- /* @__PURE__ */ f("select", {
684
+ /* @__PURE__ */ p(d, {
685
+ "aria-label": i("bigconsole.share.permissionLabel", "Access permission"),
684
686
  value: e.permission,
685
687
  onChange: (n) => t(e.id, n.target.value),
686
688
  style: {
@@ -691,12 +693,12 @@ function se({ share: e, onUpdatePermission: t, onRevoke: n, colors: r }) {
691
693
  backgroundColor: r.bgPrimary,
692
694
  color: r.textPrimary
693
695
  },
694
- children: _.map((e) => /* @__PURE__ */ f("option", {
696
+ children: v.map((e) => /* @__PURE__ */ p("option", {
695
697
  value: e.value,
696
698
  children: e.label
697
699
  }, e.value))
698
700
  }),
699
- /* @__PURE__ */ f("button", {
701
+ /* @__PURE__ */ p("button", {
700
702
  onClick: () => n(e.id),
701
703
  style: {
702
704
  padding: "6px 10px",
@@ -713,4 +715,4 @@ function se({ share: e, onUpdatePermission: t, onRevoke: n, colors: r }) {
713
715
  })]
714
716
  });
715
717
  }
716
- export { v as ShareDialog, v as default };
718
+ export { y as ShareDialog, y as default };