@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.
- package/dist/bigconsole/asof/AsOfControl.js +2 -2
- package/dist/bigconsole/components/dashboard/DashboardCommentsDrawer.js +107 -106
- package/dist/bigconsole/components/dashboard/DashboardGalleryCard.d.ts +34 -0
- package/dist/bigconsole/components/dashboard/DashboardGalleryCard.js +123 -0
- package/dist/bigconsole/components/dashboard/DashboardReviewDialog.js +1 -1
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +19 -35
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +119 -116
- package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +172 -170
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +210 -208
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +97 -97
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +92 -92
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js +149 -149
- package/dist/bigconsole/components/datasink/AnomalyDetectorPanel.js +54 -54
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -37
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +4 -4
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +130 -129
- package/dist/bigconsole/components/datasink/SetupStateBadge.js +24 -33
- package/dist/bigconsole/components/datasink/SinkWorkflowLinkForm.js +38 -38
- package/dist/bigconsole/components/explore/CreateQueryWidget.js +57 -56
- package/dist/bigconsole/components/explore/SqlDraftEditor.js +140 -140
- package/dist/bigconsole/components/explore/VisualBuilder.js +85 -84
- package/dist/bigconsole/components/explore/queryAccess/GrantsPanel.js +168 -167
- package/dist/bigconsole/components/explore/queryAccess/QueryAccessAdmin.js +2 -2
- package/dist/bigconsole/components/explore/queryAccess/RelationEditor.js +118 -117
- package/dist/bigconsole/components/insights/BoardLintPanel.js +2 -2
- package/dist/bigconsole/components/insights/OutlierSpottingDialog.js +123 -123
- package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +2 -2
- package/dist/bigconsole/components/narrative/NarrativePanel.js +1 -1
- package/dist/bigconsole/components/overview/DataHealthCard.js +3 -0
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +3 -0
- package/dist/bigconsole/components/parser/ParserStatusBadge.js +25 -28
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +23 -22
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +15 -26
- package/dist/bigconsole/components/reconcile/KpiReconcileDialog.js +24 -24
- package/dist/bigconsole/components/settings/WidgetCatalogSection.js +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +188 -187
- package/dist/bigconsole/components/widgets/FilterNotAppliedNotice.js +1 -1
- package/dist/bigconsole/components/widgets/UnsupportedDataSourceNotice.js +1 -1
- package/dist/bigconsole/components/widgets/WidgetCompareView.js +3 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.js +1 -1
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +45 -44
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +151 -147
- package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +48 -47
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +139 -138
- package/dist/bigconsole/components/widgets/form/FormWidget.js +149 -148
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +80 -77
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +58 -56
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +75 -73
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +86 -85
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +80 -77
- package/dist/bigconsole/components/widgets/retention/RetentionView.js +1 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.js +214 -211
- package/dist/bigconsole/components/widgets/table/TablePagination.js +59 -58
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +140 -138
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +74 -66
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +48 -48
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +28 -37
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +69 -69
- package/dist/bigconsole/hooks/useDashboardListQuery.d.ts +22 -0
- package/dist/bigconsole/hooks/useDashboardListQuery.js +39 -0
- package/dist/bigconsole/pages/AdminPage.js +147 -146
- package/dist/bigconsole/pages/DashboardViewPage.js +2 -0
- package/dist/bigconsole/pages/DashboardsPage.js +638 -855
- package/dist/bigconsole/pages/DataParsersPage.js +5 -0
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +4 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +263 -261
- package/dist/bigconsole/pages/DataSinksPage.js +210 -186
- package/dist/bigconsole/pages/InsightsPage.js +386 -383
- package/dist/bigconsole/pages/ParserBuilderPage.js +413 -413
- package/dist/bigconsole/pages/ParserViewPage.js +2 -0
- package/dist/bigconsole/pages/PipelineBuilderPage.js +279 -276
- package/dist/bigconsole/pages/PipelineViewPage.js +3 -0
- package/dist/bigconsole/pages/PipelinesPage.js +198 -165
- package/dist/bigconsole/pages/SettingsPage.js +160 -160
- package/dist/bigconsole/pages/WidgetDemoPage.js +2 -0
- package/dist/bigconsole/pages/WorkflowViewPage.js +5 -0
- package/dist/bigconsole/pages/WorkflowsPage.js +144 -123
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +1 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +123 -122
- package/dist/bigconsole/utils/dashboardGallery.d.ts +84 -0
- package/dist/bigconsole/utils/dashboardGallery.js +93 -0
- package/dist/bigconsole/utils/statusTone.d.ts +17 -0
- package/dist/bigconsole/utils/statusTone.js +44 -0
- 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 {
|
|
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
|
|
6
|
-
function
|
|
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__ */
|
|
9
|
+
return /* @__PURE__ */ d("div", {
|
|
9
10
|
className: "flex flex-col gap-1 text-sm text-text-secondary",
|
|
10
|
-
children: [/* @__PURE__ */
|
|
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
|
|
17
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
20
|
-
className:
|
|
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__ */
|
|
24
|
+
children: [r !== void 0 && /* @__PURE__ */ u("option", {
|
|
24
25
|
value: "",
|
|
25
26
|
children: r
|
|
26
|
-
}), n.map((e) => /* @__PURE__ */
|
|
27
|
+
}), n.map((e) => /* @__PURE__ */ u("option", { children: e }, e))]
|
|
27
28
|
})
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
-
let
|
|
31
|
+
function g({ sources: o, value: s, onChange: g }) {
|
|
32
|
+
let _ = (e) => g({
|
|
32
33
|
...s,
|
|
33
34
|
...e
|
|
34
|
-
}),
|
|
35
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
39
|
+
/* @__PURE__ */ d("div", {
|
|
39
40
|
className: "grid gap-3 sm:grid-cols-2",
|
|
40
|
-
children: [/* @__PURE__ */
|
|
41
|
+
children: [/* @__PURE__ */ u(m, {
|
|
41
42
|
label: "Source",
|
|
42
|
-
children: /* @__PURE__ */
|
|
43
|
-
className:
|
|
43
|
+
children: /* @__PURE__ */ d(c, {
|
|
44
|
+
className: f,
|
|
44
45
|
value: s.source,
|
|
45
|
-
onChange: (e) =>
|
|
46
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
55
|
+
}), s.source && /* @__PURE__ */ u(m, {
|
|
55
56
|
label: "Join source",
|
|
56
|
-
children: /* @__PURE__ */
|
|
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) =>
|
|
60
|
+
onChange: (e) => g({
|
|
60
61
|
...i(s.source),
|
|
61
62
|
join: e.target.value,
|
|
62
|
-
fields: s.fields.filter((e) =>
|
|
63
|
+
fields: s.fields.filter((e) => b.some((t) => t.ref === e))
|
|
63
64
|
}),
|
|
64
|
-
children: [/* @__PURE__ */
|
|
65
|
+
children: [/* @__PURE__ */ u("option", {
|
|
65
66
|
value: "",
|
|
66
67
|
children: "None"
|
|
67
|
-
}), o.filter((e) => e.id !== s.source).map((e) => /* @__PURE__ */
|
|
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__ */
|
|
75
|
+
s.join && /* @__PURE__ */ d("div", {
|
|
75
76
|
className: "flex flex-wrap gap-3",
|
|
76
77
|
children: [
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ u(h, {
|
|
78
79
|
label: "Join type",
|
|
79
80
|
value: s.joinType,
|
|
80
81
|
options: ["INNER", "LEFT"],
|
|
81
|
-
onChange: (e) =>
|
|
82
|
+
onChange: (e) => _({ joinType: e })
|
|
82
83
|
}),
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
+
/* @__PURE__ */ u(h, {
|
|
84
85
|
label: "Left key",
|
|
85
86
|
value: s.leftKey,
|
|
86
|
-
options:
|
|
87
|
+
options: b.map((e) => e.ref),
|
|
87
88
|
first: "Select field",
|
|
88
|
-
onChange: (e) =>
|
|
89
|
+
onChange: (e) => _({
|
|
89
90
|
leftKey: e,
|
|
90
91
|
rightKey: ""
|
|
91
92
|
})
|
|
92
93
|
}),
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ u(h, {
|
|
94
95
|
label: "Right key",
|
|
95
96
|
value: s.rightKey,
|
|
96
|
-
options:
|
|
97
|
+
options: S.map((e) => e.ref),
|
|
97
98
|
first: "Select matching type",
|
|
98
|
-
onChange: (e) =>
|
|
99
|
+
onChange: (e) => _({ rightKey: e })
|
|
99
100
|
})
|
|
100
101
|
]
|
|
101
102
|
}),
|
|
102
|
-
s.source && /* @__PURE__ */
|
|
103
|
-
/* @__PURE__ */
|
|
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__ */
|
|
107
|
+
}), /* @__PURE__ */ u("div", {
|
|
107
108
|
className: "mt-1 flex flex-wrap gap-3",
|
|
108
|
-
children:
|
|
109
|
+
children: v.map((e) => /* @__PURE__ */ d("label", {
|
|
109
110
|
className: "text-sm",
|
|
110
111
|
children: [
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
+
/* @__PURE__ */ u("input", {
|
|
112
113
|
type: "checkbox",
|
|
113
114
|
checked: s.fields.includes(e.ref),
|
|
114
|
-
onChange: (t) =>
|
|
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__ */
|
|
126
|
+
/* @__PURE__ */ d("fieldset", {
|
|
126
127
|
className: "space-y-2",
|
|
127
128
|
children: [
|
|
128
|
-
/* @__PURE__ */
|
|
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) =>
|
|
134
|
+
let r = (e) => _({ filters: s.filters.map((t, r) => r === n ? {
|
|
134
135
|
...t,
|
|
135
136
|
...e
|
|
136
137
|
} : t) });
|
|
137
|
-
return /* @__PURE__ */
|
|
138
|
+
return /* @__PURE__ */ d("div", {
|
|
138
139
|
className: "flex flex-wrap items-end gap-2",
|
|
139
140
|
children: [
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
+
/* @__PURE__ */ u(h, {
|
|
141
142
|
label: "Filter field " + (n + 1),
|
|
142
143
|
value: e.field,
|
|
143
|
-
options:
|
|
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__ */
|
|
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__ */
|
|
157
|
+
!e.op.startsWith("IS ") && /* @__PURE__ */ u(m, {
|
|
157
158
|
label: "Filter value " + (n + 1),
|
|
158
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
165
|
+
/* @__PURE__ */ u("button", {
|
|
165
166
|
type: "button",
|
|
166
|
-
className:
|
|
167
|
+
className: p,
|
|
167
168
|
"aria-label": "Remove filter " + (n + 1),
|
|
168
|
-
onClick: () =>
|
|
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__ */
|
|
175
|
+
/* @__PURE__ */ u("button", {
|
|
175
176
|
type: "button",
|
|
176
|
-
className:
|
|
177
|
-
disabled: !
|
|
178
|
-
onClick: () =>
|
|
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__ */
|
|
188
|
+
/* @__PURE__ */ d("fieldset", {
|
|
188
189
|
className: "space-y-2",
|
|
189
190
|
children: [
|
|
190
|
-
/* @__PURE__ */
|
|
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) =>
|
|
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__ */
|
|
203
|
+
return /* @__PURE__ */ d("div", {
|
|
203
204
|
className: "flex flex-wrap items-end gap-2",
|
|
204
205
|
children: [
|
|
205
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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" ? ["*"] : [], ...
|
|
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__ */
|
|
222
|
+
/* @__PURE__ */ u("button", {
|
|
222
223
|
type: "button",
|
|
223
|
-
className:
|
|
224
|
+
className: p,
|
|
224
225
|
"aria-label": "Remove aggregate " + (r + 1),
|
|
225
|
-
onClick: () =>
|
|
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__ */
|
|
235
|
+
/* @__PURE__ */ u("button", {
|
|
235
236
|
type: "button",
|
|
236
|
-
className:
|
|
237
|
-
onClick: () =>
|
|
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__ */
|
|
246
|
+
/* @__PURE__ */ d("fieldset", { children: [/* @__PURE__ */ u("legend", {
|
|
246
247
|
className: "font-medium",
|
|
247
248
|
children: "Group by"
|
|
248
|
-
}), /* @__PURE__ */
|
|
249
|
+
}), /* @__PURE__ */ u("div", {
|
|
249
250
|
className: "mt-1 flex flex-wrap gap-3",
|
|
250
|
-
children:
|
|
251
|
+
children: y.map((e) => /* @__PURE__ */ d("label", {
|
|
251
252
|
className: "text-sm",
|
|
252
253
|
children: [
|
|
253
|
-
/* @__PURE__ */
|
|
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) =>
|
|
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__ */
|
|
265
|
+
/* @__PURE__ */ d("div", {
|
|
265
266
|
className: "flex flex-wrap gap-3",
|
|
266
|
-
children: [/* @__PURE__ */
|
|
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 ||
|
|
271
|
-
onChange: (e) =>
|
|
272
|
-
}), s.sort && /* @__PURE__ */
|
|
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) =>
|
|
277
|
+
onChange: (e) => _({ direction: e })
|
|
277
278
|
})]
|
|
278
279
|
})
|
|
279
280
|
] })
|
|
280
281
|
]
|
|
281
282
|
});
|
|
282
283
|
}
|
|
283
|
-
export {
|
|
284
|
+
export { m as Control, g as VisualBuilder, f as controlClass };
|