@burdenoff/microfe-bigconsole 2026.1123.7 → 2026.1124.2
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/asof/AsOfControl.js +2 -2
- package/dist/bigconsole/components/dashboard/DashboardCommentsDrawer.js +107 -106
- package/dist/bigconsole/components/dashboard/DashboardGalleryCard.d.ts +34 -0
- package/dist/bigconsole/components/dashboard/DashboardGalleryCard.js +123 -0
- package/dist/bigconsole/components/dashboard/DashboardReviewDialog.js +1 -1
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +19 -35
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +119 -116
- package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +172 -170
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +210 -208
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +97 -97
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +92 -92
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js +149 -149
- package/dist/bigconsole/components/datasink/AnomalyDetectorPanel.js +54 -54
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -37
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +4 -4
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +130 -129
- package/dist/bigconsole/components/datasink/SetupStateBadge.js +24 -33
- package/dist/bigconsole/components/datasink/SinkWorkflowLinkForm.js +38 -38
- package/dist/bigconsole/components/explore/CreateQueryWidget.js +57 -56
- package/dist/bigconsole/components/explore/SqlDraftEditor.js +140 -140
- package/dist/bigconsole/components/explore/VisualBuilder.js +85 -84
- package/dist/bigconsole/components/explore/queryAccess/GrantsPanel.js +168 -167
- package/dist/bigconsole/components/explore/queryAccess/QueryAccessAdmin.js +2 -2
- package/dist/bigconsole/components/explore/queryAccess/RelationEditor.js +118 -117
- package/dist/bigconsole/components/fleet/FleetChildrenPanel.d.ts +4 -0
- package/dist/bigconsole/components/fleet/FleetChildrenPanel.js +174 -184
- package/dist/bigconsole/components/fleet/FleetCopySection.d.ts +13 -0
- package/dist/bigconsole/components/fleet/FleetCopySection.js +266 -0
- package/dist/bigconsole/components/insights/BoardLintPanel.js +2 -2
- package/dist/bigconsole/components/insights/OutlierSpottingDialog.js +123 -123
- package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +2 -2
- package/dist/bigconsole/components/narrative/NarrativePanel.js +1 -1
- package/dist/bigconsole/components/overview/DataHealthCard.js +3 -0
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +3 -0
- package/dist/bigconsole/components/parser/ParserStatusBadge.js +25 -28
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +23 -22
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +15 -26
- package/dist/bigconsole/components/reconcile/KpiReconcileDialog.js +24 -24
- package/dist/bigconsole/components/settings/WidgetCatalogSection.js +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +188 -187
- package/dist/bigconsole/components/widgets/FilterNotAppliedNotice.js +1 -1
- package/dist/bigconsole/components/widgets/UnsupportedDataSourceNotice.js +1 -1
- package/dist/bigconsole/components/widgets/WidgetCompareView.js +3 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.js +1 -1
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +45 -44
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +151 -147
- package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +48 -47
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +139 -138
- package/dist/bigconsole/components/widgets/form/FormWidget.js +149 -148
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +80 -77
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +58 -56
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +75 -73
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +86 -85
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +80 -77
- package/dist/bigconsole/components/widgets/retention/RetentionView.js +1 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.js +214 -211
- package/dist/bigconsole/components/widgets/table/TablePagination.js +59 -58
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +140 -138
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +74 -66
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +48 -48
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +28 -37
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +69 -69
- package/dist/bigconsole/hooks/useDashboardListQuery.d.ts +22 -0
- package/dist/bigconsole/hooks/useDashboardListQuery.js +39 -0
- package/dist/bigconsole/hooks/useFleetBreadcrumb.d.ts +8 -1
- package/dist/bigconsole/hooks/useFleetBreadcrumb.js +4 -1
- package/dist/bigconsole/hooks/useFleetChildren.d.ts +2 -0
- package/dist/bigconsole/hooks/useFleetChildren.js +10 -6
- package/dist/bigconsole/hooks/useFleetCopyActions.d.ts +23 -0
- package/dist/bigconsole/hooks/useFleetCopyActions.js +74 -0
- package/dist/bigconsole/hooks/useFleetFlags.d.ts +16 -0
- package/dist/bigconsole/hooks/useFleetFlags.js +79 -0
- package/dist/bigconsole/hooks/useOwnerBoundRun.d.ts +33 -0
- package/dist/bigconsole/hooks/useOwnerBoundRun.js +41 -0
- package/dist/bigconsole/pages/AdminPage.js +147 -146
- package/dist/bigconsole/pages/DashboardViewPage.js +292 -287
- package/dist/bigconsole/pages/DashboardsPage.js +647 -864
- package/dist/bigconsole/pages/DataParsersPage.js +5 -0
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +4 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +263 -261
- package/dist/bigconsole/pages/DataSinksPage.js +210 -186
- package/dist/bigconsole/pages/InsightsPage.js +386 -383
- package/dist/bigconsole/pages/ParserBuilderPage.js +413 -413
- package/dist/bigconsole/pages/ParserViewPage.js +2 -0
- package/dist/bigconsole/pages/PipelineBuilderPage.js +279 -276
- package/dist/bigconsole/pages/PipelineViewPage.js +3 -0
- package/dist/bigconsole/pages/PipelinesPage.js +198 -165
- package/dist/bigconsole/pages/SettingsPage.js +160 -160
- package/dist/bigconsole/pages/WidgetDemoPage.js +2 -0
- package/dist/bigconsole/pages/WorkflowViewPage.js +5 -0
- package/dist/bigconsole/pages/WorkflowsPage.js +144 -123
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +1 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +123 -122
- package/dist/bigconsole/utils/dashboardGallery.d.ts +84 -0
- package/dist/bigconsole/utils/dashboardGallery.js +93 -0
- package/dist/bigconsole/utils/fleetFlags.d.ts +22 -0
- package/dist/bigconsole/utils/fleetFlags.js +40 -0
- package/dist/bigconsole/utils/fleetTree.d.ts +9 -0
- package/dist/bigconsole/utils/fleetTree.js +5 -1
- package/dist/bigconsole/utils/statusTone.d.ts +17 -0
- package/dist/bigconsole/utils/statusTone.js +44 -0
- package/dist/generated/wspace-operations.d.ts +101 -0
- package/dist/generated/wspace-operations.js +609 -90
- package/dist/generated/wspace-types.js +6 -4
- package/package.json +4 -4
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { DASHBOARD_STATUS_TONE as t, statusToneClasses as n } from "../../utils/statusTone.js";
|
|
3
|
+
import { memo as r, useCallback as i } from "react";
|
|
4
|
+
import { Archive as a, Check as o, PenLine as s } from "lucide-react";
|
|
5
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
6
|
// src/bigconsole/components/dashboard/DashboardStatusPill.tsx
|
|
5
|
-
var
|
|
6
|
-
PUBLISHED:
|
|
7
|
-
DRAFT:
|
|
8
|
-
ARCHIVED:
|
|
7
|
+
var u = {
|
|
8
|
+
PUBLISHED: o,
|
|
9
|
+
DRAFT: s,
|
|
10
|
+
ARCHIVED: a
|
|
9
11
|
};
|
|
10
|
-
function
|
|
12
|
+
function d() {
|
|
11
13
|
let t = e();
|
|
12
|
-
return
|
|
14
|
+
return i((e) => {
|
|
13
15
|
switch (e) {
|
|
14
16
|
case "PUBLISHED": return t("bigconsole.dashboards.status.published", "Published");
|
|
15
17
|
case "ARCHIVED": return t("bigconsole.dashboards.status.archived", "Archived");
|
|
@@ -17,34 +19,16 @@ function o() {
|
|
|
17
19
|
}
|
|
18
20
|
}, [t]);
|
|
19
21
|
}
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
+
var f = r(function({ status: e, label: r }) {
|
|
23
|
+
let i = u[e] ?? s;
|
|
24
|
+
return /* @__PURE__ */ l("span", {
|
|
22
25
|
"data-testid": "dashboard-status",
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
gap: "var(--space-iconGap)",
|
|
27
|
-
padding: "2px 8px",
|
|
28
|
-
borderRadius: "var(--radius-pill)",
|
|
29
|
-
backgroundColor: "var(--color-bg-sunken)",
|
|
30
|
-
border: "1px solid var(--color-border-subtle)",
|
|
31
|
-
fontSize: "10px",
|
|
32
|
-
fontWeight: "var(--font-weight-semibold)",
|
|
33
|
-
textTransform: "uppercase",
|
|
34
|
-
letterSpacing: "0.02em",
|
|
35
|
-
color: "var(--color-text-secondary)",
|
|
36
|
-
whiteSpace: "nowrap"
|
|
37
|
-
},
|
|
38
|
-
children: [/* @__PURE__ */ r("span", {
|
|
26
|
+
"data-status": e,
|
|
27
|
+
className: `inline-flex shrink-0 items-center gap-1 whitespace-nowrap rounded-pill border px-2 py-0.5 text-xs font-semibold ${n(t, e)}`,
|
|
28
|
+
children: [/* @__PURE__ */ c(i, {
|
|
39
29
|
"aria-hidden": "true",
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
height: 6,
|
|
43
|
-
borderRadius: "50%",
|
|
44
|
-
backgroundColor: a[e],
|
|
45
|
-
flexShrink: 0
|
|
46
|
-
}
|
|
47
|
-
}), t]
|
|
30
|
+
className: "size-3 shrink-0"
|
|
31
|
+
}), r]
|
|
48
32
|
});
|
|
49
33
|
});
|
|
50
|
-
export {
|
|
34
|
+
export { f as DashboardStatusPill, f as default, d as useDashboardStatusLabel };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { useFilterFieldValues as e } from "../../../hooks/useFilterFieldValues.js";
|
|
2
2
|
import { resolveCategoryOptions as t } from "../../../utils/globalFilterMatching.js";
|
|
3
3
|
import { useEffect as n, useMemo as r, useRef as i, useState as a } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { ThemedSelect as o } from "@burdenoff/fe-libs/ui";
|
|
5
|
+
import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
6
|
+
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
7
|
// src/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.tsx
|
|
7
|
-
var
|
|
8
|
+
var d = "[data-slot=\"themed-select-content\"]", f = (e) => ({
|
|
8
9
|
bgPrimary: e ? "#1f2937" : "#ffffff",
|
|
9
10
|
bgSecondary: e ? "#374151" : "#f9fafb",
|
|
10
11
|
textPrimary: e ? "#f9fafb" : "#111827",
|
|
@@ -20,7 +21,7 @@ var u = (e) => ({
|
|
|
20
21
|
actionPrimaryText: e ? "#c7d2fe" : "#4338ca",
|
|
21
22
|
backdropBg: "rgba(0, 0, 0, 0.5)"
|
|
22
23
|
});
|
|
23
|
-
function
|
|
24
|
+
function p() {
|
|
24
25
|
let [e, t] = a(!1);
|
|
25
26
|
return n(() => {
|
|
26
27
|
let e = () => {
|
|
@@ -34,22 +35,22 @@ function d() {
|
|
|
34
35
|
}), () => n.disconnect();
|
|
35
36
|
}, []), e;
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
+
function m(e, t) {
|
|
38
39
|
if (typeof e == "object" && e) {
|
|
39
40
|
let n = e;
|
|
40
|
-
return typeof n.label == "string" && n.label ? n.label : n.value !== null && typeof n.value == "object" ? "" :
|
|
41
|
+
return typeof n.label == "string" && n.label ? n.label : n.value !== null && typeof n.value == "object" ? "" : m(n.value, t);
|
|
41
42
|
}
|
|
42
43
|
let n = String(e ?? "");
|
|
43
44
|
return (t.find((e) => e.value === n) ?? t.find((e) => e.value.toLowerCase() === n.toLowerCase()))?.label || n;
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
+
function h(e, t, n, r = []) {
|
|
46
47
|
if (e == null) return n("bigconsole.filters.chip.value.all", "All");
|
|
47
48
|
switch (t) {
|
|
48
49
|
case "DATE_RANGE": {
|
|
49
50
|
let t = e;
|
|
50
|
-
return t.start && t.end ? `${
|
|
51
|
+
return t.start && t.end ? `${g(t.start)} - ${g(t.end)}` : n("bigconsole.filters.chip.value.allDates", "All dates");
|
|
51
52
|
}
|
|
52
|
-
case "CATEGORY": return Array.isArray(e) ? e.length === 0 ? n("bigconsole.filters.chip.value.all", "All") : e.length === 1 ?
|
|
53
|
+
case "CATEGORY": return Array.isArray(e) ? e.length === 0 ? n("bigconsole.filters.chip.value.all", "All") : e.length === 1 ? m(e[0], r) : n("bigconsole.filters.chip.value.countSelected", "{{count}} selected", { count: e.length }) : m(e, r) || n("bigconsole.filters.chip.value.all", "All");
|
|
53
54
|
case "TEXT_SEARCH": return e || n("bigconsole.filters.chip.value.any", "Any");
|
|
54
55
|
case "NUMERIC_RANGE": {
|
|
55
56
|
let t = e;
|
|
@@ -59,13 +60,13 @@ function p(e, t, n, r = []) {
|
|
|
59
60
|
default: return String(e);
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
+
function g(e) {
|
|
63
64
|
return new Date(e).toLocaleDateString("en-US", {
|
|
64
65
|
month: "short",
|
|
65
66
|
day: "numeric"
|
|
66
67
|
});
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
+
function _(n) {
|
|
69
70
|
let i = n.config?.optionsFromField === !0, a = n.config?.options, o = Array.isArray(a) && a.length > 0, s = typeof n.config?.field == "string" ? n.config.field : void 0, c = n.type === "CATEGORY" && (i || !o), { values: l } = e(c ? n.dashboardId : void 0, c ? s : void 0);
|
|
70
71
|
return r(() => t(a, l, i), [
|
|
71
72
|
a,
|
|
@@ -73,23 +74,24 @@ function h(n) {
|
|
|
73
74
|
i
|
|
74
75
|
]);
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
-
let { t: v } =
|
|
77
|
+
function v({ filter: e, value: t, onChange: r, onEdit: o, onDelete: m, readOnly: g = !1 }) {
|
|
78
|
+
let { t: v } = s(), [b, x] = a(!1), [S, C] = a(!1), w = i(null), T = i(null), E = f(p()), D = t != null && t !== "", O = _(e), k = h(t, e.type, v, O);
|
|
78
79
|
return n(() => {
|
|
79
80
|
function e(e) {
|
|
80
|
-
|
|
81
|
+
let t = e.target;
|
|
82
|
+
w.current && t instanceof Node && !w.current.contains(t) && (t instanceof Element && t.closest(d) || (x(!1), C(!1)));
|
|
81
83
|
}
|
|
82
84
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
83
|
-
}, []), /* @__PURE__ */
|
|
84
|
-
ref:
|
|
85
|
+
}, []), /* @__PURE__ */ u("div", {
|
|
86
|
+
ref: w,
|
|
85
87
|
style: {
|
|
86
88
|
position: "relative",
|
|
87
89
|
display: "inline-flex",
|
|
88
90
|
alignItems: "center",
|
|
89
91
|
gap: "var(--space-iconGap)",
|
|
90
92
|
padding: "0 var(--space-controlGap)",
|
|
91
|
-
backgroundColor:
|
|
92
|
-
border: `1px solid ${
|
|
93
|
+
backgroundColor: D ? "var(--color-bg-accentSubtle)" : "var(--color-bg-surface)",
|
|
94
|
+
border: `1px solid ${D ? "var(--color-action-primary-border)" : "var(--color-border-subtle)"}`,
|
|
93
95
|
borderRadius: "var(--radius-pill)",
|
|
94
96
|
fontSize: "var(--font-size-body-sm)",
|
|
95
97
|
cursor: "pointer",
|
|
@@ -99,18 +101,18 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m, readOnly:
|
|
|
99
101
|
maxWidth: "100%"
|
|
100
102
|
},
|
|
101
103
|
children: [
|
|
102
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ u("span", {
|
|
103
105
|
style: {
|
|
104
106
|
fontWeight: "var(--font-weight-semibold)",
|
|
105
107
|
color: "var(--color-text-primary)",
|
|
106
108
|
fontSize: "var(--font-size-body-sm)"
|
|
107
109
|
},
|
|
108
|
-
onClick: () =>
|
|
110
|
+
onClick: () => x(!b),
|
|
109
111
|
children: [e.name, ":"]
|
|
110
112
|
}),
|
|
111
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ l("span", {
|
|
112
114
|
style: {
|
|
113
|
-
color:
|
|
115
|
+
color: D ? "var(--color-text-primary)" : "var(--color-text-secondary)",
|
|
114
116
|
maxWidth: "min(200px, 45vw)",
|
|
115
117
|
overflow: "hidden",
|
|
116
118
|
textOverflow: "ellipsis",
|
|
@@ -118,10 +120,10 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m, readOnly:
|
|
|
118
120
|
fontWeight: "var(--font-weight-medium)",
|
|
119
121
|
fontSize: "var(--font-size-body-sm)"
|
|
120
122
|
},
|
|
121
|
-
onClick: () =>
|
|
122
|
-
children:
|
|
123
|
+
onClick: () => x(!b),
|
|
124
|
+
children: k
|
|
123
125
|
}),
|
|
124
|
-
|
|
126
|
+
D && /* @__PURE__ */ l("button", {
|
|
125
127
|
onClick: (e) => {
|
|
126
128
|
e.stopPropagation(), r(void 0);
|
|
127
129
|
},
|
|
@@ -132,11 +134,11 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m, readOnly:
|
|
|
132
134
|
width: "22px",
|
|
133
135
|
height: "22px",
|
|
134
136
|
padding: 0,
|
|
135
|
-
backgroundColor:
|
|
137
|
+
backgroundColor: E.statusErrorBg,
|
|
136
138
|
border: "none",
|
|
137
139
|
borderRadius: "50%",
|
|
138
140
|
cursor: "pointer",
|
|
139
|
-
color:
|
|
141
|
+
color: E.actionPrimaryFg,
|
|
140
142
|
fontSize: "14px",
|
|
141
143
|
fontWeight: "bold",
|
|
142
144
|
marginLeft: "4px",
|
|
@@ -145,9 +147,9 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m, readOnly:
|
|
|
145
147
|
title: v("bigconsole.filters.chip.action.clear", "Clear filter"),
|
|
146
148
|
children: "×"
|
|
147
149
|
}),
|
|
148
|
-
!g && /* @__PURE__ */
|
|
150
|
+
!g && /* @__PURE__ */ l("button", {
|
|
149
151
|
onClick: (e) => {
|
|
150
|
-
e.stopPropagation(),
|
|
152
|
+
e.stopPropagation(), C(!S);
|
|
151
153
|
},
|
|
152
154
|
style: {
|
|
153
155
|
display: "flex",
|
|
@@ -156,11 +158,11 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m, readOnly:
|
|
|
156
158
|
width: "22px",
|
|
157
159
|
height: "22px",
|
|
158
160
|
padding: 0,
|
|
159
|
-
backgroundColor:
|
|
161
|
+
backgroundColor: E.textTertiary,
|
|
160
162
|
border: "none",
|
|
161
163
|
borderRadius: "50%",
|
|
162
164
|
cursor: "pointer",
|
|
163
|
-
color:
|
|
165
|
+
color: E.actionPrimaryFg,
|
|
164
166
|
fontSize: "16px",
|
|
165
167
|
fontWeight: "bold",
|
|
166
168
|
marginLeft: "4px",
|
|
@@ -169,15 +171,15 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m, readOnly:
|
|
|
169
171
|
title: v("bigconsole.filters.chip.action.options", "Filter options"),
|
|
170
172
|
children: "⋮"
|
|
171
173
|
}),
|
|
172
|
-
|
|
174
|
+
b && /* @__PURE__ */ l(y, {
|
|
173
175
|
filter: e,
|
|
174
176
|
value: t,
|
|
175
177
|
onChange: (e) => {
|
|
176
|
-
r(e),
|
|
178
|
+
r(e), x(!1);
|
|
177
179
|
},
|
|
178
|
-
onClose: () =>
|
|
180
|
+
onClose: () => x(!1)
|
|
179
181
|
}),
|
|
180
|
-
|
|
182
|
+
S && !g && /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("div", {
|
|
181
183
|
style: {
|
|
182
184
|
position: "fixed",
|
|
183
185
|
top: 0,
|
|
@@ -187,10 +189,10 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m, readOnly:
|
|
|
187
189
|
zIndex: 99998
|
|
188
190
|
},
|
|
189
191
|
onClick: (e) => {
|
|
190
|
-
e.stopPropagation(),
|
|
192
|
+
e.stopPropagation(), C(!1);
|
|
191
193
|
}
|
|
192
|
-
}), /* @__PURE__ */
|
|
193
|
-
ref:
|
|
194
|
+
}), /* @__PURE__ */ u("div", {
|
|
195
|
+
ref: T,
|
|
194
196
|
style: {
|
|
195
197
|
position: "absolute",
|
|
196
198
|
top: "100%",
|
|
@@ -198,16 +200,16 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m, readOnly:
|
|
|
198
200
|
marginTop: "8px",
|
|
199
201
|
minWidth: "min(150px, calc(100vw - 2rem))",
|
|
200
202
|
maxWidth: "calc(100vw - 2rem)",
|
|
201
|
-
backgroundColor:
|
|
202
|
-
border: `1px solid ${
|
|
203
|
+
backgroundColor: E.bgPrimary,
|
|
204
|
+
border: `1px solid ${E.borderDefault}`,
|
|
203
205
|
borderRadius: "8px",
|
|
204
206
|
boxShadow: "var(--shadow-elevation-3)",
|
|
205
207
|
zIndex: 99999,
|
|
206
208
|
overflow: "hidden"
|
|
207
209
|
},
|
|
208
|
-
children: [/* @__PURE__ */
|
|
210
|
+
children: [/* @__PURE__ */ u("button", {
|
|
209
211
|
onClick: (e) => {
|
|
210
|
-
e.stopPropagation(),
|
|
212
|
+
e.stopPropagation(), C(!1), o();
|
|
211
213
|
},
|
|
212
214
|
style: {
|
|
213
215
|
display: "flex",
|
|
@@ -218,16 +220,16 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m, readOnly:
|
|
|
218
220
|
textAlign: "left",
|
|
219
221
|
backgroundColor: "transparent",
|
|
220
222
|
border: "none",
|
|
221
|
-
borderBottom: `1px solid ${
|
|
223
|
+
borderBottom: `1px solid ${E.borderDefault}`,
|
|
222
224
|
cursor: "pointer",
|
|
223
225
|
fontSize: "14px",
|
|
224
|
-
color:
|
|
226
|
+
color: E.textPrimary,
|
|
225
227
|
fontWeight: 500
|
|
226
228
|
},
|
|
227
229
|
children: ["✏️ ", v("bigconsole.filters.chip.menu.edit", "Edit Filter")]
|
|
228
|
-
}), /* @__PURE__ */
|
|
230
|
+
}), /* @__PURE__ */ u("button", {
|
|
229
231
|
onClick: (e) => {
|
|
230
|
-
e.stopPropagation(),
|
|
232
|
+
e.stopPropagation(), C(!1), m();
|
|
231
233
|
},
|
|
232
234
|
style: {
|
|
233
235
|
display: "flex",
|
|
@@ -240,7 +242,7 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m, readOnly:
|
|
|
240
242
|
border: "none",
|
|
241
243
|
cursor: "pointer",
|
|
242
244
|
fontSize: "14px",
|
|
243
|
-
color:
|
|
245
|
+
color: E.statusErrorText,
|
|
244
246
|
fontWeight: 500
|
|
245
247
|
},
|
|
246
248
|
children: ["🗑️ ", v("bigconsole.filters.chip.menu.delete", "Delete Filter")]
|
|
@@ -249,9 +251,9 @@ function g({ filter: e, value: t, onChange: r, onEdit: f, onDelete: m, readOnly:
|
|
|
249
251
|
]
|
|
250
252
|
});
|
|
251
253
|
}
|
|
252
|
-
function
|
|
253
|
-
let { t: i } =
|
|
254
|
-
return /* @__PURE__ */
|
|
254
|
+
function y({ filter: e, value: t, onChange: n, onClose: r }) {
|
|
255
|
+
let { t: i } = s(), [d, m] = a(t), h = f(p()), g = e.config?.allowMultiple === !0, v = _(e), y = Array.isArray(d) ? d.map(String) : typeof d == "string" && d ? [d] : [];
|
|
256
|
+
return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("div", {
|
|
255
257
|
style: {
|
|
256
258
|
position: "fixed",
|
|
257
259
|
top: 0,
|
|
@@ -261,7 +263,7 @@ function _({ filter: e, value: t, onChange: n, onClose: r }) {
|
|
|
261
263
|
zIndex: 99998
|
|
262
264
|
},
|
|
263
265
|
onClick: r
|
|
264
|
-
}), /* @__PURE__ */
|
|
266
|
+
}), /* @__PURE__ */ u("div", {
|
|
265
267
|
style: {
|
|
266
268
|
position: "absolute",
|
|
267
269
|
top: "100%",
|
|
@@ -270,31 +272,31 @@ function _({ filter: e, value: t, onChange: n, onClose: r }) {
|
|
|
270
272
|
minWidth: "min(280px, calc(100vw - 2rem))",
|
|
271
273
|
maxWidth: "calc(100vw - 2rem)",
|
|
272
274
|
padding: "16px",
|
|
273
|
-
backgroundColor:
|
|
274
|
-
border: `1px solid ${
|
|
275
|
+
backgroundColor: h.bgPrimary,
|
|
276
|
+
border: `1px solid ${h.borderDefault}`,
|
|
275
277
|
borderRadius: "12px",
|
|
276
278
|
boxShadow: "var(--shadow-elevation-3)",
|
|
277
279
|
zIndex: 99999
|
|
278
280
|
},
|
|
279
281
|
onClick: (e) => e.stopPropagation(),
|
|
280
282
|
children: [
|
|
281
|
-
e.type === "TEXT_SEARCH" && /* @__PURE__ */
|
|
283
|
+
e.type === "TEXT_SEARCH" && /* @__PURE__ */ l("input", {
|
|
282
284
|
type: "text",
|
|
283
|
-
value:
|
|
284
|
-
onChange: (e) =>
|
|
285
|
+
value: d || "",
|
|
286
|
+
onChange: (e) => m(e.target.value),
|
|
285
287
|
placeholder: i("bigconsole.filters.chip.editor.searchPlaceholder", "Search..."),
|
|
286
288
|
style: {
|
|
287
289
|
width: "100%",
|
|
288
290
|
padding: "8px",
|
|
289
|
-
border: `1px solid ${
|
|
291
|
+
border: `1px solid ${h.borderDefault}`,
|
|
290
292
|
borderRadius: "4px",
|
|
291
293
|
fontSize: "13px",
|
|
292
294
|
boxSizing: "border-box",
|
|
293
|
-
backgroundColor:
|
|
294
|
-
color:
|
|
295
|
+
backgroundColor: h.bgPrimary,
|
|
296
|
+
color: h.textPrimary
|
|
295
297
|
}
|
|
296
298
|
}),
|
|
297
|
-
e.type === "CATEGORY" && g && /* @__PURE__ */
|
|
299
|
+
e.type === "CATEGORY" && g && /* @__PURE__ */ u("div", {
|
|
298
300
|
role: "group",
|
|
299
301
|
"aria-label": e.name,
|
|
300
302
|
style: {
|
|
@@ -304,108 +306,109 @@ function _({ filter: e, value: t, onChange: n, onClose: r }) {
|
|
|
304
306
|
maxHeight: "220px",
|
|
305
307
|
overflowY: "auto"
|
|
306
308
|
},
|
|
307
|
-
children: [
|
|
309
|
+
children: [v.map((e) => /* @__PURE__ */ u("label", {
|
|
308
310
|
style: {
|
|
309
311
|
display: "flex",
|
|
310
312
|
alignItems: "center",
|
|
311
313
|
gap: "8px",
|
|
312
314
|
cursor: "pointer"
|
|
313
315
|
},
|
|
314
|
-
children: [/* @__PURE__ */
|
|
316
|
+
children: [/* @__PURE__ */ l("input", {
|
|
315
317
|
type: "checkbox",
|
|
316
|
-
checked:
|
|
317
|
-
onChange: (t) =>
|
|
318
|
+
checked: y.includes(e.value),
|
|
319
|
+
onChange: (t) => m(t.target.checked ? [...y, e.value] : y.filter((t) => t !== e.value)),
|
|
318
320
|
style: {
|
|
319
321
|
width: "16px",
|
|
320
322
|
height: "16px"
|
|
321
323
|
}
|
|
322
|
-
}), /* @__PURE__ */
|
|
324
|
+
}), /* @__PURE__ */ l("span", {
|
|
323
325
|
style: {
|
|
324
326
|
fontSize: "13px",
|
|
325
|
-
color:
|
|
327
|
+
color: h.textPrimary
|
|
326
328
|
},
|
|
327
329
|
children: e.label
|
|
328
330
|
})]
|
|
329
|
-
}, e.value)),
|
|
331
|
+
}, e.value)), v.length === 0 && /* @__PURE__ */ l("span", {
|
|
330
332
|
style: {
|
|
331
333
|
fontSize: "12px",
|
|
332
|
-
color:
|
|
334
|
+
color: h.textSecondary
|
|
333
335
|
},
|
|
334
336
|
children: i("bigconsole.filters.chip.editor.noOptions", "No options available")
|
|
335
337
|
})]
|
|
336
338
|
}),
|
|
337
|
-
e.type === "CATEGORY" && !g && /* @__PURE__ */
|
|
338
|
-
|
|
339
|
-
|
|
339
|
+
e.type === "CATEGORY" && !g && /* @__PURE__ */ u(o, {
|
|
340
|
+
"aria-label": e.name,
|
|
341
|
+
value: d || "",
|
|
342
|
+
onChange: (e) => m(e.target.value),
|
|
340
343
|
style: {
|
|
341
344
|
width: "100%",
|
|
342
345
|
padding: "8px",
|
|
343
|
-
border: `1px solid ${
|
|
346
|
+
border: `1px solid ${h.borderDefault}`,
|
|
344
347
|
borderRadius: "4px",
|
|
345
348
|
fontSize: "13px",
|
|
346
|
-
backgroundColor:
|
|
347
|
-
color:
|
|
349
|
+
backgroundColor: h.bgPrimary,
|
|
350
|
+
color: h.textPrimary
|
|
348
351
|
},
|
|
349
|
-
children: [/* @__PURE__ */
|
|
352
|
+
children: [/* @__PURE__ */ l("option", {
|
|
350
353
|
value: "",
|
|
351
354
|
children: i("bigconsole.filters.chip.editor.allOption", "All")
|
|
352
|
-
}),
|
|
355
|
+
}), v.map((e) => /* @__PURE__ */ l("option", {
|
|
353
356
|
value: e.value,
|
|
354
357
|
children: e.label
|
|
355
358
|
}, e.value))]
|
|
356
359
|
}),
|
|
357
360
|
e.type === "DATE_RANGE" && (() => {
|
|
358
|
-
let e =
|
|
359
|
-
return /* @__PURE__ */
|
|
361
|
+
let e = d || {};
|
|
362
|
+
return /* @__PURE__ */ u("div", {
|
|
360
363
|
style: {
|
|
361
364
|
display: "flex",
|
|
362
365
|
flexDirection: "column",
|
|
363
366
|
gap: "8px"
|
|
364
367
|
},
|
|
365
|
-
children: [/* @__PURE__ */
|
|
368
|
+
children: [/* @__PURE__ */ l("input", {
|
|
366
369
|
type: "date",
|
|
367
370
|
value: e.start || "",
|
|
368
|
-
onChange: (t) =>
|
|
371
|
+
onChange: (t) => m({
|
|
369
372
|
...e,
|
|
370
373
|
start: t.target.value
|
|
371
374
|
}),
|
|
372
375
|
style: {
|
|
373
376
|
padding: "8px",
|
|
374
|
-
border: `1px solid ${
|
|
377
|
+
border: `1px solid ${h.borderDefault}`,
|
|
375
378
|
borderRadius: "4px",
|
|
376
379
|
fontSize: "13px",
|
|
377
|
-
backgroundColor:
|
|
378
|
-
color:
|
|
380
|
+
backgroundColor: h.bgPrimary,
|
|
381
|
+
color: h.textPrimary
|
|
379
382
|
}
|
|
380
|
-
}), /* @__PURE__ */
|
|
383
|
+
}), /* @__PURE__ */ l("input", {
|
|
381
384
|
type: "date",
|
|
382
385
|
value: e.end || "",
|
|
383
|
-
onChange: (t) =>
|
|
386
|
+
onChange: (t) => m({
|
|
384
387
|
...e,
|
|
385
388
|
end: t.target.value
|
|
386
389
|
}),
|
|
387
390
|
style: {
|
|
388
391
|
padding: "8px",
|
|
389
|
-
border: `1px solid ${
|
|
392
|
+
border: `1px solid ${h.borderDefault}`,
|
|
390
393
|
borderRadius: "4px",
|
|
391
394
|
fontSize: "13px",
|
|
392
|
-
backgroundColor:
|
|
393
|
-
color:
|
|
395
|
+
backgroundColor: h.bgPrimary,
|
|
396
|
+
color: h.textPrimary
|
|
394
397
|
}
|
|
395
398
|
})]
|
|
396
399
|
});
|
|
397
400
|
})(),
|
|
398
401
|
e.type === "NUMERIC_RANGE" && (() => {
|
|
399
|
-
let e =
|
|
400
|
-
return /* @__PURE__ */
|
|
402
|
+
let e = d || {};
|
|
403
|
+
return /* @__PURE__ */ u("div", {
|
|
401
404
|
style: {
|
|
402
405
|
display: "flex",
|
|
403
406
|
gap: "8px"
|
|
404
407
|
},
|
|
405
|
-
children: [/* @__PURE__ */
|
|
408
|
+
children: [/* @__PURE__ */ l("input", {
|
|
406
409
|
type: "number",
|
|
407
410
|
value: e.min ?? "",
|
|
408
|
-
onChange: (t) =>
|
|
411
|
+
onChange: (t) => m({
|
|
409
412
|
...e,
|
|
410
413
|
min: t.target.value ? Number(t.target.value) : void 0
|
|
411
414
|
}),
|
|
@@ -413,16 +416,16 @@ function _({ filter: e, value: t, onChange: n, onClose: r }) {
|
|
|
413
416
|
style: {
|
|
414
417
|
flex: 1,
|
|
415
418
|
padding: "8px",
|
|
416
|
-
border: `1px solid ${
|
|
419
|
+
border: `1px solid ${h.borderDefault}`,
|
|
417
420
|
borderRadius: "4px",
|
|
418
421
|
fontSize: "13px",
|
|
419
|
-
backgroundColor:
|
|
420
|
-
color:
|
|
422
|
+
backgroundColor: h.bgPrimary,
|
|
423
|
+
color: h.textPrimary
|
|
421
424
|
}
|
|
422
|
-
}), /* @__PURE__ */
|
|
425
|
+
}), /* @__PURE__ */ l("input", {
|
|
423
426
|
type: "number",
|
|
424
427
|
value: e.max ?? "",
|
|
425
|
-
onChange: (t) =>
|
|
428
|
+
onChange: (t) => m({
|
|
426
429
|
...e,
|
|
427
430
|
max: t.target.value ? Number(t.target.value) : void 0
|
|
428
431
|
}),
|
|
@@ -430,60 +433,60 @@ function _({ filter: e, value: t, onChange: n, onClose: r }) {
|
|
|
430
433
|
style: {
|
|
431
434
|
flex: 1,
|
|
432
435
|
padding: "8px",
|
|
433
|
-
border: `1px solid ${
|
|
436
|
+
border: `1px solid ${h.borderDefault}`,
|
|
434
437
|
borderRadius: "4px",
|
|
435
438
|
fontSize: "13px",
|
|
436
|
-
backgroundColor:
|
|
437
|
-
color:
|
|
439
|
+
backgroundColor: h.bgPrimary,
|
|
440
|
+
color: h.textPrimary
|
|
438
441
|
}
|
|
439
442
|
})]
|
|
440
443
|
});
|
|
441
444
|
})(),
|
|
442
|
-
e.type === "CUSTOM" && /* @__PURE__ */
|
|
445
|
+
e.type === "CUSTOM" && /* @__PURE__ */ l("input", {
|
|
443
446
|
type: "text",
|
|
444
|
-
value: typeof
|
|
445
|
-
onChange: (e) =>
|
|
447
|
+
value: typeof d == "string" ? d : JSON.stringify(d || ""),
|
|
448
|
+
onChange: (e) => m(e.target.value),
|
|
446
449
|
placeholder: i("bigconsole.filters.chip.editor.customPlaceholder", "Custom filter value..."),
|
|
447
450
|
style: {
|
|
448
451
|
width: "100%",
|
|
449
452
|
padding: "8px",
|
|
450
|
-
border: `1px solid ${
|
|
453
|
+
border: `1px solid ${h.borderDefault}`,
|
|
451
454
|
borderRadius: "4px",
|
|
452
455
|
fontSize: "13px",
|
|
453
456
|
boxSizing: "border-box",
|
|
454
|
-
backgroundColor:
|
|
455
|
-
color:
|
|
457
|
+
backgroundColor: h.bgPrimary,
|
|
458
|
+
color: h.textPrimary
|
|
456
459
|
}
|
|
457
460
|
}),
|
|
458
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ u("div", {
|
|
459
462
|
style: {
|
|
460
463
|
marginTop: "16px",
|
|
461
464
|
display: "flex",
|
|
462
465
|
justifyContent: "flex-end",
|
|
463
466
|
gap: "10px"
|
|
464
467
|
},
|
|
465
|
-
children: [/* @__PURE__ */
|
|
468
|
+
children: [/* @__PURE__ */ l("button", {
|
|
466
469
|
onClick: r,
|
|
467
470
|
style: {
|
|
468
471
|
padding: "8px 16px",
|
|
469
472
|
fontSize: "14px",
|
|
470
|
-
backgroundColor:
|
|
471
|
-
border: `1px solid ${
|
|
473
|
+
backgroundColor: h.bgPrimary,
|
|
474
|
+
border: `1px solid ${h.borderDefault}`,
|
|
472
475
|
borderRadius: "6px",
|
|
473
476
|
cursor: "pointer",
|
|
474
|
-
color:
|
|
477
|
+
color: h.textSecondary,
|
|
475
478
|
fontWeight: 500
|
|
476
479
|
},
|
|
477
480
|
children: i("bigconsole.filters.chip.editor.cancel", "Cancel")
|
|
478
|
-
}), /* @__PURE__ */
|
|
481
|
+
}), /* @__PURE__ */ l("button", {
|
|
479
482
|
onClick: () => {
|
|
480
|
-
n(Array.isArray(
|
|
483
|
+
n(Array.isArray(d) && d.length === 0 ? "" : d);
|
|
481
484
|
},
|
|
482
485
|
style: {
|
|
483
486
|
padding: "8px 16px",
|
|
484
487
|
fontSize: "14px",
|
|
485
|
-
backgroundColor:
|
|
486
|
-
color:
|
|
488
|
+
backgroundColor: h.actionPrimaryBg,
|
|
489
|
+
color: h.actionPrimaryFg,
|
|
487
490
|
border: "none",
|
|
488
491
|
borderRadius: "6px",
|
|
489
492
|
cursor: "pointer",
|
|
@@ -496,4 +499,4 @@ function _({ filter: e, value: t, onChange: n, onClose: r }) {
|
|
|
496
499
|
]
|
|
497
500
|
})] });
|
|
498
501
|
}
|
|
499
|
-
export {
|
|
502
|
+
export { v as FilterChip, v as default, h as formatFilterValue };
|
|
@@ -11,7 +11,7 @@ var i = e(function({ isLive: e, onToggle: i }) {
|
|
|
11
11
|
"data-testid": "live-canvas-toggle",
|
|
12
12
|
"data-live": e ? "on" : "off",
|
|
13
13
|
title: e ? "Live canvas on — new widgets and pages appear automatically and widget data refreshes about every 15 seconds, no reload needed" : "Turn on live canvas to watch the board update as the pipeline builds and refresh widget data about every 15 seconds",
|
|
14
|
-
className: ["inline-flex items-center gap-1.5 rounded-md px-2.5 py-1 text-xs font-medium transition-colors", e ? "
|
|
14
|
+
className: ["inline-flex items-center gap-1.5 rounded-md px-2.5 py-1 text-xs font-medium transition-colors", e ? "border border-[var(--color-status-success-border)] bg-[var(--color-status-success-bgSubtle)] text-[var(--color-status-success-text)]" : "text-text-secondary border border-border-default hover:bg-bg-sunken"].join(" "),
|
|
15
15
|
children: [e ? /* @__PURE__ */ r("span", {
|
|
16
16
|
className: "relative flex h-2.5 w-2.5 flex-shrink-0",
|
|
17
17
|
"aria-hidden": "true",
|