@burdenoff/microfe-bigconsole 2026.1123.7 → 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
@@ -1,9 +1,10 @@
1
1
  import { resolveDefaultSort as e } from "./tableSort.js";
2
2
  import { memo as t, useCallback as n, useEffect as r, useMemo as i, useState as a } from "react";
3
- import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
4
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
3
+ import { ThemedSelect as o } from "@burdenoff/fe-libs/ui";
4
+ import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
5
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
5
6
  // src/bigconsole/components/widgets/table/TableConfig.tsx
6
- var l = [
7
+ var u = [
7
8
  {
8
9
  value: "gt",
9
10
  labelKey: "bigconsole.widget.config.table.operator.gt",
@@ -49,7 +50,7 @@ var l = [
49
50
  labelKey: "bigconsole.widget.config.table.operator.contains",
50
51
  labelDefault: "contains"
51
52
  }
52
- ], u = [
53
+ ], d = [
53
54
  {
54
55
  value: "danger",
55
56
  labelKey: "bigconsole.widget.config.table.intent.danger",
@@ -75,46 +76,46 @@ var l = [
75
76
  labelKey: "bigconsole.widget.config.table.intent.neutral",
76
77
  labelDefault: "Neutral"
77
78
  }
78
- ], d = "px-2 py-1 text-xs text-text-primary bg-bg-surface border border-border-default rounded-md focus:outline-none focus:ring-2 focus:ring-action-primary-bg", f = t(function({ config: t, onChange: f }) {
79
- let { t: p } = o(), m = i(() => (t.columns || []).map((e) => typeof e == "string" ? {
79
+ ], f = "px-2 py-1 text-xs text-text-primary bg-bg-surface border border-border-default rounded-md focus:outline-none focus:ring-2 focus:ring-action-primary-bg", p = t(function({ config: t, onChange: p }) {
80
+ let { t: m } = s(), h = i(() => (t.columns || []).map((e) => typeof e == "string" ? {
80
81
  field: e,
81
82
  header: e.charAt(0).toUpperCase() + e.slice(1).replace(/_/g, " ")
82
- } : e), []), [h, g] = a(m);
83
+ } : e), []), [g, _] = a(h);
83
84
  r(() => {
84
- JSON.stringify(t.columns) !== JSON.stringify(h) && h.length > 0 && f({
85
+ JSON.stringify(t.columns) !== JSON.stringify(g) && g.length > 0 && p({
85
86
  ...t,
86
- columns: h
87
+ columns: g
87
88
  });
88
- }, [h]), r(() => {
89
+ }, [g]), r(() => {
89
90
  let e = (t.columns || []).map((e) => typeof e == "string" ? {
90
91
  field: e,
91
92
  header: e.charAt(0).toUpperCase() + e.slice(1).replace(/_/g, " ")
92
93
  } : e);
93
- g(e);
94
+ _(e);
94
95
  }, [t.columns]);
95
- let _ = n((e, n) => {
96
- f({
96
+ let v = n((e, n) => {
97
+ p({
97
98
  ...t,
98
99
  [e]: n
99
100
  });
100
- }, [t, f]), v = n((e, t, n) => {
101
- g((r) => {
101
+ }, [t, p]), y = n((e, t, n) => {
102
+ _((r) => {
102
103
  let i = [...r];
103
104
  return i[e] = {
104
105
  ...i[e],
105
106
  [t]: n
106
107
  }, i;
107
108
  });
108
- }, []), y = n((e, t) => {
109
- g((n) => {
109
+ }, []), b = n((e, t) => {
110
+ _((n) => {
110
111
  let r = [...n];
111
112
  return r[e] = {
112
113
  ...r[e],
113
114
  conditionalRules: t
114
115
  }, r;
115
116
  });
116
- }, []), b = n((e) => {
117
- let t = h[e]?.conditionalRules ?? [], n = {
117
+ }, []), x = n((e) => {
118
+ let t = g[e]?.conditionalRules ?? [], n = {
118
119
  operator: "gt",
119
120
  value: 0,
120
121
  style: {
@@ -123,15 +124,15 @@ var l = [
123
124
  bold: !0
124
125
  }
125
126
  };
126
- y(e, [...t, n]);
127
- }, [h, y]), x = n((e, t, n) => {
128
- let r = (h[e]?.conditionalRules ?? []).map((e, r) => r === t ? {
127
+ b(e, [...t, n]);
128
+ }, [g, b]), S = n((e, t, n) => {
129
+ let r = (g[e]?.conditionalRules ?? []).map((e, r) => r === t ? {
129
130
  ...e,
130
131
  ...n
131
132
  } : e);
132
- y(e, r);
133
- }, [h, y]), S = n((e, t, n) => {
134
- let r = (h[e]?.conditionalRules ?? []).map((e, r) => r === t ? {
133
+ b(e, r);
134
+ }, [g, b]), C = n((e, t, n) => {
135
+ let r = (g[e]?.conditionalRules ?? []).map((e, r) => r === t ? {
135
136
  ...e,
136
137
  style: {
137
138
  ...e.style,
@@ -139,146 +140,147 @@ var l = [
139
140
  textColor: n
140
141
  }
141
142
  } : e);
142
- y(e, r);
143
- }, [h, y]), C = n((e, t) => {
144
- let n = h[e]?.conditionalRules ?? [];
145
- y(e, n.filter((e, n) => n !== t));
146
- }, [h, y]), w = i(() => h.map((e) => ({
143
+ b(e, r);
144
+ }, [g, b]), w = n((e, t) => {
145
+ let n = g[e]?.conditionalRules ?? [];
146
+ b(e, n.filter((e, n) => n !== t));
147
+ }, [g, b]), T = i(() => g.map((e) => ({
147
148
  field: (e.key || e.field || "").trim(),
148
149
  header: e.label || e.header || ""
149
- })).filter((e) => e.field), [h]), T = e(t), E = T.column !== null && !w.some((e) => e.field === T.column), D = n((e) => {
150
- f({
150
+ })).filter((e) => e.field), [g]), E = e(t), D = E.column !== null && !T.some((e) => e.field === E.column), O = n((e) => {
151
+ p({
151
152
  ...t,
152
153
  defaultSortColumn: e || void 0,
153
154
  defaultSortDirection: e ? t.defaultSortDirection === "desc" ? "desc" : "asc" : void 0
154
155
  });
155
- }, [t, f]), O = n(() => {
156
- g((e) => [...e, {
156
+ }, [t, p]), k = n(() => {
157
+ _((e) => [...e, {
157
158
  field: "",
158
159
  header: ""
159
160
  }]);
160
- }, []), k = n((e) => {
161
- g((t) => t.filter((t, n) => n !== e));
161
+ }, []), A = n((e) => {
162
+ _((t) => t.filter((t, n) => n !== e));
162
163
  }, []);
163
- return /* @__PURE__ */ c("div", {
164
+ return /* @__PURE__ */ l("div", {
164
165
  className: "min-w-0 space-y-form-gap",
165
166
  children: [
166
- /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("label", {
167
+ /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
167
168
  className: "block text-sm font-medium text-text-primary mb-1",
168
- children: p("bigconsole.widget.config.table.pageSize.label", "Page Size")
169
- }), /* @__PURE__ */ c("select", {
169
+ children: m("bigconsole.widget.config.table.pageSize.label", "Page Size")
170
+ }), /* @__PURE__ */ l(o, {
171
+ "aria-label": m("bigconsole.widget.config.table.pageSize.label", "Page Size"),
170
172
  value: t.pageSize || 10,
171
- onChange: (e) => _("pageSize", Number(e.target.value)),
173
+ onChange: (e) => v("pageSize", Number(e.target.value)),
172
174
  className: "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n ",
173
175
  children: [
174
- /* @__PURE__ */ s("option", {
176
+ /* @__PURE__ */ c("option", {
175
177
  value: 10,
176
- children: p("bigconsole.widget.config.table.pageSize.rows", "{{count}} rows", { count: 10 })
178
+ children: m("bigconsole.widget.config.table.pageSize.rows", "{{count}} rows", { count: 10 })
177
179
  }),
178
- /* @__PURE__ */ s("option", {
180
+ /* @__PURE__ */ c("option", {
179
181
  value: 25,
180
- children: p("bigconsole.widget.config.table.pageSize.rows", "{{count}} rows", { count: 25 })
182
+ children: m("bigconsole.widget.config.table.pageSize.rows", "{{count}} rows", { count: 25 })
181
183
  }),
182
- /* @__PURE__ */ s("option", {
184
+ /* @__PURE__ */ c("option", {
183
185
  value: 50,
184
- children: p("bigconsole.widget.config.table.pageSize.rows", "{{count}} rows", { count: 50 })
186
+ children: m("bigconsole.widget.config.table.pageSize.rows", "{{count}} rows", { count: 50 })
185
187
  }),
186
- /* @__PURE__ */ s("option", {
188
+ /* @__PURE__ */ c("option", {
187
189
  value: 100,
188
- children: p("bigconsole.widget.config.table.pageSize.rows", "{{count}} rows", { count: 100 })
190
+ children: m("bigconsole.widget.config.table.pageSize.rows", "{{count}} rows", { count: 100 })
189
191
  })
190
192
  ]
191
193
  })] }),
192
- /* @__PURE__ */ c("div", { children: [
193
- /* @__PURE__ */ s("label", {
194
+ /* @__PURE__ */ l("div", { children: [
195
+ /* @__PURE__ */ c("label", {
194
196
  htmlFor: "table-default-sort-column",
195
197
  className: "block text-sm font-medium text-text-primary mb-1",
196
- children: p("bigconsole.widget.config.table.defaultSort.label", "Default sort")
198
+ children: m("bigconsole.widget.config.table.defaultSort.label", "Default sort")
197
199
  }),
198
- /* @__PURE__ */ s("p", {
200
+ /* @__PURE__ */ c("p", {
199
201
  className: "text-sm text-text-secondary mb-2",
200
- children: p("bigconsole.widget.config.table.defaultSort.help", "The table starts sorted like this every time it opens. Viewers can still click a column title to sort differently.")
202
+ children: m("bigconsole.widget.config.table.defaultSort.help", "The table starts sorted like this every time it opens. Viewers can still click a column title to sort differently.")
201
203
  }),
202
- /* @__PURE__ */ c("div", {
204
+ /* @__PURE__ */ l("div", {
203
205
  className: "grid grid-cols-1 gap-2 sm:grid-cols-2",
204
- children: [/* @__PURE__ */ c("select", {
206
+ children: [/* @__PURE__ */ l(o, {
205
207
  id: "table-default-sort-column",
206
- value: T.column ?? "",
207
- onChange: (e) => D(e.target.value),
208
- disabled: w.length === 0 && !E,
209
- "aria-label": p("bigconsole.widget.config.table.defaultSort.column", "Sort by"),
208
+ value: E.column ?? "",
209
+ onChange: (e) => O(e.target.value),
210
+ disabled: T.length === 0 && !D,
211
+ "aria-label": m("bigconsole.widget.config.table.defaultSort.column", "Sort by"),
210
212
  className: "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n disabled:opacity-60\n ",
211
213
  children: [
212
- /* @__PURE__ */ s("option", {
214
+ /* @__PURE__ */ c("option", {
213
215
  value: "",
214
- children: p("bigconsole.widget.config.table.defaultSort.none", "No default sort")
216
+ children: m("bigconsole.widget.config.table.defaultSort.none", "No default sort")
215
217
  }),
216
- E && T.column && /* @__PURE__ */ s("option", {
217
- value: T.column,
218
- children: T.column
218
+ D && E.column && /* @__PURE__ */ c("option", {
219
+ value: E.column,
220
+ children: E.column
219
221
  }),
220
- w.map((e) => /* @__PURE__ */ s("option", {
222
+ T.map((e) => /* @__PURE__ */ c("option", {
221
223
  value: e.field,
222
224
  children: e.header && e.header !== e.field ? `${e.header} (${e.field})` : e.field
223
225
  }, e.field))
224
226
  ]
225
- }), /* @__PURE__ */ c("select", {
226
- value: T.direction ?? "asc",
227
- onChange: (e) => _("defaultSortDirection", e.target.value === "desc" ? "desc" : "asc"),
228
- disabled: T.column === null,
229
- "aria-label": p("bigconsole.widget.config.table.defaultSort.direction", "Direction"),
227
+ }), /* @__PURE__ */ l(o, {
228
+ value: E.direction ?? "asc",
229
+ onChange: (e) => v("defaultSortDirection", e.target.value === "desc" ? "desc" : "asc"),
230
+ disabled: E.column === null,
231
+ "aria-label": m("bigconsole.widget.config.table.defaultSort.direction", "Direction"),
230
232
  className: "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n disabled:opacity-60\n ",
231
- children: [/* @__PURE__ */ s("option", {
233
+ children: [/* @__PURE__ */ c("option", {
232
234
  value: "asc",
233
- children: p("bigconsole.widget.config.table.defaultSort.asc", "Ascending (A to Z, low to high)")
234
- }), /* @__PURE__ */ s("option", {
235
+ children: m("bigconsole.widget.config.table.defaultSort.asc", "Ascending (A to Z, low to high)")
236
+ }), /* @__PURE__ */ c("option", {
235
237
  value: "desc",
236
- children: p("bigconsole.widget.config.table.defaultSort.desc", "Descending (Z to A, high to low)")
238
+ children: m("bigconsole.widget.config.table.defaultSort.desc", "Descending (Z to A, high to low)")
237
239
  })]
238
240
  })]
239
241
  }),
240
- w.length === 0 && !E && /* @__PURE__ */ s("p", {
242
+ T.length === 0 && !D && /* @__PURE__ */ c("p", {
241
243
  className: "text-sm text-text-secondary mt-2",
242
- children: p("bigconsole.widget.config.table.defaultSort.needColumns", "Add columns below to choose the column to sort by.")
244
+ children: m("bigconsole.widget.config.table.defaultSort.needColumns", "Add columns below to choose the column to sort by.")
243
245
  })
244
246
  ] }),
245
- /* @__PURE__ */ c("div", { children: [
246
- /* @__PURE__ */ c("div", {
247
+ /* @__PURE__ */ l("div", { children: [
248
+ /* @__PURE__ */ l("div", {
247
249
  className: "flex items-center justify-between mb-2",
248
- children: [/* @__PURE__ */ s("label", {
250
+ children: [/* @__PURE__ */ c("label", {
249
251
  className: "text-sm font-medium text-text-primary",
250
- children: p("bigconsole.widget.config.table.columns.label", "Columns")
251
- }), /* @__PURE__ */ s("button", {
252
+ children: m("bigconsole.widget.config.table.columns.label", "Columns")
253
+ }), /* @__PURE__ */ c("button", {
252
254
  type: "button",
253
- onClick: O,
255
+ onClick: k,
254
256
  className: "\n text-sm text-action-primary-bg\n hover:text-action-primary-bgHover\n ",
255
- children: p("bigconsole.widget.config.table.columns.add", "+ Add Column")
257
+ children: m("bigconsole.widget.config.table.columns.add", "+ Add Column")
256
258
  })]
257
259
  }),
258
- /* @__PURE__ */ s("p", {
260
+ /* @__PURE__ */ c("p", {
259
261
  className: "text-sm text-text-secondary mb-3",
260
- children: p("bigconsole.widget.config.table.columns.replacementHelp", "Adding columns here replaces auto-generated columns. Only configured columns will be shown, in this order. In edit mode, drag table headers to reorder.")
262
+ children: m("bigconsole.widget.config.table.columns.replacementHelp", "Adding columns here replaces auto-generated columns. Only configured columns will be shown, in this order. In edit mode, drag table headers to reorder.")
261
263
  }),
262
- /* @__PURE__ */ c("div", {
264
+ /* @__PURE__ */ l("div", {
263
265
  className: "space-y-3",
264
- children: [h.map((e, t) => /* @__PURE__ */ c("div", {
266
+ children: [g.map((e, t) => /* @__PURE__ */ l("div", {
265
267
  className: "\n p-3\n bg-bg-sunken\n rounded-md\n space-y-2\n ",
266
268
  children: [
267
- /* @__PURE__ */ c("div", {
269
+ /* @__PURE__ */ l("div", {
268
270
  className: "flex items-center justify-between",
269
- children: [/* @__PURE__ */ s("span", {
271
+ children: [/* @__PURE__ */ c("span", {
270
272
  className: "text-xs text-text-secondary",
271
- children: p("bigconsole.widget.config.table.columns.columnN", "Column {{index}}", { index: t + 1 })
272
- }), /* @__PURE__ */ s("button", {
273
+ children: m("bigconsole.widget.config.table.columns.columnN", "Column {{index}}", { index: t + 1 })
274
+ }), /* @__PURE__ */ c("button", {
273
275
  type: "button",
274
- onClick: () => k(t),
276
+ onClick: () => A(t),
275
277
  className: "text-status-error-text hover:text-status-error-text/80",
276
- children: /* @__PURE__ */ s("svg", {
278
+ children: /* @__PURE__ */ c("svg", {
277
279
  className: "w-4 h-4",
278
280
  fill: "none",
279
281
  stroke: "currentColor",
280
282
  viewBox: "0 0 24 24",
281
- children: /* @__PURE__ */ s("path", {
283
+ children: /* @__PURE__ */ c("path", {
282
284
  strokeLinecap: "round",
283
285
  strokeLinejoin: "round",
284
286
  strokeWidth: 2,
@@ -287,166 +289,167 @@ var l = [
287
289
  })
288
290
  })]
289
291
  }),
290
- /* @__PURE__ */ c("div", {
292
+ /* @__PURE__ */ l("div", {
291
293
  className: "grid grid-cols-1 gap-2 sm:grid-cols-2",
292
- children: [/* @__PURE__ */ s("input", {
294
+ children: [/* @__PURE__ */ c("input", {
293
295
  type: "text",
294
296
  value: e.field || "",
295
- onChange: (e) => v(t, "field", e.target.value),
296
- placeholder: p("bigconsole.widget.config.table.column.fieldPlaceholder", "Field name"),
297
+ onChange: (e) => y(t, "field", e.target.value),
298
+ placeholder: m("bigconsole.widget.config.table.column.fieldPlaceholder", "Field name"),
297
299
  className: "\n px-2 py-1\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n "
298
- }), /* @__PURE__ */ s("input", {
300
+ }), /* @__PURE__ */ c("input", {
299
301
  type: "text",
300
302
  value: e.header || "",
301
- onChange: (e) => v(t, "header", e.target.value),
302
- placeholder: p("bigconsole.widget.config.table.column.headerPlaceholder", "Header label"),
303
+ onChange: (e) => y(t, "header", e.target.value),
304
+ placeholder: m("bigconsole.widget.config.table.column.headerPlaceholder", "Header label"),
303
305
  className: "\n px-2 py-1\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n "
304
306
  })]
305
307
  }),
306
- /* @__PURE__ */ c("div", {
308
+ /* @__PURE__ */ l("div", {
307
309
  className: "grid grid-cols-1 gap-2 sm:grid-cols-2",
308
- children: [/* @__PURE__ */ c("select", {
310
+ children: [/* @__PURE__ */ l(o, {
309
311
  value: e.format || "text",
310
- onChange: (e) => v(t, "format", e.target.value),
312
+ onChange: (e) => y(t, "format", e.target.value),
311
313
  className: "\n px-2 py-1\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n ",
312
314
  children: [
313
- /* @__PURE__ */ s("option", {
315
+ /* @__PURE__ */ c("option", {
314
316
  value: "text",
315
- children: p("bigconsole.widget.config.table.format.text", "Text")
317
+ children: m("bigconsole.widget.config.table.format.text", "Text")
316
318
  }),
317
- /* @__PURE__ */ s("option", {
319
+ /* @__PURE__ */ c("option", {
318
320
  value: "number",
319
- children: p("bigconsole.widget.config.table.format.number", "Number")
321
+ children: m("bigconsole.widget.config.table.format.number", "Number")
320
322
  }),
321
- /* @__PURE__ */ s("option", {
323
+ /* @__PURE__ */ c("option", {
322
324
  value: "currency",
323
- children: p("bigconsole.widget.config.table.format.currency", "Currency")
325
+ children: m("bigconsole.widget.config.table.format.currency", "Currency")
324
326
  }),
325
- /* @__PURE__ */ s("option", {
327
+ /* @__PURE__ */ c("option", {
326
328
  value: "percentage",
327
- children: p("bigconsole.widget.config.table.format.percentage", "Percentage")
329
+ children: m("bigconsole.widget.config.table.format.percentage", "Percentage")
328
330
  }),
329
- /* @__PURE__ */ s("option", {
331
+ /* @__PURE__ */ c("option", {
330
332
  value: "date",
331
- children: p("bigconsole.widget.config.table.format.date", "Date")
333
+ children: m("bigconsole.widget.config.table.format.date", "Date")
332
334
  }),
333
- /* @__PURE__ */ s("option", {
335
+ /* @__PURE__ */ c("option", {
334
336
  value: "badge",
335
- children: p("bigconsole.widget.config.table.format.badge", "Badge")
337
+ children: m("bigconsole.widget.config.table.format.badge", "Badge")
336
338
  })
337
339
  ]
338
- }), /* @__PURE__ */ c("select", {
340
+ }), /* @__PURE__ */ l(o, {
339
341
  value: e.align || "left",
340
- onChange: (e) => v(t, "align", e.target.value),
342
+ onChange: (e) => y(t, "align", e.target.value),
341
343
  className: "\n px-2 py-1\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n ",
342
344
  children: [
343
- /* @__PURE__ */ s("option", {
345
+ /* @__PURE__ */ c("option", {
344
346
  value: "left",
345
- children: p("bigconsole.widget.config.table.align.left", "Left")
347
+ children: m("bigconsole.widget.config.table.align.left", "Left")
346
348
  }),
347
- /* @__PURE__ */ s("option", {
349
+ /* @__PURE__ */ c("option", {
348
350
  value: "center",
349
- children: p("bigconsole.widget.config.table.align.center", "Center")
351
+ children: m("bigconsole.widget.config.table.align.center", "Center")
350
352
  }),
351
- /* @__PURE__ */ s("option", {
353
+ /* @__PURE__ */ c("option", {
352
354
  value: "right",
353
- children: p("bigconsole.widget.config.table.align.right", "Right")
355
+ children: m("bigconsole.widget.config.table.align.right", "Right")
354
356
  })
355
357
  ]
356
358
  })]
357
359
  }),
358
- /* @__PURE__ */ c("div", {
360
+ /* @__PURE__ */ l("div", {
359
361
  className: "pt-2 border-t border-border-default/60",
360
362
  children: [
361
- /* @__PURE__ */ c("div", {
363
+ /* @__PURE__ */ l("div", {
362
364
  className: "flex items-center justify-between mb-1",
363
- children: [/* @__PURE__ */ s("span", {
365
+ children: [/* @__PURE__ */ c("span", {
364
366
  className: "text-xs font-medium text-text-secondary",
365
- children: p("bigconsole.widget.config.table.conditionalFormatting.title", "Conditional formatting")
366
- }), /* @__PURE__ */ s("button", {
367
+ children: m("bigconsole.widget.config.table.conditionalFormatting.title", "Conditional formatting")
368
+ }), /* @__PURE__ */ c("button", {
367
369
  type: "button",
368
- onClick: () => b(t),
370
+ onClick: () => x(t),
369
371
  className: "text-xs text-action-primary-bg hover:text-action-primary-bgHover",
370
- children: p("bigconsole.widget.config.table.conditionalFormatting.addRule", "+ Add rule")
372
+ children: m("bigconsole.widget.config.table.conditionalFormatting.addRule", "+ Add rule")
371
373
  })]
372
374
  }),
373
- (e.conditionalRules?.length ?? 0) === 0 && /* @__PURE__ */ s("p", {
375
+ (e.conditionalRules?.length ?? 0) === 0 && /* @__PURE__ */ c("p", {
374
376
  className: "text-xs text-text-secondary",
375
- children: p("bigconsole.widget.config.table.conditionalFormatting.noRules", "No rules — cell shows its plain value.")
377
+ children: m("bigconsole.widget.config.table.conditionalFormatting.noRules", "No rules — cell shows its plain value.")
376
378
  }),
377
- /* @__PURE__ */ s("div", {
379
+ /* @__PURE__ */ c("div", {
378
380
  className: "space-y-2",
379
381
  children: (e.conditionalRules ?? []).map((n, r) => {
380
- let i = n.operator !== "isEmpty" && n.operator !== "isNotEmpty", a = i && n.valueType === "field", o = n.operator === "between" || n.operator === "outside", f = n.style?.bgColor ?? n.style?.textColor ?? "danger";
381
- return /* @__PURE__ */ c("div", {
382
+ let i = n.operator !== "isEmpty" && n.operator !== "isNotEmpty", a = i && n.valueType === "field", s = n.operator === "between" || n.operator === "outside", p = n.style?.bgColor ?? n.style?.textColor ?? "danger";
383
+ return /* @__PURE__ */ l("div", {
382
384
  className: "p-2 bg-bg-surface rounded-md border border-border-default space-y-2",
383
- children: [/* @__PURE__ */ c("div", {
385
+ children: [/* @__PURE__ */ l("div", {
384
386
  className: "flex items-center gap-2",
385
387
  children: [
386
- /* @__PURE__ */ s("select", {
388
+ /* @__PURE__ */ c(o, {
387
389
  value: n.operator,
388
- onChange: (e) => x(t, r, { operator: e.target.value }),
389
- className: `${d} flex-1`,
390
- children: l.map((e) => /* @__PURE__ */ s("option", {
390
+ onChange: (e) => S(t, r, { operator: e.target.value }),
391
+ className: `${f} flex-1`,
392
+ children: u.map((e) => /* @__PURE__ */ c("option", {
391
393
  value: e.value,
392
- children: p(e.labelKey, e.labelDefault)
394
+ children: m(e.labelKey, e.labelDefault)
393
395
  }, e.value))
394
396
  }),
395
- i && /* @__PURE__ */ c("select", {
397
+ i && /* @__PURE__ */ l(o, {
396
398
  value: a ? "field" : "constant",
397
- onChange: (e) => x(t, r, e.target.value === "field" ? { valueType: "field" } : {
399
+ onChange: (e) => S(t, r, e.target.value === "field" ? { valueType: "field" } : {
398
400
  valueType: "constant",
399
401
  fieldRef: void 0
400
402
  }),
401
- "aria-label": p("bigconsole.widget.config.table.rule.valueTypeLabel", "Compare to"),
402
- className: `${d} w-20`,
403
- children: [/* @__PURE__ */ s("option", {
403
+ "aria-label": m("bigconsole.widget.config.table.rule.valueTypeLabel", "Compare to"),
404
+ className: `${f} w-20`,
405
+ children: [/* @__PURE__ */ c("option", {
404
406
  value: "constant",
405
- children: p("bigconsole.widget.config.table.rule.valueTypeConstant", "Value")
406
- }), /* @__PURE__ */ s("option", {
407
+ children: m("bigconsole.widget.config.table.rule.valueTypeConstant", "Value")
408
+ }), /* @__PURE__ */ c("option", {
407
409
  value: "field",
408
- children: p("bigconsole.widget.config.table.rule.valueTypeField", "Field")
410
+ children: m("bigconsole.widget.config.table.rule.valueTypeField", "Field")
409
411
  })]
410
412
  }),
411
- a ? /* @__PURE__ */ c("select", {
413
+ a ? /* @__PURE__ */ l(o, {
414
+ "aria-label": m("bigconsole.widget.config.table.rule.fieldRefPlaceholder", "Select field"),
412
415
  value: n.fieldRef ?? "",
413
- onChange: (e) => x(t, r, {
416
+ onChange: (e) => S(t, r, {
414
417
  valueType: "field",
415
418
  fieldRef: e.target.value
416
419
  }),
417
- className: `${d} w-28`,
418
- children: [/* @__PURE__ */ s("option", {
420
+ className: `${f} w-28`,
421
+ children: [/* @__PURE__ */ c("option", {
419
422
  value: "",
420
- children: p("bigconsole.widget.config.table.rule.fieldRefPlaceholder", "Select field")
421
- }), h.filter((t) => t.key !== e.key).map((e) => /* @__PURE__ */ s("option", {
423
+ children: m("bigconsole.widget.config.table.rule.fieldRefPlaceholder", "Select field")
424
+ }), g.filter((t) => t.key !== e.key).map((e) => /* @__PURE__ */ c("option", {
422
425
  value: e.key,
423
426
  children: e.key
424
427
  }, e.key))]
425
- }) : /* @__PURE__ */ s("input", {
428
+ }) : /* @__PURE__ */ c("input", {
426
429
  type: "text",
427
430
  value: n.value ?? "",
428
- onChange: (e) => x(t, r, { value: e.target.value }),
429
- placeholder: p("bigconsole.widget.config.table.rule.valuePlaceholder", "value"),
430
- className: `${d} w-20`
431
+ onChange: (e) => S(t, r, { value: e.target.value }),
432
+ placeholder: m("bigconsole.widget.config.table.rule.valuePlaceholder", "value"),
433
+ className: `${f} w-20`
431
434
  }),
432
- o && /* @__PURE__ */ s("input", {
435
+ s && /* @__PURE__ */ c("input", {
433
436
  type: "text",
434
437
  value: n.value2 ?? "",
435
- onChange: (e) => x(t, r, { value2: e.target.value }),
436
- placeholder: p("bigconsole.widget.config.table.rule.value2Placeholder", "and"),
437
- className: `${d} w-20`
438
+ onChange: (e) => S(t, r, { value2: e.target.value }),
439
+ placeholder: m("bigconsole.widget.config.table.rule.value2Placeholder", "and"),
440
+ className: `${f} w-20`
438
441
  }),
439
- /* @__PURE__ */ s("button", {
442
+ /* @__PURE__ */ c("button", {
440
443
  type: "button",
441
- onClick: () => C(t, r),
444
+ onClick: () => w(t, r),
442
445
  className: "text-status-error-text hover:text-status-error-text/80",
443
- "aria-label": p("bigconsole.widget.config.table.rule.remove", "Remove rule"),
444
- children: /* @__PURE__ */ s("svg", {
446
+ "aria-label": m("bigconsole.widget.config.table.rule.remove", "Remove rule"),
447
+ children: /* @__PURE__ */ c("svg", {
445
448
  className: "w-3.5 h-3.5",
446
449
  fill: "none",
447
450
  stroke: "currentColor",
448
451
  viewBox: "0 0 24 24",
449
- children: /* @__PURE__ */ s("path", {
452
+ children: /* @__PURE__ */ c("path", {
450
453
  strokeLinecap: "round",
451
454
  strokeLinejoin: "round",
452
455
  strokeWidth: 2,
@@ -455,27 +458,27 @@ var l = [
455
458
  })
456
459
  })
457
460
  ]
458
- }), /* @__PURE__ */ c("div", {
461
+ }), /* @__PURE__ */ l("div", {
459
462
  className: "flex items-center gap-2",
460
- children: [/* @__PURE__ */ s("select", {
461
- value: f,
462
- onChange: (e) => S(t, r, e.target.value),
463
- className: `${d} flex-1`,
464
- children: u.map((e) => /* @__PURE__ */ s("option", {
463
+ children: [/* @__PURE__ */ c(o, {
464
+ value: p,
465
+ onChange: (e) => C(t, r, e.target.value),
466
+ className: `${f} flex-1`,
467
+ children: d.map((e) => /* @__PURE__ */ c("option", {
465
468
  value: e.value,
466
- children: p(e.labelKey, e.labelDefault)
469
+ children: m(e.labelKey, e.labelDefault)
467
470
  }, e.value))
468
- }), /* @__PURE__ */ c("label", {
471
+ }), /* @__PURE__ */ l("label", {
469
472
  className: "flex items-center gap-1 text-xs text-text-primary",
470
- children: [/* @__PURE__ */ s("input", {
473
+ children: [/* @__PURE__ */ c("input", {
471
474
  type: "checkbox",
472
475
  checked: n.style?.bold === !0,
473
- onChange: (e) => x(t, r, { style: {
476
+ onChange: (e) => S(t, r, { style: {
474
477
  ...n.style,
475
478
  bold: e.target.checked
476
479
  } }),
477
480
  className: "w-3.5 h-3.5 text-action-primary-bg bg-bg-surface border-border-default rounded focus:ring-action-primary-bg"
478
- }), p("bigconsole.widget.config.table.rule.bold", "Bold")]
481
+ }), m("bigconsole.widget.config.table.rule.bold", "Bold")]
479
482
  })]
480
483
  })]
481
484
  }, r);
@@ -484,79 +487,79 @@ var l = [
484
487
  ]
485
488
  })
486
489
  ]
487
- }, t)), h.length === 0 && /* @__PURE__ */ s("p", {
490
+ }, t)), g.length === 0 && /* @__PURE__ */ c("p", {
488
491
  className: "text-sm text-text-secondary text-center py-4",
489
- children: p("bigconsole.widget.config.table.columns.empty", "No columns configured. Columns will be auto-generated from data.")
492
+ children: m("bigconsole.widget.config.table.columns.empty", "No columns configured. Columns will be auto-generated from data.")
490
493
  })]
491
494
  })
492
495
  ] }),
493
- /* @__PURE__ */ c("div", {
496
+ /* @__PURE__ */ l("div", {
494
497
  role: "group",
495
498
  "aria-label": "Display options",
496
499
  className: "space-y-3 border-t border-[var(--color-border-subtle)] pt-form-gap",
497
500
  children: [
498
- /* @__PURE__ */ s("p", {
501
+ /* @__PURE__ */ c("p", {
499
502
  className: "text-xs font-bold uppercase tracking-wider text-text-secondary",
500
503
  children: "Display options"
501
504
  }),
502
- /* @__PURE__ */ c("label", {
505
+ /* @__PURE__ */ l("label", {
503
506
  className: "flex items-center gap-3",
504
- children: [/* @__PURE__ */ s("input", {
507
+ children: [/* @__PURE__ */ c("input", {
505
508
  type: "checkbox",
506
509
  checked: t.showSearch !== !1,
507
- onChange: (e) => _("showSearch", e.target.checked),
510
+ onChange: (e) => v("showSearch", e.target.checked),
508
511
  className: "\n w-4 h-4\n text-action-primary-bg\n bg-bg-surface\n border-border-default\n rounded\n focus:ring-action-primary-bg\n "
509
- }), /* @__PURE__ */ s("span", {
512
+ }), /* @__PURE__ */ c("span", {
510
513
  className: "text-sm text-text-primary",
511
- children: p("bigconsole.widget.config.table.showSearch", "Show search box")
514
+ children: m("bigconsole.widget.config.table.showSearch", "Show search box")
512
515
  })]
513
516
  }),
514
- /* @__PURE__ */ c("label", {
517
+ /* @__PURE__ */ l("label", {
515
518
  className: "flex items-center gap-3",
516
- children: [/* @__PURE__ */ s("input", {
519
+ children: [/* @__PURE__ */ c("input", {
517
520
  type: "checkbox",
518
521
  checked: t.showPagination !== !1,
519
- onChange: (e) => _("showPagination", e.target.checked),
522
+ onChange: (e) => v("showPagination", e.target.checked),
520
523
  className: "\n w-4 h-4\n text-action-primary-bg\n bg-bg-surface\n border-border-default\n rounded\n focus:ring-action-primary-bg\n "
521
- }), /* @__PURE__ */ s("span", {
524
+ }), /* @__PURE__ */ c("span", {
522
525
  className: "text-sm text-text-primary",
523
- children: p("bigconsole.widget.config.table.showPagination", "Show pagination")
526
+ children: m("bigconsole.widget.config.table.showPagination", "Show pagination")
524
527
  })]
525
528
  }),
526
- /* @__PURE__ */ c("label", {
529
+ /* @__PURE__ */ l("label", {
527
530
  className: "flex items-center gap-3",
528
- children: [/* @__PURE__ */ s("input", {
531
+ children: [/* @__PURE__ */ c("input", {
529
532
  type: "checkbox",
530
533
  checked: t.showExport !== !1,
531
- onChange: (e) => _("showExport", e.target.checked),
534
+ onChange: (e) => v("showExport", e.target.checked),
532
535
  className: "\n w-4 h-4\n text-action-primary-bg\n bg-bg-surface\n border-border-default\n rounded\n focus:ring-action-primary-bg\n "
533
- }), /* @__PURE__ */ s("span", {
536
+ }), /* @__PURE__ */ c("span", {
534
537
  className: "text-sm text-text-primary",
535
- children: p("bigconsole.widget.config.table.showExport", "Show export button")
538
+ children: m("bigconsole.widget.config.table.showExport", "Show export button")
536
539
  })]
537
540
  }),
538
- /* @__PURE__ */ c("label", {
541
+ /* @__PURE__ */ l("label", {
539
542
  className: "flex items-center gap-3",
540
- children: [/* @__PURE__ */ s("input", {
543
+ children: [/* @__PURE__ */ c("input", {
541
544
  type: "checkbox",
542
545
  checked: t.stickyHeader === !0,
543
- onChange: (e) => _("stickyHeader", e.target.checked),
546
+ onChange: (e) => v("stickyHeader", e.target.checked),
544
547
  className: "\n w-4 h-4\n text-action-primary-bg\n bg-bg-surface\n border-border-default\n rounded\n focus:ring-action-primary-bg\n "
545
- }), /* @__PURE__ */ s("span", {
548
+ }), /* @__PURE__ */ c("span", {
546
549
  className: "text-sm text-text-primary",
547
- children: p("bigconsole.widget.config.table.stickyHeader", "Sticky header")
550
+ children: m("bigconsole.widget.config.table.stickyHeader", "Sticky header")
548
551
  })]
549
552
  }),
550
- /* @__PURE__ */ c("label", {
553
+ /* @__PURE__ */ l("label", {
551
554
  className: "flex items-center gap-3",
552
- children: [/* @__PURE__ */ s("input", {
555
+ children: [/* @__PURE__ */ c("input", {
553
556
  type: "checkbox",
554
557
  checked: t.stripedRows === !0,
555
- onChange: (e) => _("stripedRows", e.target.checked),
558
+ onChange: (e) => v("stripedRows", e.target.checked),
556
559
  className: "\n w-4 h-4\n text-action-primary-bg\n bg-bg-surface\n border-border-default\n rounded\n focus:ring-action-primary-bg\n "
557
- }), /* @__PURE__ */ s("span", {
560
+ }), /* @__PURE__ */ c("span", {
558
561
  className: "text-sm text-text-primary",
559
- children: p("bigconsole.widget.config.table.stripedRows", "Striped rows")
562
+ children: m("bigconsole.widget.config.table.stripedRows", "Striped rows")
560
563
  })]
561
564
  })
562
565
  ]
@@ -564,4 +567,4 @@ var l = [
564
567
  ]
565
568
  });
566
569
  });
567
- export { f as TableConfig, f as default };
570
+ export { p as TableConfig, p as default };