@burdenoff/microfe-bigconsole 2026.924.1 → 2026.924.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 (128) hide show
  1. package/dist/bigconsole/BigConsoleRoutes.js +137 -138
  2. package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
  3. package/dist/bigconsole/assistant/previewController.js +10 -10
  4. package/dist/bigconsole/assistant/useAssistantPanelShowsPreview.js +25 -0
  5. package/dist/bigconsole/assistant/useAssistantPanelShowsPreview.js.map +1 -0
  6. package/dist/bigconsole/components/DrilldownDashboardRenderer.js +17 -17
  7. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +32 -32
  8. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +52 -52
  9. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
  10. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +7 -7
  11. package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +53 -0
  12. package/dist/bigconsole/components/dashboard/DashboardStatusPill.js.map +1 -0
  13. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +60 -60
  14. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +21 -21
  15. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
  16. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +36 -36
  17. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
  18. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +38 -38
  19. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
  20. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +121 -121
  21. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
  22. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +22 -22
  23. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
  24. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +53 -53
  25. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
  26. package/dist/bigconsole/components/dashboard/WidgetPalette.js +47 -47
  27. package/dist/bigconsole/components/dashboard/index.js +1 -0
  28. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
  29. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
  30. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
  31. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -29
  32. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js.map +1 -1
  33. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +48 -48
  34. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +103 -103
  35. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
  36. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
  37. package/dist/bigconsole/components/overview/DashboardGuide.js +214 -0
  38. package/dist/bigconsole/components/overview/DashboardGuide.js.map +1 -0
  39. package/dist/bigconsole/components/overview/DataHealthCard.js +97 -0
  40. package/dist/bigconsole/components/overview/DataHealthCard.js.map +1 -0
  41. package/dist/bigconsole/components/overview/OverviewQuickActions.js +32 -0
  42. package/dist/bigconsole/components/overview/OverviewQuickActions.js.map +1 -0
  43. package/dist/bigconsole/components/overview/OverviewStatCard.js +57 -0
  44. package/dist/bigconsole/components/overview/OverviewStatCard.js.map +1 -0
  45. package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +107 -0
  46. package/dist/bigconsole/components/overview/RecentDashboardsPanel.js.map +1 -0
  47. package/dist/bigconsole/components/overview/dashboardGuideSteps.js +119 -0
  48. package/dist/bigconsole/components/overview/dashboardGuideSteps.js.map +1 -0
  49. package/dist/bigconsole/components/overview/index.js +8 -0
  50. package/dist/bigconsole/components/overview/overviewModel.js +119 -0
  51. package/dist/bigconsole/components/overview/overviewModel.js.map +1 -0
  52. package/dist/bigconsole/components/overview/useOverviewData.js +48 -0
  53. package/dist/bigconsole/components/overview/useOverviewData.js.map +1 -0
  54. package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
  55. package/dist/bigconsole/components/parser/ImportParserDialog.js +127 -127
  56. package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
  57. package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
  58. package/dist/bigconsole/components/preview/AiPreviewContent.js +5 -5
  59. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +62 -61
  60. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js.map +1 -1
  61. package/dist/bigconsole/components/preview/AiPreviewPanel.js +82 -81
  62. package/dist/bigconsole/components/preview/AiPreviewPanel.js.map +1 -1
  63. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +13 -13
  64. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +70 -70
  65. package/dist/bigconsole/components/widgets/PropertiesPanel.js +28 -28
  66. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +25 -25
  67. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
  68. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
  69. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
  70. package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
  71. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
  72. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
  73. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +21 -21
  74. package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
  75. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
  76. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
  77. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
  78. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
  79. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
  80. package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
  81. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
  82. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +10 -10
  83. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +68 -68
  84. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
  85. package/dist/bigconsole/pages/AdminPage.js +136 -136
  86. package/dist/bigconsole/pages/DashboardBuilderPage.js +10 -10
  87. package/dist/bigconsole/pages/DashboardViewPage.js +61 -61
  88. package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
  89. package/dist/bigconsole/pages/DashboardsPage.js +327 -348
  90. package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
  91. package/dist/bigconsole/pages/DataParsersPage.js +5 -5
  92. package/dist/bigconsole/pages/DataSinkBuilderPage.js +10 -10
  93. package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
  94. package/dist/bigconsole/pages/DataSinkViewPage.js +83 -83
  95. package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
  96. package/dist/bigconsole/pages/DataSinksPage.js +11 -11
  97. package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
  98. package/dist/bigconsole/pages/InsightsPage.js +315 -315
  99. package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
  100. package/dist/bigconsole/pages/OverviewPage.js +244 -0
  101. package/dist/bigconsole/pages/OverviewPage.js.map +1 -0
  102. package/dist/bigconsole/pages/ParserBuilderPage.js +5 -5
  103. package/dist/bigconsole/pages/ParserViewPage.js +98 -98
  104. package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
  105. package/dist/bigconsole/pages/PipelineBuilderPage.js +8 -8
  106. package/dist/bigconsole/pages/PipelineViewPage.js +46 -46
  107. package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
  108. package/dist/bigconsole/pages/PipelinesPage.js +80 -80
  109. package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
  110. package/dist/bigconsole/pages/SettingsPage.js +70 -70
  111. package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
  112. package/dist/bigconsole/pages/WorkflowViewPage.js +200 -200
  113. package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
  114. package/dist/bigconsole/pages/WorkflowsPage.js +78 -78
  115. package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
  116. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +34 -34
  117. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +79 -79
  118. package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
  119. package/dist/bigconsole/utils/createDialogParam.js +14 -0
  120. package/dist/bigconsole/utils/createDialogParam.js.map +1 -0
  121. package/dist/generated/global-operations.js +1 -1
  122. package/dist/generated/wspace-operations.js +285 -222
  123. package/dist/generated/wspace-operations.js.map +1 -1
  124. package/dist/shared/hooks/useTr.js +10 -7
  125. package/dist/shared/hooks/useTr.js.map +1 -1
  126. package/package.json +1 -1
  127. package/dist/bigconsole/pages/HomePage.js +0 -318
  128. package/dist/bigconsole/pages/HomePage.js.map +0 -1
@@ -27,9 +27,9 @@ import "../builder/inspector/index.js";
27
27
  import { DEFAULT_GRID_CONFIG as me } from "../../utils/widgetPositioning.js";
28
28
  import { memo as he, useCallback as u, useEffect as d, useMemo as f, useRef as p, useState as m } from "react";
29
29
  import { Check as h, ChevronDown as ge, ChevronUp as _e, ExternalLink as g, Info as ve, Pencil as ye, Plus as be, Trash2 as xe, X as Se } from "lucide-react";
30
- import { useI18n as Ce } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
31
- import { Button as _, Card as we, CardContent as Te, Input as v, Label as y, Select as Ee, SelectContent as De, SelectItem as b, SelectTrigger as Oe, SelectValue as ke, Sheet as Ae, SheetContent as je, SheetDescription as Me, SheetHeader as Ne, SheetTitle as Pe, Spinner as Fe, Tabs as Ie, TabsContent as x, TabsList as Le, TabsTrigger as S, Textarea as C } from "@burdenoff/fe-libs/ui";
30
+ import { Button as _, Card as Ce, CardContent as we, Input as v, Label as y, Select as Te, SelectContent as Ee, SelectItem as b, SelectTrigger as De, SelectValue as Oe, Sheet as ke, SheetContent as Ae, SheetDescription as je, SheetHeader as Me, SheetTitle as Ne, Spinner as Pe, Tabs as Fe, TabsContent as x, TabsList as Ie, TabsTrigger as S, Textarea as C } from "@burdenoff/fe-libs/ui";
32
31
  import { jsx as w, jsxs as T } from "react/jsx-runtime";
32
+ import { useI18n as Le } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
33
33
  //#region src/bigconsole/components/widgets/PropertiesPanel.tsx
34
34
  var Re = [
35
35
  {
@@ -165,7 +165,7 @@ function Ue(e) {
165
165
  };
166
166
  }
167
167
  var We = he(function({ widget: e, onSave: t }) {
168
- let { t: r } = Ce(), [i, a] = m(""), [o, s] = m(null), c = p(!1);
168
+ let { t: r } = Le(), [i, a] = m(""), [o, s] = m(null), c = p(!1);
169
169
  d(() => {
170
170
  try {
171
171
  a(e.template && typeof e.template == "object" ? JSON.stringify(e.template, null, 2) : ""), s(null), c.current = !0;
@@ -331,7 +331,7 @@ function Ge(e) {
331
331
  };
332
332
  }
333
333
  var D = he(function({ isOpen: he, onClose: g }) {
334
- let { t: D } = Ce(), [Ke, qe] = m("general"), [O, k] = m("idle"), [A, j] = m(null), [M, N] = m(!1), P = e((e) => e.selectedWidgetId), Je = e((e) => e.widgets), F = e((e) => e.updateWidget), Ye = e((e) => e.updateWidgetPosition), Xe = t(), I = P ? Je.get(P) : void 0, Ze = I ? {
334
+ let { t: D } = Le(), [Ke, qe] = m("general"), [O, k] = m("idle"), [A, j] = m(null), [M, N] = m(!1), P = e((e) => e.selectedWidgetId), Je = e((e) => e.widgets), F = e((e) => e.updateWidget), Ye = e((e) => e.updateWidgetPosition), Xe = t(), I = P ? Je.get(P) : void 0, Ze = I ? {
335
335
  x: I.position?.x ?? I.positionX ?? 0,
336
336
  y: I.position?.y ?? I.positionY ?? 0,
337
337
  width: I.position?.width ?? I.positionWidth ?? 4,
@@ -661,11 +661,11 @@ var D = he(function({ isOpen: he, onClose: g }) {
661
661
  value: e.value,
662
662
  label: D(e.labelKey, e.label)
663
663
  })), [D]);
664
- return /* @__PURE__ */ w(Ae, {
664
+ return /* @__PURE__ */ w(ke, {
665
665
  open: he,
666
666
  onOpenChange: (e) => !e && g(),
667
667
  modal: !1,
668
- children: /* @__PURE__ */ T(je, {
668
+ children: /* @__PURE__ */ T(Ae, {
669
669
  style: {
670
670
  width: "min(420px, 100vw)",
671
671
  maxWidth: "100vw",
@@ -676,7 +676,7 @@ var D = he(function({ isOpen: he, onClose: g }) {
676
676
  overflow: "hidden"
677
677
  },
678
678
  children: [
679
- /* @__PURE__ */ w(Ne, {
679
+ /* @__PURE__ */ w(Me, {
680
680
  style: {
681
681
  padding: "var(--space-cardPadding)",
682
682
  borderBottom: "1px solid var(--color-border-subtle)",
@@ -718,7 +718,7 @@ var D = he(function({ isOpen: he, onClose: g }) {
718
718
  gap: "var(--space-iconGap)"
719
719
  },
720
720
  children: [
721
- /* @__PURE__ */ w(Pe, {
721
+ /* @__PURE__ */ w(Ne, {
722
722
  style: {
723
723
  fontSize: "var(--font-size-body-md)",
724
724
  fontWeight: "var(--font-weight-bold)",
@@ -727,7 +727,7 @@ var D = he(function({ isOpen: he, onClose: g }) {
727
727
  },
728
728
  children: I ? D("bigconsole.widget.properties.header.widgetProperties", "Widget Properties") : D("bigconsole.widget.properties.header.properties", "Properties")
729
729
  }),
730
- O === "saving" && /* @__PURE__ */ w(Fe, { style: {
730
+ O === "saving" && /* @__PURE__ */ w(Pe, { style: {
731
731
  height: "var(--size-icon-sm)",
732
732
  width: "var(--size-icon-sm)"
733
733
  } }),
@@ -742,7 +742,7 @@ var D = he(function({ isOpen: he, onClose: g }) {
742
742
  color: "var(--color-status-error-bg)"
743
743
  } })
744
744
  ]
745
- }), Wt && /* @__PURE__ */ w(Me, {
745
+ }), Wt && /* @__PURE__ */ w(je, {
746
746
  style: {
747
747
  fontSize: "var(--font-size-body-sm)",
748
748
  color: "var(--color-text-secondary)",
@@ -754,7 +754,7 @@ var D = he(function({ isOpen: he, onClose: g }) {
754
754
  })]
755
755
  })
756
756
  }),
757
- I ? /* @__PURE__ */ T(Ie, {
757
+ I ? /* @__PURE__ */ T(Fe, {
758
758
  value: Ke,
759
759
  onValueChange: (e) => qe(e),
760
760
  style: {
@@ -764,7 +764,7 @@ var D = he(function({ isOpen: he, onClose: g }) {
764
764
  minHeight: 0,
765
765
  overflow: "hidden"
766
766
  },
767
- children: [/* @__PURE__ */ T(Le, {
767
+ children: [/* @__PURE__ */ T(Ie, {
768
768
  style: {
769
769
  width: "100%",
770
770
  display: "flex",
@@ -870,19 +870,19 @@ var D = he(function({ isOpen: he, onClose: g }) {
870
870
  children: [
871
871
  /* @__PURE__ */ T("div", {
872
872
  className: "space-y-2",
873
- children: [/* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.data.sourceTypeLabel", "Data Source Type") }), /* @__PURE__ */ T(Ee, {
873
+ children: [/* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.data.sourceTypeLabel", "Data Source Type") }), /* @__PURE__ */ T(Te, {
874
874
  value: A.config?.dataSourceType || "",
875
875
  onValueChange: (e) => $({
876
876
  ...A.config,
877
877
  dataSourceType: e || void 0
878
878
  }),
879
- children: [/* @__PURE__ */ w(Oe, {
879
+ children: [/* @__PURE__ */ w(De, {
880
880
  style: {
881
881
  height: "var(--size-controlHeight-md)",
882
882
  fontSize: "var(--font-size-body-sm)"
883
883
  },
884
- children: /* @__PURE__ */ w(ke, { placeholder: D("bigconsole.widget.properties.data.selectTypePlaceholder", "Select type...") })
885
- }), /* @__PURE__ */ w(De, {
884
+ children: /* @__PURE__ */ w(Oe, { placeholder: D("bigconsole.widget.properties.data.selectTypePlaceholder", "Select type...") })
885
+ }), /* @__PURE__ */ w(Ee, {
886
886
  position: "popper",
887
887
  side: "bottom",
888
888
  sideOffset: 4,
@@ -918,16 +918,16 @@ var D = he(function({ isOpen: he, onClose: g }) {
918
918
  }),
919
919
  /* @__PURE__ */ T("div", {
920
920
  className: "space-y-2",
921
- children: [/* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.rest.httpMethodLabel", "HTTP Method") }), /* @__PURE__ */ T(Ee, {
921
+ children: [/* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.rest.httpMethodLabel", "HTTP Method") }), /* @__PURE__ */ T(Te, {
922
922
  value: A.config?.httpMethod || "GET",
923
923
  onValueChange: (e) => $({
924
924
  ...A.config,
925
925
  httpMethod: e
926
926
  }),
927
- children: [/* @__PURE__ */ w(Oe, {
927
+ children: [/* @__PURE__ */ w(De, {
928
928
  style: { height: "var(--size-controlHeight-md)" },
929
- children: /* @__PURE__ */ w(ke, {})
930
- }), /* @__PURE__ */ T(De, {
929
+ children: /* @__PURE__ */ w(Oe, {})
930
+ }), /* @__PURE__ */ T(Ee, {
931
931
  position: "popper",
932
932
  side: "bottom",
933
933
  sideOffset: 4,
@@ -967,16 +967,16 @@ var D = he(function({ isOpen: he, onClose: g }) {
967
967
  }),
968
968
  /* @__PURE__ */ T("div", {
969
969
  className: "space-y-2",
970
- children: [/* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.rest.authenticationLabel", "Authentication") }), /* @__PURE__ */ T(Ee, {
970
+ children: [/* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.rest.authenticationLabel", "Authentication") }), /* @__PURE__ */ T(Te, {
971
971
  value: A.config?.authType || "none",
972
972
  onValueChange: (e) => $({
973
973
  ...A.config,
974
974
  authType: e
975
975
  }),
976
- children: [/* @__PURE__ */ w(Oe, {
976
+ children: [/* @__PURE__ */ w(De, {
977
977
  style: { height: "var(--size-controlHeight-md)" },
978
- children: /* @__PURE__ */ w(ke, {})
979
- }), /* @__PURE__ */ T(De, {
978
+ children: /* @__PURE__ */ w(Oe, {})
979
+ }), /* @__PURE__ */ T(Ee, {
980
980
  position: "popper",
981
981
  side: "bottom",
982
982
  sideOffset: 4,
@@ -1171,15 +1171,15 @@ var D = he(function({ isOpen: he, onClose: g }) {
1171
1171
  "data-testid": "widget-inspector-actions",
1172
1172
  children: mt ? /* @__PURE__ */ w("div", {
1173
1173
  className: "flex justify-center py-8",
1174
- children: /* @__PURE__ */ w(Fe, { className: "size-6" })
1174
+ children: /* @__PURE__ */ w(Pe, { className: "size-6" })
1175
1175
  }) : H.length === 0 ? /* @__PURE__ */ w("p", {
1176
1176
  className: "text-sm text-text-secondary",
1177
1177
  children: D("bigconsole.widget.properties.actions.empty", "No actions configured")
1178
1178
  }) : /* @__PURE__ */ w("div", {
1179
1179
  className: "space-y-2",
1180
- children: [...H].sort((e, t) => e.order - t.order).map((e, t) => /* @__PURE__ */ w(we, {
1180
+ children: [...H].sort((e, t) => e.order - t.order).map((e, t) => /* @__PURE__ */ w(Ce, {
1181
1181
  className: e.disabled ? "opacity-60" : "",
1182
- children: /* @__PURE__ */ T(Te, {
1182
+ children: /* @__PURE__ */ T(we, {
1183
1183
  className: "p-3 flex items-center gap-2",
1184
1184
  children: [
1185
1185
  /* @__PURE__ */ T("div", {
@@ -1351,7 +1351,7 @@ var D = he(function({ isOpen: he, onClose: g }) {
1351
1351
  alignItems: "center",
1352
1352
  gap: "var(--space-iconGap)"
1353
1353
  },
1354
- children: [/* @__PURE__ */ w(Fe, { style: {
1354
+ children: [/* @__PURE__ */ w(Pe, { style: {
1355
1355
  width: "var(--size-icon-sm)",
1356
1356
  height: "var(--size-icon-sm)"
1357
1357
  } }), D("bigconsole.widget.properties.footer.saving", "Saving...")]
@@ -1,6 +1,6 @@
1
1
  import { memo as e, useMemo as t } from "react";
2
- import { useI18n as n } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
3
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
3
+ import { useI18n as i } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
4
4
  //#region src/bigconsole/components/widgets/calendar/CalendarWidget.tsx
5
5
  function a(e, t) {
6
6
  for (let n of t) if (e[n] !== void 0 && e[n] !== null) return e[n];
@@ -46,53 +46,53 @@ function o(e) {
46
46
  }).filter((e) => e !== null) : [];
47
47
  }
48
48
  var s = e(function({ widget: e, data: a, onClick: s }) {
49
- let { t: c } = n(), l = t(() => o(a), [a]), u = t(() => {
49
+ let { t: c } = i(), l = t(() => o(a), [a]), u = t(() => {
50
50
  let e = /* @__PURE__ */ new Date(), t = new Date(e.getTime() + 10080 * 60 * 1e3);
51
51
  return l.filter((n) => {
52
52
  let r = new Date(n.start);
53
53
  return r >= e && r <= t;
54
54
  }).sort((e, t) => new Date(e.start).getTime() - new Date(t.start).getTime()).slice(0, 8);
55
55
  }, [l]);
56
- return l.length ? /* @__PURE__ */ i("div", {
56
+ return l.length ? /* @__PURE__ */ r("div", {
57
57
  className: "flex flex-col h-full p-4 overflow-auto",
58
58
  children: [
59
- /* @__PURE__ */ i("div", {
59
+ /* @__PURE__ */ r("div", {
60
60
  className: "flex items-center justify-between mb-4",
61
- children: [/* @__PURE__ */ r("h3", {
61
+ children: [/* @__PURE__ */ n("h3", {
62
62
  className: "text-sm font-medium text-text-primary",
63
63
  children: c("bigconsole.widget.calendar.upcomingEvents", "Upcoming Events")
64
- }), /* @__PURE__ */ r("span", {
64
+ }), /* @__PURE__ */ n("span", {
65
65
  className: "text-xs text-text-secondary",
66
66
  children: c("bigconsole.widget.calendar.eventCount", "{{count}} events", { count: l.length })
67
67
  })]
68
68
  }),
69
- /* @__PURE__ */ r("div", {
69
+ /* @__PURE__ */ n("div", {
70
70
  className: "flex-1 space-y-2 overflow-auto",
71
71
  children: u.map((e) => {
72
- let t = new Date(e.start), n = t.toDateString() === (/* @__PURE__ */ new Date()).toDateString();
73
- return /* @__PURE__ */ r("div", {
72
+ let t = new Date(e.start), i = t.toDateString() === (/* @__PURE__ */ new Date()).toDateString();
73
+ return /* @__PURE__ */ n("div", {
74
74
  className: `
75
75
  p-3 rounded-lg border border-border-default
76
76
  ${s ? "cursor-pointer hover:border-action-primary-bg" : ""}
77
77
  transition-colors
78
78
  `,
79
79
  onClick: () => s?.(e),
80
- children: /* @__PURE__ */ i("div", {
80
+ children: /* @__PURE__ */ r("div", {
81
81
  className: "flex items-start gap-3",
82
- children: [/* @__PURE__ */ r("div", {
82
+ children: [/* @__PURE__ */ n("div", {
83
83
  className: "w-1 h-full min-h-[40px] rounded-full flex-shrink-0",
84
84
  style: { backgroundColor: e.color || "var(--color-action-primary-bg)" }
85
- }), /* @__PURE__ */ i("div", {
85
+ }), /* @__PURE__ */ r("div", {
86
86
  className: "flex-1 min-w-0",
87
87
  children: [
88
- /* @__PURE__ */ r("p", {
88
+ /* @__PURE__ */ n("p", {
89
89
  className: "text-sm font-medium text-text-primary truncate",
90
90
  children: e.title
91
91
  }),
92
- /* @__PURE__ */ i("p", {
92
+ /* @__PURE__ */ r("p", {
93
93
  className: "text-xs text-text-secondary mt-1",
94
94
  children: [
95
- n ? /* @__PURE__ */ r("span", {
95
+ i ? /* @__PURE__ */ n("span", {
96
96
  className: "text-status-success-text font-medium",
97
97
  children: c("bigconsole.widget.calendar.today", "Today")
98
98
  }) : t.toLocaleDateString("en-US", {
@@ -100,20 +100,20 @@ var s = e(function({ widget: e, data: a, onClick: s }) {
100
100
  month: "short",
101
101
  day: "numeric"
102
102
  }),
103
- !e.allDay && /* @__PURE__ */ r("span", {
103
+ !e.allDay && /* @__PURE__ */ n("span", {
104
104
  className: "ml-2",
105
105
  children: t.toLocaleTimeString("en-US", {
106
106
  hour: "numeric",
107
107
  minute: "2-digit"
108
108
  })
109
109
  }),
110
- e.allDay && /* @__PURE__ */ r("span", {
110
+ e.allDay && /* @__PURE__ */ n("span", {
111
111
  className: "ml-2",
112
112
  children: c("bigconsole.widget.calendar.allDay", "All day")
113
113
  })
114
114
  ]
115
115
  }),
116
- e.category && /* @__PURE__ */ r("span", {
116
+ e.category && /* @__PURE__ */ n("span", {
117
117
  className: "inline-block mt-1 px-2 py-0.5 text-[10px] rounded bg-bg-sunken text-text-secondary",
118
118
  children: e.category
119
119
  })
@@ -123,27 +123,27 @@ var s = e(function({ widget: e, data: a, onClick: s }) {
123
123
  }, e.id);
124
124
  })
125
125
  }),
126
- l.length > u.length && /* @__PURE__ */ r("p", {
126
+ l.length > u.length && /* @__PURE__ */ n("p", {
127
127
  className: "text-xs text-text-muted text-center mt-3",
128
128
  children: c("bigconsole.widget.calendar.moreEvents", "+{{count}} more events", { count: l.length - u.length })
129
129
  })
130
130
  ]
131
- }) : /* @__PURE__ */ r("div", {
131
+ }) : /* @__PURE__ */ n("div", {
132
132
  className: "flex items-center justify-center h-full text-text-secondary text-sm",
133
- children: /* @__PURE__ */ i("div", {
133
+ children: /* @__PURE__ */ r("div", {
134
134
  className: "text-center",
135
- children: [/* @__PURE__ */ r("svg", {
135
+ children: [/* @__PURE__ */ n("svg", {
136
136
  className: "w-12 h-12 mx-auto mb-2 text-text-muted",
137
137
  fill: "none",
138
138
  stroke: "currentColor",
139
139
  viewBox: "0 0 24 24",
140
- children: /* @__PURE__ */ r("path", {
140
+ children: /* @__PURE__ */ n("path", {
141
141
  strokeLinecap: "round",
142
142
  strokeLinejoin: "round",
143
143
  strokeWidth: 1.5,
144
144
  d: "M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
145
145
  })
146
- }), /* @__PURE__ */ r("p", { children: c("bigconsole.widget.calendar.emptyState", "No events to display") })]
146
+ }), /* @__PURE__ */ n("p", { children: c("bigconsole.widget.calendar.emptyState", "No events to display") })]
147
147
  })
148
148
  });
149
149
  });
@@ -1,9 +1,9 @@
1
1
  import { memo as e, useCallback as t, useMemo as n } from "react";
2
- import { useI18n as r } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
3
- import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
2
+ import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
3
+ import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
4
4
  //#region src/bigconsole/components/widgets/chart/ChartConfig.tsx
5
5
  var s = e(function({ config: e, onChange: s }) {
6
- let { t: c } = r(), l = n(() => [
6
+ let { t: c } = o(), l = n(() => [
7
7
  {
8
8
  value: "line",
9
9
  label: c("bigconsole.widget.config.chart.type.line", "Line Chart")
@@ -64,47 +64,47 @@ var s = e(function({ config: e, onChange: s }) {
64
64
  [t]: n
65
65
  });
66
66
  }, [e, s]), p = e.chartType === "pie" || e.chartType === "funnel";
67
- return /* @__PURE__ */ o("div", {
67
+ return /* @__PURE__ */ a("div", {
68
68
  className: "min-w-0 space-y-form-gap",
69
69
  children: [
70
- /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
70
+ /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
71
71
  className: "block text-sm font-medium text-text-primary mb-1",
72
72
  children: c("bigconsole.widget.config.chart.chartTypeLabel", "Chart Type")
73
- }), /* @__PURE__ */ a("select", {
73
+ }), /* @__PURE__ */ i("select", {
74
74
  value: e.chartType || "line",
75
75
  onChange: (e) => f("chartType", e.target.value),
76
76
  className: "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n ",
77
- children: l.map((e) => /* @__PURE__ */ a("option", {
77
+ children: l.map((e) => /* @__PURE__ */ i("option", {
78
78
  value: e.value,
79
79
  children: e.label
80
80
  }, e.value))
81
81
  })] }),
82
- !p && /* @__PURE__ */ o(i, { children: [
83
- /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
82
+ !p && /* @__PURE__ */ a(r, { children: [
83
+ /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
84
84
  className: "block text-sm font-medium text-text-primary mb-1",
85
85
  children: c("bigconsole.widget.config.chart.xAxisFieldLabel", "X-Axis Field")
86
- }), /* @__PURE__ */ a("input", {
86
+ }), /* @__PURE__ */ i("input", {
87
87
  type: "text",
88
88
  value: e.xAxisField || "",
89
89
  onChange: (e) => f("xAxisField", e.target.value),
90
90
  placeholder: c("bigconsole.widget.config.chart.xAxisFieldPlaceholder", "e.g., date, category"),
91
91
  className: "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n "
92
92
  })] }),
93
- /* @__PURE__ */ o("div", {
93
+ /* @__PURE__ */ a("div", {
94
94
  className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
95
- children: [/* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
95
+ children: [/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
96
96
  className: "block text-sm font-medium text-text-primary mb-1",
97
97
  children: c("bigconsole.widget.config.chart.xAxisLabelLabel", "X-Axis Label")
98
- }), /* @__PURE__ */ a("input", {
98
+ }), /* @__PURE__ */ i("input", {
99
99
  type: "text",
100
100
  value: e.xAxisLabel || "",
101
101
  onChange: (e) => f("xAxisLabel", e.target.value),
102
102
  placeholder: c("bigconsole.widget.config.chart.optionalPlaceholder", "Optional"),
103
103
  className: "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n "
104
- })] }), /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
104
+ })] }), /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
105
105
  className: "block text-sm font-medium text-text-primary mb-1",
106
106
  children: c("bigconsole.widget.config.chart.yAxisLabelLabel", "Y-Axis Label")
107
- }), /* @__PURE__ */ a("input", {
107
+ }), /* @__PURE__ */ i("input", {
108
108
  type: "text",
109
109
  value: e.yAxisLabel || "",
110
110
  onChange: (e) => f("yAxisLabel", e.target.value),
@@ -112,74 +112,74 @@ var s = e(function({ config: e, onChange: s }) {
112
112
  className: "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n "
113
113
  })] })]
114
114
  }),
115
- (e.chartType === "line" || e.chartType === "area") && /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
115
+ (e.chartType === "line" || e.chartType === "area") && /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
116
116
  className: "block text-sm font-medium text-text-primary mb-1",
117
117
  children: c("bigconsole.widget.config.chart.curveTypeLabel", "Curve Type")
118
- }), /* @__PURE__ */ a("select", {
118
+ }), /* @__PURE__ */ i("select", {
119
119
  value: e.curveType || "monotone",
120
120
  onChange: (e) => f("curveType", e.target.value),
121
121
  className: "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n ",
122
- children: u.map((e) => /* @__PURE__ */ a("option", {
122
+ children: u.map((e) => /* @__PURE__ */ i("option", {
123
123
  value: e.value,
124
124
  children: e.label
125
125
  }, e.value))
126
126
  })] })
127
127
  ] }),
128
- p && /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ o("div", {
128
+ p && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("div", {
129
129
  className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
130
- children: [/* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
130
+ children: [/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
131
131
  className: "block text-sm font-medium text-text-primary mb-1",
132
132
  children: c("bigconsole.widget.config.chart.valueFieldLabel", "Value Field")
133
- }), /* @__PURE__ */ a("input", {
133
+ }), /* @__PURE__ */ i("input", {
134
134
  type: "text",
135
135
  value: e.valueField || "",
136
136
  onChange: (e) => f("valueField", e.target.value),
137
137
  placeholder: c("bigconsole.widget.config.chart.valueFieldPlaceholder", "e.g., value"),
138
138
  className: "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n "
139
- })] }), /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
139
+ })] }), /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
140
140
  className: "block text-sm font-medium text-text-primary mb-1",
141
141
  children: c("bigconsole.widget.config.chart.labelFieldLabel", "Label Field")
142
- }), /* @__PURE__ */ a("input", {
142
+ }), /* @__PURE__ */ i("input", {
143
143
  type: "text",
144
144
  value: e.labelField || "",
145
145
  onChange: (e) => f("labelField", e.target.value),
146
146
  placeholder: c("bigconsole.widget.config.chart.labelFieldPlaceholder", "e.g., name"),
147
147
  className: "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n "
148
148
  })] })]
149
- }), e.chartType === "pie" && /* @__PURE__ */ o("label", {
149
+ }), e.chartType === "pie" && /* @__PURE__ */ a("label", {
150
150
  className: "flex items-center gap-3",
151
- children: [/* @__PURE__ */ a("input", {
151
+ children: [/* @__PURE__ */ i("input", {
152
152
  type: "checkbox",
153
153
  checked: e.showAsDonut === !0,
154
154
  onChange: (e) => f("showAsDonut", e.target.checked),
155
155
  className: "\n w-4 h-4\n text-action-primary-bg\n bg-bg-surface\n border-border-default\n rounded\n focus:ring-action-primary-bg\n "
156
- }), /* @__PURE__ */ a("span", {
156
+ }), /* @__PURE__ */ i("span", {
157
157
  className: "text-sm text-text-primary",
158
158
  children: c("bigconsole.widget.config.chart.showAsDonut", "Show as Donut")
159
159
  })]
160
160
  })] }),
161
- /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
161
+ /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
162
162
  className: "block text-sm font-medium text-text-primary mb-1",
163
163
  children: c("bigconsole.widget.config.chart.legendPositionLabel", "Legend Position")
164
- }), /* @__PURE__ */ a("select", {
164
+ }), /* @__PURE__ */ i("select", {
165
165
  value: e.legendPosition || "bottom",
166
166
  onChange: (e) => f("legendPosition", e.target.value),
167
167
  className: "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n ",
168
- children: d.map((e) => /* @__PURE__ */ a("option", {
168
+ children: d.map((e) => /* @__PURE__ */ i("option", {
169
169
  value: e.value,
170
170
  children: e.label
171
171
  }, e.value))
172
172
  })] }),
173
- !p && /* @__PURE__ */ o("div", { children: [
174
- /* @__PURE__ */ a("label", {
173
+ !p && /* @__PURE__ */ a("div", { children: [
174
+ /* @__PURE__ */ i("label", {
175
175
  className: "block text-sm font-medium text-text-primary mb-1",
176
176
  children: c("bigconsole.widget.config.chart.fieldsToDisplayLabel", "Fields to Display")
177
177
  }),
178
- /* @__PURE__ */ a("p", {
178
+ /* @__PURE__ */ i("p", {
179
179
  className: "text-xs text-text-secondary mb-2",
180
180
  children: c("bigconsole.widget.config.chart.fieldsToDisplayHelp", "Select which numeric fields to show as chart series. Leave empty to show all.")
181
181
  }),
182
- /* @__PURE__ */ a("input", {
182
+ /* @__PURE__ */ i("input", {
183
183
  type: "text",
184
184
  value: e.selectedFields?.join(", ") || "",
185
185
  onChange: (e) => {
@@ -189,63 +189,63 @@ var s = e(function({ config: e, onChange: s }) {
189
189
  placeholder: c("bigconsole.widget.config.chart.fieldsToDisplayPlaceholder", "e.g., revenue, orders, users (comma-separated)"),
190
190
  className: "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n "
191
191
  }),
192
- /* @__PURE__ */ a("p", {
192
+ /* @__PURE__ */ i("p", {
193
193
  className: "text-xs text-text-muted mt-1",
194
194
  children: c("bigconsole.widget.config.chart.fieldsToDisplayHint", "Enter field names separated by commas")
195
195
  })
196
196
  ] }),
197
- /* @__PURE__ */ o("div", {
197
+ /* @__PURE__ */ a("div", {
198
198
  role: "group",
199
199
  "aria-label": "Display options",
200
200
  className: "space-y-3 border-t border-[var(--color-border-subtle)] pt-form-gap",
201
201
  children: [
202
- /* @__PURE__ */ a("p", {
202
+ /* @__PURE__ */ i("p", {
203
203
  className: "text-xs font-bold uppercase tracking-wider text-text-secondary",
204
204
  children: "Display options"
205
205
  }),
206
- /* @__PURE__ */ o("label", {
206
+ /* @__PURE__ */ a("label", {
207
207
  className: "flex items-center gap-3",
208
- children: [/* @__PURE__ */ a("input", {
208
+ children: [/* @__PURE__ */ i("input", {
209
209
  type: "checkbox",
210
210
  checked: e.showGrid !== !1,
211
211
  onChange: (e) => f("showGrid", e.target.checked),
212
212
  className: "\n w-4 h-4\n text-action-primary-bg\n bg-bg-surface\n border-border-default\n rounded\n focus:ring-action-primary-bg\n "
213
- }), /* @__PURE__ */ a("span", {
213
+ }), /* @__PURE__ */ i("span", {
214
214
  className: "text-sm text-text-primary",
215
215
  children: c("bigconsole.widget.config.chart.showGrid", "Show Grid")
216
216
  })]
217
217
  }),
218
- /* @__PURE__ */ o("label", {
218
+ /* @__PURE__ */ a("label", {
219
219
  className: "flex items-center gap-3",
220
- children: [/* @__PURE__ */ a("input", {
220
+ children: [/* @__PURE__ */ i("input", {
221
221
  type: "checkbox",
222
222
  checked: e.showLegend !== !1,
223
223
  onChange: (e) => f("showLegend", e.target.checked),
224
224
  className: "\n w-4 h-4\n text-action-primary-bg\n bg-bg-surface\n border-border-default\n rounded\n focus:ring-action-primary-bg\n "
225
- }), /* @__PURE__ */ a("span", {
225
+ }), /* @__PURE__ */ i("span", {
226
226
  className: "text-sm text-text-primary",
227
227
  children: c("bigconsole.widget.config.chart.showLegend", "Show Legend")
228
228
  })]
229
229
  }),
230
- !p && /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ o("label", {
230
+ !p && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("label", {
231
231
  className: "flex items-center gap-3",
232
- children: [/* @__PURE__ */ a("input", {
232
+ children: [/* @__PURE__ */ i("input", {
233
233
  type: "checkbox",
234
234
  checked: e.showDataPoints === !0,
235
235
  onChange: (e) => f("showDataPoints", e.target.checked),
236
236
  className: "\n w-4 h-4\n text-action-primary-bg\n bg-bg-surface\n border-border-default\n rounded\n focus:ring-action-primary-bg\n "
237
- }), /* @__PURE__ */ a("span", {
237
+ }), /* @__PURE__ */ i("span", {
238
238
  className: "text-sm text-text-primary",
239
239
  children: c("bigconsole.widget.config.chart.showDataPoints", "Show Data Points")
240
240
  })]
241
- }), (e.chartType === "bar" || e.chartType === "area") && /* @__PURE__ */ o("label", {
241
+ }), (e.chartType === "bar" || e.chartType === "area") && /* @__PURE__ */ a("label", {
242
242
  className: "flex items-center gap-3",
243
- children: [/* @__PURE__ */ a("input", {
243
+ children: [/* @__PURE__ */ i("input", {
244
244
  type: "checkbox",
245
245
  checked: e.stacked === !0,
246
246
  onChange: (e) => f("stacked", e.target.checked),
247
247
  className: "\n w-4 h-4\n text-action-primary-bg\n bg-bg-surface\n border-border-default\n rounded\n focus:ring-action-primary-bg\n "
248
- }), /* @__PURE__ */ a("span", {
248
+ }), /* @__PURE__ */ i("span", {
249
249
  className: "text-sm text-text-primary",
250
250
  children: c("bigconsole.widget.config.chart.stacked", "Stacked")
251
251
  })]