@burdenoff/microfe-bigconsole 2026.1008.11 → 2026.1008.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bigconsole/BigConsoleRoutes.d.ts.map +1 -1
- package/dist/bigconsole/BigConsoleRoutes.js +136 -127
- package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
- package/dist/bigconsole/assistant/assistantProduct.d.ts.map +1 -1
- package/dist/bigconsole/assistant/assistantProduct.js +3 -1
- package/dist/bigconsole/assistant/assistantProduct.js.map +1 -1
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +44 -44
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +36 -36
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +59 -59
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +15 -15
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +41 -41
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +34 -34
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +110 -110
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +21 -21
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +91 -91
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -101
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +31 -31
- package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.js +15 -15
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +46 -46
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +37 -37
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js +66 -66
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
- package/dist/bigconsole/components/datasink/DataSinkCard.js +29 -29
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +47 -47
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +91 -91
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
- package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
- package/dist/bigconsole/components/parser/ImportParserDialog.js +120 -120
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +10 -10
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +27 -27
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +30 -30
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.d.ts.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +507 -499
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +4 -4
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
- package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
- package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
- package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
- package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js +15 -15
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +15 -15
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +9 -9
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +67 -67
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +15 -0
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +34 -0
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js.map +1 -0
- package/dist/bigconsole/hooks/useDrilldown.js +3 -3
- package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
- package/dist/bigconsole/pages/AdminPage.js +130 -130
- package/dist/bigconsole/pages/DashboardBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.js +72 -60
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +1 -1
- package/dist/bigconsole/pages/DataSinkAlertsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DataSinkAlertsPage.js +30 -23
- package/dist/bigconsole/pages/DataSinkAlertsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +273 -264
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +1 -1
- package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
- package/dist/bigconsole/pages/InsightsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +279 -265
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/OverviewPage.js +47 -47
- package/dist/bigconsole/pages/OverviewPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +229 -213
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +97 -97
- package/dist/bigconsole/pages/PipelineBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +256 -214
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
- package/dist/bigconsole/pages/PipelinesPage.js +88 -88
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +179 -173
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
- package/dist/bigconsole/pages/WorkflowViewPage.js +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +141 -141
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +34 -34
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +79 -79
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
- package/dist/bigconsole/store/widgetStore.d.ts +12 -0
- package/dist/bigconsole/store/widgetStore.d.ts.map +1 -1
- package/dist/bigconsole/store/widgetStore.js +3 -1
- package/dist/bigconsole/store/widgetStore.js.map +1 -1
- package/dist/bigconsole/utils/formDirty.d.ts +83 -0
- package/dist/bigconsole/utils/formDirty.d.ts.map +1 -0
- package/dist/bigconsole/utils/formDirty.js +23 -0
- package/dist/bigconsole/utils/formDirty.js.map +1 -0
- package/dist/bigconsole/utils/insightsDraft.d.ts +30 -0
- package/dist/bigconsole/utils/insightsDraft.d.ts.map +1 -0
- package/dist/bigconsole/utils/insightsDraft.js +10 -0
- package/dist/bigconsole/utils/insightsDraft.js.map +1 -0
- package/dist/bigconsole/utils/layoutBaseline.d.ts +131 -0
- package/dist/bigconsole/utils/layoutBaseline.d.ts.map +1 -0
- package/dist/bigconsole/utils/layoutBaseline.js +98 -0
- package/dist/bigconsole/utils/layoutBaseline.js.map +1 -0
- package/dist/bigconsole/utils/widgetFormDirty.d.ts +17 -0
- package/dist/bigconsole/utils/widgetFormDirty.d.ts.map +1 -0
- package/dist/bigconsole/utils/widgetFormDirty.js +15 -0
- package/dist/bigconsole/utils/widgetFormDirty.js.map +1 -0
- package/dist/translations/en.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect as e, useMemo as t, useState as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useI18n as r } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
3
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
4
|
//#region src/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.tsx
|
|
5
5
|
var o = (e) => ({
|
|
6
6
|
bgPrimary: e ? "#1f2937" : "#ffffff",
|
|
@@ -17,7 +17,7 @@ var o = (e) => ({
|
|
|
17
17
|
backdropBg: "rgba(0, 0, 0, 0.5)"
|
|
18
18
|
});
|
|
19
19
|
function s({ filter: s, onSave: c, onClose: l }) {
|
|
20
|
-
let { t: u } =
|
|
20
|
+
let { t: u } = r(), [d, f] = n(!1), [p, m] = n(!1), [h, g] = n(s?.name || ""), [_, v] = n(s?.type || "CATEGORY"), [y, b] = n(s?.isRequired || !1), [x, S] = n(s?.config?.options || [{
|
|
21
21
|
value: "",
|
|
22
22
|
label: ""
|
|
23
23
|
}]), [C, w] = n(typeof s?.config?.field == "string" ? s.config.field : ""), [T, E] = n(s?.config?.placeholder || ""), [D, O] = n(!1);
|
|
@@ -88,7 +88,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
88
88
|
f(!1);
|
|
89
89
|
}
|
|
90
90
|
}, I = h.trim() !== "" && (_ !== "CATEGORY" || x.some((e) => e.value && e.label));
|
|
91
|
-
return /* @__PURE__ */
|
|
91
|
+
return /* @__PURE__ */ i("div", {
|
|
92
92
|
style: {
|
|
93
93
|
position: "fixed",
|
|
94
94
|
top: 0,
|
|
@@ -105,7 +105,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
105
105
|
isolation: "isolate"
|
|
106
106
|
},
|
|
107
107
|
onClick: l,
|
|
108
|
-
children: /* @__PURE__ */
|
|
108
|
+
children: /* @__PURE__ */ a("div", {
|
|
109
109
|
style: {
|
|
110
110
|
width: "100%",
|
|
111
111
|
maxWidth: "min(480px, calc(100vw - 2rem))",
|
|
@@ -118,7 +118,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
118
118
|
},
|
|
119
119
|
onClick: (e) => e.stopPropagation(),
|
|
120
120
|
children: [
|
|
121
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ a("div", {
|
|
122
122
|
style: {
|
|
123
123
|
padding: "16px 20px",
|
|
124
124
|
borderBottom: `1px solid ${k.borderDefault}`,
|
|
@@ -127,7 +127,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
127
127
|
justifyContent: "space-between",
|
|
128
128
|
backgroundColor: k.bgPrimary
|
|
129
129
|
},
|
|
130
|
-
children: [/* @__PURE__ */
|
|
130
|
+
children: [/* @__PURE__ */ i("h3", {
|
|
131
131
|
style: {
|
|
132
132
|
margin: 0,
|
|
133
133
|
fontSize: "16px",
|
|
@@ -135,7 +135,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
135
135
|
color: k.textPrimary
|
|
136
136
|
},
|
|
137
137
|
children: A ? u("bigconsole.filters.editor.title.edit", "Edit Filter") : u("bigconsole.filters.editor.title.add", "Add Filter")
|
|
138
|
-
}), /* @__PURE__ */
|
|
138
|
+
}), /* @__PURE__ */ i("button", {
|
|
139
139
|
onClick: l,
|
|
140
140
|
style: {
|
|
141
141
|
background: "none",
|
|
@@ -148,7 +148,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
148
148
|
children: "×"
|
|
149
149
|
})]
|
|
150
150
|
}),
|
|
151
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ a("div", {
|
|
152
152
|
style: {
|
|
153
153
|
padding: "20px",
|
|
154
154
|
overflowY: "auto",
|
|
@@ -156,9 +156,9 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
156
156
|
backgroundColor: k.bgPrimary
|
|
157
157
|
},
|
|
158
158
|
children: [
|
|
159
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ a("div", {
|
|
160
160
|
style: { marginBottom: "16px" },
|
|
161
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ i("label", {
|
|
162
162
|
style: {
|
|
163
163
|
display: "block",
|
|
164
164
|
marginBottom: "6px",
|
|
@@ -167,7 +167,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
167
167
|
color: k.textPrimary
|
|
168
168
|
},
|
|
169
169
|
children: u("bigconsole.filters.editor.field.name.label", "Filter Name *")
|
|
170
|
-
}), /* @__PURE__ */
|
|
170
|
+
}), /* @__PURE__ */ i("input", {
|
|
171
171
|
type: "text",
|
|
172
172
|
value: h,
|
|
173
173
|
onChange: (e) => g(e.target.value),
|
|
@@ -184,35 +184,35 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
184
184
|
}
|
|
185
185
|
})]
|
|
186
186
|
}),
|
|
187
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ a("div", {
|
|
188
188
|
style: { marginBottom: "16px" },
|
|
189
189
|
children: [
|
|
190
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ i("label", {
|
|
191
191
|
htmlFor: "global-filter-data-field",
|
|
192
192
|
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
193
193
|
children: u("bigconsole.filters.editor.dataField", "Data field (optional)")
|
|
194
194
|
}),
|
|
195
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ i("input", {
|
|
196
196
|
id: "global-filter-data-field",
|
|
197
197
|
value: C,
|
|
198
198
|
onChange: (e) => w(e.target.value),
|
|
199
199
|
className: "w-full rounded-button border border-border-subtle bg-bg-surface px-3 py-2 text-text-primary",
|
|
200
200
|
placeholder: u("bigconsole.filters.editor.dataFieldPlaceholder", "e.g., region, country, cohort")
|
|
201
201
|
}),
|
|
202
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ i("p", {
|
|
203
203
|
className: "mt-1 text-xs text-text-secondary",
|
|
204
204
|
children: u("bigconsole.filters.editor.dataFieldHelp", "Match a field in the parser output. Leave blank to use automatic matching.")
|
|
205
205
|
})
|
|
206
206
|
]
|
|
207
207
|
}),
|
|
208
|
-
p && /* @__PURE__ */
|
|
208
|
+
p && /* @__PURE__ */ i("p", {
|
|
209
209
|
role: "alert",
|
|
210
210
|
className: "mb-3 text-sm text-status-error-text",
|
|
211
211
|
children: u("bigconsole.filters.editor.saveError", "The filter could not be saved. Your changes are still here; try again.")
|
|
212
212
|
}),
|
|
213
|
-
!A && /* @__PURE__ */
|
|
213
|
+
!A && /* @__PURE__ */ a("div", {
|
|
214
214
|
style: { marginBottom: "16px" },
|
|
215
|
-
children: [/* @__PURE__ */
|
|
215
|
+
children: [/* @__PURE__ */ i("label", {
|
|
216
216
|
style: {
|
|
217
217
|
display: "block",
|
|
218
218
|
marginBottom: "8px",
|
|
@@ -221,13 +221,13 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
221
221
|
color: k.textPrimary
|
|
222
222
|
},
|
|
223
223
|
children: u("bigconsole.filters.editor.field.type.label", "Filter Type *")
|
|
224
|
-
}), /* @__PURE__ */
|
|
224
|
+
}), /* @__PURE__ */ i("div", {
|
|
225
225
|
style: {
|
|
226
226
|
display: "grid",
|
|
227
227
|
gridTemplateColumns: "repeat(2, 1fr)",
|
|
228
228
|
gap: "10px"
|
|
229
229
|
},
|
|
230
|
-
children: j.map((e) => /* @__PURE__ */
|
|
230
|
+
children: j.map((e) => /* @__PURE__ */ a("button", {
|
|
231
231
|
onClick: () => v(e.value),
|
|
232
232
|
type: "button",
|
|
233
233
|
style: {
|
|
@@ -240,14 +240,14 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
240
240
|
transition: "all 0.2s ease",
|
|
241
241
|
minHeight: "60px"
|
|
242
242
|
},
|
|
243
|
-
children: [/* @__PURE__ */
|
|
243
|
+
children: [/* @__PURE__ */ i("div", {
|
|
244
244
|
style: {
|
|
245
245
|
fontWeight: 500,
|
|
246
246
|
fontSize: "13px",
|
|
247
247
|
color: k.textPrimary
|
|
248
248
|
},
|
|
249
249
|
children: e.label
|
|
250
|
-
}), /* @__PURE__ */
|
|
250
|
+
}), /* @__PURE__ */ i("div", {
|
|
251
251
|
style: {
|
|
252
252
|
fontSize: "11px",
|
|
253
253
|
color: k.textSecondary,
|
|
@@ -259,9 +259,9 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
259
259
|
}, e.value))
|
|
260
260
|
})]
|
|
261
261
|
}),
|
|
262
|
-
_ === "CATEGORY" && /* @__PURE__ */
|
|
262
|
+
_ === "CATEGORY" && /* @__PURE__ */ a("div", {
|
|
263
263
|
style: { marginBottom: "16px" },
|
|
264
|
-
children: [/* @__PURE__ */
|
|
264
|
+
children: [/* @__PURE__ */ i("label", {
|
|
265
265
|
style: {
|
|
266
266
|
display: "block",
|
|
267
267
|
marginBottom: "8px",
|
|
@@ -270,20 +270,20 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
270
270
|
color: k.textPrimary
|
|
271
271
|
},
|
|
272
272
|
children: u("bigconsole.filters.editor.field.options.label", "Options")
|
|
273
|
-
}), /* @__PURE__ */
|
|
273
|
+
}), /* @__PURE__ */ a("div", {
|
|
274
274
|
style: {
|
|
275
275
|
display: "flex",
|
|
276
276
|
flexDirection: "column",
|
|
277
277
|
gap: "8px"
|
|
278
278
|
},
|
|
279
|
-
children: [x.map((e, t) => /* @__PURE__ */
|
|
279
|
+
children: [x.map((e, t) => /* @__PURE__ */ a("div", {
|
|
280
280
|
style: {
|
|
281
281
|
display: "flex",
|
|
282
282
|
gap: "8px",
|
|
283
283
|
alignItems: "center"
|
|
284
284
|
},
|
|
285
285
|
children: [
|
|
286
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ i("input", {
|
|
287
287
|
type: "text",
|
|
288
288
|
value: e.value,
|
|
289
289
|
onChange: (e) => P(t, "value", e.target.value),
|
|
@@ -299,7 +299,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
299
299
|
color: k.textPrimary
|
|
300
300
|
}
|
|
301
301
|
}),
|
|
302
|
-
/* @__PURE__ */
|
|
302
|
+
/* @__PURE__ */ i("input", {
|
|
303
303
|
type: "text",
|
|
304
304
|
value: e.label,
|
|
305
305
|
onChange: (e) => P(t, "label", e.target.value),
|
|
@@ -315,7 +315,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
315
315
|
color: k.textPrimary
|
|
316
316
|
}
|
|
317
317
|
}),
|
|
318
|
-
x.length > 1 && /* @__PURE__ */
|
|
318
|
+
x.length > 1 && /* @__PURE__ */ i("button", {
|
|
319
319
|
type: "button",
|
|
320
320
|
onClick: () => N(t),
|
|
321
321
|
style: {
|
|
@@ -330,7 +330,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
330
330
|
children: u("bigconsole.filters.editor.field.options.remove", "Remove")
|
|
331
331
|
})
|
|
332
332
|
]
|
|
333
|
-
}, t)), /* @__PURE__ */
|
|
333
|
+
}, t)), /* @__PURE__ */ i("button", {
|
|
334
334
|
type: "button",
|
|
335
335
|
onClick: M,
|
|
336
336
|
style: {
|
|
@@ -346,9 +346,9 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
346
346
|
})]
|
|
347
347
|
})]
|
|
348
348
|
}),
|
|
349
|
-
(_ === "TEXT_SEARCH" || _ === "CATEGORY") && /* @__PURE__ */
|
|
349
|
+
(_ === "TEXT_SEARCH" || _ === "CATEGORY") && /* @__PURE__ */ a("div", {
|
|
350
350
|
style: { marginBottom: "16px" },
|
|
351
|
-
children: [/* @__PURE__ */
|
|
351
|
+
children: [/* @__PURE__ */ i("label", {
|
|
352
352
|
style: {
|
|
353
353
|
display: "block",
|
|
354
354
|
marginBottom: "8px",
|
|
@@ -357,7 +357,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
357
357
|
color: k.textPrimary
|
|
358
358
|
},
|
|
359
359
|
children: u("bigconsole.filters.editor.field.placeholder.label", "Placeholder Text")
|
|
360
|
-
}), /* @__PURE__ */
|
|
360
|
+
}), /* @__PURE__ */ i("input", {
|
|
361
361
|
type: "text",
|
|
362
362
|
value: T,
|
|
363
363
|
onChange: (e) => E(e.target.value),
|
|
@@ -374,16 +374,16 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
374
374
|
}
|
|
375
375
|
})]
|
|
376
376
|
}),
|
|
377
|
-
/* @__PURE__ */
|
|
377
|
+
/* @__PURE__ */ i("div", {
|
|
378
378
|
style: { marginBottom: "16px" },
|
|
379
|
-
children: /* @__PURE__ */
|
|
379
|
+
children: /* @__PURE__ */ a("label", {
|
|
380
380
|
style: {
|
|
381
381
|
display: "flex",
|
|
382
382
|
alignItems: "center",
|
|
383
383
|
gap: "8px",
|
|
384
384
|
cursor: "pointer"
|
|
385
385
|
},
|
|
386
|
-
children: [/* @__PURE__ */
|
|
386
|
+
children: [/* @__PURE__ */ i("input", {
|
|
387
387
|
type: "checkbox",
|
|
388
388
|
checked: y,
|
|
389
389
|
onChange: (e) => b(e.target.checked),
|
|
@@ -391,7 +391,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
391
391
|
width: "16px",
|
|
392
392
|
height: "16px"
|
|
393
393
|
}
|
|
394
|
-
}), /* @__PURE__ */
|
|
394
|
+
}), /* @__PURE__ */ i("span", {
|
|
395
395
|
style: {
|
|
396
396
|
fontSize: "13px",
|
|
397
397
|
color: k.textPrimary
|
|
@@ -402,7 +402,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
402
402
|
})
|
|
403
403
|
]
|
|
404
404
|
}),
|
|
405
|
-
/* @__PURE__ */
|
|
405
|
+
/* @__PURE__ */ a("div", {
|
|
406
406
|
style: {
|
|
407
407
|
padding: "16px 20px",
|
|
408
408
|
borderTop: `1px solid ${k.borderDefault}`,
|
|
@@ -411,7 +411,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
411
411
|
gap: "12px",
|
|
412
412
|
backgroundColor: k.bgPrimary
|
|
413
413
|
},
|
|
414
|
-
children: [/* @__PURE__ */
|
|
414
|
+
children: [/* @__PURE__ */ i("button", {
|
|
415
415
|
type: "button",
|
|
416
416
|
onClick: l,
|
|
417
417
|
style: {
|
|
@@ -424,7 +424,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
424
424
|
color: k.textSecondary
|
|
425
425
|
},
|
|
426
426
|
children: u("bigconsole.filters.editor.action.cancel", "Cancel")
|
|
427
|
-
}), /* @__PURE__ */
|
|
427
|
+
}), /* @__PURE__ */ i("button", {
|
|
428
428
|
type: "button",
|
|
429
429
|
onClick: F,
|
|
430
430
|
disabled: !I || d,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SEMANTIC_COLORS as e } from "../../../utils/semanticTokens.js";
|
|
2
2
|
import { useEffect as t, useRef as n, useState as r } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { useI18n as i } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
4
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
5
|
//#region src/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.tsx
|
|
6
6
|
function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, onDeletePreset: d, disabled: f = !1 }) {
|
|
7
|
-
let { t: p } =
|
|
7
|
+
let { t: p } = i(), [m, h] = r(!1), [g, _] = r(!1), [v, y] = r(""), [b, x] = r(""), S = n(null), C = s.find((e) => e.id === c);
|
|
8
8
|
t(() => {
|
|
9
9
|
function e(e) {
|
|
10
10
|
S.current && !S.current.contains(e.target) && (h(!1), _(!1));
|
|
@@ -16,13 +16,13 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
16
16
|
}, T = (e, t) => {
|
|
17
17
|
e.stopPropagation(), window.confirm(p("bigconsole.filters.presets.deleteConfirm", "Are you sure you want to delete this preset?")) && d(t);
|
|
18
18
|
};
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ o("div", {
|
|
20
20
|
ref: S,
|
|
21
21
|
style: {
|
|
22
22
|
position: "relative",
|
|
23
23
|
display: "inline-block"
|
|
24
24
|
},
|
|
25
|
-
children: [/* @__PURE__ */
|
|
25
|
+
children: [/* @__PURE__ */ o("button", {
|
|
26
26
|
onClick: () => !f && h(!m),
|
|
27
27
|
disabled: f,
|
|
28
28
|
style: {
|
|
@@ -42,13 +42,13 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
42
42
|
maxWidth: "100%",
|
|
43
43
|
justifyContent: "space-between"
|
|
44
44
|
},
|
|
45
|
-
children: [/* @__PURE__ */
|
|
45
|
+
children: [/* @__PURE__ */ o("span", {
|
|
46
46
|
style: {
|
|
47
47
|
display: "flex",
|
|
48
48
|
alignItems: "center",
|
|
49
49
|
gap: "6px"
|
|
50
50
|
},
|
|
51
|
-
children: [/* @__PURE__ */
|
|
51
|
+
children: [/* @__PURE__ */ o("svg", {
|
|
52
52
|
width: "14",
|
|
53
53
|
height: "14",
|
|
54
54
|
viewBox: "0 0 24 24",
|
|
@@ -56,12 +56,12 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
56
56
|
stroke: "currentColor",
|
|
57
57
|
strokeWidth: "2",
|
|
58
58
|
children: [
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ a("path", { d: "M19 21H5a2 2 0 01-2-2V5a2 2 0 012-2h11l5 5v11a2 2 0 01-2 2z" }),
|
|
60
|
+
/* @__PURE__ */ a("polyline", { points: "17,21 17,13 7,13 7,21" }),
|
|
61
|
+
/* @__PURE__ */ a("polyline", { points: "7,3 7,8 15,8" })
|
|
62
62
|
]
|
|
63
63
|
}), C ? C.name : p("bigconsole.filters.presets.buttonLabel", "Presets")]
|
|
64
|
-
}), /* @__PURE__ */
|
|
64
|
+
}), /* @__PURE__ */ a("svg", {
|
|
65
65
|
width: "12",
|
|
66
66
|
height: "12",
|
|
67
67
|
viewBox: "0 0 24 24",
|
|
@@ -72,9 +72,9 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
72
72
|
transform: m ? "rotate(180deg)" : "rotate(0deg)",
|
|
73
73
|
transition: "transform 0.2s ease"
|
|
74
74
|
},
|
|
75
|
-
children: /* @__PURE__ */
|
|
75
|
+
children: /* @__PURE__ */ a("polyline", { points: "6,9 12,15 18,9" })
|
|
76
76
|
})]
|
|
77
|
-
}), m && /* @__PURE__ */
|
|
77
|
+
}), m && /* @__PURE__ */ o("div", {
|
|
78
78
|
style: {
|
|
79
79
|
position: "absolute",
|
|
80
80
|
top: "100%",
|
|
@@ -90,7 +90,7 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
90
90
|
overflow: "hidden"
|
|
91
91
|
},
|
|
92
92
|
children: [
|
|
93
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ o("div", {
|
|
94
94
|
style: {
|
|
95
95
|
padding: "12px 16px",
|
|
96
96
|
borderBottom: `1px solid ${e.borderDefault}`,
|
|
@@ -99,14 +99,14 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
99
99
|
justifyContent: "space-between",
|
|
100
100
|
alignItems: "center"
|
|
101
101
|
},
|
|
102
|
-
children: [/* @__PURE__ */
|
|
102
|
+
children: [/* @__PURE__ */ a("span", {
|
|
103
103
|
style: {
|
|
104
104
|
fontWeight: 600,
|
|
105
105
|
fontSize: "13px",
|
|
106
106
|
color: e.textPrimary
|
|
107
107
|
},
|
|
108
108
|
children: p("bigconsole.filters.presets.header", "Filter Presets")
|
|
109
|
-
}), /* @__PURE__ */
|
|
109
|
+
}), /* @__PURE__ */ a("button", {
|
|
110
110
|
onClick: () => _(!0),
|
|
111
111
|
style: {
|
|
112
112
|
padding: "4px 10px",
|
|
@@ -121,14 +121,14 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
121
121
|
children: p("bigconsole.filters.presets.saveCurrent", "+ Save Current")
|
|
122
122
|
})]
|
|
123
123
|
}),
|
|
124
|
-
g && /* @__PURE__ */
|
|
124
|
+
g && /* @__PURE__ */ o("div", {
|
|
125
125
|
style: {
|
|
126
126
|
padding: "12px 16px",
|
|
127
127
|
borderBottom: `1px solid ${e.borderDefault}`,
|
|
128
128
|
backgroundColor: e.bgSecondary
|
|
129
129
|
},
|
|
130
130
|
children: [
|
|
131
|
-
/* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ a("input", {
|
|
132
132
|
type: "text",
|
|
133
133
|
value: v,
|
|
134
134
|
onChange: (e) => y(e.target.value),
|
|
@@ -146,7 +146,7 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
146
146
|
color: e.textPrimary
|
|
147
147
|
}
|
|
148
148
|
}),
|
|
149
|
-
/* @__PURE__ */
|
|
149
|
+
/* @__PURE__ */ a("input", {
|
|
150
150
|
type: "text",
|
|
151
151
|
value: b,
|
|
152
152
|
onChange: (e) => x(e.target.value),
|
|
@@ -163,13 +163,13 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
163
163
|
color: e.textPrimary
|
|
164
164
|
}
|
|
165
165
|
}),
|
|
166
|
-
/* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ o("div", {
|
|
167
167
|
style: {
|
|
168
168
|
display: "flex",
|
|
169
169
|
gap: "8px",
|
|
170
170
|
justifyContent: "flex-end"
|
|
171
171
|
},
|
|
172
|
-
children: [/* @__PURE__ */
|
|
172
|
+
children: [/* @__PURE__ */ a("button", {
|
|
173
173
|
onClick: () => {
|
|
174
174
|
_(!1), y(""), x("");
|
|
175
175
|
},
|
|
@@ -183,7 +183,7 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
183
183
|
color: e.textSecondary
|
|
184
184
|
},
|
|
185
185
|
children: p("bigconsole.filters.presets.cancel", "Cancel")
|
|
186
|
-
}), /* @__PURE__ */
|
|
186
|
+
}), /* @__PURE__ */ a("button", {
|
|
187
187
|
onClick: w,
|
|
188
188
|
disabled: !v.trim(),
|
|
189
189
|
style: {
|
|
@@ -201,12 +201,12 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
201
201
|
})
|
|
202
202
|
]
|
|
203
203
|
}),
|
|
204
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ o("div", {
|
|
205
205
|
style: {
|
|
206
206
|
maxHeight: "300px",
|
|
207
207
|
overflowY: "auto"
|
|
208
208
|
},
|
|
209
|
-
children: [s.map((t) => /* @__PURE__ */
|
|
209
|
+
children: [s.map((t) => /* @__PURE__ */ o("div", {
|
|
210
210
|
onClick: () => {
|
|
211
211
|
l(t.id), h(!1);
|
|
212
212
|
},
|
|
@@ -227,9 +227,9 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
227
227
|
c !== t.id && (e.currentTarget.style.backgroundColor = "transparent");
|
|
228
228
|
},
|
|
229
229
|
children: [
|
|
230
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ o("div", {
|
|
231
231
|
style: { flex: 1 },
|
|
232
|
-
children: [/* @__PURE__ */
|
|
232
|
+
children: [/* @__PURE__ */ o("div", {
|
|
233
233
|
style: {
|
|
234
234
|
fontSize: "13px",
|
|
235
235
|
fontWeight: 500,
|
|
@@ -238,7 +238,7 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
238
238
|
alignItems: "center",
|
|
239
239
|
gap: "6px"
|
|
240
240
|
},
|
|
241
|
-
children: [t.name, t.isDefault && /* @__PURE__ */
|
|
241
|
+
children: [t.name, t.isDefault && /* @__PURE__ */ a("span", {
|
|
242
242
|
style: {
|
|
243
243
|
fontSize: "10px",
|
|
244
244
|
padding: "2px 6px",
|
|
@@ -248,7 +248,7 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
248
248
|
},
|
|
249
249
|
children: p("bigconsole.filters.presets.defaultBadge", "Default")
|
|
250
250
|
})]
|
|
251
|
-
}), t.description && /* @__PURE__ */
|
|
251
|
+
}), t.description && /* @__PURE__ */ a("div", {
|
|
252
252
|
style: {
|
|
253
253
|
fontSize: "11px",
|
|
254
254
|
color: e.textTertiary,
|
|
@@ -257,7 +257,7 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
257
257
|
children: t.description
|
|
258
258
|
})]
|
|
259
259
|
}),
|
|
260
|
-
!t.isDefault && !t.id.startsWith("preset-last") && !t.id.startsWith("preset-this") && /* @__PURE__ */
|
|
260
|
+
!t.isDefault && !t.id.startsWith("preset-last") && !t.id.startsWith("preset-this") && /* @__PURE__ */ a("button", {
|
|
261
261
|
onClick: (e) => T(e, t.id),
|
|
262
262
|
style: {
|
|
263
263
|
padding: "4px",
|
|
@@ -277,17 +277,17 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
277
277
|
t.currentTarget.style.backgroundColor = "transparent", t.currentTarget.style.color = e.textTertiary;
|
|
278
278
|
},
|
|
279
279
|
title: p("bigconsole.filters.presets.deletePresetTitle", "Delete preset"),
|
|
280
|
-
children: /* @__PURE__ */
|
|
280
|
+
children: /* @__PURE__ */ o("svg", {
|
|
281
281
|
width: "14",
|
|
282
282
|
height: "14",
|
|
283
283
|
viewBox: "0 0 24 24",
|
|
284
284
|
fill: "none",
|
|
285
285
|
stroke: "currentColor",
|
|
286
286
|
strokeWidth: "2",
|
|
287
|
-
children: [/* @__PURE__ */
|
|
287
|
+
children: [/* @__PURE__ */ a("polyline", { points: "3,6 5,6 21,6" }), /* @__PURE__ */ a("path", { d: "M19,6v14a2,2,0,01-2,2H7a2,2,0,01-2-2V6m3,0V4a2,2,0,012-2h4a2,2,0,012,2v2" })]
|
|
288
288
|
})
|
|
289
289
|
}),
|
|
290
|
-
c === t.id && /* @__PURE__ */
|
|
290
|
+
c === t.id && /* @__PURE__ */ a("svg", {
|
|
291
291
|
width: "16",
|
|
292
292
|
height: "16",
|
|
293
293
|
viewBox: "0 0 24 24",
|
|
@@ -295,10 +295,10 @@ function s({ presets: s, activePresetId: c, onApplyPreset: l, onSavePreset: u, o
|
|
|
295
295
|
stroke: e.actionPrimaryBg,
|
|
296
296
|
strokeWidth: "3",
|
|
297
297
|
style: { marginLeft: "8px" },
|
|
298
|
-
children: /* @__PURE__ */
|
|
298
|
+
children: /* @__PURE__ */ a("polyline", { points: "20,6 9,17 4,12" })
|
|
299
299
|
})
|
|
300
300
|
]
|
|
301
|
-
}, t.id)), s.length === 0 && /* @__PURE__ */
|
|
301
|
+
}, t.id)), s.length === 0 && /* @__PURE__ */ a("div", {
|
|
302
302
|
style: {
|
|
303
303
|
padding: "20px 16px",
|
|
304
304
|
textAlign: "center",
|