@burdenoff/microfe-bigconsole 2026.805.3 → 2026.812.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/components/DrilldownDashboardRenderer.js +118 -106
- package/dist/bigconsole/components/DrilldownDashboardRenderer.js.map +1 -1
- package/dist/bigconsole/components/DrilldownModal.js +54 -50
- package/dist/bigconsole/components/DrilldownModal.js.map +1 -1
- package/dist/bigconsole/components/builder/BuilderCanvas.js +2 -2
- package/dist/bigconsole/components/builder/BuilderCanvas.js.map +1 -1
- package/dist/bigconsole/components/builder/BuilderTopbar.js +3 -3
- package/dist/bigconsole/components/builder/BuilderTopbar.js.map +1 -1
- package/dist/bigconsole/components/builder/inspector/AdvancedSection.js +24 -25
- package/dist/bigconsole/components/builder/inspector/AdvancedSection.js.map +1 -1
- package/dist/bigconsole/components/builder/inspector/AppearanceSection.js +40 -29
- package/dist/bigconsole/components/builder/inspector/AppearanceSection.js.map +1 -1
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +135 -97
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js.map +1 -1
- package/dist/bigconsole/components/builder/inspector/GeneralSection.js +58 -44
- package/dist/bigconsole/components/builder/inspector/GeneralSection.js.map +1 -1
- package/dist/bigconsole/components/common/Section.js +70 -0
- package/dist/bigconsole/components/common/Section.js.map +1 -0
- package/dist/bigconsole/components/common/index.js +2 -0
- package/dist/bigconsole/components/common/sectionStyles.js +42 -0
- package/dist/bigconsole/components/common/sectionStyles.js.map +1 -0
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +209 -193
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +213 -231
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardGrid.js +12 -18
- package/dist/bigconsole/components/dashboard/DashboardGrid.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +109 -102
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +81 -70
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +125 -159
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +25 -23
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +3 -3
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +5 -3
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +170 -284
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +147 -151
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/LiveBoardBanner.js +45 -53
- package/dist/bigconsole/components/dashboard/LiveBoardBanner.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js +157 -148
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js.map +1 -1
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +17 -8
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -95
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/StoreTemplatePicker.js +20 -18
- package/dist/bigconsole/components/dashboard/StoreTemplatePicker.js.map +1 -1
- package/dist/bigconsole/components/dashboard/TemplateSetupBanner.js +26 -58
- package/dist/bigconsole/components/dashboard/TemplateSetupBanner.js.map +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +307 -231
- package/dist/bigconsole/components/dashboard/WidgetPalette.js.map +1 -1
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +29 -29
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkCard.js +78 -79
- package/dist/bigconsole/components/datasink/DataSinkCard.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkDataViewer.js +33 -34
- package/dist/bigconsole/components/datasink/DataSinkDataViewer.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +79 -56
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +75 -65
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +1 -1
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.js +20 -19
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.js.map +1 -1
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js +127 -171
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +263 -243
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/LinkedParsersPanel.js +65 -66
- package/dist/bigconsole/components/datasink/LinkedParsersPanel.js.map +1 -1
- package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.js +121 -127
- package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.js.map +1 -1
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +33 -26
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js.map +1 -1
- package/dist/bigconsole/components/datasink/SetupStateBadge.js +3 -3
- package/dist/bigconsole/components/datasink/SetupStateBadge.js.map +1 -1
- package/dist/bigconsole/components/datasink/WorkflowStatusPanel.js +95 -95
- package/dist/bigconsole/components/datasink/WorkflowStatusPanel.js.map +1 -1
- package/dist/bigconsole/components/parser/DataSinkSelector.js +154 -123
- package/dist/bigconsole/components/parser/DataSinkSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/ExpressionEditor.js +3 -3
- package/dist/bigconsole/components/parser/ExpressionEditor.js.map +1 -1
- package/dist/bigconsole/components/parser/ImportParserDialog.js +235 -275
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserCard.js +133 -114
- package/dist/bigconsole/components/parser/ParserCard.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +191 -174
- package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserStatusBadge.js +2 -2
- package/dist/bigconsole/components/parser/ParserStatusBadge.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserTypeBadge.js +4 -4
- package/dist/bigconsole/components/parser/ParserTypeBadge.js.map +1 -1
- package/dist/bigconsole/components/pipeline/PipelineCard.js +134 -89
- package/dist/bigconsole/components/pipeline/PipelineCard.js.map +1 -1
- package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.js +77 -64
- package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.js.map +1 -1
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +7 -10
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewContent.js +31 -32
- package/dist/bigconsole/components/preview/AiPreviewContent.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +152 -106
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +193 -152
- package/dist/bigconsole/components/preview/AiPreviewPanel.js.map +1 -1
- package/dist/bigconsole/components/preview/previewShared.js +41 -23
- package/dist/bigconsole/components/preview/previewShared.js.map +1 -1
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +342 -308
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +262 -238
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +783 -867
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetErrorBoundary.js +7 -5
- package/dist/bigconsole/components/widgets/WidgetErrorBoundary.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.js +7 -8
- package/dist/bigconsole/components/widgets/WidgetHeader.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetRegistry.js +4 -4
- package/dist/bigconsole/components/widgets/WidgetRegistry.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetWrapper.js +8 -7
- package/dist/bigconsole/components/widgets/WidgetWrapper.js.map +1 -1
- package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.js +1 -1
- package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +2 -2
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +11 -5
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +19 -15
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js.map +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +154 -102
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js.map +1 -1
- package/dist/bigconsole/components/widgets/gauge/CircularGauge.js +36 -32
- package/dist/bigconsole/components/widgets/gauge/CircularGauge.js.map +1 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +85 -60
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js +64 -35
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/gauge/LinearGauge.js +46 -45
- package/dist/bigconsole/components/widgets/gauge/LinearGauge.js.map +1 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +35 -24
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +2 -2
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js +153 -90
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/list/ListConfig.js +8 -2
- package/dist/bigconsole/components/widgets/list/ListConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/list/ListItem.js +1 -1
- package/dist/bigconsole/components/widgets/list/ListItem.js.map +1 -1
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.js +1 -1
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +14 -4
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js +112 -89
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +21 -13
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/index.js +4 -4
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +3 -3
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +34 -25
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/progress/ProgressWidget.js +129 -114
- package/dist/bigconsole/components/widgets/progress/ProgressWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/retention/RetentionWidget.js +3 -3
- package/dist/bigconsole/components/widgets/retention/RetentionWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/states/EmptyState.js +6 -4
- package/dist/bigconsole/components/widgets/states/EmptyState.js.map +1 -1
- package/dist/bigconsole/components/widgets/states/ErrorState.js +7 -5
- package/dist/bigconsole/components/widgets/states/ErrorState.js.map +1 -1
- package/dist/bigconsole/components/widgets/states/LoadingState.js +5 -4
- package/dist/bigconsole/components/widgets/states/LoadingState.js.map +1 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.js +10 -4
- package/dist/bigconsole/components/widgets/table/TableConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/table/TableHeader.js +1 -1
- package/dist/bigconsole/components/widgets/table/TableHeader.js.map +1 -1
- package/dist/bigconsole/components/widgets/table/TableWidget.js +1 -1
- package/dist/bigconsole/components/widgets/table/TableWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.js +1 -1
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.js +3 -3
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/utils/conditionalFormat.js +2 -2
- package/dist/bigconsole/components/widgets/utils/conditionalFormat.js.map +1 -1
- package/dist/bigconsole/components/widgets/utils/targetProgress.js +13 -0
- package/dist/bigconsole/components/widgets/utils/targetProgress.js.map +1 -0
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +112 -85
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +28 -20
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js.map +1 -1
- package/dist/bigconsole/components/workflow/WorkflowCard.js +92 -77
- package/dist/bigconsole/components/workflow/WorkflowCard.js.map +1 -1
- package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.js +70 -51
- package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.js.map +1 -1
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +16 -17
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +6 -4
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +360 -338
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/hooks/useModalFocusTrap.js +53 -0
- package/dist/bigconsole/hooks/useModalFocusTrap.js.map +1 -0
- package/dist/bigconsole/pages/DashboardBuilderPage.js +209 -203
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +126 -120
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +838 -800
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +263 -315
- package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +301 -341
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +346 -339
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +356 -458
- package/dist/bigconsole/pages/DataSinksPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSourcesPage.js +7 -2
- package/dist/bigconsole/pages/DataSourcesPage.js.map +1 -1
- package/dist/bigconsole/pages/HomePage.js +186 -193
- package/dist/bigconsole/pages/HomePage.js.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +887 -740
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +679 -637
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +368 -342
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +537 -444
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +412 -377
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +248 -298
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +251 -153
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +381 -371
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +171 -286
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { Section as e } from "../common/Section.js";
|
|
2
|
+
import "../common/index.js";
|
|
3
|
+
import { BIGCONSOLE_PERMISSIONS as t } from "../../../constants/permissions.js";
|
|
4
|
+
import { memo as n, useCallback as r, useEffect as ee, useMemo as i, useRef as te, useState as a } from "react";
|
|
5
|
+
import { PermissionButton as ne } from "@burdenoff/fe-libs/shared/components";
|
|
6
|
+
import { ChevronDown as re, ChevronRight as ie, Pencil as ae, Plus as oe, Zap as se } from "lucide-react";
|
|
7
|
+
import { useI18n as ce } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
8
|
+
import { Button as le, Checkbox as o, Dialog as ue, DialogContent as de, DialogDescription as fe, DialogFooter as pe, DialogHeader as me, DialogTitle as he, Input as s, Select as c, SelectContent as l, SelectItem as u, SelectTrigger as d, SelectValue as f, Spinner as ge, Textarea as _e } from "@burdenoff/fe-libs/ui";
|
|
9
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
8
10
|
//#region src/bigconsole/components/widgets/ActionConfigDialog.tsx
|
|
9
11
|
var ve = [
|
|
10
12
|
"POST",
|
|
@@ -49,125 +51,132 @@ var ve = [
|
|
|
49
51
|
"filter",
|
|
50
52
|
"search"
|
|
51
53
|
];
|
|
52
|
-
function
|
|
54
|
+
function h(e) {
|
|
53
55
|
return e.trim().toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
|
|
54
56
|
}
|
|
55
|
-
var
|
|
57
|
+
var g = {
|
|
56
58
|
display: "block",
|
|
57
59
|
fontSize: "var(--font-size-body-sm)",
|
|
58
|
-
fontWeight: "var(--font-weight-
|
|
60
|
+
fontWeight: "var(--font-weight-medium)",
|
|
59
61
|
color: "var(--color-text-primary)",
|
|
60
62
|
marginBottom: "var(--space-controlGap)"
|
|
61
|
-
},
|
|
63
|
+
}, xe = {
|
|
64
|
+
margin: "0 0 var(--space-controlGap) 0",
|
|
65
|
+
fontSize: "var(--font-size-body-sm)",
|
|
66
|
+
fontWeight: "var(--font-weight-bold)",
|
|
67
|
+
letterSpacing: "0.06em",
|
|
68
|
+
textTransform: "uppercase",
|
|
69
|
+
color: "var(--color-text-secondary)"
|
|
70
|
+
}, _ = {
|
|
62
71
|
fontSize: "var(--font-size-body-sm)",
|
|
63
72
|
color: "var(--color-text-muted)",
|
|
64
73
|
marginTop: "var(--space-controlGap)"
|
|
65
|
-
},
|
|
74
|
+
}, v = {
|
|
66
75
|
zIndex: 9999,
|
|
67
76
|
backgroundColor: "var(--color-overlay-popoverBg, var(--color-bg-surface))",
|
|
68
|
-
border: "1px solid var(--color-border)",
|
|
77
|
+
border: "1px solid var(--color-border-subtle)",
|
|
69
78
|
boxShadow: "var(--shadow-elevation-3)",
|
|
70
79
|
borderRadius: "var(--radius-button)"
|
|
71
|
-
},
|
|
72
|
-
let { t:
|
|
80
|
+
}, y = n(function({ isOpen: n, action: y, initialWebhook: b, isLoading: x = !1, saveError: Se, onClose: Ce, onSave: we }) {
|
|
81
|
+
let { t: S } = ce(), C = !!y, Te = te(null), w = te(!1), [T, E] = a(""), [D, O] = a(""), [k, A] = a(!1), [j, M] = a("PRIMARY"), [N, Ee] = a(""), [P, F] = a("WEBHOOK"), [I, L] = a(""), [R, z] = a("POST"), [B, V] = a(!1), [H, U] = a(!1), [W, De] = a(!1), [G, K] = a(!1), [q, J] = a(() => S("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action")), [Oe, Y] = a(() => S("bigconsole.widget.actions.confirm.defaultMessage", "Are you sure you want to proceed?")), [ke, X] = a(() => S("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), [Ae, Z] = a(() => S("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel")), [Q, $] = a(null), je = i(() => [{
|
|
73
82
|
value: "WEBHOOK",
|
|
74
|
-
label:
|
|
75
|
-
hint:
|
|
83
|
+
label: S("bigconsole.widget.actions.outcome.webhook.label", "Call a webhook / my API"),
|
|
84
|
+
hint: S("bigconsole.widget.actions.outcome.webhook.hint", "Sends an HTTP request to the URL below every time the button is clicked.")
|
|
76
85
|
}, {
|
|
77
86
|
value: "EMIT",
|
|
78
|
-
label:
|
|
79
|
-
hint:
|
|
80
|
-
}], [
|
|
87
|
+
label: S("bigconsole.widget.actions.outcome.emit.label", "Just emit an event (advanced)"),
|
|
88
|
+
hint: S("bigconsole.widget.actions.outcome.emit.hint", "Emits widget:<name>:clicked. Wire it up yourself in the Webhooks/Events section.")
|
|
89
|
+
}], [S]), Me = i(() => {
|
|
81
90
|
let e = {
|
|
82
|
-
PRIMARY:
|
|
83
|
-
SECONDARY:
|
|
84
|
-
SUCCESS:
|
|
85
|
-
WARNING:
|
|
86
|
-
DANGER:
|
|
87
|
-
GHOST:
|
|
88
|
-
LINK:
|
|
91
|
+
PRIMARY: S("bigconsole.widget.actions.style.primary", "Primary"),
|
|
92
|
+
SECONDARY: S("bigconsole.widget.actions.style.secondary", "Secondary"),
|
|
93
|
+
SUCCESS: S("bigconsole.widget.actions.style.success", "Success"),
|
|
94
|
+
WARNING: S("bigconsole.widget.actions.style.warning", "Warning"),
|
|
95
|
+
DANGER: S("bigconsole.widget.actions.style.danger", "Danger"),
|
|
96
|
+
GHOST: S("bigconsole.widget.actions.style.ghost", "Ghost"),
|
|
97
|
+
LINK: S("bigconsole.widget.actions.style.link", "Link")
|
|
89
98
|
};
|
|
90
99
|
return ye.map((t) => ({
|
|
91
100
|
value: t.value,
|
|
92
101
|
label: e[t.value],
|
|
93
102
|
color: t.color
|
|
94
103
|
}));
|
|
95
|
-
}, [
|
|
104
|
+
}, [S]), Ne = i(() => {
|
|
96
105
|
let e = {
|
|
97
|
-
"":
|
|
98
|
-
refresh:
|
|
99
|
-
download:
|
|
100
|
-
upload:
|
|
101
|
-
trash:
|
|
102
|
-
edit:
|
|
103
|
-
plus:
|
|
104
|
-
check:
|
|
105
|
-
eye:
|
|
106
|
-
copy:
|
|
107
|
-
share:
|
|
108
|
-
settings:
|
|
109
|
-
filter:
|
|
110
|
-
search:
|
|
106
|
+
"": S("bigconsole.widget.actions.icon.none", "No icon"),
|
|
107
|
+
refresh: S("bigconsole.widget.actions.icon.refresh", "Refresh"),
|
|
108
|
+
download: S("bigconsole.widget.actions.icon.download", "Download"),
|
|
109
|
+
upload: S("bigconsole.widget.actions.icon.upload", "Upload"),
|
|
110
|
+
trash: S("bigconsole.widget.actions.icon.trash", "Trash"),
|
|
111
|
+
edit: S("bigconsole.widget.actions.icon.edit", "Edit"),
|
|
112
|
+
plus: S("bigconsole.widget.actions.icon.plus", "Plus"),
|
|
113
|
+
check: S("bigconsole.widget.actions.icon.check", "Check"),
|
|
114
|
+
eye: S("bigconsole.widget.actions.icon.eye", "View"),
|
|
115
|
+
copy: S("bigconsole.widget.actions.icon.copy", "Copy"),
|
|
116
|
+
share: S("bigconsole.widget.actions.icon.share", "Share"),
|
|
117
|
+
settings: S("bigconsole.widget.actions.icon.settings", "Settings"),
|
|
118
|
+
filter: S("bigconsole.widget.actions.icon.filter", "Filter"),
|
|
119
|
+
search: S("bigconsole.widget.actions.icon.search", "Search")
|
|
111
120
|
};
|
|
112
121
|
return be.map((t) => ({
|
|
113
122
|
value: t,
|
|
114
123
|
label: e[t]
|
|
115
124
|
}));
|
|
116
|
-
}, [
|
|
117
|
-
|
|
118
|
-
if (!
|
|
119
|
-
w.current = !1,
|
|
120
|
-
let e = requestAnimationFrame(() => requestAnimationFrame(() =>
|
|
125
|
+
}, [S]);
|
|
126
|
+
ee(() => {
|
|
127
|
+
if (!n) return;
|
|
128
|
+
w.current = !1, L(""), z("POST"), y ? (E(y.label), O(y.name), A(!1), M(y.style), Ee(y.icon || ""), V(y.disabled), U(y.hidden), F("EMIT"), K(!!y.confirmation), y.confirmation ? (J(y.confirmation.title), Y(y.confirmation.message), X(y.confirmation.confirmLabel || S("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), Z(y.confirmation.cancelLabel || S("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel"))) : (J(S("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action")), Y(S("bigconsole.widget.actions.confirm.defaultMessage", "Are you sure you want to proceed?")), X(S("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), Z(S("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel")))) : (E(""), O(""), A(!1), M("PRIMARY"), Ee(""), F("WEBHOOK"), V(!1), U(!1), K(!1), J(S("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action")), Y(S("bigconsole.widget.actions.confirm.defaultMessage", "Are you sure you want to proceed?")), X(S("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), Z(S("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel"))), De(!1), $(null);
|
|
129
|
+
let e = requestAnimationFrame(() => requestAnimationFrame(() => Te.current?.focus()));
|
|
121
130
|
return () => cancelAnimationFrame(e);
|
|
122
131
|
}, [
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
]),
|
|
127
|
-
!
|
|
128
|
-
}, [
|
|
129
|
-
let
|
|
130
|
-
E(e), k || O(
|
|
131
|
-
}, [k, Q]),
|
|
132
|
+
n,
|
|
133
|
+
y,
|
|
134
|
+
S
|
|
135
|
+
]), ee(() => {
|
|
136
|
+
!n || !b || w.current || (F("WEBHOOK"), L(b.url), z(b.method));
|
|
137
|
+
}, [n, b]);
|
|
138
|
+
let Pe = r((e) => {
|
|
139
|
+
E(e), k || O(h(e)), Q && $(null);
|
|
140
|
+
}, [k, Q]), Fe = r((e) => {
|
|
132
141
|
e.preventDefault();
|
|
133
142
|
let t = T.trim();
|
|
134
143
|
if (!t) {
|
|
135
|
-
$(
|
|
144
|
+
$(S("bigconsole.widget.actions.validation.labelRequired", "Button label is required")), Te.current?.focus();
|
|
136
145
|
return;
|
|
137
146
|
}
|
|
138
|
-
let n =
|
|
147
|
+
let n = C && y ? y.name : h(k ? D : T) || h(T);
|
|
139
148
|
if (!n) {
|
|
140
|
-
$(
|
|
149
|
+
$(S("bigconsole.widget.actions.validation.labelLettersOrNumbers", "Enter a label using letters or numbers"));
|
|
141
150
|
return;
|
|
142
151
|
}
|
|
143
|
-
if (
|
|
144
|
-
let e =
|
|
152
|
+
if (P === "WEBHOOK") {
|
|
153
|
+
let e = I.trim();
|
|
145
154
|
if (!e) {
|
|
146
|
-
$(
|
|
155
|
+
$(S("bigconsole.widget.actions.validation.urlRequired", "Enter the URL to call when the button is clicked"));
|
|
147
156
|
return;
|
|
148
157
|
}
|
|
149
158
|
if (!/^https?:\/\//i.test(e)) {
|
|
150
|
-
$(
|
|
159
|
+
$(S("bigconsole.widget.actions.validation.urlScheme", "Webhook URL must start with http:// or https://"));
|
|
151
160
|
return;
|
|
152
161
|
}
|
|
153
162
|
}
|
|
154
|
-
let r =
|
|
155
|
-
title:
|
|
156
|
-
message:
|
|
157
|
-
confirmLabel:
|
|
158
|
-
cancelLabel:
|
|
159
|
-
} : void 0,
|
|
160
|
-
url:
|
|
163
|
+
let r = G ? {
|
|
164
|
+
title: q.trim() || S("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action"),
|
|
165
|
+
message: Oe.trim() || S("bigconsole.widget.actions.confirm.fallbackMessage", "Are you sure?"),
|
|
166
|
+
confirmLabel: ke.trim() || S("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm"),
|
|
167
|
+
cancelLabel: Ae.trim() || S("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel")
|
|
168
|
+
} : void 0, ee = P === "WEBHOOK" ? {
|
|
169
|
+
url: I.trim(),
|
|
161
170
|
method: R
|
|
162
171
|
} : null;
|
|
163
|
-
|
|
164
|
-
id:
|
|
172
|
+
we(C && y ? {
|
|
173
|
+
id: y.id,
|
|
165
174
|
name: n,
|
|
166
175
|
label: t,
|
|
167
176
|
type: "BUTTON",
|
|
168
177
|
style: j,
|
|
169
178
|
icon: N || void 0,
|
|
170
|
-
confirmation:
|
|
179
|
+
confirmation: G ? r : null,
|
|
171
180
|
disabled: B,
|
|
172
181
|
hidden: H
|
|
173
182
|
} : {
|
|
@@ -179,45 +188,48 @@ var h = {
|
|
|
179
188
|
confirmation: r,
|
|
180
189
|
disabled: B,
|
|
181
190
|
hidden: H
|
|
182
|
-
},
|
|
191
|
+
}, ee);
|
|
183
192
|
}, [
|
|
184
193
|
T,
|
|
185
194
|
D,
|
|
186
195
|
k,
|
|
187
|
-
|
|
188
|
-
|
|
196
|
+
P,
|
|
197
|
+
I,
|
|
189
198
|
R,
|
|
190
199
|
j,
|
|
191
200
|
N,
|
|
192
201
|
B,
|
|
193
202
|
H,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
J,
|
|
197
|
-
De,
|
|
203
|
+
G,
|
|
204
|
+
q,
|
|
198
205
|
Oe,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
ke,
|
|
207
|
+
Ae,
|
|
208
|
+
C,
|
|
209
|
+
y,
|
|
210
|
+
we,
|
|
211
|
+
S
|
|
212
|
+
]), Ie = (e) => Me.find((t) => t.value === e)?.color || "var(--color-action-primary-bg)", Le = je.find((e) => e.value === P);
|
|
213
|
+
return /* @__PURE__ */ p(ue, {
|
|
214
|
+
open: n,
|
|
215
|
+
onOpenChange: (e) => !e && !x && Ce(),
|
|
216
|
+
children: /* @__PURE__ */ m(de, {
|
|
208
217
|
style: {
|
|
209
|
-
|
|
218
|
+
width: "min(500px, calc(100vw - 2rem))",
|
|
219
|
+
maxWidth: "calc(100vw - 2rem)",
|
|
210
220
|
padding: 0
|
|
211
221
|
},
|
|
212
|
-
children: [/* @__PURE__ */
|
|
213
|
-
style: { padding: "var(--space-
|
|
214
|
-
children: /* @__PURE__ */
|
|
222
|
+
children: [/* @__PURE__ */ p(me, {
|
|
223
|
+
style: { padding: "var(--space-cardPadding) var(--space-cardPadding) 0" },
|
|
224
|
+
children: /* @__PURE__ */ m("div", {
|
|
215
225
|
style: {
|
|
216
226
|
display: "flex",
|
|
227
|
+
flexWrap: "wrap",
|
|
217
228
|
alignItems: "center",
|
|
218
|
-
gap: "var(--space-
|
|
229
|
+
gap: "var(--space-controlGap)",
|
|
230
|
+
minWidth: 0
|
|
219
231
|
},
|
|
220
|
-
children: [/* @__PURE__ */
|
|
232
|
+
children: [/* @__PURE__ */ p("div", {
|
|
221
233
|
style: {
|
|
222
234
|
display: "flex",
|
|
223
235
|
height: "var(--size-controlHeight-lg)",
|
|
@@ -228,138 +240,139 @@ var h = {
|
|
|
228
240
|
backgroundColor: "var(--color-action-primary-bg)",
|
|
229
241
|
boxShadow: "var(--shadow-elevation-2)"
|
|
230
242
|
},
|
|
231
|
-
children:
|
|
243
|
+
children: p(C ? ae : se, { style: {
|
|
232
244
|
height: "var(--size-icon-lg)",
|
|
233
245
|
width: "var(--size-icon-lg)",
|
|
234
246
|
color: "var(--color-action-primary-text)"
|
|
235
247
|
} })
|
|
236
|
-
}), /* @__PURE__ */
|
|
248
|
+
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(he, {
|
|
237
249
|
style: {
|
|
238
|
-
fontSize: "var(--font-size-
|
|
250
|
+
fontSize: "var(--font-size-body-md)",
|
|
239
251
|
fontWeight: "var(--font-weight-bold)",
|
|
240
252
|
color: "var(--color-text-primary)",
|
|
241
253
|
margin: 0
|
|
242
254
|
},
|
|
243
|
-
children:
|
|
244
|
-
}), /* @__PURE__ */
|
|
255
|
+
children: C ? S("bigconsole.widget.actions.header.editTitle", "Edit Button") : S("bigconsole.widget.actions.header.addTitle", "Add Button")
|
|
256
|
+
}), /* @__PURE__ */ p(fe, {
|
|
245
257
|
style: {
|
|
246
258
|
fontSize: "var(--font-size-body-sm)",
|
|
247
259
|
color: "var(--color-text-secondary)",
|
|
248
260
|
margin: "var(--space-controlGap) 0 0 0"
|
|
249
261
|
},
|
|
250
|
-
children:
|
|
262
|
+
children: C ? S("bigconsole.widget.actions.header.editDescription", "Update the button and what it does") : S("bigconsole.widget.actions.header.addDescription", "Add a button and choose what it does")
|
|
251
263
|
})] })]
|
|
252
264
|
})
|
|
253
|
-
}), /* @__PURE__ */
|
|
254
|
-
onSubmit:
|
|
255
|
-
children: [/* @__PURE__ */
|
|
265
|
+
}), /* @__PURE__ */ m("form", {
|
|
266
|
+
onSubmit: Fe,
|
|
267
|
+
children: [/* @__PURE__ */ m("div", {
|
|
256
268
|
style: {
|
|
257
|
-
padding: "var(--space-
|
|
258
|
-
maxHeight: "
|
|
269
|
+
padding: "var(--space-cardPadding)",
|
|
270
|
+
maxHeight: "65vh",
|
|
271
|
+
minWidth: 0,
|
|
259
272
|
overflowY: "auto"
|
|
260
273
|
},
|
|
261
274
|
children: [
|
|
262
|
-
(Q ||
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
color: "var(--color-status-error-text)",
|
|
274
|
-
margin: 0
|
|
275
|
-
},
|
|
276
|
-
children: Q || xe
|
|
275
|
+
(Q || Se) && /* @__PURE__ */ p(e, {
|
|
276
|
+
tone: "danger",
|
|
277
|
+
padding: "compact",
|
|
278
|
+
headingLevel: 3,
|
|
279
|
+
title: "This button could not be saved",
|
|
280
|
+
className: "mb-form-gap",
|
|
281
|
+
"data-testid": "action-config-error",
|
|
282
|
+
children: /* @__PURE__ */ p("p", {
|
|
283
|
+
role: "alert",
|
|
284
|
+
className: "break-words text-sm text-[var(--color-status-error-text)]",
|
|
285
|
+
children: Q || Se
|
|
277
286
|
})
|
|
278
287
|
}),
|
|
279
|
-
/* @__PURE__ */ p("
|
|
288
|
+
/* @__PURE__ */ p("h3", {
|
|
289
|
+
style: xe,
|
|
290
|
+
children: "Appearance"
|
|
291
|
+
}),
|
|
292
|
+
/* @__PURE__ */ m("div", {
|
|
280
293
|
style: { marginBottom: "var(--space-formGap)" },
|
|
281
294
|
children: [
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
style:
|
|
295
|
+
/* @__PURE__ */ m("label", {
|
|
296
|
+
style: g,
|
|
284
297
|
children: [
|
|
285
|
-
|
|
298
|
+
S("bigconsole.widget.actions.field.buttonLabel", "Button label"),
|
|
286
299
|
" ",
|
|
287
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ p("span", {
|
|
288
301
|
style: { color: "var(--color-status-error-text)" },
|
|
289
302
|
children: "*"
|
|
290
303
|
})
|
|
291
304
|
]
|
|
292
305
|
}),
|
|
293
|
-
/* @__PURE__ */
|
|
294
|
-
ref:
|
|
306
|
+
/* @__PURE__ */ p(s, {
|
|
307
|
+
ref: Te,
|
|
295
308
|
value: T,
|
|
296
|
-
onChange: (e) =>
|
|
297
|
-
placeholder:
|
|
298
|
-
disabled:
|
|
309
|
+
onChange: (e) => Pe(e.target.value),
|
|
310
|
+
placeholder: S("bigconsole.widget.actions.field.buttonLabelPlaceholder", "e.g., Refresh Data, Export CSV"),
|
|
311
|
+
disabled: x,
|
|
299
312
|
style: {
|
|
300
313
|
height: "var(--size-controlHeight-md)",
|
|
301
314
|
fontSize: "var(--font-size-body-sm)"
|
|
302
315
|
}
|
|
303
316
|
}),
|
|
304
|
-
/* @__PURE__ */
|
|
305
|
-
style:
|
|
306
|
-
children:
|
|
317
|
+
/* @__PURE__ */ p("p", {
|
|
318
|
+
style: _,
|
|
319
|
+
children: S("bigconsole.widget.actions.field.buttonLabelHint", "Text shown on the button")
|
|
307
320
|
})
|
|
308
321
|
]
|
|
309
322
|
}),
|
|
310
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ m("div", {
|
|
311
324
|
style: {
|
|
312
325
|
display: "grid",
|
|
313
|
-
gridTemplateColumns: "
|
|
326
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(11rem, 1fr))",
|
|
314
327
|
gap: "var(--space-formGap)",
|
|
315
328
|
marginBottom: "var(--space-formGap)"
|
|
316
329
|
},
|
|
317
|
-
children: [/* @__PURE__ */
|
|
318
|
-
style:
|
|
319
|
-
children:
|
|
320
|
-
}), /* @__PURE__ */
|
|
330
|
+
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
331
|
+
style: g,
|
|
332
|
+
children: S("bigconsole.widget.actions.field.style", "Style")
|
|
333
|
+
}), /* @__PURE__ */ m(c, {
|
|
321
334
|
value: j,
|
|
322
335
|
onValueChange: (e) => M(e),
|
|
323
|
-
disabled:
|
|
324
|
-
children: [/* @__PURE__ */
|
|
336
|
+
disabled: x,
|
|
337
|
+
children: [/* @__PURE__ */ p(d, {
|
|
325
338
|
style: {
|
|
326
339
|
height: "var(--size-controlHeight-md)",
|
|
327
340
|
fontSize: "var(--font-size-body-sm)"
|
|
328
341
|
},
|
|
329
|
-
children: /* @__PURE__ */ f
|
|
330
|
-
}), /* @__PURE__ */
|
|
331
|
-
style:
|
|
332
|
-
children:
|
|
342
|
+
children: /* @__PURE__ */ p(f, {})
|
|
343
|
+
}), /* @__PURE__ */ p(l, {
|
|
344
|
+
style: v,
|
|
345
|
+
children: Me.map((e) => /* @__PURE__ */ p(u, {
|
|
333
346
|
value: e.value,
|
|
334
347
|
children: e.label
|
|
335
348
|
}, e.value))
|
|
336
349
|
})]
|
|
337
|
-
})] }), /* @__PURE__ */
|
|
338
|
-
style:
|
|
339
|
-
children:
|
|
340
|
-
}), /* @__PURE__ */
|
|
350
|
+
})] }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
351
|
+
style: g,
|
|
352
|
+
children: S("bigconsole.widget.actions.field.icon", "Icon")
|
|
353
|
+
}), /* @__PURE__ */ m(c, {
|
|
341
354
|
value: N,
|
|
342
|
-
onValueChange:
|
|
343
|
-
disabled:
|
|
344
|
-
children: [/* @__PURE__ */
|
|
355
|
+
onValueChange: Ee,
|
|
356
|
+
disabled: x,
|
|
357
|
+
children: [/* @__PURE__ */ p(d, {
|
|
345
358
|
style: {
|
|
346
359
|
height: "var(--size-controlHeight-md)",
|
|
347
360
|
fontSize: "var(--font-size-body-sm)"
|
|
348
361
|
},
|
|
349
|
-
children: /* @__PURE__ */ f
|
|
350
|
-
}), /* @__PURE__ */
|
|
362
|
+
children: /* @__PURE__ */ p(f, { placeholder: S("bigconsole.widget.actions.icon.none", "No icon") })
|
|
363
|
+
}), /* @__PURE__ */ p(l, {
|
|
351
364
|
style: {
|
|
352
|
-
...
|
|
365
|
+
...v,
|
|
353
366
|
maxHeight: "200px"
|
|
354
367
|
},
|
|
355
|
-
children:
|
|
368
|
+
children: Ne.map((e) => /* @__PURE__ */ p(u, {
|
|
356
369
|
value: e.value || "none",
|
|
357
370
|
children: e.label
|
|
358
371
|
}, e.value || "none"))
|
|
359
372
|
})]
|
|
360
373
|
})] })]
|
|
361
374
|
}),
|
|
362
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ m("div", {
|
|
363
376
|
style: {
|
|
364
377
|
display: "flex",
|
|
365
378
|
alignItems: "center",
|
|
@@ -369,147 +382,157 @@ var h = {
|
|
|
369
382
|
backgroundColor: "var(--color-bg-sunken)",
|
|
370
383
|
borderRadius: "var(--radius-button)"
|
|
371
384
|
},
|
|
372
|
-
children: [/* @__PURE__ */
|
|
385
|
+
children: [/* @__PURE__ */ p("span", {
|
|
373
386
|
style: {
|
|
374
387
|
fontSize: "var(--font-size-body-sm)",
|
|
375
388
|
color: "var(--color-text-muted)"
|
|
376
389
|
},
|
|
377
|
-
children:
|
|
378
|
-
}), /* @__PURE__ */
|
|
390
|
+
children: S("bigconsole.widget.actions.preview.label", "Preview:")
|
|
391
|
+
}), /* @__PURE__ */ p("button", {
|
|
379
392
|
type: "button",
|
|
380
393
|
style: {
|
|
381
394
|
padding: "var(--space-controlGap) var(--space-formGap)",
|
|
382
395
|
fontSize: "var(--font-size-body-sm)",
|
|
383
396
|
fontWeight: "var(--font-weight-medium)",
|
|
384
397
|
borderRadius: "var(--radius-button)",
|
|
385
|
-
backgroundColor:
|
|
398
|
+
backgroundColor: Ie(j),
|
|
386
399
|
color: "var(--color-action-primary-text)",
|
|
387
400
|
border: "none",
|
|
388
401
|
cursor: "default"
|
|
389
402
|
},
|
|
390
|
-
children: T ||
|
|
403
|
+
children: T || S("bigconsole.widget.actions.preview.buttonFallback", "Button")
|
|
391
404
|
})]
|
|
392
405
|
}),
|
|
393
|
-
/* @__PURE__ */ p("
|
|
406
|
+
/* @__PURE__ */ p("h3", {
|
|
407
|
+
style: {
|
|
408
|
+
...xe,
|
|
409
|
+
marginTop: "var(--space-formGap)"
|
|
410
|
+
},
|
|
411
|
+
children: "Behaviour"
|
|
412
|
+
}),
|
|
413
|
+
/* @__PURE__ */ m("div", {
|
|
394
414
|
style: { marginBottom: "var(--space-formGap)" },
|
|
395
415
|
children: [
|
|
396
|
-
/* @__PURE__ */
|
|
397
|
-
style:
|
|
398
|
-
children:
|
|
416
|
+
/* @__PURE__ */ p("label", {
|
|
417
|
+
style: g,
|
|
418
|
+
children: S("bigconsole.widget.actions.field.whenClicked", "When clicked")
|
|
399
419
|
}),
|
|
400
|
-
/* @__PURE__ */
|
|
401
|
-
value:
|
|
420
|
+
/* @__PURE__ */ m(c, {
|
|
421
|
+
value: P,
|
|
402
422
|
onValueChange: (e) => {
|
|
403
|
-
w.current = !0,
|
|
423
|
+
w.current = !0, F(e);
|
|
404
424
|
},
|
|
405
|
-
disabled:
|
|
406
|
-
children: [/* @__PURE__ */
|
|
425
|
+
disabled: x,
|
|
426
|
+
children: [/* @__PURE__ */ p(d, {
|
|
407
427
|
style: {
|
|
408
428
|
height: "var(--size-controlHeight-md)",
|
|
409
429
|
fontSize: "var(--font-size-body-sm)"
|
|
410
430
|
},
|
|
411
|
-
children: /* @__PURE__ */ f
|
|
412
|
-
}), /* @__PURE__ */
|
|
413
|
-
style:
|
|
414
|
-
children:
|
|
431
|
+
children: /* @__PURE__ */ p(f, {})
|
|
432
|
+
}), /* @__PURE__ */ p(l, {
|
|
433
|
+
style: v,
|
|
434
|
+
children: je.map((e) => /* @__PURE__ */ p(u, {
|
|
415
435
|
value: e.value,
|
|
416
436
|
children: e.label
|
|
417
437
|
}, e.value))
|
|
418
438
|
})]
|
|
419
439
|
}),
|
|
420
|
-
|
|
421
|
-
style:
|
|
422
|
-
children:
|
|
440
|
+
Le && /* @__PURE__ */ p("p", {
|
|
441
|
+
style: _,
|
|
442
|
+
children: Le.hint
|
|
423
443
|
})
|
|
424
444
|
]
|
|
425
445
|
}),
|
|
426
|
-
|
|
446
|
+
P === "WEBHOOK" && /* @__PURE__ */ m("div", {
|
|
427
447
|
style: {
|
|
428
448
|
marginBottom: "var(--space-formGap)",
|
|
429
449
|
paddingLeft: "var(--space-formGap)",
|
|
430
|
-
borderLeft: "2px solid var(--color-border)",
|
|
450
|
+
borderLeft: "2px solid var(--color-border-subtle)",
|
|
431
451
|
display: "flex",
|
|
432
452
|
flexDirection: "column",
|
|
433
453
|
gap: "var(--space-controlGap)"
|
|
434
454
|
},
|
|
435
455
|
children: [
|
|
436
|
-
/* @__PURE__ */
|
|
437
|
-
style:
|
|
456
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("label", {
|
|
457
|
+
style: g,
|
|
438
458
|
children: [
|
|
439
|
-
|
|
459
|
+
S("bigconsole.widget.actions.webhook.urlLabel", "URL"),
|
|
440
460
|
" ",
|
|
441
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ p("span", {
|
|
442
462
|
style: { color: "var(--color-status-error-text)" },
|
|
443
463
|
children: "*"
|
|
444
464
|
})
|
|
445
465
|
]
|
|
446
|
-
}), /* @__PURE__ */
|
|
447
|
-
value:
|
|
466
|
+
}), /* @__PURE__ */ p(s, {
|
|
467
|
+
value: I,
|
|
448
468
|
onChange: (e) => {
|
|
449
|
-
w.current = !0,
|
|
469
|
+
w.current = !0, L(e.target.value), Q && $(null);
|
|
450
470
|
},
|
|
451
|
-
placeholder:
|
|
452
|
-
disabled:
|
|
471
|
+
placeholder: S("bigconsole.widget.actions.webhook.urlPlaceholder", "https://your-service.com/hook"),
|
|
472
|
+
disabled: x,
|
|
453
473
|
style: {
|
|
454
474
|
height: "var(--size-controlHeight-md)",
|
|
455
475
|
fontSize: "var(--font-size-body-sm)"
|
|
456
476
|
}
|
|
457
477
|
})] }),
|
|
458
|
-
/* @__PURE__ */
|
|
459
|
-
style: {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
478
|
+
/* @__PURE__ */ m("div", {
|
|
479
|
+
style: {
|
|
480
|
+
maxWidth: "160px",
|
|
481
|
+
minWidth: 0
|
|
482
|
+
},
|
|
483
|
+
children: [/* @__PURE__ */ p("label", {
|
|
484
|
+
style: g,
|
|
485
|
+
children: S("bigconsole.widget.actions.webhook.methodLabel", "Method")
|
|
486
|
+
}), /* @__PURE__ */ m(c, {
|
|
464
487
|
value: R,
|
|
465
488
|
onValueChange: (e) => {
|
|
466
489
|
w.current = !0, z(e);
|
|
467
490
|
},
|
|
468
|
-
disabled:
|
|
469
|
-
children: [/* @__PURE__ */
|
|
491
|
+
disabled: x,
|
|
492
|
+
children: [/* @__PURE__ */ p(d, {
|
|
470
493
|
style: {
|
|
471
494
|
height: "var(--size-controlHeight-md)",
|
|
472
495
|
fontSize: "var(--font-size-body-sm)"
|
|
473
496
|
},
|
|
474
|
-
children: /* @__PURE__ */ f
|
|
475
|
-
}), /* @__PURE__ */
|
|
476
|
-
style:
|
|
477
|
-
children: ve.map((e) => /* @__PURE__ */
|
|
497
|
+
children: /* @__PURE__ */ p(f, {})
|
|
498
|
+
}), /* @__PURE__ */ p(l, {
|
|
499
|
+
style: v,
|
|
500
|
+
children: ve.map((e) => /* @__PURE__ */ p(u, {
|
|
478
501
|
value: e,
|
|
479
502
|
children: e
|
|
480
503
|
}, e))
|
|
481
504
|
})]
|
|
482
505
|
})]
|
|
483
506
|
}),
|
|
484
|
-
/* @__PURE__ */
|
|
485
|
-
style:
|
|
486
|
-
children:
|
|
507
|
+
/* @__PURE__ */ p("p", {
|
|
508
|
+
style: _,
|
|
509
|
+
children: S("bigconsole.widget.actions.webhook.payloadHint", "The widget's current data is sent as the request payload.")
|
|
487
510
|
}),
|
|
488
|
-
/^http:\/\//i.test(
|
|
511
|
+
/^http:\/\//i.test(I.trim()) && /* @__PURE__ */ m("p", {
|
|
489
512
|
style: {
|
|
490
|
-
...
|
|
513
|
+
..._,
|
|
491
514
|
color: "var(--color-status-warning-text)"
|
|
492
515
|
},
|
|
493
516
|
children: [
|
|
494
|
-
|
|
517
|
+
S("bigconsole.widget.actions.webhook.insecureWarningPrefix", "Warning:"),
|
|
495
518
|
" ",
|
|
496
|
-
/* @__PURE__ */
|
|
519
|
+
/* @__PURE__ */ p("code", { children: "http://" }),
|
|
497
520
|
" ",
|
|
498
|
-
|
|
521
|
+
S("bigconsole.widget.actions.webhook.insecureWarningMiddle", "is unencrypted — the widget's data will be sent in plaintext. Use"),
|
|
499
522
|
" ",
|
|
500
|
-
/* @__PURE__ */
|
|
523
|
+
/* @__PURE__ */ p("code", { children: "https://" }),
|
|
501
524
|
" ",
|
|
502
|
-
|
|
525
|
+
S("bigconsole.widget.actions.webhook.insecureWarningSuffix", "if it may contain anything sensitive.")
|
|
503
526
|
]
|
|
504
527
|
})
|
|
505
528
|
]
|
|
506
529
|
}),
|
|
507
|
-
/* @__PURE__ */
|
|
530
|
+
/* @__PURE__ */ m("div", {
|
|
508
531
|
style: {
|
|
509
532
|
paddingTop: "var(--space-formGap)",
|
|
510
|
-
borderTop: "1px solid var(--color-border)"
|
|
533
|
+
borderTop: "1px solid var(--color-border-subtle)"
|
|
511
534
|
},
|
|
512
|
-
children: [/* @__PURE__ */
|
|
535
|
+
children: [/* @__PURE__ */ m("label", {
|
|
513
536
|
style: {
|
|
514
537
|
display: "flex",
|
|
515
538
|
alignItems: "center",
|
|
@@ -517,28 +540,28 @@ var h = {
|
|
|
517
540
|
cursor: "pointer",
|
|
518
541
|
marginBottom: "var(--space-formGap)"
|
|
519
542
|
},
|
|
520
|
-
children: [/* @__PURE__ */
|
|
521
|
-
checked:
|
|
522
|
-
onCheckedChange: (e) =>
|
|
523
|
-
disabled:
|
|
524
|
-
}), /* @__PURE__ */
|
|
543
|
+
children: [/* @__PURE__ */ p(o, {
|
|
544
|
+
checked: G,
|
|
545
|
+
onCheckedChange: (e) => K(e === !0),
|
|
546
|
+
disabled: x
|
|
547
|
+
}), /* @__PURE__ */ p("span", {
|
|
525
548
|
style: {
|
|
526
549
|
fontSize: "var(--font-size-body-sm)",
|
|
527
550
|
fontWeight: "var(--font-weight-semibold)",
|
|
528
551
|
color: "var(--color-text-primary)"
|
|
529
552
|
},
|
|
530
|
-
children:
|
|
553
|
+
children: S("bigconsole.widget.actions.confirm.toggleLabel", "Ask for confirmation first")
|
|
531
554
|
})]
|
|
532
|
-
}),
|
|
555
|
+
}), G && /* @__PURE__ */ m("div", {
|
|
533
556
|
style: {
|
|
534
557
|
paddingLeft: "var(--space-formGap)",
|
|
535
|
-
borderLeft: "2px solid var(--color-border)",
|
|
558
|
+
borderLeft: "2px solid var(--color-border-subtle)",
|
|
536
559
|
display: "flex",
|
|
537
560
|
flexDirection: "column",
|
|
538
561
|
gap: "var(--space-controlGap)"
|
|
539
562
|
},
|
|
540
563
|
children: [
|
|
541
|
-
/* @__PURE__ */
|
|
564
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
542
565
|
style: {
|
|
543
566
|
display: "block",
|
|
544
567
|
fontSize: "var(--font-size-body-sm)",
|
|
@@ -546,17 +569,17 @@ var h = {
|
|
|
546
569
|
color: "var(--color-text-secondary)",
|
|
547
570
|
marginBottom: "var(--space-controlGap)"
|
|
548
571
|
},
|
|
549
|
-
children:
|
|
550
|
-
}), /* @__PURE__ */
|
|
551
|
-
value:
|
|
552
|
-
onChange: (e) =>
|
|
553
|
-
disabled:
|
|
572
|
+
children: S("bigconsole.widget.actions.confirm.dialogTitleLabel", "Dialog Title")
|
|
573
|
+
}), /* @__PURE__ */ p(s, {
|
|
574
|
+
value: q,
|
|
575
|
+
onChange: (e) => J(e.target.value),
|
|
576
|
+
disabled: x,
|
|
554
577
|
style: {
|
|
555
578
|
height: "var(--size-controlHeight-sm)",
|
|
556
579
|
fontSize: "var(--font-size-body-sm)"
|
|
557
580
|
}
|
|
558
581
|
})] }),
|
|
559
|
-
/* @__PURE__ */
|
|
582
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
560
583
|
style: {
|
|
561
584
|
display: "block",
|
|
562
585
|
fontSize: "var(--font-size-body-sm)",
|
|
@@ -564,24 +587,24 @@ var h = {
|
|
|
564
587
|
color: "var(--color-text-secondary)",
|
|
565
588
|
marginBottom: "var(--space-controlGap)"
|
|
566
589
|
},
|
|
567
|
-
children:
|
|
568
|
-
}), /* @__PURE__ */
|
|
569
|
-
value:
|
|
590
|
+
children: S("bigconsole.widget.actions.confirm.messageLabel", "Message")
|
|
591
|
+
}), /* @__PURE__ */ p(_e, {
|
|
592
|
+
value: Oe,
|
|
570
593
|
onChange: (e) => Y(e.target.value),
|
|
571
594
|
rows: 2,
|
|
572
|
-
disabled:
|
|
595
|
+
disabled: x,
|
|
573
596
|
style: {
|
|
574
597
|
fontSize: "var(--font-size-body-sm)",
|
|
575
598
|
resize: "none"
|
|
576
599
|
}
|
|
577
600
|
})] }),
|
|
578
|
-
/* @__PURE__ */
|
|
601
|
+
/* @__PURE__ */ m("div", {
|
|
579
602
|
style: {
|
|
580
603
|
display: "grid",
|
|
581
|
-
gridTemplateColumns: "
|
|
604
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(11rem, 1fr))",
|
|
582
605
|
gap: "var(--space-controlGap)"
|
|
583
606
|
},
|
|
584
|
-
children: [/* @__PURE__ */
|
|
607
|
+
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
585
608
|
style: {
|
|
586
609
|
display: "block",
|
|
587
610
|
fontSize: "var(--font-size-body-sm)",
|
|
@@ -589,16 +612,16 @@ var h = {
|
|
|
589
612
|
color: "var(--color-text-secondary)",
|
|
590
613
|
marginBottom: "var(--space-controlGap)"
|
|
591
614
|
},
|
|
592
|
-
children:
|
|
593
|
-
}), /* @__PURE__ */
|
|
594
|
-
value:
|
|
615
|
+
children: S("bigconsole.widget.actions.confirm.confirmButtonLabel", "Confirm Button")
|
|
616
|
+
}), /* @__PURE__ */ p(s, {
|
|
617
|
+
value: ke,
|
|
595
618
|
onChange: (e) => X(e.target.value),
|
|
596
|
-
disabled:
|
|
619
|
+
disabled: x,
|
|
597
620
|
style: {
|
|
598
621
|
height: "var(--size-controlHeight-sm)",
|
|
599
622
|
fontSize: "var(--font-size-body-sm)"
|
|
600
623
|
}
|
|
601
|
-
})] }), /* @__PURE__ */
|
|
624
|
+
})] }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
602
625
|
style: {
|
|
603
626
|
display: "block",
|
|
604
627
|
fontSize: "var(--font-size-body-sm)",
|
|
@@ -606,11 +629,11 @@ var h = {
|
|
|
606
629
|
color: "var(--color-text-secondary)",
|
|
607
630
|
marginBottom: "var(--space-controlGap)"
|
|
608
631
|
},
|
|
609
|
-
children:
|
|
610
|
-
}), /* @__PURE__ */
|
|
611
|
-
value:
|
|
632
|
+
children: S("bigconsole.widget.actions.confirm.cancelButtonLabel", "Cancel Button")
|
|
633
|
+
}), /* @__PURE__ */ p(s, {
|
|
634
|
+
value: Ae,
|
|
612
635
|
onChange: (e) => Z(e.target.value),
|
|
613
|
-
disabled:
|
|
636
|
+
disabled: x,
|
|
614
637
|
style: {
|
|
615
638
|
height: "var(--size-controlHeight-sm)",
|
|
616
639
|
fontSize: "var(--font-size-body-sm)"
|
|
@@ -620,163 +643,174 @@ var h = {
|
|
|
620
643
|
]
|
|
621
644
|
})]
|
|
622
645
|
}),
|
|
623
|
-
/* @__PURE__ */
|
|
646
|
+
/* @__PURE__ */ m("div", {
|
|
624
647
|
style: {
|
|
625
648
|
paddingTop: "var(--space-formGap)",
|
|
626
|
-
borderTop: "1px solid var(--color-border)"
|
|
649
|
+
borderTop: "1px solid var(--color-border-subtle)"
|
|
627
650
|
},
|
|
628
|
-
children: [/* @__PURE__ */ p("
|
|
629
|
-
type: "button",
|
|
630
|
-
onClick: () => Ee((e) => !e),
|
|
651
|
+
children: [/* @__PURE__ */ p("h3", {
|
|
631
652
|
style: {
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
gap: "var(--space-controlGap)",
|
|
635
|
-
background: "none",
|
|
636
|
-
border: "none",
|
|
637
|
-
padding: 0,
|
|
638
|
-
cursor: "pointer",
|
|
639
|
-
fontSize: "var(--font-size-body-sm)",
|
|
640
|
-
fontWeight: "var(--font-weight-semibold)",
|
|
641
|
-
color: "var(--color-text-primary)"
|
|
653
|
+
...xe,
|
|
654
|
+
margin: 0
|
|
642
655
|
},
|
|
643
|
-
children:
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
656
|
+
children: /* @__PURE__ */ m("button", {
|
|
657
|
+
type: "button",
|
|
658
|
+
onClick: () => De((e) => !e),
|
|
659
|
+
"aria-expanded": W,
|
|
660
|
+
"aria-controls": "action-config-advanced",
|
|
661
|
+
style: {
|
|
662
|
+
display: "flex",
|
|
663
|
+
alignItems: "center",
|
|
664
|
+
gap: "var(--space-controlGap)",
|
|
665
|
+
minHeight: "var(--size-controlHeight-md)",
|
|
666
|
+
background: "none",
|
|
667
|
+
border: "none",
|
|
668
|
+
padding: 0,
|
|
669
|
+
cursor: "pointer",
|
|
670
|
+
font: "inherit",
|
|
671
|
+
letterSpacing: "inherit",
|
|
672
|
+
textTransform: "inherit",
|
|
673
|
+
color: "inherit"
|
|
674
|
+
},
|
|
675
|
+
children: [p(W ? re : ie, { style: {
|
|
676
|
+
height: "14px",
|
|
677
|
+
width: "14px"
|
|
678
|
+
} }), S("bigconsole.widget.actions.advanced.toggle", "Advanced")]
|
|
679
|
+
})
|
|
680
|
+
}), W && /* @__PURE__ */ m("div", {
|
|
681
|
+
id: "action-config-advanced",
|
|
648
682
|
style: {
|
|
649
683
|
marginTop: "var(--space-formGap)",
|
|
650
684
|
display: "flex",
|
|
651
685
|
flexDirection: "column",
|
|
652
686
|
gap: "var(--space-formGap)"
|
|
653
687
|
},
|
|
654
|
-
children: [/* @__PURE__ */
|
|
655
|
-
/* @__PURE__ */
|
|
656
|
-
style:
|
|
657
|
-
children:
|
|
688
|
+
children: [/* @__PURE__ */ m("div", { children: [
|
|
689
|
+
/* @__PURE__ */ p("label", {
|
|
690
|
+
style: g,
|
|
691
|
+
children: S("bigconsole.widget.actions.advanced.eventNameLabel", "Event name (id)")
|
|
658
692
|
}),
|
|
659
|
-
/* @__PURE__ */
|
|
660
|
-
value:
|
|
693
|
+
/* @__PURE__ */ p(s, {
|
|
694
|
+
value: C && y ? y.name : D,
|
|
661
695
|
onChange: (e) => {
|
|
662
696
|
O(e.target.value), A(!0);
|
|
663
697
|
},
|
|
664
|
-
placeholder:
|
|
665
|
-
disabled:
|
|
698
|
+
placeholder: S("bigconsole.widget.actions.advanced.eventNamePlaceholder", "auto from label"),
|
|
699
|
+
disabled: x || C,
|
|
666
700
|
style: {
|
|
667
701
|
height: "var(--size-controlHeight-md)",
|
|
668
702
|
fontSize: "var(--font-size-body-sm)",
|
|
669
703
|
fontFamily: "var(--font-family-mono)"
|
|
670
704
|
}
|
|
671
705
|
}),
|
|
672
|
-
/* @__PURE__ */
|
|
673
|
-
style:
|
|
706
|
+
/* @__PURE__ */ m("p", {
|
|
707
|
+
style: _,
|
|
674
708
|
children: [
|
|
675
|
-
|
|
709
|
+
S("bigconsole.widget.actions.advanced.emitsPrefix", "Emits"),
|
|
676
710
|
" ",
|
|
677
|
-
/* @__PURE__ */
|
|
711
|
+
/* @__PURE__ */ m("code", { children: [
|
|
678
712
|
"widget:",
|
|
679
|
-
|
|
713
|
+
C && y ? y.name : h(D || T) || "<name>",
|
|
680
714
|
":clicked"
|
|
681
715
|
] }),
|
|
682
716
|
".",
|
|
683
717
|
" ",
|
|
684
|
-
|
|
718
|
+
C ? S("bigconsole.widget.actions.advanced.emitsFixed", "Fixed once created.") : S("bigconsole.widget.actions.advanced.emitsAutoDerived", "Auto-derived from the label.")
|
|
685
719
|
]
|
|
686
720
|
})
|
|
687
|
-
] }), /* @__PURE__ */
|
|
721
|
+
] }), /* @__PURE__ */ m("div", {
|
|
688
722
|
style: {
|
|
689
723
|
display: "flex",
|
|
690
724
|
alignItems: "center",
|
|
691
725
|
gap: "var(--space-sectionGap)"
|
|
692
726
|
},
|
|
693
|
-
children: [/* @__PURE__ */
|
|
727
|
+
children: [/* @__PURE__ */ m("label", {
|
|
694
728
|
style: {
|
|
695
729
|
display: "flex",
|
|
696
730
|
alignItems: "center",
|
|
697
731
|
gap: "var(--space-controlGap)",
|
|
698
732
|
cursor: "pointer"
|
|
699
733
|
},
|
|
700
|
-
children: [/* @__PURE__ */
|
|
734
|
+
children: [/* @__PURE__ */ p(o, {
|
|
701
735
|
checked: B,
|
|
702
736
|
onCheckedChange: (e) => V(e === !0),
|
|
703
|
-
disabled:
|
|
704
|
-
}), /* @__PURE__ */
|
|
737
|
+
disabled: x
|
|
738
|
+
}), /* @__PURE__ */ p("span", {
|
|
705
739
|
style: {
|
|
706
740
|
fontSize: "var(--font-size-body-sm)",
|
|
707
741
|
color: "var(--color-text-primary)"
|
|
708
742
|
},
|
|
709
|
-
children:
|
|
743
|
+
children: S("bigconsole.widget.actions.advanced.disabled", "Disabled")
|
|
710
744
|
})]
|
|
711
|
-
}), /* @__PURE__ */
|
|
745
|
+
}), /* @__PURE__ */ m("label", {
|
|
712
746
|
style: {
|
|
713
747
|
display: "flex",
|
|
714
748
|
alignItems: "center",
|
|
715
749
|
gap: "var(--space-controlGap)",
|
|
716
750
|
cursor: "pointer"
|
|
717
751
|
},
|
|
718
|
-
children: [/* @__PURE__ */
|
|
752
|
+
children: [/* @__PURE__ */ p(o, {
|
|
719
753
|
checked: H,
|
|
720
754
|
onCheckedChange: (e) => U(e === !0),
|
|
721
|
-
disabled:
|
|
722
|
-
}), /* @__PURE__ */
|
|
755
|
+
disabled: x
|
|
756
|
+
}), /* @__PURE__ */ p("span", {
|
|
723
757
|
style: {
|
|
724
758
|
fontSize: "var(--font-size-body-sm)",
|
|
725
759
|
color: "var(--color-text-primary)"
|
|
726
760
|
},
|
|
727
|
-
children:
|
|
761
|
+
children: S("bigconsole.widget.actions.advanced.hidden", "Hidden")
|
|
728
762
|
})]
|
|
729
763
|
})]
|
|
730
764
|
})]
|
|
731
765
|
})]
|
|
732
766
|
})
|
|
733
767
|
]
|
|
734
|
-
}), /* @__PURE__ */
|
|
768
|
+
}), /* @__PURE__ */ m(pe, {
|
|
735
769
|
style: {
|
|
736
770
|
padding: "var(--space-formGap) var(--space-pagePadding)",
|
|
737
|
-
borderTop: "1px solid var(--color-border)",
|
|
771
|
+
borderTop: "1px solid var(--color-border-subtle)",
|
|
738
772
|
backgroundColor: "var(--color-bg-sunken)",
|
|
739
773
|
display: "flex",
|
|
740
774
|
justifyContent: "flex-end",
|
|
741
775
|
gap: "var(--space-controlGap)"
|
|
742
776
|
},
|
|
743
|
-
children: [/* @__PURE__ */
|
|
777
|
+
children: [/* @__PURE__ */ p(le, {
|
|
744
778
|
type: "button",
|
|
745
779
|
variant: "outline",
|
|
746
|
-
onClick:
|
|
747
|
-
disabled:
|
|
780
|
+
onClick: Ce,
|
|
781
|
+
disabled: x,
|
|
748
782
|
style: { height: "var(--size-controlHeight-md)" },
|
|
749
|
-
children:
|
|
750
|
-
}), /* @__PURE__ */
|
|
751
|
-
permission:
|
|
783
|
+
children: S("bigconsole.widget.actions.footer.cancel", "Cancel")
|
|
784
|
+
}), /* @__PURE__ */ p(ne, {
|
|
785
|
+
permission: C ? t.WIDGET_ACTION_UPDATE : t.WIDGET_ACTION_CREATE,
|
|
752
786
|
deniedBehavior: "disable",
|
|
753
|
-
children: /* @__PURE__ */
|
|
787
|
+
children: /* @__PURE__ */ p(le, {
|
|
754
788
|
type: "submit",
|
|
755
|
-
disabled:
|
|
789
|
+
disabled: x || !T.trim(),
|
|
756
790
|
style: {
|
|
757
791
|
height: "var(--size-controlHeight-md)",
|
|
758
792
|
backgroundColor: "var(--color-action-primary-bg)"
|
|
759
793
|
},
|
|
760
|
-
children:
|
|
794
|
+
children: x ? /* @__PURE__ */ m("span", {
|
|
761
795
|
style: {
|
|
762
796
|
display: "flex",
|
|
763
797
|
alignItems: "center",
|
|
764
798
|
gap: "var(--space-iconGap)"
|
|
765
799
|
},
|
|
766
|
-
children: [/* @__PURE__ */
|
|
800
|
+
children: [/* @__PURE__ */ p(ge, { style: {
|
|
767
801
|
height: "var(--size-icon-sm)",
|
|
768
802
|
width: "var(--size-icon-sm)"
|
|
769
|
-
} }),
|
|
770
|
-
}) : /* @__PURE__ */
|
|
803
|
+
} }), S("bigconsole.widget.actions.footer.saving", "Saving...")]
|
|
804
|
+
}) : /* @__PURE__ */ m("span", {
|
|
771
805
|
style: {
|
|
772
806
|
display: "flex",
|
|
773
807
|
alignItems: "center",
|
|
774
808
|
gap: "var(--space-iconGap)"
|
|
775
809
|
},
|
|
776
|
-
children: [
|
|
810
|
+
children: [p(C ? ae : oe, { style: {
|
|
777
811
|
height: "var(--size-icon-sm)",
|
|
778
812
|
width: "var(--size-icon-sm)"
|
|
779
|
-
} }),
|
|
813
|
+
} }), C ? S("bigconsole.widget.actions.footer.updateButton", "Update Button") : S("bigconsole.widget.actions.footer.addButton", "Add Button")]
|
|
780
814
|
})
|
|
781
815
|
})
|
|
782
816
|
})]
|
|
@@ -786,6 +820,6 @@ var h = {
|
|
|
786
820
|
});
|
|
787
821
|
});
|
|
788
822
|
//#endregion
|
|
789
|
-
export {
|
|
823
|
+
export { y as default };
|
|
790
824
|
|
|
791
825
|
//# sourceMappingURL=ActionConfigDialog.js.map
|