@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.
Files changed (247) hide show
  1. package/dist/bigconsole/components/DrilldownDashboardRenderer.js +118 -106
  2. package/dist/bigconsole/components/DrilldownDashboardRenderer.js.map +1 -1
  3. package/dist/bigconsole/components/DrilldownModal.js +54 -50
  4. package/dist/bigconsole/components/DrilldownModal.js.map +1 -1
  5. package/dist/bigconsole/components/builder/BuilderCanvas.js +2 -2
  6. package/dist/bigconsole/components/builder/BuilderCanvas.js.map +1 -1
  7. package/dist/bigconsole/components/builder/BuilderTopbar.js +3 -3
  8. package/dist/bigconsole/components/builder/BuilderTopbar.js.map +1 -1
  9. package/dist/bigconsole/components/builder/inspector/AdvancedSection.js +24 -25
  10. package/dist/bigconsole/components/builder/inspector/AdvancedSection.js.map +1 -1
  11. package/dist/bigconsole/components/builder/inspector/AppearanceSection.js +40 -29
  12. package/dist/bigconsole/components/builder/inspector/AppearanceSection.js.map +1 -1
  13. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +135 -97
  14. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js.map +1 -1
  15. package/dist/bigconsole/components/builder/inspector/GeneralSection.js +58 -44
  16. package/dist/bigconsole/components/builder/inspector/GeneralSection.js.map +1 -1
  17. package/dist/bigconsole/components/common/Section.js +70 -0
  18. package/dist/bigconsole/components/common/Section.js.map +1 -0
  19. package/dist/bigconsole/components/common/index.js +2 -0
  20. package/dist/bigconsole/components/common/sectionStyles.js +42 -0
  21. package/dist/bigconsole/components/common/sectionStyles.js.map +1 -0
  22. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +209 -193
  23. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
  24. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +213 -231
  25. package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
  26. package/dist/bigconsole/components/dashboard/DashboardGrid.js +12 -18
  27. package/dist/bigconsole/components/dashboard/DashboardGrid.js.map +1 -1
  28. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +109 -102
  29. package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -1
  30. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +81 -70
  31. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
  32. package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +125 -159
  33. package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js.map +1 -1
  34. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +25 -23
  35. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js.map +1 -1
  36. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +3 -3
  37. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
  38. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +5 -3
  39. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js.map +1 -1
  40. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +170 -284
  41. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
  42. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +147 -151
  43. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
  44. package/dist/bigconsole/components/dashboard/LiveBoardBanner.js +45 -53
  45. package/dist/bigconsole/components/dashboard/LiveBoardBanner.js.map +1 -1
  46. package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js +157 -148
  47. package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js.map +1 -1
  48. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +17 -8
  49. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js.map +1 -1
  50. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -95
  51. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js.map +1 -1
  52. package/dist/bigconsole/components/dashboard/StoreTemplatePicker.js +20 -18
  53. package/dist/bigconsole/components/dashboard/StoreTemplatePicker.js.map +1 -1
  54. package/dist/bigconsole/components/dashboard/TemplateSetupBanner.js +26 -58
  55. package/dist/bigconsole/components/dashboard/TemplateSetupBanner.js.map +1 -1
  56. package/dist/bigconsole/components/dashboard/WidgetPalette.js +307 -231
  57. package/dist/bigconsole/components/dashboard/WidgetPalette.js.map +1 -1
  58. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +29 -29
  59. package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
  60. package/dist/bigconsole/components/datasink/DataSinkCard.js +78 -79
  61. package/dist/bigconsole/components/datasink/DataSinkCard.js.map +1 -1
  62. package/dist/bigconsole/components/datasink/DataSinkDataViewer.js +33 -34
  63. package/dist/bigconsole/components/datasink/DataSinkDataViewer.js.map +1 -1
  64. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +79 -56
  65. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js.map +1 -1
  66. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +75 -65
  67. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js.map +1 -1
  68. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +1 -1
  69. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js.map +1 -1
  70. package/dist/bigconsole/components/datasink/DataSinkTableViewer.js +20 -19
  71. package/dist/bigconsole/components/datasink/DataSinkTableViewer.js.map +1 -1
  72. package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js +127 -171
  73. package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js.map +1 -1
  74. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +263 -243
  75. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
  76. package/dist/bigconsole/components/datasink/LinkedParsersPanel.js +65 -66
  77. package/dist/bigconsole/components/datasink/LinkedParsersPanel.js.map +1 -1
  78. package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.js +121 -127
  79. package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.js.map +1 -1
  80. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +33 -26
  81. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js.map +1 -1
  82. package/dist/bigconsole/components/datasink/SetupStateBadge.js +3 -3
  83. package/dist/bigconsole/components/datasink/SetupStateBadge.js.map +1 -1
  84. package/dist/bigconsole/components/datasink/WorkflowStatusPanel.js +95 -95
  85. package/dist/bigconsole/components/datasink/WorkflowStatusPanel.js.map +1 -1
  86. package/dist/bigconsole/components/parser/DataSinkSelector.js +154 -123
  87. package/dist/bigconsole/components/parser/DataSinkSelector.js.map +1 -1
  88. package/dist/bigconsole/components/parser/ExpressionEditor.js +3 -3
  89. package/dist/bigconsole/components/parser/ExpressionEditor.js.map +1 -1
  90. package/dist/bigconsole/components/parser/ImportParserDialog.js +235 -275
  91. package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
  92. package/dist/bigconsole/components/parser/ParserCard.js +133 -114
  93. package/dist/bigconsole/components/parser/ParserCard.js.map +1 -1
  94. package/dist/bigconsole/components/parser/ParserSelector.js +191 -174
  95. package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
  96. package/dist/bigconsole/components/parser/ParserStatusBadge.js +2 -2
  97. package/dist/bigconsole/components/parser/ParserStatusBadge.js.map +1 -1
  98. package/dist/bigconsole/components/parser/ParserTypeBadge.js +4 -4
  99. package/dist/bigconsole/components/parser/ParserTypeBadge.js.map +1 -1
  100. package/dist/bigconsole/components/pipeline/PipelineCard.js +134 -89
  101. package/dist/bigconsole/components/pipeline/PipelineCard.js.map +1 -1
  102. package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.js +77 -64
  103. package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.js.map +1 -1
  104. package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +7 -10
  105. package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js.map +1 -1
  106. package/dist/bigconsole/components/preview/AiPreviewContent.js +31 -32
  107. package/dist/bigconsole/components/preview/AiPreviewContent.js.map +1 -1
  108. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +152 -106
  109. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js.map +1 -1
  110. package/dist/bigconsole/components/preview/AiPreviewPanel.js +193 -152
  111. package/dist/bigconsole/components/preview/AiPreviewPanel.js.map +1 -1
  112. package/dist/bigconsole/components/preview/previewShared.js +41 -23
  113. package/dist/bigconsole/components/preview/previewShared.js.map +1 -1
  114. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +342 -308
  115. package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
  116. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +262 -238
  117. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
  118. package/dist/bigconsole/components/widgets/PropertiesPanel.js +783 -867
  119. package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
  120. package/dist/bigconsole/components/widgets/WidgetErrorBoundary.js +7 -5
  121. package/dist/bigconsole/components/widgets/WidgetErrorBoundary.js.map +1 -1
  122. package/dist/bigconsole/components/widgets/WidgetHeader.js +7 -8
  123. package/dist/bigconsole/components/widgets/WidgetHeader.js.map +1 -1
  124. package/dist/bigconsole/components/widgets/WidgetRegistry.js +4 -4
  125. package/dist/bigconsole/components/widgets/WidgetRegistry.js.map +1 -1
  126. package/dist/bigconsole/components/widgets/WidgetWrapper.js +8 -7
  127. package/dist/bigconsole/components/widgets/WidgetWrapper.js.map +1 -1
  128. package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.js +1 -1
  129. package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.js.map +1 -1
  130. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +2 -2
  131. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js.map +1 -1
  132. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +11 -5
  133. package/dist/bigconsole/components/widgets/chart/ChartConfig.js.map +1 -1
  134. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +19 -15
  135. package/dist/bigconsole/components/widgets/comments/WidgetComments.js.map +1 -1
  136. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +154 -102
  137. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js.map +1 -1
  138. package/dist/bigconsole/components/widgets/gauge/CircularGauge.js +36 -32
  139. package/dist/bigconsole/components/widgets/gauge/CircularGauge.js.map +1 -1
  140. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +85 -60
  141. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js.map +1 -1
  142. package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js +64 -35
  143. package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js.map +1 -1
  144. package/dist/bigconsole/components/widgets/gauge/LinearGauge.js +46 -45
  145. package/dist/bigconsole/components/widgets/gauge/LinearGauge.js.map +1 -1
  146. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +35 -24
  147. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js.map +1 -1
  148. package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +2 -2
  149. package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js.map +1 -1
  150. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
  151. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js.map +1 -1
  152. package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js +153 -90
  153. package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js.map +1 -1
  154. package/dist/bigconsole/components/widgets/list/ListConfig.js +8 -2
  155. package/dist/bigconsole/components/widgets/list/ListConfig.js.map +1 -1
  156. package/dist/bigconsole/components/widgets/list/ListItem.js +1 -1
  157. package/dist/bigconsole/components/widgets/list/ListItem.js.map +1 -1
  158. package/dist/bigconsole/components/widgets/map-widget/MapWidget.js +1 -1
  159. package/dist/bigconsole/components/widgets/map-widget/MapWidget.js.map +1 -1
  160. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +14 -4
  161. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js.map +1 -1
  162. package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js +112 -89
  163. package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js.map +1 -1
  164. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +21 -13
  165. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js.map +1 -1
  166. package/dist/bigconsole/components/widgets/metric-card/index.js +4 -4
  167. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +3 -3
  168. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js.map +1 -1
  169. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +34 -25
  170. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js.map +1 -1
  171. package/dist/bigconsole/components/widgets/progress/ProgressWidget.js +129 -114
  172. package/dist/bigconsole/components/widgets/progress/ProgressWidget.js.map +1 -1
  173. package/dist/bigconsole/components/widgets/retention/RetentionWidget.js +3 -3
  174. package/dist/bigconsole/components/widgets/retention/RetentionWidget.js.map +1 -1
  175. package/dist/bigconsole/components/widgets/states/EmptyState.js +6 -4
  176. package/dist/bigconsole/components/widgets/states/EmptyState.js.map +1 -1
  177. package/dist/bigconsole/components/widgets/states/ErrorState.js +7 -5
  178. package/dist/bigconsole/components/widgets/states/ErrorState.js.map +1 -1
  179. package/dist/bigconsole/components/widgets/states/LoadingState.js +5 -4
  180. package/dist/bigconsole/components/widgets/states/LoadingState.js.map +1 -1
  181. package/dist/bigconsole/components/widgets/table/TableConfig.js +10 -4
  182. package/dist/bigconsole/components/widgets/table/TableConfig.js.map +1 -1
  183. package/dist/bigconsole/components/widgets/table/TableHeader.js +1 -1
  184. package/dist/bigconsole/components/widgets/table/TableHeader.js.map +1 -1
  185. package/dist/bigconsole/components/widgets/table/TableWidget.js +1 -1
  186. package/dist/bigconsole/components/widgets/table/TableWidget.js.map +1 -1
  187. package/dist/bigconsole/components/widgets/text-widget/TextWidget.js +1 -1
  188. package/dist/bigconsole/components/widgets/text-widget/TextWidget.js.map +1 -1
  189. package/dist/bigconsole/components/widgets/timeline/TimelineWidget.js +3 -3
  190. package/dist/bigconsole/components/widgets/timeline/TimelineWidget.js.map +1 -1
  191. package/dist/bigconsole/components/widgets/utils/conditionalFormat.js +2 -2
  192. package/dist/bigconsole/components/widgets/utils/conditionalFormat.js.map +1 -1
  193. package/dist/bigconsole/components/widgets/utils/targetProgress.js +13 -0
  194. package/dist/bigconsole/components/widgets/utils/targetProgress.js.map +1 -0
  195. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +112 -85
  196. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js.map +1 -1
  197. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +28 -20
  198. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js.map +1 -1
  199. package/dist/bigconsole/components/workflow/WorkflowCard.js +92 -77
  200. package/dist/bigconsole/components/workflow/WorkflowCard.js.map +1 -1
  201. package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.js +70 -51
  202. package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.js.map +1 -1
  203. package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +16 -17
  204. package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js.map +1 -1
  205. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +6 -4
  206. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js.map +1 -1
  207. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +360 -338
  208. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
  209. package/dist/bigconsole/hooks/useModalFocusTrap.js +53 -0
  210. package/dist/bigconsole/hooks/useModalFocusTrap.js.map +1 -0
  211. package/dist/bigconsole/pages/DashboardBuilderPage.js +209 -203
  212. package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
  213. package/dist/bigconsole/pages/DashboardViewPage.js +126 -120
  214. package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
  215. package/dist/bigconsole/pages/DashboardsPage.js +838 -800
  216. package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
  217. package/dist/bigconsole/pages/DataParsersPage.js +263 -315
  218. package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
  219. package/dist/bigconsole/pages/DataSinkBuilderPage.js +301 -341
  220. package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
  221. package/dist/bigconsole/pages/DataSinkViewPage.js +346 -339
  222. package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
  223. package/dist/bigconsole/pages/DataSinksPage.js +356 -458
  224. package/dist/bigconsole/pages/DataSinksPage.js.map +1 -1
  225. package/dist/bigconsole/pages/DataSourcesPage.js +7 -2
  226. package/dist/bigconsole/pages/DataSourcesPage.js.map +1 -1
  227. package/dist/bigconsole/pages/HomePage.js +186 -193
  228. package/dist/bigconsole/pages/HomePage.js.map +1 -1
  229. package/dist/bigconsole/pages/InsightsPage.js +887 -740
  230. package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
  231. package/dist/bigconsole/pages/ParserBuilderPage.js +679 -637
  232. package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
  233. package/dist/bigconsole/pages/ParserViewPage.js +368 -342
  234. package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
  235. package/dist/bigconsole/pages/PipelineBuilderPage.js +537 -444
  236. package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
  237. package/dist/bigconsole/pages/PipelineViewPage.js +412 -377
  238. package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
  239. package/dist/bigconsole/pages/PipelinesPage.js +248 -298
  240. package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
  241. package/dist/bigconsole/pages/WidgetDemoPage.js +251 -153
  242. package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
  243. package/dist/bigconsole/pages/WorkflowViewPage.js +381 -371
  244. package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
  245. package/dist/bigconsole/pages/WorkflowsPage.js +171 -286
  246. package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
  247. package/package.json +1 -1
@@ -1,10 +1,12 @@
1
- import { BIGCONSOLE_PERMISSIONS as e } from "../../../constants/permissions.js";
2
- import { memo as t, useCallback as n, useEffect as r, useMemo as i, useRef as ee, useState as a } from "react";
3
- import { PermissionButton as te } from "@burdenoff/fe-libs/shared/components";
4
- import { ChevronDown as ne, ChevronRight as re, Pencil as ie, Plus as ae, Zap as oe } from "lucide-react";
5
- import { useI18n as se } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
6
- import { Button as ce, Checkbox as le, Dialog as ue, DialogContent as de, DialogDescription as fe, DialogFooter as pe, DialogHeader as me, DialogTitle as he, Input as o, Select as s, SelectContent as c, SelectItem as l, SelectTrigger as u, SelectValue as d, Spinner as ge, Textarea as _e } from "@burdenoff/fe-libs/ui";
7
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
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 m(e) {
54
+ function h(e) {
53
55
  return e.trim().toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
54
56
  }
55
- var h = {
57
+ var g = {
56
58
  display: "block",
57
59
  fontSize: "var(--font-size-body-sm)",
58
- fontWeight: "var(--font-weight-semibold)",
60
+ fontWeight: "var(--font-weight-medium)",
59
61
  color: "var(--color-text-primary)",
60
62
  marginBottom: "var(--space-controlGap)"
61
- }, g = {
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
- }, v = t(function({ isOpen: t, action: v, initialWebhook: y, isLoading: b = !1, saveError: xe, onClose: Se, onSave: Ce }) {
72
- let { t: x } = se(), S = !!v, C = ee(null), w = ee(!1), [T, E] = a(""), [D, O] = a(""), [k, A] = a(!1), [j, M] = a("PRIMARY"), [N, P] = a(""), [F, I] = a("WEBHOOK"), [L, we] = a(""), [R, z] = a("POST"), [B, V] = a(!1), [H, U] = a(!1), [Te, Ee] = a(!1), [W, G] = a(!1), [K, q] = a(() => x("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action")), [J, Y] = a(() => x("bigconsole.widget.actions.confirm.defaultMessage", "Are you sure you want to proceed?")), [De, X] = a(() => x("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), [Oe, Z] = a(() => x("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel")), [Q, $] = a(null), ke = i(() => [{
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: x("bigconsole.widget.actions.outcome.webhook.label", "Call a webhook / my API"),
75
- hint: x("bigconsole.widget.actions.outcome.webhook.hint", "Sends an HTTP request to the URL below every time the button is clicked.")
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: x("bigconsole.widget.actions.outcome.emit.label", "Just emit an event (advanced)"),
79
- hint: x("bigconsole.widget.actions.outcome.emit.hint", "Emits widget:<name>:clicked. Wire it up yourself in the Webhooks/Events section.")
80
- }], [x]), Ae = i(() => {
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: x("bigconsole.widget.actions.style.primary", "Primary"),
83
- SECONDARY: x("bigconsole.widget.actions.style.secondary", "Secondary"),
84
- SUCCESS: x("bigconsole.widget.actions.style.success", "Success"),
85
- WARNING: x("bigconsole.widget.actions.style.warning", "Warning"),
86
- DANGER: x("bigconsole.widget.actions.style.danger", "Danger"),
87
- GHOST: x("bigconsole.widget.actions.style.ghost", "Ghost"),
88
- LINK: x("bigconsole.widget.actions.style.link", "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
- }, [x]), je = i(() => {
104
+ }, [S]), Ne = i(() => {
96
105
  let e = {
97
- "": x("bigconsole.widget.actions.icon.none", "No icon"),
98
- refresh: x("bigconsole.widget.actions.icon.refresh", "Refresh"),
99
- download: x("bigconsole.widget.actions.icon.download", "Download"),
100
- upload: x("bigconsole.widget.actions.icon.upload", "Upload"),
101
- trash: x("bigconsole.widget.actions.icon.trash", "Trash"),
102
- edit: x("bigconsole.widget.actions.icon.edit", "Edit"),
103
- plus: x("bigconsole.widget.actions.icon.plus", "Plus"),
104
- check: x("bigconsole.widget.actions.icon.check", "Check"),
105
- eye: x("bigconsole.widget.actions.icon.eye", "View"),
106
- copy: x("bigconsole.widget.actions.icon.copy", "Copy"),
107
- share: x("bigconsole.widget.actions.icon.share", "Share"),
108
- settings: x("bigconsole.widget.actions.icon.settings", "Settings"),
109
- filter: x("bigconsole.widget.actions.icon.filter", "Filter"),
110
- search: x("bigconsole.widget.actions.icon.search", "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
- }, [x]);
117
- r(() => {
118
- if (!t) return;
119
- w.current = !1, we(""), z("POST"), v ? (E(v.label), O(v.name), A(!1), M(v.style), P(v.icon || ""), V(v.disabled), U(v.hidden), I("EMIT"), G(!!v.confirmation), v.confirmation ? (q(v.confirmation.title), Y(v.confirmation.message), X(v.confirmation.confirmLabel || x("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), Z(v.confirmation.cancelLabel || x("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel"))) : (q(x("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action")), Y(x("bigconsole.widget.actions.confirm.defaultMessage", "Are you sure you want to proceed?")), X(x("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), Z(x("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel")))) : (E(""), O(""), A(!1), M("PRIMARY"), P(""), I("WEBHOOK"), V(!1), U(!1), G(!1), q(x("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action")), Y(x("bigconsole.widget.actions.confirm.defaultMessage", "Are you sure you want to proceed?")), X(x("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), Z(x("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel"))), Ee(!1), $(null);
120
- let e = requestAnimationFrame(() => requestAnimationFrame(() => C.current?.focus()));
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
- t,
124
- v,
125
- x
126
- ]), r(() => {
127
- !t || !y || w.current || (I("WEBHOOK"), we(y.url), z(y.method));
128
- }, [t, y]);
129
- let Me = n((e) => {
130
- E(e), k || O(m(e)), Q && $(null);
131
- }, [k, Q]), Ne = n((e) => {
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
- $(x("bigconsole.widget.actions.validation.labelRequired", "Button label is required")), C.current?.focus();
144
+ $(S("bigconsole.widget.actions.validation.labelRequired", "Button label is required")), Te.current?.focus();
136
145
  return;
137
146
  }
138
- let n = S && v ? v.name : m(k ? D : T) || m(T);
147
+ let n = C && y ? y.name : h(k ? D : T) || h(T);
139
148
  if (!n) {
140
- $(x("bigconsole.widget.actions.validation.labelLettersOrNumbers", "Enter a label using letters or numbers"));
149
+ $(S("bigconsole.widget.actions.validation.labelLettersOrNumbers", "Enter a label using letters or numbers"));
141
150
  return;
142
151
  }
143
- if (F === "WEBHOOK") {
144
- let e = L.trim();
152
+ if (P === "WEBHOOK") {
153
+ let e = I.trim();
145
154
  if (!e) {
146
- $(x("bigconsole.widget.actions.validation.urlRequired", "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"));
147
156
  return;
148
157
  }
149
158
  if (!/^https?:\/\//i.test(e)) {
150
- $(x("bigconsole.widget.actions.validation.urlScheme", "Webhook URL must start with http:// or https://"));
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 = W ? {
155
- title: K.trim() || x("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action"),
156
- message: J.trim() || x("bigconsole.widget.actions.confirm.fallbackMessage", "Are you sure?"),
157
- confirmLabel: De.trim() || x("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm"),
158
- cancelLabel: Oe.trim() || x("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel")
159
- } : void 0, i = F === "WEBHOOK" ? {
160
- url: L.trim(),
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
- Ce(S && v ? {
164
- id: v.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: W ? r : null,
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
- }, i);
191
+ }, ee);
183
192
  }, [
184
193
  T,
185
194
  D,
186
195
  k,
187
- F,
188
- L,
196
+ P,
197
+ I,
189
198
  R,
190
199
  j,
191
200
  N,
192
201
  B,
193
202
  H,
194
- W,
195
- K,
196
- J,
197
- De,
203
+ G,
204
+ q,
198
205
  Oe,
199
- S,
200
- v,
201
- Ce,
202
- x
203
- ]), Pe = (e) => Ae.find((t) => t.value === e)?.color || "var(--color-action-primary-bg)", Fe = ke.find((e) => e.value === F);
204
- return /* @__PURE__ */ f(ue, {
205
- open: t,
206
- onOpenChange: (e) => !e && !b && Se(),
207
- children: /* @__PURE__ */ p(de, {
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
- maxWidth: "500px",
218
+ width: "min(500px, calc(100vw - 2rem))",
219
+ maxWidth: "calc(100vw - 2rem)",
210
220
  padding: 0
211
221
  },
212
- children: [/* @__PURE__ */ f(me, {
213
- style: { padding: "var(--space-pagePadding) var(--space-pagePadding) 0" },
214
- children: /* @__PURE__ */ p("div", {
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-formGap)"
229
+ gap: "var(--space-controlGap)",
230
+ minWidth: 0
219
231
  },
220
- children: [/* @__PURE__ */ f("div", {
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: f(S ? ie : oe, { style: {
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__ */ p("div", { children: [/* @__PURE__ */ f(he, {
248
+ }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(he, {
237
249
  style: {
238
- fontSize: "var(--font-size-heading-h4)",
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: S ? x("bigconsole.widget.actions.header.editTitle", "Edit Button") : x("bigconsole.widget.actions.header.addTitle", "Add Button")
244
- }), /* @__PURE__ */ f(fe, {
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: S ? x("bigconsole.widget.actions.header.editDescription", "Update the button and what it does") : x("bigconsole.widget.actions.header.addDescription", "Add a button and choose what it does")
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__ */ p("form", {
254
- onSubmit: Ne,
255
- children: [/* @__PURE__ */ p("div", {
265
+ }), /* @__PURE__ */ m("form", {
266
+ onSubmit: Fe,
267
+ children: [/* @__PURE__ */ m("div", {
256
268
  style: {
257
- padding: "var(--space-pagePadding)",
258
- maxHeight: "60vh",
269
+ padding: "var(--space-cardPadding)",
270
+ maxHeight: "65vh",
271
+ minWidth: 0,
259
272
  overflowY: "auto"
260
273
  },
261
274
  children: [
262
- (Q || xe) && /* @__PURE__ */ f("div", {
263
- style: {
264
- padding: "var(--space-controlGap)",
265
- backgroundColor: "var(--color-status-error-bgSubtle)",
266
- border: "1px solid var(--color-status-error-border)",
267
- borderRadius: "var(--radius-button)",
268
- marginBottom: "var(--space-formGap)"
269
- },
270
- children: /* @__PURE__ */ f("p", {
271
- style: {
272
- fontSize: "var(--font-size-body-sm)",
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("div", {
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__ */ p("label", {
283
- style: h,
295
+ /* @__PURE__ */ m("label", {
296
+ style: g,
284
297
  children: [
285
- x("bigconsole.widget.actions.field.buttonLabel", "Button label"),
298
+ S("bigconsole.widget.actions.field.buttonLabel", "Button label"),
286
299
  " ",
287
- /* @__PURE__ */ f("span", {
300
+ /* @__PURE__ */ p("span", {
288
301
  style: { color: "var(--color-status-error-text)" },
289
302
  children: "*"
290
303
  })
291
304
  ]
292
305
  }),
293
- /* @__PURE__ */ f(o, {
294
- ref: C,
306
+ /* @__PURE__ */ p(s, {
307
+ ref: Te,
295
308
  value: T,
296
- onChange: (e) => Me(e.target.value),
297
- placeholder: x("bigconsole.widget.actions.field.buttonLabelPlaceholder", "e.g., Refresh Data, Export CSV"),
298
- disabled: b,
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__ */ f("p", {
305
- style: g,
306
- children: x("bigconsole.widget.actions.field.buttonLabelHint", "Text shown on the button")
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__ */ p("div", {
323
+ /* @__PURE__ */ m("div", {
311
324
  style: {
312
325
  display: "grid",
313
- gridTemplateColumns: "1fr 1fr",
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__ */ p("div", { children: [/* @__PURE__ */ f("label", {
318
- style: h,
319
- children: x("bigconsole.widget.actions.field.style", "Style")
320
- }), /* @__PURE__ */ p(s, {
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: b,
324
- children: [/* @__PURE__ */ f(u, {
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(d, {})
330
- }), /* @__PURE__ */ f(c, {
331
- style: _,
332
- children: Ae.map((e) => /* @__PURE__ */ f(l, {
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__ */ p("div", { children: [/* @__PURE__ */ f("label", {
338
- style: h,
339
- children: x("bigconsole.widget.actions.field.icon", "Icon")
340
- }), /* @__PURE__ */ p(s, {
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: P,
343
- disabled: b,
344
- children: [/* @__PURE__ */ f(u, {
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(d, { placeholder: x("bigconsole.widget.actions.icon.none", "No icon") })
350
- }), /* @__PURE__ */ f(c, {
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: je.map((e) => /* @__PURE__ */ f(l, {
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__ */ p("div", {
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__ */ f("span", {
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: x("bigconsole.widget.actions.preview.label", "Preview:")
378
- }), /* @__PURE__ */ f("button", {
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: Pe(j),
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 || x("bigconsole.widget.actions.preview.buttonFallback", "Button")
403
+ children: T || S("bigconsole.widget.actions.preview.buttonFallback", "Button")
391
404
  })]
392
405
  }),
393
- /* @__PURE__ */ p("div", {
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__ */ f("label", {
397
- style: h,
398
- children: x("bigconsole.widget.actions.field.whenClicked", "When clicked")
416
+ /* @__PURE__ */ p("label", {
417
+ style: g,
418
+ children: S("bigconsole.widget.actions.field.whenClicked", "When clicked")
399
419
  }),
400
- /* @__PURE__ */ p(s, {
401
- value: F,
420
+ /* @__PURE__ */ m(c, {
421
+ value: P,
402
422
  onValueChange: (e) => {
403
- w.current = !0, I(e);
423
+ w.current = !0, F(e);
404
424
  },
405
- disabled: b,
406
- children: [/* @__PURE__ */ f(u, {
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(d, {})
412
- }), /* @__PURE__ */ f(c, {
413
- style: _,
414
- children: ke.map((e) => /* @__PURE__ */ f(l, {
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
- Fe && /* @__PURE__ */ f("p", {
421
- style: g,
422
- children: Fe.hint
440
+ Le && /* @__PURE__ */ p("p", {
441
+ style: _,
442
+ children: Le.hint
423
443
  })
424
444
  ]
425
445
  }),
426
- F === "WEBHOOK" && /* @__PURE__ */ p("div", {
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__ */ p("div", { children: [/* @__PURE__ */ p("label", {
437
- style: h,
456
+ /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("label", {
457
+ style: g,
438
458
  children: [
439
- x("bigconsole.widget.actions.webhook.urlLabel", "URL"),
459
+ S("bigconsole.widget.actions.webhook.urlLabel", "URL"),
440
460
  " ",
441
- /* @__PURE__ */ f("span", {
461
+ /* @__PURE__ */ p("span", {
442
462
  style: { color: "var(--color-status-error-text)" },
443
463
  children: "*"
444
464
  })
445
465
  ]
446
- }), /* @__PURE__ */ f(o, {
447
- value: L,
466
+ }), /* @__PURE__ */ p(s, {
467
+ value: I,
448
468
  onChange: (e) => {
449
- w.current = !0, we(e.target.value), Q && $(null);
469
+ w.current = !0, L(e.target.value), Q && $(null);
450
470
  },
451
- placeholder: x("bigconsole.widget.actions.webhook.urlPlaceholder", "https://your-service.com/hook"),
452
- disabled: b,
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__ */ p("div", {
459
- style: { maxWidth: "160px" },
460
- children: [/* @__PURE__ */ f("label", {
461
- style: h,
462
- children: x("bigconsole.widget.actions.webhook.methodLabel", "Method")
463
- }), /* @__PURE__ */ p(s, {
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: b,
469
- children: [/* @__PURE__ */ f(u, {
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(d, {})
475
- }), /* @__PURE__ */ f(c, {
476
- style: _,
477
- children: ve.map((e) => /* @__PURE__ */ f(l, {
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__ */ f("p", {
485
- style: g,
486
- children: x("bigconsole.widget.actions.webhook.payloadHint", "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.")
487
510
  }),
488
- /^http:\/\//i.test(L.trim()) && /* @__PURE__ */ p("p", {
511
+ /^http:\/\//i.test(I.trim()) && /* @__PURE__ */ m("p", {
489
512
  style: {
490
- ...g,
513
+ ..._,
491
514
  color: "var(--color-status-warning-text)"
492
515
  },
493
516
  children: [
494
- x("bigconsole.widget.actions.webhook.insecureWarningPrefix", "Warning:"),
517
+ S("bigconsole.widget.actions.webhook.insecureWarningPrefix", "Warning:"),
495
518
  " ",
496
- /* @__PURE__ */ f("code", { children: "http://" }),
519
+ /* @__PURE__ */ p("code", { children: "http://" }),
497
520
  " ",
498
- x("bigconsole.widget.actions.webhook.insecureWarningMiddle", "is unencrypted — the widget's data will be sent in plaintext. Use"),
521
+ S("bigconsole.widget.actions.webhook.insecureWarningMiddle", "is unencrypted — the widget's data will be sent in plaintext. Use"),
499
522
  " ",
500
- /* @__PURE__ */ f("code", { children: "https://" }),
523
+ /* @__PURE__ */ p("code", { children: "https://" }),
501
524
  " ",
502
- x("bigconsole.widget.actions.webhook.insecureWarningSuffix", "if it may contain anything sensitive.")
525
+ S("bigconsole.widget.actions.webhook.insecureWarningSuffix", "if it may contain anything sensitive.")
503
526
  ]
504
527
  })
505
528
  ]
506
529
  }),
507
- /* @__PURE__ */ p("div", {
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__ */ p("label", {
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__ */ f(le, {
521
- checked: W,
522
- onCheckedChange: (e) => G(e === !0),
523
- disabled: b
524
- }), /* @__PURE__ */ f("span", {
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: x("bigconsole.widget.actions.confirm.toggleLabel", "Ask for confirmation first")
553
+ children: S("bigconsole.widget.actions.confirm.toggleLabel", "Ask for confirmation first")
531
554
  })]
532
- }), W && /* @__PURE__ */ p("div", {
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__ */ p("div", { children: [/* @__PURE__ */ f("label", {
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: x("bigconsole.widget.actions.confirm.dialogTitleLabel", "Dialog Title")
550
- }), /* @__PURE__ */ f(o, {
551
- value: K,
552
- onChange: (e) => q(e.target.value),
553
- disabled: b,
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__ */ p("div", { children: [/* @__PURE__ */ f("label", {
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: x("bigconsole.widget.actions.confirm.messageLabel", "Message")
568
- }), /* @__PURE__ */ f(_e, {
569
- value: J,
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: b,
595
+ disabled: x,
573
596
  style: {
574
597
  fontSize: "var(--font-size-body-sm)",
575
598
  resize: "none"
576
599
  }
577
600
  })] }),
578
- /* @__PURE__ */ p("div", {
601
+ /* @__PURE__ */ m("div", {
579
602
  style: {
580
603
  display: "grid",
581
- gridTemplateColumns: "1fr 1fr",
604
+ gridTemplateColumns: "repeat(auto-fit, minmax(11rem, 1fr))",
582
605
  gap: "var(--space-controlGap)"
583
606
  },
584
- children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
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: x("bigconsole.widget.actions.confirm.confirmButtonLabel", "Confirm Button")
593
- }), /* @__PURE__ */ f(o, {
594
- value: De,
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: b,
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__ */ p("div", { children: [/* @__PURE__ */ f("label", {
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: x("bigconsole.widget.actions.confirm.cancelButtonLabel", "Cancel Button")
610
- }), /* @__PURE__ */ f(o, {
611
- value: Oe,
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: b,
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__ */ p("div", {
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("button", {
629
- type: "button",
630
- onClick: () => Ee((e) => !e),
651
+ children: [/* @__PURE__ */ p("h3", {
631
652
  style: {
632
- display: "flex",
633
- alignItems: "center",
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: [f(Te ? ne : re, { style: {
644
- height: "14px",
645
- width: "14px"
646
- } }), x("bigconsole.widget.actions.advanced.toggle", "Advanced")]
647
- }), Te && /* @__PURE__ */ p("div", {
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__ */ p("div", { children: [
655
- /* @__PURE__ */ f("label", {
656
- style: h,
657
- children: x("bigconsole.widget.actions.advanced.eventNameLabel", "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)")
658
692
  }),
659
- /* @__PURE__ */ f(o, {
660
- value: S && v ? v.name : D,
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: x("bigconsole.widget.actions.advanced.eventNamePlaceholder", "auto from label"),
665
- disabled: b || S,
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__ */ p("p", {
673
- style: g,
706
+ /* @__PURE__ */ m("p", {
707
+ style: _,
674
708
  children: [
675
- x("bigconsole.widget.actions.advanced.emitsPrefix", "Emits"),
709
+ S("bigconsole.widget.actions.advanced.emitsPrefix", "Emits"),
676
710
  " ",
677
- /* @__PURE__ */ p("code", { children: [
711
+ /* @__PURE__ */ m("code", { children: [
678
712
  "widget:",
679
- S && v ? v.name : m(D || T) || "<name>",
713
+ C && y ? y.name : h(D || T) || "<name>",
680
714
  ":clicked"
681
715
  ] }),
682
716
  ".",
683
717
  " ",
684
- S ? x("bigconsole.widget.actions.advanced.emitsFixed", "Fixed once created.") : x("bigconsole.widget.actions.advanced.emitsAutoDerived", "Auto-derived from the label.")
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__ */ p("div", {
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__ */ p("label", {
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__ */ f(le, {
734
+ children: [/* @__PURE__ */ p(o, {
701
735
  checked: B,
702
736
  onCheckedChange: (e) => V(e === !0),
703
- disabled: b
704
- }), /* @__PURE__ */ f("span", {
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: x("bigconsole.widget.actions.advanced.disabled", "Disabled")
743
+ children: S("bigconsole.widget.actions.advanced.disabled", "Disabled")
710
744
  })]
711
- }), /* @__PURE__ */ p("label", {
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__ */ f(le, {
752
+ children: [/* @__PURE__ */ p(o, {
719
753
  checked: H,
720
754
  onCheckedChange: (e) => U(e === !0),
721
- disabled: b
722
- }), /* @__PURE__ */ f("span", {
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: x("bigconsole.widget.actions.advanced.hidden", "Hidden")
761
+ children: S("bigconsole.widget.actions.advanced.hidden", "Hidden")
728
762
  })]
729
763
  })]
730
764
  })]
731
765
  })]
732
766
  })
733
767
  ]
734
- }), /* @__PURE__ */ p(pe, {
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__ */ f(ce, {
777
+ children: [/* @__PURE__ */ p(le, {
744
778
  type: "button",
745
779
  variant: "outline",
746
- onClick: Se,
747
- disabled: b,
780
+ onClick: Ce,
781
+ disabled: x,
748
782
  style: { height: "var(--size-controlHeight-md)" },
749
- children: x("bigconsole.widget.actions.footer.cancel", "Cancel")
750
- }), /* @__PURE__ */ f(te, {
751
- permission: S ? e.WIDGET_ACTION_UPDATE : e.WIDGET_ACTION_CREATE,
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__ */ f(ce, {
787
+ children: /* @__PURE__ */ p(le, {
754
788
  type: "submit",
755
- disabled: b || !T.trim(),
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: b ? /* @__PURE__ */ p("span", {
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__ */ f(ge, { style: {
800
+ children: [/* @__PURE__ */ p(ge, { style: {
767
801
  height: "var(--size-icon-sm)",
768
802
  width: "var(--size-icon-sm)"
769
- } }), x("bigconsole.widget.actions.footer.saving", "Saving...")]
770
- }) : /* @__PURE__ */ p("span", {
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: [f(S ? ie : ae, { style: {
810
+ children: [p(C ? ae : oe, { style: {
777
811
  height: "var(--size-icon-sm)",
778
812
  width: "var(--size-icon-sm)"
779
- } }), S ? x("bigconsole.widget.actions.footer.updateButton", "Update Button") : x("bigconsole.widget.actions.footer.addButton", "Add Button")]
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 { v as default };
823
+ export { y as default };
790
824
 
791
825
  //# sourceMappingURL=ActionConfigDialog.js.map