react-semaphor 0.1.364 → 0.1.366

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 (36) hide show
  1. package/dist/analytics-protocol/index.cjs +1 -1
  2. package/dist/analytics-protocol/index.js +26 -24
  3. package/dist/chunks/{calendar-preferences-dialog-CgBwWqfY.js → calendar-preferences-dialog-BOFlzOJg.js} +1 -1
  4. package/dist/chunks/{dashboard-briefing-launcher-CK_6KGFV.js → dashboard-briefing-launcher-D2lBFqAd.js} +3 -3
  5. package/dist/chunks/{dashboard-controls-CsIEj0Vm.js → dashboard-controls-BIk094Ah.js} +3 -3
  6. package/dist/chunks/{dashboard-json-OhYs9GOx.js → dashboard-json-DImOf512.js} +1 -1
  7. package/dist/chunks/{edit-dashboard-visual-q_XG4oWg.js → edit-dashboard-visual-DTxkV6Fl.js} +3 -3
  8. package/dist/chunks/{index-Ds3_EAla.js → index-BVEIk-rB.js} +5 -5
  9. package/dist/chunks/{resource-management-panel-CYXyE2js.js → resource-management-panel-BOfbSf48.js} +2 -2
  10. package/dist/chunks/{source-identity-qAmkNtEK.js → source-identity-Dj3dryN9.js} +3 -3
  11. package/dist/chunks/{use-create-flow-overlay-state-CRQcqLs3.js → use-create-flow-overlay-state-B5FygfQL.js} +2 -2
  12. package/dist/chunks/{use-visual-utils-CpZplRpR.js → use-visual-utils-CszWnFBW.js} +1 -1
  13. package/dist/chunks/validation-DiCE3_4O.js +1 -0
  14. package/dist/chunks/{validation-B4_hBuYu.js → validation-WGWJOQsV.js} +115 -94
  15. package/dist/chunks/{validators-BnLhuIhd.js → validators-Bxc1OmZK.js} +296 -237
  16. package/dist/chunks/validators-BxhJ_NtM.js +1 -0
  17. package/dist/dashboard/index.js +1 -1
  18. package/dist/dashboard-authoring/index.cjs +3 -3
  19. package/dist/dashboard-authoring/index.js +135 -134
  20. package/dist/data-app-builder/index.js +1 -1
  21. package/dist/data-app-sdk/index.cjs +1 -1
  22. package/dist/data-app-sdk/index.js +3 -3
  23. package/dist/data-app-sdk-validation/index.cjs +1 -1
  24. package/dist/data-app-sdk-validation/index.js +3 -3
  25. package/dist/index.js +5 -5
  26. package/dist/surfboard/index.js +2 -2
  27. package/dist/types/analytics-protocol.d.ts +11 -1
  28. package/dist/types/dashboard-assistant.d.ts +2 -0
  29. package/dist/types/dashboard-authoring.d.ts +7 -1
  30. package/dist/types/data-app-builder.d.ts +2 -0
  31. package/dist/types/data-app-sdk-validation.d.ts +4 -0
  32. package/dist/types/data-app-sdk.d.ts +21 -6
  33. package/dist/types/main.d.ts +2 -0
  34. package/package.json +1 -1
  35. package/dist/chunks/validation-CsK42Vbq.js +0 -1
  36. package/dist/chunks/validators-Cu_w8ZEP.js +0 -1
@@ -1,27 +1,27 @@
1
1
  import { D as B, a as ge } from "../chunks/contracts-CoCOpd_i.js";
2
- import { a as be, b as E, p as Ie } from "../chunks/source-identity-qAmkNtEK.js";
3
- import { v as re, c as ye } from "../chunks/validators-BnLhuIhd.js";
4
- import { b as _e } from "../chunks/catalog-field-grounding-DoEBOXQd.js";
2
+ import { s as be, a as E, p as Ie } from "../chunks/source-identity-Dj3dryN9.js";
3
+ import { v as re, d as ye, n as _e } from "../chunks/validators-Bxc1OmZK.js";
4
+ import { b as we } from "../chunks/catalog-field-grounding-DoEBOXQd.js";
5
5
  function _(e) {
6
6
  return e && typeof e == "object" ? e : null;
7
7
  }
8
8
  function C(e) {
9
9
  return typeof e == "string" ? e : null;
10
10
  }
11
- function we(e) {
11
+ function ve(e) {
12
12
  var t, n, r;
13
13
  return !!(e && typeof e == "object") && (((t = _(e)) == null ? void 0 : t.kind) === "semantic" || ((n = _(e)) == null ? void 0 : n.kind) === "physical" || ((r = _(e)) == null ? void 0 : r.kind) === "sql");
14
14
  }
15
- function V(e) {
16
- return we(e) ? e.kind === "semantic" ? !!(e.domainId && e.datasetName) : e.kind === "physical" ? !!(e.connectionId && e.tableName) : !1 : !1;
15
+ function z(e) {
16
+ return ve(e) ? e.kind === "semantic" ? !!(e.domainId && e.datasetName) : e.kind === "physical" ? !!(e.connectionId && e.tableName) : !1 : !1;
17
17
  }
18
- function _t(e) {
18
+ function wt(e) {
19
19
  return be(e);
20
20
  }
21
21
  function ae(e, t) {
22
22
  return E(e, t);
23
23
  }
24
- function ve(e, t) {
24
+ function Se(e, t) {
25
25
  return Ie(e, t);
26
26
  }
27
27
  function P(e) {
@@ -30,21 +30,21 @@ function P(e) {
30
30
  const r = t.findIndex(
31
31
  (i) => ae(i, n)
32
32
  );
33
- r === -1 ? t.push(n) : t[r] = ve(
33
+ r === -1 ? t.push(n) : t[r] = Se(
34
34
  t[r],
35
35
  n
36
36
  );
37
37
  }
38
38
  return t;
39
39
  }
40
- function wt(e) {
40
+ function vt(e) {
41
41
  return P(e)[0];
42
42
  }
43
- function O(e, t) {
43
+ function L(e, t) {
44
44
  return e.kind !== "semantic" || e.connectionId || (t == null ? void 0 : t.kind) !== "semantic" || !E(e, t) || !t.connectionId ? e : { ...e, connectionId: t.connectionId };
45
45
  }
46
46
  function j(e) {
47
- return V(e) ? e : void 0;
47
+ return z(e) ? e : void 0;
48
48
  }
49
49
  function ne(e, t) {
50
50
  if (!(e.kind !== "semantic" || e.connectionId))
@@ -54,15 +54,15 @@ function ne(e, t) {
54
54
  }
55
55
  function S(e, t) {
56
56
  const n = j(e == null ? void 0 : e.source);
57
- return n ? O(n, t) : void 0;
57
+ return n ? L(n, t) : void 0;
58
58
  }
59
- function Se({
59
+ function Ce({
60
60
  explicitSource: e,
61
61
  field: t,
62
62
  defaultSource: n,
63
63
  fallbackSources: r
64
64
  }) {
65
- const i = [n, ...r || []], a = j(e), o = a ? O(
65
+ const i = [n, ...r || []], a = j(e), o = a ? L(
66
66
  a,
67
67
  ne(a, i)
68
68
  ) : void 0;
@@ -70,7 +70,7 @@ function Se({
70
70
  return o;
71
71
  if (e !== void 0)
72
72
  return;
73
- const d = S(t, n), s = d ? O(
73
+ const d = S(t, n), s = d ? L(
74
74
  d,
75
75
  ne(d, i)
76
76
  ) : void 0;
@@ -79,7 +79,7 @@ function Se({
79
79
  if ((t == null ? void 0 : t.source) === void 0)
80
80
  return j(n);
81
81
  }
82
- function vt(e, t) {
82
+ function St(e, t) {
83
83
  if (!(e != null && e.name) || !(t != null && t.name) || e.name !== t.name)
84
84
  return !1;
85
85
  const n = S(e), r = S(t);
@@ -93,35 +93,35 @@ function ie(e) {
93
93
  var t, n;
94
94
  return k(e) !== "semantic" ? null : ((n = C((t = _(e)) == null ? void 0 : t.domainId)) == null ? void 0 : n.trim()) || null;
95
95
  }
96
- function Ce(e) {
96
+ function ke(e) {
97
97
  var t;
98
98
  return k(e) !== "semantic" ? null : C((t = _(e)) == null ? void 0 : t.datasetName);
99
99
  }
100
- function ke(e) {
100
+ function xe(e) {
101
101
  var t;
102
102
  return k(e) !== "semantic" ? null : C((t = _(e)) == null ? void 0 : t.datasetId);
103
103
  }
104
- function xe(e) {
104
+ function De(e) {
105
105
  var t;
106
106
  return k(e) !== "physical" ? null : C((t = _(e)) == null ? void 0 : t.connectionId);
107
107
  }
108
- function De(e) {
108
+ function Ae(e) {
109
109
  var t;
110
110
  return k(e) !== "physical" ? null : C((t = _(e)) == null ? void 0 : t.tableName);
111
111
  }
112
- function Ae(e) {
112
+ function Fe(e) {
113
113
  var t;
114
114
  return k(e) !== "physical" ? "" : C((t = _(e)) == null ? void 0 : t.databaseName) || "";
115
115
  }
116
- function Fe(e) {
116
+ function Te(e) {
117
117
  var t;
118
118
  return k(e) !== "physical" ? "" : C((t = _(e)) == null ? void 0 : t.schemaName) || "";
119
119
  }
120
- function Te(e) {
120
+ function $e(e) {
121
121
  if (e.analyticsIntent && typeof e.analyticsIntent == "object" && "source" in e.analyticsIntent)
122
122
  return e.analyticsIntent.source;
123
123
  }
124
- function $e({
124
+ function Me({
125
125
  datasets: e,
126
126
  requireAtLeastOne: t
127
127
  }) {
@@ -136,12 +136,12 @@ function H(e, t) {
136
136
  if (!t)
137
137
  return !1;
138
138
  if (t.kind === "semantic") {
139
- const n = ke(e);
140
- return ie(e) === t.domainId ? n && t.datasetId ? n === t.datasetId : Ce(e) === t.datasetName : !1;
139
+ const n = xe(e);
140
+ return ie(e) === t.domainId ? n && t.datasetId ? n === t.datasetId : ke(e) === t.datasetName : !1;
141
141
  }
142
- return t.kind === "physical" ? xe(e) === t.connectionId && De(e) === t.tableName && Ae(e) === (t.databaseName || "") && Fe(e) === (t.schemaName || "") : !1;
142
+ return t.kind === "physical" ? De(e) === t.connectionId && Ae(e) === t.tableName && Fe(e) === (t.databaseName || "") && Te(e) === (t.schemaName || "") : !1;
143
143
  }
144
- function St(e, t) {
144
+ function Ct(e, t) {
145
145
  return e.find(
146
146
  (n) => H(n, t)
147
147
  );
@@ -165,7 +165,7 @@ function oe({
165
165
  }) {
166
166
  if (e.type === "text")
167
167
  return;
168
- const r = Te(e);
168
+ const r = $e(e);
169
169
  if (!r) {
170
170
  if (t.length <= 1)
171
171
  return;
@@ -194,12 +194,12 @@ function q(e) {
194
194
  (t) => !!(t && typeof t == "object")
195
195
  ) : [];
196
196
  }
197
- function Me(e) {
197
+ function Ne(e) {
198
198
  return Array.isArray(e) ? e.filter(
199
199
  (t) => !!(t && typeof t == "object")
200
200
  ) : [];
201
201
  }
202
- function Ne(e) {
202
+ function Be(e) {
203
203
  var n;
204
204
  if (!e)
205
205
  return [];
@@ -210,7 +210,7 @@ function Ne(e) {
210
210
  e.primaryMetric,
211
211
  e.dateField,
212
212
  ...q(e.dimensions),
213
- ...Me(e.filters).map((r) => r.field)
213
+ ...Ne(e.filters).map((r) => r.field)
214
214
  ])
215
215
  ) : e.kind === "records" ? t.push(
216
216
  ...N([
@@ -226,7 +226,7 @@ function se({
226
226
  errors: n
227
227
  }) {
228
228
  if (e.type !== "text") {
229
- for (const r of Ne(e.analyticsIntent))
229
+ for (const r of Be(e.analyticsIntent))
230
230
  if (r && !t.some(
231
231
  (i) => H(i, r)
232
232
  )) {
@@ -263,7 +263,7 @@ function ce({
263
263
  errors: t,
264
264
  requireAtLeastOne: n
265
265
  }) {
266
- const r = $e({
266
+ const r = Me({
267
267
  datasets: e,
268
268
  requireAtLeastOne: n
269
269
  });
@@ -285,7 +285,7 @@ function ce({
285
285
  );
286
286
  }
287
287
  }
288
- function Be(e) {
288
+ function Pe(e) {
289
289
  var f, g;
290
290
  const t = [];
291
291
  if (!e || typeof e != "object")
@@ -368,7 +368,7 @@ function Be(e) {
368
368
  );
369
369
  return { ok: t.length === 0, errors: t, warnings: r };
370
370
  }
371
- function Pe(e) {
371
+ function ze(e) {
372
372
  var o;
373
373
  const t = [];
374
374
  if (!e || typeof e != "object")
@@ -430,7 +430,7 @@ const Ve = {
430
430
  xs: 12,
431
431
  xxs: 6
432
432
  };
433
- function ze(e, t) {
433
+ function qe(e, t) {
434
434
  let n = 0, r = 0, i = 0;
435
435
  return e.map((a) => {
436
436
  const o = Math.min(a.w, t);
@@ -448,22 +448,22 @@ function ze(e, t) {
448
448
  return n += o, i = Math.max(i, a.h), d;
449
449
  });
450
450
  }
451
- function qe(e) {
451
+ function Re(e) {
452
452
  const t = [...e].sort((s, u) => s.priority - u.priority), n = t.filter((s) => s.role === "kpi"), r = t.filter((s) => s.role === "chart"), i = t.filter((s) => s.role === "table"), a = t.filter((s) => s.role === "text"), o = a.slice(0, 1), d = a.slice(o.length);
453
453
  return { kpis: n, introText: o, charts: r, tables: i, supportingText: d };
454
454
  }
455
- function Re(e, t, n) {
455
+ function Oe(e, t, n) {
456
456
  return t === "xxs" || t === "xs" ? n : t === "sm" ? Math.min(12, n) : t === "md" ? e <= 1 || e === 2 ? 18 : 12 : e <= 1 || e === 2 ? 24 : e === 3 ? 16 : 12;
457
457
  }
458
458
  function Le(e, t, n, r) {
459
459
  return n === "xxs" || n === "xs" || n === "sm" || n === "md" || t === 1 || t % 2 === 1 && e === 0 ? r : r / 2;
460
460
  }
461
- function Oe(e) {
461
+ function je(e) {
462
462
  const { item: t, band: n, index: r, bandCount: i, breakpoint: a, columns: o } = e;
463
463
  return n === "kpi" ? {
464
464
  ...t,
465
465
  band: n,
466
- w: Re(i, a, o),
466
+ w: Oe(i, a, o),
467
467
  h: 15,
468
468
  minW: Math.min(6, o),
469
469
  minH: 12
@@ -499,7 +499,7 @@ function Oe(e) {
499
499
  }
500
500
  function D(e, t, n, r) {
501
501
  return e.map(
502
- (i, a) => Oe({
502
+ (i, a) => je({
503
503
  item: i,
504
504
  band: t,
505
505
  index: a,
@@ -510,7 +510,7 @@ function D(e, t, n, r) {
510
510
  );
511
511
  }
512
512
  function K(e) {
513
- const t = qe(e);
513
+ const t = Re(e);
514
514
  return Object.fromEntries(
515
515
  ge.map((n) => {
516
516
  const r = Ve[n], i = [
@@ -520,26 +520,26 @@ function K(e) {
520
520
  ...D(t.tables, "table", n, r),
521
521
  ...D(t.supportingText, "supportingText", n, r)
522
522
  ];
523
- return [n, ze(i, r)];
523
+ return [n, qe(i, r)];
524
524
  })
525
525
  );
526
526
  }
527
- function je(e) {
528
- const t = _e(e);
529
- return t === "datetime" ? "date" : t === "unknown" ? "string" : t;
530
- }
531
527
  function We(e) {
532
- return !!(e && typeof e == "object" && !Array.isArray(e));
528
+ const t = we(e);
529
+ return t === "datetime" ? "date" : t === "unknown" ? "string" : t;
533
530
  }
534
531
  function Ee(e) {
535
- return We(e) && typeof e.filterId == "string" && typeof e.operation == "string" && Array.isArray(e.values);
532
+ return !!(e && typeof e == "object" && !Array.isArray(e));
536
533
  }
537
534
  function He(e) {
535
+ return Ee(e) && typeof e.filterId == "string" && typeof e.operation == "string" && Array.isArray(e.values);
536
+ }
537
+ function Ke(e) {
538
538
  return e.filter(
539
539
  (t) => typeof t == "string" || typeof t == "number"
540
540
  );
541
541
  }
542
- function Ke(e) {
542
+ function Ge(e) {
543
543
  return e.filter(
544
544
  (t) => t instanceof Date || typeof t == "string"
545
545
  );
@@ -547,8 +547,8 @@ function Ke(e) {
547
547
  function G(e, t) {
548
548
  if (t === void 0)
549
549
  return;
550
- const n = je(e.dataType), r = e.operation || "in";
551
- if (Ee(t))
550
+ const n = We(e.dataType), r = e.operation || "in";
551
+ if (He(t))
552
552
  return {
553
553
  ...t,
554
554
  filterId: e.id,
@@ -569,7 +569,7 @@ function G(e, t) {
569
569
  fieldMeta: e.fieldMeta,
570
570
  semanticContext: e.semanticContext
571
571
  };
572
- const i = Array.isArray(t) ? t : [t], a = n === "date" ? Ke(i) : He(i);
572
+ const i = Array.isArray(t) ? t : [t], a = n === "date" ? Ge(i) : Ke(i);
573
573
  if (a.length !== 0 && !((r === "between" || r === "not between") && a.length < 2))
574
574
  return {
575
575
  filterId: e.id,
@@ -585,7 +585,7 @@ function G(e, t) {
585
585
  function le(e, t, n) {
586
586
  return n ? { code: e, message: t, cardId: n } : { code: e, message: t };
587
587
  }
588
- function Ge(e, t, n) {
588
+ function Ue(e, t, n) {
589
589
  const r = (t || []).filter(
590
590
  (i) => i.scope === "card" && i.targetCardId === n
591
591
  ).map((i) => i.field).filter(Boolean);
@@ -604,13 +604,13 @@ function W(e, t) {
604
604
  )
605
605
  );
606
606
  }
607
- function Ue(e, t) {
607
+ function Je(e, t) {
608
608
  if ((e == null ? void 0 : e.kind) !== "cards")
609
609
  return e;
610
610
  const n = W(e.cardIds, t);
611
611
  return n.length > 0 ? { ...e, cardIds: n } : null;
612
612
  }
613
- function Je(e, t) {
613
+ function Qe(e, t) {
614
614
  return !e.applyToCardIds && !e.excludeCardIds ? e : {
615
615
  ...e,
616
616
  ...e.applyToCardIds ? {
@@ -627,12 +627,12 @@ function Je(e, t) {
627
627
  } : {}
628
628
  };
629
629
  }
630
- function Qe(e, t) {
630
+ function Xe(e, t) {
631
631
  const n = {}, r = [];
632
632
  return {
633
633
  inputs: (e.filterInputs || []).flatMap(
634
634
  (a, o) => {
635
- const d = Ue(a.scope, t);
635
+ const d = Je(a.scope, t);
636
636
  if (d === null)
637
637
  return r.push(
638
638
  le(
@@ -663,7 +663,7 @@ function Qe(e, t) {
663
663
  order: o
664
664
  },
665
665
  exports: ["label", "value", "start", "end", "range"],
666
- filter: Je(a.filter, t)
666
+ filter: Qe(a.filter, t)
667
667
  }
668
668
  ];
669
669
  }
@@ -672,9 +672,9 @@ function Qe(e, t) {
672
672
  defaultInputValues: n.shared && Object.keys(n.shared).length > 0 ? n : void 0
673
673
  };
674
674
  }
675
- function Ct(e) {
675
+ function kt(e) {
676
676
  var v, y;
677
- const t = Be(e.plan);
677
+ const t = Pe(e.plan);
678
678
  if (!t.ok)
679
679
  throw new Error(
680
680
  t.errors.map((c) => c.message).join(`
@@ -700,7 +700,7 @@ function Ct(e) {
700
700
  continue;
701
701
  }
702
702
  r.push(...f.warnings || []);
703
- const g = Ge(
703
+ const g = Ue(
704
704
  f.card,
705
705
  e.plan.calculatedFields,
706
706
  c.id
@@ -713,7 +713,7 @@ function Ct(e) {
713
713
  }
714
714
  if (d.length === 0)
715
715
  throw new Error("Dashboard plan did not produce any persistable cards.");
716
- const { inputs: s, defaultInputValues: u, warnings: h } = Qe(e.plan, o);
716
+ const { inputs: s, defaultInputValues: u, warnings: h } = Xe(e.plan, o);
717
717
  r.push(...h);
718
718
  const I = K(
719
719
  n.cards.filter((c) => d.some((f) => f.id === c.frameId)).map((c) => ({
@@ -745,10 +745,10 @@ function Ct(e) {
745
745
  function x(e, t, n) {
746
746
  return n ? { code: e, message: t, cardId: n } : { code: e, message: t };
747
747
  }
748
- function Xe(e) {
748
+ function Ye(e) {
749
749
  return JSON.parse(JSON.stringify(e));
750
750
  }
751
- function Ye(e) {
751
+ function Ze(e) {
752
752
  var t;
753
753
  return (t = e.sheets) == null ? void 0 : t.find(
754
754
  (n) => (n.kind || "dashboard") === "dashboard"
@@ -769,14 +769,14 @@ function ue(e) {
769
769
  const t = (r = (n = e.cards) == null ? void 0 : n[0]) == null ? void 0 : r.type;
770
770
  return t === "kpi" ? "kpi" : t === "table" || t === "detailTable" || t === "pivotTable" ? "table" : t === "text" ? "text" : "chart";
771
771
  }
772
- function Ze(e) {
772
+ function et(e) {
773
773
  var t;
774
774
  return new Map(
775
775
  (((t = e.layouts) == null ? void 0 : t.lg) || []).map((n, r) => [n.i, r])
776
776
  );
777
777
  }
778
778
  function fe(e, t = /* @__PURE__ */ new Map()) {
779
- const n = Ze(e), r = Math.max(
779
+ const n = et(e), r = Math.max(
780
780
  n.size,
781
781
  t.size
782
782
  ), i = (e.frames || []).map(
@@ -788,11 +788,11 @@ function fe(e, t = /* @__PURE__ */ new Map()) {
788
788
  );
789
789
  e.layouts = K(i);
790
790
  }
791
- function et(e) {
791
+ function tt(e) {
792
792
  return Object.values(e.layouts || {}).some((t) => t.length > 0);
793
793
  }
794
- function tt(e, t) {
795
- if (!et(e)) {
794
+ function nt(e, t) {
795
+ if (!tt(e)) {
796
796
  fe(e);
797
797
  return;
798
798
  }
@@ -817,7 +817,7 @@ function tt(e, t) {
817
817
  ];
818
818
  }
819
819
  }
820
- function nt(e, t) {
820
+ function rt(e, t) {
821
821
  var r;
822
822
  const n = G(
823
823
  t.filter,
@@ -831,17 +831,17 @@ function nt(e, t) {
831
831
  }
832
832
  });
833
833
  }
834
- function kt(e) {
834
+ function xt(e) {
835
835
  var d;
836
- const t = Pe(e.changePlan);
836
+ const t = ze(e.changePlan);
837
837
  if (!t.ok)
838
838
  throw new Error(
839
839
  t.errors.map((s) => s.message).join(`
840
840
  `) || "Dashboard change plan is invalid."
841
841
  );
842
- const n = Xe(e.dashboard), r = [...t.warnings], i = [], a = new Map(
842
+ const n = Ye(e.dashboard), r = [...t.warnings], i = [], a = new Map(
843
843
  e.cardArtifacts.map((s) => [s.planCardId, s])
844
- ), o = Ye(n);
844
+ ), o = Ze(n);
845
845
  if (!o)
846
846
  throw new Error("Dashboard has no editable dashboard sheet.");
847
847
  o.frames ?? (o.frames = []);
@@ -880,7 +880,7 @@ function kt(e) {
880
880
  cards: [h.card],
881
881
  activeCardId: h.card.id
882
882
  };
883
- o.frames.push(I), tt(o, I);
883
+ o.frames.push(I), nt(o, I);
884
884
  break;
885
885
  }
886
886
  case "addFilterInput": {
@@ -902,7 +902,7 @@ function kt(e) {
902
902
  exports: ["label", "value", "start", "end", "range"],
903
903
  filter: s.input.filter
904
904
  };
905
- n.inputs.push(u), nt(n, s.input);
905
+ n.inputs.push(u), rt(n, s.input);
906
906
  break;
907
907
  }
908
908
  case "addCalculatedField": {
@@ -1003,12 +1003,12 @@ function A(e) {
1003
1003
  }
1004
1004
  return t;
1005
1005
  }
1006
- function rt(e) {
1006
+ function at(e) {
1007
1007
  var r;
1008
1008
  if (!e)
1009
1009
  return [];
1010
1010
  const t = [];
1011
- if (V(e.source) && t.push(e.source), e.kind === "metric") {
1011
+ if (z(e.source) && t.push(e.source), e.kind === "metric") {
1012
1012
  t.push(...A(e.metrics));
1013
1013
  const i = S(e.dateField);
1014
1014
  i && t.push(i), t.push(...A(e.dimensions)), t.push(
@@ -1030,7 +1030,7 @@ function rt(e) {
1030
1030
  }
1031
1031
  return t;
1032
1032
  }
1033
- function at(e) {
1033
+ function it(e) {
1034
1034
  const t = [];
1035
1035
  for (const n of he(e)) {
1036
1036
  const r = S(n.field);
@@ -1038,19 +1038,19 @@ function at(e) {
1038
1038
  }
1039
1039
  for (const n of U(e))
1040
1040
  for (const r of J(n))
1041
- t.push(...rt(r.analytics));
1041
+ t.push(...at(r.analytics));
1042
1042
  return t;
1043
1043
  }
1044
- function it(e) {
1044
+ function ot(e) {
1045
1045
  var n;
1046
1046
  const t = [];
1047
1047
  for (const r of U(e))
1048
1048
  for (const i of J(r))
1049
- V((n = i.analytics) == null ? void 0 : n.source) && t.push(i.analytics.source);
1049
+ z((n = i.analytics) == null ? void 0 : n.source) && t.push(i.analytics.source);
1050
1050
  return t;
1051
1051
  }
1052
- function ot(e, t) {
1053
- const n = P(e).filter(V);
1052
+ function st(e, t) {
1053
+ const n = P(e).filter(z);
1054
1054
  if (n.length === 0)
1055
1055
  return t.push(
1056
1056
  b(
@@ -1070,9 +1070,9 @@ function ot(e, t) {
1070
1070
  )
1071
1071
  ), [n[0]]) : n;
1072
1072
  }
1073
- function st(e, t) {
1074
- const n = U(e), r = he(e), i = P(at(e)), a = P(
1075
- it(e)
1073
+ function dt(e, t) {
1074
+ const n = U(e), r = he(e), i = P(it(e)), a = P(
1075
+ ot(e)
1076
1076
  );
1077
1077
  return {
1078
1078
  sections: n,
@@ -1080,13 +1080,13 @@ function st(e, t) {
1080
1080
  sources: i,
1081
1081
  primarySources: a,
1082
1082
  defaultSource: a.length === 1 ? a[0] : void 0,
1083
- datasets: ot(i, t)
1083
+ datasets: st(i, t)
1084
1084
  };
1085
1085
  }
1086
- function dt(e) {
1086
+ function ct(e) {
1087
1087
  return e && re(e).ok ? e : void 0;
1088
1088
  }
1089
- function ct(e) {
1089
+ function lt(e) {
1090
1090
  var t;
1091
1091
  switch ((t = e.presentation) == null ? void 0 : t.kind) {
1092
1092
  case "kpi":
@@ -1105,12 +1105,13 @@ function ct(e) {
1105
1105
  return null;
1106
1106
  }
1107
1107
  }
1108
- function lt(e) {
1108
+ function ut(e) {
1109
1109
  var t, n, r;
1110
1110
  return ((t = e.presentation) == null ? void 0 : t.kind) === "kpi" ? "kpi" : ((n = e.presentation) == null ? void 0 : n.kind) === "table" ? "table" : ((r = e.presentation) == null ? void 0 : r.kind) === "text" ? "text" : "chart";
1111
1111
  }
1112
- function ut(e) {
1113
- switch (e) {
1112
+ function ft(e) {
1113
+ const t = _e(e);
1114
+ switch (t) {
1114
1115
  case "not_in":
1115
1116
  return "not in";
1116
1117
  case "not_between":
@@ -1118,17 +1119,17 @@ function ut(e) {
1118
1119
  case "contains":
1119
1120
  return "like";
1120
1121
  default:
1121
- return e || "in";
1122
+ return t || "in";
1122
1123
  }
1123
1124
  }
1124
- function ft(e) {
1125
+ function pt(e) {
1125
1126
  return T(e.field) ? e.field.dataType === "datetime" ? "date" : e.field.dataType || "string" : "string";
1126
1127
  }
1127
- function pt(e) {
1128
+ function ht(e) {
1128
1129
  if (!(!e || e.kind !== "physical"))
1129
1130
  return [e.databaseName, e.schemaName, e.tableName].filter(Boolean).join(".");
1130
1131
  }
1131
- function ht(e, t, n, r, i, a) {
1132
+ function mt(e, t, n, r, i, a) {
1132
1133
  if (e.kind !== "filter")
1133
1134
  return a.push(
1134
1135
  b(
@@ -1143,7 +1144,7 @@ function ht(e, t, n, r, i, a) {
1143
1144
  `Filter "${e.label || e.id}" needs a field before the dashboard compiler can materialize it.`
1144
1145
  )
1145
1146
  ), null;
1146
- const o = Se({
1147
+ const o = Ce({
1147
1148
  explicitSource: void 0,
1148
1149
  field: e.field,
1149
1150
  defaultSource: t,
@@ -1165,10 +1166,10 @@ function ht(e, t, n, r, i, a) {
1165
1166
  connectionId: d,
1166
1167
  title: e.label,
1167
1168
  column: e.field.name,
1168
- dataType: ft(e),
1169
- qualifiedTableName: pt(o),
1169
+ dataType: pt(e),
1170
+ qualifiedTableName: ht(o),
1170
1171
  sql: "",
1171
- operation: ut(e.operator),
1172
+ operation: ft(e.operator),
1172
1173
  type: e.multi === !1 ? "single" : "multiple",
1173
1174
  location: "dashboard",
1174
1175
  displayMode: "toolbar",
@@ -1195,7 +1196,7 @@ function ht(e, t, n, r, i, a) {
1195
1196
  )
1196
1197
  };
1197
1198
  }
1198
- function L(e) {
1199
+ function O(e) {
1199
1200
  const t = [], n = [];
1200
1201
  for (const r of e.viewIds) {
1201
1202
  const i = e.viewIdToCardId.get(r);
@@ -1208,7 +1209,7 @@ function L(e) {
1208
1209
  )
1209
1210
  ), Array.from(new Set(t));
1210
1211
  }
1211
- function mt(e) {
1212
+ function gt(e) {
1212
1213
  var r, i;
1213
1214
  if (!e.protocolScope) {
1214
1215
  const a = Array.from(new Set(e.boundCardIds));
@@ -1218,7 +1219,7 @@ function mt(e) {
1218
1219
  if (!((r = e.protocolScope.excludeViewIds) != null && r.length))
1219
1220
  return;
1220
1221
  const a = new Set(
1221
- L({
1222
+ O({
1222
1223
  inputLabel: e.inputLabel,
1223
1224
  viewIds: e.protocolScope.excludeViewIds,
1224
1225
  viewIdToCardId: e.viewIdToCardId,
@@ -1231,7 +1232,7 @@ function mt(e) {
1231
1232
  };
1232
1233
  }
1233
1234
  if (e.protocolScope.level === "view") {
1234
- const a = L({
1235
+ const a = O({
1235
1236
  inputLabel: e.inputLabel,
1236
1237
  viewIds: e.protocolScope.viewIds,
1237
1238
  viewIdToCardId: e.viewIdToCardId,
@@ -1255,7 +1256,7 @@ function mt(e) {
1255
1256
  if (!((i = e.protocolScope.excludeViewIds) != null && i.length))
1256
1257
  return { kind: "cards", cardIds: t };
1257
1258
  const n = new Set(
1258
- L({
1259
+ O({
1259
1260
  inputLabel: e.inputLabel,
1260
1261
  viewIds: e.protocolScope.excludeViewIds,
1261
1262
  viewIdToCardId: e.viewIdToCardId,
@@ -1267,20 +1268,20 @@ function mt(e) {
1267
1268
  cardIds: t.filter((a) => !n.has(a))
1268
1269
  };
1269
1270
  }
1270
- function xt(e) {
1271
+ function Dt(e) {
1271
1272
  var v, y, c;
1272
1273
  const t = [], n = ye(e);
1273
1274
  for (const f of n.warnings)
1274
1275
  t.push(b(f.code, f.message));
1275
1276
  for (const f of n.errors)
1276
1277
  t.push(b(f.code, f.message));
1277
- const r = st(e, t), i = [], a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
1278
+ const r = dt(e, t), i = [], a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
1278
1279
  let h = 0;
1279
1280
  for (const [f, g] of r.sections.entries()) {
1280
1281
  const l = typeof g.title == "string" ? g.title : `Section ${f + 1}`, Q = g.id || F(l, `section-${f + 1}`);
1281
1282
  o.set(Q, []);
1282
1283
  for (const [X, m] of J(g).entries()) {
1283
- const Y = ct(m), z = F(
1284
+ const Y = lt(m), V = F(
1284
1285
  m.id || `${l}-${m.title || `View ${X + 1}`}`,
1285
1286
  `card-${f + 1}-${X + 1}`
1286
1287
  );
@@ -1289,7 +1290,7 @@ function xt(e) {
1289
1290
  b(
1290
1291
  "unsupported_presentation",
1291
1292
  `Dashboard presentation "${((v = m.presentation) == null ? void 0 : v.kind) || "unknown"}" is not supported by the dashboard authoring adapter.`,
1292
- `card-${z}`
1293
+ `card-${V}`
1293
1294
  )
1294
1295
  );
1295
1296
  continue;
@@ -1299,12 +1300,12 @@ function xt(e) {
1299
1300
  b(
1300
1301
  "sql_intent_deferred",
1301
1302
  "SQL analytics intent is valid protocol, but the current dashboard authoring adapter only materializes semantic and physical config-card intents.",
1302
- `card-${z}`
1303
+ `card-${V}`
1303
1304
  )
1304
1305
  );
1305
1306
  continue;
1306
1307
  }
1307
- const Z = pe(z, s), $ = `card-${Z}`;
1308
+ const Z = pe(V, s), $ = `card-${Z}`;
1308
1309
  m.id && a.set(m.id, $), (c = o.get(Q)) == null || c.push($);
1309
1310
  const me = m.analytics && "inputs" in m.analytics ? m.analytics.inputs : void 0;
1310
1311
  for (const ee of me || []) {
@@ -1317,16 +1318,16 @@ function xt(e) {
1317
1318
  title: m.title,
1318
1319
  description: m.description,
1319
1320
  type: Y,
1320
- role: lt(m),
1321
+ role: ut(m),
1321
1322
  priority: h,
1322
1323
  section: l,
1323
- analyticsIntent: dt(m.analytics),
1324
+ analyticsIntent: ct(m.analytics),
1324
1325
  text: m.text
1325
1326
  }), h += 1;
1326
1327
  }
1327
1328
  }
1328
1329
  const I = r.inputs.map((f) => {
1329
- const g = mt({
1330
+ const g = gt({
1330
1331
  protocolScope: f.scope,
1331
1332
  inputLabel: f.label,
1332
1333
  allCardIds: i.map((l) => l.id),
@@ -1335,7 +1336,7 @@ function xt(e) {
1335
1336
  sectionIdToCardIds: o,
1336
1337
  warnings: t
1337
1338
  });
1338
- return g === null ? null : ht(
1339
+ return g === null ? null : mt(
1339
1340
  f,
1340
1341
  r.defaultSource,
1341
1342
  r.sources,
@@ -1367,24 +1368,24 @@ function xt(e) {
1367
1368
  export {
1368
1369
  ge as DASHBOARD_AUTHORING_BREAKPOINTS,
1369
1370
  B as DASHBOARD_AUTHORING_MAX_GENERATED_CARDS,
1370
- kt as applyDashboardChangePlan,
1371
- Ct as compileDashboardFromPlan,
1371
+ xt as applyDashboardChangePlan,
1372
+ kt as compileDashboardFromPlan,
1372
1373
  K as compileResponsiveDashboardLayouts,
1373
1374
  H as dashboardAuthoringDatasetMatchesSource,
1374
- vt as dashboardAuthoringFieldsReferToSameTarget,
1375
+ St as dashboardAuthoringFieldsReferToSameTarget,
1375
1376
  S as dashboardAuthoringSourceFromField,
1376
- _t as dashboardAuthoringSourceKey,
1377
+ wt as dashboardAuthoringSourceKey,
1377
1378
  ae as dashboardAuthoringSourcesReferToSameDataset,
1378
- xt as dashboardPlanFromSemaphorDashboardIntent,
1379
- St as findDashboardAuthoringDatasetForSource,
1380
- Te as getDashboardAuthoringCardSource,
1381
- V as isMaterializableDashboardAuthoringSource,
1382
- we as isSemaphorSourceRef,
1379
+ Dt as dashboardPlanFromSemaphorDashboardIntent,
1380
+ Ct as findDashboardAuthoringDatasetForSource,
1381
+ $e as getDashboardAuthoringCardSource,
1382
+ z as isMaterializableDashboardAuthoringSource,
1383
+ ve as isSemaphorSourceRef,
1383
1384
  P as mergeDashboardAuthoringSources,
1384
- ve as preferDashboardAuthoringSourceMetadata,
1385
- wt as preferredDashboardAuthoringSource,
1386
- Se as resolveDashboardAuthoringSource,
1387
- $e as validateDashboardAuthoringDatasetScope,
1388
- Pe as validateDashboardChangePlan,
1389
- Be as validateDashboardPlan
1385
+ Se as preferDashboardAuthoringSourceMetadata,
1386
+ vt as preferredDashboardAuthoringSource,
1387
+ Ce as resolveDashboardAuthoringSource,
1388
+ Me as validateDashboardAuthoringDatasetScope,
1389
+ ze as validateDashboardChangePlan,
1390
+ Pe as validateDashboardPlan
1390
1391
  };