@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.
Files changed (134) hide show
  1. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +109 -113
  2. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js.map +1 -1
  3. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +115 -113
  4. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
  5. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +71 -62
  6. package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
  7. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +90 -89
  8. package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -1
  9. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +56 -54
  10. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
  11. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +126 -125
  12. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js.map +1 -1
  13. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +151 -150
  14. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
  15. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +77 -76
  16. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js.map +1 -1
  17. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +97 -96
  18. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
  19. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +172 -191
  20. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
  21. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +75 -83
  22. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js.map +1 -1
  23. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +151 -154
  24. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js.map +1 -1
  25. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +181 -190
  26. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js.map +1 -1
  27. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
  28. package/dist/bigconsole/components/dashboard/WidgetPalette.js +110 -108
  29. package/dist/bigconsole/components/dashboard/WidgetPalette.js.map +1 -1
  30. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +102 -103
  31. package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
  32. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +36 -41
  33. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js.map +1 -1
  34. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +38 -37
  35. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js.map +1 -1
  36. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +113 -117
  37. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js.map +1 -1
  38. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +182 -197
  39. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
  40. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +166 -168
  41. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js.map +1 -1
  42. package/dist/bigconsole/components/parser/DataSinkSelector.js +87 -86
  43. package/dist/bigconsole/components/parser/DataSinkSelector.js.map +1 -1
  44. package/dist/bigconsole/components/parser/ImportParserDialog.js +196 -211
  45. package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
  46. package/dist/bigconsole/components/parser/ParserSelector.js +130 -128
  47. package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
  48. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +66 -63
  49. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js.map +1 -1
  50. package/dist/bigconsole/components/preview/AiPreviewPanel.js +95 -91
  51. package/dist/bigconsole/components/preview/AiPreviewPanel.js.map +1 -1
  52. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +222 -215
  53. package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
  54. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +149 -145
  55. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
  56. package/dist/bigconsole/components/widgets/PropertiesPanel.js +504 -470
  57. package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
  58. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +44 -47
  59. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js.map +1 -1
  60. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +143 -142
  61. package/dist/bigconsole/components/widgets/chart/ChartConfig.js.map +1 -1
  62. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +101 -88
  63. package/dist/bigconsole/components/widgets/comments/WidgetComments.js.map +1 -1
  64. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +135 -134
  65. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js.map +1 -1
  66. package/dist/bigconsole/components/widgets/form/FormWidget.js +167 -159
  67. package/dist/bigconsole/components/widgets/form/FormWidget.js.map +1 -1
  68. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +69 -68
  69. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js.map +1 -1
  70. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +64 -72
  71. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js.map +1 -1
  72. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +60 -59
  73. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js.map +1 -1
  74. package/dist/bigconsole/components/widgets/list/ListConfig.js +57 -56
  75. package/dist/bigconsole/components/widgets/list/ListConfig.js.map +1 -1
  76. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +70 -69
  77. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js.map +1 -1
  78. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +35 -34
  79. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js.map +1 -1
  80. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +20 -19
  81. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js.map +1 -1
  82. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +178 -177
  83. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js.map +1 -1
  84. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +76 -75
  85. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js.map +1 -1
  86. package/dist/bigconsole/components/widgets/table/TableConfig.js +183 -168
  87. package/dist/bigconsole/components/widgets/table/TableConfig.js.map +1 -1
  88. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +187 -180
  89. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js.map +1 -1
  90. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +40 -38
  91. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js.map +1 -1
  92. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +150 -148
  93. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
  94. package/dist/bigconsole/pages/DashboardBuilderPage.js +181 -176
  95. package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
  96. package/dist/bigconsole/pages/DashboardViewPage.js +196 -192
  97. package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
  98. package/dist/bigconsole/pages/DashboardsPage.js +223 -219
  99. package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
  100. package/dist/bigconsole/pages/DataParsersPage.js +167 -170
  101. package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
  102. package/dist/bigconsole/pages/DataSinkBuilderPage.js +204 -189
  103. package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
  104. package/dist/bigconsole/pages/DataSinkViewPage.js +175 -169
  105. package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
  106. package/dist/bigconsole/pages/DataSourcesPage.js +8 -7
  107. package/dist/bigconsole/pages/DataSourcesPage.js.map +1 -1
  108. package/dist/bigconsole/pages/InsightsPage.js +238 -208
  109. package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
  110. package/dist/bigconsole/pages/ParserBuilderPage.js +464 -412
  111. package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
  112. package/dist/bigconsole/pages/ParserViewPage.js +92 -90
  113. package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
  114. package/dist/bigconsole/pages/PipelineBuilderPage.js +221 -194
  115. package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
  116. package/dist/bigconsole/pages/PipelineViewPage.js +181 -184
  117. package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
  118. package/dist/bigconsole/pages/PipelinesPage.js +128 -127
  119. package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
  120. package/dist/bigconsole/pages/SettingsPage.js +177 -172
  121. package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
  122. package/dist/bigconsole/pages/WidgetDemoPage.js +121 -83
  123. package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
  124. package/dist/bigconsole/pages/WorkflowViewPage.js +199 -193
  125. package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
  126. package/dist/bigconsole/pages/WorkflowsPage.js +129 -128
  127. package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
  128. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +111 -109
  129. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js.map +1 -1
  130. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +127 -126
  131. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js.map +1 -1
  132. package/dist/bigconsole/renderers/adapters/CustomRenderer.js +103 -103
  133. package/dist/bigconsole/renderers/adapters/CustomRenderer.js.map +1 -1
  134. 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 { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
7
- import { createPortal as u } from "react-dom";
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 d() {
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 f({ dashboardId: f, currentFilters: p, currentLayout: m, onViewLoad: h, className: g = "" }) {
24
- let { views: _, currentView: v, loading: y, fetchViews: b, saveCurrentView: x, loadView: S, updateView: C, deleteView: w, setAsDefault: T, clearCurrentView: E } = t(), [D, O] = o(!1), [k, A] = o(!1), [j, M] = o(""), [N, P] = o(""), [F, I] = o(!1), [L, R] = o({
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
- }), z = a(null), B = a(null), V = d();
28
+ }), V = a(null), H = a(null), U = f();
28
29
  i(() => {
29
- f && b(f);
30
- }, [f, b]), i(() => {
31
- if (D && z.current) {
32
- let e = z.current.getBoundingClientRect(), t = e.left;
33
- t + 280 > window.innerWidth - 16 && (t = e.right - 280), t = Math.max(16, t), R({
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
- }, [D]), i(() => {
39
+ }, [k]), i(() => {
39
40
  function e(e) {
40
41
  let t = e.target;
41
- z.current && !z.current.contains(t) && B.current && !B.current.contains(t) && O(!1);
42
+ V.current && !V.current.contains(t) && H.current && !H.current.contains(t) && A(!1);
42
43
  }
43
- if (D) return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
44
- }, [D]);
45
- let H = r((e) => {
46
- let t = _.find((t) => t.id === e);
47
- t && (S(e), h && h(t)), O(!1);
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
- S,
51
- h
52
- ]), U = r(async () => {
53
- if (j.trim()) {
50
+ y,
51
+ w,
52
+ g
53
+ ]), G = r(async () => {
54
+ if (N.trim()) {
54
55
  try {
55
- await x({
56
- dashboardId: f,
57
- name: j.trim(),
58
- description: N.trim() || void 0,
59
- filters: p,
60
- layout: m,
61
- isDefault: F
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
- A(!1), O(!1);
66
+ M(!1), A(!1);
66
67
  return;
67
68
  }
68
69
  throw t;
69
70
  }
70
- M(""), P(""), I(!1), A(!1);
71
+ P(""), I(""), R(!1), M(!1);
71
72
  }
72
73
  }, [
73
- f,
74
- j,
75
- N,
76
74
  p,
77
- m,
75
+ N,
78
76
  F,
79
- x
80
- ]), W = r(async () => {
81
- v && await C({
82
- id: v.id,
83
- filters: p,
84
- layout: m
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
- v,
88
- p,
88
+ b,
89
89
  m,
90
- C
91
- ]), G = r(async (e, t) => {
92
- t.stopPropagation(), window.confirm("Are you sure you want to delete this view?") && await w(e);
93
- }, [w]), K = r(async (e, t) => {
94
- t.stopPropagation(), await T(e);
95
- }, [T]), q = r(() => {
96
- E(), O(!1);
97
- }, [E]), J = D ? u(/* @__PURE__ */ l("div", {
98
- ref: B,
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: L.top,
102
- left: Math.max(16, L.left),
102
+ top: z.top,
103
+ left: Math.max(16, z.left),
103
104
  minWidth: "280px",
104
- backgroundColor: V,
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__ */ l("div", {
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__ */ c("span", {
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__ */ c("button", {
128
- onClick: () => A(!0),
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__ */ c("div", {
142
+ /* @__PURE__ */ l("div", {
142
143
  style: {
143
144
  maxHeight: "300px",
144
145
  overflowY: "auto"
145
146
  },
146
- children: y && _.length === 0 ? /* @__PURE__ */ c("div", {
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
- }) : _.length === 0 ? /* @__PURE__ */ c("div", {
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__ */ l(s, { children: [/* @__PURE__ */ c("button", {
161
- onClick: q,
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: v ? n.bgPrimary : n.bgSecondary,
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__ */ l("div", { children: [/* @__PURE__ */ c("div", {
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__ */ c("div", {
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
- }), _.map((e) => /* @__PURE__ */ l("div", {
188
- onClick: () => H(e.id),
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: v?.id === e.id ? n.bgSecondary : n.bgPrimary,
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__ */ l("div", {
199
+ children: [/* @__PURE__ */ u("div", {
199
200
  style: { flex: 1 },
200
201
  children: [
201
- /* @__PURE__ */ l("div", {
202
+ /* @__PURE__ */ u("div", {
202
203
  style: {
203
204
  display: "flex",
204
205
  alignItems: "center",
205
206
  gap: "6px"
206
207
  },
207
- children: [/* @__PURE__ */ c("span", {
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__ */ c("span", {
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__ */ c("div", {
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__ */ c("div", {
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__ */ l("div", {
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__ */ c("button", {
251
- onClick: (t) => K(e.id, 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__ */ c("button", {
263
- onClick: (t) => G(e.id, 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
- v && /* @__PURE__ */ c("div", {
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: W,
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, Y = k ? u(/* @__PURE__ */ c("div", {
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: () => A(!1),
319
- children: /* @__PURE__ */ l("div", {
315
+ onClick: () => M(!1),
316
+ children: /* @__PURE__ */ u("div", {
320
317
  style: {
321
318
  width: "400px",
322
- backgroundColor: V,
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__ */ c("div", {
329
+ /* @__PURE__ */ l("div", {
333
330
  style: {
334
331
  padding: "16px 20px",
335
332
  borderBottom: `1px solid ${n.borderDefault}`
336
333
  },
337
- children: /* @__PURE__ */ c("h3", {
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__ */ l("div", {
344
+ /* @__PURE__ */ u("div", {
348
345
  style: { padding: "20px" },
349
346
  children: [
350
- /* @__PURE__ */ l("div", {
347
+ /* @__PURE__ */ u("div", {
351
348
  style: { marginBottom: "16px" },
352
- children: [/* @__PURE__ */ c("label", {
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__ */ c("input", {
357
+ children: v("bigconsole.dashboards.savedViews.saveDialog.nameLabel", "View Name *")
358
+ }), /* @__PURE__ */ l("input", {
362
359
  type: "text",
363
- value: j,
364
- onChange: (e) => M(e.target.value),
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__ */ l("div", {
375
+ /* @__PURE__ */ u("div", {
379
376
  style: { marginBottom: "16px" },
380
- children: [/* @__PURE__ */ c("label", {
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__ */ c("textarea", {
390
- value: N,
391
- onChange: (e) => P(e.target.value),
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__ */ l("label", {
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__ */ c("input", {
411
+ children: [/* @__PURE__ */ l("input", {
415
412
  type: "checkbox",
416
- checked: F,
417
- onChange: (e) => I(e.target.checked)
418
- }), /* @__PURE__ */ c("span", {
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__ */ l("div", {
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__ */ c("button", {
438
- onClick: () => A(!1),
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__ */ c("button", {
450
- onClick: U,
451
- disabled: !j.trim(),
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: j.trim() ? n.actionPrimaryBg : n.bgSecondary,
455
- color: j.trim() ? "white" : n.textSecondary,
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: j.trim() ? "pointer" : "not-allowed",
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__ */ l("div", {
469
- className: g,
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__ */ l("button", {
476
- ref: z,
477
- onClick: () => O(!D),
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: v ? n.actionPrimaryBgSubtle : n.bgSecondary,
484
- border: `1px solid ${v ? n.actionPrimaryBg : n.borderDefault}`,
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: v ? n.actionPrimaryBg : n.textPrimary
485
+ color: b ? n.actionPrimaryBg : n.textPrimary
489
486
  },
490
- children: [/* @__PURE__ */ c("span", {
487
+ children: [/* @__PURE__ */ l("span", {
491
488
  style: { fontWeight: 500 },
492
- children: v ? v.name : "Views"
493
- }), /* @__PURE__ */ c("span", {
489
+ children: b ? b.name : v("bigconsole.dashboards.savedViews.triggerLabel", "Views")
490
+ }), /* @__PURE__ */ l("span", {
494
491
  style: { fontSize: "10px" },
495
- children: D ? "▲" : "▼"
492
+ children: k ? "▲" : "▼"
496
493
  })]
497
494
  }),
498
- J,
499
- Y
495
+ X,
496
+ Z
500
497
  ]
501
498
  });
502
499
  }
503
500
  //#endregion
504
- export { f as default };
501
+ export { p as default };
505
502
 
506
503
  //# sourceMappingURL=SavedViewsDropdown.js.map