@burdenoff/microfe-bigconsole 2026.1011.10 → 2026.1012.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/README.md +19 -0
  2. package/dist/bigconsole/BigConsoleRoot.js +88 -82
  3. package/dist/bigconsole/BigConsoleRoutes.js +163 -136
  4. package/dist/bigconsole/assistant/assistantProduct.js +1 -4
  5. package/dist/bigconsole/assistant/pageContext.d.ts +0 -14
  6. package/dist/bigconsole/assistant/pageContext.js +1 -6
  7. package/dist/bigconsole/assistant/recordAdapters.js +26 -27
  8. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
  9. package/dist/bigconsole/components/common/index.d.ts +0 -1
  10. package/dist/bigconsole/components/common/index.js +0 -1
  11. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +44 -44
  12. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +36 -36
  13. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +59 -59
  14. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +58 -57
  15. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
  16. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +41 -41
  17. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
  18. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +34 -34
  19. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +110 -110
  20. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +21 -21
  21. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
  22. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +164 -173
  23. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -101
  24. package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +31 -31
  25. package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.js +15 -15
  26. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
  27. package/dist/bigconsole/components/dashboard/WidgetPalette.js +165 -163
  28. package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +37 -37
  29. package/dist/bigconsole/components/datasink/AlertRuleEditor.js +66 -66
  30. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
  31. package/dist/bigconsole/components/datasink/DataSinkCard.js +50 -51
  32. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
  33. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
  34. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +47 -47
  35. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +91 -91
  36. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
  37. package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
  38. package/dist/bigconsole/components/parser/ImportParserDialog.js +120 -120
  39. package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
  40. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +10 -10
  41. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +76 -77
  42. package/dist/bigconsole/components/preview/AiPreviewPanel.js +95 -96
  43. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
  44. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
  45. package/dist/bigconsole/components/widgets/PropertiesPanel.js +499 -507
  46. package/dist/bigconsole/components/widgets/WidgetRegistry.js +0 -1
  47. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +4 -4
  48. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
  49. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
  50. package/dist/bigconsole/components/widgets/custom/CustomWidget.js +73 -131
  51. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
  52. package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
  53. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
  54. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
  55. package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.d.ts +28 -9
  56. package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +115 -42
  57. package/dist/bigconsole/components/widgets/iframe-widget/framePolicy.d.ts +20 -0
  58. package/dist/bigconsole/components/widgets/iframe-widget/framePolicy.js +10 -0
  59. package/dist/bigconsole/components/widgets/iframe-widget/index.d.ts +2 -1
  60. package/dist/bigconsole/components/widgets/iframe-widget/index.js +3 -2
  61. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
  62. package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
  63. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
  64. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
  65. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
  66. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
  67. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
  68. package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
  69. package/dist/bigconsole/components/widgets/text-widget/TextWidget.js +110 -27
  70. package/dist/bigconsole/components/widgets/text-widget/textData.d.ts +6 -0
  71. package/dist/bigconsole/components/widgets/text-widget/textData.js +17 -14
  72. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
  73. package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js +15 -15
  74. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +15 -15
  75. package/dist/bigconsole/context/BigConsoleContext.d.ts +10 -0
  76. package/dist/bigconsole/context/BigConsoleContext.js +47 -30
  77. package/dist/bigconsole/context/index.d.ts +1 -1
  78. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +58 -49
  79. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +74 -72
  80. package/dist/bigconsole/customWidget/proposalPreview.d.ts +5 -0
  81. package/dist/bigconsole/customWidget/proposalPreview.js +31 -0
  82. package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +0 -23
  83. package/dist/bigconsole/hooks/useDataSinkAlerts.js +113 -138
  84. package/dist/bigconsole/hooks/useDataSinkOperations.d.ts +7 -0
  85. package/dist/bigconsole/hooks/useDataSinkOperations.js +109 -98
  86. package/dist/bigconsole/hooks/useDataSinkSubscription.js +0 -1
  87. package/dist/bigconsole/hooks/useDrilldown.js +68 -67
  88. package/dist/bigconsole/hooks/useExportDataSink.js +1 -1
  89. package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
  90. package/dist/bigconsole/hooks/useImportDataSink.js +102 -90
  91. package/dist/bigconsole/pages/AdminPage.js +130 -130
  92. package/dist/bigconsole/pages/DashboardBuilderPage.js +60 -72
  93. package/dist/bigconsole/pages/DashboardViewPage.js +235 -258
  94. package/dist/bigconsole/pages/DashboardsPage.js +221 -269
  95. package/dist/bigconsole/pages/DataParsersPage.js +157 -180
  96. package/dist/bigconsole/pages/DataSinkAlertsPage.js +55 -62
  97. package/dist/bigconsole/pages/DataSinkBuilderPage.js +318 -295
  98. package/dist/bigconsole/pages/DataSinkViewPage.js +256 -255
  99. package/dist/bigconsole/pages/DataSinksPage.js +216 -251
  100. package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
  101. package/dist/bigconsole/pages/InsightsPage.js +265 -279
  102. package/dist/bigconsole/pages/OverviewPage.js +47 -47
  103. package/dist/bigconsole/pages/ParserBuilderPage.js +213 -229
  104. package/dist/bigconsole/pages/ParserViewPage.js +97 -97
  105. package/dist/bigconsole/pages/PipelineBuilderPage.js +214 -256
  106. package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
  107. package/dist/bigconsole/pages/PipelinesPage.js +88 -107
  108. package/dist/bigconsole/pages/SettingsPage.js +173 -179
  109. package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
  110. package/dist/bigconsole/pages/WorkflowViewPage.js +1 -1
  111. package/dist/bigconsole/pages/WorkflowsPage.js +141 -141
  112. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
  113. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +235 -122
  114. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.d.ts +6 -1
  115. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +151 -151
  116. package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
  117. package/dist/bigconsole/renderers/adapters/adaptiveCardContent.d.ts +29 -0
  118. package/dist/bigconsole/renderers/adapters/adaptiveCardContent.js +51 -0
  119. package/dist/bigconsole/store/widgetStore.d.ts +0 -12
  120. package/dist/bigconsole/store/widgetStore.js +1 -3
  121. package/dist/bigconsole/types/index.d.ts +17 -2
  122. package/dist/bigconsole/utils/backendError.d.ts +0 -18
  123. package/dist/bigconsole/utils/dataSinkPayload.d.ts +48 -0
  124. package/dist/bigconsole/utils/dataSinkPayload.js +38 -0
  125. package/dist/bigconsole/utils/index.d.ts +2 -0
  126. package/dist/bigconsole/utils/safeUrl.d.ts +79 -0
  127. package/dist/bigconsole/utils/safeUrl.js +93 -0
  128. package/dist/bigconsole/utils/sanitizeHtml.d.ts +16 -0
  129. package/dist/bigconsole/utils/sanitizeHtml.js +67 -0
  130. package/dist/bigconsole/workflowOpen.js +14 -15
  131. package/dist/generated/wspace-operations.d.ts +138 -8
  132. package/dist/generated/wspace-operations.js +281 -240
  133. package/dist/node_modules/dompurify/dist/purify.es.js +800 -0
  134. package/package.json +9 -5
  135. package/dist/bigconsole/assistant/displayCopy.d.ts +0 -32
  136. package/dist/bigconsole/assistant/pageControls.d.ts +0 -81
  137. package/dist/bigconsole/assistant/pageControls.js +0 -169
  138. package/dist/bigconsole/assistant/previewControl.d.ts +0 -16
  139. package/dist/bigconsole/assistant/previewControl.js +0 -10
  140. package/dist/bigconsole/assistant/usePreviewControl.d.ts +0 -2
  141. package/dist/bigconsole/assistant/usePreviewControl.js +0 -20
  142. package/dist/bigconsole/components/common/SortBySelect.d.ts +0 -11
  143. package/dist/bigconsole/components/common/SortBySelect.js +0 -29
  144. package/dist/bigconsole/constants/backendErrors.js +0 -94
  145. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +0 -14
  146. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +0 -32
  147. package/dist/bigconsole/utils/backendError.js +0 -42
  148. package/dist/bigconsole/utils/dashboardList.d.ts +0 -28
  149. package/dist/bigconsole/utils/dashboardList.js +0 -15
  150. package/dist/bigconsole/utils/dataSinkList.d.ts +0 -15
  151. package/dist/bigconsole/utils/dataSinkList.js +0 -15
  152. package/dist/bigconsole/utils/formDirty.d.ts +0 -82
  153. package/dist/bigconsole/utils/formDirty.js +0 -21
  154. package/dist/bigconsole/utils/insightsDraft.d.ts +0 -29
  155. package/dist/bigconsole/utils/insightsDraft.js +0 -8
  156. package/dist/bigconsole/utils/layoutBaseline.d.ts +0 -130
  157. package/dist/bigconsole/utils/layoutBaseline.js +0 -96
  158. package/dist/bigconsole/utils/listSort.d.ts +0 -80
  159. package/dist/bigconsole/utils/listSort.js +0 -85
  160. package/dist/bigconsole/utils/widgetFormDirty.d.ts +0 -16
  161. package/dist/bigconsole/utils/widgetFormDirty.js +0 -13
@@ -5,10 +5,10 @@ import n from "../../hooks/useBigConsoleAnalytics.js";
5
5
  import r from "../../hooks/useImportDashboard.js";
6
6
  import "../../hooks/index.js";
7
7
  import { memo as i, useCallback as a, useEffect as o, useRef as s, useState as c } from "react";
8
- import { AlertTriangle as ee, ArrowLeft as l, Check as u, FileJson as te, Info as d, RefreshCw as ne, Upload as f, XCircle as p } from "lucide-react";
8
+ import { AlertTriangle as l, ArrowLeft as ee, Check as u, FileJson as te, Info as d, RefreshCw as ne, Upload as f, XCircle as p } from "lucide-react";
9
9
  import { Badge as m, Button as h, Card as g, CardContent as _, Checkbox as v, Dialog as y, DialogContent as b, DialogDescription as x, DialogFooter as S, DialogHeader as re, DialogTitle as ie, Input as ae, Label as C, Spinner as w } from "@burdenoff/fe-libs/ui";
10
- import { useI18n as T } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
11
- import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
10
+ import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
11
+ import { useI18n as O } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
12
12
  //#region src/bigconsole/components/dashboard/ImportDashboardDialog.tsx
13
13
  function k(e) {
14
14
  if (!e) return null;
@@ -20,7 +20,7 @@ function k(e) {
20
20
  }
21
21
  }
22
22
  var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
23
- let { t: M } = T(), [N, P] = c("select"), [, F] = c(null), [I, L] = c(null), [R, z] = c(""), [B, V] = c("PRIVATE"), [H, U] = c(!1), W = s(null), { loading: G, error: K, validationResult: q, importResult: J, validateImport: Y, importDashboard: X, clearState: Z } = r(), Q = n();
23
+ let { t: M } = O(), [N, P] = c("select"), [, F] = c(null), [I, L] = c(null), [R, z] = c(""), [B, V] = c("PRIVATE"), [H, U] = c(!1), W = s(null), { loading: G, error: K, validationResult: q, importResult: J, validateImport: Y, importDashboard: X, clearState: Z } = r(), Q = n();
24
24
  o(() => {
25
25
  i && (P("select"), F(null), L(null), z(""), V("PRIVATE"), U(!1), Z());
26
26
  }, [i, Z]);
@@ -81,56 +81,56 @@ var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
81
81
  H,
82
82
  B
83
83
  ]), $ = !G && N !== "importing";
84
- return /* @__PURE__ */ D(y, {
84
+ return /* @__PURE__ */ E(y, {
85
85
  open: i,
86
86
  onOpenChange: (e) => !e && $ && A(),
87
- children: /* @__PURE__ */ O(b, {
87
+ children: /* @__PURE__ */ D(b, {
88
88
  className: "sm:max-w-lg max-h-[85vh] flex flex-col",
89
89
  children: [
90
- /* @__PURE__ */ O(re, { children: [/* @__PURE__ */ O("div", {
90
+ /* @__PURE__ */ D(re, { children: [/* @__PURE__ */ D("div", {
91
91
  className: "flex items-center gap-3",
92
- children: [/* @__PURE__ */ D("div", {
92
+ children: [/* @__PURE__ */ E("div", {
93
93
  className: "flex size-10 items-center justify-center rounded-lg bg-action-primary-bg/10",
94
- children: /* @__PURE__ */ D(f, { className: "size-5 text-primary" })
95
- }), /* @__PURE__ */ D(ie, { children: M("bigconsole.dashboards.import.title", "Import Dashboard") })]
96
- }), /* @__PURE__ */ D(x, { children: M("bigconsole.dashboards.import.description", "Upload a Dashboard export file to restore it into this workspace.") })] }),
97
- /* @__PURE__ */ O("div", {
94
+ children: /* @__PURE__ */ E(f, { className: "size-5 text-primary" })
95
+ }), /* @__PURE__ */ E(ie, { children: M("bigconsole.dashboards.import.title", "Import Dashboard") })]
96
+ }), /* @__PURE__ */ E(x, { children: M("bigconsole.dashboards.import.description", "Upload a Dashboard export file to restore it into this workspace.") })] }),
97
+ /* @__PURE__ */ D("div", {
98
98
  className: "flex-1 overflow-y-auto py-4 space-y-4",
99
99
  children: [
100
- N === "select" && /* @__PURE__ */ O("div", {
100
+ N === "select" && /* @__PURE__ */ D("div", {
101
101
  onDragOver: (e) => e.preventDefault(),
102
102
  onDrop: se,
103
103
  className: "border-2 border-dashed rounded-lg p-8 text-center hover:border-primary transition-colors",
104
104
  children: [
105
- /* @__PURE__ */ D(te, { className: "size-12 mx-auto text-text-secondary mb-4" }),
106
- /* @__PURE__ */ D("p", {
105
+ /* @__PURE__ */ E(te, { className: "size-12 mx-auto text-text-secondary mb-4" }),
106
+ /* @__PURE__ */ E("p", {
107
107
  className: "text-sm mb-2",
108
108
  children: M("bigconsole.dashboards.import.dropzoneTitle", "Drag and drop a dashboard export file here")
109
109
  }),
110
- /* @__PURE__ */ D("p", {
110
+ /* @__PURE__ */ E("p", {
111
111
  className: "text-xs text-text-secondary mb-4",
112
112
  children: M("bigconsole.dashboards.import.or", "or")
113
113
  }),
114
- /* @__PURE__ */ D("input", {
114
+ /* @__PURE__ */ E("input", {
115
115
  ref: W,
116
116
  type: "file",
117
117
  accept: ".json",
118
118
  onChange: oe,
119
119
  className: "hidden"
120
120
  }),
121
- /* @__PURE__ */ D(h, {
121
+ /* @__PURE__ */ E(h, {
122
122
  onClick: () => W.current?.click(),
123
123
  disabled: G,
124
124
  children: M("bigconsole.dashboards.import.browseFiles", "Browse Files")
125
125
  }),
126
- /* @__PURE__ */ D("p", {
126
+ /* @__PURE__ */ E("p", {
127
127
  className: "text-xs text-text-secondary mt-4",
128
128
  children: M("bigconsole.dashboards.import.supportedFilesHint", "Only .json files exported from BigConsole are supported")
129
129
  })
130
130
  ]
131
131
  }),
132
- (N === "preview" || N === "importing") && q && /* @__PURE__ */ O(E, { children: [
133
- /* @__PURE__ */ O(t, {
132
+ (N === "preview" || N === "importing") && q && /* @__PURE__ */ D(T, { children: [
133
+ /* @__PURE__ */ D(t, {
134
134
  headingLevel: 3,
135
135
  emphasis: "muted",
136
136
  padding: "compact",
@@ -138,80 +138,80 @@ var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
138
138
  "data-testid": "import-summary",
139
139
  bodyClassName: "space-y-2",
140
140
  children: [
141
- /* @__PURE__ */ O("div", {
141
+ /* @__PURE__ */ D("div", {
142
142
  className: "flex items-center justify-between",
143
- children: [/* @__PURE__ */ D("span", {
143
+ children: [/* @__PURE__ */ E("span", {
144
144
  className: "text-sm text-text-secondary",
145
145
  children: M("bigconsole.dashboards.import.fieldDashboard", "Dashboard")
146
- }), /* @__PURE__ */ D("span", {
146
+ }), /* @__PURE__ */ E("span", {
147
147
  className: "text-sm font-medium",
148
148
  children: q.dashboardInfo.name
149
149
  })]
150
150
  }),
151
- q.dashboardInfo.description && /* @__PURE__ */ O("div", {
151
+ q.dashboardInfo.description && /* @__PURE__ */ D("div", {
152
152
  className: "flex items-start justify-between",
153
- children: [/* @__PURE__ */ D("span", {
153
+ children: [/* @__PURE__ */ E("span", {
154
154
  className: "text-sm text-text-secondary",
155
155
  children: M("bigconsole.dashboards.import.fieldDescription", "Description")
156
- }), /* @__PURE__ */ D("span", {
156
+ }), /* @__PURE__ */ E("span", {
157
157
  className: "text-sm text-right max-w-[60%] truncate",
158
158
  children: q.dashboardInfo.description
159
159
  })]
160
160
  }),
161
- /* @__PURE__ */ O("div", {
161
+ /* @__PURE__ */ D("div", {
162
162
  className: "flex items-center justify-between",
163
- children: [/* @__PURE__ */ D("span", {
163
+ children: [/* @__PURE__ */ E("span", {
164
164
  className: "text-sm text-text-secondary",
165
165
  children: M("bigconsole.dashboards.import.fieldPages", "Pages")
166
- }), /* @__PURE__ */ D(m, {
166
+ }), /* @__PURE__ */ E(m, {
167
167
  variant: "secondary",
168
168
  children: q.dashboardInfo.pageCount
169
169
  })]
170
170
  }),
171
- /* @__PURE__ */ O("div", {
171
+ /* @__PURE__ */ D("div", {
172
172
  className: "flex items-center justify-between",
173
- children: [/* @__PURE__ */ D("span", {
173
+ children: [/* @__PURE__ */ E("span", {
174
174
  className: "text-sm text-text-secondary",
175
175
  children: M("bigconsole.dashboards.import.fieldWidgets", "Widgets")
176
- }), /* @__PURE__ */ D(m, {
176
+ }), /* @__PURE__ */ E(m, {
177
177
  variant: "secondary",
178
178
  children: q.dashboardInfo.widgetCount
179
179
  })]
180
180
  }),
181
- q.dashboardInfo.exportedFrom && /* @__PURE__ */ O("div", {
181
+ q.dashboardInfo.exportedFrom && /* @__PURE__ */ D("div", {
182
182
  className: "flex items-center justify-between",
183
- children: [/* @__PURE__ */ D("span", {
183
+ children: [/* @__PURE__ */ E("span", {
184
184
  className: "text-sm text-text-secondary",
185
185
  children: M("bigconsole.dashboards.import.fieldSourceId", "Source ID")
186
- }), /* @__PURE__ */ D("span", {
186
+ }), /* @__PURE__ */ E("span", {
187
187
  className: "text-xs text-text-secondary font-mono truncate max-w-[180px]",
188
188
  children: q.dashboardInfo.exportedFrom
189
189
  })]
190
190
  }),
191
- /* @__PURE__ */ O("div", {
191
+ /* @__PURE__ */ D("div", {
192
192
  className: "flex flex-wrap items-center justify-between gap-x-4",
193
- children: [/* @__PURE__ */ D("span", {
193
+ children: [/* @__PURE__ */ E("span", {
194
194
  className: "text-sm text-text-secondary",
195
195
  children: M("bigconsole.dashboards.import.fieldSchemaVersion", "Schema Version")
196
- }), /* @__PURE__ */ D("span", {
196
+ }), /* @__PURE__ */ E("span", {
197
197
  className: "text-xs text-text-secondary",
198
198
  children: q.dashboardInfo.schemaVersion
199
199
  })]
200
200
  })
201
201
  ]
202
202
  }),
203
- q.errors.length > 0 && /* @__PURE__ */ D(t, {
203
+ q.errors.length > 0 && /* @__PURE__ */ E(t, {
204
204
  headingLevel: 3,
205
205
  tone: "danger",
206
206
  padding: "compact",
207
- icon: /* @__PURE__ */ D(p, { className: "size-4" }),
207
+ icon: /* @__PURE__ */ E(p, { className: "size-4" }),
208
208
  title: M("bigconsole.dashboards.import.errorsCount", "Errors ({{count}})", { count: q.errors.length }),
209
209
  description: "These must be fixed in the export file before it can be imported.",
210
210
  "data-testid": "import-errors",
211
- children: /* @__PURE__ */ D("ul", {
211
+ children: /* @__PURE__ */ E("ul", {
212
212
  className: "space-y-1 text-xs text-status-error-text",
213
- children: q.errors.map((e) => /* @__PURE__ */ O("li", { children: [
214
- /* @__PURE__ */ O("span", {
213
+ children: q.errors.map((e) => /* @__PURE__ */ D("li", { children: [
214
+ /* @__PURE__ */ D("span", {
215
215
  className: "font-mono",
216
216
  children: [
217
217
  "[",
@@ -224,18 +224,18 @@ var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
224
224
  ] }, `${e.code}-${e.message}`))
225
225
  })
226
226
  }),
227
- q.warnings.length > 0 && /* @__PURE__ */ D(t, {
227
+ q.warnings.length > 0 && /* @__PURE__ */ E(t, {
228
228
  headingLevel: 3,
229
229
  tone: "warning",
230
230
  padding: "compact",
231
- icon: /* @__PURE__ */ D(ee, { className: "size-4" }),
231
+ icon: /* @__PURE__ */ E(l, { className: "size-4" }),
232
232
  title: M("bigconsole.dashboards.import.warningsCount", "Warnings ({{count}})", { count: q.warnings.length }),
233
233
  description: "Advisory only — acknowledge them below to continue.",
234
234
  "data-testid": "import-warnings",
235
- children: /* @__PURE__ */ D("ul", {
235
+ children: /* @__PURE__ */ E("ul", {
236
236
  className: "space-y-1 text-xs text-[var(--color-status-warning-text)]",
237
- children: q.warnings.map((e) => /* @__PURE__ */ O("li", { children: [
238
- /* @__PURE__ */ O("span", {
237
+ children: q.warnings.map((e) => /* @__PURE__ */ D("li", { children: [
238
+ /* @__PURE__ */ D("span", {
239
239
  className: "font-mono",
240
240
  children: [
241
241
  "[",
@@ -248,58 +248,58 @@ var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
248
248
  ] }, `${e.code}-${e.message}`))
249
249
  })
250
250
  }),
251
- q.isValid && /* @__PURE__ */ O(t, {
251
+ q.isValid && /* @__PURE__ */ D(t, {
252
252
  headingLevel: 3,
253
253
  title: M("bigconsole.dashboards.import.optionsTitle", "Import Options"),
254
254
  description: "How this file lands in the workspace.",
255
255
  "data-testid": "import-options",
256
256
  bodyClassName: "space-y-4",
257
257
  children: [
258
- /* @__PURE__ */ D(t, {
258
+ /* @__PURE__ */ E(t, {
259
259
  headingLevel: 4,
260
260
  tone: "info",
261
261
  "aria-label": M("bigconsole.dashboards.import.infoRegionLabel", "What this import will do"),
262
262
  padding: "compact",
263
263
  "data-testid": "import-info",
264
- children: /* @__PURE__ */ O("div", {
264
+ children: /* @__PURE__ */ D("div", {
265
265
  className: "flex items-start gap-2",
266
- children: [/* @__PURE__ */ D(d, { className: "size-4 mt-0.5 shrink-0 text-[var(--color-status-info-text)]" }), /* @__PURE__ */ D("div", {
266
+ children: [/* @__PURE__ */ E(d, { className: "size-4 mt-0.5 shrink-0 text-[var(--color-status-info-text)]" }), /* @__PURE__ */ E("div", {
267
267
  className: "text-xs text-[var(--color-status-info-text)]",
268
- children: k(I) ? /* @__PURE__ */ O(E, { children: [
269
- /* @__PURE__ */ D("p", {
268
+ children: k(I) ? /* @__PURE__ */ D(T, { children: [
269
+ /* @__PURE__ */ E("p", {
270
270
  className: "font-medium mb-1",
271
271
  children: M("bigconsole.dashboards.import.checkExistingTitle", "Import will check for existing dashboard")
272
272
  }),
273
- /* @__PURE__ */ O("p", { children: [
273
+ /* @__PURE__ */ D("p", { children: [
274
274
  M("bigconsole.dashboards.import.checkExistingIdPrefix", "If the original dashboard (ID:"),
275
275
  " ",
276
- /* @__PURE__ */ O("code", {
276
+ /* @__PURE__ */ D("code", {
277
277
  className: "rounded bg-bg-surface px-1 font-mono",
278
278
  children: [k(I)?.slice(0, 8), "..."]
279
279
  }),
280
280
  M("bigconsole.dashboards.import.checkExistingIdSuffix", ") exists:")
281
281
  ] }),
282
- /* @__PURE__ */ O("ul", {
282
+ /* @__PURE__ */ D("ul", {
283
283
  className: "list-disc list-inside mt-1 space-y-0.5",
284
- children: [/* @__PURE__ */ D("li", { children: M("bigconsole.dashboards.import.checkExistingWithChanges", "With changes → Update the existing dashboard") }), /* @__PURE__ */ D("li", { children: M("bigconsole.dashboards.import.checkExistingNoChanges", "No changes → Show \"already exists\" message") })]
284
+ children: [/* @__PURE__ */ E("li", { children: M("bigconsole.dashboards.import.checkExistingWithChanges", "With changes → Update the existing dashboard") }), /* @__PURE__ */ E("li", { children: M("bigconsole.dashboards.import.checkExistingNoChanges", "No changes → Show \"already exists\" message") })]
285
285
  }),
286
- /* @__PURE__ */ D("p", {
286
+ /* @__PURE__ */ E("p", {
287
287
  className: "mt-1",
288
288
  children: M("bigconsole.dashboards.import.checkExistingNotFound", "If original doesn't exist → Create a new dashboard")
289
289
  })
290
- ] }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("p", {
290
+ ] }) : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("p", {
291
291
  className: "font-medium mb-1",
292
292
  children: M("bigconsole.dashboards.import.newDashboardTitle", "A new dashboard will be created")
293
- }), /* @__PURE__ */ D("p", { children: M("bigconsole.dashboards.import.newDashboardBody", "Import as a new dashboard with the specified configuration.") })] })
293
+ }), /* @__PURE__ */ E("p", { children: M("bigconsole.dashboards.import.newDashboardBody", "Import as a new dashboard with the specified configuration.") })] })
294
294
  })]
295
295
  })
296
296
  }),
297
- /* @__PURE__ */ O("div", {
297
+ /* @__PURE__ */ D("div", {
298
298
  className: "space-y-2",
299
- children: [/* @__PURE__ */ D(C, {
299
+ children: [/* @__PURE__ */ E(C, {
300
300
  htmlFor: "import-name",
301
301
  children: M("bigconsole.dashboards.import.dashboardNameLabel", "Dashboard Name")
302
- }), /* @__PURE__ */ D(ae, {
302
+ }), /* @__PURE__ */ E(ae, {
303
303
  id: "import-name",
304
304
  type: "text",
305
305
  value: R,
@@ -308,15 +308,15 @@ var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
308
308
  disabled: N === "importing"
309
309
  })]
310
310
  }),
311
- /* @__PURE__ */ O("div", {
311
+ /* @__PURE__ */ D("div", {
312
312
  className: "space-y-2",
313
- children: [/* @__PURE__ */ D(C, { children: M("bigconsole.dashboards.import.visibilityLabel", "Visibility") }), /* @__PURE__ */ D("div", {
313
+ children: [/* @__PURE__ */ E(C, { children: M("bigconsole.dashboards.import.visibilityLabel", "Visibility") }), /* @__PURE__ */ E("div", {
314
314
  className: "flex gap-2",
315
315
  children: [
316
316
  "PRIVATE",
317
317
  "TEAM",
318
318
  "PUBLIC"
319
- ].map((e) => /* @__PURE__ */ D(h, {
319
+ ].map((e) => /* @__PURE__ */ E(h, {
320
320
  type: "button",
321
321
  variant: B === e ? "default" : "outline",
322
322
  size: "sm",
@@ -326,16 +326,16 @@ var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
326
326
  }, e))
327
327
  })]
328
328
  }),
329
- q.warnings.length > 0 && /* @__PURE__ */ O("div", {
329
+ q.warnings.length > 0 && /* @__PURE__ */ D("div", {
330
330
  className: "flex items-start space-x-3",
331
- children: [/* @__PURE__ */ D(v, {
331
+ children: [/* @__PURE__ */ E(v, {
332
332
  id: "skipWarnings",
333
333
  checked: H,
334
334
  onCheckedChange: (e) => U(e === !0),
335
335
  disabled: N === "importing"
336
- }), /* @__PURE__ */ D("div", {
336
+ }), /* @__PURE__ */ E("div", {
337
337
  className: "grid gap-1.5 leading-none",
338
- children: /* @__PURE__ */ D(C, {
338
+ children: /* @__PURE__ */ E(C, {
339
339
  htmlFor: "skipWarnings",
340
340
  className: "cursor-pointer",
341
341
  children: M("bigconsole.dashboards.import.acknowledgeWarnings", "Acknowledge warnings and proceed")
@@ -345,75 +345,75 @@ var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
345
345
  ]
346
346
  })
347
347
  ] }),
348
- N === "complete" && J?.success && /* @__PURE__ */ O("div", {
348
+ N === "complete" && J?.success && /* @__PURE__ */ D("div", {
349
349
  className: "text-center py-6",
350
350
  children: [
351
- J.alreadyExists && /* @__PURE__ */ O(E, { children: [
352
- /* @__PURE__ */ D("div", {
351
+ J.alreadyExists && /* @__PURE__ */ D(T, { children: [
352
+ /* @__PURE__ */ E("div", {
353
353
  className: "mx-auto mb-4 flex size-16 items-center justify-center rounded-full bg-[var(--color-status-info-bgSubtle)]",
354
- children: /* @__PURE__ */ D(d, { className: "size-8 text-[var(--color-status-info-text)]" })
354
+ children: /* @__PURE__ */ E(d, { className: "size-8 text-[var(--color-status-info-text)]" })
355
355
  }),
356
- /* @__PURE__ */ D("h3", {
356
+ /* @__PURE__ */ E("h3", {
357
357
  className: "text-lg font-medium mb-2",
358
358
  children: M("bigconsole.dashboards.import.alreadyExistsTitle", "Dashboard Already Exists")
359
359
  }),
360
- /* @__PURE__ */ D("p", {
360
+ /* @__PURE__ */ E("p", {
361
361
  className: "text-sm text-text-secondary mb-4",
362
362
  children: M("bigconsole.dashboards.import.alreadyExistsBody", "Dashboard \"{{name}}\" already exists with the same data. No changes were made.", { name: J.dashboard?.name ?? "" })
363
363
  })
364
364
  ] }),
365
- J.originalUpdated && !J.alreadyExists && /* @__PURE__ */ O(E, { children: [
366
- /* @__PURE__ */ D("div", {
365
+ J.originalUpdated && !J.alreadyExists && /* @__PURE__ */ D(T, { children: [
366
+ /* @__PURE__ */ E("div", {
367
367
  className: "mx-auto mb-4 flex size-16 items-center justify-center rounded-full bg-[var(--color-status-success-bgSubtle)]",
368
- children: /* @__PURE__ */ D(ne, { className: "size-8 text-status-success-text" })
368
+ children: /* @__PURE__ */ E(ne, { className: "size-8 text-status-success-text" })
369
369
  }),
370
- /* @__PURE__ */ D("h3", {
370
+ /* @__PURE__ */ E("h3", {
371
371
  className: "text-lg font-medium mb-2",
372
372
  children: M("bigconsole.dashboards.import.updatedTitle", "Dashboard Updated!")
373
373
  }),
374
- /* @__PURE__ */ D("p", {
374
+ /* @__PURE__ */ E("p", {
375
375
  className: "text-sm text-text-secondary mb-4",
376
376
  children: M("bigconsole.dashboards.import.updatedBody", "Dashboard \"{{name}}\" has been updated with the imported data.", { name: J.dashboard?.name ?? "" })
377
377
  })
378
378
  ] }),
379
- !J.originalUpdated && !J.alreadyExists && /* @__PURE__ */ O(E, { children: [
380
- /* @__PURE__ */ D("div", {
379
+ !J.originalUpdated && !J.alreadyExists && /* @__PURE__ */ D(T, { children: [
380
+ /* @__PURE__ */ E("div", {
381
381
  className: "mx-auto mb-4 flex size-16 items-center justify-center rounded-full bg-[var(--color-status-success-bgSubtle)]",
382
- children: /* @__PURE__ */ D(u, { className: "size-8 text-status-success-text" })
382
+ children: /* @__PURE__ */ E(u, { className: "size-8 text-status-success-text" })
383
383
  }),
384
- /* @__PURE__ */ D("h3", {
384
+ /* @__PURE__ */ E("h3", {
385
385
  className: "text-lg font-medium mb-2",
386
386
  children: M("bigconsole.dashboards.import.successTitle", "Import Successful!")
387
387
  }),
388
- /* @__PURE__ */ D("p", {
388
+ /* @__PURE__ */ E("p", {
389
389
  className: "text-sm text-text-secondary mb-4",
390
390
  children: M("bigconsole.dashboards.import.successBody", "Dashboard \"{{name}}\" has been created.", { name: J.dashboard?.name ?? "" })
391
391
  }),
392
- J.stats && /* @__PURE__ */ D(g, {
392
+ J.stats && /* @__PURE__ */ E(g, {
393
393
  className: "inline-block text-left",
394
- children: /* @__PURE__ */ O(_, {
394
+ children: /* @__PURE__ */ D(_, {
395
395
  className: "p-4",
396
- children: [/* @__PURE__ */ D("p", {
396
+ children: [/* @__PURE__ */ E("p", {
397
397
  className: "text-xs font-medium text-text-secondary mb-2",
398
398
  children: M("bigconsole.dashboards.import.summaryTitle", "Import Summary")
399
- }), /* @__PURE__ */ O("div", {
399
+ }), /* @__PURE__ */ D("div", {
400
400
  className: "grid grid-cols-2 gap-x-6 gap-y-1 text-xs",
401
401
  children: [
402
- /* @__PURE__ */ D("span", {
402
+ /* @__PURE__ */ E("span", {
403
403
  className: "text-text-secondary",
404
404
  children: M("bigconsole.dashboards.import.summaryPages", "Pages:")
405
405
  }),
406
- /* @__PURE__ */ D("span", { children: J.stats.pagesCreated }),
407
- /* @__PURE__ */ D("span", {
406
+ /* @__PURE__ */ E("span", { children: J.stats.pagesCreated }),
407
+ /* @__PURE__ */ E("span", {
408
408
  className: "text-text-secondary",
409
409
  children: M("bigconsole.dashboards.import.summaryWidgets", "Widgets:")
410
410
  }),
411
- /* @__PURE__ */ D("span", { children: J.stats.widgetsCreated }),
412
- /* @__PURE__ */ D("span", {
411
+ /* @__PURE__ */ E("span", { children: J.stats.widgetsCreated }),
412
+ /* @__PURE__ */ E("span", {
413
413
  className: "text-text-secondary",
414
414
  children: M("bigconsole.dashboards.import.summaryActions", "Actions:")
415
415
  }),
416
- /* @__PURE__ */ D("span", { children: J.stats.actionsCreated })
416
+ /* @__PURE__ */ E("span", { children: J.stats.actionsCreated })
417
417
  ]
418
418
  })]
419
419
  })
@@ -421,14 +421,14 @@ var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
421
421
  ] })
422
422
  ]
423
423
  }),
424
- K && /* @__PURE__ */ D(t, {
424
+ K && /* @__PURE__ */ E(t, {
425
425
  headingLevel: 3,
426
426
  tone: "danger",
427
427
  padding: "compact",
428
428
  title: "Import failed",
429
429
  description: K.message
430
430
  }),
431
- J && !J.success && J.errorMessage && /* @__PURE__ */ D(t, {
431
+ J && !J.success && J.errorMessage && /* @__PURE__ */ E(t, {
432
432
  headingLevel: 3,
433
433
  tone: "danger",
434
434
  padding: "compact",
@@ -437,34 +437,34 @@ var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
437
437
  })
438
438
  ]
439
439
  }),
440
- /* @__PURE__ */ O(S, {
440
+ /* @__PURE__ */ D(S, {
441
441
  className: "flex-row justify-between sm:justify-between",
442
- children: [/* @__PURE__ */ D("div", { children: N === "preview" && /* @__PURE__ */ O(h, {
442
+ children: [/* @__PURE__ */ E("div", { children: N === "preview" && /* @__PURE__ */ D(h, {
443
443
  variant: "ghost",
444
444
  onClick: () => {
445
445
  P("select"), F(null), L(null), Z();
446
446
  },
447
447
  disabled: G,
448
- children: [/* @__PURE__ */ D(l, { className: "size-4" }), M("bigconsole.dashboards.import.back", "Back")]
449
- }) }), /* @__PURE__ */ O("div", {
448
+ children: [/* @__PURE__ */ E(ee, { className: "size-4" }), M("bigconsole.dashboards.import.back", "Back")]
449
+ }) }), /* @__PURE__ */ D("div", {
450
450
  className: "flex items-center gap-2",
451
451
  children: [
452
- N !== "complete" && /* @__PURE__ */ D(h, {
452
+ N !== "complete" && /* @__PURE__ */ E(h, {
453
453
  variant: "outline",
454
454
  onClick: A,
455
455
  disabled: !$,
456
456
  children: M("bigconsole.dashboards.import.cancel", "Cancel")
457
457
  }),
458
- N === "preview" && q?.isValid && /* @__PURE__ */ O(h, {
458
+ N === "preview" && q?.isValid && /* @__PURE__ */ D(h, {
459
459
  onClick: ce,
460
460
  disabled: G || q.warnings.length > 0 && !H,
461
- children: [/* @__PURE__ */ D(f, { className: "size-4" }), M("bigconsole.dashboards.import.importButton", "Import Dashboard")]
461
+ children: [/* @__PURE__ */ E(f, { className: "size-4" }), M("bigconsole.dashboards.import.importButton", "Import Dashboard")]
462
462
  }),
463
- N === "importing" && /* @__PURE__ */ O("div", {
463
+ N === "importing" && /* @__PURE__ */ D("div", {
464
464
  className: "flex items-center gap-2 text-sm text-text-secondary",
465
- children: [/* @__PURE__ */ D(w, { className: "size-4" }), M("bigconsole.dashboards.import.importing", "Importing...")]
465
+ children: [/* @__PURE__ */ E(w, { className: "size-4" }), M("bigconsole.dashboards.import.importing", "Importing...")]
466
466
  }),
467
- N === "complete" && /* @__PURE__ */ D(h, {
467
+ N === "complete" && /* @__PURE__ */ E(h, {
468
468
  onClick: A,
469
469
  children: M("bigconsole.dashboards.import.done", "Done")
470
470
  })
@@ -1,14 +1,14 @@
1
1
  import e from "../../hooks/useStoreDashboardTemplates.js";
2
2
  import { memo as t, useCallback as n, useEffect as r, useState as i } from "react";
3
3
  import { Button as a, Dialog as o, DialogContent as s, DialogDescription as c, DialogFooter as l, DialogHeader as u, DialogTitle as d, Input as f, Spinner as p, Textarea as m } from "@burdenoff/fe-libs/ui";
4
- import { useI18n as h } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
5
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
4
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
5
+ import { useI18n as _ } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
6
6
  //#region src/bigconsole/components/dashboard/PublishToStoreDialog.tsx
7
7
  function v(e) {
8
8
  return e.toLowerCase().split(/[^a-z0-9]+/).filter(Boolean).join("-").slice(0, 60);
9
9
  }
10
10
  var y = t(function({ isOpen: t, dashboardId: y, dashboardName: b, dashboardDescription: x, onClose: S, onPublished: C }) {
11
- let { t: w } = h(), { publishToStore: T } = e({ autoLoad: !1 }), [E, D] = i(b), [O, k] = i(v(b)), [A, j] = i(x ?? ""), [M, N] = i(!1), [P, F] = i(!1), [I, L] = i(null), [R, z] = i(null);
11
+ let { t: w } = _(), { publishToStore: T } = e({ autoLoad: !1 }), [E, D] = i(b), [O, k] = i(v(b)), [A, j] = i(x ?? ""), [M, N] = i(!1), [P, F] = i(!1), [I, L] = i(null), [R, z] = i(null);
12
12
  r(() => {
13
13
  t && (D(b), k(v(b)), j(x ?? ""), N(!1), L(null), z(null));
14
14
  }, [
@@ -60,28 +60,28 @@ var y = t(function({ isOpen: t, dashboardId: y, dashboardName: b, dashboardDescr
60
60
  marginBottom: "var(--space-2xs)",
61
61
  fontSize: "var(--font-size-sm)"
62
62
  };
63
- return /* @__PURE__ */ g(o, {
63
+ return /* @__PURE__ */ h(o, {
64
64
  open: t,
65
65
  onOpenChange: (e) => !e && !P && S(),
66
- children: /* @__PURE__ */ _(s, {
66
+ children: /* @__PURE__ */ g(s, {
67
67
  style: { maxWidth: "520px" },
68
68
  children: [
69
- /* @__PURE__ */ _(u, { children: [/* @__PURE__ */ g(d, { children: w("bigconsole.dashboards.publishStore.title", "Publish as Template") }), /* @__PURE__ */ g(c, { children: w("bigconsole.dashboards.publishStore.subtitle", "Share this dashboard as a reusable template. Your data sources are replaced with named slots, so nothing from this workspace is published.") })] }),
70
- R ? /* @__PURE__ */ _("div", {
69
+ /* @__PURE__ */ g(u, { children: [/* @__PURE__ */ h(d, { children: w("bigconsole.dashboards.publishStore.title", "Publish as Template") }), /* @__PURE__ */ h(c, { children: w("bigconsole.dashboards.publishStore.subtitle", "Share this dashboard as a reusable template. Your data sources are replaced with named slots, so nothing from this workspace is published.") })] }),
70
+ R ? /* @__PURE__ */ g("div", {
71
71
  style: { padding: "var(--space-md) 0" },
72
72
  children: [
73
- /* @__PURE__ */ g("p", {
73
+ /* @__PURE__ */ h("p", {
74
74
  style: { fontWeight: "var(--font-weight-medium)" },
75
75
  children: w("bigconsole.dashboards.publishStore.result.title", "Draft template created")
76
76
  }),
77
- /* @__PURE__ */ g("p", {
77
+ /* @__PURE__ */ h("p", {
78
78
  style: {
79
79
  fontSize: "var(--font-size-sm)",
80
80
  color: "var(--color-text-muted)"
81
81
  },
82
82
  children: R.sinkCount === 1 ? w("bigconsole.dashboards.publishStore.result.sinksOne", "{{count}} data source turned into slots. Finish in the Developer Portal: review the listing, then submit it for approval. It appears in the gallery once approved.", { count: R.sinkCount ?? "" }) : w("bigconsole.dashboards.publishStore.result.sinksMany", "{{count}} data sources turned into slots. Finish in the Developer Portal: review the listing, then submit it for approval. It appears in the gallery once approved.", { count: R.sinkCount ?? "" })
83
83
  }),
84
- R.unknownSinkIds.length > 0 && /* @__PURE__ */ g("p", {
84
+ R.unknownSinkIds.length > 0 && /* @__PURE__ */ h("p", {
85
85
  style: {
86
86
  fontSize: "var(--font-size-sm)",
87
87
  color: "var(--color-text-warning)"
@@ -89,18 +89,18 @@ var y = t(function({ isOpen: t, dashboardId: y, dashboardName: b, dashboardDescr
89
89
  children: R.unknownSinkIds.length === 1 ? w("bigconsole.dashboards.publishStore.result.unknownOne", "{{count}} data source could not be named — those slots use generic labels.", { count: R.unknownSinkIds.length ?? "" }) : w("bigconsole.dashboards.publishStore.result.unknownMany", "{{count}} data sources could not be named — those slots use generic labels.", { count: R.unknownSinkIds.length ?? "" })
90
90
  })
91
91
  ]
92
- }) : /* @__PURE__ */ _("div", {
92
+ }) : /* @__PURE__ */ g("div", {
93
93
  style: {
94
94
  display: "flex",
95
95
  flexDirection: "column",
96
96
  gap: "var(--space-sm)"
97
97
  },
98
98
  children: [
99
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
99
+ /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
100
100
  htmlFor: "tpl-name",
101
101
  style: V,
102
102
  children: w("bigconsole.dashboards.publishStore.field.name", "Template name")
103
- }), /* @__PURE__ */ g(f, {
103
+ }), /* @__PURE__ */ h(f, {
104
104
  id: "tpl-name",
105
105
  value: E,
106
106
  disabled: P,
@@ -108,21 +108,21 @@ var y = t(function({ isOpen: t, dashboardId: y, dashboardName: b, dashboardDescr
108
108
  D(e.target.value), k(v(e.target.value));
109
109
  }
110
110
  })] }),
111
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
111
+ /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
112
112
  htmlFor: "tpl-slug",
113
113
  style: V,
114
114
  children: w("bigconsole.dashboards.publishStore.field.slug", "Slug")
115
- }), /* @__PURE__ */ g(f, {
115
+ }), /* @__PURE__ */ h(f, {
116
116
  id: "tpl-slug",
117
117
  value: O,
118
118
  disabled: P,
119
119
  onChange: (e) => k(v(e.target.value))
120
120
  })] }),
121
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
121
+ /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
122
122
  htmlFor: "tpl-desc",
123
123
  style: V,
124
124
  children: w("bigconsole.dashboards.publishStore.field.description", "Description")
125
- }), /* @__PURE__ */ g(m, {
125
+ }), /* @__PURE__ */ h(m, {
126
126
  id: "tpl-desc",
127
127
  rows: 3,
128
128
  value: A,
@@ -130,7 +130,7 @@ var y = t(function({ isOpen: t, dashboardId: y, dashboardName: b, dashboardDescr
130
130
  placeholder: w("bigconsole.dashboards.publishStore.field.descriptionPlaceholder", "What is this dashboard for, and what data does it need?"),
131
131
  onChange: (e) => j(e.target.value)
132
132
  })] }),
133
- I && /* @__PURE__ */ g("p", {
133
+ I && /* @__PURE__ */ h("p", {
134
134
  style: {
135
135
  color: "var(--color-text-danger)",
136
136
  fontSize: "var(--font-size-sm)"
@@ -139,15 +139,15 @@ var y = t(function({ isOpen: t, dashboardId: y, dashboardName: b, dashboardDescr
139
139
  })
140
140
  ]
141
141
  }),
142
- /* @__PURE__ */ _(l, { children: [/* @__PURE__ */ g(a, {
142
+ /* @__PURE__ */ g(l, { children: [/* @__PURE__ */ h(a, {
143
143
  variant: "outline",
144
144
  onClick: S,
145
145
  disabled: P,
146
146
  children: R ? w("bigconsole.dashboards.publishStore.action.done", "Done") : w("bigconsole.dashboards.publishStore.action.cancel", "Cancel")
147
- }), !R && /* @__PURE__ */ g(a, {
147
+ }), !R && /* @__PURE__ */ h(a, {
148
148
  onClick: B,
149
149
  disabled: P,
150
- children: P ? /* @__PURE__ */ g(p, {}) : w("bigconsole.dashboards.publishStore.action.publish", "Publish")
150
+ children: P ? /* @__PURE__ */ h(p, {}) : w("bigconsole.dashboards.publishStore.action.publish", "Publish")
151
151
  })] })
152
152
  ]
153
153
  })