@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
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
|
+
import { memo as t, useCallback as n } from "react";
|
|
3
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
+
//#region src/bigconsole/components/dashboard/DashboardStatusPill.tsx
|
|
5
|
+
var a = {
|
|
6
|
+
PUBLISHED: "var(--color-status-success-bg)",
|
|
7
|
+
DRAFT: "var(--color-text-muted)",
|
|
8
|
+
ARCHIVED: "var(--color-status-warning-bg)"
|
|
9
|
+
};
|
|
10
|
+
function o() {
|
|
11
|
+
let t = e();
|
|
12
|
+
return n((e) => {
|
|
13
|
+
switch (e) {
|
|
14
|
+
case "PUBLISHED": return t("bigconsole.dashboards.status.published", "Published");
|
|
15
|
+
case "ARCHIVED": return t("bigconsole.dashboards.status.archived", "Archived");
|
|
16
|
+
default: return t("bigconsole.dashboards.status.draft", "Draft");
|
|
17
|
+
}
|
|
18
|
+
}, [t]);
|
|
19
|
+
}
|
|
20
|
+
var s = t(function({ status: e, label: t }) {
|
|
21
|
+
return /* @__PURE__ */ i("span", {
|
|
22
|
+
"data-testid": "dashboard-status",
|
|
23
|
+
style: {
|
|
24
|
+
display: "inline-flex",
|
|
25
|
+
alignItems: "center",
|
|
26
|
+
gap: "var(--space-iconGap)",
|
|
27
|
+
padding: "2px 8px",
|
|
28
|
+
borderRadius: "var(--radius-pill)",
|
|
29
|
+
backgroundColor: "var(--color-bg-sunken)",
|
|
30
|
+
border: "1px solid var(--color-border-subtle)",
|
|
31
|
+
fontSize: "10px",
|
|
32
|
+
fontWeight: "var(--font-weight-semibold)",
|
|
33
|
+
textTransform: "uppercase",
|
|
34
|
+
letterSpacing: "0.02em",
|
|
35
|
+
color: "var(--color-text-secondary)",
|
|
36
|
+
whiteSpace: "nowrap"
|
|
37
|
+
},
|
|
38
|
+
children: [/* @__PURE__ */ r("span", {
|
|
39
|
+
"aria-hidden": "true",
|
|
40
|
+
style: {
|
|
41
|
+
width: 6,
|
|
42
|
+
height: 6,
|
|
43
|
+
borderRadius: "50%",
|
|
44
|
+
backgroundColor: a[e],
|
|
45
|
+
flexShrink: 0
|
|
46
|
+
}
|
|
47
|
+
}), t]
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
//#endregion
|
|
51
|
+
export { s as default, o as useDashboardStatusLabel };
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=DashboardStatusPill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardStatusPill.js","names":[],"sources":["../../../../src/bigconsole/components/dashboard/DashboardStatusPill.tsx"],"sourcesContent":["/**\n * DashboardStatusPill\n *\n * Compact lifecycle badge for a dashboard (Draft / Published / Archived).\n * Shared by the Dashboards list and the Overview's recent dashboards so the\n * same state always reads the same way.\n */\n\nimport { type FC, memo, useCallback } from 'react';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport type { DashboardListStatus } from '../../hooks/useDashboardOperations';\n\n/**\n * Lifecycle status of a dashboard.\n *\n * Backed by `Dashboard.status` (DashboardStatus: DRAFT | PUBLISHED | ARCHIVED).\n * Whether a board is a published surface or still a draft is the fact a list of\n * boards is most often scanned for.\n */\nconst DASHBOARD_STATUS_DOT: Record<DashboardListStatus, string> = {\n PUBLISHED: 'var(--color-status-success-bg)',\n DRAFT: 'var(--color-text-muted)',\n ARCHIVED: 'var(--color-status-warning-bg)',\n};\n\n/** Translated label for a dashboard lifecycle status. */\nexport function useDashboardStatusLabel(): (status: DashboardListStatus) => string {\n const tr = useTr();\n return useCallback(\n (status: DashboardListStatus) => {\n switch (status) {\n case 'PUBLISHED':\n return tr('bigconsole.dashboards.status.published', 'Published');\n case 'ARCHIVED':\n return tr('bigconsole.dashboards.status.archived', 'Archived');\n default:\n return tr('bigconsole.dashboards.status.draft', 'Draft');\n }\n },\n [tr]\n );\n}\n\nexport interface DashboardStatusPillProps {\n status: DashboardListStatus;\n label: string;\n}\n\nexport const DashboardStatusPill: FC<DashboardStatusPillProps> = memo(function DashboardStatusPill({ status, label }) {\n return (\n <span\n data-testid=\"dashboard-status\"\n style={{\n display: 'inline-flex',\n alignItems: 'center',\n gap: 'var(--space-iconGap)',\n padding: '2px 8px',\n borderRadius: 'var(--radius-pill)',\n backgroundColor: 'var(--color-bg-sunken)',\n border: '1px solid var(--color-border-subtle)',\n fontSize: '10px',\n fontWeight: 'var(--font-weight-semibold)',\n textTransform: 'uppercase',\n letterSpacing: '0.02em',\n color: 'var(--color-text-secondary)',\n whiteSpace: 'nowrap',\n }}\n >\n <span\n aria-hidden=\"true\"\n style={{\n width: 6,\n height: 6,\n borderRadius: '50%',\n backgroundColor: DASHBOARD_STATUS_DOT[status],\n flexShrink: 0,\n }}\n />\n {label}\n </span>\n );\n});\n\nexport default DashboardStatusPill;\n"],"mappings":";;;;AAmBA,IAAM,IAA4D;CAChE,WAAW;CACX,OAAO;CACP,UAAU;CACX;AAGD,SAAgB,IAAmE;CACjF,IAAM,IAAK,GAAO;AAClB,QAAO,GACJ,MAAgC;AAC/B,UAAQ,GAAR;GACE,KAAK,YACH,QAAO,EAAG,0CAA0C,YAAY;GAClE,KAAK,WACH,QAAO,EAAG,yCAAyC,WAAW;GAChE,QACE,QAAO,EAAG,sCAAsC,QAAQ;;IAG9D,CAAC,EAAG,CACL;;AAQH,IAAa,IAAoD,EAAK,SAA6B,EAAE,WAAQ,YAAS;AACpH,QACE,kBAAC,QAAD;EACE,eAAY;EACZ,OAAO;GACL,SAAS;GACT,YAAY;GACZ,KAAK;GACL,SAAS;GACT,cAAc;GACd,iBAAiB;GACjB,QAAQ;GACR,UAAU;GACV,YAAY;GACZ,eAAe;GACf,eAAe;GACf,OAAO;GACP,YAAY;GACb;YAhBH,CAkBE,kBAAC,QAAD;GACE,eAAY;GACZ,OAAO;IACL,OAAO;IACP,QAAQ;IACR,cAAc;IACd,iBAAiB,EAAqB;IACtC,YAAY;IACb;GACD,CAAA,EACD,EACI;;EAET"}
|
|
@@ -10,15 +10,15 @@ import { memo as a, useCallback as o } from "react";
|
|
|
10
10
|
import { PermissionButton as s } from "@burdenoff/fe-libs/shared/components";
|
|
11
11
|
import { usePermissions as c } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
12
12
|
import { Clipboard as l, Download as u, Eye as d, FileText as f, Image as p, Minus as m, PanelLeft as h, PanelLeftClose as g, Pencil as _, Plus as v, RotateCcw as y, Save as b, Share2 as x, Store as S } from "lucide-react";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
13
|
+
import { Button as C, Spinner as w, Tooltip as T, TooltipContent as E, TooltipProvider as D, TooltipTrigger as O } from "@burdenoff/fe-libs/ui";
|
|
14
|
+
import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
15
|
+
import { useI18n as M } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
16
16
|
//#region src/bigconsole/components/dashboard/DashboardToolbar.tsx
|
|
17
17
|
var N = a(function({ dashboardId: a, title: N, onAddWidget: P, onTogglePalette: F, isPaletteOpen: I = !1, onPaste: L, onSave: R, isSaving: z = !1, onExport: B, onPublishTemplate: V, onExportImage: H, onExportPdf: U, isExportingImage: W = !1, onShare: G }) {
|
|
18
|
-
let { hasPermission: K } = c(), { t: q } =
|
|
18
|
+
let { hasPermission: K } = c(), { t: q } = M(), J = t((e) => e.viewMode === "edit"), Y = t((e) => e.toggleViewMode), X = t((e) => e.zoomLevel), Z = t((e) => e.setZoomLevel), Q = !!e((e) => e.clipboardWidgetId), $ = o(() => {
|
|
19
19
|
Q && L && L();
|
|
20
20
|
}, [Q, L]);
|
|
21
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ A(D, { children: /* @__PURE__ */ j(n, {
|
|
22
22
|
emphasis: "bare",
|
|
23
23
|
padding: "none",
|
|
24
24
|
"aria-label": N ? `Board toolbar — ${N}` : "Board toolbar",
|
|
@@ -26,156 +26,156 @@ var N = a(function({ dashboardId: a, title: N, onAddWidget: P, onTogglePalette:
|
|
|
26
26
|
className: "flex-shrink-0 border-b border-[var(--color-border-subtle)] bg-bg-surface px-4 py-2",
|
|
27
27
|
bodyClassName: "flex flex-wrap items-center justify-between gap-x-4 gap-y-2",
|
|
28
28
|
children: [
|
|
29
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ A("div", {
|
|
30
30
|
className: "flex min-w-0 items-center gap-4",
|
|
31
|
-
children: a && /* @__PURE__ */
|
|
31
|
+
children: a && /* @__PURE__ */ A(i, { dashboardId: a })
|
|
32
32
|
}),
|
|
33
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ j("div", {
|
|
34
34
|
role: "group",
|
|
35
35
|
"aria-label": "Zoom",
|
|
36
36
|
className: "flex min-w-0 items-center gap-1 border-l border-[var(--color-border-subtle)] pl-4",
|
|
37
37
|
children: [
|
|
38
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ j(T, { children: [/* @__PURE__ */ A(O, {
|
|
39
39
|
asChild: !0,
|
|
40
|
-
children: /* @__PURE__ */
|
|
40
|
+
children: /* @__PURE__ */ A(C, {
|
|
41
41
|
variant: "ghost",
|
|
42
42
|
size: "icon-sm",
|
|
43
43
|
onClick: () => Z(Math.max(50, X - 10)),
|
|
44
44
|
disabled: X <= 50,
|
|
45
|
-
children: /* @__PURE__ */
|
|
45
|
+
children: /* @__PURE__ */ A(m, { className: "size-4" })
|
|
46
46
|
})
|
|
47
|
-
}), /* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
47
|
+
}), /* @__PURE__ */ A(E, { children: q("bigconsole.dashboards.toolbar.zoomOut", "Zoom out") })] }),
|
|
48
|
+
/* @__PURE__ */ j("span", {
|
|
49
49
|
className: "text-sm text-text-secondary w-12 text-center",
|
|
50
50
|
children: [X, "%"]
|
|
51
51
|
}),
|
|
52
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ j(T, { children: [/* @__PURE__ */ A(O, {
|
|
53
53
|
asChild: !0,
|
|
54
|
-
children: /* @__PURE__ */
|
|
54
|
+
children: /* @__PURE__ */ A(C, {
|
|
55
55
|
variant: "ghost",
|
|
56
56
|
size: "icon-sm",
|
|
57
57
|
onClick: () => Z(Math.min(200, X + 10)),
|
|
58
58
|
disabled: X >= 200,
|
|
59
|
-
children: /* @__PURE__ */
|
|
59
|
+
children: /* @__PURE__ */ A(v, { className: "size-4" })
|
|
60
60
|
})
|
|
61
|
-
}), /* @__PURE__ */
|
|
62
|
-
/* @__PURE__ */
|
|
61
|
+
}), /* @__PURE__ */ A(E, { children: q("bigconsole.dashboards.toolbar.zoomIn", "Zoom in") })] }),
|
|
62
|
+
/* @__PURE__ */ j(T, { children: [/* @__PURE__ */ A(O, {
|
|
63
63
|
asChild: !0,
|
|
64
|
-
children: /* @__PURE__ */
|
|
64
|
+
children: /* @__PURE__ */ j(C, {
|
|
65
65
|
variant: "ghost",
|
|
66
66
|
size: "sm",
|
|
67
67
|
onClick: () => Z(100),
|
|
68
|
-
children: [/* @__PURE__ */
|
|
68
|
+
children: [/* @__PURE__ */ A(y, { className: "size-3.5 mr-1" }), q("bigconsole.dashboards.toolbar.reset", "Reset")]
|
|
69
69
|
})
|
|
70
|
-
}), /* @__PURE__ */
|
|
70
|
+
}), /* @__PURE__ */ A(E, { children: q("bigconsole.dashboards.toolbar.resetZoomTooltip", "Reset zoom to 100%") })] })
|
|
71
71
|
]
|
|
72
72
|
}),
|
|
73
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ j("div", {
|
|
74
74
|
role: "group",
|
|
75
75
|
"aria-label": "Board actions",
|
|
76
76
|
className: "flex min-w-0 flex-wrap items-center justify-end gap-2 border-l border-[var(--color-border-subtle)] pl-4",
|
|
77
77
|
children: [
|
|
78
|
-
J && /* @__PURE__ */
|
|
79
|
-
F && /* @__PURE__ */
|
|
78
|
+
J && /* @__PURE__ */ j(k, { children: [
|
|
79
|
+
F && /* @__PURE__ */ j(T, { children: [/* @__PURE__ */ A(O, {
|
|
80
80
|
asChild: !0,
|
|
81
|
-
children: /* @__PURE__ */
|
|
81
|
+
children: /* @__PURE__ */ j(C, {
|
|
82
82
|
variant: I ? "secondary" : "outline",
|
|
83
83
|
size: "sm",
|
|
84
84
|
onClick: F,
|
|
85
|
-
children: [
|
|
85
|
+
children: [A(I ? g : h, { className: "size-4" }), q("bigconsole.dashboards.toolbar.widgets", "Widgets")]
|
|
86
86
|
})
|
|
87
|
-
}), /* @__PURE__ */
|
|
88
|
-
/* @__PURE__ */
|
|
87
|
+
}), /* @__PURE__ */ A(E, { children: I ? q("bigconsole.dashboards.toolbar.hidePalette", "Hide widget palette") : q("bigconsole.dashboards.toolbar.showPalette", "Show widget palette for drag & drop") })] }),
|
|
88
|
+
/* @__PURE__ */ j(T, { children: [/* @__PURE__ */ A(O, {
|
|
89
89
|
asChild: !0,
|
|
90
|
-
children: /* @__PURE__ */
|
|
90
|
+
children: /* @__PURE__ */ j(C, {
|
|
91
91
|
variant: "ghost",
|
|
92
92
|
size: "sm",
|
|
93
93
|
onClick: $,
|
|
94
94
|
disabled: !Q,
|
|
95
|
-
children: [/* @__PURE__ */
|
|
95
|
+
children: [/* @__PURE__ */ A(l, { className: "size-4" }), q("bigconsole.dashboards.toolbar.paste", "Paste")]
|
|
96
96
|
})
|
|
97
|
-
}), /* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */
|
|
97
|
+
}), /* @__PURE__ */ A(E, { children: q("bigconsole.dashboards.toolbar.pasteTooltip", "Paste widget from clipboard") })] }),
|
|
98
|
+
/* @__PURE__ */ A(s, {
|
|
99
99
|
permission: r.WIDGET_CREATE,
|
|
100
100
|
deniedBehavior: "hide",
|
|
101
|
-
children: /* @__PURE__ */
|
|
101
|
+
children: /* @__PURE__ */ j(C, {
|
|
102
102
|
size: "sm",
|
|
103
103
|
onClick: P,
|
|
104
|
-
children: [/* @__PURE__ */
|
|
104
|
+
children: [/* @__PURE__ */ A(v, { className: "size-4" }), q("bigconsole.dashboards.toolbar.addWidget", "Add Widget")]
|
|
105
105
|
})
|
|
106
106
|
})
|
|
107
107
|
] }),
|
|
108
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ A(C, {
|
|
109
109
|
variant: J ? "secondary" : "outline",
|
|
110
110
|
size: "sm",
|
|
111
111
|
onClick: Y,
|
|
112
|
-
children: J ? /* @__PURE__ */
|
|
112
|
+
children: J ? /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(d, { className: "size-4" }), q("bigconsole.dashboards.toolbar.preview", "Preview")] }) : /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(_, { className: "size-4" }), q("bigconsole.dashboards.toolbar.edit", "Edit")] })
|
|
113
113
|
}),
|
|
114
|
-
R && /* @__PURE__ */
|
|
114
|
+
R && /* @__PURE__ */ A(C, {
|
|
115
115
|
variant: "outline",
|
|
116
116
|
size: "sm",
|
|
117
117
|
onClick: R,
|
|
118
118
|
disabled: z,
|
|
119
|
-
children: z ? /* @__PURE__ */
|
|
119
|
+
children: z ? /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(w, { className: "size-4" }), q("bigconsole.dashboards.toolbar.saving", "Saving...")] }) : /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(b, { className: "size-4" }), q("bigconsole.dashboards.toolbar.save", "Save")] })
|
|
120
120
|
}),
|
|
121
|
-
G && /* @__PURE__ */
|
|
121
|
+
G && /* @__PURE__ */ A(s, {
|
|
122
122
|
permission: r.DASHBOARD_SHARE,
|
|
123
123
|
deniedBehavior: "hide",
|
|
124
|
-
children: /* @__PURE__ */
|
|
124
|
+
children: /* @__PURE__ */ j(T, { children: [/* @__PURE__ */ A(O, {
|
|
125
125
|
asChild: !0,
|
|
126
|
-
children: /* @__PURE__ */
|
|
126
|
+
children: /* @__PURE__ */ j(C, {
|
|
127
127
|
variant: "outline",
|
|
128
128
|
size: "sm",
|
|
129
129
|
onClick: G,
|
|
130
|
-
children: [/* @__PURE__ */
|
|
130
|
+
children: [/* @__PURE__ */ A(x, { className: "size-4" }), q("bigconsole.dashboards.toolbar.share", "Share")]
|
|
131
131
|
})
|
|
132
|
-
}), /* @__PURE__ */
|
|
132
|
+
}), /* @__PURE__ */ A(E, { children: q("bigconsole.dashboards.toolbar.shareTooltip", "Share dashboard with others") })] })
|
|
133
133
|
}),
|
|
134
|
-
V && /* @__PURE__ */
|
|
134
|
+
V && /* @__PURE__ */ A(s, {
|
|
135
135
|
permission: r.DASHBOARD_PUBLISH,
|
|
136
136
|
deniedBehavior: "hide",
|
|
137
|
-
children: /* @__PURE__ */
|
|
137
|
+
children: /* @__PURE__ */ j(T, { children: [/* @__PURE__ */ A(O, {
|
|
138
138
|
asChild: !0,
|
|
139
|
-
children: /* @__PURE__ */
|
|
139
|
+
children: /* @__PURE__ */ j(C, {
|
|
140
140
|
variant: "outline",
|
|
141
141
|
size: "sm",
|
|
142
142
|
onClick: V,
|
|
143
|
-
children: [/* @__PURE__ */
|
|
143
|
+
children: [/* @__PURE__ */ A(S, { className: "size-4" }), /* @__PURE__ */ A("span", {
|
|
144
144
|
className: "hidden sm:inline",
|
|
145
145
|
children: q("bigconsole.dashboards.toolbar.publish", "Publish")
|
|
146
146
|
})]
|
|
147
147
|
})
|
|
148
|
-
}), /* @__PURE__ */
|
|
148
|
+
}), /* @__PURE__ */ A(E, { children: q("bigconsole.dashboards.toolbar.publishTooltip", "Publish this dashboard as a reusable template") })] })
|
|
149
149
|
}),
|
|
150
|
-
B && /* @__PURE__ */
|
|
150
|
+
B && /* @__PURE__ */ j(T, { children: [/* @__PURE__ */ A(O, {
|
|
151
151
|
asChild: !0,
|
|
152
|
-
children: /* @__PURE__ */
|
|
152
|
+
children: /* @__PURE__ */ j(C, {
|
|
153
153
|
variant: "outline",
|
|
154
154
|
size: "sm",
|
|
155
155
|
onClick: B,
|
|
156
|
-
children: [/* @__PURE__ */
|
|
156
|
+
children: [/* @__PURE__ */ A(u, { className: "size-4" }), q("bigconsole.dashboards.toolbar.export", "Export")]
|
|
157
157
|
})
|
|
158
|
-
}), /* @__PURE__ */
|
|
159
|
-
H && /* @__PURE__ */
|
|
158
|
+
}), /* @__PURE__ */ A(E, { children: q("bigconsole.dashboards.toolbar.exportTooltip", "Export dashboard to JSON") })] }),
|
|
159
|
+
H && /* @__PURE__ */ j(T, { children: [/* @__PURE__ */ A(O, {
|
|
160
160
|
asChild: !0,
|
|
161
|
-
children: /* @__PURE__ */
|
|
161
|
+
children: /* @__PURE__ */ A(C, {
|
|
162
162
|
variant: "outline",
|
|
163
163
|
size: "icon-sm",
|
|
164
164
|
onClick: H,
|
|
165
165
|
disabled: W,
|
|
166
|
-
children:
|
|
166
|
+
children: A(W ? w : p, { className: "size-4" })
|
|
167
167
|
})
|
|
168
|
-
}), /* @__PURE__ */
|
|
169
|
-
U && /* @__PURE__ */
|
|
168
|
+
}), /* @__PURE__ */ A(E, { children: q("bigconsole.dashboards.toolbar.exportPngTooltip", "Export board as PNG image") })] }),
|
|
169
|
+
U && /* @__PURE__ */ j(T, { children: [/* @__PURE__ */ A(O, {
|
|
170
170
|
asChild: !0,
|
|
171
|
-
children: /* @__PURE__ */
|
|
171
|
+
children: /* @__PURE__ */ A(C, {
|
|
172
172
|
variant: "outline",
|
|
173
173
|
size: "icon-sm",
|
|
174
174
|
onClick: U,
|
|
175
175
|
disabled: W,
|
|
176
|
-
children: /* @__PURE__ */
|
|
176
|
+
children: /* @__PURE__ */ A(f, { className: "size-4" })
|
|
177
177
|
})
|
|
178
|
-
}), /* @__PURE__ */
|
|
178
|
+
}), /* @__PURE__ */ A(E, { children: q("bigconsole.dashboards.toolbar.exportPdfTooltip", "Export board as PDF") })] })
|
|
179
179
|
]
|
|
180
180
|
})
|
|
181
181
|
]
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { useDashboardStore as e } from "../../store/dashboardStore.js";
|
|
2
2
|
import "../../store/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import "../common/index.js";
|
|
5
|
-
import { useBigConsoleNavigate as n } from "../../context/BigConsoleContext.js";
|
|
3
|
+
import { useBigConsoleNavigate as t } from "../../context/BigConsoleContext.js";
|
|
6
4
|
import "../../context/index.js";
|
|
5
|
+
import { SECTION_FOCUS_RING as n } from "../common/sectionStyles.js";
|
|
6
|
+
import "../common/index.js";
|
|
7
7
|
import r from "../../hooks/useFilterUrlSync.js";
|
|
8
8
|
import { memo as i, useCallback as a, useEffect as o, useState as s } from "react";
|
|
9
9
|
import { ArrowLeft as c, ChevronRight as l, Home as u } from "lucide-react";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
11
|
+
import { useI18n as m } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
12
12
|
//#region src/bigconsole/components/dashboard/DrilldownBreadcrumb.tsx
|
|
13
13
|
var h = i(function({ className: i = "", currentDashboardId: h, currentDashboardName: g, showHome: _ = !0, basePath: v = "/bigconsole/dashboards" }) {
|
|
14
|
-
let { t: y } =
|
|
14
|
+
let { t: y } = m(), b = t(), { getDrilldownMetadata: x, isInDrilldown: S, drilldownDepth: C } = r(), w = e((e) => e.dashboards), [T, E] = s([]);
|
|
15
15
|
o(() => {
|
|
16
16
|
if (!S) {
|
|
17
17
|
E([]);
|
|
@@ -55,59 +55,59 @@ var h = i(function({ className: i = "", currentDashboardId: h, currentDashboardN
|
|
|
55
55
|
]), k = a((e) => {
|
|
56
56
|
e.preventDefault(), b(v);
|
|
57
57
|
}, [b, v]);
|
|
58
|
-
return S ? /* @__PURE__ */
|
|
58
|
+
return S ? /* @__PURE__ */ p("nav", {
|
|
59
59
|
className: `flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1 border-b border-[var(--color-border-subtle)] bg-bg-sunken px-4 py-1.5 ${i}`,
|
|
60
60
|
"aria-label": y("bigconsole.dashboards.drilldownBreadcrumb.ariaLabel", "Drilldown breadcrumb"),
|
|
61
61
|
"data-testid": "drilldown-breadcrumb",
|
|
62
62
|
children: [
|
|
63
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ p("button", {
|
|
64
64
|
type: "button",
|
|
65
65
|
onClick: O,
|
|
66
|
-
className: `flex min-h-control-sm items-center gap-1 rounded-button px-2 py-1 text-sm font-medium text-text-link motion-safe:transition-colors hover:bg-bg-accentSubtle ${
|
|
66
|
+
className: `flex min-h-control-sm items-center gap-1 rounded-button px-2 py-1 text-sm font-medium text-text-link motion-safe:transition-colors hover:bg-bg-accentSubtle ${n}`,
|
|
67
67
|
"aria-label": y("bigconsole.dashboards.drilldownBreadcrumb.back", "Go back"),
|
|
68
|
-
children: [/* @__PURE__ */
|
|
68
|
+
children: [/* @__PURE__ */ f(c, { className: "w-4 h-4" }), /* @__PURE__ */ f("span", {
|
|
69
69
|
className: "hidden sm:inline",
|
|
70
70
|
children: y("bigconsole.dashboards.drilldownBreadcrumb.backLabel", "Back")
|
|
71
71
|
})]
|
|
72
72
|
}),
|
|
73
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ f("span", {
|
|
74
74
|
className: "text-text-muted",
|
|
75
75
|
"aria-hidden": "true",
|
|
76
76
|
children: "|"
|
|
77
77
|
}),
|
|
78
|
-
_ && /* @__PURE__ */
|
|
78
|
+
_ && /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ p("a", {
|
|
79
79
|
href: v,
|
|
80
80
|
onClick: k,
|
|
81
81
|
className: "flex min-h-control-sm items-center gap-1 rounded-button px-1 text-sm text-text-secondary motion-safe:transition-colors hover:text-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface",
|
|
82
82
|
"aria-label": y("bigconsole.dashboards.drilldownBreadcrumb.home", "Home"),
|
|
83
|
-
children: [/* @__PURE__ */
|
|
83
|
+
children: [/* @__PURE__ */ f(u, { className: "w-4 h-4" }), /* @__PURE__ */ f("span", {
|
|
84
84
|
className: "hidden sm:inline",
|
|
85
85
|
children: y("bigconsole.dashboards.drilldownBreadcrumb.dashboards", "Dashboards")
|
|
86
86
|
})]
|
|
87
|
-
}), /* @__PURE__ */
|
|
87
|
+
}), /* @__PURE__ */ f(l, {
|
|
88
88
|
className: "w-4 h-4 shrink-0 text-text-muted",
|
|
89
89
|
"aria-hidden": "true"
|
|
90
90
|
})] }),
|
|
91
|
-
T.map((e,
|
|
91
|
+
T.map((e, t) => /* @__PURE__ */ p("div", {
|
|
92
92
|
className: "flex min-w-0 items-center gap-2",
|
|
93
|
-
children: [/* @__PURE__ */
|
|
93
|
+
children: [/* @__PURE__ */ f("button", {
|
|
94
94
|
type: "button",
|
|
95
|
-
onClick: () => D(e,
|
|
96
|
-
className: `min-h-control-sm max-w-[150px] truncate rounded-button px-1 text-sm text-text-secondary motion-safe:transition-colors hover:text-text-primary hover:underline ${
|
|
95
|
+
onClick: () => D(e, t),
|
|
96
|
+
className: `min-h-control-sm max-w-[150px] truncate rounded-button px-1 text-sm text-text-secondary motion-safe:transition-colors hover:text-text-primary hover:underline ${n}`,
|
|
97
97
|
title: e.name,
|
|
98
98
|
children: e.name
|
|
99
|
-
}), /* @__PURE__ */
|
|
99
|
+
}), /* @__PURE__ */ f(l, {
|
|
100
100
|
className: "w-4 h-4 shrink-0 text-text-muted",
|
|
101
101
|
"aria-hidden": "true"
|
|
102
102
|
})]
|
|
103
103
|
}, e.id)),
|
|
104
|
-
g && /* @__PURE__ */
|
|
104
|
+
g && /* @__PURE__ */ f("span", {
|
|
105
105
|
"aria-current": "page",
|
|
106
106
|
className: "max-w-[200px] truncate text-sm font-medium text-text-primary",
|
|
107
107
|
title: g,
|
|
108
108
|
children: g
|
|
109
109
|
}),
|
|
110
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ f("span", {
|
|
111
111
|
className: "ml-auto shrink-0 rounded-pill bg-bg-surface px-2 py-0.5 text-xs text-text-muted",
|
|
112
112
|
children: y("bigconsole.dashboards.drilldownBreadcrumb.level", "Level {{depth}}", { depth: C ?? "" })
|
|
113
113
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect as e, useRef as t, useState as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
3
|
+
import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
4
4
|
//#region src/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.tsx
|
|
5
5
|
var s = (e) => ({
|
|
6
6
|
bgPrimary: e ? "#1f2937" : "#ffffff",
|
|
@@ -64,13 +64,13 @@ function u(e) {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
67
|
-
let { t: g } =
|
|
67
|
+
let { t: g } = o(), [_, v] = n(!1), [y, b] = n(!1), x = t(null), S = t(null), C = s(c()), w = d != null && d !== "", T = l(d, u.type, g);
|
|
68
68
|
return e(() => {
|
|
69
69
|
function e(e) {
|
|
70
70
|
x.current && !x.current.contains(e.target) && (v(!1), b(!1));
|
|
71
71
|
}
|
|
72
72
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
73
|
-
}, []), /* @__PURE__ */
|
|
73
|
+
}, []), /* @__PURE__ */ a("div", {
|
|
74
74
|
ref: x,
|
|
75
75
|
style: {
|
|
76
76
|
position: "relative",
|
|
@@ -89,7 +89,7 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
89
89
|
maxWidth: "100%"
|
|
90
90
|
},
|
|
91
91
|
children: [
|
|
92
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ a("span", {
|
|
93
93
|
style: {
|
|
94
94
|
fontWeight: "var(--font-weight-semibold)",
|
|
95
95
|
color: "var(--color-text-primary)",
|
|
@@ -98,7 +98,7 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
98
98
|
onClick: () => v(!_),
|
|
99
99
|
children: [u.name, ":"]
|
|
100
100
|
}),
|
|
101
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ i("span", {
|
|
102
102
|
style: {
|
|
103
103
|
color: w ? "var(--color-text-primary)" : "var(--color-text-secondary)",
|
|
104
104
|
maxWidth: "min(200px, 45vw)",
|
|
@@ -111,7 +111,7 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
111
111
|
onClick: () => v(!_),
|
|
112
112
|
children: T
|
|
113
113
|
}),
|
|
114
|
-
w && /* @__PURE__ */
|
|
114
|
+
w && /* @__PURE__ */ i("button", {
|
|
115
115
|
onClick: (e) => {
|
|
116
116
|
e.stopPropagation(), p(void 0);
|
|
117
117
|
},
|
|
@@ -135,7 +135,7 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
135
135
|
title: g("bigconsole.filters.chip.action.clear", "Clear filter"),
|
|
136
136
|
children: "×"
|
|
137
137
|
}),
|
|
138
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ i("button", {
|
|
139
139
|
onClick: (e) => {
|
|
140
140
|
e.stopPropagation(), b(!y);
|
|
141
141
|
},
|
|
@@ -159,7 +159,7 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
159
159
|
title: g("bigconsole.filters.chip.action.options", "Filter options"),
|
|
160
160
|
children: "⋮"
|
|
161
161
|
}),
|
|
162
|
-
_ && /* @__PURE__ */
|
|
162
|
+
_ && /* @__PURE__ */ i(f, {
|
|
163
163
|
filter: u,
|
|
164
164
|
value: d,
|
|
165
165
|
onChange: (e) => {
|
|
@@ -167,7 +167,7 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
167
167
|
},
|
|
168
168
|
onClose: () => v(!1)
|
|
169
169
|
}),
|
|
170
|
-
y && /* @__PURE__ */
|
|
170
|
+
y && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("div", {
|
|
171
171
|
style: {
|
|
172
172
|
position: "fixed",
|
|
173
173
|
top: 0,
|
|
@@ -179,7 +179,7 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
179
179
|
onClick: (e) => {
|
|
180
180
|
e.stopPropagation(), b(!1);
|
|
181
181
|
}
|
|
182
|
-
}), /* @__PURE__ */
|
|
182
|
+
}), /* @__PURE__ */ a("div", {
|
|
183
183
|
ref: S,
|
|
184
184
|
style: {
|
|
185
185
|
position: "absolute",
|
|
@@ -195,7 +195,7 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
195
195
|
zIndex: 99999,
|
|
196
196
|
overflow: "hidden"
|
|
197
197
|
},
|
|
198
|
-
children: [/* @__PURE__ */
|
|
198
|
+
children: [/* @__PURE__ */ a("button", {
|
|
199
199
|
onClick: (e) => {
|
|
200
200
|
e.stopPropagation(), b(!1), m();
|
|
201
201
|
},
|
|
@@ -215,7 +215,7 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
215
215
|
fontWeight: 500
|
|
216
216
|
},
|
|
217
217
|
children: ["✏️ ", g("bigconsole.filters.chip.menu.edit", "Edit Filter")]
|
|
218
|
-
}), /* @__PURE__ */
|
|
218
|
+
}), /* @__PURE__ */ a("button", {
|
|
219
219
|
onClick: (e) => {
|
|
220
220
|
e.stopPropagation(), b(!1), h();
|
|
221
221
|
},
|
|
@@ -240,8 +240,8 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
242
|
function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
243
|
-
let { t: d } =
|
|
244
|
-
return /* @__PURE__ */
|
|
243
|
+
let { t: d } = o(), [f, p] = n(t), m = s(c());
|
|
244
|
+
return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("div", {
|
|
245
245
|
style: {
|
|
246
246
|
position: "fixed",
|
|
247
247
|
top: 0,
|
|
@@ -251,7 +251,7 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
251
251
|
zIndex: 99998
|
|
252
252
|
},
|
|
253
253
|
onClick: u
|
|
254
|
-
}), /* @__PURE__ */
|
|
254
|
+
}), /* @__PURE__ */ a("div", {
|
|
255
255
|
style: {
|
|
256
256
|
position: "absolute",
|
|
257
257
|
top: "100%",
|
|
@@ -268,7 +268,7 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
268
268
|
},
|
|
269
269
|
onClick: (e) => e.stopPropagation(),
|
|
270
270
|
children: [
|
|
271
|
-
e.type === "TEXT_SEARCH" && /* @__PURE__ */
|
|
271
|
+
e.type === "TEXT_SEARCH" && /* @__PURE__ */ i("input", {
|
|
272
272
|
type: "text",
|
|
273
273
|
value: f || "",
|
|
274
274
|
onChange: (e) => p(e.target.value),
|
|
@@ -284,7 +284,7 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
284
284
|
color: m.textPrimary
|
|
285
285
|
}
|
|
286
286
|
}),
|
|
287
|
-
e.type === "CATEGORY" && /* @__PURE__ */
|
|
287
|
+
e.type === "CATEGORY" && /* @__PURE__ */ a("select", {
|
|
288
288
|
value: f || "",
|
|
289
289
|
onChange: (e) => p(e.target.value),
|
|
290
290
|
style: {
|
|
@@ -296,23 +296,23 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
296
296
|
backgroundColor: m.bgPrimary,
|
|
297
297
|
color: m.textPrimary
|
|
298
298
|
},
|
|
299
|
-
children: [/* @__PURE__ */
|
|
299
|
+
children: [/* @__PURE__ */ i("option", {
|
|
300
300
|
value: "",
|
|
301
301
|
children: d("bigconsole.filters.chip.editor.allOption", "All")
|
|
302
|
-
}), e.config.options?.map((e) => /* @__PURE__ */
|
|
302
|
+
}), e.config.options?.map((e) => /* @__PURE__ */ i("option", {
|
|
303
303
|
value: String(e.value),
|
|
304
304
|
children: String(e.label)
|
|
305
305
|
}, String(e.value)))]
|
|
306
306
|
}),
|
|
307
307
|
e.type === "DATE_RANGE" && (() => {
|
|
308
308
|
let e = f || {};
|
|
309
|
-
return /* @__PURE__ */
|
|
309
|
+
return /* @__PURE__ */ a("div", {
|
|
310
310
|
style: {
|
|
311
311
|
display: "flex",
|
|
312
312
|
flexDirection: "column",
|
|
313
313
|
gap: "8px"
|
|
314
314
|
},
|
|
315
|
-
children: [/* @__PURE__ */
|
|
315
|
+
children: [/* @__PURE__ */ i("input", {
|
|
316
316
|
type: "date",
|
|
317
317
|
value: e.start || "",
|
|
318
318
|
onChange: (t) => p({
|
|
@@ -327,7 +327,7 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
327
327
|
backgroundColor: m.bgPrimary,
|
|
328
328
|
color: m.textPrimary
|
|
329
329
|
}
|
|
330
|
-
}), /* @__PURE__ */
|
|
330
|
+
}), /* @__PURE__ */ i("input", {
|
|
331
331
|
type: "date",
|
|
332
332
|
value: e.end || "",
|
|
333
333
|
onChange: (t) => p({
|
|
@@ -347,12 +347,12 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
347
347
|
})(),
|
|
348
348
|
e.type === "NUMERIC_RANGE" && (() => {
|
|
349
349
|
let e = f || {};
|
|
350
|
-
return /* @__PURE__ */
|
|
350
|
+
return /* @__PURE__ */ a("div", {
|
|
351
351
|
style: {
|
|
352
352
|
display: "flex",
|
|
353
353
|
gap: "8px"
|
|
354
354
|
},
|
|
355
|
-
children: [/* @__PURE__ */
|
|
355
|
+
children: [/* @__PURE__ */ i("input", {
|
|
356
356
|
type: "number",
|
|
357
357
|
value: e.min ?? "",
|
|
358
358
|
onChange: (t) => p({
|
|
@@ -369,7 +369,7 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
369
369
|
backgroundColor: m.bgPrimary,
|
|
370
370
|
color: m.textPrimary
|
|
371
371
|
}
|
|
372
|
-
}), /* @__PURE__ */
|
|
372
|
+
}), /* @__PURE__ */ i("input", {
|
|
373
373
|
type: "number",
|
|
374
374
|
value: e.max ?? "",
|
|
375
375
|
onChange: (t) => p({
|
|
@@ -389,7 +389,7 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
389
389
|
})]
|
|
390
390
|
});
|
|
391
391
|
})(),
|
|
392
|
-
e.type === "CUSTOM" && /* @__PURE__ */
|
|
392
|
+
e.type === "CUSTOM" && /* @__PURE__ */ i("input", {
|
|
393
393
|
type: "text",
|
|
394
394
|
value: typeof f == "string" ? f : JSON.stringify(f || ""),
|
|
395
395
|
onChange: (e) => p(e.target.value),
|
|
@@ -405,14 +405,14 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
405
405
|
color: m.textPrimary
|
|
406
406
|
}
|
|
407
407
|
}),
|
|
408
|
-
/* @__PURE__ */
|
|
408
|
+
/* @__PURE__ */ a("div", {
|
|
409
409
|
style: {
|
|
410
410
|
marginTop: "16px",
|
|
411
411
|
display: "flex",
|
|
412
412
|
justifyContent: "flex-end",
|
|
413
413
|
gap: "10px"
|
|
414
414
|
},
|
|
415
|
-
children: [/* @__PURE__ */
|
|
415
|
+
children: [/* @__PURE__ */ i("button", {
|
|
416
416
|
onClick: u,
|
|
417
417
|
style: {
|
|
418
418
|
padding: "8px 16px",
|
|
@@ -425,7 +425,7 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
425
425
|
fontWeight: 500
|
|
426
426
|
},
|
|
427
427
|
children: d("bigconsole.filters.chip.editor.cancel", "Cancel")
|
|
428
|
-
}), /* @__PURE__ */
|
|
428
|
+
}), /* @__PURE__ */ i("button", {
|
|
429
429
|
onClick: () => {
|
|
430
430
|
l(f);
|
|
431
431
|
},
|