@burdenoff/microfe-bigconsole 2026.924.1 → 2026.924.3
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/BigConsoleRoutes.js +137 -138
- package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
- package/dist/bigconsole/assistant/previewController.js +10 -10
- package/dist/bigconsole/assistant/useAssistantPanelShowsPreview.js +25 -0
- package/dist/bigconsole/assistant/useAssistantPanelShowsPreview.js.map +1 -0
- package/dist/bigconsole/components/DrilldownDashboardRenderer.js +17 -17
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +32 -32
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +52 -52
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +7 -7
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +53 -0
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js.map +1 -0
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +60 -60
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +21 -21
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +36 -36
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +38 -38
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +121 -121
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +22 -22
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +53 -53
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +47 -47
- package/dist/bigconsole/components/dashboard/index.js +1 -0
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -29
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +48 -48
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +103 -103
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
- package/dist/bigconsole/components/overview/DashboardGuide.js +214 -0
- package/dist/bigconsole/components/overview/DashboardGuide.js.map +1 -0
- package/dist/bigconsole/components/overview/DataHealthCard.js +97 -0
- package/dist/bigconsole/components/overview/DataHealthCard.js.map +1 -0
- package/dist/bigconsole/components/overview/OverviewQuickActions.js +32 -0
- package/dist/bigconsole/components/overview/OverviewQuickActions.js.map +1 -0
- package/dist/bigconsole/components/overview/OverviewStatCard.js +57 -0
- package/dist/bigconsole/components/overview/OverviewStatCard.js.map +1 -0
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +107 -0
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js.map +1 -0
- package/dist/bigconsole/components/overview/dashboardGuideSteps.js +119 -0
- package/dist/bigconsole/components/overview/dashboardGuideSteps.js.map +1 -0
- package/dist/bigconsole/components/overview/index.js +8 -0
- package/dist/bigconsole/components/overview/overviewModel.js +119 -0
- package/dist/bigconsole/components/overview/overviewModel.js.map +1 -0
- package/dist/bigconsole/components/overview/useOverviewData.js +48 -0
- package/dist/bigconsole/components/overview/useOverviewData.js.map +1 -0
- package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
- package/dist/bigconsole/components/parser/ImportParserDialog.js +127 -127
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
- package/dist/bigconsole/components/preview/AiPreviewContent.js +5 -5
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +62 -61
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +82 -81
- package/dist/bigconsole/components/preview/AiPreviewPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +13 -13
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +70 -70
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +28 -28
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +25 -25
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
- package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +21 -21
- package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
- package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +10 -10
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +68 -68
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/pages/AdminPage.js +136 -136
- package/dist/bigconsole/pages/DashboardBuilderPage.js +10 -10
- package/dist/bigconsole/pages/DashboardViewPage.js +61 -61
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +327 -348
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +5 -5
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +10 -10
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +83 -83
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +11 -11
- package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
- package/dist/bigconsole/pages/InsightsPage.js +315 -315
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/OverviewPage.js +244 -0
- package/dist/bigconsole/pages/OverviewPage.js.map +1 -0
- package/dist/bigconsole/pages/ParserBuilderPage.js +5 -5
- package/dist/bigconsole/pages/ParserViewPage.js +98 -98
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +8 -8
- package/dist/bigconsole/pages/PipelineViewPage.js +46 -46
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +80 -80
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +70 -70
- package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
- package/dist/bigconsole/pages/WorkflowViewPage.js +200 -200
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +78 -78
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +34 -34
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +79 -79
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
- package/dist/bigconsole/utils/createDialogParam.js +14 -0
- package/dist/bigconsole/utils/createDialogParam.js.map +1 -0
- package/dist/generated/global-operations.js +1 -1
- package/dist/generated/wspace-operations.js +285 -222
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/shared/hooks/useTr.js +10 -7
- package/dist/shared/hooks/useTr.js.map +1 -1
- package/package.json +1 -1
- package/dist/bigconsole/pages/HomePage.js +0 -318
- package/dist/bigconsole/pages/HomePage.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect as e, useMemo as t, useState as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import { useI18n as a } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
4
4
|
//#region src/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.tsx
|
|
5
5
|
var o = (e) => ({
|
|
6
6
|
bgPrimary: e ? "#1f2937" : "#ffffff",
|
|
@@ -17,7 +17,7 @@ var o = (e) => ({
|
|
|
17
17
|
backdropBg: "rgba(0, 0, 0, 0.5)"
|
|
18
18
|
});
|
|
19
19
|
function s({ filter: s, onSave: c, onClose: l }) {
|
|
20
|
-
let { t: u } =
|
|
20
|
+
let { t: u } = a(), [d, f] = n(s?.name || ""), [p, m] = n(s?.type || "CATEGORY"), [h, g] = n(s?.isRequired || !1), [_, v] = n(s?.config?.options || [{
|
|
21
21
|
value: "",
|
|
22
22
|
label: ""
|
|
23
23
|
}]), [y, b] = n(s?.config?.placeholder || ""), [x, S] = n(!1);
|
|
@@ -79,7 +79,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
79
79
|
isRequired: h
|
|
80
80
|
});
|
|
81
81
|
}, A = d.trim() !== "" && (p !== "CATEGORY" || _.some((e) => e.value && e.label));
|
|
82
|
-
return /* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ r("div", {
|
|
83
83
|
style: {
|
|
84
84
|
position: "fixed",
|
|
85
85
|
top: 0,
|
|
@@ -96,7 +96,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
96
96
|
isolation: "isolate"
|
|
97
97
|
},
|
|
98
98
|
onClick: l,
|
|
99
|
-
children: /* @__PURE__ */
|
|
99
|
+
children: /* @__PURE__ */ i("div", {
|
|
100
100
|
style: {
|
|
101
101
|
width: "100%",
|
|
102
102
|
maxWidth: "min(480px, calc(100vw - 2rem))",
|
|
@@ -109,7 +109,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
109
109
|
},
|
|
110
110
|
onClick: (e) => e.stopPropagation(),
|
|
111
111
|
children: [
|
|
112
|
-
/* @__PURE__ */
|
|
112
|
+
/* @__PURE__ */ i("div", {
|
|
113
113
|
style: {
|
|
114
114
|
padding: "16px 20px",
|
|
115
115
|
borderBottom: `1px solid ${C.borderDefault}`,
|
|
@@ -118,7 +118,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
118
118
|
justifyContent: "space-between",
|
|
119
119
|
backgroundColor: C.bgPrimary
|
|
120
120
|
},
|
|
121
|
-
children: [/* @__PURE__ */
|
|
121
|
+
children: [/* @__PURE__ */ r("h3", {
|
|
122
122
|
style: {
|
|
123
123
|
margin: 0,
|
|
124
124
|
fontSize: "16px",
|
|
@@ -126,7 +126,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
126
126
|
color: C.textPrimary
|
|
127
127
|
},
|
|
128
128
|
children: w ? u("bigconsole.filters.editor.title.edit", "Edit Filter") : u("bigconsole.filters.editor.title.add", "Add Filter")
|
|
129
|
-
}), /* @__PURE__ */
|
|
129
|
+
}), /* @__PURE__ */ r("button", {
|
|
130
130
|
onClick: l,
|
|
131
131
|
style: {
|
|
132
132
|
background: "none",
|
|
@@ -139,7 +139,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
139
139
|
children: "×"
|
|
140
140
|
})]
|
|
141
141
|
}),
|
|
142
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ i("div", {
|
|
143
143
|
style: {
|
|
144
144
|
padding: "20px",
|
|
145
145
|
overflowY: "auto",
|
|
@@ -147,9 +147,9 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
147
147
|
backgroundColor: C.bgPrimary
|
|
148
148
|
},
|
|
149
149
|
children: [
|
|
150
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ i("div", {
|
|
151
151
|
style: { marginBottom: "16px" },
|
|
152
|
-
children: [/* @__PURE__ */
|
|
152
|
+
children: [/* @__PURE__ */ r("label", {
|
|
153
153
|
style: {
|
|
154
154
|
display: "block",
|
|
155
155
|
marginBottom: "6px",
|
|
@@ -158,7 +158,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
158
158
|
color: C.textPrimary
|
|
159
159
|
},
|
|
160
160
|
children: u("bigconsole.filters.editor.field.name.label", "Filter Name *")
|
|
161
|
-
}), /* @__PURE__ */
|
|
161
|
+
}), /* @__PURE__ */ r("input", {
|
|
162
162
|
type: "text",
|
|
163
163
|
value: d,
|
|
164
164
|
onChange: (e) => f(e.target.value),
|
|
@@ -175,9 +175,9 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
175
175
|
}
|
|
176
176
|
})]
|
|
177
177
|
}),
|
|
178
|
-
!w && /* @__PURE__ */
|
|
178
|
+
!w && /* @__PURE__ */ i("div", {
|
|
179
179
|
style: { marginBottom: "16px" },
|
|
180
|
-
children: [/* @__PURE__ */
|
|
180
|
+
children: [/* @__PURE__ */ r("label", {
|
|
181
181
|
style: {
|
|
182
182
|
display: "block",
|
|
183
183
|
marginBottom: "8px",
|
|
@@ -186,13 +186,13 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
186
186
|
color: C.textPrimary
|
|
187
187
|
},
|
|
188
188
|
children: u("bigconsole.filters.editor.field.type.label", "Filter Type *")
|
|
189
|
-
}), /* @__PURE__ */
|
|
189
|
+
}), /* @__PURE__ */ r("div", {
|
|
190
190
|
style: {
|
|
191
191
|
display: "grid",
|
|
192
192
|
gridTemplateColumns: "repeat(2, 1fr)",
|
|
193
193
|
gap: "10px"
|
|
194
194
|
},
|
|
195
|
-
children: T.map((e) => /* @__PURE__ */
|
|
195
|
+
children: T.map((e) => /* @__PURE__ */ i("button", {
|
|
196
196
|
onClick: () => m(e.value),
|
|
197
197
|
type: "button",
|
|
198
198
|
style: {
|
|
@@ -205,14 +205,14 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
205
205
|
transition: "all 0.2s ease",
|
|
206
206
|
minHeight: "60px"
|
|
207
207
|
},
|
|
208
|
-
children: [/* @__PURE__ */
|
|
208
|
+
children: [/* @__PURE__ */ r("div", {
|
|
209
209
|
style: {
|
|
210
210
|
fontWeight: 500,
|
|
211
211
|
fontSize: "13px",
|
|
212
212
|
color: C.textPrimary
|
|
213
213
|
},
|
|
214
214
|
children: e.label
|
|
215
|
-
}), /* @__PURE__ */
|
|
215
|
+
}), /* @__PURE__ */ r("div", {
|
|
216
216
|
style: {
|
|
217
217
|
fontSize: "11px",
|
|
218
218
|
color: C.textSecondary,
|
|
@@ -224,9 +224,9 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
224
224
|
}, e.value))
|
|
225
225
|
})]
|
|
226
226
|
}),
|
|
227
|
-
p === "CATEGORY" && /* @__PURE__ */
|
|
227
|
+
p === "CATEGORY" && /* @__PURE__ */ i("div", {
|
|
228
228
|
style: { marginBottom: "16px" },
|
|
229
|
-
children: [/* @__PURE__ */
|
|
229
|
+
children: [/* @__PURE__ */ r("label", {
|
|
230
230
|
style: {
|
|
231
231
|
display: "block",
|
|
232
232
|
marginBottom: "8px",
|
|
@@ -235,20 +235,20 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
235
235
|
color: C.textPrimary
|
|
236
236
|
},
|
|
237
237
|
children: u("bigconsole.filters.editor.field.options.label", "Options")
|
|
238
|
-
}), /* @__PURE__ */
|
|
238
|
+
}), /* @__PURE__ */ i("div", {
|
|
239
239
|
style: {
|
|
240
240
|
display: "flex",
|
|
241
241
|
flexDirection: "column",
|
|
242
242
|
gap: "8px"
|
|
243
243
|
},
|
|
244
|
-
children: [_.map((e, t) => /* @__PURE__ */
|
|
244
|
+
children: [_.map((e, t) => /* @__PURE__ */ i("div", {
|
|
245
245
|
style: {
|
|
246
246
|
display: "flex",
|
|
247
247
|
gap: "8px",
|
|
248
248
|
alignItems: "center"
|
|
249
249
|
},
|
|
250
250
|
children: [
|
|
251
|
-
/* @__PURE__ */
|
|
251
|
+
/* @__PURE__ */ r("input", {
|
|
252
252
|
type: "text",
|
|
253
253
|
value: e.value,
|
|
254
254
|
onChange: (e) => O(t, "value", e.target.value),
|
|
@@ -264,7 +264,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
264
264
|
color: C.textPrimary
|
|
265
265
|
}
|
|
266
266
|
}),
|
|
267
|
-
/* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ r("input", {
|
|
268
268
|
type: "text",
|
|
269
269
|
value: e.label,
|
|
270
270
|
onChange: (e) => O(t, "label", e.target.value),
|
|
@@ -280,7 +280,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
280
280
|
color: C.textPrimary
|
|
281
281
|
}
|
|
282
282
|
}),
|
|
283
|
-
_.length > 1 && /* @__PURE__ */
|
|
283
|
+
_.length > 1 && /* @__PURE__ */ r("button", {
|
|
284
284
|
type: "button",
|
|
285
285
|
onClick: () => D(t),
|
|
286
286
|
style: {
|
|
@@ -295,7 +295,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
295
295
|
children: u("bigconsole.filters.editor.field.options.remove", "Remove")
|
|
296
296
|
})
|
|
297
297
|
]
|
|
298
|
-
}, t)), /* @__PURE__ */
|
|
298
|
+
}, t)), /* @__PURE__ */ r("button", {
|
|
299
299
|
type: "button",
|
|
300
300
|
onClick: E,
|
|
301
301
|
style: {
|
|
@@ -311,9 +311,9 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
311
311
|
})]
|
|
312
312
|
})]
|
|
313
313
|
}),
|
|
314
|
-
(p === "TEXT_SEARCH" || p === "CATEGORY") && /* @__PURE__ */
|
|
314
|
+
(p === "TEXT_SEARCH" || p === "CATEGORY") && /* @__PURE__ */ i("div", {
|
|
315
315
|
style: { marginBottom: "16px" },
|
|
316
|
-
children: [/* @__PURE__ */
|
|
316
|
+
children: [/* @__PURE__ */ r("label", {
|
|
317
317
|
style: {
|
|
318
318
|
display: "block",
|
|
319
319
|
marginBottom: "8px",
|
|
@@ -322,7 +322,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
322
322
|
color: C.textPrimary
|
|
323
323
|
},
|
|
324
324
|
children: u("bigconsole.filters.editor.field.placeholder.label", "Placeholder Text")
|
|
325
|
-
}), /* @__PURE__ */
|
|
325
|
+
}), /* @__PURE__ */ r("input", {
|
|
326
326
|
type: "text",
|
|
327
327
|
value: y,
|
|
328
328
|
onChange: (e) => b(e.target.value),
|
|
@@ -339,16 +339,16 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
339
339
|
}
|
|
340
340
|
})]
|
|
341
341
|
}),
|
|
342
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ r("div", {
|
|
343
343
|
style: { marginBottom: "16px" },
|
|
344
|
-
children: /* @__PURE__ */
|
|
344
|
+
children: /* @__PURE__ */ i("label", {
|
|
345
345
|
style: {
|
|
346
346
|
display: "flex",
|
|
347
347
|
alignItems: "center",
|
|
348
348
|
gap: "8px",
|
|
349
349
|
cursor: "pointer"
|
|
350
350
|
},
|
|
351
|
-
children: [/* @__PURE__ */
|
|
351
|
+
children: [/* @__PURE__ */ r("input", {
|
|
352
352
|
type: "checkbox",
|
|
353
353
|
checked: h,
|
|
354
354
|
onChange: (e) => g(e.target.checked),
|
|
@@ -356,7 +356,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
356
356
|
width: "16px",
|
|
357
357
|
height: "16px"
|
|
358
358
|
}
|
|
359
|
-
}), /* @__PURE__ */
|
|
359
|
+
}), /* @__PURE__ */ r("span", {
|
|
360
360
|
style: {
|
|
361
361
|
fontSize: "13px",
|
|
362
362
|
color: C.textPrimary
|
|
@@ -367,7 +367,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
367
367
|
})
|
|
368
368
|
]
|
|
369
369
|
}),
|
|
370
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ i("div", {
|
|
371
371
|
style: {
|
|
372
372
|
padding: "16px 20px",
|
|
373
373
|
borderTop: `1px solid ${C.borderDefault}`,
|
|
@@ -376,7 +376,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
376
376
|
gap: "12px",
|
|
377
377
|
backgroundColor: C.bgPrimary
|
|
378
378
|
},
|
|
379
|
-
children: [/* @__PURE__ */
|
|
379
|
+
children: [/* @__PURE__ */ r("button", {
|
|
380
380
|
type: "button",
|
|
381
381
|
onClick: l,
|
|
382
382
|
style: {
|
|
@@ -389,7 +389,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
389
389
|
color: C.textSecondary
|
|
390
390
|
},
|
|
391
391
|
children: u("bigconsole.filters.editor.action.cancel", "Cancel")
|
|
392
|
-
}), /* @__PURE__ */
|
|
392
|
+
}), /* @__PURE__ */ r("button", {
|
|
393
393
|
type: "button",
|
|
394
394
|
onClick: k,
|
|
395
395
|
disabled: !A,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SEMANTIC_COLORS as e } from "../../../utils/semanticTokens.js";
|
|
2
2
|
import { useEffect as t, useRef as n, useState as r } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
|
+
import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
5
5
|
//#region src/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.tsx
|
|
6
6
|
function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, onDeletePreset: d, disabled: f = !1 }) {
|
|
7
|
-
let { t: p } =
|
|
7
|
+
let { t: p } = o(), [m, h] = r(!1), [g, _] = r(!1), [v, y] = r(""), [b, x] = r(""), S = n(null), C = s.find((e) => e.id === c);
|
|
8
8
|
t(() => {
|
|
9
9
|
function e(e) {
|
|
10
10
|
S.current && !S.current.contains(e.target) && (h(!1), _(!1));
|
|
@@ -16,13 +16,13 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
16
16
|
}, T = (e, t) => {
|
|
17
17
|
e.stopPropagation(), window.confirm(p("bigconsole.filters.presets.deleteConfirm", "Are you sure you want to delete this preset?")) && d(t);
|
|
18
18
|
};
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ a("div", {
|
|
20
20
|
ref: S,
|
|
21
21
|
style: {
|
|
22
22
|
position: "relative",
|
|
23
23
|
display: "inline-block"
|
|
24
24
|
},
|
|
25
|
-
children: [/* @__PURE__ */
|
|
25
|
+
children: [/* @__PURE__ */ a("button", {
|
|
26
26
|
onClick: () => !f && h(!m),
|
|
27
27
|
disabled: f,
|
|
28
28
|
style: {
|
|
@@ -42,13 +42,13 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
42
42
|
maxWidth: "100%",
|
|
43
43
|
justifyContent: "space-between"
|
|
44
44
|
},
|
|
45
|
-
children: [/* @__PURE__ */
|
|
45
|
+
children: [/* @__PURE__ */ a("span", {
|
|
46
46
|
style: {
|
|
47
47
|
display: "flex",
|
|
48
48
|
alignItems: "center",
|
|
49
49
|
gap: "6px"
|
|
50
50
|
},
|
|
51
|
-
children: [/* @__PURE__ */
|
|
51
|
+
children: [/* @__PURE__ */ a("svg", {
|
|
52
52
|
width: "14",
|
|
53
53
|
height: "14",
|
|
54
54
|
viewBox: "0 0 24 24",
|
|
@@ -56,12 +56,12 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
56
56
|
stroke: "currentColor",
|
|
57
57
|
strokeWidth: "2",
|
|
58
58
|
children: [
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ i("path", { d: "M19 21H5a2 2 0 01-2-2V5a2 2 0 012-2h11l5 5v11a2 2 0 01-2 2z" }),
|
|
60
|
+
/* @__PURE__ */ i("polyline", { points: "17,21 17,13 7,13 7,21" }),
|
|
61
|
+
/* @__PURE__ */ i("polyline", { points: "7,3 7,8 15,8" })
|
|
62
62
|
]
|
|
63
63
|
}), C ? C.name : p("bigconsole.filters.presets.buttonLabel", "Presets")]
|
|
64
|
-
}), /* @__PURE__ */
|
|
64
|
+
}), /* @__PURE__ */ i("svg", {
|
|
65
65
|
width: "12",
|
|
66
66
|
height: "12",
|
|
67
67
|
viewBox: "0 0 24 24",
|
|
@@ -72,9 +72,9 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
72
72
|
transform: m ? "rotate(180deg)" : "rotate(0deg)",
|
|
73
73
|
transition: "transform 0.2s ease"
|
|
74
74
|
},
|
|
75
|
-
children: /* @__PURE__ */
|
|
75
|
+
children: /* @__PURE__ */ i("polyline", { points: "6,9 12,15 18,9" })
|
|
76
76
|
})]
|
|
77
|
-
}), m && /* @__PURE__ */
|
|
77
|
+
}), m && /* @__PURE__ */ a("div", {
|
|
78
78
|
style: {
|
|
79
79
|
position: "absolute",
|
|
80
80
|
top: "100%",
|
|
@@ -90,7 +90,7 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
90
90
|
overflow: "hidden"
|
|
91
91
|
},
|
|
92
92
|
children: [
|
|
93
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ a("div", {
|
|
94
94
|
style: {
|
|
95
95
|
padding: "12px 16px",
|
|
96
96
|
borderBottom: `1px solid ${e.borderDefault}`,
|
|
@@ -99,14 +99,14 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
99
99
|
justifyContent: "space-between",
|
|
100
100
|
alignItems: "center"
|
|
101
101
|
},
|
|
102
|
-
children: [/* @__PURE__ */
|
|
102
|
+
children: [/* @__PURE__ */ i("span", {
|
|
103
103
|
style: {
|
|
104
104
|
fontWeight: 600,
|
|
105
105
|
fontSize: "13px",
|
|
106
106
|
color: e.textPrimary
|
|
107
107
|
},
|
|
108
108
|
children: p("bigconsole.filters.presets.header", "Filter Presets")
|
|
109
|
-
}), /* @__PURE__ */
|
|
109
|
+
}), /* @__PURE__ */ i("button", {
|
|
110
110
|
onClick: () => _(!0),
|
|
111
111
|
style: {
|
|
112
112
|
padding: "4px 10px",
|
|
@@ -121,14 +121,14 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
121
121
|
children: p("bigconsole.filters.presets.saveCurrent", "+ Save Current")
|
|
122
122
|
})]
|
|
123
123
|
}),
|
|
124
|
-
g && /* @__PURE__ */
|
|
124
|
+
g && /* @__PURE__ */ a("div", {
|
|
125
125
|
style: {
|
|
126
126
|
padding: "12px 16px",
|
|
127
127
|
borderBottom: `1px solid ${e.borderDefault}`,
|
|
128
128
|
backgroundColor: e.bgSecondary
|
|
129
129
|
},
|
|
130
130
|
children: [
|
|
131
|
-
/* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ i("input", {
|
|
132
132
|
type: "text",
|
|
133
133
|
value: v,
|
|
134
134
|
onChange: (e) => y(e.target.value),
|
|
@@ -146,7 +146,7 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
146
146
|
color: e.textPrimary
|
|
147
147
|
}
|
|
148
148
|
}),
|
|
149
|
-
/* @__PURE__ */
|
|
149
|
+
/* @__PURE__ */ i("input", {
|
|
150
150
|
type: "text",
|
|
151
151
|
value: b,
|
|
152
152
|
onChange: (e) => x(e.target.value),
|
|
@@ -163,13 +163,13 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
163
163
|
color: e.textPrimary
|
|
164
164
|
}
|
|
165
165
|
}),
|
|
166
|
-
/* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ a("div", {
|
|
167
167
|
style: {
|
|
168
168
|
display: "flex",
|
|
169
169
|
gap: "8px",
|
|
170
170
|
justifyContent: "flex-end"
|
|
171
171
|
},
|
|
172
|
-
children: [/* @__PURE__ */
|
|
172
|
+
children: [/* @__PURE__ */ i("button", {
|
|
173
173
|
onClick: () => {
|
|
174
174
|
_(!1), y(""), x("");
|
|
175
175
|
},
|
|
@@ -183,7 +183,7 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
183
183
|
color: e.textSecondary
|
|
184
184
|
},
|
|
185
185
|
children: p("bigconsole.filters.presets.cancel", "Cancel")
|
|
186
|
-
}), /* @__PURE__ */
|
|
186
|
+
}), /* @__PURE__ */ i("button", {
|
|
187
187
|
onClick: w,
|
|
188
188
|
disabled: !v.trim(),
|
|
189
189
|
style: {
|
|
@@ -201,12 +201,12 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
201
201
|
})
|
|
202
202
|
]
|
|
203
203
|
}),
|
|
204
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ a("div", {
|
|
205
205
|
style: {
|
|
206
206
|
maxHeight: "300px",
|
|
207
207
|
overflowY: "auto"
|
|
208
208
|
},
|
|
209
|
-
children: [s.map((t) => /* @__PURE__ */
|
|
209
|
+
children: [s.map((t) => /* @__PURE__ */ a("div", {
|
|
210
210
|
onClick: () => {
|
|
211
211
|
l(t.id), h(!1);
|
|
212
212
|
},
|
|
@@ -227,9 +227,9 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
227
227
|
c !== t.id && (e.currentTarget.style.backgroundColor = "transparent");
|
|
228
228
|
},
|
|
229
229
|
children: [
|
|
230
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ a("div", {
|
|
231
231
|
style: { flex: 1 },
|
|
232
|
-
children: [/* @__PURE__ */
|
|
232
|
+
children: [/* @__PURE__ */ a("div", {
|
|
233
233
|
style: {
|
|
234
234
|
fontSize: "13px",
|
|
235
235
|
fontWeight: 500,
|
|
@@ -238,7 +238,7 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
238
238
|
alignItems: "center",
|
|
239
239
|
gap: "6px"
|
|
240
240
|
},
|
|
241
|
-
children: [t.name, t.isDefault && /* @__PURE__ */
|
|
241
|
+
children: [t.name, t.isDefault && /* @__PURE__ */ i("span", {
|
|
242
242
|
style: {
|
|
243
243
|
fontSize: "10px",
|
|
244
244
|
padding: "2px 6px",
|
|
@@ -248,7 +248,7 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
248
248
|
},
|
|
249
249
|
children: p("bigconsole.filters.presets.defaultBadge", "Default")
|
|
250
250
|
})]
|
|
251
|
-
}), t.description && /* @__PURE__ */
|
|
251
|
+
}), t.description && /* @__PURE__ */ i("div", {
|
|
252
252
|
style: {
|
|
253
253
|
fontSize: "11px",
|
|
254
254
|
color: e.textTertiary,
|
|
@@ -257,7 +257,7 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
257
257
|
children: t.description
|
|
258
258
|
})]
|
|
259
259
|
}),
|
|
260
|
-
!t.isDefault && !t.id.startsWith("preset-last") && !t.id.startsWith("preset-this") && /* @__PURE__ */
|
|
260
|
+
!t.isDefault && !t.id.startsWith("preset-last") && !t.id.startsWith("preset-this") && /* @__PURE__ */ i("button", {
|
|
261
261
|
onClick: (e) => T(e, t.id),
|
|
262
262
|
style: {
|
|
263
263
|
padding: "4px",
|
|
@@ -277,17 +277,17 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
277
277
|
t.currentTarget.style.backgroundColor = "transparent", t.currentTarget.style.color = e.textTertiary;
|
|
278
278
|
},
|
|
279
279
|
title: p("bigconsole.filters.presets.deletePresetTitle", "Delete preset"),
|
|
280
|
-
children: /* @__PURE__ */
|
|
280
|
+
children: /* @__PURE__ */ a("svg", {
|
|
281
281
|
width: "14",
|
|
282
282
|
height: "14",
|
|
283
283
|
viewBox: "0 0 24 24",
|
|
284
284
|
fill: "none",
|
|
285
285
|
stroke: "currentColor",
|
|
286
286
|
strokeWidth: "2",
|
|
287
|
-
children: [/* @__PURE__ */
|
|
287
|
+
children: [/* @__PURE__ */ i("polyline", { points: "3,6 5,6 21,6" }), /* @__PURE__ */ i("path", { d: "M19,6v14a2,2,0,01-2,2H7a2,2,0,01-2-2V6m3,0V4a2,2,0,012-2h4a2,2,0,012,2v2" })]
|
|
288
288
|
})
|
|
289
289
|
}),
|
|
290
|
-
c === t.id && /* @__PURE__ */
|
|
290
|
+
c === t.id && /* @__PURE__ */ i("svg", {
|
|
291
291
|
width: "16",
|
|
292
292
|
height: "16",
|
|
293
293
|
viewBox: "0 0 24 24",
|
|
@@ -295,10 +295,10 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
295
295
|
stroke: e.actionPrimaryBg,
|
|
296
296
|
strokeWidth: "3",
|
|
297
297
|
style: { marginLeft: "8px" },
|
|
298
|
-
children: /* @__PURE__ */
|
|
298
|
+
children: /* @__PURE__ */ i("polyline", { points: "20,6 9,17 4,12" })
|
|
299
299
|
})
|
|
300
300
|
]
|
|
301
|
-
}, t.id)), s.length === 0 && /* @__PURE__ */
|
|
301
|
+
}, t.id)), s.length === 0 && /* @__PURE__ */ i("div", {
|
|
302
302
|
style: {
|
|
303
303
|
padding: "20px 16px",
|
|
304
304
|
textAlign: "center",
|