@burdenoff/microfe-bigconsole 2026.805.2 → 2026.805.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +109 -113
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js.map +1 -1
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +115 -113
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +71 -62
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +90 -89
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +56 -54
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +126 -125
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +151 -150
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +77 -76
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +97 -96
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +172 -191
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +75 -83
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +151 -154
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +181 -190
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js.map +1 -1
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +110 -108
- package/dist/bigconsole/components/dashboard/WidgetPalette.js.map +1 -1
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +102 -103
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +36 -41
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +38 -37
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +113 -117
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +182 -197
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +166 -168
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/DataSinkSelector.js +87 -86
- package/dist/bigconsole/components/parser/DataSinkSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/ImportParserDialog.js +196 -211
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +130 -128
- package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +66 -63
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +95 -91
- package/dist/bigconsole/components/preview/AiPreviewPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +222 -215
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +149 -145
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +504 -470
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +44 -47
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +143 -142
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +101 -88
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js.map +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +135 -134
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js.map +1 -1
- package/dist/bigconsole/components/widgets/form/FormWidget.js +167 -159
- package/dist/bigconsole/components/widgets/form/FormWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +69 -68
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +64 -72
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +60 -59
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/list/ListConfig.js +57 -56
- package/dist/bigconsole/components/widgets/list/ListConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +70 -69
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +35 -34
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +20 -19
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js.map +1 -1
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +178 -177
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +76 -75
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.js +183 -168
- package/dist/bigconsole/components/widgets/table/TableConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +187 -180
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +40 -38
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +150 -148
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.js +181 -176
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +196 -192
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +223 -219
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +167 -170
- package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +204 -189
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +175 -169
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSourcesPage.js +8 -7
- package/dist/bigconsole/pages/DataSourcesPage.js.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +238 -208
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +464 -412
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +92 -90
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +221 -194
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +181 -184
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +128 -127
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +177 -172
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +121 -83
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +199 -193
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +129 -128
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +111 -109
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +127 -126
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +103 -103
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js.map +1 -1
- package/package.json +2 -1
|
@@ -1,103 +1,118 @@
|
|
|
1
1
|
import { memo as e, useCallback as t, useEffect as n, useMemo as r, useState as i } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { useI18n as a } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
3
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
3
4
|
//#region src/bigconsole/components/widgets/table/TableConfig.tsx
|
|
4
|
-
var
|
|
5
|
+
var c = [
|
|
5
6
|
{
|
|
6
7
|
value: "gt",
|
|
7
|
-
|
|
8
|
+
labelKey: "bigconsole.widget.config.table.operator.gt",
|
|
9
|
+
labelDefault: "> greater than"
|
|
8
10
|
},
|
|
9
11
|
{
|
|
10
12
|
value: "gte",
|
|
11
|
-
|
|
13
|
+
labelKey: "bigconsole.widget.config.table.operator.gte",
|
|
14
|
+
labelDefault: "≥ at least"
|
|
12
15
|
},
|
|
13
16
|
{
|
|
14
17
|
value: "lt",
|
|
15
|
-
|
|
18
|
+
labelKey: "bigconsole.widget.config.table.operator.lt",
|
|
19
|
+
labelDefault: "< less than"
|
|
16
20
|
},
|
|
17
21
|
{
|
|
18
22
|
value: "lte",
|
|
19
|
-
|
|
23
|
+
labelKey: "bigconsole.widget.config.table.operator.lte",
|
|
24
|
+
labelDefault: "≤ at most"
|
|
20
25
|
},
|
|
21
26
|
{
|
|
22
27
|
value: "eq",
|
|
23
|
-
|
|
28
|
+
labelKey: "bigconsole.widget.config.table.operator.eq",
|
|
29
|
+
labelDefault: "= equals"
|
|
24
30
|
},
|
|
25
31
|
{
|
|
26
32
|
value: "neq",
|
|
27
|
-
|
|
33
|
+
labelKey: "bigconsole.widget.config.table.operator.neq",
|
|
34
|
+
labelDefault: "≠ not equal"
|
|
28
35
|
},
|
|
29
36
|
{
|
|
30
37
|
value: "between",
|
|
31
|
-
|
|
38
|
+
labelKey: "bigconsole.widget.config.table.operator.between",
|
|
39
|
+
labelDefault: "between"
|
|
32
40
|
},
|
|
33
41
|
{
|
|
34
42
|
value: "outside",
|
|
35
|
-
|
|
43
|
+
labelKey: "bigconsole.widget.config.table.operator.outside",
|
|
44
|
+
labelDefault: "outside"
|
|
36
45
|
},
|
|
37
46
|
{
|
|
38
47
|
value: "contains",
|
|
39
|
-
|
|
48
|
+
labelKey: "bigconsole.widget.config.table.operator.contains",
|
|
49
|
+
labelDefault: "contains"
|
|
40
50
|
}
|
|
41
|
-
],
|
|
51
|
+
], l = [
|
|
42
52
|
{
|
|
43
53
|
value: "danger",
|
|
44
|
-
|
|
54
|
+
labelKey: "bigconsole.widget.config.table.intent.danger",
|
|
55
|
+
labelDefault: "Red — danger"
|
|
45
56
|
},
|
|
46
57
|
{
|
|
47
58
|
value: "warning",
|
|
48
|
-
|
|
59
|
+
labelKey: "bigconsole.widget.config.table.intent.warning",
|
|
60
|
+
labelDefault: "Amber — warning"
|
|
49
61
|
},
|
|
50
62
|
{
|
|
51
63
|
value: "success",
|
|
52
|
-
|
|
64
|
+
labelKey: "bigconsole.widget.config.table.intent.success",
|
|
65
|
+
labelDefault: "Green — good"
|
|
53
66
|
},
|
|
54
67
|
{
|
|
55
68
|
value: "info",
|
|
56
|
-
|
|
69
|
+
labelKey: "bigconsole.widget.config.table.intent.info",
|
|
70
|
+
labelDefault: "Blue — info"
|
|
57
71
|
},
|
|
58
72
|
{
|
|
59
73
|
value: "neutral",
|
|
60
|
-
|
|
74
|
+
labelKey: "bigconsole.widget.config.table.intent.neutral",
|
|
75
|
+
labelDefault: "Neutral"
|
|
61
76
|
}
|
|
62
|
-
],
|
|
63
|
-
let [
|
|
77
|
+
], u = "px-2 py-1 text-xs text-text-primary bg-bg-surface border border-border-default rounded-md focus:outline-none focus:ring-2 focus:ring-action-primary-bg", d = e(function({ config: e, onChange: d }) {
|
|
78
|
+
let { t: f } = a(), [p, m] = i(r(() => (e.columns || []).map((e) => typeof e == "string" ? {
|
|
64
79
|
field: e,
|
|
65
80
|
header: e.charAt(0).toUpperCase() + e.slice(1).replace(/_/g, " ")
|
|
66
81
|
} : e), []));
|
|
67
82
|
n(() => {
|
|
68
|
-
JSON.stringify(e.columns) !== JSON.stringify(
|
|
83
|
+
JSON.stringify(e.columns) !== JSON.stringify(p) && p.length > 0 && d({
|
|
69
84
|
...e,
|
|
70
|
-
columns:
|
|
85
|
+
columns: p
|
|
71
86
|
});
|
|
72
|
-
}, [
|
|
73
|
-
|
|
87
|
+
}, [p]), n(() => {
|
|
88
|
+
m((e.columns || []).map((e) => typeof e == "string" ? {
|
|
74
89
|
field: e,
|
|
75
90
|
header: e.charAt(0).toUpperCase() + e.slice(1).replace(/_/g, " ")
|
|
76
91
|
} : e));
|
|
77
92
|
}, [e.columns]);
|
|
78
|
-
let
|
|
79
|
-
|
|
93
|
+
let h = t((t, n) => {
|
|
94
|
+
d({
|
|
80
95
|
...e,
|
|
81
96
|
[t]: n
|
|
82
97
|
});
|
|
83
|
-
}, [e,
|
|
84
|
-
|
|
98
|
+
}, [e, d]), g = t((e, t, n) => {
|
|
99
|
+
m((r) => {
|
|
85
100
|
let i = [...r];
|
|
86
101
|
return i[e] = {
|
|
87
102
|
...i[e],
|
|
88
103
|
[t]: n
|
|
89
104
|
}, i;
|
|
90
105
|
});
|
|
91
|
-
}, []),
|
|
92
|
-
|
|
106
|
+
}, []), _ = t((e, t) => {
|
|
107
|
+
m((n) => {
|
|
93
108
|
let r = [...n];
|
|
94
109
|
return r[e] = {
|
|
95
110
|
...r[e],
|
|
96
111
|
conditionalRules: t
|
|
97
112
|
}, r;
|
|
98
113
|
});
|
|
99
|
-
}, []),
|
|
100
|
-
let t =
|
|
114
|
+
}, []), v = t((e) => {
|
|
115
|
+
let t = p[e]?.conditionalRules ?? [], n = {
|
|
101
116
|
operator: "gt",
|
|
102
117
|
value: 0,
|
|
103
118
|
style: {
|
|
@@ -106,14 +121,14 @@ var s = [
|
|
|
106
121
|
bold: !0
|
|
107
122
|
}
|
|
108
123
|
};
|
|
109
|
-
|
|
110
|
-
}, [
|
|
111
|
-
|
|
124
|
+
_(e, [...t, n]);
|
|
125
|
+
}, [p, _]), y = t((e, t, n) => {
|
|
126
|
+
_(e, (p[e]?.conditionalRules ?? []).map((e, r) => r === t ? {
|
|
112
127
|
...e,
|
|
113
128
|
...n
|
|
114
129
|
} : e));
|
|
115
|
-
}, [
|
|
116
|
-
|
|
130
|
+
}, [p, _]), b = t((e, t, n) => {
|
|
131
|
+
_(e, (p[e]?.conditionalRules ?? []).map((e, r) => r === t ? {
|
|
117
132
|
...e,
|
|
118
133
|
style: {
|
|
119
134
|
...e.style,
|
|
@@ -121,76 +136,76 @@ var s = [
|
|
|
121
136
|
textColor: n
|
|
122
137
|
}
|
|
123
138
|
} : e));
|
|
124
|
-
}, [
|
|
125
|
-
|
|
126
|
-
}, [
|
|
127
|
-
|
|
139
|
+
}, [p, _]), x = t((e, t) => {
|
|
140
|
+
_(e, (p[e]?.conditionalRules ?? []).filter((e, n) => n !== t));
|
|
141
|
+
}, [p, _]), S = t(() => {
|
|
142
|
+
m((e) => [...e, {
|
|
128
143
|
field: "",
|
|
129
144
|
header: ""
|
|
130
145
|
}]);
|
|
131
|
-
}, []),
|
|
132
|
-
|
|
146
|
+
}, []), C = t((e) => {
|
|
147
|
+
m((t) => t.filter((t, n) => n !== e));
|
|
133
148
|
}, []);
|
|
134
|
-
return /* @__PURE__ */
|
|
149
|
+
return /* @__PURE__ */ s("div", {
|
|
135
150
|
className: "space-y-4",
|
|
136
151
|
children: [
|
|
137
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o("label", {
|
|
138
153
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
139
|
-
children: "Page Size"
|
|
140
|
-
}), /* @__PURE__ */
|
|
154
|
+
children: f("bigconsole.widget.config.table.pageSize.label", "Page Size")
|
|
155
|
+
}), /* @__PURE__ */ s("select", {
|
|
141
156
|
value: e.pageSize || 10,
|
|
142
|
-
onChange: (e) =>
|
|
157
|
+
onChange: (e) => h("pageSize", Number(e.target.value)),
|
|
143
158
|
className: "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n ",
|
|
144
159
|
children: [
|
|
145
|
-
/* @__PURE__ */
|
|
160
|
+
/* @__PURE__ */ o("option", {
|
|
146
161
|
value: 10,
|
|
147
|
-
children: "
|
|
162
|
+
children: f("bigconsole.widget.config.table.pageSize.rows", "{{count}} rows", { count: 10 })
|
|
148
163
|
}),
|
|
149
|
-
/* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ o("option", {
|
|
150
165
|
value: 25,
|
|
151
|
-
children: "
|
|
166
|
+
children: f("bigconsole.widget.config.table.pageSize.rows", "{{count}} rows", { count: 25 })
|
|
152
167
|
}),
|
|
153
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ o("option", {
|
|
154
169
|
value: 50,
|
|
155
|
-
children: "
|
|
170
|
+
children: f("bigconsole.widget.config.table.pageSize.rows", "{{count}} rows", { count: 50 })
|
|
156
171
|
}),
|
|
157
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ o("option", {
|
|
158
173
|
value: 100,
|
|
159
|
-
children: "
|
|
174
|
+
children: f("bigconsole.widget.config.table.pageSize.rows", "{{count}} rows", { count: 100 })
|
|
160
175
|
})
|
|
161
176
|
]
|
|
162
177
|
})] }),
|
|
163
|
-
/* @__PURE__ */
|
|
178
|
+
/* @__PURE__ */ s("div", { children: [/* @__PURE__ */ s("div", {
|
|
164
179
|
className: "flex items-center justify-between mb-2",
|
|
165
|
-
children: [/* @__PURE__ */
|
|
180
|
+
children: [/* @__PURE__ */ o("label", {
|
|
166
181
|
className: "text-sm font-medium text-text-primary",
|
|
167
|
-
children: "Columns"
|
|
168
|
-
}), /* @__PURE__ */
|
|
182
|
+
children: f("bigconsole.widget.config.table.columns.label", "Columns")
|
|
183
|
+
}), /* @__PURE__ */ o("button", {
|
|
169
184
|
type: "button",
|
|
170
|
-
onClick:
|
|
185
|
+
onClick: S,
|
|
171
186
|
className: "\n text-sm text-action-primary-bg\n hover:text-action-primary-bgHover\n ",
|
|
172
|
-
children: "+ Add Column"
|
|
187
|
+
children: f("bigconsole.widget.config.table.columns.add", "+ Add Column")
|
|
173
188
|
})]
|
|
174
|
-
}), /* @__PURE__ */
|
|
189
|
+
}), /* @__PURE__ */ s("div", {
|
|
175
190
|
className: "space-y-3",
|
|
176
|
-
children: [
|
|
191
|
+
children: [p.map((e, t) => /* @__PURE__ */ s("div", {
|
|
177
192
|
className: "\n p-3\n bg-bg-sunken\n rounded-md\n space-y-2\n ",
|
|
178
193
|
children: [
|
|
179
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ s("div", {
|
|
180
195
|
className: "flex items-center justify-between",
|
|
181
196
|
children: [/* @__PURE__ */ o("span", {
|
|
182
197
|
className: "text-xs text-text-secondary",
|
|
183
|
-
children:
|
|
184
|
-
}), /* @__PURE__ */
|
|
198
|
+
children: f("bigconsole.widget.config.table.columns.columnN", "Column {{index}}", { index: t + 1 })
|
|
199
|
+
}), /* @__PURE__ */ o("button", {
|
|
185
200
|
type: "button",
|
|
186
|
-
onClick: () =>
|
|
201
|
+
onClick: () => C(t),
|
|
187
202
|
className: "text-status-error-text hover:text-status-error-text/80",
|
|
188
|
-
children: /* @__PURE__ */
|
|
203
|
+
children: /* @__PURE__ */ o("svg", {
|
|
189
204
|
className: "w-4 h-4",
|
|
190
205
|
fill: "none",
|
|
191
206
|
stroke: "currentColor",
|
|
192
207
|
viewBox: "0 0 24 24",
|
|
193
|
-
children: /* @__PURE__ */
|
|
208
|
+
children: /* @__PURE__ */ o("path", {
|
|
194
209
|
strokeLinecap: "round",
|
|
195
210
|
strokeLinejoin: "round",
|
|
196
211
|
strokeWidth: 2,
|
|
@@ -199,136 +214,136 @@ var s = [
|
|
|
199
214
|
})
|
|
200
215
|
})]
|
|
201
216
|
}),
|
|
202
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ s("div", {
|
|
203
218
|
className: "grid grid-cols-2 gap-2",
|
|
204
|
-
children: [/* @__PURE__ */
|
|
219
|
+
children: [/* @__PURE__ */ o("input", {
|
|
205
220
|
type: "text",
|
|
206
221
|
value: e.field || "",
|
|
207
|
-
onChange: (e) =>
|
|
208
|
-
placeholder: "Field name",
|
|
222
|
+
onChange: (e) => g(t, "field", e.target.value),
|
|
223
|
+
placeholder: f("bigconsole.widget.config.table.column.fieldPlaceholder", "Field name"),
|
|
209
224
|
className: "\n px-2 py-1\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n "
|
|
210
|
-
}), /* @__PURE__ */
|
|
225
|
+
}), /* @__PURE__ */ o("input", {
|
|
211
226
|
type: "text",
|
|
212
227
|
value: e.header || "",
|
|
213
|
-
onChange: (e) =>
|
|
214
|
-
placeholder: "Header label",
|
|
228
|
+
onChange: (e) => g(t, "header", e.target.value),
|
|
229
|
+
placeholder: f("bigconsole.widget.config.table.column.headerPlaceholder", "Header label"),
|
|
215
230
|
className: "\n px-2 py-1\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n "
|
|
216
231
|
})]
|
|
217
232
|
}),
|
|
218
|
-
/* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ s("div", {
|
|
219
234
|
className: "grid grid-cols-2 gap-2",
|
|
220
|
-
children: [/* @__PURE__ */
|
|
235
|
+
children: [/* @__PURE__ */ s("select", {
|
|
221
236
|
value: e.format || "text",
|
|
222
|
-
onChange: (e) =>
|
|
237
|
+
onChange: (e) => g(t, "format", e.target.value),
|
|
223
238
|
className: "\n px-2 py-1\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n ",
|
|
224
239
|
children: [
|
|
225
|
-
/* @__PURE__ */
|
|
240
|
+
/* @__PURE__ */ o("option", {
|
|
226
241
|
value: "text",
|
|
227
|
-
children: "Text"
|
|
242
|
+
children: f("bigconsole.widget.config.table.format.text", "Text")
|
|
228
243
|
}),
|
|
229
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ o("option", {
|
|
230
245
|
value: "number",
|
|
231
|
-
children: "Number"
|
|
246
|
+
children: f("bigconsole.widget.config.table.format.number", "Number")
|
|
232
247
|
}),
|
|
233
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ o("option", {
|
|
234
249
|
value: "currency",
|
|
235
|
-
children: "Currency"
|
|
250
|
+
children: f("bigconsole.widget.config.table.format.currency", "Currency")
|
|
236
251
|
}),
|
|
237
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ o("option", {
|
|
238
253
|
value: "percentage",
|
|
239
|
-
children: "Percentage"
|
|
254
|
+
children: f("bigconsole.widget.config.table.format.percentage", "Percentage")
|
|
240
255
|
}),
|
|
241
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ o("option", {
|
|
242
257
|
value: "date",
|
|
243
|
-
children: "Date"
|
|
258
|
+
children: f("bigconsole.widget.config.table.format.date", "Date")
|
|
244
259
|
}),
|
|
245
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ o("option", {
|
|
246
261
|
value: "badge",
|
|
247
|
-
children: "Badge"
|
|
262
|
+
children: f("bigconsole.widget.config.table.format.badge", "Badge")
|
|
248
263
|
})
|
|
249
264
|
]
|
|
250
|
-
}), /* @__PURE__ */
|
|
265
|
+
}), /* @__PURE__ */ s("select", {
|
|
251
266
|
value: e.align || "left",
|
|
252
|
-
onChange: (e) =>
|
|
267
|
+
onChange: (e) => g(t, "align", e.target.value),
|
|
253
268
|
className: "\n px-2 py-1\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n ",
|
|
254
269
|
children: [
|
|
255
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ o("option", {
|
|
256
271
|
value: "left",
|
|
257
|
-
children: "Left"
|
|
272
|
+
children: f("bigconsole.widget.config.table.align.left", "Left")
|
|
258
273
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ o("option", {
|
|
260
275
|
value: "center",
|
|
261
|
-
children: "Center"
|
|
276
|
+
children: f("bigconsole.widget.config.table.align.center", "Center")
|
|
262
277
|
}),
|
|
263
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ o("option", {
|
|
264
279
|
value: "right",
|
|
265
|
-
children: "Right"
|
|
280
|
+
children: f("bigconsole.widget.config.table.align.right", "Right")
|
|
266
281
|
})
|
|
267
282
|
]
|
|
268
283
|
})]
|
|
269
284
|
}),
|
|
270
|
-
/* @__PURE__ */
|
|
285
|
+
/* @__PURE__ */ s("div", {
|
|
271
286
|
className: "pt-2 border-t border-border-default/60",
|
|
272
287
|
children: [
|
|
273
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ s("div", {
|
|
274
289
|
className: "flex items-center justify-between mb-1",
|
|
275
|
-
children: [/* @__PURE__ */
|
|
290
|
+
children: [/* @__PURE__ */ o("span", {
|
|
276
291
|
className: "text-xs font-medium text-text-secondary",
|
|
277
|
-
children: "Conditional formatting"
|
|
278
|
-
}), /* @__PURE__ */
|
|
292
|
+
children: f("bigconsole.widget.config.table.conditionalFormatting.title", "Conditional formatting")
|
|
293
|
+
}), /* @__PURE__ */ o("button", {
|
|
279
294
|
type: "button",
|
|
280
|
-
onClick: () =>
|
|
295
|
+
onClick: () => v(t),
|
|
281
296
|
className: "text-xs text-action-primary-bg hover:text-action-primary-bgHover",
|
|
282
|
-
children: "+ Add rule"
|
|
297
|
+
children: f("bigconsole.widget.config.table.conditionalFormatting.addRule", "+ Add rule")
|
|
283
298
|
})]
|
|
284
299
|
}),
|
|
285
|
-
(e.conditionalRules?.length ?? 0) === 0 && /* @__PURE__ */
|
|
300
|
+
(e.conditionalRules?.length ?? 0) === 0 && /* @__PURE__ */ o("p", {
|
|
286
301
|
className: "text-xs text-text-secondary",
|
|
287
|
-
children: "No rules — cell shows its plain value."
|
|
302
|
+
children: f("bigconsole.widget.config.table.conditionalFormatting.noRules", "No rules — cell shows its plain value.")
|
|
288
303
|
}),
|
|
289
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ o("div", {
|
|
290
305
|
className: "space-y-2",
|
|
291
306
|
children: (e.conditionalRules ?? []).map((e, n) => {
|
|
292
307
|
let r = e.operator === "between" || e.operator === "outside", i = e.style?.bgColor ?? e.style?.textColor ?? "danger";
|
|
293
|
-
return /* @__PURE__ */
|
|
308
|
+
return /* @__PURE__ */ s("div", {
|
|
294
309
|
className: "p-2 bg-bg-surface rounded-md border border-border-default space-y-2",
|
|
295
|
-
children: [/* @__PURE__ */
|
|
310
|
+
children: [/* @__PURE__ */ s("div", {
|
|
296
311
|
className: "flex items-center gap-2",
|
|
297
312
|
children: [
|
|
298
|
-
/* @__PURE__ */
|
|
313
|
+
/* @__PURE__ */ o("select", {
|
|
299
314
|
value: e.operator,
|
|
300
|
-
onChange: (e) =>
|
|
301
|
-
className: `${
|
|
302
|
-
children:
|
|
315
|
+
onChange: (e) => y(t, n, { operator: e.target.value }),
|
|
316
|
+
className: `${u} flex-1`,
|
|
317
|
+
children: c.map((e) => /* @__PURE__ */ o("option", {
|
|
303
318
|
value: e.value,
|
|
304
|
-
children: e.
|
|
319
|
+
children: f(e.labelKey, e.labelDefault)
|
|
305
320
|
}, e.value))
|
|
306
321
|
}),
|
|
307
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ o("input", {
|
|
308
323
|
type: "text",
|
|
309
324
|
value: e.value ?? "",
|
|
310
|
-
onChange: (e) =>
|
|
311
|
-
placeholder: "value",
|
|
312
|
-
className: `${
|
|
325
|
+
onChange: (e) => y(t, n, { value: e.target.value }),
|
|
326
|
+
placeholder: f("bigconsole.widget.config.table.rule.valuePlaceholder", "value"),
|
|
327
|
+
className: `${u} w-20`
|
|
313
328
|
}),
|
|
314
|
-
r && /* @__PURE__ */
|
|
329
|
+
r && /* @__PURE__ */ o("input", {
|
|
315
330
|
type: "text",
|
|
316
331
|
value: e.value2 ?? "",
|
|
317
|
-
onChange: (e) =>
|
|
318
|
-
placeholder: "and",
|
|
319
|
-
className: `${
|
|
332
|
+
onChange: (e) => y(t, n, { value2: e.target.value }),
|
|
333
|
+
placeholder: f("bigconsole.widget.config.table.rule.value2Placeholder", "and"),
|
|
334
|
+
className: `${u} w-20`
|
|
320
335
|
}),
|
|
321
|
-
/* @__PURE__ */
|
|
336
|
+
/* @__PURE__ */ o("button", {
|
|
322
337
|
type: "button",
|
|
323
|
-
onClick: () =>
|
|
338
|
+
onClick: () => x(t, n),
|
|
324
339
|
className: "text-status-error-text hover:text-status-error-text/80",
|
|
325
|
-
"aria-label": "Remove rule",
|
|
326
|
-
children: /* @__PURE__ */
|
|
340
|
+
"aria-label": f("bigconsole.widget.config.table.rule.remove", "Remove rule"),
|
|
341
|
+
children: /* @__PURE__ */ o("svg", {
|
|
327
342
|
className: "w-3.5 h-3.5",
|
|
328
343
|
fill: "none",
|
|
329
344
|
stroke: "currentColor",
|
|
330
345
|
viewBox: "0 0 24 24",
|
|
331
|
-
children: /* @__PURE__ */
|
|
346
|
+
children: /* @__PURE__ */ o("path", {
|
|
332
347
|
strokeLinecap: "round",
|
|
333
348
|
strokeLinejoin: "round",
|
|
334
349
|
strokeWidth: 2,
|
|
@@ -337,27 +352,27 @@ var s = [
|
|
|
337
352
|
})
|
|
338
353
|
})
|
|
339
354
|
]
|
|
340
|
-
}), /* @__PURE__ */
|
|
355
|
+
}), /* @__PURE__ */ s("div", {
|
|
341
356
|
className: "flex items-center gap-2",
|
|
342
|
-
children: [/* @__PURE__ */
|
|
357
|
+
children: [/* @__PURE__ */ o("select", {
|
|
343
358
|
value: i,
|
|
344
|
-
onChange: (e) =>
|
|
345
|
-
className: `${
|
|
346
|
-
children:
|
|
359
|
+
onChange: (e) => b(t, n, e.target.value),
|
|
360
|
+
className: `${u} flex-1`,
|
|
361
|
+
children: l.map((e) => /* @__PURE__ */ o("option", {
|
|
347
362
|
value: e.value,
|
|
348
|
-
children: e.
|
|
363
|
+
children: f(e.labelKey, e.labelDefault)
|
|
349
364
|
}, e.value))
|
|
350
|
-
}), /* @__PURE__ */
|
|
365
|
+
}), /* @__PURE__ */ s("label", {
|
|
351
366
|
className: "flex items-center gap-1 text-xs text-text-primary",
|
|
352
|
-
children: [/* @__PURE__ */
|
|
367
|
+
children: [/* @__PURE__ */ o("input", {
|
|
353
368
|
type: "checkbox",
|
|
354
369
|
checked: e.style?.bold === !0,
|
|
355
|
-
onChange: (r) =>
|
|
370
|
+
onChange: (r) => y(t, n, { style: {
|
|
356
371
|
...e.style,
|
|
357
372
|
bold: r.target.checked
|
|
358
373
|
} }),
|
|
359
374
|
className: "w-3.5 h-3.5 text-action-primary-bg bg-bg-surface border-border-default rounded focus:ring-action-primary-bg"
|
|
360
|
-
}), "Bold"]
|
|
375
|
+
}), f("bigconsole.widget.config.table.rule.bold", "Bold")]
|
|
361
376
|
})]
|
|
362
377
|
})]
|
|
363
378
|
}, n);
|
|
@@ -366,72 +381,72 @@ var s = [
|
|
|
366
381
|
]
|
|
367
382
|
})
|
|
368
383
|
]
|
|
369
|
-
}, t)),
|
|
384
|
+
}, t)), p.length === 0 && /* @__PURE__ */ o("p", {
|
|
370
385
|
className: "text-sm text-text-secondary text-center py-4",
|
|
371
|
-
children: "No columns configured. Columns will be auto-generated from data."
|
|
386
|
+
children: f("bigconsole.widget.config.table.columns.empty", "No columns configured. Columns will be auto-generated from data.")
|
|
372
387
|
})]
|
|
373
388
|
})] }),
|
|
374
|
-
/* @__PURE__ */
|
|
389
|
+
/* @__PURE__ */ s("div", {
|
|
375
390
|
className: "space-y-3",
|
|
376
391
|
children: [
|
|
377
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ s("label", {
|
|
378
393
|
className: "flex items-center gap-3",
|
|
379
|
-
children: [/* @__PURE__ */
|
|
394
|
+
children: [/* @__PURE__ */ o("input", {
|
|
380
395
|
type: "checkbox",
|
|
381
396
|
checked: e.showSearch !== !1,
|
|
382
|
-
onChange: (e) =>
|
|
397
|
+
onChange: (e) => h("showSearch", e.target.checked),
|
|
383
398
|
className: "\n w-4 h-4\n text-action-primary-bg\n bg-bg-surface\n border-border-default\n rounded\n focus:ring-action-primary-bg\n "
|
|
384
|
-
}), /* @__PURE__ */
|
|
399
|
+
}), /* @__PURE__ */ o("span", {
|
|
385
400
|
className: "text-sm text-text-primary",
|
|
386
|
-
children: "Show search box"
|
|
401
|
+
children: f("bigconsole.widget.config.table.showSearch", "Show search box")
|
|
387
402
|
})]
|
|
388
403
|
}),
|
|
389
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ s("label", {
|
|
390
405
|
className: "flex items-center gap-3",
|
|
391
|
-
children: [/* @__PURE__ */
|
|
406
|
+
children: [/* @__PURE__ */ o("input", {
|
|
392
407
|
type: "checkbox",
|
|
393
408
|
checked: e.showPagination !== !1,
|
|
394
|
-
onChange: (e) =>
|
|
409
|
+
onChange: (e) => h("showPagination", e.target.checked),
|
|
395
410
|
className: "\n w-4 h-4\n text-action-primary-bg\n bg-bg-surface\n border-border-default\n rounded\n focus:ring-action-primary-bg\n "
|
|
396
|
-
}), /* @__PURE__ */
|
|
411
|
+
}), /* @__PURE__ */ o("span", {
|
|
397
412
|
className: "text-sm text-text-primary",
|
|
398
|
-
children: "Show pagination"
|
|
413
|
+
children: f("bigconsole.widget.config.table.showPagination", "Show pagination")
|
|
399
414
|
})]
|
|
400
415
|
}),
|
|
401
|
-
/* @__PURE__ */
|
|
416
|
+
/* @__PURE__ */ s("label", {
|
|
402
417
|
className: "flex items-center gap-3",
|
|
403
|
-
children: [/* @__PURE__ */
|
|
418
|
+
children: [/* @__PURE__ */ o("input", {
|
|
404
419
|
type: "checkbox",
|
|
405
420
|
checked: e.showExport !== !1,
|
|
406
|
-
onChange: (e) =>
|
|
421
|
+
onChange: (e) => h("showExport", e.target.checked),
|
|
407
422
|
className: "\n w-4 h-4\n text-action-primary-bg\n bg-bg-surface\n border-border-default\n rounded\n focus:ring-action-primary-bg\n "
|
|
408
|
-
}), /* @__PURE__ */
|
|
423
|
+
}), /* @__PURE__ */ o("span", {
|
|
409
424
|
className: "text-sm text-text-primary",
|
|
410
|
-
children: "Show export button"
|
|
425
|
+
children: f("bigconsole.widget.config.table.showExport", "Show export button")
|
|
411
426
|
})]
|
|
412
427
|
}),
|
|
413
|
-
/* @__PURE__ */
|
|
428
|
+
/* @__PURE__ */ s("label", {
|
|
414
429
|
className: "flex items-center gap-3",
|
|
415
|
-
children: [/* @__PURE__ */
|
|
430
|
+
children: [/* @__PURE__ */ o("input", {
|
|
416
431
|
type: "checkbox",
|
|
417
432
|
checked: e.stickyHeader === !0,
|
|
418
|
-
onChange: (e) =>
|
|
433
|
+
onChange: (e) => h("stickyHeader", e.target.checked),
|
|
419
434
|
className: "\n w-4 h-4\n text-action-primary-bg\n bg-bg-surface\n border-border-default\n rounded\n focus:ring-action-primary-bg\n "
|
|
420
|
-
}), /* @__PURE__ */
|
|
435
|
+
}), /* @__PURE__ */ o("span", {
|
|
421
436
|
className: "text-sm text-text-primary",
|
|
422
|
-
children: "Sticky header"
|
|
437
|
+
children: f("bigconsole.widget.config.table.stickyHeader", "Sticky header")
|
|
423
438
|
})]
|
|
424
439
|
}),
|
|
425
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ s("label", {
|
|
426
441
|
className: "flex items-center gap-3",
|
|
427
|
-
children: [/* @__PURE__ */
|
|
442
|
+
children: [/* @__PURE__ */ o("input", {
|
|
428
443
|
type: "checkbox",
|
|
429
444
|
checked: e.stripedRows === !0,
|
|
430
|
-
onChange: (e) =>
|
|
445
|
+
onChange: (e) => h("stripedRows", e.target.checked),
|
|
431
446
|
className: "\n w-4 h-4\n text-action-primary-bg\n bg-bg-surface\n border-border-default\n rounded\n focus:ring-action-primary-bg\n "
|
|
432
|
-
}), /* @__PURE__ */
|
|
447
|
+
}), /* @__PURE__ */ o("span", {
|
|
433
448
|
className: "text-sm text-text-primary",
|
|
434
|
-
children: "Striped rows"
|
|
449
|
+
children: f("bigconsole.widget.config.table.stripedRows", "Striped rows")
|
|
435
450
|
})]
|
|
436
451
|
})
|
|
437
452
|
]
|
|
@@ -440,6 +455,6 @@ var s = [
|
|
|
440
455
|
});
|
|
441
456
|
});
|
|
442
457
|
//#endregion
|
|
443
|
-
export {
|
|
458
|
+
export { d as default };
|
|
444
459
|
|
|
445
460
|
//# sourceMappingURL=TableConfig.js.map
|