@burdenoff/microfe-bigconsole 2026.1031.1 → 2026.1031.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/dist/bigconsole/BigConsoleRoot.js +6 -4
  2. package/dist/bigconsole/assistant/assistantApi.js +1 -1
  3. package/dist/bigconsole/assistant/assistantProduct.js +70 -70
  4. package/dist/bigconsole/assistant/assistantRunPersistence.js +1 -1
  5. package/dist/bigconsole/assistant/assistantRuntime.js +1 -1
  6. package/dist/bigconsole/assistant/attachmentExtract.js +1 -1
  7. package/dist/bigconsole/assistant/conversationHistoryApi.js +1 -1
  8. package/dist/bigconsole/assistant/createSandboxAssistantTransport.js +5 -4
  9. package/dist/bigconsole/assistant/pageContext.js +1 -1
  10. package/dist/bigconsole/assistant/pageControls.js +1 -1
  11. package/dist/bigconsole/assistant/previewController.js +1 -1
  12. package/dist/bigconsole/assistant/recordAdapters.js +1 -1
  13. package/dist/bigconsole/components/DrilldownDashboardRenderer.js +2 -2
  14. package/dist/bigconsole/components/DrilldownModal.js +1 -1
  15. package/dist/bigconsole/components/builder/WidgetInspector.js +1 -1
  16. package/dist/bigconsole/components/builder/index.js +5 -4
  17. package/dist/bigconsole/components/builder/inspector/AppearanceSection.js +7 -7
  18. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +2 -2
  19. package/dist/bigconsole/components/builder/inspector/LayoutSection.js +1 -1
  20. package/dist/bigconsole/components/builder/inspector/index.js +6 -5
  21. package/dist/bigconsole/components/common/index.js +4 -3
  22. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +3 -3
  23. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +9 -9
  24. package/dist/bigconsole/components/dashboard/DashboardGrid.js +2 -2
  25. package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +1 -1
  26. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +2 -2
  27. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +4 -3
  28. package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +1 -1
  29. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +1 -1
  30. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +1 -1
  31. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +1 -1
  32. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +4 -4
  33. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/index.js +2 -1
  34. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +1 -1
  35. package/dist/bigconsole/components/dashboard/LiveBoardBanner.js +1 -1
  36. package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
  37. package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js +1 -1
  38. package/dist/bigconsole/components/dashboard/PageTabsManager/index.js +2 -1
  39. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +1 -1
  40. package/dist/bigconsole/components/dashboard/QuotaLimitNotice.js +1 -1
  41. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +1 -1
  42. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/index.js +2 -1
  43. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +152 -152
  44. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +2 -2
  45. package/dist/bigconsole/components/dashboard/ShareDialog/index.js +2 -1
  46. package/dist/bigconsole/components/dashboard/StoreTemplatePicker.js +1 -1
  47. package/dist/bigconsole/components/dashboard/TemplateSetupBanner.js +1 -1
  48. package/dist/bigconsole/components/dashboard/WidgetPalette.js +2 -2
  49. package/dist/bigconsole/components/dashboard/index.js +6 -5
  50. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +2 -2
  51. package/dist/bigconsole/components/datasink/DataSinkCard.js +2 -2
  52. package/dist/bigconsole/components/datasink/DataSinkDataViewer.js +1 -1
  53. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +1 -1
  54. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +1 -1
  55. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +1 -1
  56. package/dist/bigconsole/components/datasink/DataSinkTableViewer.js +1 -1
  57. package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js +1 -1
  58. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +1 -1
  59. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +1 -1
  60. package/dist/bigconsole/components/datasink/LinkedParsersPanel.js +1 -1
  61. package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.js +1 -1
  62. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +1 -1
  63. package/dist/bigconsole/components/datasink/SetupStateBadge.js +1 -1
  64. package/dist/bigconsole/components/datasink/WorkflowStatusPanel.js +1 -1
  65. package/dist/bigconsole/components/embed/widgets/CalendarEmbed.js +1 -1
  66. package/dist/bigconsole/components/embed/widgets/ChartEmbed.js +9 -9
  67. package/dist/bigconsole/components/embed/widgets/FormEmbed.js +2 -2
  68. package/dist/bigconsole/components/embed/widgets/GaugeEmbed.js +1 -1
  69. package/dist/bigconsole/components/embed/widgets/HeatmapEmbed.js +1 -1
  70. package/dist/bigconsole/components/embed/widgets/KanbanEmbed.js +2 -2
  71. package/dist/bigconsole/components/embed/widgets/ProgressEmbed.js +1 -1
  72. package/dist/bigconsole/components/embed/widgets/RetentionEmbed.js +1 -1
  73. package/dist/bigconsole/components/embed/widgets/TimelineEmbed.js +1 -1
  74. package/dist/bigconsole/components/overview/DashboardGuide.js +1 -1
  75. package/dist/bigconsole/components/overview/DataHealthCard.js +2 -2
  76. package/dist/bigconsole/components/overview/OverviewQuickActions.js +1 -1
  77. package/dist/bigconsole/components/overview/OverviewStatCard.js +1 -1
  78. package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +2 -2
  79. package/dist/bigconsole/components/overview/index.js +9 -8
  80. package/dist/bigconsole/components/overview/overviewModel.js +1 -1
  81. package/dist/bigconsole/components/parser/DataSinkSelector.js +2 -2
  82. package/dist/bigconsole/components/parser/ExportParserDialog.js +1 -1
  83. package/dist/bigconsole/components/parser/ExpressionEditor.js +1 -1
  84. package/dist/bigconsole/components/parser/ImportParserDialog.js +10 -10
  85. package/dist/bigconsole/components/parser/ParserCard.js +3 -3
  86. package/dist/bigconsole/components/parser/ParserSelector.js +3 -3
  87. package/dist/bigconsole/components/parser/ParserStatusBadge.js +1 -1
  88. package/dist/bigconsole/components/parser/ParserTypeBadge.js +1 -1
  89. package/dist/bigconsole/components/pipeline/PipelineCard.js +2 -2
  90. package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.js +1 -1
  91. package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +1 -1
  92. package/dist/bigconsole/components/preview/AiPreviewContent.js +3 -3
  93. package/dist/bigconsole/components/preview/confirmedPreviewWidgets.js +10 -12
  94. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +314 -314
  95. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +3 -2
  96. package/dist/bigconsole/components/widgets/PropertiesPanel.js +37 -22
  97. package/dist/bigconsole/components/widgets/WidgetErrorBoundary.js +1 -1
  98. package/dist/bigconsole/components/widgets/WidgetHeader.js +2 -2
  99. package/dist/bigconsole/components/widgets/WidgetMenu.js +1 -1
  100. package/dist/bigconsole/components/widgets/WidgetRegistry.js +1 -1
  101. package/dist/bigconsole/components/widgets/WidgetWrapper.js +16 -16
  102. package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.js +1 -1
  103. package/dist/bigconsole/components/widgets/adaptive-card/index.js +1 -1
  104. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.js +1 -1
  105. package/dist/bigconsole/components/widgets/calendar/CalendarView.js +1 -1
  106. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +9 -9
  107. package/dist/bigconsole/components/widgets/calendar/index.js +1 -1
  108. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +1 -1
  109. package/dist/bigconsole/components/widgets/chart/ChartLegend.js +1 -1
  110. package/dist/bigconsole/components/widgets/chart/ChartTooltip.js +1 -1
  111. package/dist/bigconsole/components/widgets/chart/ChartWidget.js +10 -10
  112. package/dist/bigconsole/components/widgets/chart/charts/AreaChart.js +2 -2
  113. package/dist/bigconsole/components/widgets/chart/charts/BarChart.js +2 -2
  114. package/dist/bigconsole/components/widgets/chart/charts/ComboChart.js +2 -2
  115. package/dist/bigconsole/components/widgets/chart/charts/FunnelChart.js +2 -2
  116. package/dist/bigconsole/components/widgets/chart/charts/LineChart.js +2 -2
  117. package/dist/bigconsole/components/widgets/chart/charts/PieChart.js +2 -2
  118. package/dist/bigconsole/components/widgets/chart/charts/ScatterChart.js +2 -2
  119. package/dist/bigconsole/components/widgets/chart/charts/WaterfallChart.js +1 -1
  120. package/dist/bigconsole/components/widgets/chart/charts/index.js +6 -5
  121. package/dist/bigconsole/components/widgets/chart/charts/numericSeries.js +4 -2
  122. package/dist/bigconsole/components/widgets/chart/index.js +9 -9
  123. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
  124. package/dist/bigconsole/components/widgets/custom/CustomWidget.js +1 -1
  125. package/dist/bigconsole/components/widgets/custom/index.js +1 -1
  126. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +1 -1
  127. package/dist/bigconsole/components/widgets/event-logs/index.js +2 -1
  128. package/dist/bigconsole/components/widgets/form/FormWidget.js +2 -2
  129. package/dist/bigconsole/components/widgets/form/index.js +1 -1
  130. package/dist/bigconsole/components/widgets/funnel/index.js +1 -1
  131. package/dist/bigconsole/components/widgets/gauge/CircularGauge.js +1 -1
  132. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +1 -1
  133. package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js +3 -3
  134. package/dist/bigconsole/components/widgets/gauge/LinearGauge.js +1 -1
  135. package/dist/bigconsole/components/widgets/gauge/index.js +4 -4
  136. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +1 -1
  137. package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.js +1 -1
  138. package/dist/bigconsole/components/widgets/heatmap/index.js +2 -2
  139. package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +1 -1
  140. package/dist/bigconsole/components/widgets/iframe-widget/index.js +1 -1
  141. package/dist/bigconsole/components/widgets/index.js +2 -1
  142. package/dist/bigconsole/components/widgets/kanban/KanbanView.js +1 -1
  143. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +2 -2
  144. package/dist/bigconsole/components/widgets/kanban/index.js +1 -1
  145. package/dist/bigconsole/components/widgets/kpi/KPIWidget.js +1 -1
  146. package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js +3 -3
  147. package/dist/bigconsole/components/widgets/kpi-comparison/index.js +1 -1
  148. package/dist/bigconsole/components/widgets/list/ListConfig.js +1 -1
  149. package/dist/bigconsole/components/widgets/list/ListItem.js +1 -1
  150. package/dist/bigconsole/components/widgets/list/ListWidget.js +2 -2
  151. package/dist/bigconsole/components/widgets/list/index.js +3 -3
  152. package/dist/bigconsole/components/widgets/map-widget/MapWidget.js +1 -1
  153. package/dist/bigconsole/components/widgets/map-widget/index.js +1 -1
  154. package/dist/bigconsole/components/widgets/metric-card/ComparisonBadge.js +2 -2
  155. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +1 -1
  156. package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js +4 -4
  157. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +1 -1
  158. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +1 -1
  159. package/dist/bigconsole/components/widgets/metric-card/index.js +5 -5
  160. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +3 -3
  161. package/dist/bigconsole/components/widgets/pivot-table/index.js +1 -1
  162. package/dist/bigconsole/components/widgets/progress/ProgressBar.js +1 -1
  163. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +6 -4
  164. package/dist/bigconsole/components/widgets/progress/ProgressWidget.js +2 -2
  165. package/dist/bigconsole/components/widgets/progress/index.js +3 -3
  166. package/dist/bigconsole/components/widgets/retention/RetentionWidget.js +1 -1
  167. package/dist/bigconsole/components/widgets/retention/index.js +1 -1
  168. package/dist/bigconsole/components/widgets/states/EmptyState.js +1 -1
  169. package/dist/bigconsole/components/widgets/states/ErrorState.js +1 -1
  170. package/dist/bigconsole/components/widgets/states/LoadingState.js +1 -1
  171. package/dist/bigconsole/components/widgets/table/TableCell.js +2 -2
  172. package/dist/bigconsole/components/widgets/table/TableConfig.js +12 -8
  173. package/dist/bigconsole/components/widgets/table/TableHeader.js +1 -1
  174. package/dist/bigconsole/components/widgets/table/TablePagination.js +1 -1
  175. package/dist/bigconsole/components/widgets/table/TableWidget.js +12 -10
  176. package/dist/bigconsole/components/widgets/table/index.js +5 -5
  177. package/dist/bigconsole/components/widgets/text-widget/TextWidget.js +1 -1
  178. package/dist/bigconsole/components/widgets/text-widget/index.js +1 -1
  179. package/dist/bigconsole/components/widgets/text-widget/textData.js +2 -2
  180. package/dist/bigconsole/components/widgets/timeline/TimelineWidget.js +1 -1
  181. package/dist/bigconsole/components/widgets/timeline/index.js +1 -1
  182. package/dist/bigconsole/components/widgets/utils/conditionalFormat.js +1 -1
  183. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +1 -1
  184. package/dist/bigconsole/components/widgets/webhook-config/index.js +2 -1
  185. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +1 -1
  186. package/dist/bigconsole/components/widgets/widget-actions/index.js +2 -1
  187. package/dist/bigconsole/components/workflow/WorkflowCard.js +2 -2
  188. package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.js +1 -1
  189. package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +1 -1
  190. package/dist/bigconsole/context/BigConsoleContext.js +2 -1
  191. package/dist/bigconsole/context/index.js +2 -1
  192. package/dist/bigconsole/contexts/CrossFilterContext.js +1 -1
  193. package/dist/bigconsole/contexts/NavigationContext.js +2 -1
  194. package/dist/bigconsole/contexts/index.js +3 -2
  195. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +2 -2
  196. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +6 -5
  197. package/dist/bigconsole/customWidget/index.js +2 -1
  198. package/dist/bigconsole/customWidget/proposalContract.js +1 -1
  199. package/dist/bigconsole/graphql/storeTemplates.js +5 -5
  200. package/dist/bigconsole/graphql/widgetCapabilities.js +1 -1
  201. package/dist/bigconsole/hooks/index.js +24 -23
  202. package/dist/bigconsole/hooks/useActivePage.js +1 -1
  203. package/dist/bigconsole/hooks/useAutoRefresh.js +1 -1
  204. package/dist/bigconsole/hooks/useBigConsoleAnalytics.js +1 -1
  205. package/dist/bigconsole/hooks/useCrossFilter.js +1 -1
  206. package/dist/bigconsole/hooks/useDashboardEmbedPolicy.js +1 -1
  207. package/dist/bigconsole/hooks/useDashboardImageExport.js +1 -1
  208. package/dist/bigconsole/hooks/useDashboardOperations.js +14 -6
  209. package/dist/bigconsole/hooks/useDashboardSharing.js +15 -8
  210. package/dist/bigconsole/hooks/useDashboardViews.js +15 -8
  211. package/dist/bigconsole/hooks/useDataSinkAlerts.js +11 -8
  212. package/dist/bigconsole/hooks/useDataSinkOperations.js +19 -10
  213. package/dist/bigconsole/hooks/useDataSinkSubscription.js +1 -1
  214. package/dist/bigconsole/hooks/useDrilldown.js +2 -2
  215. package/dist/bigconsole/hooks/useDrilldownOperations.js +1 -1
  216. package/dist/bigconsole/hooks/useEventLogs.js +1 -1
  217. package/dist/bigconsole/hooks/useEventWebhooks.js +1 -1
  218. package/dist/bigconsole/hooks/useExportDashboard.js +7 -3
  219. package/dist/bigconsole/hooks/useExportDataSink.js +5 -3
  220. package/dist/bigconsole/hooks/useExportParser.js +5 -3
  221. package/dist/bigconsole/hooks/useFilterPresets.js +1 -1
  222. package/dist/bigconsole/hooks/useFilterUrlSync.js +1 -1
  223. package/dist/bigconsole/hooks/useGlobalFilters.js +11 -6
  224. package/dist/bigconsole/hooks/useImportDashboard.js +4 -2
  225. package/dist/bigconsole/hooks/useImportDataSink.js +3 -2
  226. package/dist/bigconsole/hooks/useImportParser.js +3 -2
  227. package/dist/bigconsole/hooks/useInstalledWidgets.js +1 -1
  228. package/dist/bigconsole/hooks/useModalFocusTrap.js +1 -1
  229. package/dist/bigconsole/hooks/usePageOperations.js +9 -5
  230. package/dist/bigconsole/hooks/useParserOperations.js +15 -8
  231. package/dist/bigconsole/hooks/usePipelineOperations.js +25 -13
  232. package/dist/bigconsole/hooks/useStoreDashboardTemplates.js +1 -1
  233. package/dist/bigconsole/hooks/useWidgetActions.js +1 -1
  234. package/dist/bigconsole/hooks/useWidgetCatalog.js +5 -5
  235. package/dist/bigconsole/hooks/useWidgetComments.js +1 -1
  236. package/dist/bigconsole/hooks/useWidgetConfigPersist.js +1 -1
  237. package/dist/bigconsole/hooks/useWidgetData.js +1 -1
  238. package/dist/bigconsole/hooks/useWidgetEvents.js +1 -1
  239. package/dist/bigconsole/hooks/useWidgetExport.js +1 -1
  240. package/dist/bigconsole/hooks/useWidgetOperations.js +28 -16
  241. package/dist/bigconsole/hooks/useWorkflowOperations.js +19 -10
  242. package/dist/bigconsole/index.js +9 -8
  243. package/dist/bigconsole/pages/DashboardBuilderPage.js +44 -35
  244. package/dist/bigconsole/pages/DashboardViewPage.js +23 -16
  245. package/dist/bigconsole/pages/DashboardsPage.js +4 -4
  246. package/dist/bigconsole/pages/DataParsersPage.js +2 -2
  247. package/dist/bigconsole/pages/DataSinkBuilderPage.js +12 -7
  248. package/dist/bigconsole/pages/DataSinkViewPage.js +8 -8
  249. package/dist/bigconsole/pages/DataSinksPage.js +6 -6
  250. package/dist/bigconsole/pages/OverviewPage.js +5 -5
  251. package/dist/bigconsole/pages/ParserBuilderPage.js +1 -1
  252. package/dist/bigconsole/pages/ParserViewPage.js +4 -4
  253. package/dist/bigconsole/pages/PipelineBuilderPage.js +1 -1
  254. package/dist/bigconsole/pages/PipelineViewPage.js +7 -3
  255. package/dist/bigconsole/pages/PipelinesPage.js +2 -2
  256. package/dist/bigconsole/pages/WidgetDemoPage.js +1 -1
  257. package/dist/bigconsole/pages/WorkflowViewPage.js +7 -14
  258. package/dist/bigconsole/pages/WorkflowsPage.js +3 -3
  259. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +4 -4
  260. package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.js +1 -1
  261. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +1 -1
  262. package/dist/bigconsole/renderers/adapters/CustomRenderer.js +13 -12
  263. package/dist/bigconsole/renderers/factory/WidgetRendererFactory.js +1 -1
  264. package/dist/bigconsole/renderers/registry/RendererRegistry.js +5 -5
  265. package/dist/bigconsole/store/drilldownStore.js +1 -1
  266. package/dist/bigconsole/store/index.js +4 -3
  267. package/dist/bigconsole/store/parserStore.js +1 -1
  268. package/dist/bigconsole/store/pipelineStore.js +1 -1
  269. package/dist/bigconsole/utils/advancedWidgetCapabilities.js +1 -1
  270. package/dist/bigconsole/utils/backendError.js +21 -22
  271. package/dist/bigconsole/utils/createDialogParam.js +2 -2
  272. package/dist/bigconsole/utils/csv.js +34 -36
  273. package/dist/bigconsole/utils/dataSinkPayload.js +12 -14
  274. package/dist/bigconsole/utils/drilldownParams.js +1 -1
  275. package/dist/bigconsole/utils/formDirty.js +3 -3
  276. package/dist/bigconsole/utils/layoutBaseline.js +1 -1
  277. package/dist/bigconsole/utils/quota.js +4 -4
  278. package/dist/bigconsole/utils/safeUrl.js +35 -33
  279. package/dist/bigconsole/utils/sanitizeHtml.js +2 -2
  280. package/dist/bigconsole/utils/templateGalleryFilter.js +2 -2
  281. package/dist/bigconsole/utils/widgetBinding.js +2 -2
  282. package/dist/bigconsole/utils/widgetDisplayData.js +1 -1
  283. package/dist/bigconsole/utils/widgetTypeMapping.js +3 -3
  284. package/dist/bigconsole/workflowOpen.js +2 -2
  285. package/dist/index.js +1 -1
  286. package/dist/node_modules/@e965/xlsx/xlsx.js +19 -19
  287. package/dist/node_modules/dompurify/dist/purify.es.js +454 -361
  288. package/dist/node_modules/pdfjs-dist/build/pdf.js +16 -16
  289. package/dist/shared/hooks/useTr.js +1 -1
  290. package/package.json +16 -15
@@ -2,20 +2,20 @@ import { Section as e } from "../common/Section.js";
2
2
  import "../common/index.js";
3
3
  import { BIGCONSOLE_PERMISSIONS as t } from "../../../constants/permissions.js";
4
4
  import { serializeActionConfig as ee, slugifyActionName as n, validateActionConfig as te } from "./actionConfig.js";
5
- import { memo as r, useCallback as i, useEffect as ne, useId as re, useMemo as ie, useRef as a, useState as o } from "react";
6
- import { PermissionButton as ae } from "@burdenoff/fe-libs/shared/components";
7
- import { ChevronDown as oe, ChevronRight as se } from "lucide-react";
8
- import { Button as ce, Checkbox as s, Input as c, ResponsiveDialog as le, ResponsiveDialogContent as ue, ResponsiveDialogDescription as de, ResponsiveDialogFooter as fe, ResponsiveDialogHeader as pe, ResponsiveDialogTitle as me, Select as l, SelectContent as u, SelectItem as he, SelectTrigger as ge, SelectValue as _e, Spinner as ve, Textarea as ye } from "@burdenoff/fe-libs/ui";
9
- import { useI18n as be } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
10
- import { Fragment as xe, jsx as d, jsxs as f } from "react/jsx-runtime";
5
+ import { memo as r, useCallback as i, useEffect as a, useId as o, useMemo as ne, useRef as s, useState as c } from "react";
6
+ import { PermissionButton as re } from "@burdenoff/fe-libs/shared/components";
7
+ import { ChevronDown as ie, ChevronRight as ae } from "lucide-react";
8
+ import { Button as oe, Checkbox as l, Input as u, ResponsiveDialog as se, ResponsiveDialogContent as ce, ResponsiveDialogDescription as le, ResponsiveDialogFooter as ue, ResponsiveDialogHeader as de, ResponsiveDialogTitle as fe, Select as d, SelectContent as f, SelectItem as p, SelectTrigger as m, SelectValue as h, Spinner as pe, Textarea as me } from "@burdenoff/fe-libs/ui";
9
+ import { useI18n as he } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
10
+ import { Fragment as ge, jsx as g, jsxs as _ } from "react/jsx-runtime";
11
11
  //#region src/bigconsole/components/widgets/ActionConfigDialog.tsx
12
- var Se = [
12
+ var _e = [
13
13
  "POST",
14
14
  "GET",
15
15
  "PUT",
16
16
  "PATCH",
17
17
  "DELETE"
18
- ], Ce = [
18
+ ], ve = [
19
19
  {
20
20
  value: "PRIMARY",
21
21
  color: "var(--color-action-primary-bg)"
@@ -44,7 +44,7 @@ var Se = [
44
44
  value: "LINK",
45
45
  color: "transparent"
46
46
  }
47
- ], we = [
47
+ ], ye = [
48
48
  "",
49
49
  "refresh",
50
50
  "download",
@@ -59,142 +59,142 @@ var Se = [
59
59
  "settings",
60
60
  "filter",
61
61
  "search"
62
- ], p = {
62
+ ], v = {
63
63
  display: "block",
64
64
  fontSize: "var(--font-size-body-sm)",
65
65
  fontWeight: "var(--font-weight-medium)",
66
66
  color: "var(--color-text-primary)",
67
67
  marginBottom: "var(--space-controlGap)"
68
- }, Te = {
68
+ }, be = {
69
69
  margin: "0 0 var(--space-controlGap) 0",
70
70
  fontSize: "var(--font-size-body-sm)",
71
71
  fontWeight: "var(--font-weight-bold)",
72
72
  letterSpacing: "0.06em",
73
73
  textTransform: "uppercase",
74
74
  color: "var(--color-text-secondary)"
75
- }, m = {
75
+ }, y = {
76
76
  fontSize: "var(--font-size-body-sm)",
77
77
  color: "var(--color-text-muted)",
78
78
  marginTop: "var(--space-controlGap)"
79
- }, h = {
79
+ }, b = {
80
80
  zIndex: 9999,
81
81
  backgroundColor: "var(--color-overlay-popoverBg, var(--color-bg-surface))",
82
82
  border: "1px solid var(--color-border-subtle)",
83
83
  boxShadow: "var(--shadow-elevation-3)",
84
84
  borderRadius: "var(--radius-button)"
85
- }, g = r(function({ isOpen: r, action: g, initialWebhook: _, isLoading: v = !1, saveError: Ee, onClose: De, onSave: Oe }) {
86
- let { t: y } = be(), b = !!g, x = a(null), ke = a(null), Ae = a(null), S = re(), C = a(""), w = a(!1), [T, E] = o(""), [D, O] = o(""), [k, A] = o(!1), [j, M] = o("PRIMARY"), [N, je] = o(""), [P, F] = o("WEBHOOK"), [I, L] = o(""), [R, z] = o("POST"), [B, V] = o(!1), [H, U] = o(!1), [W, G] = o(!1), [K, Me] = o(!1), [Ne, q] = o(() => y("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action")), [Pe, J] = o(() => y("bigconsole.widget.actions.confirm.defaultMessage", "Are you sure you want to proceed?")), [Y, X] = o(() => y("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), [Fe, Z] = o(() => y("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel")), [Q, $] = o(null), Ie = ie(() => {
85
+ }, x = r(function({ isOpen: r, action: x, initialWebhook: S, isLoading: C = !1, saveError: xe, onClose: Se, onSave: Ce }) {
86
+ let { t: w } = he(), T = !!x, E = s(null), we = s(null), Te = s(null), D = o(), O = s(""), k = s(!1), [A, j] = c(""), [M, N] = c(""), [P, F] = c(!1), [I, Ee] = c("PRIMARY"), [L, R] = c(""), [z, B] = c("WEBHOOK"), [V, H] = c(""), [U, W] = c("POST"), [De, Oe] = c(!1), [ke, Ae] = c(!1), [je, Me] = c(!1), [G, Ne] = c(!1), [Pe, K] = c(() => w("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action")), [q, J] = c(() => w("bigconsole.widget.actions.confirm.defaultMessage", "Are you sure you want to proceed?")), [Fe, Y] = c(() => w("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), [Ie, X] = c(() => w("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel")), [Z, Q] = c(null), Le = ne(() => {
87
87
  let e = {
88
- PRIMARY: y("bigconsole.widget.actions.style.primary", "Primary"),
89
- SECONDARY: y("bigconsole.widget.actions.style.secondary", "Secondary"),
90
- SUCCESS: y("bigconsole.widget.actions.style.success", "Success"),
91
- WARNING: y("bigconsole.widget.actions.style.warning", "Warning"),
92
- DANGER: y("bigconsole.widget.actions.style.danger", "Danger"),
93
- GHOST: y("bigconsole.widget.actions.style.ghost", "Ghost"),
94
- LINK: y("bigconsole.widget.actions.style.link", "Link")
88
+ PRIMARY: w("bigconsole.widget.actions.style.primary", "Primary"),
89
+ SECONDARY: w("bigconsole.widget.actions.style.secondary", "Secondary"),
90
+ SUCCESS: w("bigconsole.widget.actions.style.success", "Success"),
91
+ WARNING: w("bigconsole.widget.actions.style.warning", "Warning"),
92
+ DANGER: w("bigconsole.widget.actions.style.danger", "Danger"),
93
+ GHOST: w("bigconsole.widget.actions.style.ghost", "Ghost"),
94
+ LINK: w("bigconsole.widget.actions.style.link", "Link")
95
95
  };
96
- return Ce.map((t) => ({
96
+ return ve.map((t) => ({
97
97
  value: t.value,
98
98
  label: e[t.value],
99
99
  color: t.color
100
100
  }));
101
- }, [y]), Le = ie(() => {
101
+ }, [w]), Re = ne(() => {
102
102
  let e = {
103
- "": y("bigconsole.widget.actions.icon.none", "No icon"),
104
- refresh: y("bigconsole.widget.actions.icon.refresh", "Refresh"),
105
- download: y("bigconsole.widget.actions.icon.download", "Download"),
106
- upload: y("bigconsole.widget.actions.icon.upload", "Upload"),
107
- trash: y("bigconsole.widget.actions.icon.trash", "Trash"),
108
- edit: y("bigconsole.widget.actions.icon.edit", "Edit"),
109
- plus: y("bigconsole.widget.actions.icon.plus", "Plus"),
110
- check: y("bigconsole.widget.actions.icon.check", "Check"),
111
- eye: y("bigconsole.widget.actions.icon.eye", "View"),
112
- copy: y("bigconsole.widget.actions.icon.copy", "Copy"),
113
- share: y("bigconsole.widget.actions.icon.share", "Share"),
114
- settings: y("bigconsole.widget.actions.icon.settings", "Settings"),
115
- filter: y("bigconsole.widget.actions.icon.filter", "Filter"),
116
- search: y("bigconsole.widget.actions.icon.search", "Search")
103
+ "": w("bigconsole.widget.actions.icon.none", "No icon"),
104
+ refresh: w("bigconsole.widget.actions.icon.refresh", "Refresh"),
105
+ download: w("bigconsole.widget.actions.icon.download", "Download"),
106
+ upload: w("bigconsole.widget.actions.icon.upload", "Upload"),
107
+ trash: w("bigconsole.widget.actions.icon.trash", "Trash"),
108
+ edit: w("bigconsole.widget.actions.icon.edit", "Edit"),
109
+ plus: w("bigconsole.widget.actions.icon.plus", "Plus"),
110
+ check: w("bigconsole.widget.actions.icon.check", "Check"),
111
+ eye: w("bigconsole.widget.actions.icon.eye", "View"),
112
+ copy: w("bigconsole.widget.actions.icon.copy", "Copy"),
113
+ share: w("bigconsole.widget.actions.icon.share", "Share"),
114
+ settings: w("bigconsole.widget.actions.icon.settings", "Settings"),
115
+ filter: w("bigconsole.widget.actions.icon.filter", "Filter"),
116
+ search: w("bigconsole.widget.actions.icon.search", "Search")
117
117
  };
118
- return we.map((t) => ({
118
+ return ye.map((t) => ({
119
119
  value: t,
120
120
  label: e[t]
121
121
  }));
122
- }, [y]);
123
- ne(() => {
122
+ }, [w]);
123
+ a(() => {
124
124
  if (!r) return;
125
- w.current = !1, C.current = `button_${crypto.randomUUID().replace(/-/g, "").slice(0, 12)}`, L(""), z("POST"), g ? (E(g.label), O(g.name), A(!1), M(g.style), je(g.icon || ""), V(g.disabled), U(g.hidden), F("EMIT"), Me(!!g.confirmation), g.confirmation ? (q(g.confirmation.title), J(g.confirmation.message), X(g.confirmation.confirmLabel || y("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), Z(g.confirmation.cancelLabel || y("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel"))) : (q(y("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action")), J(y("bigconsole.widget.actions.confirm.defaultMessage", "Are you sure you want to proceed?")), X(y("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), Z(y("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel")))) : (E(""), O(""), A(!1), M("PRIMARY"), je(""), F("WEBHOOK"), V(!1), U(!1), Me(!1), q(y("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action")), J(y("bigconsole.widget.actions.confirm.defaultMessage", "Are you sure you want to proceed?")), X(y("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), Z(y("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel"))), G(!1), $(null);
126
- let e = requestAnimationFrame(() => requestAnimationFrame(() => x.current?.focus()));
125
+ k.current = !1, O.current = `button_${crypto.randomUUID().replace(/-/g, "").slice(0, 12)}`, H(""), W("POST"), x ? (j(x.label), N(x.name), F(!1), Ee(x.style), R(x.icon || ""), Oe(x.disabled), Ae(x.hidden), B("EMIT"), Ne(!!x.confirmation), x.confirmation ? (K(x.confirmation.title), J(x.confirmation.message), Y(x.confirmation.confirmLabel || w("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), X(x.confirmation.cancelLabel || w("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel"))) : (K(w("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action")), J(w("bigconsole.widget.actions.confirm.defaultMessage", "Are you sure you want to proceed?")), Y(w("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), X(w("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel")))) : (j(""), N(""), F(!1), Ee("PRIMARY"), R(""), B("WEBHOOK"), Oe(!1), Ae(!1), Ne(!1), K(w("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action")), J(w("bigconsole.widget.actions.confirm.defaultMessage", "Are you sure you want to proceed?")), Y(w("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), X(w("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel"))), Me(!1), Q(null);
126
+ let e = requestAnimationFrame(() => requestAnimationFrame(() => E.current?.focus()));
127
127
  return () => cancelAnimationFrame(e);
128
128
  }, [
129
129
  r,
130
- g,
131
- y
132
- ]), ne(() => {
133
- !r || !_ || w.current || (F("WEBHOOK"), L(_.url), z(_.method));
134
- }, [r, _]);
135
- let Re = i((e) => {
136
- E(e), !k && !b && O(n(e) || C.current), Q && $(null);
130
+ x,
131
+ w
132
+ ]), a(() => {
133
+ !r || !S || k.current || (B("WEBHOOK"), H(S.url), W(S.method));
134
+ }, [r, S]);
135
+ let ze = i((e) => {
136
+ j(e), !P && !T && N(n(e) || O.current), Z && Q(null);
137
137
  }, [
138
- k,
139
- Q,
140
- b
141
- ]), ze = i((e) => {
138
+ P,
139
+ Z,
140
+ T
141
+ ]), Be = i((e) => {
142
142
  e.preventDefault();
143
- let t = {
144
- label: T,
145
- name: b && g ? g.name : n(k ? D : T) || n(T) || C.current,
146
- outcome: P,
147
- url: I,
148
- method: R,
149
- style: j,
150
- icon: N,
151
- confirmation: (K ? {
152
- title: Ne.trim() || y("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action"),
153
- message: Pe.trim() || y("bigconsole.widget.actions.confirm.fallbackMessage", "Are you sure?"),
154
- confirmLabel: Y.trim() || y("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm"),
155
- cancelLabel: Fe.trim() || y("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel")
156
- } : void 0) ?? null,
157
- disabled: B,
158
- hidden: H
159
- }, r = te(t);
160
- if ($(r), r) {
161
- r.field === "name" && G(!0);
162
- let e = r.field === "url" ? ke : r.field === "label" ? x : Ae;
143
+ let t = T && x ? x.name : n(P ? M : A) || n(A) || O.current, r = G ? {
144
+ title: Pe.trim() || w("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action"),
145
+ message: q.trim() || w("bigconsole.widget.actions.confirm.fallbackMessage", "Are you sure?"),
146
+ confirmLabel: Fe.trim() || w("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm"),
147
+ cancelLabel: Ie.trim() || w("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel")
148
+ } : void 0, i = {
149
+ label: A,
150
+ name: t,
151
+ outcome: z,
152
+ url: V,
153
+ method: U,
154
+ style: I,
155
+ icon: L,
156
+ confirmation: r ?? null,
157
+ disabled: De,
158
+ hidden: ke
159
+ }, a = te(i);
160
+ if (Q(a), a) {
161
+ a.field === "name" && Me(!0);
162
+ let e = a.field === "url" ? we : a.field === "label" ? E : Te;
163
163
  requestAnimationFrame(() => e.current?.focus());
164
164
  return;
165
165
  }
166
- let i = ee(t, g);
167
- Oe(i.data, i.webhook);
166
+ let o = ee(i, x);
167
+ Ce(o.data, o.webhook);
168
168
  }, [
169
- T,
170
- D,
171
- k,
169
+ A,
170
+ M,
172
171
  P,
172
+ z,
173
+ V,
174
+ U,
173
175
  I,
174
- R,
175
- j,
176
- N,
177
- B,
178
- H,
179
- K,
180
- Ne,
176
+ L,
177
+ De,
178
+ ke,
179
+ G,
181
180
  Pe,
182
- Y,
181
+ q,
183
182
  Fe,
184
- b,
185
- g,
186
- Oe,
187
- y
188
- ]), Be = (e) => Ie.find((t) => t.value === e)?.color || "var(--color-action-primary-bg)", Ve = Q?.field === "url" ? Q.reason === "required" ? y("bigconsole.widget.actions.validation.urlRequired", "Enter the URL to call when the button is clicked") : y("bigconsole.widget.actions.validation.urlScheme", "Enter a complete URL starting with http:// or https://") : Q?.field === "label" ? y("bigconsole.widget.actions.validation.labelRequired", "Button label is required") : Q ? y("bigconsole.widget.actions.validation.labelLettersOrNumbers", "Enter an event name using letters or numbers") : null, He = (e) => Q?.field === e ? /* @__PURE__ */ d("p", {
189
- id: `${S}-${e}-error`,
183
+ Ie,
184
+ T,
185
+ x,
186
+ Ce,
187
+ w
188
+ ]), Ve = (e) => Le.find((t) => t.value === e)?.color || "var(--color-action-primary-bg)", He = Z?.field === "url" ? Z.reason === "required" ? w("bigconsole.widget.actions.validation.urlRequired", "Enter the URL to call when the button is clicked") : w("bigconsole.widget.actions.validation.urlScheme", "Enter a complete URL starting with http:// or https://") : Z?.field === "label" ? w("bigconsole.widget.actions.validation.labelRequired", "Button label is required") : Z ? w("bigconsole.widget.actions.validation.labelLettersOrNumbers", "Enter an event name using letters or numbers") : null, $ = (e) => Z?.field === e ? /* @__PURE__ */ g("p", {
189
+ id: `${D}-${e}-error`,
190
190
  role: "alert",
191
191
  className: "mt-1 text-sm text-[var(--color-status-error-text)]",
192
- children: Ve
192
+ children: He
193
193
  }) : null;
194
- return /* @__PURE__ */ d(le, {
194
+ return /* @__PURE__ */ g(se, {
195
195
  open: r,
196
- onOpenChange: (e) => !e && !v && De(),
197
- children: /* @__PURE__ */ f(ue, {
196
+ onOpenChange: (e) => !e && !C && Se(),
197
+ children: /* @__PURE__ */ _(ce, {
198
198
  "data-testid": "action-config-dialog",
199
199
  showHandle: !1,
200
200
  style: {
@@ -208,346 +208,346 @@ var Se = [
208
208
  flexDirection: "column"
209
209
  },
210
210
  onEscapeKeyDown: (e) => {
211
- v && e.preventDefault();
211
+ C && e.preventDefault();
212
212
  },
213
- children: [/* @__PURE__ */ f(pe, {
213
+ children: [/* @__PURE__ */ _(de, {
214
214
  className: "p-4 pr-12 text-left",
215
- children: [/* @__PURE__ */ d(me, { children: b ? y("bigconsole.widget.actions.header.editTitle", "Edit Button") : y("bigconsole.widget.actions.header.addTitle", "Add Button") }), /* @__PURE__ */ d(de, { children: b ? y("bigconsole.widget.actions.header.editDescription", "Update the button and what it does") : y("bigconsole.widget.actions.header.addDescription", "Add a button that sends this widget’s data to an API.") })]
216
- }), /* @__PURE__ */ f("form", {
217
- onSubmit: ze,
215
+ children: [/* @__PURE__ */ g(fe, { children: T ? w("bigconsole.widget.actions.header.editTitle", "Edit Button") : w("bigconsole.widget.actions.header.addTitle", "Add Button") }), /* @__PURE__ */ g(le, { children: T ? w("bigconsole.widget.actions.header.editDescription", "Update the button and what it does") : w("bigconsole.widget.actions.header.addDescription", "Add a button that sends this widget’s data to an API.") })]
216
+ }), /* @__PURE__ */ _("form", {
217
+ onSubmit: Be,
218
218
  noValidate: !0,
219
219
  className: "flex min-h-0 flex-col",
220
220
  style: { maxHeight: "calc(100dvh - 8rem)" },
221
- children: [/* @__PURE__ */ f("div", {
221
+ children: [/* @__PURE__ */ _("div", {
222
222
  className: "min-h-0 overflow-y-auto px-4 pb-4",
223
223
  children: [
224
- Ee && /* @__PURE__ */ d(e, {
224
+ xe && /* @__PURE__ */ g(e, {
225
225
  tone: "danger",
226
226
  padding: "compact",
227
227
  headingLevel: 3,
228
- title: y("bigconsole.widget.actions.validation.saveFailed", "This button could not be saved"),
228
+ title: w("bigconsole.widget.actions.validation.saveFailed", "This button could not be saved"),
229
229
  className: "mb-4",
230
- children: /* @__PURE__ */ d("p", {
230
+ children: /* @__PURE__ */ g("p", {
231
231
  role: "alert",
232
232
  className: "break-words text-sm",
233
- children: Ee
233
+ children: xe
234
234
  })
235
235
  }),
236
- /* @__PURE__ */ f("div", {
236
+ /* @__PURE__ */ _("div", {
237
237
  className: "mb-4",
238
238
  children: [
239
- /* @__PURE__ */ f("label", {
240
- htmlFor: `${S}-label`,
241
- style: p,
242
- children: [y("bigconsole.widget.actions.field.buttonLabel", "Button label"), " *"]
239
+ /* @__PURE__ */ _("label", {
240
+ htmlFor: `${D}-label`,
241
+ style: v,
242
+ children: [w("bigconsole.widget.actions.field.buttonLabel", "Button label"), " *"]
243
243
  }),
244
- /* @__PURE__ */ d(c, {
245
- id: `${S}-label`,
246
- ref: x,
247
- value: T,
248
- onChange: (e) => Re(e.target.value),
249
- placeholder: y("bigconsole.widget.actions.field.buttonLabelPlaceholder", "e.g., Refresh Data, Export CSV"),
250
- disabled: v,
244
+ /* @__PURE__ */ g(u, {
245
+ id: `${D}-label`,
246
+ ref: E,
247
+ value: A,
248
+ onChange: (e) => ze(e.target.value),
249
+ placeholder: w("bigconsole.widget.actions.field.buttonLabelPlaceholder", "e.g., Refresh Data, Export CSV"),
250
+ disabled: C,
251
251
  "aria-required": !0,
252
- "aria-invalid": Q?.field === "label",
253
- "aria-describedby": Q?.field === "label" ? `${S}-label-error` : void 0
252
+ "aria-invalid": Z?.field === "label",
253
+ "aria-describedby": Z?.field === "label" ? `${D}-label-error` : void 0
254
254
  }),
255
- He("label")
255
+ $("label")
256
256
  ]
257
257
  }),
258
- /* @__PURE__ */ f("div", {
258
+ /* @__PURE__ */ _("div", {
259
259
  className: "mb-4",
260
- children: [/* @__PURE__ */ d("p", {
261
- style: p,
262
- children: y("bigconsole.widget.actions.field.whenClicked", "When clicked")
263
- }), /* @__PURE__ */ d("p", {
260
+ children: [/* @__PURE__ */ g("p", {
261
+ style: v,
262
+ children: w("bigconsole.widget.actions.field.whenClicked", "When clicked")
263
+ }), /* @__PURE__ */ g("p", {
264
264
  className: "text-sm text-text-secondary",
265
265
  "data-testid": "action-outcome-summary",
266
- children: P === "WEBHOOK" ? y("bigconsole.widget.actions.outcome.webhook.label", "Send data to an API") : y("bigconsole.widget.actions.outcome.emit.label", "Emit a custom event")
266
+ children: z === "WEBHOOK" ? w("bigconsole.widget.actions.outcome.webhook.label", "Send data to an API") : w("bigconsole.widget.actions.outcome.emit.label", "Emit a custom event")
267
267
  })]
268
268
  }),
269
- P === "WEBHOOK" && /* @__PURE__ */ f("div", {
269
+ z === "WEBHOOK" && /* @__PURE__ */ _("div", {
270
270
  className: "mb-4",
271
271
  children: [
272
- /* @__PURE__ */ f("label", {
273
- htmlFor: `${S}-url`,
274
- style: p,
275
- children: [y("bigconsole.widget.actions.webhook.urlLabel", "Destination URL"), " *"]
272
+ /* @__PURE__ */ _("label", {
273
+ htmlFor: `${D}-url`,
274
+ style: v,
275
+ children: [w("bigconsole.widget.actions.webhook.urlLabel", "Destination URL"), " *"]
276
276
  }),
277
- /* @__PURE__ */ d(c, {
278
- id: `${S}-url`,
279
- ref: ke,
277
+ /* @__PURE__ */ g(u, {
278
+ id: `${D}-url`,
279
+ ref: we,
280
280
  type: "url",
281
- value: I,
281
+ value: V,
282
282
  onChange: (e) => {
283
- w.current = !0, L(e.target.value), Q?.field === "url" && $(null);
283
+ k.current = !0, H(e.target.value), Z?.field === "url" && Q(null);
284
284
  },
285
- placeholder: y("bigconsole.widget.actions.webhook.urlPlaceholder", "https://your-service.com/hook"),
286
- disabled: v,
285
+ placeholder: w("bigconsole.widget.actions.webhook.urlPlaceholder", "https://your-service.com/hook"),
286
+ disabled: C,
287
287
  "aria-required": !0,
288
- "aria-invalid": Q?.field === "url",
289
- "aria-describedby": Q?.field === "url" ? `${S}-url-error` : `${S}-url-hint`
288
+ "aria-invalid": Z?.field === "url",
289
+ "aria-describedby": Z?.field === "url" ? `${D}-url-error` : `${D}-url-hint`
290
290
  }),
291
- He("url"),
292
- /* @__PURE__ */ d("p", {
293
- id: `${S}-url-hint`,
294
- style: m,
295
- children: y("bigconsole.widget.actions.webhook.payloadHint", "The widget's current data is sent as the request payload.")
291
+ $("url"),
292
+ /* @__PURE__ */ g("p", {
293
+ id: `${D}-url-hint`,
294
+ style: y,
295
+ children: w("bigconsole.widget.actions.webhook.payloadHint", "The widget's current data is sent as the request payload.")
296
296
  })
297
297
  ]
298
298
  }),
299
- /* @__PURE__ */ f("button", {
299
+ /* @__PURE__ */ _("button", {
300
300
  type: "button",
301
- onClick: () => G((e) => !e),
302
- "aria-expanded": W,
303
- "aria-controls": `${S}-options`,
301
+ onClick: () => Me((e) => !e),
302
+ "aria-expanded": je,
303
+ "aria-controls": `${D}-options`,
304
304
  className: "flex min-h-10 items-center gap-2 text-sm font-medium",
305
- disabled: v,
306
- children: [d(W ? oe : se, { className: "size-4" }), y("bigconsole.widget.actions.advanced.toggle", "More options")]
305
+ disabled: C,
306
+ children: [g(je ? ie : ae, { className: "size-4" }), w("bigconsole.widget.actions.advanced.toggle", "More options")]
307
307
  }),
308
- /* @__PURE__ */ f("div", {
309
- id: `${S}-options`,
310
- hidden: !W,
308
+ /* @__PURE__ */ _("div", {
309
+ id: `${D}-options`,
310
+ hidden: !je,
311
311
  className: "space-y-4 border-t border-border-subtle pt-4",
312
312
  children: [
313
- /* @__PURE__ */ f("div", { children: [
314
- /* @__PURE__ */ d("h3", {
315
- style: Te,
316
- children: y("bigconsole.widget.actions.options.appearance", "Appearance")
313
+ /* @__PURE__ */ _("div", { children: [
314
+ /* @__PURE__ */ g("h3", {
315
+ style: be,
316
+ children: w("bigconsole.widget.actions.options.appearance", "Appearance")
317
317
  }),
318
- /* @__PURE__ */ f("div", {
318
+ /* @__PURE__ */ _("div", {
319
319
  className: "grid grid-cols-2 gap-3",
320
- children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
321
- id: `${S}-style-label`,
322
- htmlFor: `${S}-style`,
323
- style: p,
324
- children: y("bigconsole.widget.actions.field.style", "Style")
325
- }), /* @__PURE__ */ f(l, {
326
- value: j,
320
+ children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
321
+ id: `${D}-style-label`,
322
+ htmlFor: `${D}-style`,
323
+ style: v,
324
+ children: w("bigconsole.widget.actions.field.style", "Style")
325
+ }), /* @__PURE__ */ _(d, {
326
+ value: I,
327
327
  onValueChange: (e) => {
328
- let t = Ie.find((t) => t.value === e);
329
- t && M(t.value);
328
+ let t = Le.find((t) => t.value === e);
329
+ t && Ee(t.value);
330
330
  },
331
- disabled: v,
332
- children: [/* @__PURE__ */ d(ge, {
333
- id: `${S}-style`,
334
- "aria-labelledby": `${S}-style-label`,
335
- children: /* @__PURE__ */ d(_e, {})
336
- }), /* @__PURE__ */ d(u, {
337
- style: h,
338
- children: Ie.map((e) => /* @__PURE__ */ d(he, {
331
+ disabled: C,
332
+ children: [/* @__PURE__ */ g(m, {
333
+ id: `${D}-style`,
334
+ "aria-labelledby": `${D}-style-label`,
335
+ children: /* @__PURE__ */ g(h, {})
336
+ }), /* @__PURE__ */ g(f, {
337
+ style: b,
338
+ children: Le.map((e) => /* @__PURE__ */ g(p, {
339
339
  value: e.value,
340
340
  children: e.label
341
341
  }, e.value))
342
342
  })]
343
- })] }), /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
344
- id: `${S}-icon-label`,
345
- htmlFor: `${S}-icon`,
346
- style: p,
347
- children: y("bigconsole.widget.actions.field.icon", "Icon")
348
- }), /* @__PURE__ */ f(l, {
349
- value: N || "none",
350
- onValueChange: (e) => je(e === "none" ? "" : e),
351
- disabled: v,
352
- children: [/* @__PURE__ */ d(ge, {
353
- id: `${S}-icon`,
354
- "aria-labelledby": `${S}-icon-label`,
355
- children: /* @__PURE__ */ d(_e, {})
356
- }), /* @__PURE__ */ d(u, {
343
+ })] }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
344
+ id: `${D}-icon-label`,
345
+ htmlFor: `${D}-icon`,
346
+ style: v,
347
+ children: w("bigconsole.widget.actions.field.icon", "Icon")
348
+ }), /* @__PURE__ */ _(d, {
349
+ value: L || "none",
350
+ onValueChange: (e) => R(e === "none" ? "" : e),
351
+ disabled: C,
352
+ children: [/* @__PURE__ */ g(m, {
353
+ id: `${D}-icon`,
354
+ "aria-labelledby": `${D}-icon-label`,
355
+ children: /* @__PURE__ */ g(h, {})
356
+ }), /* @__PURE__ */ g(f, {
357
357
  style: {
358
- ...h,
358
+ ...b,
359
359
  maxHeight: "200px"
360
360
  },
361
- children: Le.map((e) => /* @__PURE__ */ d(he, {
361
+ children: Re.map((e) => /* @__PURE__ */ g(p, {
362
362
  value: e.value || "none",
363
363
  children: e.label
364
364
  }, e.value || "none"))
365
365
  })]
366
366
  })] })]
367
367
  }),
368
- /* @__PURE__ */ f("div", {
368
+ /* @__PURE__ */ _("div", {
369
369
  className: "mt-3 flex items-center gap-2 rounded-button bg-bg-sunken p-2",
370
- children: [/* @__PURE__ */ d("span", {
370
+ children: [/* @__PURE__ */ g("span", {
371
371
  className: "text-sm text-text-muted",
372
- children: y("bigconsole.widget.actions.preview.label", "Preview:")
373
- }), /* @__PURE__ */ d("span", {
372
+ children: w("bigconsole.widget.actions.preview.label", "Preview:")
373
+ }), /* @__PURE__ */ g("span", {
374
374
  className: "rounded-button px-3 py-1 text-sm",
375
375
  style: {
376
- backgroundColor: Be(j),
376
+ backgroundColor: Ve(I),
377
377
  color: "var(--color-action-primary-text)"
378
378
  },
379
- children: T || y("bigconsole.widget.actions.preview.buttonFallback", "Button")
379
+ children: A || w("bigconsole.widget.actions.preview.buttonFallback", "Button")
380
380
  })]
381
381
  })
382
382
  ] }),
383
- P === "WEBHOOK" && /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
384
- id: `${S}-method-label`,
385
- htmlFor: `${S}-method`,
386
- style: p,
387
- children: y("bigconsole.widget.actions.webhook.methodLabel", "Request method")
388
- }), /* @__PURE__ */ f(l, {
389
- value: R,
383
+ z === "WEBHOOK" && /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
384
+ id: `${D}-method-label`,
385
+ htmlFor: `${D}-method`,
386
+ style: v,
387
+ children: w("bigconsole.widget.actions.webhook.methodLabel", "Request method")
388
+ }), /* @__PURE__ */ _(d, {
389
+ value: U,
390
390
  onValueChange: (e) => {
391
- let t = Se.find((t) => t === e);
392
- t && (w.current = !0, z(t));
391
+ let t = _e.find((t) => t === e);
392
+ t && (k.current = !0, W(t));
393
393
  },
394
- disabled: v,
395
- children: [/* @__PURE__ */ d(ge, {
396
- id: `${S}-method`,
397
- "aria-labelledby": `${S}-method-label`,
398
- children: /* @__PURE__ */ d(_e, {})
399
- }), /* @__PURE__ */ d(u, {
400
- style: h,
401
- children: Se.map((e) => /* @__PURE__ */ d(he, {
394
+ disabled: C,
395
+ children: [/* @__PURE__ */ g(m, {
396
+ id: `${D}-method`,
397
+ "aria-labelledby": `${D}-method-label`,
398
+ children: /* @__PURE__ */ g(h, {})
399
+ }), /* @__PURE__ */ g(f, {
400
+ style: b,
401
+ children: _e.map((e) => /* @__PURE__ */ g(p, {
402
402
  value: e,
403
403
  children: e
404
404
  }, e))
405
405
  })]
406
406
  })] }),
407
- /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ f("label", {
407
+ /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ _("label", {
408
408
  className: "flex items-center gap-2 text-sm",
409
- children: [/* @__PURE__ */ d(s, {
410
- checked: K,
411
- onCheckedChange: (e) => Me(e === !0),
412
- disabled: v
413
- }), y("bigconsole.widget.actions.confirm.toggleLabel", "Ask for confirmation first")]
414
- }), K && /* @__PURE__ */ f("div", {
409
+ children: [/* @__PURE__ */ g(l, {
410
+ checked: G,
411
+ onCheckedChange: (e) => Ne(e === !0),
412
+ disabled: C
413
+ }), w("bigconsole.widget.actions.confirm.toggleLabel", "Ask for confirmation first")]
414
+ }), G && /* @__PURE__ */ _("div", {
415
415
  className: "mt-3 space-y-3",
416
416
  children: [
417
- /* @__PURE__ */ d("label", {
418
- htmlFor: `${S}-message`,
419
- style: p,
420
- children: y("bigconsole.widget.actions.confirm.messageLabel", "Message")
417
+ /* @__PURE__ */ g("label", {
418
+ htmlFor: `${D}-message`,
419
+ style: v,
420
+ children: w("bigconsole.widget.actions.confirm.messageLabel", "Message")
421
421
  }),
422
- /* @__PURE__ */ d(ye, {
423
- id: `${S}-message`,
424
- value: Pe,
422
+ /* @__PURE__ */ g(me, {
423
+ id: `${D}-message`,
424
+ value: q,
425
425
  onChange: (e) => J(e.target.value),
426
426
  rows: 2,
427
- disabled: v
427
+ disabled: C
428
428
  }),
429
- /* @__PURE__ */ f("details", { children: [/* @__PURE__ */ d("summary", {
429
+ /* @__PURE__ */ _("details", { children: [/* @__PURE__ */ g("summary", {
430
430
  className: "cursor-pointer text-sm text-text-secondary",
431
- children: y("bigconsole.widget.actions.confirm.customize", "Customize confirmation labels")
432
- }), /* @__PURE__ */ f("div", {
431
+ children: w("bigconsole.widget.actions.confirm.customize", "Customize confirmation labels")
432
+ }), /* @__PURE__ */ _("div", {
433
433
  className: "mt-3 space-y-3",
434
434
  children: [
435
- /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
436
- htmlFor: `${S}-confirm-title`,
437
- style: p,
438
- children: y("bigconsole.widget.actions.confirm.dialogTitleLabel", "Dialog Title")
439
- }), /* @__PURE__ */ d(c, {
440
- id: `${S}-confirm-title`,
441
- value: Ne,
442
- onChange: (e) => q(e.target.value),
443
- disabled: v
435
+ /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
436
+ htmlFor: `${D}-confirm-title`,
437
+ style: v,
438
+ children: w("bigconsole.widget.actions.confirm.dialogTitleLabel", "Dialog Title")
439
+ }), /* @__PURE__ */ g(u, {
440
+ id: `${D}-confirm-title`,
441
+ value: Pe,
442
+ onChange: (e) => K(e.target.value),
443
+ disabled: C
444
444
  })] }),
445
- /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
446
- htmlFor: `${S}-confirm-label`,
447
- style: p,
448
- children: y("bigconsole.widget.actions.confirm.confirmButtonLabel", "Confirm Button")
449
- }), /* @__PURE__ */ d(c, {
450
- id: `${S}-confirm-label`,
451
- value: Y,
452
- onChange: (e) => X(e.target.value),
453
- disabled: v
454
- })] }),
455
- /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
456
- htmlFor: `${S}-cancel-label`,
457
- style: p,
458
- children: y("bigconsole.widget.actions.confirm.cancelButtonLabel", "Cancel Button")
459
- }), /* @__PURE__ */ d(c, {
460
- id: `${S}-cancel-label`,
445
+ /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
446
+ htmlFor: `${D}-confirm-label`,
447
+ style: v,
448
+ children: w("bigconsole.widget.actions.confirm.confirmButtonLabel", "Confirm Button")
449
+ }), /* @__PURE__ */ g(u, {
450
+ id: `${D}-confirm-label`,
461
451
  value: Fe,
462
- onChange: (e) => Z(e.target.value),
463
- disabled: v
452
+ onChange: (e) => Y(e.target.value),
453
+ disabled: C
454
+ })] }),
455
+ /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
456
+ htmlFor: `${D}-cancel-label`,
457
+ style: v,
458
+ children: w("bigconsole.widget.actions.confirm.cancelButtonLabel", "Cancel Button")
459
+ }), /* @__PURE__ */ g(u, {
460
+ id: `${D}-cancel-label`,
461
+ value: Ie,
462
+ onChange: (e) => X(e.target.value),
463
+ disabled: C
464
464
  })] })
465
465
  ]
466
466
  })] })
467
467
  ]
468
468
  })] }),
469
- /* @__PURE__ */ f("div", { children: [
470
- /* @__PURE__ */ f("label", {
469
+ /* @__PURE__ */ _("div", { children: [
470
+ /* @__PURE__ */ _("label", {
471
471
  className: "flex items-center gap-2 text-sm",
472
- children: [/* @__PURE__ */ d(s, {
473
- checked: P === "EMIT",
472
+ children: [/* @__PURE__ */ g(l, {
473
+ checked: z === "EMIT",
474
474
  onCheckedChange: (e) => {
475
- w.current = !0, F(e === !0 ? "EMIT" : "WEBHOOK"), $(null);
475
+ k.current = !0, B(e === !0 ? "EMIT" : "WEBHOOK"), Q(null);
476
476
  },
477
- disabled: v
478
- }), y("bigconsole.widget.actions.options.customEvent", "Use a custom event instead of calling an API")]
477
+ disabled: C
478
+ }), w("bigconsole.widget.actions.options.customEvent", "Use a custom event instead of calling an API")]
479
479
  }),
480
- /* @__PURE__ */ d("p", {
481
- style: m,
482
- children: y("bigconsole.widget.actions.outcome.emit.hint", "For integrations configured in Webhooks / Events.")
480
+ /* @__PURE__ */ g("p", {
481
+ style: y,
482
+ children: w("bigconsole.widget.actions.outcome.emit.hint", "For integrations configured in Webhooks / Events.")
483
483
  }),
484
- /* @__PURE__ */ f("div", {
484
+ /* @__PURE__ */ _("div", {
485
485
  className: "mt-3",
486
486
  children: [
487
- /* @__PURE__ */ d("label", {
488
- htmlFor: `${S}-name`,
489
- style: p,
490
- children: y("bigconsole.widget.actions.advanced.eventNameLabel", "Event name (id)")
487
+ /* @__PURE__ */ g("label", {
488
+ htmlFor: `${D}-name`,
489
+ style: v,
490
+ children: w("bigconsole.widget.actions.advanced.eventNameLabel", "Event name (id)")
491
491
  }),
492
- /* @__PURE__ */ d(c, {
493
- id: `${S}-name`,
494
- ref: Ae,
495
- value: b && g ? g.name : D,
492
+ /* @__PURE__ */ g(u, {
493
+ id: `${D}-name`,
494
+ ref: Te,
495
+ value: T && x ? x.name : M,
496
496
  onChange: (e) => {
497
- O(e.target.value), A(!0), Q?.field === "name" && $(null);
497
+ N(e.target.value), F(!0), Z?.field === "name" && Q(null);
498
498
  },
499
- disabled: v || b,
500
- "aria-invalid": Q?.field === "name",
501
- "aria-describedby": Q?.field === "name" ? `${S}-name-error` : void 0
499
+ disabled: C || T,
500
+ "aria-invalid": Z?.field === "name",
501
+ "aria-describedby": Z?.field === "name" ? `${D}-name-error` : void 0
502
502
  }),
503
- He("name"),
504
- /* @__PURE__ */ d("p", {
505
- style: m,
506
- children: /* @__PURE__ */ f("code", { children: [
503
+ $("name"),
504
+ /* @__PURE__ */ g("p", {
505
+ style: y,
506
+ children: /* @__PURE__ */ _("code", { children: [
507
507
  "widget:",
508
- b && g ? g.name : n(D || T) || "<name>",
508
+ T && x ? x.name : n(M || A) || "<name>",
509
509
  ":clicked"
510
510
  ] })
511
511
  })
512
512
  ]
513
513
  })
514
514
  ] }),
515
- /* @__PURE__ */ f("div", {
515
+ /* @__PURE__ */ _("div", {
516
516
  className: "flex flex-wrap gap-4 text-sm",
517
- children: [/* @__PURE__ */ f("label", {
517
+ children: [/* @__PURE__ */ _("label", {
518
518
  className: "flex items-center gap-2",
519
- children: [/* @__PURE__ */ d(s, {
520
- checked: B,
521
- onCheckedChange: (e) => V(e === !0),
522
- disabled: v
523
- }), y("bigconsole.widget.actions.advanced.disabled", "Disabled")]
524
- }), /* @__PURE__ */ f("label", {
519
+ children: [/* @__PURE__ */ g(l, {
520
+ checked: De,
521
+ onCheckedChange: (e) => Oe(e === !0),
522
+ disabled: C
523
+ }), w("bigconsole.widget.actions.advanced.disabled", "Disabled")]
524
+ }), /* @__PURE__ */ _("label", {
525
525
  className: "flex items-center gap-2",
526
- children: [/* @__PURE__ */ d(s, {
527
- checked: H,
528
- onCheckedChange: (e) => U(e === !0),
529
- disabled: v
530
- }), y("bigconsole.widget.actions.advanced.hidden", "Hidden")]
526
+ children: [/* @__PURE__ */ g(l, {
527
+ checked: ke,
528
+ onCheckedChange: (e) => Ae(e === !0),
529
+ disabled: C
530
+ }), w("bigconsole.widget.actions.advanced.hidden", "Hidden")]
531
531
  })]
532
532
  })
533
533
  ]
534
534
  })
535
535
  ]
536
- }), /* @__PURE__ */ f(fe, {
536
+ }), /* @__PURE__ */ _(ue, {
537
537
  className: "shrink-0 border-t border-border-subtle bg-bg-sunken p-4",
538
- children: [/* @__PURE__ */ d(ce, {
538
+ children: [/* @__PURE__ */ g(oe, {
539
539
  type: "button",
540
540
  variant: "outline",
541
- onClick: De,
542
- disabled: v,
543
- children: y("bigconsole.widget.actions.footer.cancel", "Cancel")
544
- }), /* @__PURE__ */ d(ae, {
545
- permission: b ? t.WIDGET_ACTION_UPDATE : t.WIDGET_ACTION_CREATE,
541
+ onClick: Se,
542
+ disabled: C,
543
+ children: w("bigconsole.widget.actions.footer.cancel", "Cancel")
544
+ }), /* @__PURE__ */ g(re, {
545
+ permission: T ? t.WIDGET_ACTION_UPDATE : t.WIDGET_ACTION_CREATE,
546
546
  deniedBehavior: "disable",
547
- children: /* @__PURE__ */ d(ce, {
547
+ children: /* @__PURE__ */ g(oe, {
548
548
  type: "submit",
549
- disabled: v,
550
- children: v ? /* @__PURE__ */ f(xe, { children: [/* @__PURE__ */ d(ve, { className: "size-4" }), y("bigconsole.widget.actions.footer.saving", "Saving...")] }) : b ? y("bigconsole.widget.actions.footer.updateButton", "Update Button") : y("bigconsole.widget.actions.footer.addButton", "Add Button")
549
+ disabled: C,
550
+ children: C ? /* @__PURE__ */ _(ge, { children: [/* @__PURE__ */ g(pe, { className: "size-4" }), w("bigconsole.widget.actions.footer.saving", "Saving...")] }) : T ? w("bigconsole.widget.actions.footer.updateButton", "Update Button") : w("bigconsole.widget.actions.footer.addButton", "Add Button")
551
551
  })
552
552
  })]
553
553
  })]
@@ -556,4 +556,4 @@ var Se = [
556
556
  });
557
557
  });
558
558
  //#endregion
559
- export { g as default };
559
+ export { x as ActionConfigDialog, x as default };