@burdenoff/microfe-bigconsole 2026.805.2 → 2026.805.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/components/builder/inspector/DataBindingSection.js +109 -113
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js.map +1 -1
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +115 -113
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +71 -62
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +90 -89
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +56 -54
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +126 -125
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +151 -150
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +77 -76
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +97 -96
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +172 -191
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +75 -83
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +151 -154
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +181 -190
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js.map +1 -1
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +110 -108
- package/dist/bigconsole/components/dashboard/WidgetPalette.js.map +1 -1
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +102 -103
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +36 -41
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +38 -37
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +113 -117
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +182 -197
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +166 -168
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/DataSinkSelector.js +87 -86
- package/dist/bigconsole/components/parser/DataSinkSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/ImportParserDialog.js +196 -211
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +130 -128
- package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +66 -63
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +95 -91
- package/dist/bigconsole/components/preview/AiPreviewPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +222 -215
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +149 -145
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +504 -470
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +44 -47
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +143 -142
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +101 -88
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js.map +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +135 -134
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js.map +1 -1
- package/dist/bigconsole/components/widgets/form/FormWidget.js +167 -159
- package/dist/bigconsole/components/widgets/form/FormWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +69 -68
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +64 -72
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +60 -59
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/list/ListConfig.js +57 -56
- package/dist/bigconsole/components/widgets/list/ListConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +70 -69
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +35 -34
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +20 -19
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js.map +1 -1
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +178 -177
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +76 -75
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.js +183 -168
- package/dist/bigconsole/components/widgets/table/TableConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +187 -180
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +40 -38
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +150 -148
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.js +181 -176
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +196 -192
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +223 -219
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +167 -170
- package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +204 -189
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +175 -169
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSourcesPage.js +8 -7
- package/dist/bigconsole/pages/DataSourcesPage.js.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +238 -208
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +464 -412
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +92 -90
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +221 -194
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +181 -184
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +128 -127
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +177 -172
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +121 -83
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +199 -193
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +129 -128
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +111 -109
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +127 -126
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +103 -103
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js.map +1 -1
- package/package.json +2 -1
|
@@ -3,10 +3,11 @@ import t from "../../../hooks/useDashboardViews.js";
|
|
|
3
3
|
import "../../../hooks/index.js";
|
|
4
4
|
import { SEMANTIC_COLORS as n } from "../../../utils/semanticTokens.js";
|
|
5
5
|
import { useCallback as r, useEffect as i, useRef as a, useState as o } from "react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
|
+
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
|
+
import { createPortal as d } from "react-dom";
|
|
8
9
|
//#region src/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.tsx
|
|
9
|
-
function
|
|
10
|
+
function f() {
|
|
10
11
|
let [e, t] = o(!1);
|
|
11
12
|
return i(() => {
|
|
12
13
|
let e = () => {
|
|
@@ -20,88 +21,88 @@ function d() {
|
|
|
20
21
|
}), () => n.disconnect();
|
|
21
22
|
}, []), e ? "#1f2937" : "#ffffff";
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
-
let { views:
|
|
24
|
+
function p({ dashboardId: p, currentFilters: m, currentLayout: h, onViewLoad: g, className: _ = "" }) {
|
|
25
|
+
let { t: v } = s(), { views: y, currentView: b, loading: x, fetchViews: S, saveCurrentView: C, loadView: w, updateView: T, deleteView: E, setAsDefault: D, clearCurrentView: O } = t(), [k, A] = o(!1), [j, M] = o(!1), [N, P] = o(""), [F, I] = o(""), [L, R] = o(!1), [z, B] = o({
|
|
25
26
|
top: 0,
|
|
26
27
|
left: 0
|
|
27
|
-
}),
|
|
28
|
+
}), V = a(null), H = a(null), U = f();
|
|
28
29
|
i(() => {
|
|
29
|
-
|
|
30
|
-
}, [
|
|
31
|
-
if (
|
|
32
|
-
let e =
|
|
33
|
-
t + 280 > window.innerWidth - 16 && (t = e.right - 280), t = Math.max(16, t),
|
|
30
|
+
p && S(p);
|
|
31
|
+
}, [p, S]), i(() => {
|
|
32
|
+
if (k && V.current) {
|
|
33
|
+
let e = V.current.getBoundingClientRect(), t = e.left;
|
|
34
|
+
t + 280 > window.innerWidth - 16 && (t = e.right - 280), t = Math.max(16, t), B({
|
|
34
35
|
top: e.bottom + 4,
|
|
35
36
|
left: t
|
|
36
37
|
});
|
|
37
38
|
}
|
|
38
|
-
}, [
|
|
39
|
+
}, [k]), i(() => {
|
|
39
40
|
function e(e) {
|
|
40
41
|
let t = e.target;
|
|
41
|
-
|
|
42
|
+
V.current && !V.current.contains(t) && H.current && !H.current.contains(t) && A(!1);
|
|
42
43
|
}
|
|
43
|
-
if (
|
|
44
|
-
}, [
|
|
45
|
-
let
|
|
46
|
-
let t =
|
|
47
|
-
t && (
|
|
44
|
+
if (k) return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
45
|
+
}, [k]);
|
|
46
|
+
let W = r((e) => {
|
|
47
|
+
let t = y.find((t) => t.id === e);
|
|
48
|
+
t && (w(e), g && g(t)), A(!1);
|
|
48
49
|
}, [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
]),
|
|
53
|
-
if (
|
|
50
|
+
y,
|
|
51
|
+
w,
|
|
52
|
+
g
|
|
53
|
+
]), G = r(async () => {
|
|
54
|
+
if (N.trim()) {
|
|
54
55
|
try {
|
|
55
|
-
await
|
|
56
|
-
dashboardId:
|
|
57
|
-
name:
|
|
58
|
-
description:
|
|
59
|
-
filters:
|
|
60
|
-
layout:
|
|
61
|
-
isDefault:
|
|
56
|
+
await C({
|
|
57
|
+
dashboardId: p,
|
|
58
|
+
name: N.trim(),
|
|
59
|
+
description: F.trim() || void 0,
|
|
60
|
+
filters: m,
|
|
61
|
+
layout: h,
|
|
62
|
+
isDefault: L
|
|
62
63
|
});
|
|
63
64
|
} catch (t) {
|
|
64
65
|
if (e(t, "session")) {
|
|
65
|
-
|
|
66
|
+
M(!1), A(!1);
|
|
66
67
|
return;
|
|
67
68
|
}
|
|
68
69
|
throw t;
|
|
69
70
|
}
|
|
70
|
-
|
|
71
|
+
P(""), I(""), R(!1), M(!1);
|
|
71
72
|
}
|
|
72
73
|
}, [
|
|
73
|
-
f,
|
|
74
|
-
j,
|
|
75
|
-
N,
|
|
76
74
|
p,
|
|
77
|
-
|
|
75
|
+
N,
|
|
78
76
|
F,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
m,
|
|
78
|
+
h,
|
|
79
|
+
L,
|
|
80
|
+
C
|
|
81
|
+
]), K = r(async () => {
|
|
82
|
+
b && await T({
|
|
83
|
+
id: b.id,
|
|
84
|
+
filters: m,
|
|
85
|
+
layout: h
|
|
85
86
|
});
|
|
86
87
|
}, [
|
|
87
|
-
|
|
88
|
-
p,
|
|
88
|
+
b,
|
|
89
89
|
m,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
90
|
+
h,
|
|
91
|
+
T
|
|
92
|
+
]), q = r(async (e, t) => {
|
|
93
|
+
t.stopPropagation(), window.confirm(v("bigconsole.dashboards.savedViews.confirmDelete", "Are you sure you want to delete this view?")) && await E(e);
|
|
94
|
+
}, [E, v]), J = r(async (e, t) => {
|
|
95
|
+
t.stopPropagation(), await D(e);
|
|
96
|
+
}, [D]), Y = r(() => {
|
|
97
|
+
O(), A(!1);
|
|
98
|
+
}, [O]), X = k ? d(/* @__PURE__ */ u("div", {
|
|
99
|
+
ref: H,
|
|
99
100
|
style: {
|
|
100
101
|
position: "fixed",
|
|
101
|
-
top:
|
|
102
|
-
left: Math.max(16,
|
|
102
|
+
top: z.top,
|
|
103
|
+
left: Math.max(16, z.left),
|
|
103
104
|
minWidth: "280px",
|
|
104
|
-
backgroundColor:
|
|
105
|
+
backgroundColor: U,
|
|
105
106
|
border: `1px solid ${n.borderDefault}`,
|
|
106
107
|
borderRadius: "8px",
|
|
107
108
|
boxShadow: "0 8px 24px rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.1)",
|
|
@@ -109,7 +110,7 @@ function f({ dashboardId: f, currentFilters: p, currentLayout: m, onViewLoad: h,
|
|
|
109
110
|
overflow: "hidden"
|
|
110
111
|
},
|
|
111
112
|
children: [
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ u("div", {
|
|
113
114
|
style: {
|
|
114
115
|
padding: "12px 16px",
|
|
115
116
|
borderBottom: `1px solid ${n.borderDefault}`,
|
|
@@ -117,15 +118,15 @@ function f({ dashboardId: f, currentFilters: p, currentLayout: m, onViewLoad: h,
|
|
|
117
118
|
alignItems: "center",
|
|
118
119
|
justifyContent: "space-between"
|
|
119
120
|
},
|
|
120
|
-
children: [/* @__PURE__ */
|
|
121
|
+
children: [/* @__PURE__ */ l("span", {
|
|
121
122
|
style: {
|
|
122
123
|
fontSize: "13px",
|
|
123
124
|
fontWeight: 600,
|
|
124
125
|
color: n.textPrimary
|
|
125
126
|
},
|
|
126
|
-
children: "Saved Views"
|
|
127
|
-
}), /* @__PURE__ */
|
|
128
|
-
onClick: () =>
|
|
127
|
+
children: v("bigconsole.dashboards.savedViews.header", "Saved Views")
|
|
128
|
+
}), /* @__PURE__ */ l("button", {
|
|
129
|
+
onClick: () => M(!0),
|
|
129
130
|
style: {
|
|
130
131
|
padding: "4px 10px",
|
|
131
132
|
backgroundColor: n.actionPrimaryBg,
|
|
@@ -135,83 +136,83 @@ function f({ dashboardId: f, currentFilters: p, currentLayout: m, onViewLoad: h,
|
|
|
135
136
|
cursor: "pointer",
|
|
136
137
|
fontSize: "12px"
|
|
137
138
|
},
|
|
138
|
-
children: "+ Save Current"
|
|
139
|
+
children: v("bigconsole.dashboards.savedViews.saveCurrent", "+ Save Current")
|
|
139
140
|
})]
|
|
140
141
|
}),
|
|
141
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ l("div", {
|
|
142
143
|
style: {
|
|
143
144
|
maxHeight: "300px",
|
|
144
145
|
overflowY: "auto"
|
|
145
146
|
},
|
|
146
|
-
children:
|
|
147
|
+
children: x && y.length === 0 ? /* @__PURE__ */ l("div", {
|
|
147
148
|
style: {
|
|
148
149
|
padding: "16px",
|
|
149
150
|
color: n.textSecondary,
|
|
150
151
|
fontSize: "13px"
|
|
151
152
|
},
|
|
152
|
-
children: "Loading views..."
|
|
153
|
-
}) :
|
|
153
|
+
children: v("bigconsole.dashboards.savedViews.loading", "Loading views...")
|
|
154
|
+
}) : y.length === 0 ? /* @__PURE__ */ l("div", {
|
|
154
155
|
style: {
|
|
155
156
|
padding: "16px",
|
|
156
157
|
color: n.textSecondary,
|
|
157
158
|
fontSize: "13px"
|
|
158
159
|
},
|
|
159
|
-
children: "No saved views yet. Save your current view to get started."
|
|
160
|
-
}) : /* @__PURE__ */
|
|
161
|
-
onClick:
|
|
160
|
+
children: v("bigconsole.dashboards.savedViews.empty", "No saved views yet. Save your current view to get started.")
|
|
161
|
+
}) : /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("button", {
|
|
162
|
+
onClick: Y,
|
|
162
163
|
style: {
|
|
163
164
|
display: "flex",
|
|
164
165
|
alignItems: "center",
|
|
165
166
|
width: "100%",
|
|
166
167
|
padding: "10px 16px",
|
|
167
|
-
backgroundColor:
|
|
168
|
+
backgroundColor: b ? n.bgPrimary : n.bgSecondary,
|
|
168
169
|
border: "none",
|
|
169
170
|
cursor: "pointer",
|
|
170
171
|
textAlign: "left",
|
|
171
172
|
borderBottom: `1px solid ${n.borderDefault}`
|
|
172
173
|
},
|
|
173
|
-
children: /* @__PURE__ */
|
|
174
|
+
children: /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("div", {
|
|
174
175
|
style: {
|
|
175
176
|
fontSize: "13px",
|
|
176
177
|
fontWeight: 500,
|
|
177
178
|
color: n.textPrimary
|
|
178
179
|
},
|
|
179
|
-
children: "Default View"
|
|
180
|
-
}), /* @__PURE__ */
|
|
180
|
+
children: v("bigconsole.dashboards.savedViews.defaultView", "Default View")
|
|
181
|
+
}), /* @__PURE__ */ l("div", {
|
|
181
182
|
style: {
|
|
182
183
|
fontSize: "11px",
|
|
183
184
|
color: n.textSecondary
|
|
184
185
|
},
|
|
185
|
-
children: "Reset to original dashboard state"
|
|
186
|
+
children: v("bigconsole.dashboards.savedViews.defaultViewHint", "Reset to original dashboard state")
|
|
186
187
|
})] })
|
|
187
|
-
}),
|
|
188
|
-
onClick: () =>
|
|
188
|
+
}), y.map((e) => /* @__PURE__ */ u("div", {
|
|
189
|
+
onClick: () => W(e.id),
|
|
189
190
|
style: {
|
|
190
191
|
display: "flex",
|
|
191
192
|
alignItems: "center",
|
|
192
193
|
justifyContent: "space-between",
|
|
193
194
|
padding: "10px 16px",
|
|
194
|
-
backgroundColor:
|
|
195
|
+
backgroundColor: b?.id === e.id ? n.bgSecondary : n.bgPrimary,
|
|
195
196
|
cursor: "pointer",
|
|
196
197
|
borderBottom: `1px solid ${n.borderDefault}`
|
|
197
198
|
},
|
|
198
|
-
children: [/* @__PURE__ */
|
|
199
|
+
children: [/* @__PURE__ */ u("div", {
|
|
199
200
|
style: { flex: 1 },
|
|
200
201
|
children: [
|
|
201
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ u("div", {
|
|
202
203
|
style: {
|
|
203
204
|
display: "flex",
|
|
204
205
|
alignItems: "center",
|
|
205
206
|
gap: "6px"
|
|
206
207
|
},
|
|
207
|
-
children: [/* @__PURE__ */
|
|
208
|
+
children: [/* @__PURE__ */ l("span", {
|
|
208
209
|
style: {
|
|
209
210
|
fontSize: "13px",
|
|
210
211
|
fontWeight: 500,
|
|
211
212
|
color: n.textPrimary
|
|
212
213
|
},
|
|
213
214
|
children: e.name
|
|
214
|
-
}), e.isDefault && /* @__PURE__ */
|
|
215
|
+
}), e.isDefault && /* @__PURE__ */ l("span", {
|
|
215
216
|
style: {
|
|
216
217
|
fontSize: "9px",
|
|
217
218
|
padding: "2px 4px",
|
|
@@ -221,10 +222,10 @@ function f({ dashboardId: f, currentFilters: p, currentLayout: m, onViewLoad: h,
|
|
|
221
222
|
textTransform: "uppercase",
|
|
222
223
|
fontWeight: 600
|
|
223
224
|
},
|
|
224
|
-
children: "Default"
|
|
225
|
+
children: v("bigconsole.dashboards.savedViews.defaultBadge", "Default")
|
|
225
226
|
})]
|
|
226
227
|
}),
|
|
227
|
-
e.description && /* @__PURE__ */
|
|
228
|
+
e.description && /* @__PURE__ */ l("div", {
|
|
228
229
|
style: {
|
|
229
230
|
fontSize: "11px",
|
|
230
231
|
color: n.textSecondary,
|
|
@@ -232,7 +233,7 @@ function f({ dashboardId: f, currentFilters: p, currentLayout: m, onViewLoad: h,
|
|
|
232
233
|
},
|
|
233
234
|
children: e.description
|
|
234
235
|
}),
|
|
235
|
-
/* @__PURE__ */
|
|
236
|
+
/* @__PURE__ */ l("div", {
|
|
236
237
|
style: {
|
|
237
238
|
fontSize: "10px",
|
|
238
239
|
color: n.textSecondary,
|
|
@@ -241,15 +242,15 @@ function f({ dashboardId: f, currentFilters: p, currentLayout: m, onViewLoad: h,
|
|
|
241
242
|
children: new Date(e.updatedAt).toLocaleDateString()
|
|
242
243
|
})
|
|
243
244
|
]
|
|
244
|
-
}), /* @__PURE__ */
|
|
245
|
+
}), /* @__PURE__ */ u("div", {
|
|
245
246
|
style: {
|
|
246
247
|
display: "flex",
|
|
247
248
|
alignItems: "center",
|
|
248
249
|
gap: "4px"
|
|
249
250
|
},
|
|
250
|
-
children: [!e.isDefault && /* @__PURE__ */
|
|
251
|
-
onClick: (t) =>
|
|
252
|
-
title: "Set as default",
|
|
251
|
+
children: [!e.isDefault && /* @__PURE__ */ l("button", {
|
|
252
|
+
onClick: (t) => J(e.id, t),
|
|
253
|
+
title: v("bigconsole.dashboards.savedViews.setAsDefaultTitle", "Set as default"),
|
|
253
254
|
style: {
|
|
254
255
|
padding: "4px 6px",
|
|
255
256
|
backgroundColor: "transparent",
|
|
@@ -258,10 +259,10 @@ function f({ dashboardId: f, currentFilters: p, currentLayout: m, onViewLoad: h,
|
|
|
258
259
|
color: n.textSecondary,
|
|
259
260
|
fontSize: "11px"
|
|
260
261
|
},
|
|
261
|
-
children: "Set Default"
|
|
262
|
-
}), /* @__PURE__ */
|
|
263
|
-
onClick: (t) =>
|
|
264
|
-
title: "Delete view",
|
|
262
|
+
children: v("bigconsole.dashboards.savedViews.setDefault", "Set Default")
|
|
263
|
+
}), /* @__PURE__ */ l("button", {
|
|
264
|
+
onClick: (t) => q(e.id, t),
|
|
265
|
+
title: v("bigconsole.dashboards.savedViews.deleteViewTitle", "Delete view"),
|
|
265
266
|
style: {
|
|
266
267
|
padding: "4px 6px",
|
|
267
268
|
backgroundColor: "transparent",
|
|
@@ -270,19 +271,19 @@ function f({ dashboardId: f, currentFilters: p, currentLayout: m, onViewLoad: h,
|
|
|
270
271
|
color: n.statusErrorText,
|
|
271
272
|
fontSize: "11px"
|
|
272
273
|
},
|
|
273
|
-
children: "Delete"
|
|
274
|
+
children: v("bigconsole.dashboards.savedViews.delete", "Delete")
|
|
274
275
|
})]
|
|
275
276
|
})]
|
|
276
277
|
}, e.id))] })
|
|
277
278
|
}),
|
|
278
|
-
|
|
279
|
+
b && /* @__PURE__ */ l("div", {
|
|
279
280
|
style: {
|
|
280
281
|
padding: "12px 16px",
|
|
281
282
|
borderTop: `1px solid ${n.borderDefault}`,
|
|
282
283
|
backgroundColor: n.bgSecondary
|
|
283
284
|
},
|
|
284
285
|
children: /* @__PURE__ */ l("button", {
|
|
285
|
-
onClick:
|
|
286
|
+
onClick: K,
|
|
286
287
|
style: {
|
|
287
288
|
width: "100%",
|
|
288
289
|
padding: "8px",
|
|
@@ -293,15 +294,11 @@ function f({ dashboardId: f, currentFilters: p, currentLayout: m, onViewLoad: h,
|
|
|
293
294
|
fontSize: "12px",
|
|
294
295
|
color: n.textPrimary
|
|
295
296
|
},
|
|
296
|
-
children:
|
|
297
|
-
"Update \"",
|
|
298
|
-
v.name,
|
|
299
|
-
"\" with current state"
|
|
300
|
-
]
|
|
297
|
+
children: v("bigconsole.dashboards.savedViews.updateCurrent", "Update \"{{name}}\" with current state", { name: b.name ?? "" })
|
|
301
298
|
})
|
|
302
299
|
})
|
|
303
300
|
]
|
|
304
|
-
}), document.body) : null,
|
|
301
|
+
}), document.body) : null, Z = j ? d(/* @__PURE__ */ l("div", {
|
|
305
302
|
style: {
|
|
306
303
|
position: "fixed",
|
|
307
304
|
top: 0,
|
|
@@ -315,11 +312,11 @@ function f({ dashboardId: f, currentFilters: p, currentLayout: m, onViewLoad: h,
|
|
|
315
312
|
zIndex: 99999,
|
|
316
313
|
isolation: "isolate"
|
|
317
314
|
},
|
|
318
|
-
onClick: () =>
|
|
319
|
-
children: /* @__PURE__ */
|
|
315
|
+
onClick: () => M(!1),
|
|
316
|
+
children: /* @__PURE__ */ u("div", {
|
|
320
317
|
style: {
|
|
321
318
|
width: "400px",
|
|
322
|
-
backgroundColor:
|
|
319
|
+
backgroundColor: U,
|
|
323
320
|
borderRadius: "8px",
|
|
324
321
|
boxShadow: "0 4px 24px rgba(0, 0, 0, 0.3)",
|
|
325
322
|
overflow: "hidden",
|
|
@@ -329,27 +326,27 @@ function f({ dashboardId: f, currentFilters: p, currentLayout: m, onViewLoad: h,
|
|
|
329
326
|
},
|
|
330
327
|
onClick: (e) => e.stopPropagation(),
|
|
331
328
|
children: [
|
|
332
|
-
/* @__PURE__ */
|
|
329
|
+
/* @__PURE__ */ l("div", {
|
|
333
330
|
style: {
|
|
334
331
|
padding: "16px 20px",
|
|
335
332
|
borderBottom: `1px solid ${n.borderDefault}`
|
|
336
333
|
},
|
|
337
|
-
children: /* @__PURE__ */
|
|
334
|
+
children: /* @__PURE__ */ l("h3", {
|
|
338
335
|
style: {
|
|
339
336
|
margin: 0,
|
|
340
337
|
fontSize: "16px",
|
|
341
338
|
fontWeight: 600,
|
|
342
339
|
color: n.textPrimary
|
|
343
340
|
},
|
|
344
|
-
children: "Save Current View"
|
|
341
|
+
children: v("bigconsole.dashboards.savedViews.saveDialog.title", "Save Current View")
|
|
345
342
|
})
|
|
346
343
|
}),
|
|
347
|
-
/* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ u("div", {
|
|
348
345
|
style: { padding: "20px" },
|
|
349
346
|
children: [
|
|
350
|
-
/* @__PURE__ */
|
|
347
|
+
/* @__PURE__ */ u("div", {
|
|
351
348
|
style: { marginBottom: "16px" },
|
|
352
|
-
children: [/* @__PURE__ */
|
|
349
|
+
children: [/* @__PURE__ */ l("label", {
|
|
353
350
|
style: {
|
|
354
351
|
display: "block",
|
|
355
352
|
marginBottom: "6px",
|
|
@@ -357,12 +354,12 @@ function f({ dashboardId: f, currentFilters: p, currentLayout: m, onViewLoad: h,
|
|
|
357
354
|
fontWeight: 500,
|
|
358
355
|
color: n.textPrimary
|
|
359
356
|
},
|
|
360
|
-
children: "View Name *"
|
|
361
|
-
}), /* @__PURE__ */
|
|
357
|
+
children: v("bigconsole.dashboards.savedViews.saveDialog.nameLabel", "View Name *")
|
|
358
|
+
}), /* @__PURE__ */ l("input", {
|
|
362
359
|
type: "text",
|
|
363
|
-
value:
|
|
364
|
-
onChange: (e) =>
|
|
365
|
-
placeholder: "e.g., Q4 Analysis, Sales Overview",
|
|
360
|
+
value: N,
|
|
361
|
+
onChange: (e) => P(e.target.value),
|
|
362
|
+
placeholder: v("bigconsole.dashboards.savedViews.saveDialog.namePlaceholder", "e.g., Q4 Analysis, Sales Overview"),
|
|
366
363
|
style: {
|
|
367
364
|
width: "100%",
|
|
368
365
|
padding: "10px 12px",
|
|
@@ -375,9 +372,9 @@ function f({ dashboardId: f, currentFilters: p, currentLayout: m, onViewLoad: h,
|
|
|
375
372
|
}
|
|
376
373
|
})]
|
|
377
374
|
}),
|
|
378
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ u("div", {
|
|
379
376
|
style: { marginBottom: "16px" },
|
|
380
|
-
children: [/* @__PURE__ */
|
|
377
|
+
children: [/* @__PURE__ */ l("label", {
|
|
381
378
|
style: {
|
|
382
379
|
display: "block",
|
|
383
380
|
marginBottom: "6px",
|
|
@@ -385,11 +382,11 @@ function f({ dashboardId: f, currentFilters: p, currentLayout: m, onViewLoad: h,
|
|
|
385
382
|
fontWeight: 500,
|
|
386
383
|
color: n.textPrimary
|
|
387
384
|
},
|
|
388
|
-
children: "Description"
|
|
389
|
-
}), /* @__PURE__ */
|
|
390
|
-
value:
|
|
391
|
-
onChange: (e) =>
|
|
392
|
-
placeholder: "Optional description...",
|
|
385
|
+
children: v("bigconsole.dashboards.savedViews.saveDialog.descriptionLabel", "Description")
|
|
386
|
+
}), /* @__PURE__ */ l("textarea", {
|
|
387
|
+
value: F,
|
|
388
|
+
onChange: (e) => I(e.target.value),
|
|
389
|
+
placeholder: v("bigconsole.dashboards.savedViews.saveDialog.descriptionPlaceholder", "Optional description..."),
|
|
393
390
|
rows: 2,
|
|
394
391
|
style: {
|
|
395
392
|
width: "100%",
|
|
@@ -404,28 +401,28 @@ function f({ dashboardId: f, currentFilters: p, currentLayout: m, onViewLoad: h,
|
|
|
404
401
|
}
|
|
405
402
|
})]
|
|
406
403
|
}),
|
|
407
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ u("label", {
|
|
408
405
|
style: {
|
|
409
406
|
display: "flex",
|
|
410
407
|
alignItems: "center",
|
|
411
408
|
gap: "8px",
|
|
412
409
|
cursor: "pointer"
|
|
413
410
|
},
|
|
414
|
-
children: [/* @__PURE__ */
|
|
411
|
+
children: [/* @__PURE__ */ l("input", {
|
|
415
412
|
type: "checkbox",
|
|
416
|
-
checked:
|
|
417
|
-
onChange: (e) =>
|
|
418
|
-
}), /* @__PURE__ */
|
|
413
|
+
checked: L,
|
|
414
|
+
onChange: (e) => R(e.target.checked)
|
|
415
|
+
}), /* @__PURE__ */ l("span", {
|
|
419
416
|
style: {
|
|
420
417
|
fontSize: "13px",
|
|
421
418
|
color: n.textPrimary
|
|
422
419
|
},
|
|
423
|
-
children: "Set as default view"
|
|
420
|
+
children: v("bigconsole.dashboards.savedViews.saveDialog.setAsDefault", "Set as default view")
|
|
424
421
|
})]
|
|
425
422
|
})
|
|
426
423
|
]
|
|
427
424
|
}),
|
|
428
|
-
/* @__PURE__ */
|
|
425
|
+
/* @__PURE__ */ u("div", {
|
|
429
426
|
style: {
|
|
430
427
|
padding: "16px 20px",
|
|
431
428
|
borderTop: `1px solid ${n.borderDefault}`,
|
|
@@ -434,8 +431,8 @@ function f({ dashboardId: f, currentFilters: p, currentLayout: m, onViewLoad: h,
|
|
|
434
431
|
gap: "12px",
|
|
435
432
|
backgroundColor: n.bgSecondary
|
|
436
433
|
},
|
|
437
|
-
children: [/* @__PURE__ */
|
|
438
|
-
onClick: () =>
|
|
434
|
+
children: [/* @__PURE__ */ l("button", {
|
|
435
|
+
onClick: () => M(!1),
|
|
439
436
|
style: {
|
|
440
437
|
padding: "10px 20px",
|
|
441
438
|
backgroundColor: n.bgPrimary,
|
|
@@ -445,62 +442,62 @@ function f({ dashboardId: f, currentFilters: p, currentLayout: m, onViewLoad: h,
|
|
|
445
442
|
fontSize: "14px",
|
|
446
443
|
color: n.textPrimary
|
|
447
444
|
},
|
|
448
|
-
children: "Cancel"
|
|
449
|
-
}), /* @__PURE__ */
|
|
450
|
-
onClick:
|
|
451
|
-
disabled: !
|
|
445
|
+
children: v("bigconsole.dashboards.savedViews.saveDialog.cancel", "Cancel")
|
|
446
|
+
}), /* @__PURE__ */ l("button", {
|
|
447
|
+
onClick: G,
|
|
448
|
+
disabled: !N.trim(),
|
|
452
449
|
style: {
|
|
453
450
|
padding: "10px 20px",
|
|
454
|
-
backgroundColor:
|
|
455
|
-
color:
|
|
451
|
+
backgroundColor: N.trim() ? n.actionPrimaryBg : n.bgSecondary,
|
|
452
|
+
color: N.trim() ? "white" : n.textSecondary,
|
|
456
453
|
border: "none",
|
|
457
454
|
borderRadius: "6px",
|
|
458
|
-
cursor:
|
|
455
|
+
cursor: N.trim() ? "pointer" : "not-allowed",
|
|
459
456
|
fontSize: "14px",
|
|
460
457
|
fontWeight: 500
|
|
461
458
|
},
|
|
462
|
-
children: "Save View"
|
|
459
|
+
children: v("bigconsole.dashboards.savedViews.saveDialog.save", "Save View")
|
|
463
460
|
})]
|
|
464
461
|
})
|
|
465
462
|
]
|
|
466
463
|
})
|
|
467
464
|
}), document.body) : null;
|
|
468
|
-
return /* @__PURE__ */
|
|
469
|
-
className:
|
|
465
|
+
return /* @__PURE__ */ u("div", {
|
|
466
|
+
className: _,
|
|
470
467
|
style: {
|
|
471
468
|
position: "relative",
|
|
472
469
|
display: "inline-block"
|
|
473
470
|
},
|
|
474
471
|
children: [
|
|
475
|
-
/* @__PURE__ */
|
|
476
|
-
ref:
|
|
477
|
-
onClick: () =>
|
|
472
|
+
/* @__PURE__ */ u("button", {
|
|
473
|
+
ref: V,
|
|
474
|
+
onClick: () => A(!k),
|
|
478
475
|
style: {
|
|
479
476
|
display: "flex",
|
|
480
477
|
alignItems: "center",
|
|
481
478
|
gap: "6px",
|
|
482
479
|
padding: "6px 12px",
|
|
483
|
-
backgroundColor:
|
|
484
|
-
border: `1px solid ${
|
|
480
|
+
backgroundColor: b ? n.actionPrimaryBgSubtle : n.bgSecondary,
|
|
481
|
+
border: `1px solid ${b ? n.actionPrimaryBg : n.borderDefault}`,
|
|
485
482
|
borderRadius: "6px",
|
|
486
483
|
cursor: "pointer",
|
|
487
484
|
fontSize: "13px",
|
|
488
|
-
color:
|
|
485
|
+
color: b ? n.actionPrimaryBg : n.textPrimary
|
|
489
486
|
},
|
|
490
|
-
children: [/* @__PURE__ */
|
|
487
|
+
children: [/* @__PURE__ */ l("span", {
|
|
491
488
|
style: { fontWeight: 500 },
|
|
492
|
-
children:
|
|
493
|
-
}), /* @__PURE__ */
|
|
489
|
+
children: b ? b.name : v("bigconsole.dashboards.savedViews.triggerLabel", "Views")
|
|
490
|
+
}), /* @__PURE__ */ l("span", {
|
|
494
491
|
style: { fontSize: "10px" },
|
|
495
|
-
children:
|
|
492
|
+
children: k ? "▲" : "▼"
|
|
496
493
|
})]
|
|
497
494
|
}),
|
|
498
|
-
|
|
499
|
-
|
|
495
|
+
X,
|
|
496
|
+
Z
|
|
500
497
|
]
|
|
501
498
|
});
|
|
502
499
|
}
|
|
503
500
|
//#endregion
|
|
504
|
-
export {
|
|
501
|
+
export { p as default };
|
|
505
502
|
|
|
506
503
|
//# sourceMappingURL=SavedViewsDropdown.js.map
|