@burdenoff/microfe-bigconsole 2026.727.3 → 2026.728.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.
@@ -7,24 +7,24 @@ import i from "../../hooks/useWidgetActions.js";
7
7
  import a from "../../hooks/useDataSinkOperations.js";
8
8
  import o from "../../hooks/useParserOperations.js";
9
9
  import "../../hooks/index.js";
10
- import { getWidgetBinding as s, getWidgetBindingStatus as c, serializeWidgetBinding as ee } from "../../utils/widgetBinding.js";
11
- import te from "./ActionConfigDialog.js";
12
- import ne from "./webhook-config/WebhookConfigPanel.js";
10
+ import { getWidgetBinding as s, getWidgetBindingStatus as c, reconcilePanelConfig as ee, serializeWidgetBinding as te } from "../../utils/widgetBinding.js";
11
+ import ne from "./ActionConfigDialog.js";
12
+ import re from "./webhook-config/WebhookConfigPanel.js";
13
13
  import "./webhook-config/index.js";
14
- import re from "./event-logs/EventLogViewer.js";
14
+ import ie from "./event-logs/EventLogViewer.js";
15
15
  import "./event-logs/index.js";
16
- import ie from "./DrilldownConfigPanel.js";
17
- import { AdvancedSection as ae } from "../builder/inspector/AdvancedSection.js";
18
- import { AppearanceSection as oe } from "../builder/inspector/AppearanceSection.js";
19
- import { GeneralSection as se } from "../builder/inspector/GeneralSection.js";
20
- import { DataBindingSection as ce } from "../builder/inspector/DataBindingSection.js";
16
+ import ae from "./DrilldownConfigPanel.js";
17
+ import { AdvancedSection as oe } from "../builder/inspector/AdvancedSection.js";
18
+ import { AppearanceSection as se } from "../builder/inspector/AppearanceSection.js";
19
+ import { GeneralSection as ce } from "../builder/inspector/GeneralSection.js";
20
+ import { DataBindingSection as le } from "../builder/inspector/DataBindingSection.js";
21
21
  import "../builder/inspector/index.js";
22
- import { memo as l, useCallback as u, useEffect as d, useRef as le, useState as f } from "react";
23
- import { Check as p, ChevronDown as ue, ChevronUp as de, ExternalLink as m, Info as h, Pencil as fe, Plus as pe, Trash2 as me, X as g } from "lucide-react";
24
- import { Button as _, Card as he, CardContent as ge, Input as v, Label as y, Select as b, SelectContent as x, SelectItem as S, SelectTrigger as C, SelectValue as w, Sheet as _e, SheetContent as ve, SheetDescription as ye, SheetHeader as be, SheetTitle as xe, Spinner as T, Tabs as Se, TabsContent as E, TabsList as Ce, TabsTrigger as D, Textarea as O } from "@burdenoff/fe-libs/ui";
25
- import { Fragment as we, jsx as k, jsxs as A } from "react/jsx-runtime";
22
+ import { memo as l, useCallback as u, useEffect as d, useRef as f, useState as p } from "react";
23
+ import { Check as m, ChevronDown as ue, ChevronUp as de, ExternalLink as h, Info as fe, Pencil as pe, Plus as me, Trash2 as he, X as g } from "lucide-react";
24
+ import { Button as _, Card as ge, CardContent as _e, Input as v, Label as y, Select as b, SelectContent as x, SelectItem as S, SelectTrigger as C, SelectValue as w, Sheet as ve, SheetContent as ye, SheetDescription as be, SheetHeader as xe, SheetTitle as Se, Spinner as T, Tabs as Ce, TabsContent as E, TabsList as we, TabsTrigger as D, Textarea as O } from "@burdenoff/fe-libs/ui";
25
+ import { Fragment as Te, jsx as k, jsxs as A } from "react/jsx-runtime";
26
26
  //#region src/bigconsole/components/widgets/PropertiesPanel.tsx
27
- var Te = [
27
+ var Ee = [
28
28
  {
29
29
  value: "BIGCONSOLE",
30
30
  label: "BigConsole Native",
@@ -45,7 +45,7 @@ var Te = [
45
45
  label: "Custom",
46
46
  description: "Custom React component"
47
47
  }
48
- ], Ee = [
48
+ ], De = [
49
49
  {
50
50
  value: "DATASINK",
51
51
  label: "DataSink",
@@ -76,14 +76,14 @@ var Te = [
76
76
  label: "Sample JSON",
77
77
  description: "Manually enter sample JSON data"
78
78
  }
79
- ], De = {
79
+ ], Oe = {
80
80
  PRIMARY: "bg-action-primary",
81
81
  SECONDARY: "bg-muted-foreground",
82
82
  SUCCESS: "bg-state-success",
83
83
  WARNING: "bg-state-warning",
84
84
  DANGER: "bg-state-error"
85
85
  };
86
- function Oe(e) {
86
+ function ke(e) {
87
87
  if (!e) return {};
88
88
  let t = Array.isArray(e) ? e[0] : e;
89
89
  if (!t || typeof t != "object") return {};
@@ -127,8 +127,8 @@ function Oe(e) {
127
127
  xAxisField: a
128
128
  };
129
129
  }
130
- var ke = l(function({ widget: e, onSave: t }) {
131
- let [n, r] = f(""), [i, a] = f(null), o = le(!1);
130
+ var Ae = l(function({ widget: e, onSave: t }) {
131
+ let [n, r] = p(""), [i, a] = p(null), o = f(!1);
132
132
  d(() => {
133
133
  try {
134
134
  r(e.template && typeof e.template == "object" ? JSON.stringify(e.template, null, 2) : ""), a(null), o.current = !0;
@@ -231,7 +231,7 @@ var ke = l(function({ widget: e, onSave: t }) {
231
231
  alignItems: "center",
232
232
  gap: "4px"
233
233
  },
234
- children: [/* @__PURE__ */ k(p, { style: {
234
+ children: [/* @__PURE__ */ k(m, { style: {
235
235
  width: "12px",
236
236
  height: "12px"
237
237
  } }), "Valid JSON"]
@@ -266,7 +266,7 @@ var ke = l(function({ widget: e, onSave: t }) {
266
266
  fontWeight: "var(--font-weight-medium)",
267
267
  textDecoration: "none"
268
268
  },
269
- children: ["Designer", /* @__PURE__ */ k(m, { style: {
269
+ children: ["Designer", /* @__PURE__ */ k(h, { style: {
270
270
  height: "var(--size-icon-sm)",
271
271
  width: "var(--size-icon-sm)"
272
272
  } })]
@@ -284,7 +284,7 @@ var ke = l(function({ widget: e, onSave: t }) {
284
284
  fontWeight: "var(--font-weight-medium)",
285
285
  textDecoration: "none"
286
286
  },
287
- children: ["Block Kit Builder", /* @__PURE__ */ k(m, { style: {
287
+ children: ["Block Kit Builder", /* @__PURE__ */ k(h, { style: {
288
288
  height: "var(--size-icon-sm)",
289
289
  width: "var(--size-icon-sm)"
290
290
  } })]
@@ -294,7 +294,7 @@ var ke = l(function({ widget: e, onSave: t }) {
294
294
  ]
295
295
  });
296
296
  });
297
- function Ae(e) {
297
+ function je(e) {
298
298
  let t = e, n = s({
299
299
  dataSinkId: t.dataSinkId,
300
300
  parserId: t.parserId,
@@ -322,40 +322,40 @@ function Ae(e) {
322
322
  } : void 0
323
323
  };
324
324
  }
325
- var je = l(function({ isOpen: l, onClose: m }) {
326
- let [je, Me] = f("general"), [j, M] = f("idle"), [N, P] = f(null), [F, I] = f(!1), L = e((e) => e.selectedWidgetId), Ne = e((e) => e.widgets), R = e((e) => e.updateWidget), z = L ? Ne.get(L) : void 0, B = le(null);
325
+ var Me = l(function({ isOpen: l, onClose: h }) {
326
+ let [Me, Ne] = p("general"), [j, M] = p("idle"), [N, P] = p(null), [F, I] = p(!1), L = e((e) => e.selectedWidgetId), Pe = e((e) => e.widgets), R = e((e) => e.updateWidget), z = L ? Pe.get(L) : void 0, Fe = f(null), B = f({});
327
327
  d(() => {
328
328
  if (!L) {
329
- B.current = null, P(null), I(!1), M("idle");
329
+ Fe.current = null, P(null), I(!1), M("idle");
330
330
  return;
331
331
  }
332
- let e = B.current !== L;
333
- if (B.current = L, z) {
332
+ let e = Fe.current !== L;
333
+ if (Fe.current = L, z) {
334
334
  if (F && !e) return;
335
- P(Ae(z)), I(!1), M("idle");
335
+ P(je(z)), B.current = z.config || {}, I(!1), M("idle");
336
336
  } else P(null), I(!1), M("idle");
337
337
  }, [
338
338
  L,
339
339
  z,
340
340
  F
341
341
  ]);
342
- let { updateWidget: Pe } = n(z?.pageId, z?.dashboardId, { skipFetch: !0 }), { createDrilldown: Fe, updateDrilldown: Ie, deleteDrilldown: Le } = r(), { dataSinks: V } = a({ skipFetch: !1 }), [Re, H] = f(null), { executeParser: ze } = o({
342
+ let { updateWidget: Ie } = n(z?.pageId, z?.dashboardId, { skipFetch: !0 }), { createDrilldown: Le, updateDrilldown: Re, deleteDrilldown: ze } = r(), { dataSinks: V } = a({ skipFetch: !1 }), [Be, H] = p(null), { executeParser: Ve } = o({
343
343
  consoleId: z?.dashboardId,
344
344
  skipFetch: !0
345
- }), [Be, U] = f(!1), [Ve, W] = f(void 0), [He, G] = f(!1), [Ue, K] = f(null);
345
+ }), [He, U] = p(!1), [Ue, W] = p(void 0), [We, G] = p(!1), [Ge, K] = p(null);
346
346
  d(() => {
347
347
  W(void 0), G(!1), K(null), U(!1);
348
348
  }, [L]);
349
- let { actions: q, loading: J, createAction: We, updateAction: Ge, deleteAction: Ke, reorderActions: Y } = i(L || void 0), [qe, X] = f(!1), [Je, Z] = f(void 0), [Ye, Xe] = f(!1), Ze = u(() => {
349
+ let { actions: q, loading: J, createAction: Ke, updateAction: qe, deleteAction: Je, reorderActions: Y } = i(L || void 0), [Ye, X] = p(!1), [Xe, Z] = p(void 0), [Ze, Qe] = p(!1), $e = u(() => {
350
350
  Z(void 0), X(!0);
351
- }, []), Qe = u((e) => {
351
+ }, []), et = u((e) => {
352
352
  Z(e), X(!0);
353
- }, []), $e = u(async (e) => {
353
+ }, []), tt = u(async (e) => {
354
354
  if (L) {
355
- Xe(!0);
355
+ Qe(!0);
356
356
  try {
357
357
  let t = null;
358
- if (t = "id" in e ? await Ge(e) : await We(e), t) {
358
+ if (t = "id" in e ? await qe(e) : await Ke(e), t) {
359
359
  let n = [...q];
360
360
  if ("id" in e) {
361
361
  let r = n.findIndex((t) => t.id === e.id);
@@ -365,23 +365,23 @@ var je = l(function({ isOpen: l, onClose: m }) {
365
365
  }
366
366
  X(!1), Z(void 0);
367
367
  } catch {} finally {
368
- Xe(!1);
368
+ Qe(!1);
369
369
  }
370
370
  }
371
371
  }, [
372
372
  L,
373
373
  q,
374
- We,
375
- Ge,
374
+ Ke,
375
+ qe,
376
376
  R
377
- ]), et = u(async (e) => {
378
- L && window.confirm("Are you sure you want to delete this action?") && await Ke(e) && R(L, { actions: q.filter((t) => t.id !== e) });
377
+ ]), nt = u(async (e) => {
378
+ L && window.confirm("Are you sure you want to delete this action?") && await Je(e) && R(L, { actions: q.filter((t) => t.id !== e) });
379
379
  }, [
380
380
  L,
381
381
  q,
382
- Ke,
382
+ Je,
383
383
  R
384
- ]), tt = u(async (e) => {
384
+ ]), rt = u(async (e) => {
385
385
  if (!L || e === 0) return;
386
386
  let t = [...q].sort((e, t) => e.order - t.order), n = t.map((e) => e.id);
387
387
  [n[e - 1], n[e]] = [n[e], n[e - 1]], await Y(n) && R(L, { actions: t.map((e, t) => ({
@@ -393,7 +393,7 @@ var je = l(function({ isOpen: l, onClose: m }) {
393
393
  q,
394
394
  Y,
395
395
  R
396
- ]), nt = u(async (e) => {
396
+ ]), it = u(async (e) => {
397
397
  if (!L) return;
398
398
  let t = [...q].sort((e, t) => e.order - t.order);
399
399
  if (e === t.length - 1) return;
@@ -433,7 +433,7 @@ var je = l(function({ isOpen: l, onClose: m }) {
433
433
  e && H(e.key);
434
434
  } else H(null);
435
435
  }, [N?.dataSinkId, V]);
436
- let rt = u((e) => {
436
+ let at = u((e) => {
437
437
  if (W(void 0), G(!1), K(null), H(e), e) {
438
438
  let t = V.find((t) => t.key === e);
439
439
  t && (Q("dataSinkId", t.id), P((t) => t && {
@@ -451,14 +451,14 @@ var je = l(function({ isOpen: l, onClose: m }) {
451
451
  },
452
452
  parserId: void 0
453
453
  }), I(!0);
454
- }, [V, Q]), it = u(async (e) => {
454
+ }, [V, Q]), ot = u(async (e) => {
455
455
  if (Q("parserId", e || void 0), W(void 0), G(!1), K(null), e && z) {
456
456
  U(!0);
457
457
  try {
458
- let t = await ze(e);
458
+ let t = await Ve(e);
459
459
  if (t?.success) {
460
460
  W(t.output), G(!0);
461
- let e = Oe(t.output);
461
+ let e = ke(t.output);
462
462
  (e.labelField || e.valueField) && (P((t) => {
463
463
  if (!t) return t;
464
464
  let n = t.config || {}, r = { ...n };
@@ -476,77 +476,77 @@ var je = l(function({ isOpen: l, onClose: m }) {
476
476
  }
477
477
  }, [
478
478
  Q,
479
- ze,
479
+ Ve,
480
480
  z
481
- ]), at = u(async () => {
481
+ ]), st = u(async () => {
482
482
  if (!(!z || !N)) {
483
483
  M("saving");
484
484
  try {
485
- let e = {
485
+ let t = {
486
486
  ...z.metadata || {},
487
487
  description: N.description || ""
488
- }, t = ee(s({
488
+ }, n = ee(e.getState().widgets.get(z.id)?.config ?? {}, B.current, N.config), r = te(s({
489
489
  dataSinkId: N.dataSinkId,
490
490
  parserId: N.parserId,
491
491
  config: {
492
- ...N.config,
492
+ ...n,
493
493
  binding: void 0
494
494
  }
495
- }), N.config), n = await Pe({
495
+ }), n), i = await Ie({
496
496
  id: z.id,
497
497
  title: N.title,
498
498
  renderer: N.renderer,
499
499
  template: N.template,
500
- config: t.config,
500
+ config: r.config,
501
501
  refreshInterval: N.refreshInterval,
502
- dataSinkId: t.dataSinkId,
502
+ dataSinkId: r.dataSinkId,
503
503
  datasetId: N.datasetId,
504
- parserId: t.parserId,
504
+ parserId: r.parserId,
505
505
  parserRules: N.parserRules,
506
- metadata: e
507
- }), r = z.drilldown;
506
+ metadata: t
507
+ }), a = z.drilldown;
508
508
  if (N.drilldownConfig) {
509
- let { enabled: e, targetDashboardId: t, navigationMode: n, parameterMapping: i, passGlobalFilters: a, maxDepth: o, openIn: s } = N.drilldownConfig;
509
+ let { enabled: e, targetDashboardId: t, navigationMode: n, parameterMapping: r, passGlobalFilters: i, maxDepth: o, openIn: s } = N.drilldownConfig;
510
510
  if (z.drilldown?.id) {
511
- let c = await Ie({
511
+ let c = await Re({
512
512
  id: z.drilldown.id,
513
513
  targetDashboardId: t,
514
- parameterMapping: i,
514
+ parameterMapping: r,
515
515
  navigationMode: n,
516
516
  enabled: e,
517
- passGlobalFilters: a,
517
+ passGlobalFilters: i,
518
518
  maxDepth: o,
519
519
  openIn: s
520
520
  });
521
- c && (r = c);
521
+ c && (a = c);
522
522
  } else if (t) {
523
- let c = await Fe({
523
+ let c = await Le({
524
524
  sourceWidgetId: z.id,
525
525
  targetDashboardId: t,
526
- parameterMapping: i || {},
526
+ parameterMapping: r || {},
527
527
  navigationMode: n,
528
- passGlobalFilters: a,
528
+ passGlobalFilters: i,
529
529
  maxDepth: o,
530
530
  openIn: s
531
531
  });
532
- c && (r = {
532
+ c && (a = {
533
533
  ...c,
534
534
  enabled: e
535
535
  });
536
536
  }
537
- } else z.drilldown?.id && !N.drilldownConfig && (await Le(z.drilldown.id), r = void 0);
538
- n ? (R(z.id, {
537
+ } else z.drilldown?.id && !N.drilldownConfig && (await ze(z.drilldown.id), a = void 0);
538
+ i ? (R(z.id, {
539
539
  title: N.title,
540
540
  description: N.description,
541
541
  renderer: N.renderer,
542
542
  template: N.template,
543
- config: t.config,
543
+ config: r.config,
544
544
  refreshInterval: N.refreshInterval,
545
- dataSinkId: t.dataSinkId,
545
+ dataSinkId: r.dataSinkId,
546
546
  datasetId: N.datasetId,
547
- parserId: t.parserId,
547
+ parserId: r.parserId,
548
548
  parserRules: N.parserRules,
549
- drilldown: r,
549
+ drilldown: a,
550
550
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
551
551
  }), M("saved"), I(!1), setTimeout(() => M("idle"), 2e3)) : M("error");
552
552
  } catch {
@@ -556,26 +556,26 @@ var je = l(function({ isOpen: l, onClose: m }) {
556
556
  }, [
557
557
  z,
558
558
  N,
559
- Pe,
560
- R,
561
- Fe,
562
559
  Ie,
563
- Le
564
- ]), ot = u(() => {
565
- z && (P(Ae(z)), I(!1), M("idle"));
566
- }, [z]), st = u((e) => {
560
+ R,
561
+ Le,
562
+ Re,
563
+ ze
564
+ ]), ct = u(() => {
565
+ z && (P(je(z)), B.current = z.config || {}, I(!1), M("idle"));
566
+ }, [z]), lt = u((e) => {
567
567
  $(e);
568
- }, [$]), ct = u((e) => {
568
+ }, [$]), ut = u((e) => {
569
569
  P((t) => t && {
570
570
  ...t,
571
571
  drilldownConfig: e
572
572
  }), I(!0);
573
- }, []), lt = z ? t(z.type) : null;
574
- return /* @__PURE__ */ k(_e, {
573
+ }, []), dt = z ? t(z.type) : null;
574
+ return /* @__PURE__ */ k(ve, {
575
575
  open: l,
576
- onOpenChange: (e) => !e && m(),
576
+ onOpenChange: (e) => !e && h(),
577
577
  modal: !1,
578
- children: /* @__PURE__ */ A(ve, {
578
+ children: /* @__PURE__ */ A(ye, {
579
579
  style: {
580
580
  width: "420px",
581
581
  maxWidth: "90vw",
@@ -586,7 +586,7 @@ var je = l(function({ isOpen: l, onClose: m }) {
586
586
  overflow: "hidden"
587
587
  },
588
588
  children: [
589
- /* @__PURE__ */ k(be, {
589
+ /* @__PURE__ */ k(xe, {
590
590
  style: {
591
591
  padding: "var(--space-cardPadding)",
592
592
  borderBottom: "1px solid var(--color-border)",
@@ -611,7 +611,7 @@ var je = l(function({ isOpen: l, onClose: m }) {
611
611
  boxShadow: "var(--shadow-elevation-2)",
612
612
  flexShrink: 0
613
613
  },
614
- children: /* @__PURE__ */ k(h, { style: {
614
+ children: /* @__PURE__ */ k(fe, { style: {
615
615
  height: "var(--size-icon-md)",
616
616
  width: "var(--size-icon-md)",
617
617
  color: "var(--color-action-primary-text)"
@@ -628,7 +628,7 @@ var je = l(function({ isOpen: l, onClose: m }) {
628
628
  gap: "var(--space-iconGap)"
629
629
  },
630
630
  children: [
631
- /* @__PURE__ */ k(xe, {
631
+ /* @__PURE__ */ k(Se, {
632
632
  style: {
633
633
  fontSize: "var(--font-size-body-md)",
634
634
  fontWeight: "var(--font-weight-bold)",
@@ -641,7 +641,7 @@ var je = l(function({ isOpen: l, onClose: m }) {
641
641
  height: "var(--size-icon-sm)",
642
642
  width: "var(--size-icon-sm)"
643
643
  } }),
644
- j === "saved" && /* @__PURE__ */ k(p, { style: {
644
+ j === "saved" && /* @__PURE__ */ k(m, { style: {
645
645
  height: "var(--size-icon-sm)",
646
646
  width: "var(--size-icon-sm)",
647
647
  color: "var(--color-status-success-bg)"
@@ -652,21 +652,21 @@ var je = l(function({ isOpen: l, onClose: m }) {
652
652
  color: "var(--color-status-error-bg)"
653
653
  } })
654
654
  ]
655
- }), lt && /* @__PURE__ */ k(ye, {
655
+ }), dt && /* @__PURE__ */ k(be, {
656
656
  style: {
657
657
  fontSize: "var(--font-size-body-sm)",
658
658
  color: "var(--color-text-secondary)",
659
659
  margin: "var(--space-controlGap) 0 0 0",
660
660
  fontWeight: "var(--font-weight-medium)"
661
661
  },
662
- children: lt.name
662
+ children: dt.name
663
663
  })]
664
664
  })]
665
665
  })
666
666
  }),
667
- z ? /* @__PURE__ */ A(Se, {
668
- value: je,
669
- onValueChange: (e) => Me(e),
667
+ z ? /* @__PURE__ */ A(Ce, {
668
+ value: Me,
669
+ onValueChange: (e) => Ne(e),
670
670
  style: {
671
671
  flex: 1,
672
672
  display: "flex",
@@ -674,7 +674,7 @@ var je = l(function({ isOpen: l, onClose: m }) {
674
674
  minHeight: 0,
675
675
  overflow: "hidden"
676
676
  },
677
- children: [/* @__PURE__ */ A(Ce, {
677
+ children: [/* @__PURE__ */ A(we, {
678
678
  style: {
679
679
  width: "100%",
680
680
  display: "flex",
@@ -747,7 +747,7 @@ var je = l(function({ isOpen: l, onClose: m }) {
747
747
  flexDirection: "column",
748
748
  gap: "var(--space-formGap)"
749
749
  },
750
- children: /* @__PURE__ */ k(se, {
750
+ children: /* @__PURE__ */ k(ce, {
751
751
  title: N.title,
752
752
  description: N.description,
753
753
  refreshInterval: N.refreshInterval,
@@ -760,7 +760,7 @@ var je = l(function({ isOpen: l, onClose: m }) {
760
760
  /* @__PURE__ */ k(E, {
761
761
  value: "data",
762
762
  className: "mt-0 space-y-4",
763
- children: N && /* @__PURE__ */ A(we, { children: [
763
+ children: N && /* @__PURE__ */ A(Te, { children: [
764
764
  (() => {
765
765
  let e = s({
766
766
  dataSinkId: N.dataSinkId,
@@ -771,22 +771,22 @@ var je = l(function({ isOpen: l, onClose: m }) {
771
771
  }
772
772
  }), t = c({
773
773
  binding: e,
774
- loading: Be,
775
- error: Ue,
776
- preview: Ve,
777
- previewComplete: He
774
+ loading: He,
775
+ error: Ge,
776
+ preview: Ue,
777
+ previewComplete: We
778
778
  });
779
- return /* @__PURE__ */ k(ce, {
779
+ return /* @__PURE__ */ k(le, {
780
780
  consoleId: z?.dashboardId || "",
781
781
  binding: e,
782
- dataSinkKey: Re,
782
+ dataSinkKey: Be,
783
783
  dataPath: typeof N.config.dataPath == "string" ? N.config.dataPath : void 0,
784
784
  status: t.status,
785
785
  missingFields: t.missingFields,
786
- preview: Ve,
787
- error: Ue,
788
- onDataSinkChange: rt,
789
- onParserChange: it,
786
+ preview: Ue,
787
+ error: Ge,
788
+ onDataSinkChange: at,
789
+ onParserChange: ot,
790
790
  onDataPathChange: (e) => $({
791
791
  ...N.config,
792
792
  dataPath: e
@@ -827,7 +827,7 @@ var je = l(function({ isOpen: l, onClose: m }) {
827
827
  boxShadow: "var(--shadow-elevation-3)",
828
828
  borderRadius: "var(--radius-button)"
829
829
  },
830
- children: Ee.map((e) => /* @__PURE__ */ k(S, {
830
+ children: De.map((e) => /* @__PURE__ */ k(S, {
831
831
  value: e.value,
832
832
  children: e.label
833
833
  }, e.value))
@@ -1070,13 +1070,13 @@ var je = l(function({ isOpen: l, onClose: m }) {
1070
1070
  value: "advanced",
1071
1071
  className: "mt-0 space-y-6",
1072
1072
  children: [
1073
- N && /* @__PURE__ */ k(ae, {
1073
+ N && /* @__PURE__ */ k(oe, {
1074
1074
  renderer: N.renderer,
1075
- rendererOptions: Te,
1075
+ rendererOptions: Ee,
1076
1076
  onRendererChange: (e) => {
1077
1077
  Q("renderer", e), e === "BIGCONSOLE" && Q("template", void 0);
1078
1078
  },
1079
- templateEditor: N.renderer === "BIGCONSOLE" ? void 0 : /* @__PURE__ */ k(ke, {
1079
+ templateEditor: N.renderer === "BIGCONSOLE" ? void 0 : /* @__PURE__ */ k(Ae, {
1080
1080
  widget: {
1081
1081
  ...z,
1082
1082
  template: N.template,
@@ -1097,23 +1097,23 @@ var je = l(function({ isOpen: l, onClose: m }) {
1097
1097
  children: "Configure buttons on this widget"
1098
1098
  })] }), /* @__PURE__ */ A(_, {
1099
1099
  size: "sm",
1100
- onClick: Ze,
1101
- children: [/* @__PURE__ */ k(pe, { className: "size-4" }), "Add"]
1100
+ onClick: $e,
1101
+ children: [/* @__PURE__ */ k(me, { className: "size-4" }), "Add"]
1102
1102
  })]
1103
1103
  }), J ? /* @__PURE__ */ k("div", {
1104
1104
  className: "flex justify-center py-8",
1105
1105
  children: /* @__PURE__ */ k(T, { className: "size-6" })
1106
1106
  }) : q.length === 0 ? /* @__PURE__ */ A("div", {
1107
1107
  className: "py-8 text-center",
1108
- children: [/* @__PURE__ */ k(h, { className: "size-10 mx-auto mb-2 text-text-secondary/50" }), /* @__PURE__ */ k("p", {
1108
+ children: [/* @__PURE__ */ k(fe, { className: "size-10 mx-auto mb-2 text-text-secondary/50" }), /* @__PURE__ */ k("p", {
1109
1109
  className: "text-sm text-text-secondary",
1110
1110
  children: "No actions configured"
1111
1111
  })]
1112
1112
  }) : /* @__PURE__ */ k("div", {
1113
1113
  className: "space-y-2",
1114
- children: [...q].sort((e, t) => e.order - t.order).map((e, t) => /* @__PURE__ */ k(he, {
1114
+ children: [...q].sort((e, t) => e.order - t.order).map((e, t) => /* @__PURE__ */ k(ge, {
1115
1115
  className: e.disabled ? "opacity-60" : "",
1116
- children: /* @__PURE__ */ A(ge, {
1116
+ children: /* @__PURE__ */ A(_e, {
1117
1117
  className: "p-3 flex items-center gap-2",
1118
1118
  children: [
1119
1119
  /* @__PURE__ */ A("div", {
@@ -1121,14 +1121,14 @@ var je = l(function({ isOpen: l, onClose: m }) {
1121
1121
  children: [/* @__PURE__ */ k(_, {
1122
1122
  variant: "ghost",
1123
1123
  size: "icon-sm",
1124
- onClick: () => tt(t),
1124
+ onClick: () => rt(t),
1125
1125
  disabled: t === 0,
1126
1126
  className: "h-5 w-5",
1127
1127
  children: /* @__PURE__ */ k(de, { className: "size-3" })
1128
1128
  }), /* @__PURE__ */ k(_, {
1129
1129
  variant: "ghost",
1130
1130
  size: "icon-sm",
1131
- onClick: () => nt(t),
1131
+ onClick: () => it(t),
1132
1132
  disabled: t === q.length - 1,
1133
1133
  className: "h-5 w-5",
1134
1134
  children: /* @__PURE__ */ k(ue, { className: "size-3" })
@@ -1138,7 +1138,7 @@ var je = l(function({ isOpen: l, onClose: m }) {
1138
1138
  className: "flex-1 min-w-0",
1139
1139
  children: [/* @__PURE__ */ A("div", {
1140
1140
  className: "flex items-center gap-2",
1141
- children: [/* @__PURE__ */ k("span", { className: `size-2 rounded-full ${De[e.style] || "bg-muted-foreground"}` }), /* @__PURE__ */ k("span", {
1141
+ children: [/* @__PURE__ */ k("span", { className: `size-2 rounded-full ${Oe[e.style] || "bg-muted-foreground"}` }), /* @__PURE__ */ k("span", {
1142
1142
  className: "text-sm font-medium truncate",
1143
1143
  children: e.label
1144
1144
  })]
@@ -1156,13 +1156,13 @@ var je = l(function({ isOpen: l, onClose: m }) {
1156
1156
  children: [/* @__PURE__ */ k(_, {
1157
1157
  variant: "ghost",
1158
1158
  size: "icon-sm",
1159
- onClick: () => Qe(e),
1160
- children: /* @__PURE__ */ k(fe, { className: "size-4" })
1159
+ onClick: () => et(e),
1160
+ children: /* @__PURE__ */ k(pe, { className: "size-4" })
1161
1161
  }), /* @__PURE__ */ k(_, {
1162
1162
  variant: "ghost",
1163
1163
  size: "icon-sm",
1164
- onClick: () => et(e.id),
1165
- children: /* @__PURE__ */ k(me, { className: "size-4" })
1164
+ onClick: () => nt(e.id),
1165
+ children: /* @__PURE__ */ k(he, { className: "size-4" })
1166
1166
  })]
1167
1167
  })
1168
1168
  ]
@@ -1175,9 +1175,9 @@ var je = l(function({ isOpen: l, onClose: m }) {
1175
1175
  children: [/* @__PURE__ */ k("h3", {
1176
1176
  className: "text-sm font-semibold text-text-primary",
1177
1177
  children: "Drilldown"
1178
- }), /* @__PURE__ */ k(ie, {
1178
+ }), /* @__PURE__ */ k(ae, {
1179
1179
  widget: z,
1180
- onChange: ct
1180
+ onChange: ut
1181
1181
  })]
1182
1182
  }),
1183
1183
  /* @__PURE__ */ A("section", {
@@ -1185,7 +1185,7 @@ var je = l(function({ isOpen: l, onClose: m }) {
1185
1185
  children: [/* @__PURE__ */ k("h3", {
1186
1186
  className: "text-sm font-semibold text-text-primary",
1187
1187
  children: "Webhooks"
1188
- }), /* @__PURE__ */ k(ne, {
1188
+ }), /* @__PURE__ */ k(re, {
1189
1189
  dashboardId: z.dashboardId,
1190
1190
  widgetId: z.id
1191
1191
  })]
@@ -1195,7 +1195,7 @@ var je = l(function({ isOpen: l, onClose: m }) {
1195
1195
  children: [/* @__PURE__ */ k("h3", {
1196
1196
  className: "text-sm font-semibold text-text-primary",
1197
1197
  children: "Events"
1198
- }), /* @__PURE__ */ k(re, {
1198
+ }), /* @__PURE__ */ k(ie, {
1199
1199
  dashboardId: z.dashboardId,
1200
1200
  widgetId: z.id,
1201
1201
  maxHeight: "calc(100vh - 350px)"
@@ -1206,10 +1206,10 @@ var je = l(function({ isOpen: l, onClose: m }) {
1206
1206
  /* @__PURE__ */ k(E, {
1207
1207
  value: "appearance",
1208
1208
  className: "mt-0",
1209
- children: N && /* @__PURE__ */ k(oe, {
1209
+ children: N && /* @__PURE__ */ k(se, {
1210
1210
  widgetType: z.type,
1211
1211
  config: N.config || {},
1212
- onChange: st
1212
+ onChange: lt
1213
1213
  })
1214
1214
  })
1215
1215
  ]
@@ -1218,7 +1218,7 @@ var je = l(function({ isOpen: l, onClose: m }) {
1218
1218
  className: "flex-1 flex items-center justify-center p-4",
1219
1219
  children: /* @__PURE__ */ A("div", {
1220
1220
  className: "text-center",
1221
- children: [/* @__PURE__ */ k(h, { className: "size-12 mx-auto mb-3 text-text-secondary" }), /* @__PURE__ */ k("p", {
1221
+ children: [/* @__PURE__ */ k(fe, { className: "size-12 mx-auto mb-3 text-text-secondary" }), /* @__PURE__ */ k("p", {
1222
1222
  className: "text-sm text-text-secondary",
1223
1223
  children: "Select a widget to edit"
1224
1224
  })]
@@ -1269,7 +1269,7 @@ var je = l(function({ isOpen: l, onClose: m }) {
1269
1269
  borderRadius: "var(--radius-button)",
1270
1270
  border: "1px solid var(--color-status-success-border, rgba(34, 197, 94, 0.3))"
1271
1271
  },
1272
- children: [/* @__PURE__ */ k(p, { style: {
1272
+ children: [/* @__PURE__ */ k(m, { style: {
1273
1273
  width: "var(--size-icon-sm)",
1274
1274
  height: "var(--size-icon-sm)",
1275
1275
  color: "var(--color-status-success-text)",
@@ -1314,7 +1314,7 @@ var je = l(function({ isOpen: l, onClose: m }) {
1314
1314
  gap: "var(--space-controlGap)"
1315
1315
  },
1316
1316
  children: [/* @__PURE__ */ k(_, {
1317
- onClick: at,
1317
+ onClick: st,
1318
1318
  disabled: j === "saving" || !F,
1319
1319
  style: {
1320
1320
  flex: 1,
@@ -1338,14 +1338,14 @@ var je = l(function({ isOpen: l, onClose: m }) {
1338
1338
  alignItems: "center",
1339
1339
  gap: "var(--space-iconGap)"
1340
1340
  },
1341
- children: [/* @__PURE__ */ k(p, { style: {
1341
+ children: [/* @__PURE__ */ k(m, { style: {
1342
1342
  width: "var(--size-icon-sm)",
1343
1343
  height: "var(--size-icon-sm)"
1344
1344
  } }), "Save Changes"]
1345
1345
  })
1346
1346
  }), /* @__PURE__ */ A(_, {
1347
1347
  variant: "outline",
1348
- onClick: ot,
1348
+ onClick: ct,
1349
1349
  disabled: j === "saving" || !F,
1350
1350
  style: {
1351
1351
  height: "var(--size-controlHeight-md)",
@@ -1359,20 +1359,20 @@ var je = l(function({ isOpen: l, onClose: m }) {
1359
1359
  })
1360
1360
  ]
1361
1361
  }),
1362
- /* @__PURE__ */ k(te, {
1363
- isOpen: qe,
1364
- action: Je,
1365
- isLoading: Ye,
1362
+ /* @__PURE__ */ k(ne, {
1363
+ isOpen: Ye,
1364
+ action: Xe,
1365
+ isLoading: Ze,
1366
1366
  onClose: () => {
1367
1367
  X(!1), Z(void 0);
1368
1368
  },
1369
- onSave: $e
1369
+ onSave: tt
1370
1370
  })
1371
1371
  ]
1372
1372
  })
1373
1373
  });
1374
1374
  });
1375
1375
  //#endregion
1376
- export { je as default };
1376
+ export { Me as default };
1377
1377
 
1378
1378
  //# sourceMappingURL=PropertiesPanel.js.map