react-semaphor 0.1.567 → 0.1.569

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/README.md +0 -7
  2. package/dist/analytics-protocol/index.js +434 -454
  3. package/dist/assistant-context/index.js +1 -1
  4. package/dist/brand-studio/index.js +10 -12
  5. package/dist/briefings/index.js +4 -4
  6. package/dist/chunks/{_commonjsHelpers-DimLPMtv.js → _commonjsHelpers-Bid1ZNYj.js} +271 -222
  7. package/dist/chunks/{assistant-chat-D-IuHHwh.js → assistant-chat-Dzf2Mbph.js} +107 -109
  8. package/dist/chunks/{bookmark-impact-B0estCHn.js → bookmark-impact-Czg6FGt5.js} +2 -2
  9. package/dist/chunks/{bookmark-state-Du3s13_V.js → bookmark-state-CflS88gq.js} +251 -250
  10. package/dist/chunks/{card-filter-builder-DbSmzvem.js → card-filter-builder-BS982X7x.js} +1001 -1000
  11. package/dist/chunks/{code-editor-DJNOsgJH.js → code-editor-BsxHzm9u.js} +43 -45
  12. package/dist/chunks/{comparison-window-caption-CMLb3mut.js → comparison-window-caption-lLTgzOkM.js} +252 -253
  13. package/dist/chunks/{dashboard-f8J9DHh5.js → dashboard-BiYSbxZv.js} +1 -1
  14. package/dist/chunks/{dashboard-briefing-launcher-DunvZYsU.js → dashboard-briefing-launcher-Bdj7luOr.js} +119 -120
  15. package/dist/chunks/{dashboard-controls-B09cN2Dz.js → dashboard-controls-TViDsnb8.js} +17 -19
  16. package/dist/chunks/dashboard-json-Dg9dQd9U.js +66 -0
  17. package/dist/chunks/{dates-BsJcyoC_.js → dates-BsPrWZIP.js} +8 -8
  18. package/dist/chunks/{edit-dashboard-visual-Cwzbpty8.js → edit-dashboard-visual-C6hoIeEJ.js} +20 -21
  19. package/dist/chunks/{filter-reach-copy-P-kDwUpY.js → filter-reach-copy-hcQ4os0u.js} +862 -852
  20. package/dist/chunks/filter-value-text-CVxEEDVl.js +146 -0
  21. package/dist/chunks/{index-BcXw0CpM.js → index-G4q89J6O.js} +74 -76
  22. package/dist/chunks/{layout-grid-0hIlqEtk.js → layout-grid-BIcoFfdS.js} +1 -1
  23. package/dist/chunks/{list-filter-DkgoCeBm.js → list-filter-C6tYkHyv.js} +1 -1
  24. package/dist/chunks/matrix-analytical-definition-dkS8szLM.js +1253 -0
  25. package/dist/chunks/matrix-member-presentation-DRa-9e6Q.js +169 -0
  26. package/dist/chunks/{matrix-operation-contract-Eb6elidS.js → matrix-operation-contract-DCVinw1o.js} +122 -122
  27. package/dist/chunks/{metric-comparison-ChXUFaZu.js → metric-comparison-n9NsIa-2.js} +175 -128
  28. package/dist/chunks/{palette-4vf2BEEg.js → palette-NjHOE_6B.js} +1 -1
  29. package/dist/chunks/pivot-result-contract-expectations-DkmueDTW.js +55 -0
  30. package/dist/chunks/{pivot-result-identity-BlbLrqaC.js → pivot-result-identity-B89X5xjb.js} +1 -1
  31. package/dist/chunks/raw-temporal-value-DdT0s47W.js +159 -0
  32. package/dist/chunks/{report-preferences-dialog-CbgmdWeZ.js → report-preferences-dialog-Xc8_GFju.js} +26 -28
  33. package/dist/chunks/{report-runtime-context-DnA_PiKo.js → report-runtime-context-BhPzLTbS.js} +1 -1
  34. package/dist/chunks/{resolve-dashboard-input-context-DPKSF3qj.js → resolve-dashboard-input-context-KqvcLcTM.js} +5956 -5880
  35. package/dist/chunks/{save-D6pHmSSP.js → save-C6VmEJTA.js} +1 -1
  36. package/dist/chunks/{saved-dashboard-context-CNudmm9U.js → saved-dashboard-context-BeXXyoD4.js} +6 -6
  37. package/dist/chunks/{semaphor-ready-indicator-CQd-PCCZ.js → semaphor-ready-indicator-BNkaANsG.js} +31011 -30850
  38. package/dist/chunks/{shelf-drop-preview-context-CWS3e20y.js → shelf-drop-preview-context-C_issPBA.js} +18 -20
  39. package/dist/chunks/{stored-dashboard-CrQFT27O.js → stored-dashboard-B6_StAty.js} +232 -234
  40. package/dist/chunks/{table-export-sheet--DUKWk6o.js → table-export-sheet-BWP2joD1.js} +1 -1
  41. package/dist/chunks/{temporal-input-presentation--2r9BLr0.js → temporal-input-presentation-scSWQXAB.js} +4 -4
  42. package/dist/chunks/{token-types-C8JymO8s.js → token-types-iKMplaBL.js} +1 -1
  43. package/dist/chunks/{upload-Cf3wXZT8.js → upload-BRW4Mwrd.js} +1 -1
  44. package/dist/chunks/validators-B8fpdinG.js +3651 -0
  45. package/dist/chunks/{variable-draft-BDxlD0dM.js → variable-draft-BQ3OMjvy.js} +4 -4
  46. package/dist/dashboard/index.js +2 -2
  47. package/dist/dashboard-authoring/index.js +1778 -1741
  48. package/dist/format-utils/index.js +230 -231
  49. package/dist/index.js +236 -237
  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/surfboard/filter/types.d.ts +5 -4
  54. package/dist/types/components/ui-custom/date-range-presets.d.ts +1 -17
  55. package/dist/types/index.js +9 -9
  56. package/dist/types/lib/document/document-edits.d.ts +8 -3
  57. package/dist/types/lib/document/document-text-style.d.ts +54 -0
  58. package/dist/types/lib/hooks/use-date-filter.d.ts +3 -3
  59. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
  60. package/dist/types/lib/types/explorer-types.d.ts +2 -2
  61. package/dist/types/lib/types/index.d.ts +1 -1
  62. package/dist/types/lib/utils/card-definition.d.ts +7 -7
  63. package/dist/types/shared/analytics-protocol/agent-time-window.d.ts +84 -0
  64. package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +2 -2
  65. package/dist/types/shared/analytics-protocol/contracts.d.ts +8 -17
  66. package/dist/types/shared/analytics-protocol/fixtures.d.ts +3 -2
  67. package/dist/types/shared/analytics-protocol/index.d.ts +2 -4
  68. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +4 -4
  69. package/dist/types/shared/analytics-protocol/relative-date/describe.d.ts +18 -0
  70. package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +7 -0
  71. package/dist/types/shared/analytics-protocol/relative-date/limits.d.ts +3 -0
  72. package/dist/types/shared/analytics-protocol/relative-date/presets.d.ts +11 -0
  73. package/dist/types/shared/analytics-protocol/relative-date/resolve.d.ts +49 -0
  74. package/dist/types/shared/analytics-protocol/relative-date/schemas.d.ts +76 -0
  75. package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +51 -0
  76. package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +111 -0
  77. package/dist/types/shared/analytics-protocol/selection-contract.d.ts +1 -1
  78. package/dist/types/shared/assistant-protocol/context.d.ts +12 -12
  79. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +0 -2
  80. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +176 -1756
  81. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +8 -4
  82. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +74 -74
  83. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +20 -20
  84. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +8 -2
  85. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +10 -2
  86. package/dist/types/shared/format-utils/filter-detail.d.ts +2 -8
  87. package/dist/types/shared/format-utils/filter-line.d.ts +2 -2
  88. package/dist/types/shared/format-utils/matrix-continuation.d.ts +3 -3
  89. package/dist/types/shared/temporal/index.d.ts +0 -2
  90. package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +2 -2
  91. package/package.json +2 -24
  92. package/DATA_APP_SDK.md +0 -339
  93. package/dist/chunks/dashboard-json-BNNCaKEc.js +0 -68
  94. package/dist/chunks/filter-value-text-7zhmth1S.js +0 -163
  95. package/dist/chunks/index-CuHybtft.js +0 -51
  96. package/dist/chunks/matrix-analytical-definition-C9xB_T84.js +0 -717
  97. package/dist/chunks/matrix-card-BSUeSXpD.js +0 -42
  98. package/dist/chunks/matrix-member-presentation-DZNgQpUq.js +0 -105
  99. package/dist/chunks/operators-B3zZoskU.js +0 -66
  100. package/dist/chunks/pivot-result-contract-expectations-Ddh1rNz5.js +0 -56
  101. package/dist/chunks/raw-temporal-value-Bqz8wc7L.js +0 -242
  102. package/dist/chunks/selection-reducer-OaJ-N5uN.js +0 -46
  103. package/dist/chunks/source-entity-resolution-DF6GulDn.js +0 -607
  104. package/dist/chunks/validators-wtjw0aw6.js +0 -3332
  105. package/dist/data-app-sdk/index.js +0 -1412
  106. package/dist/data-app-sdk-adapters/index.js +0 -361
  107. package/dist/data-app-sdk-validation/index.js +0 -1031
  108. package/dist/types/data-app-sdk/adapters.d.ts +0 -35
  109. package/dist/types/data-app-sdk/builders.d.ts +0 -62
  110. package/dist/types/data-app-sdk/contracts.d.ts +0 -419
  111. package/dist/types/data-app-sdk/executor.d.ts +0 -5
  112. package/dist/types/data-app-sdk/field-catalog-validation.d.ts +0 -29
  113. package/dist/types/data-app-sdk/hooks.d.ts +0 -11
  114. package/dist/types/data-app-sdk/index.d.ts +0 -9
  115. package/dist/types/data-app-sdk/provider.d.ts +0 -8
  116. package/dist/types/data-app-sdk/relationship-aware-field-policy.d.ts +0 -21
  117. package/dist/types/data-app-sdk/selection.d.ts +0 -2
  118. package/dist/types/data-app-sdk/validation.d.ts +0 -58
  119. package/dist/types/data-app-sdk-adapters.d.ts +0 -2
  120. package/dist/types/data-app-sdk-validation.d.ts +0 -2
  121. package/dist/types/data-app-sdk.d.ts +0 -2
  122. package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +0 -68
  123. package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +0 -20
  124. package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +0 -314
  125. package/dist/types/shared/analytics-protocol/time-window.d.ts +0 -52
  126. package/dist/types/shared/temporal/relative-date.d.ts +0 -21
  127. package/dist/types/shared/temporal/time-window-periods.d.ts +0 -21
  128. package/src/data-app-sdk/README.md +0 -402
@@ -0,0 +1,169 @@
1
+ import { m as p } from "./validators-B8fpdinG.js";
2
+ function h(e) {
3
+ const t = b(e);
4
+ return d(t) ? t : void 0;
5
+ }
6
+ function b(e) {
7
+ if (typeof e != "string" || e.trim().length === 0)
8
+ return;
9
+ const t = e.trim().toLowerCase();
10
+ switch (t) {
11
+ case "=":
12
+ return "=";
13
+ case "!=":
14
+ return "!=";
15
+ case "in":
16
+ return "in";
17
+ case "not_in":
18
+ return "not_in";
19
+ case "contains":
20
+ return "contains";
21
+ case "not_contains":
22
+ return "not_contains";
23
+ case "between":
24
+ return "between";
25
+ case "not_between":
26
+ return "not_between";
27
+ case ">":
28
+ case ">=":
29
+ case "<":
30
+ case "<=":
31
+ return t;
32
+ case "is_null":
33
+ return "is_null";
34
+ case "is_not_null":
35
+ return "is_not_null";
36
+ default:
37
+ return _(e) ? e : void 0;
38
+ }
39
+ }
40
+ function d(e) {
41
+ return e === "=" || e === "!=" || e === "in" || e === "not_in" || e === "contains" || e === "not_contains" || e === "between" || e === "not_between" || e === ">" || e === ">=" || e === "<" || e === "<=";
42
+ }
43
+ function _(e) {
44
+ return d(e) || e === "not_contains" || e === "is_null" || e === "is_not_null";
45
+ }
46
+ function O(e) {
47
+ switch (e) {
48
+ case "not in":
49
+ return "not_in";
50
+ case "like":
51
+ return "contains";
52
+ case "not like":
53
+ return "not_contains";
54
+ case "not between":
55
+ return "not_between";
56
+ case "is null":
57
+ case "is not null":
58
+ return;
59
+ default:
60
+ return h(e);
61
+ }
62
+ }
63
+ const w = [
64
+ "=",
65
+ "!=",
66
+ ">",
67
+ "<",
68
+ ">=",
69
+ "<=",
70
+ "like",
71
+ "not like",
72
+ "between",
73
+ "not between",
74
+ "in",
75
+ "not in",
76
+ "is null",
77
+ "is not null"
78
+ ], y = /* @__PURE__ */ new Set(["string", "number", "date", "boolean"]);
79
+ function g(e) {
80
+ return typeof e == "string" && w.includes(e);
81
+ }
82
+ function P(e, t) {
83
+ switch (e) {
84
+ case "is null":
85
+ case "is not null":
86
+ return t.length === 0;
87
+ case "between":
88
+ case "not between":
89
+ return t.length === 2;
90
+ case "in":
91
+ case "not in":
92
+ return t.length >= 1;
93
+ default:
94
+ return t.length === 1;
95
+ }
96
+ }
97
+ function S(e) {
98
+ if (!e || typeof e != "object" || Array.isArray(e))
99
+ return;
100
+ const t = e, o = {};
101
+ for (const n of A)
102
+ t[n] !== void 0 && (o[n] = t[n]);
103
+ return o;
104
+ }
105
+ const A = [
106
+ "operation",
107
+ "values",
108
+ "valueType",
109
+ "temporalBucket",
110
+ "relativeMeta",
111
+ "temporalPrecision"
112
+ ];
113
+ function E(e) {
114
+ const t = S(e);
115
+ if (!t) return;
116
+ const { operation: o, values: n } = t;
117
+ if (!g(o) || !Array.isArray(n) || !P(o, n)) return;
118
+ const r = typeof t.valueType == "string" && y.has(t.valueType) ? t.valueType : void 0;
119
+ return {
120
+ operation: o,
121
+ values: n,
122
+ ...r ? { valueType: r } : {},
123
+ ...t.temporalBucket !== void 0 ? { temporalBucket: t.temporalBucket } : {},
124
+ ...t.relativeMeta !== void 0 ? { relativeMeta: t.relativeMeta } : {},
125
+ ...t.temporalPrecision !== void 0 ? { temporalPrecision: t.temporalPrecision } : {}
126
+ };
127
+ }
128
+ function v(e) {
129
+ const t = E(e);
130
+ if (!t)
131
+ throw new Error(
132
+ `Filter operation "${String(e.operation)}" cannot be expressed as predicate semantics.`
133
+ );
134
+ return t;
135
+ }
136
+ function I(e) {
137
+ return e.operation === "is null" || e.operation === "is not null";
138
+ }
139
+ function k(e, t) {
140
+ var n;
141
+ if (t === null) return !0;
142
+ if (t.overrides.length === 0) return e.length <= t.depth;
143
+ const o = p(e);
144
+ return ((n = t.overrides.find((r) => r.path.length === e.length && p(r.path) === o)) == null ? void 0 : n.expanded) ?? e.length <= t.depth;
145
+ }
146
+ function N(e) {
147
+ var u;
148
+ const { path: t, levelCount: o, expansion: n, total: r, axis: f } = e, a = t.length >= o || ((u = t[t.length - 1]) == null ? void 0 : u.member.kind) === "others", c = !a && !e.childrenEmpty, i = c && k(t, n), l = f === "rows" && e.rowLayout !== "tabular", m = i && !!e.skipRedundant && !!e.singleChild, s = !!(r != null && r.visible) && !m;
149
+ return {
150
+ expandable: c,
151
+ expanded: i,
152
+ memberVisible: l || !i,
153
+ valueVisible: a || s && (!i || r.position === "before"),
154
+ subtotalBefore: !l && i && s && r.position === "before",
155
+ subtotalAfter: i && s && r.position === "after"
156
+ };
157
+ }
158
+ export {
159
+ w as N,
160
+ b as a,
161
+ E as b,
162
+ v as c,
163
+ k as d,
164
+ I as i,
165
+ h as n,
166
+ S as p,
167
+ N as r,
168
+ O as t
169
+ };