@burdenoff/microfe-bigconsole 2026.1123.7 → 2026.1124.2

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 (109) 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/fleet/FleetChildrenPanel.d.ts +4 -0
  29. package/dist/bigconsole/components/fleet/FleetChildrenPanel.js +174 -184
  30. package/dist/bigconsole/components/fleet/FleetCopySection.d.ts +13 -0
  31. package/dist/bigconsole/components/fleet/FleetCopySection.js +266 -0
  32. package/dist/bigconsole/components/insights/BoardLintPanel.js +2 -2
  33. package/dist/bigconsole/components/insights/OutlierSpottingDialog.js +123 -123
  34. package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +2 -2
  35. package/dist/bigconsole/components/narrative/NarrativePanel.js +1 -1
  36. package/dist/bigconsole/components/overview/DataHealthCard.js +3 -0
  37. package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +3 -0
  38. package/dist/bigconsole/components/parser/ParserStatusBadge.js +25 -28
  39. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +23 -22
  40. package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +15 -26
  41. package/dist/bigconsole/components/reconcile/KpiReconcileDialog.js +24 -24
  42. package/dist/bigconsole/components/settings/WidgetCatalogSection.js +1 -1
  43. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +188 -187
  44. package/dist/bigconsole/components/widgets/FilterNotAppliedNotice.js +1 -1
  45. package/dist/bigconsole/components/widgets/UnsupportedDataSourceNotice.js +1 -1
  46. package/dist/bigconsole/components/widgets/WidgetCompareView.js +3 -1
  47. package/dist/bigconsole/components/widgets/WidgetHeader.js +1 -1
  48. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +45 -44
  49. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +151 -147
  50. package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +48 -47
  51. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
  52. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +139 -138
  53. package/dist/bigconsole/components/widgets/form/FormWidget.js +149 -148
  54. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +80 -77
  55. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +58 -56
  56. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +75 -73
  57. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +86 -85
  58. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +80 -77
  59. package/dist/bigconsole/components/widgets/retention/RetentionView.js +1 -1
  60. package/dist/bigconsole/components/widgets/table/TableConfig.js +214 -211
  61. package/dist/bigconsole/components/widgets/table/TablePagination.js +59 -58
  62. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +140 -138
  63. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +74 -66
  64. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +48 -48
  65. package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +28 -37
  66. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +69 -69
  67. package/dist/bigconsole/hooks/useDashboardListQuery.d.ts +22 -0
  68. package/dist/bigconsole/hooks/useDashboardListQuery.js +39 -0
  69. package/dist/bigconsole/hooks/useFleetBreadcrumb.d.ts +8 -1
  70. package/dist/bigconsole/hooks/useFleetBreadcrumb.js +4 -1
  71. package/dist/bigconsole/hooks/useFleetChildren.d.ts +2 -0
  72. package/dist/bigconsole/hooks/useFleetChildren.js +10 -6
  73. package/dist/bigconsole/hooks/useFleetCopyActions.d.ts +23 -0
  74. package/dist/bigconsole/hooks/useFleetCopyActions.js +74 -0
  75. package/dist/bigconsole/hooks/useFleetFlags.d.ts +16 -0
  76. package/dist/bigconsole/hooks/useFleetFlags.js +79 -0
  77. package/dist/bigconsole/hooks/useOwnerBoundRun.d.ts +33 -0
  78. package/dist/bigconsole/hooks/useOwnerBoundRun.js +41 -0
  79. package/dist/bigconsole/pages/AdminPage.js +147 -146
  80. package/dist/bigconsole/pages/DashboardViewPage.js +292 -287
  81. package/dist/bigconsole/pages/DashboardsPage.js +647 -864
  82. package/dist/bigconsole/pages/DataParsersPage.js +5 -0
  83. package/dist/bigconsole/pages/DataSinkBuilderPage.js +4 -1
  84. package/dist/bigconsole/pages/DataSinkViewPage.js +263 -261
  85. package/dist/bigconsole/pages/DataSinksPage.js +210 -186
  86. package/dist/bigconsole/pages/InsightsPage.js +386 -383
  87. package/dist/bigconsole/pages/ParserBuilderPage.js +413 -413
  88. package/dist/bigconsole/pages/ParserViewPage.js +2 -0
  89. package/dist/bigconsole/pages/PipelineBuilderPage.js +279 -276
  90. package/dist/bigconsole/pages/PipelineViewPage.js +3 -0
  91. package/dist/bigconsole/pages/PipelinesPage.js +198 -165
  92. package/dist/bigconsole/pages/SettingsPage.js +160 -160
  93. package/dist/bigconsole/pages/WidgetDemoPage.js +2 -0
  94. package/dist/bigconsole/pages/WorkflowViewPage.js +5 -0
  95. package/dist/bigconsole/pages/WorkflowsPage.js +144 -123
  96. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +1 -1
  97. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +123 -122
  98. package/dist/bigconsole/utils/dashboardGallery.d.ts +84 -0
  99. package/dist/bigconsole/utils/dashboardGallery.js +93 -0
  100. package/dist/bigconsole/utils/fleetFlags.d.ts +22 -0
  101. package/dist/bigconsole/utils/fleetFlags.js +40 -0
  102. package/dist/bigconsole/utils/fleetTree.d.ts +9 -0
  103. package/dist/bigconsole/utils/fleetTree.js +5 -1
  104. package/dist/bigconsole/utils/statusTone.d.ts +17 -0
  105. package/dist/bigconsole/utils/statusTone.js +44 -0
  106. package/dist/generated/wspace-operations.d.ts +101 -0
  107. package/dist/generated/wspace-operations.js +609 -90
  108. package/dist/generated/wspace-types.js +6 -4
  109. package/package.json +4 -4
@@ -3,209 +3,210 @@ import { loadSinkSample as t, useQueryAccessMutations as n } from "../../../hook
3
3
  import { QUERY_ACCESS_LIMITS as r, SCALAR_TYPES as i, emptyFieldDraft as a, inferFieldDrafts as o, relationInput as s, relationToDraft as c, validateRelationDraft as l } from "../../../utils/queryAccess.js";
4
4
  import { ErrorLine as u, buttonClass as d, cellClass as f, headerCellClass as p, hintClass as m, inputClass as h, labelClass as g, primaryButtonClass as _, useProblemText as v, useQueryAccessErrorText as y } from "./shared.js";
5
5
  import { useId as b, useState as x } from "react";
6
- import { useApolloClient as S } from "@apollo/client/react";
7
- import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
6
+ import { ThemedSelect as S } from "@burdenoff/fe-libs/ui";
7
+ import { useApolloClient as C } from "@apollo/client/react";
8
+ import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
8
9
  // src/bigconsole/components/explore/queryAccess/RelationEditor.tsx
9
- var E = [...i, "DECIMAL"], D = ({ workspaceId: i, sink: D, relation: O, onClose: k, onSaved: A }) => {
10
- let j = e(), M = S(), N = y(), P = v(), { register: F } = n(i), I = b(), L = b(), [R, z] = x(() => c(O, D.key || D.name)), [B, V] = x(null), [H, U] = x(null), [W, G] = x(!1), K = (e, t) => z((n) => ({
10
+ var D = [...i, "DECIMAL"], O = ({ workspaceId: i, sink: O, relation: k, onClose: A, onSaved: j }) => {
11
+ let M = e(), N = C(), P = y(), F = v(), { register: I } = n(i), L = b(), R = b(), [z, B] = x(() => c(k, O.key || O.name)), [V, H] = x(null), [U, W] = x(null), [G, K] = x(!1), q = (e, t) => B((n) => ({
11
12
  ...n,
12
13
  fields: n.fields.map((n) => n.key === e ? {
13
14
  ...n,
14
15
  ...t
15
16
  } : n)
16
- })), q = async () => {
17
- V(null), U(null), G(!0);
17
+ })), J = async () => {
18
+ H(null), W(null), K(!0);
18
19
  try {
19
- let e = o(await t(M, i, D.id));
20
+ let e = o(await t(N, i, O.id));
20
21
  if (!e.length) {
21
- U(j("bigconsole.queryAccess.relation.suggestEmpty", "No scalar fields were found in the stored data. Declare the fields by hand."));
22
+ W(M("bigconsole.queryAccess.relation.suggestEmpty", "No scalar fields were found in the stored data. Declare the fields by hand."));
22
23
  return;
23
24
  }
24
- z((t) => ({
25
+ B((t) => ({
25
26
  ...t,
26
27
  fields: e
27
- })), U(j("bigconsole.queryAccess.relation.suggested", "{{count}} field(s) proposed from the stored data. Check each type and nullability before saving.", { count: e.length }));
28
+ })), W(M("bigconsole.queryAccess.relation.suggested", "{{count}} field(s) proposed from the stored data. Check each type and nullability before saving.", { count: e.length }));
28
29
  } catch (e) {
29
- V(N(e));
30
+ H(P(e));
30
31
  } finally {
31
- G(!1);
32
+ K(!1);
32
33
  }
33
34
  };
34
- return /* @__PURE__ */ T("section", {
35
- "aria-labelledby": I,
35
+ return /* @__PURE__ */ E("section", {
36
+ "aria-labelledby": L,
36
37
  "data-testid": "bigconsole-query-relation-editor",
37
38
  className: "rounded-card border border-border-seam bg-bg-canvas p-4",
38
39
  children: [
39
- /* @__PURE__ */ T("div", {
40
+ /* @__PURE__ */ E("div", {
40
41
  className: "mb-3 flex items-start justify-between gap-2",
41
- children: [/* @__PURE__ */ T("div", {
42
+ children: [/* @__PURE__ */ E("div", {
42
43
  className: "min-w-0 flex-1",
43
- children: [/* @__PURE__ */ w("h3", {
44
- id: I,
44
+ children: [/* @__PURE__ */ T("h3", {
45
+ id: L,
45
46
  className: "text-body-md font-semibold text-text-primary",
46
- children: O ? j("bigconsole.queryAccess.relation.editTitle", "Edit fields of {{sink}}", { sink: D.name }) : j("bigconsole.queryAccess.relation.registerTitle", "Register {{sink}} for SQL and Explore", { sink: D.name })
47
- }), /* @__PURE__ */ w("p", {
47
+ children: k ? M("bigconsole.queryAccess.relation.editTitle", "Edit fields of {{sink}}", { sink: O.name }) : M("bigconsole.queryAccess.relation.registerTitle", "Register {{sink}} for SQL and Explore", { sink: O.name })
48
+ }), /* @__PURE__ */ T("p", {
48
49
  className: m,
49
- children: j("bigconsole.queryAccess.relation.rules", "Names are lowercase SQL identifiers. Paths name one value inside a record, with segments separated by dots (for example location.region). Supported types: VARCHAR, BOOLEAN, BIGINT, TIMESTAMPTZ and DECIMAL(p,s). Up to {{max}} fields.", { max: r.fields })
50
+ children: M("bigconsole.queryAccess.relation.rules", "Names are lowercase SQL identifiers. Paths name one value inside a record, with segments separated by dots (for example location.region). Supported types: VARCHAR, BOOLEAN, BIGINT, TIMESTAMPTZ and DECIMAL(p,s). Up to {{max}} fields.", { max: r.fields })
50
51
  })]
51
- }), /* @__PURE__ */ w("button", {
52
+ }), /* @__PURE__ */ T("button", {
52
53
  type: "button",
53
54
  className: `${d} shrink-0`,
54
- onClick: k,
55
- children: j("bigconsole.queryAccess.close", "Close")
55
+ onClick: A,
56
+ children: M("bigconsole.queryAccess.close", "Close")
56
57
  })]
57
58
  }),
58
- /* @__PURE__ */ T("div", {
59
+ /* @__PURE__ */ E("div", {
59
60
  className: "mb-3 max-w-md",
60
61
  children: [
61
- /* @__PURE__ */ w("label", {
62
- htmlFor: L,
62
+ /* @__PURE__ */ T("label", {
63
+ htmlFor: R,
63
64
  className: g,
64
- children: j("bigconsole.queryAccess.relation.name", "SQL relation name")
65
+ children: M("bigconsole.queryAccess.relation.name", "SQL relation name")
65
66
  }),
66
- /* @__PURE__ */ w("input", {
67
- id: L,
67
+ /* @__PURE__ */ T("input", {
68
+ id: R,
68
69
  className: `${h} font-mono`,
69
- value: R.name,
70
+ value: z.name,
70
71
  autoComplete: "off",
71
72
  spellCheck: !1,
72
- onChange: (e) => z((t) => ({
73
+ onChange: (e) => B((t) => ({
73
74
  ...t,
74
75
  name: e.target.value
75
76
  }))
76
77
  }),
77
- /* @__PURE__ */ w("p", {
78
+ /* @__PURE__ */ T("p", {
78
79
  className: m,
79
- children: j("bigconsole.queryAccess.relation.nameHint", "Queries use this name in FROM. It must be unique in the workspace.")
80
+ children: M("bigconsole.queryAccess.relation.nameHint", "Queries use this name in FROM. It must be unique in the workspace.")
80
81
  })
81
82
  ]
82
83
  }),
83
- /* @__PURE__ */ w("div", {
84
+ /* @__PURE__ */ T("div", {
84
85
  className: "overflow-x-auto",
85
- children: /* @__PURE__ */ T("table", {
86
+ children: /* @__PURE__ */ E("table", {
86
87
  className: "w-full min-w-[860px] border-collapse",
87
- children: [/* @__PURE__ */ w("thead", { children: /* @__PURE__ */ T("tr", {
88
+ children: [/* @__PURE__ */ T("thead", { children: /* @__PURE__ */ E("tr", {
88
89
  className: "border-b border-border-seam",
89
90
  children: [
90
- /* @__PURE__ */ w("th", {
91
+ /* @__PURE__ */ T("th", {
91
92
  scope: "col",
92
93
  className: p,
93
- children: j("bigconsole.queryAccess.relation.fieldId", "Field ID")
94
+ children: M("bigconsole.queryAccess.relation.fieldId", "Field ID")
94
95
  }),
95
- /* @__PURE__ */ w("th", {
96
+ /* @__PURE__ */ T("th", {
96
97
  scope: "col",
97
98
  className: p,
98
- children: j("bigconsole.queryAccess.relation.fieldName", "SQL name")
99
+ children: M("bigconsole.queryAccess.relation.fieldName", "SQL name")
99
100
  }),
100
- /* @__PURE__ */ w("th", {
101
+ /* @__PURE__ */ T("th", {
101
102
  scope: "col",
102
103
  className: p,
103
- children: j("bigconsole.queryAccess.relation.fieldPath", "Path")
104
+ children: M("bigconsole.queryAccess.relation.fieldPath", "Path")
104
105
  }),
105
- /* @__PURE__ */ w("th", {
106
+ /* @__PURE__ */ T("th", {
106
107
  scope: "col",
107
108
  className: p,
108
- children: j("bigconsole.queryAccess.relation.fieldType", "Type")
109
+ children: M("bigconsole.queryAccess.relation.fieldType", "Type")
109
110
  }),
110
- /* @__PURE__ */ w("th", {
111
+ /* @__PURE__ */ T("th", {
111
112
  scope: "col",
112
113
  className: p,
113
- children: j("bigconsole.queryAccess.relation.fieldNullable", "Nullable")
114
+ children: M("bigconsole.queryAccess.relation.fieldNullable", "Nullable")
114
115
  }),
115
- /* @__PURE__ */ w("th", {
116
+ /* @__PURE__ */ T("th", {
116
117
  scope: "col",
117
118
  className: p,
118
- children: /* @__PURE__ */ w("span", {
119
+ children: /* @__PURE__ */ T("span", {
119
120
  className: "sr-only",
120
- children: j("bigconsole.queryAccess.columns.actions", "Actions")
121
+ children: M("bigconsole.queryAccess.columns.actions", "Actions")
121
122
  })
122
123
  })
123
124
  ]
124
- }) }), /* @__PURE__ */ w("tbody", { children: R.fields.map((e, t) => {
125
+ }) }), /* @__PURE__ */ T("tbody", { children: z.fields.map((e, t) => {
125
126
  let n = t + 1;
126
- return /* @__PURE__ */ T("tr", {
127
+ return /* @__PURE__ */ E("tr", {
127
128
  className: "border-b border-border-seam last:border-b-0",
128
129
  children: [
129
- /* @__PURE__ */ w("td", {
130
+ /* @__PURE__ */ T("td", {
130
131
  className: f,
131
- children: /* @__PURE__ */ w("input", {
132
+ children: /* @__PURE__ */ T("input", {
132
133
  className: `${h} font-mono`,
133
- "aria-label": j("bigconsole.queryAccess.relation.fieldIdOf", "Field ID, row {{row}}", { row: n }),
134
+ "aria-label": M("bigconsole.queryAccess.relation.fieldIdOf", "Field ID, row {{row}}", { row: n }),
134
135
  value: e.id,
135
136
  spellCheck: !1,
136
- onChange: (t) => K(e.key, { id: t.target.value })
137
+ onChange: (t) => q(e.key, { id: t.target.value })
137
138
  })
138
139
  }),
139
- /* @__PURE__ */ w("td", {
140
+ /* @__PURE__ */ T("td", {
140
141
  className: f,
141
- children: /* @__PURE__ */ w("input", {
142
+ children: /* @__PURE__ */ T("input", {
142
143
  className: `${h} font-mono`,
143
- "aria-label": j("bigconsole.queryAccess.relation.fieldNameOf", "SQL name, row {{row}}", { row: n }),
144
+ "aria-label": M("bigconsole.queryAccess.relation.fieldNameOf", "SQL name, row {{row}}", { row: n }),
144
145
  value: e.name,
145
146
  spellCheck: !1,
146
- onChange: (t) => K(e.key, { name: t.target.value })
147
+ onChange: (t) => q(e.key, { name: t.target.value })
147
148
  })
148
149
  }),
149
- /* @__PURE__ */ w("td", {
150
+ /* @__PURE__ */ T("td", {
150
151
  className: f,
151
- children: /* @__PURE__ */ w("input", {
152
+ children: /* @__PURE__ */ T("input", {
152
153
  className: `${h} font-mono`,
153
- "aria-label": j("bigconsole.queryAccess.relation.fieldPathOf", "Path, row {{row}}", { row: n }),
154
+ "aria-label": M("bigconsole.queryAccess.relation.fieldPathOf", "Path, row {{row}}", { row: n }),
154
155
  value: e.path,
155
156
  spellCheck: !1,
156
157
  placeholder: "location.region",
157
- onChange: (t) => K(e.key, { path: t.target.value })
158
+ onChange: (t) => q(e.key, { path: t.target.value })
158
159
  })
159
160
  }),
160
- /* @__PURE__ */ w("td", {
161
+ /* @__PURE__ */ T("td", {
161
162
  className: f,
162
- children: /* @__PURE__ */ T("div", {
163
+ children: /* @__PURE__ */ E("div", {
163
164
  className: "flex items-center gap-1",
164
- children: [/* @__PURE__ */ w("select", {
165
+ children: [/* @__PURE__ */ T(S, {
165
166
  className: `${h} min-w-[9rem]`,
166
- "aria-label": j("bigconsole.queryAccess.relation.fieldTypeOf", "Type, row {{row}}", { row: n }),
167
+ "aria-label": M("bigconsole.queryAccess.relation.fieldTypeOf", "Type, row {{row}}", { row: n }),
167
168
  value: e.baseType,
168
- onChange: (t) => K(e.key, { baseType: t.target.value }),
169
- children: E.map((e) => /* @__PURE__ */ w("option", {
169
+ onChange: (t) => q(e.key, { baseType: t.target.value }),
170
+ children: D.map((e) => /* @__PURE__ */ T("option", {
170
171
  value: e,
171
172
  children: e
172
173
  }, e))
173
- }), e.baseType === "DECIMAL" && /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w("input", {
174
+ }), e.baseType === "DECIMAL" && /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("input", {
174
175
  className: `${h} w-14`,
175
176
  inputMode: "numeric",
176
- "aria-label": j("bigconsole.queryAccess.relation.precisionOf", "Precision, row {{row}}", { row: n }),
177
+ "aria-label": M("bigconsole.queryAccess.relation.precisionOf", "Precision, row {{row}}", { row: n }),
177
178
  value: e.precision,
178
- onChange: (t) => K(e.key, { precision: t.target.value })
179
- }), /* @__PURE__ */ w("input", {
179
+ onChange: (t) => q(e.key, { precision: t.target.value })
180
+ }), /* @__PURE__ */ T("input", {
180
181
  className: `${h} w-14`,
181
182
  inputMode: "numeric",
182
- "aria-label": j("bigconsole.queryAccess.relation.scaleOf", "Scale, row {{row}}", { row: n }),
183
+ "aria-label": M("bigconsole.queryAccess.relation.scaleOf", "Scale, row {{row}}", { row: n }),
183
184
  value: e.scale,
184
- onChange: (t) => K(e.key, { scale: t.target.value })
185
+ onChange: (t) => q(e.key, { scale: t.target.value })
185
186
  })] })]
186
187
  })
187
188
  }),
188
- /* @__PURE__ */ w("td", {
189
+ /* @__PURE__ */ T("td", {
189
190
  className: f,
190
- children: /* @__PURE__ */ w("input", {
191
+ children: /* @__PURE__ */ T("input", {
191
192
  type: "checkbox",
192
- "aria-label": j("bigconsole.queryAccess.relation.nullableOf", "Nullable, row {{row}}", { row: n }),
193
+ "aria-label": M("bigconsole.queryAccess.relation.nullableOf", "Nullable, row {{row}}", { row: n }),
193
194
  checked: e.nullable,
194
- onChange: (t) => K(e.key, { nullable: t.target.checked })
195
+ onChange: (t) => q(e.key, { nullable: t.target.checked })
195
196
  })
196
197
  }),
197
- /* @__PURE__ */ w("td", {
198
+ /* @__PURE__ */ T("td", {
198
199
  className: `${f} text-right`,
199
- children: /* @__PURE__ */ w("button", {
200
+ children: /* @__PURE__ */ T("button", {
200
201
  type: "button",
201
202
  className: d,
202
- "aria-label": j("bigconsole.queryAccess.relation.removeFieldOf", "Remove field, row {{row}}", { row: n }),
203
- disabled: R.fields.length <= 1,
204
- onClick: () => z((t) => ({
203
+ "aria-label": M("bigconsole.queryAccess.relation.removeFieldOf", "Remove field, row {{row}}", { row: n }),
204
+ disabled: z.fields.length <= 1,
205
+ onClick: () => B((t) => ({
205
206
  ...t,
206
207
  fields: t.fields.filter((t) => t.key !== e.key)
207
208
  })),
208
- children: j("bigconsole.queryAccess.relation.removeField", "Remove")
209
+ children: M("bigconsole.queryAccess.relation.removeField", "Remove")
209
210
  })
210
211
  })
211
212
  ]
@@ -213,62 +214,62 @@ var E = [...i, "DECIMAL"], D = ({ workspaceId: i, sink: D, relation: O, onClose:
213
214
  }) })]
214
215
  })
215
216
  }),
216
- /* @__PURE__ */ T("div", {
217
+ /* @__PURE__ */ E("div", {
217
218
  className: "mt-3 flex flex-wrap items-center gap-2",
218
- children: [/* @__PURE__ */ w("button", {
219
+ children: [/* @__PURE__ */ T("button", {
219
220
  type: "button",
220
221
  className: d,
221
- disabled: R.fields.length >= r.fields,
222
- onClick: () => z((e) => ({
222
+ disabled: z.fields.length >= r.fields,
223
+ onClick: () => B((e) => ({
223
224
  ...e,
224
225
  fields: [...e.fields, a()]
225
226
  })),
226
- children: j("bigconsole.queryAccess.relation.addField", "Add field")
227
- }), /* @__PURE__ */ w("button", {
227
+ children: M("bigconsole.queryAccess.relation.addField", "Add field")
228
+ }), /* @__PURE__ */ T("button", {
228
229
  type: "button",
229
230
  className: d,
230
- disabled: W,
231
- onClick: () => void q(),
232
- children: W ? j("bigconsole.queryAccess.relation.suggesting", "Reading stored data…") : j("bigconsole.queryAccess.relation.suggest", "Suggest fields from stored data")
231
+ disabled: G,
232
+ onClick: () => void J(),
233
+ children: G ? M("bigconsole.queryAccess.relation.suggesting", "Reading stored data…") : M("bigconsole.queryAccess.relation.suggest", "Suggest fields from stored data")
233
234
  })]
234
235
  }),
235
- O && O.grantCount > 0 && /* @__PURE__ */ w("p", {
236
+ k && k.grantCount > 0 && /* @__PURE__ */ T("p", {
236
237
  className: "mt-2 text-xs text-text-muted",
237
- children: j("bigconsole.queryAccess.relation.grantWarning", "{{count}} grant(s) use this relation. Removing or retyping a field a grant uses is refused until that grant is changed.", { count: O.grantCount })
238
+ children: M("bigconsole.queryAccess.relation.grantWarning", "{{count}} grant(s) use this relation. Removing or retyping a field a grant uses is refused until that grant is changed.", { count: k.grantCount })
238
239
  }),
239
- /* @__PURE__ */ T("div", {
240
+ /* @__PURE__ */ E("div", {
240
241
  className: "mt-3 flex flex-col gap-2",
241
242
  children: [
242
- H && /* @__PURE__ */ w("p", {
243
+ U && /* @__PURE__ */ T("p", {
243
244
  role: "status",
244
245
  className: "text-body-sm text-text-secondary",
245
- children: H
246
+ children: U
246
247
  }),
247
- /* @__PURE__ */ w(u, { message: B }),
248
- /* @__PURE__ */ T("div", {
248
+ /* @__PURE__ */ T(u, { message: V }),
249
+ /* @__PURE__ */ E("div", {
249
250
  className: "flex gap-2",
250
- children: [/* @__PURE__ */ w("button", {
251
+ children: [/* @__PURE__ */ T("button", {
251
252
  type: "button",
252
253
  className: _,
253
- disabled: F.isPending,
254
+ disabled: I.isPending,
254
255
  onClick: () => {
255
- V(null), U(null);
256
- let e = l(R);
257
- e ? V(P(e)) : F.mutate({
258
- dataSinkId: D.id,
259
- input: s(R)
256
+ H(null), W(null);
257
+ let e = l(z);
258
+ e ? H(F(e)) : I.mutate({
259
+ dataSinkId: O.id,
260
+ input: s(z)
260
261
  }, {
261
- onSuccess: (e) => A(e),
262
- onError: (e) => V(N(e))
262
+ onSuccess: (e) => j(e),
263
+ onError: (e) => H(P(e))
263
264
  });
264
265
  },
265
- children: F.isPending ? j("bigconsole.queryAccess.saving", "Saving…") : O ? j("bigconsole.queryAccess.relation.saveChanges", "Save fields") : j("bigconsole.queryAccess.relation.register", "Register relation")
266
- }), /* @__PURE__ */ w("button", {
266
+ children: I.isPending ? M("bigconsole.queryAccess.saving", "Saving…") : k ? M("bigconsole.queryAccess.relation.saveChanges", "Save fields") : M("bigconsole.queryAccess.relation.register", "Register relation")
267
+ }), /* @__PURE__ */ T("button", {
267
268
  type: "button",
268
269
  className: d,
269
- disabled: F.isPending,
270
- onClick: k,
271
- children: j("bigconsole.queryAccess.cancel", "Cancel")
270
+ disabled: I.isPending,
271
+ onClick: A,
272
+ children: M("bigconsole.queryAccess.cancel", "Cancel")
272
273
  })]
273
274
  })
274
275
  ]
@@ -276,4 +277,4 @@ var E = [...i, "DECIMAL"], D = ({ workspaceId: i, sink: D, relation: O, onClose:
276
277
  ]
277
278
  });
278
279
  };
279
- export { D as RelationEditor };
280
+ export { O as RelationEditor };
@@ -2,6 +2,10 @@ import { FC } from 'react';
2
2
  export interface FleetChildrenPanelProps {
3
3
  dashboardId: string;
4
4
  dashboardName: string;
5
+ /** The board this one follows, when it follows one and its name can be read. */
6
+ masterName?: string | null;
7
+ /** Called after an action changed this board's widgets (a flag answered, the board restored). */
8
+ onBoardChanged?: () => Promise<unknown> | void;
5
9
  onClose: () => void;
6
10
  onOpenBoard: (dashboardId: string) => void;
7
11
  }