@burdenoff/microfe-bigconsole 2026.1008.11 → 2026.1008.13
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.d.ts.map +1 -1
- package/dist/bigconsole/BigConsoleRoutes.js +136 -127
- package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
- package/dist/bigconsole/assistant/assistantProduct.d.ts.map +1 -1
- package/dist/bigconsole/assistant/assistantProduct.js +3 -1
- package/dist/bigconsole/assistant/assistantProduct.js.map +1 -1
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +44 -44
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +36 -36
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +59 -59
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +15 -15
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +41 -41
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +34 -34
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +110 -110
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +21 -21
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +91 -91
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -101
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +31 -31
- package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.js +15 -15
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +46 -46
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +37 -37
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js +66 -66
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
- package/dist/bigconsole/components/datasink/DataSinkCard.js +29 -29
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +47 -47
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +91 -91
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
- package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
- package/dist/bigconsole/components/parser/ImportParserDialog.js +120 -120
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +10 -10
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +27 -27
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +30 -30
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.d.ts.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +507 -499
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +4 -4
- 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 +4 -4
- 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/components/workflow/WorkflowOpenGuard.js +15 -15
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +15 -15
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +9 -9
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +67 -67
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +15 -0
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +34 -0
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js.map +1 -0
- package/dist/bigconsole/hooks/useDrilldown.js +3 -3
- package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
- package/dist/bigconsole/pages/AdminPage.js +130 -130
- package/dist/bigconsole/pages/DashboardBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.js +72 -60
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +1 -1
- package/dist/bigconsole/pages/DataSinkAlertsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DataSinkAlertsPage.js +30 -23
- package/dist/bigconsole/pages/DataSinkAlertsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +273 -264
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +1 -1
- package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
- package/dist/bigconsole/pages/InsightsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +279 -265
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/OverviewPage.js +47 -47
- package/dist/bigconsole/pages/OverviewPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +229 -213
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +97 -97
- package/dist/bigconsole/pages/PipelineBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +256 -214
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
- package/dist/bigconsole/pages/PipelinesPage.js +88 -88
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +179 -173
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
- package/dist/bigconsole/pages/WorkflowViewPage.js +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +141 -141
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
- 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/store/widgetStore.d.ts +12 -0
- package/dist/bigconsole/store/widgetStore.d.ts.map +1 -1
- package/dist/bigconsole/store/widgetStore.js +3 -1
- package/dist/bigconsole/store/widgetStore.js.map +1 -1
- package/dist/bigconsole/utils/formDirty.d.ts +83 -0
- package/dist/bigconsole/utils/formDirty.d.ts.map +1 -0
- package/dist/bigconsole/utils/formDirty.js +23 -0
- package/dist/bigconsole/utils/formDirty.js.map +1 -0
- package/dist/bigconsole/utils/insightsDraft.d.ts +30 -0
- package/dist/bigconsole/utils/insightsDraft.d.ts.map +1 -0
- package/dist/bigconsole/utils/insightsDraft.js +10 -0
- package/dist/bigconsole/utils/insightsDraft.js.map +1 -0
- package/dist/bigconsole/utils/layoutBaseline.d.ts +131 -0
- package/dist/bigconsole/utils/layoutBaseline.d.ts.map +1 -0
- package/dist/bigconsole/utils/layoutBaseline.js +98 -0
- package/dist/bigconsole/utils/layoutBaseline.js.map +1 -0
- package/dist/bigconsole/utils/widgetFormDirty.d.ts +17 -0
- package/dist/bigconsole/utils/widgetFormDirty.d.ts.map +1 -0
- package/dist/bigconsole/utils/widgetFormDirty.js +15 -0
- package/dist/bigconsole/utils/widgetFormDirty.js.map +1 -0
- package/dist/translations/en.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e, { getEventStatusColor as t, getEventStatusIcon as n, getEventStatusLabel as r } from "../../../hooks/useEventLogs.js";
|
|
2
2
|
import { memo as i, useCallback as a, useState as o } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
4
|
+
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
5
5
|
//#region src/bigconsole/components/widgets/event-logs/EventLogViewer.tsx
|
|
6
6
|
var d = {
|
|
7
7
|
container: {
|
|
@@ -165,27 +165,27 @@ function p(e, t) {
|
|
|
165
165
|
return i < 1 ? t("bigconsole.widget.eventLog.time.justNow", "Just now") : i < 60 ? t("bigconsole.widget.eventLog.time.minutesAgo", "{{count}}m ago", { count: i }) : a < 24 ? t("bigconsole.widget.eventLog.time.hoursAgo", "{{count}}h ago", { count: a }) : o < 7 ? t("bigconsole.widget.eventLog.time.daysAgo", "{{count}}d ago", { count: o }) : n.toLocaleDateString();
|
|
166
166
|
}
|
|
167
167
|
var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpand: m }) {
|
|
168
|
-
let { t: h } =
|
|
169
|
-
return /* @__PURE__ */
|
|
170
|
-
/* @__PURE__ */
|
|
168
|
+
let { t: h } = s(), g = e.status === "FAILED";
|
|
169
|
+
return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ u("tr", { children: [
|
|
170
|
+
/* @__PURE__ */ l("td", {
|
|
171
171
|
style: d.td,
|
|
172
|
-
children: /* @__PURE__ */
|
|
172
|
+
children: /* @__PURE__ */ l("button", {
|
|
173
173
|
type: "button",
|
|
174
174
|
onClick: m,
|
|
175
175
|
"aria-expanded": o,
|
|
176
176
|
"aria-label": o ? "Hide event payload" : "Show event payload",
|
|
177
177
|
style: d.expandButton,
|
|
178
|
-
children: /* @__PURE__ */
|
|
178
|
+
children: /* @__PURE__ */ l("span", {
|
|
179
179
|
"aria-hidden": "true",
|
|
180
180
|
children: o ? "▾" : "▸"
|
|
181
181
|
})
|
|
182
182
|
})
|
|
183
183
|
}),
|
|
184
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ l("td", {
|
|
185
185
|
style: d.td,
|
|
186
|
-
children: /* @__PURE__ */
|
|
186
|
+
children: /* @__PURE__ */ u("div", {
|
|
187
187
|
style: d.statusCell,
|
|
188
|
-
children: [/* @__PURE__ */
|
|
188
|
+
children: [/* @__PURE__ */ l("span", { children: n(e.status) }), /* @__PURE__ */ l("span", {
|
|
189
189
|
style: {
|
|
190
190
|
...d.statusBadge,
|
|
191
191
|
backgroundColor: `${t(e.status)}20`,
|
|
@@ -195,12 +195,12 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
|
|
|
195
195
|
})]
|
|
196
196
|
})
|
|
197
197
|
}),
|
|
198
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ u("td", {
|
|
199
199
|
style: d.td,
|
|
200
|
-
children: [/* @__PURE__ */
|
|
200
|
+
children: [/* @__PURE__ */ l("div", {
|
|
201
201
|
style: d.eventName,
|
|
202
202
|
children: e.eventName
|
|
203
|
-
}), e.actionName && /* @__PURE__ */
|
|
203
|
+
}), e.actionName && /* @__PURE__ */ l("div", {
|
|
204
204
|
style: {
|
|
205
205
|
fontSize: "11px",
|
|
206
206
|
color: "var(--color-text-muted)"
|
|
@@ -208,22 +208,22 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
|
|
|
208
208
|
children: h("bigconsole.widget.eventLog.actionLabel", "Action: {{action}}", { action: e.actionName ?? "" })
|
|
209
209
|
})]
|
|
210
210
|
}),
|
|
211
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ l("td", {
|
|
212
212
|
style: d.td,
|
|
213
|
-
children: /* @__PURE__ */
|
|
213
|
+
children: /* @__PURE__ */ l("div", {
|
|
214
214
|
style: d.timeAgo,
|
|
215
215
|
children: p(e.createdAt, h)
|
|
216
216
|
})
|
|
217
217
|
}),
|
|
218
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ l("td", {
|
|
219
219
|
style: d.td,
|
|
220
|
-
children: e.webhookUrl ? /* @__PURE__ */
|
|
220
|
+
children: e.webhookUrl ? /* @__PURE__ */ l("span", {
|
|
221
221
|
style: {
|
|
222
222
|
fontSize: "12px",
|
|
223
223
|
color: "var(--color-text-muted)"
|
|
224
224
|
},
|
|
225
225
|
children: f(e.webhookUrl)
|
|
226
|
-
}) : /* @__PURE__ */
|
|
226
|
+
}) : /* @__PURE__ */ l("span", {
|
|
227
227
|
style: {
|
|
228
228
|
fontSize: "var(--font-size-body-sm)",
|
|
229
229
|
color: "var(--color-text-muted)"
|
|
@@ -231,9 +231,9 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
|
|
|
231
231
|
children: "—"
|
|
232
232
|
})
|
|
233
233
|
}),
|
|
234
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ l("td", {
|
|
235
235
|
style: d.td,
|
|
236
|
-
children: g && /* @__PURE__ */
|
|
236
|
+
children: g && /* @__PURE__ */ l("button", {
|
|
237
237
|
type: "button",
|
|
238
238
|
onClick: i,
|
|
239
239
|
disabled: a,
|
|
@@ -241,34 +241,34 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
|
|
|
241
241
|
children: a ? h("bigconsole.widget.eventLog.retrying", "Retrying…") : h("bigconsole.widget.eventLog.retry", "Retry")
|
|
242
242
|
})
|
|
243
243
|
})
|
|
244
|
-
] }), o && /* @__PURE__ */
|
|
244
|
+
] }), o && /* @__PURE__ */ l("tr", {
|
|
245
245
|
style: d.detailRow,
|
|
246
|
-
children: /* @__PURE__ */
|
|
246
|
+
children: /* @__PURE__ */ l("td", {
|
|
247
247
|
colSpan: 6,
|
|
248
248
|
style: d.td,
|
|
249
|
-
children: /* @__PURE__ */
|
|
249
|
+
children: /* @__PURE__ */ u("div", {
|
|
250
250
|
style: d.detailContent,
|
|
251
251
|
children: [
|
|
252
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ l("strong", { children: h("bigconsole.widget.eventLog.payload", "Payload:") }),
|
|
253
253
|
"\n",
|
|
254
254
|
JSON.stringify(e.payload, null, 2),
|
|
255
|
-
e.errorMessage && /* @__PURE__ */
|
|
255
|
+
e.errorMessage && /* @__PURE__ */ u(c, { children: [
|
|
256
256
|
"\n\n",
|
|
257
|
-
/* @__PURE__ */
|
|
257
|
+
/* @__PURE__ */ l("strong", {
|
|
258
258
|
style: { color: "var(--color-status-error-text)" },
|
|
259
259
|
children: h("bigconsole.widget.eventLog.error", "Error:")
|
|
260
260
|
}),
|
|
261
261
|
"\n",
|
|
262
262
|
e.errorMessage
|
|
263
263
|
] }),
|
|
264
|
-
e.responseCode && /* @__PURE__ */
|
|
264
|
+
e.responseCode && /* @__PURE__ */ u(c, { children: [
|
|
265
265
|
"\n\n",
|
|
266
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ l("strong", { children: h("bigconsole.widget.eventLog.responseCode", "Response Code:") }),
|
|
267
267
|
" ",
|
|
268
268
|
e.responseCode
|
|
269
269
|
] }),
|
|
270
270
|
"\n\n",
|
|
271
|
-
/* @__PURE__ */
|
|
271
|
+
/* @__PURE__ */ l("strong", { children: h("bigconsole.widget.eventLog.attempts", "Attempts:") }),
|
|
272
272
|
" ",
|
|
273
273
|
e.attempts
|
|
274
274
|
]
|
|
@@ -276,7 +276,7 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
|
|
|
276
276
|
})
|
|
277
277
|
})] });
|
|
278
278
|
}), h = i(function({ dashboardId: t, widgetId: n, maxHeight: r = "400px", onRetrySuccess: i }) {
|
|
279
|
-
let { t: f } =
|
|
279
|
+
let { t: f } = s(), [p, h] = o(""), [g, _] = o(/* @__PURE__ */ new Set()), [v, y] = o(null), { logs: b, loading: x, totalCount: S, hasMore: C, loadMore: w, retryDelivery: T, refetch: E } = e({
|
|
280
280
|
dashboardId: t,
|
|
281
281
|
widgetId: n,
|
|
282
282
|
status: p || void 0
|
|
@@ -290,59 +290,59 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
|
|
|
290
290
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
291
291
|
});
|
|
292
292
|
}, []);
|
|
293
|
-
return /* @__PURE__ */
|
|
293
|
+
return /* @__PURE__ */ u("div", {
|
|
294
294
|
style: d.container,
|
|
295
295
|
"data-testid": "event-log-viewer",
|
|
296
|
-
children: [/* @__PURE__ */
|
|
296
|
+
children: [/* @__PURE__ */ u("div", {
|
|
297
297
|
style: d.header,
|
|
298
|
-
children: [/* @__PURE__ */
|
|
298
|
+
children: [/* @__PURE__ */ l("div", { children: /* @__PURE__ */ l("span", {
|
|
299
299
|
style: d.totalCount,
|
|
300
300
|
children: f("bigconsole.widget.eventLog.eventCount", "{{count}} events", { count: S })
|
|
301
|
-
}) }), /* @__PURE__ */
|
|
301
|
+
}) }), /* @__PURE__ */ u("div", {
|
|
302
302
|
style: d.headerActions,
|
|
303
303
|
children: [
|
|
304
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ l("label", {
|
|
305
305
|
htmlFor: "event-log-status-filter",
|
|
306
306
|
className: "sr-only",
|
|
307
307
|
children: "Filter events by status"
|
|
308
308
|
}),
|
|
309
|
-
/* @__PURE__ */
|
|
309
|
+
/* @__PURE__ */ u("select", {
|
|
310
310
|
id: "event-log-status-filter",
|
|
311
311
|
value: p,
|
|
312
312
|
onChange: (e) => h(e.target.value),
|
|
313
313
|
style: d.filterSelect,
|
|
314
314
|
children: [
|
|
315
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ l("option", {
|
|
316
316
|
value: "",
|
|
317
317
|
children: f("bigconsole.widget.eventLog.filter.all", "All Status")
|
|
318
318
|
}),
|
|
319
|
-
/* @__PURE__ */
|
|
319
|
+
/* @__PURE__ */ l("option", {
|
|
320
320
|
value: "DELIVERED",
|
|
321
321
|
children: f("bigconsole.widget.eventLog.filter.delivered", "Delivered")
|
|
322
322
|
}),
|
|
323
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ l("option", {
|
|
324
324
|
value: "FAILED",
|
|
325
325
|
children: f("bigconsole.widget.eventLog.filter.failed", "Failed")
|
|
326
326
|
}),
|
|
327
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ l("option", {
|
|
328
328
|
value: "PENDING",
|
|
329
329
|
children: f("bigconsole.widget.eventLog.filter.pending", "Pending")
|
|
330
330
|
}),
|
|
331
|
-
/* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ l("option", {
|
|
332
332
|
value: "PROCESSING",
|
|
333
333
|
children: f("bigconsole.widget.eventLog.filter.processing", "Processing")
|
|
334
334
|
}),
|
|
335
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ l("option", {
|
|
336
336
|
value: "RETRYING",
|
|
337
337
|
children: f("bigconsole.widget.eventLog.filter.retrying", "Retrying")
|
|
338
338
|
}),
|
|
339
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ l("option", {
|
|
340
340
|
value: "IGNORED",
|
|
341
341
|
children: f("bigconsole.widget.eventLog.filter.ignored", "Ignored")
|
|
342
342
|
})
|
|
343
343
|
]
|
|
344
344
|
}),
|
|
345
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ l("button", {
|
|
346
346
|
type: "button",
|
|
347
347
|
onClick: () => E(),
|
|
348
348
|
style: d.refreshButton,
|
|
@@ -350,58 +350,58 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
|
|
|
350
350
|
})
|
|
351
351
|
]
|
|
352
352
|
})]
|
|
353
|
-
}), x && b.length === 0 ? /* @__PURE__ */
|
|
353
|
+
}), x && b.length === 0 ? /* @__PURE__ */ l("div", {
|
|
354
354
|
style: d.emptyState,
|
|
355
355
|
role: "status",
|
|
356
|
-
children: /* @__PURE__ */
|
|
356
|
+
children: /* @__PURE__ */ l("p", {
|
|
357
357
|
style: d.emptyTitle,
|
|
358
358
|
children: f("bigconsole.widget.eventLog.loading", "Loading...")
|
|
359
359
|
})
|
|
360
|
-
}) : b.length === 0 ? /* @__PURE__ */
|
|
360
|
+
}) : b.length === 0 ? /* @__PURE__ */ u("div", {
|
|
361
361
|
style: d.emptyState,
|
|
362
362
|
role: "status",
|
|
363
|
-
children: [/* @__PURE__ */
|
|
363
|
+
children: [/* @__PURE__ */ l("p", {
|
|
364
364
|
style: d.emptyTitle,
|
|
365
365
|
children: f("bigconsole.widget.eventLog.emptyTitle", "No events found")
|
|
366
|
-
}), /* @__PURE__ */
|
|
366
|
+
}), /* @__PURE__ */ l("p", {
|
|
367
367
|
style: {
|
|
368
368
|
fontSize: "var(--font-size-body-sm)",
|
|
369
369
|
marginTop: "8px"
|
|
370
370
|
},
|
|
371
371
|
children: f("bigconsole.widget.eventLog.emptyHint", "Events will appear here when actions are triggered.")
|
|
372
372
|
})]
|
|
373
|
-
}) : /* @__PURE__ */
|
|
373
|
+
}) : /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("div", {
|
|
374
374
|
style: {
|
|
375
375
|
...d.tableContainer,
|
|
376
376
|
maxHeight: r,
|
|
377
377
|
overflowY: "auto"
|
|
378
378
|
},
|
|
379
|
-
children: /* @__PURE__ */
|
|
379
|
+
children: /* @__PURE__ */ u("table", {
|
|
380
380
|
style: d.table,
|
|
381
|
-
children: [/* @__PURE__ */
|
|
381
|
+
children: [/* @__PURE__ */ l("thead", {
|
|
382
382
|
style: d.tableHeader,
|
|
383
|
-
children: /* @__PURE__ */
|
|
384
|
-
/* @__PURE__ */
|
|
383
|
+
children: /* @__PURE__ */ u("tr", { children: [
|
|
384
|
+
/* @__PURE__ */ l("th", { style: {
|
|
385
385
|
...d.th,
|
|
386
386
|
width: "40px"
|
|
387
387
|
} }),
|
|
388
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ l("th", {
|
|
389
389
|
style: d.th,
|
|
390
390
|
children: f("bigconsole.widget.eventLog.column.status", "Status")
|
|
391
391
|
}),
|
|
392
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ l("th", {
|
|
393
393
|
style: d.th,
|
|
394
394
|
children: f("bigconsole.widget.eventLog.column.event", "Event")
|
|
395
395
|
}),
|
|
396
|
-
/* @__PURE__ */
|
|
396
|
+
/* @__PURE__ */ l("th", {
|
|
397
397
|
style: d.th,
|
|
398
398
|
children: f("bigconsole.widget.eventLog.column.time", "Time")
|
|
399
399
|
}),
|
|
400
|
-
/* @__PURE__ */
|
|
400
|
+
/* @__PURE__ */ l("th", {
|
|
401
401
|
style: d.th,
|
|
402
402
|
children: f("bigconsole.widget.eventLog.column.webhook", "Webhook")
|
|
403
403
|
}),
|
|
404
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ l("th", {
|
|
405
405
|
style: {
|
|
406
406
|
...d.th,
|
|
407
407
|
width: "80px"
|
|
@@ -409,7 +409,7 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
|
|
|
409
409
|
children: f("bigconsole.widget.eventLog.column.action", "Action")
|
|
410
410
|
})
|
|
411
411
|
] })
|
|
412
|
-
}), /* @__PURE__ */
|
|
412
|
+
}), /* @__PURE__ */ l("tbody", { children: b.map((e) => /* @__PURE__ */ l(m, {
|
|
413
413
|
log: e,
|
|
414
414
|
onRetry: () => D(e),
|
|
415
415
|
retrying: v === e.id,
|
|
@@ -417,7 +417,7 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
|
|
|
417
417
|
onToggleExpand: () => O(e.id)
|
|
418
418
|
}, e.id)) })]
|
|
419
419
|
})
|
|
420
|
-
}), C && /* @__PURE__ */
|
|
420
|
+
}), C && /* @__PURE__ */ l("button", {
|
|
421
421
|
onClick: w,
|
|
422
422
|
style: d.loadMoreButton,
|
|
423
423
|
children: f("bigconsole.widget.eventLog.loadMore", "Load More")
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { memo as e, useCallback as t, useMemo as n, useState as r } from "react";
|
|
2
2
|
import { AlertCircle as i, CheckCircle as a, Loader2 as o, RotateCcw as s, Send as c, Settings as l } from "lucide-react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { useI18n as u } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
4
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
5
5
|
//#region src/bigconsole/components/widgets/form/FormWidget.tsx
|
|
6
6
|
function p(e, t, n) {
|
|
7
7
|
let r = String(e ?? ""), i = e == null || r.trim() === "";
|
|
@@ -211,7 +211,7 @@ var g = {
|
|
|
211
211
|
textAlign: "center"
|
|
212
212
|
}
|
|
213
213
|
}, _ = e(function({ widget: e, data: _ = {}, onDrilldown: v, onSubmit: y }) {
|
|
214
|
-
let { t: b } =
|
|
214
|
+
let { t: b } = u(), x = {
|
|
215
215
|
fields: [],
|
|
216
216
|
layout: "vertical",
|
|
217
217
|
submitLabel: "Submit",
|
|
@@ -292,7 +292,7 @@ var g = {
|
|
|
292
292
|
...n ? g.inputError : {}
|
|
293
293
|
};
|
|
294
294
|
switch (e.type) {
|
|
295
|
-
case "textarea": return /* @__PURE__ */
|
|
295
|
+
case "textarea": return /* @__PURE__ */ d("textarea", {
|
|
296
296
|
id: e.name,
|
|
297
297
|
name: e.name,
|
|
298
298
|
value: String(t ?? ""),
|
|
@@ -310,7 +310,7 @@ var g = {
|
|
|
310
310
|
});
|
|
311
311
|
case "select": {
|
|
312
312
|
let n = C.fieldOptions[e.name] ?? e.options ?? [];
|
|
313
|
-
return /* @__PURE__ */
|
|
313
|
+
return /* @__PURE__ */ f("select", {
|
|
314
314
|
id: e.name,
|
|
315
315
|
name: e.name,
|
|
316
316
|
value: String(t ?? ""),
|
|
@@ -322,19 +322,19 @@ var g = {
|
|
|
322
322
|
},
|
|
323
323
|
onChange: (t) => F(e.name, t.target.value),
|
|
324
324
|
onBlur: () => I(e.name),
|
|
325
|
-
children: [/* @__PURE__ */
|
|
325
|
+
children: [/* @__PURE__ */ d("option", {
|
|
326
326
|
value: "",
|
|
327
327
|
children: e.placeholder || b("bigconsole.widget.form.selectPlaceholder", "Select {{label}}...", { label: e.label ?? "" })
|
|
328
|
-
}), n.map((e) => /* @__PURE__ */
|
|
328
|
+
}), n.map((e) => /* @__PURE__ */ d("option", {
|
|
329
329
|
value: e.value,
|
|
330
330
|
disabled: e.disabled,
|
|
331
331
|
children: e.label
|
|
332
332
|
}, e.value))]
|
|
333
333
|
});
|
|
334
334
|
}
|
|
335
|
-
case "checkbox": return /* @__PURE__ */
|
|
335
|
+
case "checkbox": return /* @__PURE__ */ f("div", {
|
|
336
336
|
style: g.checkbox,
|
|
337
|
-
children: [/* @__PURE__ */
|
|
337
|
+
children: [/* @__PURE__ */ d("input", {
|
|
338
338
|
type: "checkbox",
|
|
339
339
|
id: e.name,
|
|
340
340
|
name: e.name,
|
|
@@ -343,7 +343,7 @@ var g = {
|
|
|
343
343
|
style: g.checkboxInput,
|
|
344
344
|
onChange: (t) => F(e.name, t.target.checked),
|
|
345
345
|
onBlur: () => I(e.name)
|
|
346
|
-
}), /* @__PURE__ */
|
|
346
|
+
}), /* @__PURE__ */ d("label", {
|
|
347
347
|
htmlFor: e.name,
|
|
348
348
|
style: {
|
|
349
349
|
fontSize: "14px",
|
|
@@ -352,15 +352,15 @@ var g = {
|
|
|
352
352
|
children: e.label
|
|
353
353
|
})]
|
|
354
354
|
});
|
|
355
|
-
case "radio": return /* @__PURE__ */
|
|
355
|
+
case "radio": return /* @__PURE__ */ d("div", {
|
|
356
356
|
style: {
|
|
357
357
|
display: "flex",
|
|
358
358
|
flexDirection: "column",
|
|
359
359
|
gap: "8px"
|
|
360
360
|
},
|
|
361
|
-
children: (C.fieldOptions[e.name] ?? e.options ?? []).map((n) => /* @__PURE__ */
|
|
361
|
+
children: (C.fieldOptions[e.name] ?? e.options ?? []).map((n) => /* @__PURE__ */ f("div", {
|
|
362
362
|
style: g.checkbox,
|
|
363
|
-
children: [/* @__PURE__ */
|
|
363
|
+
children: [/* @__PURE__ */ d("input", {
|
|
364
364
|
type: "radio",
|
|
365
365
|
id: `${e.name}-${n.value}`,
|
|
366
366
|
name: e.name,
|
|
@@ -370,7 +370,7 @@ var g = {
|
|
|
370
370
|
style: g.checkboxInput,
|
|
371
371
|
onChange: (t) => F(e.name, t.target.value),
|
|
372
372
|
onBlur: () => I(e.name)
|
|
373
|
-
}), /* @__PURE__ */
|
|
373
|
+
}), /* @__PURE__ */ d("label", {
|
|
374
374
|
htmlFor: `${e.name}-${n.value}`,
|
|
375
375
|
style: {
|
|
376
376
|
fontSize: "14px",
|
|
@@ -380,12 +380,12 @@ var g = {
|
|
|
380
380
|
})]
|
|
381
381
|
}, n.value))
|
|
382
382
|
});
|
|
383
|
-
case "hidden": return /* @__PURE__ */
|
|
383
|
+
case "hidden": return /* @__PURE__ */ d("input", {
|
|
384
384
|
type: "hidden",
|
|
385
385
|
name: e.name,
|
|
386
386
|
value: String(t ?? "")
|
|
387
387
|
});
|
|
388
|
-
default: return /* @__PURE__ */
|
|
388
|
+
default: return /* @__PURE__ */ d("input", {
|
|
389
389
|
type: e.type,
|
|
390
390
|
id: e.name,
|
|
391
391
|
name: e.name,
|
|
@@ -413,20 +413,20 @@ var g = {
|
|
|
413
413
|
C,
|
|
414
414
|
b
|
|
415
415
|
]);
|
|
416
|
-
if (S.fields.length === 0) return /* @__PURE__ */
|
|
416
|
+
if (S.fields.length === 0) return /* @__PURE__ */ f("div", {
|
|
417
417
|
style: g.emptyState,
|
|
418
418
|
children: [
|
|
419
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ d(l, { style: {
|
|
420
420
|
width: "48px",
|
|
421
421
|
height: "48px",
|
|
422
422
|
marginBottom: "16px",
|
|
423
423
|
opacity: .5
|
|
424
424
|
} }),
|
|
425
|
-
/* @__PURE__ */
|
|
425
|
+
/* @__PURE__ */ d("p", {
|
|
426
426
|
style: { fontSize: "14px" },
|
|
427
427
|
children: b("bigconsole.widget.form.configureTitle", "Configure Form Fields")
|
|
428
428
|
}),
|
|
429
|
-
/* @__PURE__ */
|
|
429
|
+
/* @__PURE__ */ d("p", {
|
|
430
430
|
style: {
|
|
431
431
|
fontSize: "12px",
|
|
432
432
|
marginTop: "4px"
|
|
@@ -440,45 +440,45 @@ var g = {
|
|
|
440
440
|
gridTemplateColumns: `repeat(${S.columns || 2}, 1fr)`,
|
|
441
441
|
gap: "16px"
|
|
442
442
|
} : {};
|
|
443
|
-
return /* @__PURE__ */
|
|
443
|
+
return /* @__PURE__ */ f("div", {
|
|
444
444
|
style: g.container,
|
|
445
|
-
children: [/* @__PURE__ */
|
|
445
|
+
children: [/* @__PURE__ */ f("form", {
|
|
446
446
|
onSubmit: L,
|
|
447
447
|
style: {
|
|
448
448
|
...g.form,
|
|
449
449
|
...B
|
|
450
450
|
},
|
|
451
|
-
children: [N && S.successMessage && /* @__PURE__ */
|
|
451
|
+
children: [N && S.successMessage && /* @__PURE__ */ f("div", {
|
|
452
452
|
style: {
|
|
453
453
|
...g.successMessage,
|
|
454
454
|
gridColumn: "1 / -1"
|
|
455
455
|
},
|
|
456
|
-
children: [/* @__PURE__ */
|
|
456
|
+
children: [/* @__PURE__ */ d(a, { style: {
|
|
457
457
|
width: "18px",
|
|
458
458
|
height: "18px"
|
|
459
459
|
} }), S.successMessage]
|
|
460
460
|
}), S.fields.map((e) => {
|
|
461
461
|
if (e.type === "hidden") return z(e);
|
|
462
462
|
let t = k.has(e.name) ? D[e.name] : null;
|
|
463
|
-
return /* @__PURE__ */
|
|
463
|
+
return /* @__PURE__ */ f("div", {
|
|
464
464
|
style: g.fieldWrapper,
|
|
465
465
|
children: [
|
|
466
|
-
e.type !== "checkbox" && /* @__PURE__ */
|
|
466
|
+
e.type !== "checkbox" && /* @__PURE__ */ f("label", {
|
|
467
467
|
htmlFor: e.name,
|
|
468
468
|
style: g.label,
|
|
469
|
-
children: [e.label, e.required && /* @__PURE__ */
|
|
469
|
+
children: [e.label, e.required && /* @__PURE__ */ d("span", {
|
|
470
470
|
style: g.required,
|
|
471
471
|
children: "*"
|
|
472
472
|
})]
|
|
473
473
|
}),
|
|
474
474
|
z(e),
|
|
475
|
-
e.helpText && !t && /* @__PURE__ */
|
|
475
|
+
e.helpText && !t && /* @__PURE__ */ d("p", {
|
|
476
476
|
style: g.helpText,
|
|
477
477
|
children: e.helpText
|
|
478
478
|
}),
|
|
479
|
-
t && /* @__PURE__ */
|
|
479
|
+
t && /* @__PURE__ */ f("p", {
|
|
480
480
|
style: g.errorText,
|
|
481
|
-
children: [/* @__PURE__ */
|
|
481
|
+
children: [/* @__PURE__ */ d(i, { style: {
|
|
482
482
|
width: "14px",
|
|
483
483
|
height: "14px"
|
|
484
484
|
} }), t]
|
|
@@ -486,9 +486,9 @@ var g = {
|
|
|
486
486
|
]
|
|
487
487
|
}, e.name);
|
|
488
488
|
})]
|
|
489
|
-
}), /* @__PURE__ */
|
|
489
|
+
}), /* @__PURE__ */ f("div", {
|
|
490
490
|
style: g.footer,
|
|
491
|
-
children: [S.showReset !== !1 && /* @__PURE__ */
|
|
491
|
+
children: [S.showReset !== !1 && /* @__PURE__ */ f("button", {
|
|
492
492
|
type: "button",
|
|
493
493
|
onClick: R,
|
|
494
494
|
disabled: j,
|
|
@@ -497,11 +497,11 @@ var g = {
|
|
|
497
497
|
...g.resetButton,
|
|
498
498
|
opacity: j ? .6 : 1
|
|
499
499
|
},
|
|
500
|
-
children: [/* @__PURE__ */
|
|
500
|
+
children: [/* @__PURE__ */ d(s, { style: {
|
|
501
501
|
width: "16px",
|
|
502
502
|
height: "16px"
|
|
503
503
|
} }), S.resetLabel || b("bigconsole.widget.form.reset", "Reset")]
|
|
504
|
-
}), /* @__PURE__ */
|
|
504
|
+
}), /* @__PURE__ */ f("button", {
|
|
505
505
|
type: "submit",
|
|
506
506
|
onClick: L,
|
|
507
507
|
disabled: j,
|
|
@@ -510,11 +510,11 @@ var g = {
|
|
|
510
510
|
...g.submitButton,
|
|
511
511
|
opacity: j ? .6 : 1
|
|
512
512
|
},
|
|
513
|
-
children: [j ? /* @__PURE__ */
|
|
513
|
+
children: [j ? /* @__PURE__ */ d(o, { style: {
|
|
514
514
|
width: "16px",
|
|
515
515
|
height: "16px",
|
|
516
516
|
animation: "spin 1s linear infinite"
|
|
517
|
-
} }) : /* @__PURE__ */
|
|
517
|
+
} }) : /* @__PURE__ */ d(c, { style: {
|
|
518
518
|
width: "16px",
|
|
519
519
|
height: "16px"
|
|
520
520
|
} }), S.submitLabel || b("bigconsole.widget.form.submit", "Submit")]
|