@burdenoff/microfe-bigconsole 2026.1119.7 → 2026.1119.9

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 (38) hide show
  1. package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +129 -117
  2. package/dist/bigconsole/components/embed/widgets/ChartEmbed.js +70 -66
  3. package/dist/bigconsole/components/insights/GeneratedFormattingReview.d.ts +21 -0
  4. package/dist/bigconsole/components/insights/GeneratedFormattingReview.js +90 -44
  5. package/dist/bigconsole/components/parser/ParserCard.d.ts +3 -1
  6. package/dist/bigconsole/components/parser/ParserCard.js +125 -120
  7. package/dist/bigconsole/components/parser/ParserScopeBadge.d.ts +6 -0
  8. package/dist/bigconsole/components/parser/ParserScopeBadge.js +23 -0
  9. package/dist/bigconsole/components/widgets/chart/ChartWidget.js +1 -0
  10. package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +5 -1
  11. package/dist/bigconsole/components/widgets/chart/charts/AreaChart.js +4 -1
  12. package/dist/bigconsole/components/widgets/chart/charts/BarChart.js +53 -45
  13. package/dist/bigconsole/components/widgets/chart/charts/ComboChart.js +5 -1
  14. package/dist/bigconsole/components/widgets/chart/charts/LineChart.js +4 -1
  15. package/dist/bigconsole/components/widgets/chart/charts/referenceElements.d.ts +13 -11
  16. package/dist/bigconsole/components/widgets/chart/charts/referenceElements.js +58 -29
  17. package/dist/bigconsole/components/widgets/chart/charts/types.d.ts +8 -1
  18. package/dist/bigconsole/components/widgets/chart/referenceLineDraft.js +26 -23
  19. package/dist/bigconsole/components/widgets/utils/conditionalFormat.d.ts +41 -0
  20. package/dist/bigconsole/components/widgets/utils/conditionalFormat.js +80 -44
  21. package/dist/bigconsole/hooks/useExportDashboard.d.ts +14 -2
  22. package/dist/bigconsole/hooks/useExportDashboard.js +45 -41
  23. package/dist/bigconsole/hooks/useParserOperations.d.ts +6 -0
  24. package/dist/bigconsole/hooks/useParserOperations.js +64 -65
  25. package/dist/bigconsole/pages/DataParsersPage.js +201 -172
  26. package/dist/bigconsole/pages/InsightsPage.js +458 -451
  27. package/dist/bigconsole/store/parserScope.js +9 -6
  28. package/dist/bigconsole/types/index.d.ts +16 -0
  29. package/dist/bigconsole/utils/parserScopeFilter.d.ts +14 -0
  30. package/dist/bigconsole/utils/parserScopeFilter.js +25 -0
  31. package/dist/bigconsole/utils/pipelineExecutionTimeline.d.ts +13 -1
  32. package/dist/bigconsole/utils/pipelineExecutionTimeline.js +26 -3
  33. package/dist/generated/global-operations.d.ts +45 -6
  34. package/dist/generated/global-types.d.ts +5839 -804
  35. package/dist/generated/wspace-operations.d.ts +48 -1
  36. package/dist/generated/wspace-operations.js +86 -7
  37. package/dist/generated/wspace-types.d.ts +1339 -6
  38. package/package.json +1 -1
@@ -1,18 +1,20 @@
1
1
  import { ReactElement } from 'react';
2
- import { SemanticIntent } from '../../utils/conditionalFormat';
3
- export interface ReferenceLineConfig {
4
- axis?: 'x' | 'y';
5
- value: number;
6
- value2?: number;
7
- label?: string;
8
- color?: SemanticIntent;
9
- dashed?: boolean;
2
+ import { ChartData, ReferenceLineConfig } from './types';
3
+ export type { ReferenceLineConfig };
4
+ export interface ReferenceElementOptions {
5
+ /** Axis id for dual-axis charts (defaults to the default axis, id 0). */
6
+ yAxisId?: string | number;
7
+ /**
8
+ * Category rows and their x key. A line drawn `relativeTo` a field needs
9
+ * them to place one marker per category; without them it is not drawn,
10
+ * never drawn at its raw value as if it were absolute (BOFF-10145).
11
+ */
12
+ data?: readonly ChartData[];
13
+ xAxisKey?: string;
10
14
  }
11
15
  /**
12
16
  * Build reference line/band elements for a cartesian chart.
13
17
  * `yAxisId` lets dual-axis charts target the correct axis (defaults to the
14
18
  * default axis, id 0).
15
19
  */
16
- export declare function buildReferenceElements(referenceLines: ReferenceLineConfig[] | undefined, opts?: {
17
- yAxisId?: string | number;
18
- }): ReactElement[];
20
+ export declare function buildReferenceElements(referenceLines: ReferenceLineConfig[] | undefined, opts?: ReferenceElementOptions): ReactElement[];
@@ -1,50 +1,79 @@
1
- import { intentToCssVar as e } from "../../utils/conditionalFormat.js";
2
- import { jsx as t } from "react/jsx-runtime";
3
- import { ReferenceArea as n, ReferenceLine as r } from "recharts";
1
+ import { intentToCssVar as e, relativeThreshold as t } from "../../utils/conditionalFormat.js";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ import { ReferenceArea as r, ReferenceDot as i, ReferenceLine as a } from "recharts";
4
4
  // src/bigconsole/components/widgets/chart/charts/referenceElements.tsx
5
- function i(i, a) {
6
- return i?.length ? i.map((i, o) => {
7
- let s = e(i.color ?? "danger"), c = (i.axis ?? "y") === "y", l = a?.yAxisId ?? 0;
8
- if (i.value2 != null) {
9
- let e = Math.min(i.value, i.value2), r = Math.max(i.value, i.value2);
10
- return /* @__PURE__ */ t(n, {
11
- ...c ? {
5
+ function o(e, r, a, o, s) {
6
+ let c = e.relativeTo, l = s?.xAxisKey;
7
+ if (!c || !s?.data || !l || (e.axis ?? "y") !== "y" || e.value2 != null) return [];
8
+ let u = [];
9
+ return s.data.forEach((s, d) => {
10
+ let f = s[l], p = t(s[c.field], e.value, c.mode);
11
+ f !== void 0 && p != null && u.push(/* @__PURE__ */ n(i, {
12
+ x: f,
13
+ y: p,
14
+ r: 5,
15
+ xAxisId: o.xAxisId,
16
+ yAxisId: o.yAxisId,
17
+ ifOverflow: "extendDomain",
18
+ fill: a,
19
+ stroke: "var(--color-bg-surface)",
20
+ strokeWidth: 1.5,
21
+ label: e.label && u.length === 0 ? {
22
+ value: e.label,
23
+ fill: a,
24
+ fontSize: 11,
25
+ position: "top"
26
+ } : void 0
27
+ }, `ref-rel-${r}-${d}`));
28
+ }), u;
29
+ }
30
+ function s(t, i) {
31
+ return t?.length ? t.flatMap((t, s) => {
32
+ let c = e(t.color ?? "danger"), l = (t.axis ?? "y") === "y", u = i?.yAxisId ?? 0;
33
+ if (t.relativeTo) return o(t, s, c, {
34
+ xAxisId: 0,
35
+ yAxisId: u
36
+ }, i);
37
+ if (t.value2 != null) {
38
+ let e = Math.min(t.value, t.value2), i = Math.max(t.value, t.value2);
39
+ return /* @__PURE__ */ n(r, {
40
+ ...l ? {
12
41
  y1: e,
13
- y2: r
42
+ y2: i
14
43
  } : {
15
44
  x1: e,
16
- x2: r
45
+ x2: i
17
46
  },
18
47
  xAxisId: 0,
19
- yAxisId: l,
48
+ yAxisId: u,
20
49
  ifOverflow: "extendDomain",
21
- fill: s,
50
+ fill: c,
22
51
  fillOpacity: .1,
23
- stroke: s,
52
+ stroke: c,
24
53
  strokeOpacity: .3,
25
- label: i.label ? {
26
- value: i.label,
27
- fill: s,
54
+ label: t.label ? {
55
+ value: t.label,
56
+ fill: c,
28
57
  fontSize: 11,
29
58
  position: "insideTopLeft"
30
59
  } : void 0
31
- }, `ref-band-${o}`);
60
+ }, `ref-band-${s}`);
32
61
  }
33
- return /* @__PURE__ */ t(r, {
34
- ...c ? { y: i.value } : { x: i.value },
62
+ return /* @__PURE__ */ n(a, {
63
+ ...l ? { y: t.value } : { x: t.value },
35
64
  xAxisId: 0,
36
- yAxisId: l,
65
+ yAxisId: u,
37
66
  ifOverflow: "extendDomain",
38
- stroke: s,
67
+ stroke: c,
39
68
  strokeWidth: 1.5,
40
- strokeDasharray: i.dashed === !1 ? void 0 : "6 4",
41
- label: i.label ? {
42
- value: i.label,
43
- fill: s,
69
+ strokeDasharray: t.dashed === !1 ? void 0 : "6 4",
70
+ label: t.label ? {
71
+ value: t.label,
72
+ fill: c,
44
73
  fontSize: 11,
45
74
  position: "insideTopRight"
46
75
  } : void 0
47
- }, `ref-line-${o}`);
76
+ }, `ref-line-${s}`);
48
77
  }) : [];
49
78
  }
50
- export { i as buildReferenceElements };
79
+ export { s as buildReferenceElements };
@@ -1,4 +1,4 @@
1
- import { SemanticIntent } from '../../utils/conditionalFormat';
1
+ import { ConditionalComparison, ConditionalRule, SemanticIntent } from '../../utils/conditionalFormat';
2
2
  /**
3
3
  * Chart Types
4
4
  *
@@ -13,6 +13,11 @@ export interface ReferenceLineConfig {
13
13
  label?: string;
14
14
  color?: SemanticIntent;
15
15
  dashed?: boolean;
16
+ /**
17
+ * Draw the threshold per category, `value` away from that row's field
18
+ * (e.g. 10% above `budget`), instead of at the absolute `value` (BOFF-10145).
19
+ */
20
+ relativeTo?: ConditionalComparison;
16
21
  }
17
22
  /** Per-series descriptor for combo / dual-axis charts. */
18
23
  export interface SeriesConfig {
@@ -63,6 +68,8 @@ export interface ChartConfig {
63
68
  paddingAngle?: number;
64
69
  /** Reference / threshold lines & bands */
65
70
  referenceLines?: ReferenceLineConfig[];
71
+ /** Rules that recolour matching bars (bar charts, BOFF-10145) */
72
+ conditionalRules?: ConditionalRule[];
66
73
  /** Per-series config for combo / dual-axis charts */
67
74
  series?: SeriesConfig[];
68
75
  /** Enable a secondary (right) Y-axis */
@@ -1,38 +1,41 @@
1
- var e = [
1
+ import { parseComparison as e } from "../utils/conditionalFormat.js";
2
+ var t = [
2
3
  "danger",
3
4
  "warning",
4
5
  "success",
5
6
  "info",
6
7
  "neutral"
7
8
  ];
8
- function t(t) {
9
- return typeof t == "string" && e.includes(t);
10
- }
11
9
  function n(e) {
12
- return typeof e == "number" && Number.isFinite(e) ? e : void 0;
10
+ return typeof e == "string" && t.includes(e);
13
11
  }
14
12
  function r(e) {
15
- if (!Array.isArray(e)) return [];
16
- let r = [];
17
- for (let i of e) {
18
- if (r.length >= 10) break;
19
- if (!i || typeof i != "object") continue;
20
- let e = i, a = n(e.value);
21
- if (a === void 0) continue;
22
- let o = { value: a };
23
- (e.axis === "x" || e.axis === "y") && (o.axis = e.axis);
24
- let s = n(e.value2);
25
- s !== void 0 && (o.value2 = s), typeof e.label == "string" && e.label !== "" && (o.label = e.label), t(e.color) && (o.color = e.color), typeof e.dashed == "boolean" && (o.dashed = e.dashed), r.push(o);
13
+ return typeof e == "number" && Number.isFinite(e) ? e : void 0;
14
+ }
15
+ function i(t) {
16
+ if (!Array.isArray(t)) return [];
17
+ let i = [];
18
+ for (let a of t) {
19
+ if (i.length >= 10) break;
20
+ if (!a || typeof a != "object") continue;
21
+ let t = a, o = r(t.value);
22
+ if (o === void 0) continue;
23
+ let s = e(t.relativeTo);
24
+ if (s === null) continue;
25
+ let c = { value: o };
26
+ (t.axis === "x" || t.axis === "y") && (c.axis = t.axis);
27
+ let l = r(t.value2);
28
+ l !== void 0 && (c.value2 = l), typeof t.label == "string" && t.label !== "" && (c.label = t.label), n(t.color) && (c.color = t.color), typeof t.dashed == "boolean" && (c.dashed = t.dashed), s && (c.relativeTo = s), i.push(c);
26
29
  }
27
- return r;
30
+ return i;
28
31
  }
29
- function i(e) {
32
+ function a(e) {
30
33
  let t = e.trim();
31
34
  if (t === "") return null;
32
35
  let n = Number(t);
33
36
  return Number.isFinite(n) ? n : null;
34
37
  }
35
- function a(e, t = 0) {
38
+ function o(e, t = 0) {
36
39
  return e.length >= 10 ? [...e] : [...e, {
37
40
  axis: "y",
38
41
  value: t,
@@ -40,7 +43,7 @@ function a(e, t = 0) {
40
43
  dashed: !0
41
44
  }];
42
45
  }
43
- function o(e, t, n) {
46
+ function s(e, t, n) {
44
47
  return e.map((e, r) => {
45
48
  if (r !== t) return e;
46
49
  let i = { ...e };
@@ -48,10 +51,10 @@ function o(e, t, n) {
48
51
  return i;
49
52
  });
50
53
  }
51
- function s(e, t) {
54
+ function c(e, t) {
52
55
  return e.filter((e, n) => n !== t);
53
56
  }
54
- function c(e) {
57
+ function l(e) {
55
58
  return e.length > 0 ? [...e] : void 0;
56
59
  }
57
- export { e as REFERENCE_LINE_INTENTS, a as addReferenceLine, r as normalizeReferenceLines, i as parseReferenceValue, s as removeReferenceLine, c as toReferenceLinesConfig, o as updateReferenceLine };
60
+ export { t as REFERENCE_LINE_INTENTS, o as addReferenceLine, i as normalizeReferenceLines, a as parseReferenceValue, c as removeReferenceLine, l as toReferenceLinesConfig, s as updateReferenceLine };
@@ -31,6 +31,19 @@ export interface ConditionalStyle {
31
31
  /** Color intent for the data bar (defaults to `info`). */
32
32
  dataBarColor?: SemanticIntent;
33
33
  }
34
+ /**
35
+ * How a derived rule compares its field with a base field on the same row
36
+ * (BOFF-10145). `percentChange` is (field - base) / |base| × 100, so
37
+ * "over budget by more than 10%" is `{field: 'actual', compareTo: {field:
38
+ * 'budget', mode: 'percentChange'}, operator: 'gt', value: 10}`;
39
+ * `difference` is field - base.
40
+ */
41
+ export type ComparisonMode = 'percentChange' | 'difference';
42
+ export interface ConditionalComparison {
43
+ /** Sibling row key holding the base value (e.g. `budget`). */
44
+ field: string;
45
+ mode: ComparisonMode;
46
+ }
34
47
  export interface ConditionalRule {
35
48
  /** Optional stable id (UI keying). */
36
49
  id?: string;
@@ -52,9 +65,31 @@ export interface ConditionalRule {
52
65
  valueType?: 'constant' | 'field';
53
66
  /** Sibling row key supplying the operand when `valueType === 'field'`. */
54
67
  fieldRef?: string;
68
+ /**
69
+ * Test a value derived from `field` and another row field instead of the raw
70
+ * `field` value. Only numeric operators match a derived value.
71
+ */
72
+ compareTo?: ConditionalComparison;
55
73
  /** Styling applied when the rule matches. */
56
74
  style: ConditionalStyle;
57
75
  }
76
+ /**
77
+ * The derived value a comparison yields, or null when either side is missing,
78
+ * non-numeric, or the percentage base is zero (a change from 0 has no percent).
79
+ */
80
+ export declare function deriveComparison(value: unknown, base: unknown, mode: ComparisonMode): number | null;
81
+ /**
82
+ * Read a stored `{field, mode}` comparison. Returns `undefined` when absent and
83
+ * `null` when malformed, so a caller can drop the rule or line instead of
84
+ * treating a relative threshold as an absolute one.
85
+ */
86
+ export declare function parseComparison(value: unknown): ConditionalComparison | null | undefined;
87
+ /**
88
+ * The value a relative threshold resolves to for one row: `value`% above the
89
+ * base (`percentChange`) or `value` above it (`difference`). The percentage is
90
+ * taken of |base| to match `deriveComparison`. Null when the base is missing.
91
+ */
92
+ export declare function relativeThreshold(base: unknown, value: number, mode: ComparisonMode): number | null;
58
93
  /** Evaluate a single rule against a candidate value. */
59
94
  export declare function evaluateRule(rawValue: unknown, rule: ConditionalRule, rowData?: Record<string, unknown>): boolean;
60
95
  /**
@@ -63,6 +98,12 @@ export declare function evaluateRule(rawValue: unknown, rule: ConditionalRule, r
63
98
  * general to specific. Returns `undefined` when nothing matches.
64
99
  */
65
100
  export declare function resolveConditionalStyle(rawValue: unknown, rules: ConditionalRule[] | undefined, rowData?: Record<string, unknown>): ConditionalStyle | undefined;
101
+ /**
102
+ * Fill for one bar of a series (BOFF-10145). A rule applies to the bar of the
103
+ * series it names (`field`), or to every series' own value when it names none.
104
+ * Returns `undefined` when nothing matches, so the series colour is kept.
105
+ */
106
+ export declare function resolveBarFill(row: Record<string, unknown>, seriesKey: string, rules: ConditionalRule[] | undefined): string | undefined;
66
107
  /** CSS variable for a semantic intent's solid color (charts/SVG). */
67
108
  export declare function intentToCssVar(intent: SemanticIntent): string;
68
109
  /** Build the Tailwind className fragment for a resolved style (DOM cells). */
@@ -8,48 +8,84 @@ function e(e) {
8
8
  return null;
9
9
  }
10
10
  function t(t, n, r) {
11
- let i = n.field != null && r ? r[n.field] : t, a = n.valueType === "field" && n.fieldRef ? r?.[n.fieldRef] : n.value;
12
- switch (n.operator) {
13
- case "isEmpty": return i == null || i === "";
14
- case "isNotEmpty": return i != null && i !== "";
15
- case "contains": return String(i ?? "").toLowerCase().includes(String(a ?? "").toLowerCase());
16
- case "notContains": return !String(i ?? "").toLowerCase().includes(String(a ?? "").toLowerCase());
17
- case "startsWith": return String(i ?? "").toLowerCase().startsWith(String(a ?? "").toLowerCase());
18
- case "endsWith": return String(i ?? "").toLowerCase().endsWith(String(a ?? "").toLowerCase());
11
+ let i = e(t), a = e(n);
12
+ return i == null || a == null ? null : r === "difference" ? i - a : r !== "percentChange" || a === 0 ? null : (i - a) / Math.abs(a) * 100;
13
+ }
14
+ var n = ["percentChange", "difference"];
15
+ function r(e) {
16
+ return typeof e == "string" && n.includes(e);
17
+ }
18
+ function i(e) {
19
+ if (e === void 0) return;
20
+ if (!e || typeof e != "object" || Array.isArray(e)) return null;
21
+ let { field: t, mode: n } = e;
22
+ return typeof t != "string" || t.length === 0 || t.length > 128 || !r(n) ? null : {
23
+ field: t,
24
+ mode: n
25
+ };
26
+ }
27
+ function a(t, n, r) {
28
+ let i = e(t);
29
+ return i == null ? null : r === "difference" ? i + n : i + Math.abs(i) * n / 100;
30
+ }
31
+ function o(n, r, i) {
32
+ if (r.compareTo) {
33
+ if (!i || r.field == null) return !1;
34
+ let e = t(i[r.field], i[r.compareTo.field], r.compareTo.mode);
35
+ return e != null && o(e, {
36
+ ...r,
37
+ field: void 0,
38
+ compareTo: void 0,
39
+ valueType: void 0
40
+ });
41
+ }
42
+ let a = r.field != null && i ? i[r.field] : n, s = r.valueType === "field" && r.fieldRef ? i?.[r.fieldRef] : r.value;
43
+ switch (r.operator) {
44
+ case "isEmpty": return a == null || a === "";
45
+ case "isNotEmpty": return a != null && a !== "";
46
+ case "contains": return String(a ?? "").toLowerCase().includes(String(s ?? "").toLowerCase());
47
+ case "notContains": return !String(a ?? "").toLowerCase().includes(String(s ?? "").toLowerCase());
48
+ case "startsWith": return String(a ?? "").toLowerCase().startsWith(String(s ?? "").toLowerCase());
49
+ case "endsWith": return String(a ?? "").toLowerCase().endsWith(String(s ?? "").toLowerCase());
19
50
  }
20
- if (n.operator === "eq" || n.operator === "neq") {
21
- let t = e(i), r = e(a), o = t != null && r != null ? t === r : String(i ?? "") === String(a ?? "");
22
- return n.operator === "eq" ? o : !o;
51
+ if (r.operator === "eq" || r.operator === "neq") {
52
+ let t = e(a), n = e(s), i = t != null && n != null ? t === n : String(a ?? "") === String(s ?? "");
53
+ return r.operator === "eq" ? i : !i;
23
54
  }
24
- let o = e(i);
25
- if (o == null) return !1;
26
- let s = e(a);
27
- switch (n.operator) {
28
- case "gt": return s != null && o > s;
29
- case "gte": return s != null && o >= s;
30
- case "lt": return s != null && o < s;
31
- case "lte": return s != null && o <= s;
55
+ let c = e(a);
56
+ if (c == null) return !1;
57
+ let l = e(s);
58
+ switch (r.operator) {
59
+ case "gt": return l != null && c > l;
60
+ case "gte": return l != null && c >= l;
61
+ case "lt": return l != null && c < l;
62
+ case "lte": return l != null && c <= l;
32
63
  case "between": {
33
- let t = e(n.value2);
34
- return s == null || t == null ? !1 : o >= Math.min(s, t) && o <= Math.max(s, t);
64
+ let t = e(r.value2);
65
+ return l == null || t == null ? !1 : c >= Math.min(l, t) && c <= Math.max(l, t);
35
66
  }
36
67
  case "outside": {
37
- let t = e(n.value2);
38
- return s == null || t == null ? !1 : o < Math.min(s, t) || o > Math.max(s, t);
68
+ let t = e(r.value2);
69
+ return l == null || t == null ? !1 : c < Math.min(l, t) || c > Math.max(l, t);
39
70
  }
40
71
  default: return !1;
41
72
  }
42
73
  }
43
- function n(e, n, r) {
44
- if (!n?.length) return;
45
- let i;
46
- for (let a of n) t(e, a, r) && (i = {
47
- ...i,
48
- ...a.style
74
+ function s(e, t, n) {
75
+ if (!t?.length) return;
76
+ let r;
77
+ for (let i of t) o(e, i, n) && (r = {
78
+ ...r,
79
+ ...i.style
49
80
  });
50
- return i;
81
+ return r;
51
82
  }
52
- function r(e) {
83
+ function c(e, t, n) {
84
+ if (!n?.length) return;
85
+ let r = n.filter((e) => e.field == null || e.field === t), i = s(e[t], r, e), a = i?.bgColor ?? i?.textColor;
86
+ return a ? l(a) : void 0;
87
+ }
88
+ function l(e) {
53
89
  switch (e) {
54
90
  case "success": return "var(--color-status-success)";
55
91
  case "warning": return "var(--color-status-warning)";
@@ -58,44 +94,44 @@ function r(e) {
58
94
  default: return "var(--color-text-secondary)";
59
95
  }
60
96
  }
61
- var i = {
97
+ var u = {
62
98
  success: "text-status-success-text",
63
99
  warning: "text-[var(--color-status-warning-text)]",
64
100
  danger: "text-status-error-text",
65
101
  info: "text-[var(--color-status-info-text)]",
66
102
  neutral: "text-text-secondary"
67
- }, a = {
103
+ }, d = {
68
104
  success: "bg-status-success-bg-subtle",
69
105
  warning: "bg-status-warning-bg-subtle",
70
106
  danger: "bg-status-error-bg-subtle",
71
107
  info: "bg-status-info-bg-subtle",
72
108
  neutral: "bg-bg-sunken"
73
109
  };
74
- function o(e) {
110
+ function f(e) {
75
111
  if (!e) return "";
76
112
  let t = [];
77
- return e.textColor && t.push(i[e.textColor]), e.bgColor && t.push(a[e.bgColor]), e.bold && t.push("font-semibold"), t.join(" ");
113
+ return e.textColor && t.push(u[e.textColor]), e.bgColor && t.push(d[e.bgColor]), e.bold && t.push("font-semibold"), t.join(" ");
78
114
  }
79
- var s = {
115
+ var p = {
80
116
  success: "bg-status-success-bg-subtle",
81
117
  warning: "bg-status-warning-bg-subtle",
82
118
  danger: "bg-status-error-bg-subtle",
83
119
  info: "bg-status-info-bg-subtle",
84
120
  neutral: "bg-bg-sunken"
85
- }, c = {
121
+ }, m = {
86
122
  success: "border-l-4 border-status-success-border",
87
123
  warning: "border-l-4 border-status-warning-border",
88
124
  danger: "border-l-4 border-status-error-border",
89
125
  info: "border-l-4 border-status-info-border",
90
126
  neutral: "border-l-4 border-border-default"
91
127
  };
92
- function l(e, t) {
93
- let r = n(void 0, t, e);
94
- if (!r) return "";
95
- let a = [], o = r.bgColor ?? r.textColor;
96
- return o && (a.push(s[o]), a.push(c[o])), r.textColor && a.push(i[r.textColor]), r.bold && a.push("font-semibold"), a.join(" ");
128
+ function h(e, t) {
129
+ let n = s(void 0, t, e);
130
+ if (!n) return "";
131
+ let r = [], i = n.bgColor ?? n.textColor;
132
+ return i && (r.push(p[i]), r.push(m[i])), n.textColor && r.push(u[n.textColor]), n.bold && r.push("font-semibold"), r.join(" ");
97
133
  }
98
- var u = {
134
+ var g = {
99
135
  "arrow-up": "M5 15l7-7 7 7",
100
136
  "arrow-down": "M19 9l-7 7-7-7",
101
137
  flag: "M3 21V5a2 2 0 012-2h11l-2 4 2 4H5",
@@ -103,4 +139,4 @@ var u = {
103
139
  alert: "M12 9v4m0 4h.01M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z",
104
140
  dot: "M12 12m-4 0a4 4 0 108 0a4 4 0 10-8 0"
105
141
  };
106
- export { u as CONDITIONAL_ICON_PATHS, o as conditionalStyleToClassName, t as evaluateRule, r as intentToCssVar, n as resolveConditionalStyle, l as resolveRowClassName };
142
+ export { g as CONDITIONAL_ICON_PATHS, f as conditionalStyleToClassName, t as deriveComparison, o as evaluateRule, l as intentToCssVar, i as parseComparison, a as relativeThreshold, c as resolveBarFill, s as resolveConditionalStyle, h as resolveRowClassName };
@@ -4,10 +4,15 @@
4
4
  * Provides dashboard export functionality with file download.
5
5
  */
6
6
  export interface ExportDashboardOptions {
7
- /** Include data source reference information (default: false) */
7
+ /**
8
+ * Write data sink and parser bindings as stable keys (default: false). When
9
+ * false the file carries no data source or workspace identifiers at all.
10
+ */
8
11
  includeDataSourceRefs?: boolean;
9
- /** Include webhook mappings (default: false) */
12
+ /** Include webhook mappings (default: false). Needs an export consent grant. */
10
13
  includeWebhookMappings?: boolean;
14
+ /** Write the `exportedAt` timestamp (default: true). Off gives diff-stable files. */
15
+ includeExportedAt?: boolean;
11
16
  /** Pretty print JSON output (default: true) */
12
17
  prettyPrint?: boolean;
13
18
  /** Exact reviewed document to download, without another server export. */
@@ -25,5 +30,12 @@ export interface UseExportDashboardResult {
25
30
  /** Clear error */
26
31
  clearError: () => void;
27
32
  }
33
+ /** The `BigConsoleExportDashboardOptions` input for a set of dialog options, with the server defaults filled in. */
34
+ export declare function exportOptionsInput(options: ExportDashboardOptions): {
35
+ includeDataSourceRefs: boolean;
36
+ includeWebhookMappings: boolean;
37
+ includeExportedAt: boolean;
38
+ prettyPrint: boolean;
39
+ };
28
40
  export declare function useExportDashboard(): UseExportDashboardResult;
29
41
  export default useExportDashboard;