react-semaphor 0.1.583 → 0.1.584

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 (86) hide show
  1. package/dist/analytics-protocol/index.js +183 -178
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +7 -7
  4. package/dist/briefings/index.js +4 -4
  5. package/dist/chunks/aggregate-measure-field-DsFXETpI.js +22 -0
  6. package/dist/chunks/{assistant-chat-D3fm5qod.js → assistant-chat-nmycV1Se.js} +12 -12
  7. package/dist/chunks/{bookmark-impact-Dpxl46Wd.js → bookmark-impact-CI3gmxi0.js} +2 -2
  8. package/dist/chunks/{bookmark-state-BEl_G9vr.js → bookmark-state-D9-RFkDg.js} +22 -22
  9. package/dist/chunks/{card-filter-builder-IxkFVxy2.js → card-filter-builder-C7QyPqRy.js} +145 -145
  10. package/dist/chunks/{comparison-window-caption-sRFtnX1q.js → comparison-window-caption-BAnsTI8y.js} +291 -305
  11. package/dist/chunks/{dashboard-briefing-launcher-D45YfCkm.js → dashboard-briefing-launcher-DXs0XA1O.js} +13 -13
  12. package/dist/chunks/{dashboard-controls-DOvZRfof.js → dashboard-controls-6Zoo8d8Y.js} +84 -84
  13. package/dist/chunks/{dashboard-BMqG98fc.js → dashboard-inJy_V78.js} +1 -1
  14. package/dist/chunks/{dashboard-json-B_4TqF_o.js → dashboard-json-D5eJhVA9.js} +4 -4
  15. package/dist/chunks/{dates-44_rcNj2.js → dates-B3_GWc_Y.js} +8 -8
  16. package/dist/chunks/{edit-dashboard-visual-BBPKJWSe.js → edit-dashboard-visual-DR03SYeW.js} +17 -17
  17. package/dist/chunks/{filter-reach-copy-DWPq4Swi.js → filter-reach-copy-CZwzrxBp.js} +1391 -1228
  18. package/dist/chunks/{filter-value-text-DXGYypEd.js → filter-value-text-DtOvqcjn.js} +8 -8
  19. package/dist/chunks/{index-DPRzcFp0.js → index-BgT1L0p5.js} +5 -5
  20. package/dist/chunks/{layout-grid-8rR-LPTk.js → layout-grid-9nSS2SL-.js} +1 -1
  21. package/dist/chunks/{list-filter-C1-uTgjR.js → list-filter-CfMPI6v4.js} +1 -1
  22. package/dist/chunks/{matrix-analytical-definition-D_HgptqZ.js → matrix-analytical-definition-Cs2v43FM.js} +2 -2
  23. package/dist/chunks/{matrix-member-presentation-DRa-9e6Q.js → matrix-member-presentation-BKDyxJho.js} +1 -1
  24. package/dist/chunks/{matrix-operation-contract-DCVinw1o.js → matrix-operation-contract-BM5TveR3.js} +153 -147
  25. package/dist/chunks/{metric-comparison-n9NsIa-2.js → metric-comparison-Be4uS3Ql.js} +1 -1
  26. package/dist/chunks/{paintbrush-aR17Z3C9.js → paintbrush-LzAje2ff.js} +1 -1
  27. package/dist/chunks/{palette-a5FCZKFI.js → palette-DicJG0TC.js} +1 -1
  28. package/dist/chunks/{pivot-header-presentation-MvvlxtIB.js → pivot-header-presentation-uH06jiZD.js} +1 -1
  29. package/dist/chunks/{pivot-result-contract-expectations-8tuNjRvG.js → pivot-result-contract-expectations-DvZY4eJM.js} +779 -765
  30. package/dist/chunks/{pivot-result-identity-B89X5xjb.js → pivot-result-identity-BZexMfmL.js} +1 -1
  31. package/dist/chunks/{report-preferences-dialog-B8PhISua.js → report-preferences-dialog-DWeVe2so.js} +171 -170
  32. package/dist/chunks/{report-runtime-context-BhPzLTbS.js → report-runtime-context-NlOXwyRB.js} +1 -1
  33. package/dist/chunks/{resolve-dashboard-input-context-BfT8y5xL.js → resolve-dashboard-input-context-uATCuOP7.js} +4988 -4892
  34. package/dist/chunks/{save-D985VvYp.js → save-0wu1Z1U7.js} +1 -1
  35. package/dist/chunks/{saved-dashboard-context-DH91-2B9.js → saved-dashboard-context-DSVV9iqW.js} +6 -6
  36. package/dist/chunks/selection-filter-compiler-BReJy-uv.js +92 -0
  37. package/dist/chunks/{semaphor-ready-indicator-Cg_Z2IDc.js → semaphor-ready-indicator-B9vvRMnJ.js} +45953 -44806
  38. package/dist/chunks/{shelf-drop-preview-context-C7-BgcP4.js → shelf-drop-preview-context-BHOnp5Bo.js} +5 -5
  39. package/dist/chunks/{stored-dashboard-BpyCiE49.js → stored-dashboard-xc5iidHL.js} +210 -221
  40. package/dist/chunks/{style-sheet-parts-C7qGZuH1.js → style-sheet-parts-_dGSFzDi.js} +2 -2
  41. package/dist/chunks/{table-export-sheet-wBkk17aa.js → table-export-sheet-Cv_94obr.js} +1 -1
  42. package/dist/chunks/{token-types-iKMplaBL.js → token-types-DEe_FP4l.js} +1 -1
  43. package/dist/chunks/{upload-CiGNKJ_0.js → upload-CtyOkU_B.js} +1 -1
  44. package/dist/chunks/{validators-B8fpdinG.js → validators-CJ8Jh0E8.js} +2 -2
  45. package/dist/chunks/{variable-draft-D8GFhAkm.js → variable-draft-C3CjhsJQ.js} +4 -4
  46. package/dist/dashboard/index.js +2 -2
  47. package/dist/dashboard-authoring/index.js +403 -383
  48. package/dist/format-utils/index.js +140 -140
  49. package/dist/index.js +234 -231
  50. package/dist/report-runtime-context/index.js +1 -1
  51. package/dist/style.css +1 -1
  52. package/dist/surfboard/index.js +2 -2
  53. package/dist/types/components/visual/data-table/types/data-table.d.ts +3 -0
  54. package/dist/types/components/visual/matrix-table/matrix-interaction-actions.d.ts +24 -3
  55. package/dist/types/index.js +5 -5
  56. package/dist/types/lib/hooks/interactions/use-drill-actions.d.ts +1 -1
  57. package/dist/types/lib/interactions/get-click-context-from-chartjs.d.ts +9 -0
  58. package/dist/types/lib/matrix-table/matrix-runtime.d.ts +8 -3
  59. package/dist/types/lib/query-context/compile-selection-filters.d.ts +1 -5
  60. package/dist/types/lib/see-records/click.d.ts +79 -0
  61. package/dist/types/lib/see-records/see-records-offer.d.ts +25 -0
  62. package/dist/types/lib/see-records/use-see-records-offer.d.ts +16 -0
  63. package/dist/types/lib/types/common-types.d.ts +6 -0
  64. package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +7 -0
  65. package/dist/types/shared/analytics-protocol/aggregate-measure-field.d.ts +13 -0
  66. package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
  67. package/dist/types/shared/analytics-protocol/selection-filter-compiler.d.ts +3 -0
  68. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +6 -0
  69. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
  70. package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +1 -1
  71. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -0
  72. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +2 -0
  73. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
  74. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
  75. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  76. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +11 -0
  77. package/dist/types/shared/dashboard-authoring/see-records/availability.d.ts +30 -0
  78. package/dist/types/shared/dashboard-authoring/see-records/click.d.ts +37 -0
  79. package/dist/types/shared/dashboard-authoring/see-records/index.d.ts +12 -0
  80. package/dist/types/shared/dashboard-authoring/see-records/limits.d.ts +18 -0
  81. package/dist/types/shared/dashboard-authoring/see-records/measure-kind.d.ts +46 -0
  82. package/dist/types/shared/dashboard-authoring/see-records/request.d.ts +28 -0
  83. package/dist/types/shared/dashboard-authoring/see-records/result.d.ts +61 -0
  84. package/dist/types/shared/usage-events/envelope.d.ts +4 -4
  85. package/package.json +1 -1
  86. package/dist/chunks/selection-filter-compiler-CUDRnUxc.js +0 -80
@@ -1,4 +1,4 @@
1
- import { c as a } from "./style-sheet-parts-C7qGZuH1.js";
1
+ import { c as a } from "./style-sheet-parts-_dGSFzDi.js";
2
2
  /**
3
3
  * @license lucide-react v0.453.0 - ISC
4
4
  *
@@ -1,13 +1,13 @@
1
1
  var Z = Object.defineProperty;
2
2
  var Q = (e, t, a) => t in e ? Z(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
3
  var F = (e, t, a) => Q(e, typeof t != "symbol" ? t + "" : t, a);
4
- import { A as S, D as U, F as K, G as W } from "./bookmark-state-BEl_G9vr.js";
5
- import { s as X, i as Y, n as ee, f as te, j as ae, l as re, k as ne, m as se, o as oe, p as j, q as ie, t as de, u as le } from "./resolve-dashboard-input-context-BfT8y5xL.js";
6
- import { c as ce, e as L, d as ue, g as me, p as q, j as fe, k as he, r as _, m as O, n as pe, o as be, q as ge } from "./stored-dashboard-BpyCiE49.js";
4
+ import { A as S, D as U, F as K, G as W } from "./bookmark-state-D9-RFkDg.js";
5
+ import { s as X, i as Y, n as ee, f as te, j as ae, l as re, k as ne, m as se, o as oe, p as j, q as ie, t as de, u as le } from "./resolve-dashboard-input-context-uATCuOP7.js";
6
+ import { c as ce, e as L, d as ue, g as me, p as q, j as fe, k as he, r as _, m as O, n as pe, o as be, q as ge } from "./stored-dashboard-xc5iidHL.js";
7
7
  import { f as g, A as P, c as Ce, d as Ie, e as A } from "./context-BTLBjQNh.js";
8
- import { a as ye, T as ve, P as xe, o as I, d as B, b as D } from "./filter-value-text-DXGYypEd.js";
9
- import { r as Ve, a7 as Se } from "./validators-B8fpdinG.js";
10
- import { b as $e } from "./metric-comparison-n9NsIa-2.js";
8
+ import { a as ye, T as ve, P as xe, o as I, d as B, b as D } from "./filter-value-text-DtOvqcjn.js";
9
+ import { r as Ve, a7 as Se } from "./validators-CJ8Jh0E8.js";
10
+ import { b as $e } from "./metric-comparison-Be4uS3Ql.js";
11
11
  function ke(e) {
12
12
  const t = e.qualifiedFieldName || e.name;
13
13
  return e.label && e.label !== t ? `${e.label} (field ${t})` : t;
@@ -0,0 +1,92 @@
1
+ function f(e, r) {
2
+ return {
3
+ id: r,
4
+ field: e.field,
5
+ operator: e.operator,
6
+ value: e.value,
7
+ label: e.label,
8
+ temporalBucket: e.temporalBucket,
9
+ ...e.rawTemporal ? { rawTemporal: e.rawTemporal } : {}
10
+ };
11
+ }
12
+ function p(e) {
13
+ var r;
14
+ return JSON.stringify([
15
+ ((r = e.field) == null ? void 0 : r.id) ?? "",
16
+ e.operator,
17
+ e.value ?? null,
18
+ e.temporalBucket ?? null,
19
+ e.rawTemporal ?? null
20
+ ]);
21
+ }
22
+ function c(e) {
23
+ return JSON.stringify(e.map(p).sort());
24
+ }
25
+ function i(e) {
26
+ const r = /* @__PURE__ */ new Map();
27
+ for (const t of e)
28
+ for (const o of t.tuples) {
29
+ const l = o.conditions.filter(
30
+ (u) => {
31
+ var n;
32
+ return (n = u.field) == null ? void 0 : n.id;
33
+ }
34
+ );
35
+ if (l.length === 0) continue;
36
+ let a = r.get(t.sourceCardId);
37
+ a || (a = /* @__PURE__ */ new Map(), r.set(t.sourceCardId, a));
38
+ const s = [...l].sort(
39
+ (u, n) => p(u).localeCompare(p(n))
40
+ );
41
+ a.set(c(s), s);
42
+ }
43
+ return [...r.entries()].sort(([t], [o]) => t.localeCompare(o)).map(([t, o]) => ({
44
+ sourceCardId: t,
45
+ tuples: [...o.entries()].sort(([l], [a]) => l.localeCompare(a)).map(([, l]) => ({ conditions: l }))
46
+ }));
47
+ }
48
+ function d(e) {
49
+ const r = i(e);
50
+ if (r.length !== 0)
51
+ return {
52
+ id: "selection",
53
+ logicalOperator: "AND",
54
+ negate: !1,
55
+ conditions: [],
56
+ groups: r.map((t) => {
57
+ const o = `selection:${t.sourceCardId}`;
58
+ return {
59
+ id: o,
60
+ logicalOperator: "OR",
61
+ negate: !1,
62
+ conditions: [],
63
+ groups: t.tuples.map((l, a) => {
64
+ const s = `${o}:${a}`;
65
+ return {
66
+ id: s,
67
+ logicalOperator: "AND",
68
+ negate: !1,
69
+ conditions: l.conditions.map((u, n) => ({
70
+ ...u,
71
+ id: `${s}:${n}`
72
+ })),
73
+ groups: []
74
+ };
75
+ })
76
+ };
77
+ })
78
+ };
79
+ }
80
+ function m(e) {
81
+ return JSON.stringify(
82
+ i(e).map((r) => [
83
+ r.sourceCardId,
84
+ r.tuples.map((t) => t.conditions.map(p))
85
+ ])
86
+ );
87
+ }
88
+ export {
89
+ d as c,
90
+ m as s,
91
+ f as t
92
+ };