@burdenoff/microfe-bigconsole 2026.924.2 → 2026.925.1
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/BigConsoleRoot.js +94 -84
- package/dist/bigconsole/BigConsoleRoot.js.map +1 -1
- package/dist/bigconsole/BigConsoleRoutes.js +137 -138
- package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
- package/dist/bigconsole/assistant/previewController.js +7 -7
- package/dist/bigconsole/components/DrilldownDashboardRenderer.js +17 -17
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +32 -32
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +52 -52
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +7 -7
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +53 -0
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js.map +1 -0
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +60 -60
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +21 -21
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +36 -36
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +38 -38
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +121 -121
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +22 -22
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +53 -53
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +47 -47
- package/dist/bigconsole/components/dashboard/index.js +1 -0
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -29
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +48 -48
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +126 -114
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
- package/dist/bigconsole/components/overview/DashboardGuide.js +214 -0
- package/dist/bigconsole/components/overview/DashboardGuide.js.map +1 -0
- package/dist/bigconsole/components/overview/DataHealthCard.js +97 -0
- package/dist/bigconsole/components/overview/DataHealthCard.js.map +1 -0
- package/dist/bigconsole/components/overview/OverviewQuickActions.js +32 -0
- package/dist/bigconsole/components/overview/OverviewQuickActions.js.map +1 -0
- package/dist/bigconsole/components/overview/OverviewStatCard.js +57 -0
- package/dist/bigconsole/components/overview/OverviewStatCard.js.map +1 -0
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +107 -0
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js.map +1 -0
- package/dist/bigconsole/components/overview/dashboardGuideSteps.js +119 -0
- package/dist/bigconsole/components/overview/dashboardGuideSteps.js.map +1 -0
- package/dist/bigconsole/components/overview/index.js +8 -0
- package/dist/bigconsole/components/overview/overviewModel.js +119 -0
- package/dist/bigconsole/components/overview/overviewModel.js.map +1 -0
- package/dist/bigconsole/components/overview/useOverviewData.js +48 -0
- package/dist/bigconsole/components/overview/useOverviewData.js.map +1 -0
- package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
- package/dist/bigconsole/components/parser/ImportParserDialog.js +127 -127
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
- package/dist/bigconsole/components/preview/AiPreviewContent.js +5 -5
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +32 -32
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +37 -37
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +13 -13
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +70 -70
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +28 -28
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +25 -25
- 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 +21 -21
- 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/customWidget/CustomWidgetBuilderSheet.js +10 -10
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +68 -68
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/hooks/useDataSinkOperations.js +92 -89
- package/dist/bigconsole/hooks/useDataSinkOperations.js.map +1 -1
- package/dist/bigconsole/hooks/useImportDataSink.js +96 -91
- package/dist/bigconsole/hooks/useImportDataSink.js.map +1 -1
- package/dist/bigconsole/pages/AdminPage.js +136 -136
- package/dist/bigconsole/pages/DashboardBuilderPage.js +10 -10
- package/dist/bigconsole/pages/DashboardViewPage.js +61 -61
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +327 -348
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +5 -5
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +82 -80
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +83 -83
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +11 -11
- package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
- package/dist/bigconsole/pages/InsightsPage.js +315 -315
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/OverviewPage.js +244 -0
- package/dist/bigconsole/pages/OverviewPage.js.map +1 -0
- package/dist/bigconsole/pages/ParserBuilderPage.js +5 -5
- package/dist/bigconsole/pages/ParserViewPage.js +98 -98
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +8 -8
- package/dist/bigconsole/pages/PipelineViewPage.js +46 -46
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +80 -80
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +70 -70
- package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
- package/dist/bigconsole/pages/WorkflowViewPage.js +200 -200
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +78 -78
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +36 -35
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js.map +1 -1
- 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/utils/createDialogParam.js +14 -0
- package/dist/bigconsole/utils/createDialogParam.js.map +1 -0
- package/dist/bigconsole/utils/quota.js +51 -23
- package/dist/bigconsole/utils/quota.js.map +1 -1
- package/dist/generated/global-operations.js +1 -1
- package/dist/generated/wspace-operations.js +285 -222
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/shared/hooks/useTr.js +10 -7
- package/dist/shared/hooks/useTr.js.map +1 -1
- package/package.json +1 -1
- package/dist/bigconsole/pages/HomePage.js +0 -318
- package/dist/bigconsole/pages/HomePage.js.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { useDashboardStore as e } from "../../store/dashboardStore.js";
|
|
2
2
|
import "../../store/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import "../common/index.js";
|
|
5
|
-
import { useBigConsoleNavigate as n } from "../../context/BigConsoleContext.js";
|
|
3
|
+
import { useBigConsoleNavigate as t } from "../../context/BigConsoleContext.js";
|
|
6
4
|
import "../../context/index.js";
|
|
5
|
+
import { SECTION_FOCUS_RING as n } from "../common/sectionStyles.js";
|
|
6
|
+
import "../common/index.js";
|
|
7
7
|
import r from "../../hooks/useFilterUrlSync.js";
|
|
8
8
|
import { memo as i, useCallback as a, useEffect as o, useState as s } from "react";
|
|
9
9
|
import { ArrowLeft as c, ChevronRight as l, Home as u } from "lucide-react";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
11
|
+
import { useI18n as m } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
12
12
|
//#region src/bigconsole/components/dashboard/DrilldownBreadcrumb.tsx
|
|
13
13
|
var h = i(function({ className: i = "", currentDashboardId: h, currentDashboardName: g, showHome: _ = !0, basePath: v = "/bigconsole/dashboards" }) {
|
|
14
|
-
let { t: y } =
|
|
14
|
+
let { t: y } = m(), b = t(), { getDrilldownMetadata: x, isInDrilldown: S, drilldownDepth: C } = r(), w = e((e) => e.dashboards), [T, E] = s([]);
|
|
15
15
|
o(() => {
|
|
16
16
|
if (!S) {
|
|
17
17
|
E([]);
|
|
@@ -55,59 +55,59 @@ var h = i(function({ className: i = "", currentDashboardId: h, currentDashboardN
|
|
|
55
55
|
]), k = a((e) => {
|
|
56
56
|
e.preventDefault(), b(v);
|
|
57
57
|
}, [b, v]);
|
|
58
|
-
return S ? /* @__PURE__ */
|
|
58
|
+
return S ? /* @__PURE__ */ p("nav", {
|
|
59
59
|
className: `flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1 border-b border-[var(--color-border-subtle)] bg-bg-sunken px-4 py-1.5 ${i}`,
|
|
60
60
|
"aria-label": y("bigconsole.dashboards.drilldownBreadcrumb.ariaLabel", "Drilldown breadcrumb"),
|
|
61
61
|
"data-testid": "drilldown-breadcrumb",
|
|
62
62
|
children: [
|
|
63
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ p("button", {
|
|
64
64
|
type: "button",
|
|
65
65
|
onClick: O,
|
|
66
|
-
className: `flex min-h-control-sm items-center gap-1 rounded-button px-2 py-1 text-sm font-medium text-text-link motion-safe:transition-colors hover:bg-bg-accentSubtle ${
|
|
66
|
+
className: `flex min-h-control-sm items-center gap-1 rounded-button px-2 py-1 text-sm font-medium text-text-link motion-safe:transition-colors hover:bg-bg-accentSubtle ${n}`,
|
|
67
67
|
"aria-label": y("bigconsole.dashboards.drilldownBreadcrumb.back", "Go back"),
|
|
68
|
-
children: [/* @__PURE__ */
|
|
68
|
+
children: [/* @__PURE__ */ f(c, { className: "w-4 h-4" }), /* @__PURE__ */ f("span", {
|
|
69
69
|
className: "hidden sm:inline",
|
|
70
70
|
children: y("bigconsole.dashboards.drilldownBreadcrumb.backLabel", "Back")
|
|
71
71
|
})]
|
|
72
72
|
}),
|
|
73
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ f("span", {
|
|
74
74
|
className: "text-text-muted",
|
|
75
75
|
"aria-hidden": "true",
|
|
76
76
|
children: "|"
|
|
77
77
|
}),
|
|
78
|
-
_ && /* @__PURE__ */
|
|
78
|
+
_ && /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ p("a", {
|
|
79
79
|
href: v,
|
|
80
80
|
onClick: k,
|
|
81
81
|
className: "flex min-h-control-sm items-center gap-1 rounded-button px-1 text-sm text-text-secondary motion-safe:transition-colors hover:text-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface",
|
|
82
82
|
"aria-label": y("bigconsole.dashboards.drilldownBreadcrumb.home", "Home"),
|
|
83
|
-
children: [/* @__PURE__ */
|
|
83
|
+
children: [/* @__PURE__ */ f(u, { className: "w-4 h-4" }), /* @__PURE__ */ f("span", {
|
|
84
84
|
className: "hidden sm:inline",
|
|
85
85
|
children: y("bigconsole.dashboards.drilldownBreadcrumb.dashboards", "Dashboards")
|
|
86
86
|
})]
|
|
87
|
-
}), /* @__PURE__ */
|
|
87
|
+
}), /* @__PURE__ */ f(l, {
|
|
88
88
|
className: "w-4 h-4 shrink-0 text-text-muted",
|
|
89
89
|
"aria-hidden": "true"
|
|
90
90
|
})] }),
|
|
91
|
-
T.map((e,
|
|
91
|
+
T.map((e, t) => /* @__PURE__ */ p("div", {
|
|
92
92
|
className: "flex min-w-0 items-center gap-2",
|
|
93
|
-
children: [/* @__PURE__ */
|
|
93
|
+
children: [/* @__PURE__ */ f("button", {
|
|
94
94
|
type: "button",
|
|
95
|
-
onClick: () => D(e,
|
|
96
|
-
className: `min-h-control-sm max-w-[150px] truncate rounded-button px-1 text-sm text-text-secondary motion-safe:transition-colors hover:text-text-primary hover:underline ${
|
|
95
|
+
onClick: () => D(e, t),
|
|
96
|
+
className: `min-h-control-sm max-w-[150px] truncate rounded-button px-1 text-sm text-text-secondary motion-safe:transition-colors hover:text-text-primary hover:underline ${n}`,
|
|
97
97
|
title: e.name,
|
|
98
98
|
children: e.name
|
|
99
|
-
}), /* @__PURE__ */
|
|
99
|
+
}), /* @__PURE__ */ f(l, {
|
|
100
100
|
className: "w-4 h-4 shrink-0 text-text-muted",
|
|
101
101
|
"aria-hidden": "true"
|
|
102
102
|
})]
|
|
103
103
|
}, e.id)),
|
|
104
|
-
g && /* @__PURE__ */
|
|
104
|
+
g && /* @__PURE__ */ f("span", {
|
|
105
105
|
"aria-current": "page",
|
|
106
106
|
className: "max-w-[200px] truncate text-sm font-medium text-text-primary",
|
|
107
107
|
title: g,
|
|
108
108
|
children: g
|
|
109
109
|
}),
|
|
110
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ f("span", {
|
|
111
111
|
className: "ml-auto shrink-0 rounded-pill bg-bg-surface px-2 py-0.5 text-xs text-text-muted",
|
|
112
112
|
children: y("bigconsole.dashboards.drilldownBreadcrumb.level", "Level {{depth}}", { depth: C ?? "" })
|
|
113
113
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect as e, useRef as t, useState as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
3
|
+
import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
4
4
|
//#region src/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.tsx
|
|
5
5
|
var s = (e) => ({
|
|
6
6
|
bgPrimary: e ? "#1f2937" : "#ffffff",
|
|
@@ -64,13 +64,13 @@ function u(e) {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
67
|
-
let { t: g } =
|
|
67
|
+
let { t: g } = o(), [_, 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);
|
|
68
68
|
return e(() => {
|
|
69
69
|
function e(e) {
|
|
70
70
|
x.current && !x.current.contains(e.target) && (v(!1), b(!1));
|
|
71
71
|
}
|
|
72
72
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
73
|
-
}, []), /* @__PURE__ */
|
|
73
|
+
}, []), /* @__PURE__ */ a("div", {
|
|
74
74
|
ref: x,
|
|
75
75
|
style: {
|
|
76
76
|
position: "relative",
|
|
@@ -89,7 +89,7 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
89
89
|
maxWidth: "100%"
|
|
90
90
|
},
|
|
91
91
|
children: [
|
|
92
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ a("span", {
|
|
93
93
|
style: {
|
|
94
94
|
fontWeight: "var(--font-weight-semibold)",
|
|
95
95
|
color: "var(--color-text-primary)",
|
|
@@ -98,7 +98,7 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
98
98
|
onClick: () => v(!_),
|
|
99
99
|
children: [u.name, ":"]
|
|
100
100
|
}),
|
|
101
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ i("span", {
|
|
102
102
|
style: {
|
|
103
103
|
color: w ? "var(--color-text-primary)" : "var(--color-text-secondary)",
|
|
104
104
|
maxWidth: "min(200px, 45vw)",
|
|
@@ -111,7 +111,7 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
111
111
|
onClick: () => v(!_),
|
|
112
112
|
children: T
|
|
113
113
|
}),
|
|
114
|
-
w && /* @__PURE__ */
|
|
114
|
+
w && /* @__PURE__ */ i("button", {
|
|
115
115
|
onClick: (e) => {
|
|
116
116
|
e.stopPropagation(), p(void 0);
|
|
117
117
|
},
|
|
@@ -135,7 +135,7 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
135
135
|
title: g("bigconsole.filters.chip.action.clear", "Clear filter"),
|
|
136
136
|
children: "×"
|
|
137
137
|
}),
|
|
138
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ i("button", {
|
|
139
139
|
onClick: (e) => {
|
|
140
140
|
e.stopPropagation(), b(!y);
|
|
141
141
|
},
|
|
@@ -159,7 +159,7 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
159
159
|
title: g("bigconsole.filters.chip.action.options", "Filter options"),
|
|
160
160
|
children: "⋮"
|
|
161
161
|
}),
|
|
162
|
-
_ && /* @__PURE__ */
|
|
162
|
+
_ && /* @__PURE__ */ i(f, {
|
|
163
163
|
filter: u,
|
|
164
164
|
value: d,
|
|
165
165
|
onChange: (e) => {
|
|
@@ -167,7 +167,7 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
167
167
|
},
|
|
168
168
|
onClose: () => v(!1)
|
|
169
169
|
}),
|
|
170
|
-
y && /* @__PURE__ */
|
|
170
|
+
y && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("div", {
|
|
171
171
|
style: {
|
|
172
172
|
position: "fixed",
|
|
173
173
|
top: 0,
|
|
@@ -179,7 +179,7 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
179
179
|
onClick: (e) => {
|
|
180
180
|
e.stopPropagation(), b(!1);
|
|
181
181
|
}
|
|
182
|
-
}), /* @__PURE__ */
|
|
182
|
+
}), /* @__PURE__ */ a("div", {
|
|
183
183
|
ref: S,
|
|
184
184
|
style: {
|
|
185
185
|
position: "absolute",
|
|
@@ -195,7 +195,7 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
195
195
|
zIndex: 99999,
|
|
196
196
|
overflow: "hidden"
|
|
197
197
|
},
|
|
198
|
-
children: [/* @__PURE__ */
|
|
198
|
+
children: [/* @__PURE__ */ a("button", {
|
|
199
199
|
onClick: (e) => {
|
|
200
200
|
e.stopPropagation(), b(!1), m();
|
|
201
201
|
},
|
|
@@ -215,7 +215,7 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
215
215
|
fontWeight: 500
|
|
216
216
|
},
|
|
217
217
|
children: ["✏️ ", g("bigconsole.filters.chip.menu.edit", "Edit Filter")]
|
|
218
|
-
}), /* @__PURE__ */
|
|
218
|
+
}), /* @__PURE__ */ a("button", {
|
|
219
219
|
onClick: (e) => {
|
|
220
220
|
e.stopPropagation(), b(!1), h();
|
|
221
221
|
},
|
|
@@ -240,8 +240,8 @@ function d({ filter: u, value: d, onChange: p, onEdit: m, onDelete: h }) {
|
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
242
|
function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
243
|
-
let { t: d } =
|
|
244
|
-
return /* @__PURE__ */
|
|
243
|
+
let { t: d } = o(), [f, p] = n(t), m = s(c());
|
|
244
|
+
return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("div", {
|
|
245
245
|
style: {
|
|
246
246
|
position: "fixed",
|
|
247
247
|
top: 0,
|
|
@@ -251,7 +251,7 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
251
251
|
zIndex: 99998
|
|
252
252
|
},
|
|
253
253
|
onClick: u
|
|
254
|
-
}), /* @__PURE__ */
|
|
254
|
+
}), /* @__PURE__ */ a("div", {
|
|
255
255
|
style: {
|
|
256
256
|
position: "absolute",
|
|
257
257
|
top: "100%",
|
|
@@ -268,7 +268,7 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
268
268
|
},
|
|
269
269
|
onClick: (e) => e.stopPropagation(),
|
|
270
270
|
children: [
|
|
271
|
-
e.type === "TEXT_SEARCH" && /* @__PURE__ */
|
|
271
|
+
e.type === "TEXT_SEARCH" && /* @__PURE__ */ i("input", {
|
|
272
272
|
type: "text",
|
|
273
273
|
value: f || "",
|
|
274
274
|
onChange: (e) => p(e.target.value),
|
|
@@ -284,7 +284,7 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
284
284
|
color: m.textPrimary
|
|
285
285
|
}
|
|
286
286
|
}),
|
|
287
|
-
e.type === "CATEGORY" && /* @__PURE__ */
|
|
287
|
+
e.type === "CATEGORY" && /* @__PURE__ */ a("select", {
|
|
288
288
|
value: f || "",
|
|
289
289
|
onChange: (e) => p(e.target.value),
|
|
290
290
|
style: {
|
|
@@ -296,23 +296,23 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
296
296
|
backgroundColor: m.bgPrimary,
|
|
297
297
|
color: m.textPrimary
|
|
298
298
|
},
|
|
299
|
-
children: [/* @__PURE__ */
|
|
299
|
+
children: [/* @__PURE__ */ i("option", {
|
|
300
300
|
value: "",
|
|
301
301
|
children: d("bigconsole.filters.chip.editor.allOption", "All")
|
|
302
|
-
}), e.config.options?.map((e) => /* @__PURE__ */
|
|
302
|
+
}), e.config.options?.map((e) => /* @__PURE__ */ i("option", {
|
|
303
303
|
value: String(e.value),
|
|
304
304
|
children: String(e.label)
|
|
305
305
|
}, String(e.value)))]
|
|
306
306
|
}),
|
|
307
307
|
e.type === "DATE_RANGE" && (() => {
|
|
308
308
|
let e = f || {};
|
|
309
|
-
return /* @__PURE__ */
|
|
309
|
+
return /* @__PURE__ */ a("div", {
|
|
310
310
|
style: {
|
|
311
311
|
display: "flex",
|
|
312
312
|
flexDirection: "column",
|
|
313
313
|
gap: "8px"
|
|
314
314
|
},
|
|
315
|
-
children: [/* @__PURE__ */
|
|
315
|
+
children: [/* @__PURE__ */ i("input", {
|
|
316
316
|
type: "date",
|
|
317
317
|
value: e.start || "",
|
|
318
318
|
onChange: (t) => p({
|
|
@@ -327,7 +327,7 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
327
327
|
backgroundColor: m.bgPrimary,
|
|
328
328
|
color: m.textPrimary
|
|
329
329
|
}
|
|
330
|
-
}), /* @__PURE__ */
|
|
330
|
+
}), /* @__PURE__ */ i("input", {
|
|
331
331
|
type: "date",
|
|
332
332
|
value: e.end || "",
|
|
333
333
|
onChange: (t) => p({
|
|
@@ -347,12 +347,12 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
347
347
|
})(),
|
|
348
348
|
e.type === "NUMERIC_RANGE" && (() => {
|
|
349
349
|
let e = f || {};
|
|
350
|
-
return /* @__PURE__ */
|
|
350
|
+
return /* @__PURE__ */ a("div", {
|
|
351
351
|
style: {
|
|
352
352
|
display: "flex",
|
|
353
353
|
gap: "8px"
|
|
354
354
|
},
|
|
355
|
-
children: [/* @__PURE__ */
|
|
355
|
+
children: [/* @__PURE__ */ i("input", {
|
|
356
356
|
type: "number",
|
|
357
357
|
value: e.min ?? "",
|
|
358
358
|
onChange: (t) => p({
|
|
@@ -369,7 +369,7 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
369
369
|
backgroundColor: m.bgPrimary,
|
|
370
370
|
color: m.textPrimary
|
|
371
371
|
}
|
|
372
|
-
}), /* @__PURE__ */
|
|
372
|
+
}), /* @__PURE__ */ i("input", {
|
|
373
373
|
type: "number",
|
|
374
374
|
value: e.max ?? "",
|
|
375
375
|
onChange: (t) => p({
|
|
@@ -389,7 +389,7 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
389
389
|
})]
|
|
390
390
|
});
|
|
391
391
|
})(),
|
|
392
|
-
e.type === "CUSTOM" && /* @__PURE__ */
|
|
392
|
+
e.type === "CUSTOM" && /* @__PURE__ */ i("input", {
|
|
393
393
|
type: "text",
|
|
394
394
|
value: typeof f == "string" ? f : JSON.stringify(f || ""),
|
|
395
395
|
onChange: (e) => p(e.target.value),
|
|
@@ -405,14 +405,14 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
405
405
|
color: m.textPrimary
|
|
406
406
|
}
|
|
407
407
|
}),
|
|
408
|
-
/* @__PURE__ */
|
|
408
|
+
/* @__PURE__ */ a("div", {
|
|
409
409
|
style: {
|
|
410
410
|
marginTop: "16px",
|
|
411
411
|
display: "flex",
|
|
412
412
|
justifyContent: "flex-end",
|
|
413
413
|
gap: "10px"
|
|
414
414
|
},
|
|
415
|
-
children: [/* @__PURE__ */
|
|
415
|
+
children: [/* @__PURE__ */ i("button", {
|
|
416
416
|
onClick: u,
|
|
417
417
|
style: {
|
|
418
418
|
padding: "8px 16px",
|
|
@@ -425,7 +425,7 @@ function f({ filter: e, value: t, onChange: l, onClose: u }) {
|
|
|
425
425
|
fontWeight: 500
|
|
426
426
|
},
|
|
427
427
|
children: d("bigconsole.filters.chip.editor.cancel", "Cancel")
|
|
428
|
-
}), /* @__PURE__ */
|
|
428
|
+
}), /* @__PURE__ */ i("button", {
|
|
429
429
|
onClick: () => {
|
|
430
430
|
l(f);
|
|
431
431
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect as e, useMemo as t, useState as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import { useI18n as a } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
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 } = a(), [d, f] = n(s?.name || ""), [p, m] = n(s?.type || "CATEGORY"), [h, g] = n(s?.isRequired || !1), [_, v] = n(s?.config?.options || [{
|
|
21
21
|
value: "",
|
|
22
22
|
label: ""
|
|
23
23
|
}]), [y, b] = n(s?.config?.placeholder || ""), [x, S] = n(!1);
|
|
@@ -79,7 +79,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
79
79
|
isRequired: h
|
|
80
80
|
});
|
|
81
81
|
}, A = d.trim() !== "" && (p !== "CATEGORY" || _.some((e) => e.value && e.label));
|
|
82
|
-
return /* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ r("div", {
|
|
83
83
|
style: {
|
|
84
84
|
position: "fixed",
|
|
85
85
|
top: 0,
|
|
@@ -96,7 +96,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
96
96
|
isolation: "isolate"
|
|
97
97
|
},
|
|
98
98
|
onClick: l,
|
|
99
|
-
children: /* @__PURE__ */
|
|
99
|
+
children: /* @__PURE__ */ i("div", {
|
|
100
100
|
style: {
|
|
101
101
|
width: "100%",
|
|
102
102
|
maxWidth: "min(480px, calc(100vw - 2rem))",
|
|
@@ -109,7 +109,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
109
109
|
},
|
|
110
110
|
onClick: (e) => e.stopPropagation(),
|
|
111
111
|
children: [
|
|
112
|
-
/* @__PURE__ */
|
|
112
|
+
/* @__PURE__ */ i("div", {
|
|
113
113
|
style: {
|
|
114
114
|
padding: "16px 20px",
|
|
115
115
|
borderBottom: `1px solid ${C.borderDefault}`,
|
|
@@ -118,7 +118,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
118
118
|
justifyContent: "space-between",
|
|
119
119
|
backgroundColor: C.bgPrimary
|
|
120
120
|
},
|
|
121
|
-
children: [/* @__PURE__ */
|
|
121
|
+
children: [/* @__PURE__ */ r("h3", {
|
|
122
122
|
style: {
|
|
123
123
|
margin: 0,
|
|
124
124
|
fontSize: "16px",
|
|
@@ -126,7 +126,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
126
126
|
color: C.textPrimary
|
|
127
127
|
},
|
|
128
128
|
children: w ? u("bigconsole.filters.editor.title.edit", "Edit Filter") : u("bigconsole.filters.editor.title.add", "Add Filter")
|
|
129
|
-
}), /* @__PURE__ */
|
|
129
|
+
}), /* @__PURE__ */ r("button", {
|
|
130
130
|
onClick: l,
|
|
131
131
|
style: {
|
|
132
132
|
background: "none",
|
|
@@ -139,7 +139,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
139
139
|
children: "×"
|
|
140
140
|
})]
|
|
141
141
|
}),
|
|
142
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ i("div", {
|
|
143
143
|
style: {
|
|
144
144
|
padding: "20px",
|
|
145
145
|
overflowY: "auto",
|
|
@@ -147,9 +147,9 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
147
147
|
backgroundColor: C.bgPrimary
|
|
148
148
|
},
|
|
149
149
|
children: [
|
|
150
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ i("div", {
|
|
151
151
|
style: { marginBottom: "16px" },
|
|
152
|
-
children: [/* @__PURE__ */
|
|
152
|
+
children: [/* @__PURE__ */ r("label", {
|
|
153
153
|
style: {
|
|
154
154
|
display: "block",
|
|
155
155
|
marginBottom: "6px",
|
|
@@ -158,7 +158,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
158
158
|
color: C.textPrimary
|
|
159
159
|
},
|
|
160
160
|
children: u("bigconsole.filters.editor.field.name.label", "Filter Name *")
|
|
161
|
-
}), /* @__PURE__ */
|
|
161
|
+
}), /* @__PURE__ */ r("input", {
|
|
162
162
|
type: "text",
|
|
163
163
|
value: d,
|
|
164
164
|
onChange: (e) => f(e.target.value),
|
|
@@ -175,9 +175,9 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
175
175
|
}
|
|
176
176
|
})]
|
|
177
177
|
}),
|
|
178
|
-
!w && /* @__PURE__ */
|
|
178
|
+
!w && /* @__PURE__ */ i("div", {
|
|
179
179
|
style: { marginBottom: "16px" },
|
|
180
|
-
children: [/* @__PURE__ */
|
|
180
|
+
children: [/* @__PURE__ */ r("label", {
|
|
181
181
|
style: {
|
|
182
182
|
display: "block",
|
|
183
183
|
marginBottom: "8px",
|
|
@@ -186,13 +186,13 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
186
186
|
color: C.textPrimary
|
|
187
187
|
},
|
|
188
188
|
children: u("bigconsole.filters.editor.field.type.label", "Filter Type *")
|
|
189
|
-
}), /* @__PURE__ */
|
|
189
|
+
}), /* @__PURE__ */ r("div", {
|
|
190
190
|
style: {
|
|
191
191
|
display: "grid",
|
|
192
192
|
gridTemplateColumns: "repeat(2, 1fr)",
|
|
193
193
|
gap: "10px"
|
|
194
194
|
},
|
|
195
|
-
children: T.map((e) => /* @__PURE__ */
|
|
195
|
+
children: T.map((e) => /* @__PURE__ */ i("button", {
|
|
196
196
|
onClick: () => m(e.value),
|
|
197
197
|
type: "button",
|
|
198
198
|
style: {
|
|
@@ -205,14 +205,14 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
205
205
|
transition: "all 0.2s ease",
|
|
206
206
|
minHeight: "60px"
|
|
207
207
|
},
|
|
208
|
-
children: [/* @__PURE__ */
|
|
208
|
+
children: [/* @__PURE__ */ r("div", {
|
|
209
209
|
style: {
|
|
210
210
|
fontWeight: 500,
|
|
211
211
|
fontSize: "13px",
|
|
212
212
|
color: C.textPrimary
|
|
213
213
|
},
|
|
214
214
|
children: e.label
|
|
215
|
-
}), /* @__PURE__ */
|
|
215
|
+
}), /* @__PURE__ */ r("div", {
|
|
216
216
|
style: {
|
|
217
217
|
fontSize: "11px",
|
|
218
218
|
color: C.textSecondary,
|
|
@@ -224,9 +224,9 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
224
224
|
}, e.value))
|
|
225
225
|
})]
|
|
226
226
|
}),
|
|
227
|
-
p === "CATEGORY" && /* @__PURE__ */
|
|
227
|
+
p === "CATEGORY" && /* @__PURE__ */ i("div", {
|
|
228
228
|
style: { marginBottom: "16px" },
|
|
229
|
-
children: [/* @__PURE__ */
|
|
229
|
+
children: [/* @__PURE__ */ r("label", {
|
|
230
230
|
style: {
|
|
231
231
|
display: "block",
|
|
232
232
|
marginBottom: "8px",
|
|
@@ -235,20 +235,20 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
235
235
|
color: C.textPrimary
|
|
236
236
|
},
|
|
237
237
|
children: u("bigconsole.filters.editor.field.options.label", "Options")
|
|
238
|
-
}), /* @__PURE__ */
|
|
238
|
+
}), /* @__PURE__ */ i("div", {
|
|
239
239
|
style: {
|
|
240
240
|
display: "flex",
|
|
241
241
|
flexDirection: "column",
|
|
242
242
|
gap: "8px"
|
|
243
243
|
},
|
|
244
|
-
children: [_.map((e, t) => /* @__PURE__ */
|
|
244
|
+
children: [_.map((e, t) => /* @__PURE__ */ i("div", {
|
|
245
245
|
style: {
|
|
246
246
|
display: "flex",
|
|
247
247
|
gap: "8px",
|
|
248
248
|
alignItems: "center"
|
|
249
249
|
},
|
|
250
250
|
children: [
|
|
251
|
-
/* @__PURE__ */
|
|
251
|
+
/* @__PURE__ */ r("input", {
|
|
252
252
|
type: "text",
|
|
253
253
|
value: e.value,
|
|
254
254
|
onChange: (e) => O(t, "value", e.target.value),
|
|
@@ -264,7 +264,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
264
264
|
color: C.textPrimary
|
|
265
265
|
}
|
|
266
266
|
}),
|
|
267
|
-
/* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ r("input", {
|
|
268
268
|
type: "text",
|
|
269
269
|
value: e.label,
|
|
270
270
|
onChange: (e) => O(t, "label", e.target.value),
|
|
@@ -280,7 +280,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
280
280
|
color: C.textPrimary
|
|
281
281
|
}
|
|
282
282
|
}),
|
|
283
|
-
_.length > 1 && /* @__PURE__ */
|
|
283
|
+
_.length > 1 && /* @__PURE__ */ r("button", {
|
|
284
284
|
type: "button",
|
|
285
285
|
onClick: () => D(t),
|
|
286
286
|
style: {
|
|
@@ -295,7 +295,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
295
295
|
children: u("bigconsole.filters.editor.field.options.remove", "Remove")
|
|
296
296
|
})
|
|
297
297
|
]
|
|
298
|
-
}, t)), /* @__PURE__ */
|
|
298
|
+
}, t)), /* @__PURE__ */ r("button", {
|
|
299
299
|
type: "button",
|
|
300
300
|
onClick: E,
|
|
301
301
|
style: {
|
|
@@ -311,9 +311,9 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
311
311
|
})]
|
|
312
312
|
})]
|
|
313
313
|
}),
|
|
314
|
-
(p === "TEXT_SEARCH" || p === "CATEGORY") && /* @__PURE__ */
|
|
314
|
+
(p === "TEXT_SEARCH" || p === "CATEGORY") && /* @__PURE__ */ i("div", {
|
|
315
315
|
style: { marginBottom: "16px" },
|
|
316
|
-
children: [/* @__PURE__ */
|
|
316
|
+
children: [/* @__PURE__ */ r("label", {
|
|
317
317
|
style: {
|
|
318
318
|
display: "block",
|
|
319
319
|
marginBottom: "8px",
|
|
@@ -322,7 +322,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
322
322
|
color: C.textPrimary
|
|
323
323
|
},
|
|
324
324
|
children: u("bigconsole.filters.editor.field.placeholder.label", "Placeholder Text")
|
|
325
|
-
}), /* @__PURE__ */
|
|
325
|
+
}), /* @__PURE__ */ r("input", {
|
|
326
326
|
type: "text",
|
|
327
327
|
value: y,
|
|
328
328
|
onChange: (e) => b(e.target.value),
|
|
@@ -339,16 +339,16 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
339
339
|
}
|
|
340
340
|
})]
|
|
341
341
|
}),
|
|
342
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ r("div", {
|
|
343
343
|
style: { marginBottom: "16px" },
|
|
344
|
-
children: /* @__PURE__ */
|
|
344
|
+
children: /* @__PURE__ */ i("label", {
|
|
345
345
|
style: {
|
|
346
346
|
display: "flex",
|
|
347
347
|
alignItems: "center",
|
|
348
348
|
gap: "8px",
|
|
349
349
|
cursor: "pointer"
|
|
350
350
|
},
|
|
351
|
-
children: [/* @__PURE__ */
|
|
351
|
+
children: [/* @__PURE__ */ r("input", {
|
|
352
352
|
type: "checkbox",
|
|
353
353
|
checked: h,
|
|
354
354
|
onChange: (e) => g(e.target.checked),
|
|
@@ -356,7 +356,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
356
356
|
width: "16px",
|
|
357
357
|
height: "16px"
|
|
358
358
|
}
|
|
359
|
-
}), /* @__PURE__ */
|
|
359
|
+
}), /* @__PURE__ */ r("span", {
|
|
360
360
|
style: {
|
|
361
361
|
fontSize: "13px",
|
|
362
362
|
color: C.textPrimary
|
|
@@ -367,7 +367,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
367
367
|
})
|
|
368
368
|
]
|
|
369
369
|
}),
|
|
370
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ i("div", {
|
|
371
371
|
style: {
|
|
372
372
|
padding: "16px 20px",
|
|
373
373
|
borderTop: `1px solid ${C.borderDefault}`,
|
|
@@ -376,7 +376,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
376
376
|
gap: "12px",
|
|
377
377
|
backgroundColor: C.bgPrimary
|
|
378
378
|
},
|
|
379
|
-
children: [/* @__PURE__ */
|
|
379
|
+
children: [/* @__PURE__ */ r("button", {
|
|
380
380
|
type: "button",
|
|
381
381
|
onClick: l,
|
|
382
382
|
style: {
|
|
@@ -389,7 +389,7 @@ function s({ filter: s, onSave: c, onClose: l }) {
|
|
|
389
389
|
color: C.textSecondary
|
|
390
390
|
},
|
|
391
391
|
children: u("bigconsole.filters.editor.action.cancel", "Cancel")
|
|
392
|
-
}), /* @__PURE__ */
|
|
392
|
+
}), /* @__PURE__ */ r("button", {
|
|
393
393
|
type: "button",
|
|
394
394
|
onClick: k,
|
|
395
395
|
disabled: !A,
|