@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
@@ -1,117 +1,118 @@
1
1
  import { AGGREGATES as e, COMPARISONS as t, aggregateAllowed as n, availableFields as r, emptyVisual as i, outputNames as a } from "./visualSql.js";
2
2
  import { cloneElement as o, useId as s } from "react";
3
- import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
3
+ import { ThemedSelect as c } from "@burdenoff/fe-libs/ui";
4
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
4
5
  // src/bigconsole/components/explore/VisualBuilder.tsx
5
- var d = "rounded border border-border-default bg-bg-surface px-2 py-1 text-sm text-text-primary", f = d + " disabled:opacity-50";
6
- function p({ label: e, children: t }) {
6
+ var f = "rounded border border-border-default bg-bg-surface px-2 py-1 text-sm text-text-primary", p = f + " disabled:opacity-50";
7
+ function m({ label: e, children: t }) {
7
8
  let n = s();
8
- return /* @__PURE__ */ u("div", {
9
+ return /* @__PURE__ */ d("div", {
9
10
  className: "flex flex-col gap-1 text-sm text-text-secondary",
10
- children: [/* @__PURE__ */ l("label", {
11
+ children: [/* @__PURE__ */ u("label", {
11
12
  htmlFor: n,
12
13
  children: e
13
14
  }), o(t, { id: n })]
14
15
  });
15
16
  }
16
- function m({ label: e, value: t, options: n, first: r, onChange: i }) {
17
- return /* @__PURE__ */ l(p, {
17
+ function h({ label: e, value: t, options: n, first: r, onChange: i }) {
18
+ return /* @__PURE__ */ u(m, {
18
19
  label: e,
19
- children: /* @__PURE__ */ u("select", {
20
- className: d,
20
+ children: /* @__PURE__ */ d(c, {
21
+ className: f,
21
22
  value: t,
22
23
  onChange: (e) => i(e.target.value),
23
- children: [r !== void 0 && /* @__PURE__ */ l("option", {
24
+ children: [r !== void 0 && /* @__PURE__ */ u("option", {
24
25
  value: "",
25
26
  children: r
26
- }), n.map((e) => /* @__PURE__ */ l("option", { children: e }, e))]
27
+ }), n.map((e) => /* @__PURE__ */ u("option", { children: e }, e))]
27
28
  })
28
29
  });
29
30
  }
30
- function h({ sources: o, value: s, onChange: h }) {
31
- let g = (e) => h({
31
+ function g({ sources: o, value: s, onChange: g }) {
32
+ let _ = (e) => g({
32
33
  ...s,
33
34
  ...e
34
- }), _ = r(s, o), v = _.filter((e) => !e.masked), y = v.filter((e) => e.source === s.source), b = y.find((e) => e.ref === s.leftKey)?.type, x = v.filter((e) => e.source === s.join && e.type === b), S = (e, t) => g({ groups: t ? [...s.groups, e] : s.groups.filter((t) => t !== e) });
35
- return /* @__PURE__ */ u("div", {
35
+ }), v = r(s, o), y = v.filter((e) => !e.masked), b = y.filter((e) => e.source === s.source), x = b.find((e) => e.ref === s.leftKey)?.type, S = y.filter((e) => e.source === s.join && e.type === x), C = (e, t) => _({ groups: t ? [...s.groups, e] : s.groups.filter((t) => t !== e) });
36
+ return /* @__PURE__ */ d("div", {
36
37
  className: "space-y-4",
37
38
  children: [
38
- /* @__PURE__ */ u("div", {
39
+ /* @__PURE__ */ d("div", {
39
40
  className: "grid gap-3 sm:grid-cols-2",
40
- children: [/* @__PURE__ */ l(p, {
41
+ children: [/* @__PURE__ */ u(m, {
41
42
  label: "Source",
42
- children: /* @__PURE__ */ u("select", {
43
- className: d,
43
+ children: /* @__PURE__ */ d(c, {
44
+ className: f,
44
45
  value: s.source,
45
- onChange: (e) => h(i(e.target.value)),
46
- children: [/* @__PURE__ */ l("option", {
46
+ onChange: (e) => g(i(e.target.value)),
47
+ children: [/* @__PURE__ */ u("option", {
47
48
  value: "",
48
49
  children: "Select a source"
49
- }), o.map((e) => /* @__PURE__ */ l("option", {
50
+ }), o.map((e) => /* @__PURE__ */ u("option", {
50
51
  value: e.id,
51
52
  children: e.name
52
53
  }, e.id))]
53
54
  })
54
- }), s.source && /* @__PURE__ */ l(p, {
55
+ }), s.source && /* @__PURE__ */ u(m, {
55
56
  label: "Join source",
56
- children: /* @__PURE__ */ u("select", {
57
+ children: /* @__PURE__ */ d(c, {
57
58
  className: "rounded border border-border-default bg-bg-surface px-2 py-1 text-sm text-text-primary",
58
59
  value: s.join,
59
- onChange: (e) => h({
60
+ onChange: (e) => g({
60
61
  ...i(s.source),
61
62
  join: e.target.value,
62
- fields: s.fields.filter((e) => y.some((t) => t.ref === e))
63
+ fields: s.fields.filter((e) => b.some((t) => t.ref === e))
63
64
  }),
64
- children: [/* @__PURE__ */ l("option", {
65
+ children: [/* @__PURE__ */ u("option", {
65
66
  value: "",
66
67
  children: "None"
67
- }), o.filter((e) => e.id !== s.source).map((e) => /* @__PURE__ */ l("option", {
68
+ }), o.filter((e) => e.id !== s.source).map((e) => /* @__PURE__ */ u("option", {
68
69
  value: e.id,
69
70
  children: e.name
70
71
  }, e.id))]
71
72
  })
72
73
  })]
73
74
  }),
74
- s.join && /* @__PURE__ */ u("div", {
75
+ s.join && /* @__PURE__ */ d("div", {
75
76
  className: "flex flex-wrap gap-3",
76
77
  children: [
77
- /* @__PURE__ */ l(m, {
78
+ /* @__PURE__ */ u(h, {
78
79
  label: "Join type",
79
80
  value: s.joinType,
80
81
  options: ["INNER", "LEFT"],
81
- onChange: (e) => g({ joinType: e })
82
+ onChange: (e) => _({ joinType: e })
82
83
  }),
83
- /* @__PURE__ */ l(m, {
84
+ /* @__PURE__ */ u(h, {
84
85
  label: "Left key",
85
86
  value: s.leftKey,
86
- options: y.map((e) => e.ref),
87
+ options: b.map((e) => e.ref),
87
88
  first: "Select field",
88
- onChange: (e) => g({
89
+ onChange: (e) => _({
89
90
  leftKey: e,
90
91
  rightKey: ""
91
92
  })
92
93
  }),
93
- /* @__PURE__ */ l(m, {
94
+ /* @__PURE__ */ u(h, {
94
95
  label: "Right key",
95
96
  value: s.rightKey,
96
- options: x.map((e) => e.ref),
97
+ options: S.map((e) => e.ref),
97
98
  first: "Select matching type",
98
- onChange: (e) => g({ rightKey: e })
99
+ onChange: (e) => _({ rightKey: e })
99
100
  })
100
101
  ]
101
102
  }),
102
- s.source && /* @__PURE__ */ u(c, { children: [
103
- /* @__PURE__ */ u("fieldset", { children: [/* @__PURE__ */ l("legend", {
103
+ s.source && /* @__PURE__ */ d(l, { children: [
104
+ /* @__PURE__ */ d("fieldset", { children: [/* @__PURE__ */ u("legend", {
104
105
  className: "font-medium",
105
106
  children: "Fields"
106
- }), /* @__PURE__ */ l("div", {
107
+ }), /* @__PURE__ */ u("div", {
107
108
  className: "mt-1 flex flex-wrap gap-3",
108
- children: _.map((e) => /* @__PURE__ */ u("label", {
109
+ children: v.map((e) => /* @__PURE__ */ d("label", {
109
110
  className: "text-sm",
110
111
  children: [
111
- /* @__PURE__ */ l("input", {
112
+ /* @__PURE__ */ u("input", {
112
113
  type: "checkbox",
113
114
  checked: s.fields.includes(e.ref),
114
- onChange: (t) => g({
115
+ onChange: (t) => _({
115
116
  fields: t.target.checked ? [...s.fields, e.ref] : s.fields.filter((t) => t !== e.ref),
116
117
  sort: ""
117
118
  })
@@ -122,60 +123,60 @@ function h({ sources: o, value: s, onChange: h }) {
122
123
  ]
123
124
  }, e.ref))
124
125
  })] }),
125
- /* @__PURE__ */ u("fieldset", {
126
+ /* @__PURE__ */ d("fieldset", {
126
127
  className: "space-y-2",
127
128
  children: [
128
- /* @__PURE__ */ l("legend", {
129
+ /* @__PURE__ */ u("legend", {
129
130
  className: "font-medium",
130
131
  children: "Filters"
131
132
  }),
132
133
  s.filters.map((e, n) => {
133
- let r = (e) => g({ filters: s.filters.map((t, r) => r === n ? {
134
+ let r = (e) => _({ filters: s.filters.map((t, r) => r === n ? {
134
135
  ...t,
135
136
  ...e
136
137
  } : t) });
137
- return /* @__PURE__ */ u("div", {
138
+ return /* @__PURE__ */ d("div", {
138
139
  className: "flex flex-wrap items-end gap-2",
139
140
  children: [
140
- /* @__PURE__ */ l(m, {
141
+ /* @__PURE__ */ u(h, {
141
142
  label: "Filter field " + (n + 1),
142
143
  value: e.field,
143
- options: v.map((e) => e.ref),
144
+ options: y.map((e) => e.ref),
144
145
  first: "Select field",
145
146
  onChange: (e) => r({
146
147
  field: e,
147
148
  value: ""
148
149
  })
149
150
  }),
150
- /* @__PURE__ */ l(m, {
151
+ /* @__PURE__ */ u(h, {
151
152
  label: "Operator " + (n + 1),
152
153
  value: e.op,
153
154
  options: t,
154
155
  onChange: (e) => r({ op: e })
155
156
  }),
156
- !e.op.startsWith("IS ") && /* @__PURE__ */ l(p, {
157
+ !e.op.startsWith("IS ") && /* @__PURE__ */ u(m, {
157
158
  label: "Filter value " + (n + 1),
158
- children: /* @__PURE__ */ l("input", {
159
+ children: /* @__PURE__ */ u("input", {
159
160
  className: "rounded border border-border-default bg-bg-surface px-2 py-1 text-sm text-text-primary",
160
161
  value: e.value,
161
162
  onChange: (e) => r({ value: e.target.value })
162
163
  })
163
164
  }),
164
- /* @__PURE__ */ l("button", {
165
+ /* @__PURE__ */ u("button", {
165
166
  type: "button",
166
- className: f,
167
+ className: p,
167
168
  "aria-label": "Remove filter " + (n + 1),
168
- onClick: () => g({ filters: s.filters.filter((e, t) => t !== n) }),
169
+ onClick: () => _({ filters: s.filters.filter((e, t) => t !== n) }),
169
170
  children: "Remove"
170
171
  })
171
172
  ]
172
173
  }, n);
173
174
  }),
174
- /* @__PURE__ */ l("button", {
175
+ /* @__PURE__ */ u("button", {
175
176
  type: "button",
176
- className: f,
177
- disabled: !v.length,
178
- onClick: () => g({ filters: [...s.filters, {
177
+ className: p,
178
+ disabled: !y.length,
179
+ onClick: () => _({ filters: [...s.filters, {
179
180
  field: "",
180
181
  op: "=",
181
182
  value: ""
@@ -184,25 +185,25 @@ function h({ sources: o, value: s, onChange: h }) {
184
185
  })
185
186
  ]
186
187
  }),
187
- /* @__PURE__ */ u("fieldset", {
188
+ /* @__PURE__ */ d("fieldset", {
188
189
  className: "space-y-2",
189
190
  children: [
190
- /* @__PURE__ */ l("legend", {
191
+ /* @__PURE__ */ u("legend", {
191
192
  className: "font-medium",
192
193
  children: "Aggregates"
193
194
  }),
194
195
  s.aggregates.map((t, r) => {
195
- let i = (e) => g({
196
+ let i = (e) => _({
196
197
  aggregates: s.aggregates.map((t, n) => n === r ? {
197
198
  ...t,
198
199
  ...e
199
200
  } : t),
200
201
  sort: ""
201
202
  });
202
- return /* @__PURE__ */ u("div", {
203
+ return /* @__PURE__ */ d("div", {
203
204
  className: "flex flex-wrap items-end gap-2",
204
205
  children: [
205
- /* @__PURE__ */ l(m, {
206
+ /* @__PURE__ */ u(h, {
206
207
  label: "Function " + (r + 1),
207
208
  value: t.fn,
208
209
  options: e,
@@ -211,18 +212,18 @@ function h({ sources: o, value: s, onChange: h }) {
211
212
  field: e === "COUNT" ? "*" : ""
212
213
  })
213
214
  }),
214
- /* @__PURE__ */ l(m, {
215
+ /* @__PURE__ */ u(h, {
215
216
  label: "Aggregate field " + (r + 1),
216
217
  value: t.field,
217
218
  first: "Select field",
218
- options: [...t.fn === "COUNT" ? ["*"] : [], ...v.filter((e) => n(t.fn, e.type)).map((e) => e.ref)],
219
+ options: [...t.fn === "COUNT" ? ["*"] : [], ...y.filter((e) => n(t.fn, e.type)).map((e) => e.ref)],
219
220
  onChange: (e) => i({ field: e })
220
221
  }),
221
- /* @__PURE__ */ l("button", {
222
+ /* @__PURE__ */ u("button", {
222
223
  type: "button",
223
- className: f,
224
+ className: p,
224
225
  "aria-label": "Remove aggregate " + (r + 1),
225
- onClick: () => g({
226
+ onClick: () => _({
226
227
  aggregates: s.aggregates.filter((e, t) => t !== r),
227
228
  sort: ""
228
229
  }),
@@ -231,10 +232,10 @@ function h({ sources: o, value: s, onChange: h }) {
231
232
  ]
232
233
  }, r);
233
234
  }),
234
- /* @__PURE__ */ l("button", {
235
+ /* @__PURE__ */ u("button", {
235
236
  type: "button",
236
- className: f,
237
- onClick: () => g({ aggregates: [...s.aggregates, {
237
+ className: p,
238
+ onClick: () => _({ aggregates: [...s.aggregates, {
238
239
  fn: "COUNT",
239
240
  field: "*"
240
241
  }] }),
@@ -242,42 +243,42 @@ function h({ sources: o, value: s, onChange: h }) {
242
243
  })
243
244
  ]
244
245
  }),
245
- /* @__PURE__ */ u("fieldset", { children: [/* @__PURE__ */ l("legend", {
246
+ /* @__PURE__ */ d("fieldset", { children: [/* @__PURE__ */ u("legend", {
246
247
  className: "font-medium",
247
248
  children: "Group by"
248
- }), /* @__PURE__ */ l("div", {
249
+ }), /* @__PURE__ */ u("div", {
249
250
  className: "mt-1 flex flex-wrap gap-3",
250
- children: v.map((e) => /* @__PURE__ */ u("label", {
251
+ children: y.map((e) => /* @__PURE__ */ d("label", {
251
252
  className: "text-sm",
252
253
  children: [
253
- /* @__PURE__ */ l("input", {
254
+ /* @__PURE__ */ u("input", {
254
255
  type: "checkbox",
255
256
  checked: s.groups.includes(e.ref),
256
257
  "aria-label": "Group by " + e.ref,
257
- onChange: (t) => S(e.ref, t.target.checked)
258
+ onChange: (t) => C(e.ref, t.target.checked)
258
259
  }),
259
260
  " ",
260
261
  e.ref
261
262
  ]
262
263
  }, e.ref))
263
264
  })] }),
264
- /* @__PURE__ */ u("div", {
265
+ /* @__PURE__ */ d("div", {
265
266
  className: "flex flex-wrap gap-3",
266
- children: [/* @__PURE__ */ l(m, {
267
+ children: [/* @__PURE__ */ u(h, {
267
268
  label: "Sort by",
268
269
  value: s.sort,
269
270
  first: "None",
270
- options: a(s).filter((e, t) => t >= s.fields.length || v.some((e) => e.ref === s.fields[t])),
271
- onChange: (e) => g({ sort: e })
272
- }), s.sort && /* @__PURE__ */ l(m, {
271
+ options: a(s).filter((e, t) => t >= s.fields.length || y.some((e) => e.ref === s.fields[t])),
272
+ onChange: (e) => _({ sort: e })
273
+ }), s.sort && /* @__PURE__ */ u(h, {
273
274
  label: "Direction",
274
275
  value: s.direction,
275
276
  options: ["ASC", "DESC"],
276
- onChange: (e) => g({ direction: e })
277
+ onChange: (e) => _({ direction: e })
277
278
  })]
278
279
  })
279
280
  ] })
280
281
  ]
281
282
  });
282
283
  }
283
- export { p as Control, h as VisualBuilder, d as controlClass };
284
+ export { m as Control, g as VisualBuilder, f as controlClass };