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