@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
@@ -1,7 +1,8 @@
1
1
  import { useEffect as e, useRef as t, useState as n } from "react";
2
- import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
2
+ import { useI18n as r } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
3
+ import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
3
4
  //#region src/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.tsx
4
- var o = (e) => ({
5
+ var s = (e) => ({
5
6
  bgPrimary: e ? "#1f2937" : "#ffffff",
6
7
  bgSecondary: e ? "#374151" : "#f9fafb",
7
8
  textPrimary: e ? "#f9fafb" : "#111827",
@@ -17,7 +18,7 @@ var o = (e) => ({
17
18
  actionPrimaryText: e ? "#c7d2fe" : "#4338ca",
18
19
  backdropBg: "rgba(0, 0, 0, 0.5)"
19
20
  });
20
- function s() {
21
+ function c() {
21
22
  let [t, r] = n(!1);
22
23
  return e(() => {
23
24
  let e = () => {
@@ -31,12 +32,12 @@ function s() {
31
32
  }), () => t.disconnect();
32
33
  }, []), t;
33
34
  }
34
- function c(e, t) {
35
- if (e == null) return "All";
35
+ function l(e, t, n) {
36
+ if (e == null) return n("bigconsole.filters.chip.value.all", "All");
36
37
  switch (t) {
37
38
  case "DATE_RANGE": {
38
39
  let t = e;
39
- return t.start && t.end ? `${l(t.start)} - ${l(t.end)}` : "All dates";
40
+ return t.start && t.end ? `${u(t.start)} - ${u(t.end)}` : n("bigconsole.filters.chip.value.allDates", "All dates");
40
41
  }
41
42
  case "CATEGORY":
42
43
  if (Array.isArray(e) && e.length > 0) {
@@ -44,41 +45,41 @@ function c(e, t) {
44
45
  let t = e[0];
45
46
  return (typeof t == "object" && t ? t.label : t) || String(e[0]);
46
47
  }
47
- return `${e.length} selected`;
48
+ return n("bigconsole.filters.chip.value.countSelected", "{{count}} selected", { count: e.length });
48
49
  }
49
- return typeof e == "object" && e ? e.label || "All" : String(e) || "All";
50
- case "TEXT_SEARCH": return e || "Any";
50
+ return typeof e == "object" && e ? e.label || n("bigconsole.filters.chip.value.all", "All") : String(e) || n("bigconsole.filters.chip.value.all", "All");
51
+ case "TEXT_SEARCH": return e || n("bigconsole.filters.chip.value.any", "Any");
51
52
  case "NUMERIC_RANGE": {
52
53
  let t = e;
53
- return t.min !== void 0 && t.max !== void 0 ? `${t.min} - ${t.max}` : t.min === void 0 ? t.max === void 0 ? "Any" : `<= ${t.max}` : `>= ${t.min}`;
54
+ return t.min !== void 0 && t.max !== void 0 ? `${t.min} - ${t.max}` : t.min === void 0 ? t.max === void 0 ? n("bigconsole.filters.chip.value.any", "Any") : `<= ${t.max}` : `>= ${t.min}`;
54
55
  }
55
56
  case "CUSTOM": return typeof e == "object" ? JSON.stringify(e).substring(0, 30) + "..." : String(e);
56
57
  default: return String(e);
57
58
  }
58
59
  }
59
- function l(e) {
60
+ function u(e) {
60
61
  return new Date(e).toLocaleDateString("en-US", {
61
62
  month: "short",
62
63
  day: "numeric"
63
64
  });
64
65
  }
65
- function u({ filter: l, value: u, onChange: f, onEdit: p, onDelete: m }) {
66
- let [h, g] = n(!1), [_, v] = n(!1), y = t(null), b = t(null), x = o(s()), S = u != null && u !== "", C = c(u, l.type);
66
+ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
67
+ let { t: g } = r(), [_, 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);
67
68
  return e(() => {
68
69
  function e(e) {
69
- y.current && !y.current.contains(e.target) && (g(!1), v(!1));
70
+ x.current && !x.current.contains(e.target) && (v(!1), b(!1));
70
71
  }
71
72
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
72
- }, []), /* @__PURE__ */ a("div", {
73
- ref: y,
73
+ }, []), /* @__PURE__ */ o("div", {
74
+ ref: x,
74
75
  style: {
75
76
  position: "relative",
76
77
  display: "inline-flex",
77
78
  alignItems: "center",
78
79
  gap: "8px",
79
80
  padding: "8px 16px",
80
- backgroundColor: S ? x.actionPrimaryBgSubtle : x.bgPrimary,
81
- border: `2px solid ${S ? x.actionPrimaryBg : x.textTertiary}`,
81
+ backgroundColor: w ? C.actionPrimaryBgSubtle : C.bgPrimary,
82
+ border: `2px solid ${w ? C.actionPrimaryBg : C.textTertiary}`,
82
83
  borderRadius: "24px",
83
84
  fontSize: "15px",
84
85
  cursor: "pointer",
@@ -88,18 +89,18 @@ function u({ filter: l, value: u, onChange: f, onEdit: p, onDelete: m }) {
88
89
  minHeight: "36px"
89
90
  },
90
91
  children: [
91
- /* @__PURE__ */ a("span", {
92
+ /* @__PURE__ */ o("span", {
92
93
  style: {
93
94
  fontWeight: 700,
94
- color: S ? x.actionPrimaryText : x.textPrimary,
95
+ color: w ? C.actionPrimaryText : C.textPrimary,
95
96
  fontSize: "14px"
96
97
  },
97
- onClick: () => g(!h),
98
- children: [l.name, ":"]
98
+ onClick: () => v(!_),
99
+ children: [u.name, ":"]
99
100
  }),
100
- /* @__PURE__ */ i("span", {
101
+ /* @__PURE__ */ a("span", {
101
102
  style: {
102
- color: S ? x.actionPrimaryBg : x.textSecondary,
103
+ color: w ? C.actionPrimaryBg : C.textSecondary,
103
104
  maxWidth: "200px",
104
105
  overflow: "hidden",
105
106
  textOverflow: "ellipsis",
@@ -107,12 +108,12 @@ function u({ filter: l, value: u, onChange: f, onEdit: p, onDelete: m }) {
107
108
  fontWeight: 600,
108
109
  fontSize: "14px"
109
110
  },
110
- onClick: () => g(!h),
111
- children: C
111
+ onClick: () => v(!_),
112
+ children: T
112
113
  }),
113
- S && /* @__PURE__ */ i("button", {
114
+ w && /* @__PURE__ */ a("button", {
114
115
  onClick: (e) => {
115
- e.stopPropagation(), f(void 0);
116
+ e.stopPropagation(), p(void 0);
116
117
  },
117
118
  style: {
118
119
  display: "flex",
@@ -121,22 +122,22 @@ function u({ filter: l, value: u, onChange: f, onEdit: p, onDelete: m }) {
121
122
  width: "22px",
122
123
  height: "22px",
123
124
  padding: 0,
124
- backgroundColor: x.statusErrorBg,
125
+ backgroundColor: C.statusErrorBg,
125
126
  border: "none",
126
127
  borderRadius: "50%",
127
128
  cursor: "pointer",
128
- color: x.actionPrimaryFg,
129
+ color: C.actionPrimaryFg,
129
130
  fontSize: "14px",
130
131
  fontWeight: "bold",
131
132
  marginLeft: "4px",
132
133
  boxShadow: "0 1px 3px rgba(0,0,0,0.2)"
133
134
  },
134
- title: "Clear filter",
135
+ title: g("bigconsole.filters.chip.action.clear", "Clear filter"),
135
136
  children: "×"
136
137
  }),
137
- /* @__PURE__ */ i("button", {
138
+ /* @__PURE__ */ a("button", {
138
139
  onClick: (e) => {
139
- e.stopPropagation(), v(!_);
140
+ e.stopPropagation(), b(!y);
140
141
  },
141
142
  style: {
142
143
  display: "flex",
@@ -145,28 +146,28 @@ function u({ filter: l, value: u, onChange: f, onEdit: p, onDelete: m }) {
145
146
  width: "22px",
146
147
  height: "22px",
147
148
  padding: 0,
148
- backgroundColor: x.textTertiary,
149
+ backgroundColor: C.textTertiary,
149
150
  border: "none",
150
151
  borderRadius: "50%",
151
152
  cursor: "pointer",
152
- color: x.actionPrimaryFg,
153
+ color: C.actionPrimaryFg,
153
154
  fontSize: "16px",
154
155
  fontWeight: "bold",
155
156
  marginLeft: "4px",
156
157
  boxShadow: "0 1px 3px rgba(0,0,0,0.2)"
157
158
  },
158
- title: "Filter options",
159
+ title: g("bigconsole.filters.chip.action.options", "Filter options"),
159
160
  children: "⋮"
160
161
  }),
161
- h && /* @__PURE__ */ i(d, {
162
- filter: l,
163
- value: u,
162
+ _ && /* @__PURE__ */ a(f, {
163
+ filter: u,
164
+ value: d,
164
165
  onChange: (e) => {
165
- f(e), g(!1);
166
+ p(e), v(!1);
166
167
  },
167
- onClose: () => g(!1)
168
+ onClose: () => v(!1)
168
169
  }),
169
- _ && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("div", {
170
+ y && /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a("div", {
170
171
  style: {
171
172
  position: "fixed",
172
173
  top: 0,
@@ -176,26 +177,26 @@ function u({ filter: l, value: u, onChange: f, onEdit: p, onDelete: m }) {
176
177
  zIndex: 99998
177
178
  },
178
179
  onClick: (e) => {
179
- e.stopPropagation(), v(!1);
180
+ e.stopPropagation(), b(!1);
180
181
  }
181
- }), /* @__PURE__ */ a("div", {
182
- ref: b,
182
+ }), /* @__PURE__ */ o("div", {
183
+ ref: S,
183
184
  style: {
184
185
  position: "absolute",
185
186
  top: "100%",
186
187
  right: 0,
187
188
  marginTop: "8px",
188
189
  minWidth: "150px",
189
- backgroundColor: x.bgPrimary,
190
- border: `1px solid ${x.borderDefault}`,
190
+ backgroundColor: C.bgPrimary,
191
+ border: `1px solid ${C.borderDefault}`,
191
192
  borderRadius: "8px",
192
193
  boxShadow: "0 8px 24px rgba(0,0,0,0.2)",
193
194
  zIndex: 99999,
194
195
  overflow: "hidden"
195
196
  },
196
- children: [/* @__PURE__ */ i("button", {
197
+ children: [/* @__PURE__ */ o("button", {
197
198
  onClick: (e) => {
198
- e.stopPropagation(), v(!1), p();
199
+ e.stopPropagation(), b(!1), m();
199
200
  },
200
201
  style: {
201
202
  display: "flex",
@@ -206,16 +207,16 @@ function u({ filter: l, value: u, onChange: f, onEdit: p, onDelete: m }) {
206
207
  textAlign: "left",
207
208
  backgroundColor: "transparent",
208
209
  border: "none",
209
- borderBottom: `1px solid ${x.borderDefault}`,
210
+ borderBottom: `1px solid ${C.borderDefault}`,
210
211
  cursor: "pointer",
211
212
  fontSize: "14px",
212
- color: x.textPrimary,
213
+ color: C.textPrimary,
213
214
  fontWeight: 500
214
215
  },
215
- children: "✏️ Edit Filter"
216
- }), /* @__PURE__ */ i("button", {
216
+ children: ["✏️ ", g("bigconsole.filters.chip.menu.edit", "Edit Filter")]
217
+ }), /* @__PURE__ */ o("button", {
217
218
  onClick: (e) => {
218
- e.stopPropagation(), v(!1), m();
219
+ e.stopPropagation(), b(!1), h();
219
220
  },
220
221
  style: {
221
222
  display: "flex",
@@ -228,18 +229,18 @@ function u({ filter: l, value: u, onChange: f, onEdit: p, onDelete: m }) {
228
229
  border: "none",
229
230
  cursor: "pointer",
230
231
  fontSize: "14px",
231
- color: x.statusErrorText,
232
+ color: C.statusErrorText,
232
233
  fontWeight: 500
233
234
  },
234
- children: "🗑️ Delete Filter"
235
+ children: ["🗑️ ", g("bigconsole.filters.chip.menu.delete", "Delete Filter")]
235
236
  })]
236
237
  })] })
237
238
  ]
238
239
  });
239
240
  }
240
- function d({ filter: e, value: t, onChange: c, onClose: l }) {
241
- let [u, d] = n(t), f = o(s());
242
- return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("div", {
241
+ function f({ filter: e, value: t, onChange: l, onClose: u }) {
242
+ let { t: d } = r(), [f, p] = n(t), m = s(c());
243
+ return /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a("div", {
243
244
  style: {
244
245
  position: "fixed",
245
246
  top: 0,
@@ -248,8 +249,8 @@ function d({ filter: e, value: t, onChange: c, onClose: l }) {
248
249
  bottom: 0,
249
250
  zIndex: 99998
250
251
  },
251
- onClick: l
252
- }), /* @__PURE__ */ a("div", {
252
+ onClick: u
253
+ }), /* @__PURE__ */ o("div", {
253
254
  style: {
254
255
  position: "absolute",
255
256
  top: "100%",
@@ -257,193 +258,193 @@ function d({ filter: e, value: t, onChange: c, onClose: l }) {
257
258
  marginTop: "8px",
258
259
  minWidth: "280px",
259
260
  padding: "16px",
260
- backgroundColor: f.bgPrimary,
261
- border: `1px solid ${f.borderDefault}`,
261
+ backgroundColor: m.bgPrimary,
262
+ border: `1px solid ${m.borderDefault}`,
262
263
  borderRadius: "12px",
263
264
  boxShadow: "0 8px 24px rgba(0,0,0,0.25)",
264
265
  zIndex: 99999
265
266
  },
266
267
  onClick: (e) => e.stopPropagation(),
267
268
  children: [
268
- e.type === "TEXT_SEARCH" && /* @__PURE__ */ i("input", {
269
+ e.type === "TEXT_SEARCH" && /* @__PURE__ */ a("input", {
269
270
  type: "text",
270
- value: u || "",
271
- onChange: (e) => d(e.target.value),
272
- placeholder: "Search...",
271
+ value: f || "",
272
+ onChange: (e) => p(e.target.value),
273
+ placeholder: d("bigconsole.filters.chip.editor.searchPlaceholder", "Search..."),
273
274
  style: {
274
275
  width: "100%",
275
276
  padding: "8px",
276
- border: `1px solid ${f.borderDefault}`,
277
+ border: `1px solid ${m.borderDefault}`,
277
278
  borderRadius: "4px",
278
279
  fontSize: "13px",
279
280
  boxSizing: "border-box",
280
- backgroundColor: f.bgPrimary,
281
- color: f.textPrimary
281
+ backgroundColor: m.bgPrimary,
282
+ color: m.textPrimary
282
283
  }
283
284
  }),
284
- e.type === "CATEGORY" && /* @__PURE__ */ a("select", {
285
- value: u || "",
286
- onChange: (e) => d(e.target.value),
285
+ e.type === "CATEGORY" && /* @__PURE__ */ o("select", {
286
+ value: f || "",
287
+ onChange: (e) => p(e.target.value),
287
288
  style: {
288
289
  width: "100%",
289
290
  padding: "8px",
290
- border: `1px solid ${f.borderDefault}`,
291
+ border: `1px solid ${m.borderDefault}`,
291
292
  borderRadius: "4px",
292
293
  fontSize: "13px",
293
- backgroundColor: f.bgPrimary,
294
- color: f.textPrimary
294
+ backgroundColor: m.bgPrimary,
295
+ color: m.textPrimary
295
296
  },
296
- children: [/* @__PURE__ */ i("option", {
297
+ children: [/* @__PURE__ */ a("option", {
297
298
  value: "",
298
- children: "All"
299
- }), e.config.options?.map((e) => /* @__PURE__ */ i("option", {
299
+ children: d("bigconsole.filters.chip.editor.allOption", "All")
300
+ }), e.config.options?.map((e) => /* @__PURE__ */ a("option", {
300
301
  value: String(e.value),
301
302
  children: String(e.label)
302
303
  }, String(e.value)))]
303
304
  }),
304
305
  e.type === "DATE_RANGE" && (() => {
305
- let e = u || {};
306
- return /* @__PURE__ */ a("div", {
306
+ let e = f || {};
307
+ return /* @__PURE__ */ o("div", {
307
308
  style: {
308
309
  display: "flex",
309
310
  flexDirection: "column",
310
311
  gap: "8px"
311
312
  },
312
- children: [/* @__PURE__ */ i("input", {
313
+ children: [/* @__PURE__ */ a("input", {
313
314
  type: "date",
314
315
  value: e.start || "",
315
- onChange: (t) => d({
316
+ onChange: (t) => p({
316
317
  ...e,
317
318
  start: t.target.value
318
319
  }),
319
320
  style: {
320
321
  padding: "8px",
321
- border: `1px solid ${f.borderDefault}`,
322
+ border: `1px solid ${m.borderDefault}`,
322
323
  borderRadius: "4px",
323
324
  fontSize: "13px",
324
- backgroundColor: f.bgPrimary,
325
- color: f.textPrimary
325
+ backgroundColor: m.bgPrimary,
326
+ color: m.textPrimary
326
327
  }
327
- }), /* @__PURE__ */ i("input", {
328
+ }), /* @__PURE__ */ a("input", {
328
329
  type: "date",
329
330
  value: e.end || "",
330
- onChange: (t) => d({
331
+ onChange: (t) => p({
331
332
  ...e,
332
333
  end: t.target.value
333
334
  }),
334
335
  style: {
335
336
  padding: "8px",
336
- border: `1px solid ${f.borderDefault}`,
337
+ border: `1px solid ${m.borderDefault}`,
337
338
  borderRadius: "4px",
338
339
  fontSize: "13px",
339
- backgroundColor: f.bgPrimary,
340
- color: f.textPrimary
340
+ backgroundColor: m.bgPrimary,
341
+ color: m.textPrimary
341
342
  }
342
343
  })]
343
344
  });
344
345
  })(),
345
346
  e.type === "NUMERIC_RANGE" && (() => {
346
- let e = u || {};
347
- return /* @__PURE__ */ a("div", {
347
+ let e = f || {};
348
+ return /* @__PURE__ */ o("div", {
348
349
  style: {
349
350
  display: "flex",
350
351
  gap: "8px"
351
352
  },
352
- children: [/* @__PURE__ */ i("input", {
353
+ children: [/* @__PURE__ */ a("input", {
353
354
  type: "number",
354
355
  value: e.min ?? "",
355
- onChange: (t) => d({
356
+ onChange: (t) => p({
356
357
  ...e,
357
358
  min: t.target.value ? Number(t.target.value) : void 0
358
359
  }),
359
- placeholder: "Min",
360
+ placeholder: d("bigconsole.filters.chip.editor.minPlaceholder", "Min"),
360
361
  style: {
361
362
  flex: 1,
362
363
  padding: "8px",
363
- border: `1px solid ${f.borderDefault}`,
364
+ border: `1px solid ${m.borderDefault}`,
364
365
  borderRadius: "4px",
365
366
  fontSize: "13px",
366
- backgroundColor: f.bgPrimary,
367
- color: f.textPrimary
367
+ backgroundColor: m.bgPrimary,
368
+ color: m.textPrimary
368
369
  }
369
- }), /* @__PURE__ */ i("input", {
370
+ }), /* @__PURE__ */ a("input", {
370
371
  type: "number",
371
372
  value: e.max ?? "",
372
- onChange: (t) => d({
373
+ onChange: (t) => p({
373
374
  ...e,
374
375
  max: t.target.value ? Number(t.target.value) : void 0
375
376
  }),
376
- placeholder: "Max",
377
+ placeholder: d("bigconsole.filters.chip.editor.maxPlaceholder", "Max"),
377
378
  style: {
378
379
  flex: 1,
379
380
  padding: "8px",
380
- border: `1px solid ${f.borderDefault}`,
381
+ border: `1px solid ${m.borderDefault}`,
381
382
  borderRadius: "4px",
382
383
  fontSize: "13px",
383
- backgroundColor: f.bgPrimary,
384
- color: f.textPrimary
384
+ backgroundColor: m.bgPrimary,
385
+ color: m.textPrimary
385
386
  }
386
387
  })]
387
388
  });
388
389
  })(),
389
- e.type === "CUSTOM" && /* @__PURE__ */ i("input", {
390
+ e.type === "CUSTOM" && /* @__PURE__ */ a("input", {
390
391
  type: "text",
391
- value: typeof u == "string" ? u : JSON.stringify(u || ""),
392
- onChange: (e) => d(e.target.value),
393
- placeholder: "Custom filter value...",
392
+ value: typeof f == "string" ? f : JSON.stringify(f || ""),
393
+ onChange: (e) => p(e.target.value),
394
+ placeholder: d("bigconsole.filters.chip.editor.customPlaceholder", "Custom filter value..."),
394
395
  style: {
395
396
  width: "100%",
396
397
  padding: "8px",
397
- border: `1px solid ${f.borderDefault}`,
398
+ border: `1px solid ${m.borderDefault}`,
398
399
  borderRadius: "4px",
399
400
  fontSize: "13px",
400
401
  boxSizing: "border-box",
401
- backgroundColor: f.bgPrimary,
402
- color: f.textPrimary
402
+ backgroundColor: m.bgPrimary,
403
+ color: m.textPrimary
403
404
  }
404
405
  }),
405
- /* @__PURE__ */ a("div", {
406
+ /* @__PURE__ */ o("div", {
406
407
  style: {
407
408
  marginTop: "16px",
408
409
  display: "flex",
409
410
  justifyContent: "flex-end",
410
411
  gap: "10px"
411
412
  },
412
- children: [/* @__PURE__ */ i("button", {
413
- onClick: l,
413
+ children: [/* @__PURE__ */ a("button", {
414
+ onClick: u,
414
415
  style: {
415
416
  padding: "8px 16px",
416
417
  fontSize: "14px",
417
- backgroundColor: f.bgPrimary,
418
- border: `1px solid ${f.borderDefault}`,
418
+ backgroundColor: m.bgPrimary,
419
+ border: `1px solid ${m.borderDefault}`,
419
420
  borderRadius: "6px",
420
421
  cursor: "pointer",
421
- color: f.textSecondary,
422
+ color: m.textSecondary,
422
423
  fontWeight: 500
423
424
  },
424
- children: "Cancel"
425
- }), /* @__PURE__ */ i("button", {
425
+ children: d("bigconsole.filters.chip.editor.cancel", "Cancel")
426
+ }), /* @__PURE__ */ a("button", {
426
427
  onClick: () => {
427
- c(u);
428
+ l(f);
428
429
  },
429
430
  style: {
430
431
  padding: "8px 16px",
431
432
  fontSize: "14px",
432
- backgroundColor: f.actionPrimaryBg,
433
- color: f.actionPrimaryFg,
433
+ backgroundColor: m.actionPrimaryBg,
434
+ color: m.actionPrimaryFg,
434
435
  border: "none",
435
436
  borderRadius: "6px",
436
437
  cursor: "pointer",
437
438
  fontWeight: 500,
438
439
  boxShadow: "0 2px 4px rgba(99, 102, 241, 0.3)"
439
440
  },
440
- children: "Apply"
441
+ children: d("bigconsole.filters.chip.editor.apply", "Apply")
441
442
  })]
442
443
  })
443
444
  ]
444
445
  })] });
445
446
  }
446
447
  //#endregion
447
- export { u as default };
448
+ export { d as default };
448
449
 
449
450
  //# sourceMappingURL=FilterChip.js.map