@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
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useEffect as e, useRef as t, useState as n } from "react";
|
|
2
|
-
import {
|
|
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
|
|
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
|
|
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
|
|
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 ? `${
|
|
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
|
|
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
|
|
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
|
|
66
|
-
let [
|
|
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
|
-
|
|
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__ */
|
|
73
|
-
ref:
|
|
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:
|
|
81
|
-
border: `2px solid ${
|
|
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__ */
|
|
92
|
+
/* @__PURE__ */ o("span", {
|
|
92
93
|
style: {
|
|
93
94
|
fontWeight: 700,
|
|
94
|
-
color:
|
|
95
|
+
color: w ? C.actionPrimaryText : C.textPrimary,
|
|
95
96
|
fontSize: "14px"
|
|
96
97
|
},
|
|
97
|
-
onClick: () =>
|
|
98
|
-
children: [
|
|
98
|
+
onClick: () => v(!_),
|
|
99
|
+
children: [u.name, ":"]
|
|
99
100
|
}),
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ a("span", {
|
|
101
102
|
style: {
|
|
102
|
-
color:
|
|
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: () =>
|
|
111
|
-
children:
|
|
111
|
+
onClick: () => v(!_),
|
|
112
|
+
children: T
|
|
112
113
|
}),
|
|
113
|
-
|
|
114
|
+
w && /* @__PURE__ */ a("button", {
|
|
114
115
|
onClick: (e) => {
|
|
115
|
-
e.stopPropagation(),
|
|
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:
|
|
125
|
+
backgroundColor: C.statusErrorBg,
|
|
125
126
|
border: "none",
|
|
126
127
|
borderRadius: "50%",
|
|
127
128
|
cursor: "pointer",
|
|
128
|
-
color:
|
|
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__ */
|
|
138
|
+
/* @__PURE__ */ a("button", {
|
|
138
139
|
onClick: (e) => {
|
|
139
|
-
e.stopPropagation(),
|
|
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:
|
|
149
|
+
backgroundColor: C.textTertiary,
|
|
149
150
|
border: "none",
|
|
150
151
|
borderRadius: "50%",
|
|
151
152
|
cursor: "pointer",
|
|
152
|
-
color:
|
|
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
|
-
|
|
162
|
-
filter:
|
|
163
|
-
value:
|
|
162
|
+
_ && /* @__PURE__ */ a(f, {
|
|
163
|
+
filter: u,
|
|
164
|
+
value: d,
|
|
164
165
|
onChange: (e) => {
|
|
165
|
-
|
|
166
|
+
p(e), v(!1);
|
|
166
167
|
},
|
|
167
|
-
onClose: () =>
|
|
168
|
+
onClose: () => v(!1)
|
|
168
169
|
}),
|
|
169
|
-
|
|
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(),
|
|
180
|
+
e.stopPropagation(), b(!1);
|
|
180
181
|
}
|
|
181
|
-
}), /* @__PURE__ */
|
|
182
|
-
ref:
|
|
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:
|
|
190
|
-
border: `1px solid ${
|
|
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__ */
|
|
197
|
+
children: [/* @__PURE__ */ o("button", {
|
|
197
198
|
onClick: (e) => {
|
|
198
|
-
e.stopPropagation(),
|
|
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 ${
|
|
210
|
+
borderBottom: `1px solid ${C.borderDefault}`,
|
|
210
211
|
cursor: "pointer",
|
|
211
212
|
fontSize: "14px",
|
|
212
|
-
color:
|
|
213
|
+
color: C.textPrimary,
|
|
213
214
|
fontWeight: 500
|
|
214
215
|
},
|
|
215
|
-
children: "✏️ Edit Filter"
|
|
216
|
-
}), /* @__PURE__ */
|
|
216
|
+
children: ["✏️ ", g("bigconsole.filters.chip.menu.edit", "Edit Filter")]
|
|
217
|
+
}), /* @__PURE__ */ o("button", {
|
|
217
218
|
onClick: (e) => {
|
|
218
|
-
e.stopPropagation(),
|
|
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:
|
|
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
|
|
241
|
-
let [
|
|
242
|
-
return /* @__PURE__ */
|
|
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:
|
|
252
|
-
}), /* @__PURE__ */
|
|
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:
|
|
261
|
-
border: `1px solid ${
|
|
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__ */
|
|
269
|
+
e.type === "TEXT_SEARCH" && /* @__PURE__ */ a("input", {
|
|
269
270
|
type: "text",
|
|
270
|
-
value:
|
|
271
|
-
onChange: (e) =>
|
|
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 ${
|
|
277
|
+
border: `1px solid ${m.borderDefault}`,
|
|
277
278
|
borderRadius: "4px",
|
|
278
279
|
fontSize: "13px",
|
|
279
280
|
boxSizing: "border-box",
|
|
280
|
-
backgroundColor:
|
|
281
|
-
color:
|
|
281
|
+
backgroundColor: m.bgPrimary,
|
|
282
|
+
color: m.textPrimary
|
|
282
283
|
}
|
|
283
284
|
}),
|
|
284
|
-
e.type === "CATEGORY" && /* @__PURE__ */
|
|
285
|
-
value:
|
|
286
|
-
onChange: (e) =>
|
|
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 ${
|
|
291
|
+
border: `1px solid ${m.borderDefault}`,
|
|
291
292
|
borderRadius: "4px",
|
|
292
293
|
fontSize: "13px",
|
|
293
|
-
backgroundColor:
|
|
294
|
-
color:
|
|
294
|
+
backgroundColor: m.bgPrimary,
|
|
295
|
+
color: m.textPrimary
|
|
295
296
|
},
|
|
296
|
-
children: [/* @__PURE__ */
|
|
297
|
+
children: [/* @__PURE__ */ a("option", {
|
|
297
298
|
value: "",
|
|
298
|
-
children: "All"
|
|
299
|
-
}), e.config.options?.map((e) => /* @__PURE__ */
|
|
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 =
|
|
306
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
313
|
+
children: [/* @__PURE__ */ a("input", {
|
|
313
314
|
type: "date",
|
|
314
315
|
value: e.start || "",
|
|
315
|
-
onChange: (t) =>
|
|
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 ${
|
|
322
|
+
border: `1px solid ${m.borderDefault}`,
|
|
322
323
|
borderRadius: "4px",
|
|
323
324
|
fontSize: "13px",
|
|
324
|
-
backgroundColor:
|
|
325
|
-
color:
|
|
325
|
+
backgroundColor: m.bgPrimary,
|
|
326
|
+
color: m.textPrimary
|
|
326
327
|
}
|
|
327
|
-
}), /* @__PURE__ */
|
|
328
|
+
}), /* @__PURE__ */ a("input", {
|
|
328
329
|
type: "date",
|
|
329
330
|
value: e.end || "",
|
|
330
|
-
onChange: (t) =>
|
|
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 ${
|
|
337
|
+
border: `1px solid ${m.borderDefault}`,
|
|
337
338
|
borderRadius: "4px",
|
|
338
339
|
fontSize: "13px",
|
|
339
|
-
backgroundColor:
|
|
340
|
-
color:
|
|
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 =
|
|
347
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
353
|
+
children: [/* @__PURE__ */ a("input", {
|
|
353
354
|
type: "number",
|
|
354
355
|
value: e.min ?? "",
|
|
355
|
-
onChange: (t) =>
|
|
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 ${
|
|
364
|
+
border: `1px solid ${m.borderDefault}`,
|
|
364
365
|
borderRadius: "4px",
|
|
365
366
|
fontSize: "13px",
|
|
366
|
-
backgroundColor:
|
|
367
|
-
color:
|
|
367
|
+
backgroundColor: m.bgPrimary,
|
|
368
|
+
color: m.textPrimary
|
|
368
369
|
}
|
|
369
|
-
}), /* @__PURE__ */
|
|
370
|
+
}), /* @__PURE__ */ a("input", {
|
|
370
371
|
type: "number",
|
|
371
372
|
value: e.max ?? "",
|
|
372
|
-
onChange: (t) =>
|
|
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 ${
|
|
381
|
+
border: `1px solid ${m.borderDefault}`,
|
|
381
382
|
borderRadius: "4px",
|
|
382
383
|
fontSize: "13px",
|
|
383
|
-
backgroundColor:
|
|
384
|
-
color:
|
|
384
|
+
backgroundColor: m.bgPrimary,
|
|
385
|
+
color: m.textPrimary
|
|
385
386
|
}
|
|
386
387
|
})]
|
|
387
388
|
});
|
|
388
389
|
})(),
|
|
389
|
-
e.type === "CUSTOM" && /* @__PURE__ */
|
|
390
|
+
e.type === "CUSTOM" && /* @__PURE__ */ a("input", {
|
|
390
391
|
type: "text",
|
|
391
|
-
value: typeof
|
|
392
|
-
onChange: (e) =>
|
|
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 ${
|
|
398
|
+
border: `1px solid ${m.borderDefault}`,
|
|
398
399
|
borderRadius: "4px",
|
|
399
400
|
fontSize: "13px",
|
|
400
401
|
boxSizing: "border-box",
|
|
401
|
-
backgroundColor:
|
|
402
|
-
color:
|
|
402
|
+
backgroundColor: m.bgPrimary,
|
|
403
|
+
color: m.textPrimary
|
|
403
404
|
}
|
|
404
405
|
}),
|
|
405
|
-
/* @__PURE__ */
|
|
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__ */
|
|
413
|
-
onClick:
|
|
413
|
+
children: [/* @__PURE__ */ a("button", {
|
|
414
|
+
onClick: u,
|
|
414
415
|
style: {
|
|
415
416
|
padding: "8px 16px",
|
|
416
417
|
fontSize: "14px",
|
|
417
|
-
backgroundColor:
|
|
418
|
-
border: `1px solid ${
|
|
418
|
+
backgroundColor: m.bgPrimary,
|
|
419
|
+
border: `1px solid ${m.borderDefault}`,
|
|
419
420
|
borderRadius: "6px",
|
|
420
421
|
cursor: "pointer",
|
|
421
|
-
color:
|
|
422
|
+
color: m.textSecondary,
|
|
422
423
|
fontWeight: 500
|
|
423
424
|
},
|
|
424
|
-
children: "Cancel"
|
|
425
|
-
}), /* @__PURE__ */
|
|
425
|
+
children: d("bigconsole.filters.chip.editor.cancel", "Cancel")
|
|
426
|
+
}), /* @__PURE__ */ a("button", {
|
|
426
427
|
onClick: () => {
|
|
427
|
-
|
|
428
|
+
l(f);
|
|
428
429
|
},
|
|
429
430
|
style: {
|
|
430
431
|
padding: "8px 16px",
|
|
431
432
|
fontSize: "14px",
|
|
432
|
-
backgroundColor:
|
|
433
|
-
color:
|
|
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 {
|
|
448
|
+
export { d as default };
|
|
448
449
|
|
|
449
450
|
//# sourceMappingURL=FilterChip.js.map
|