react-semaphor 0.1.449 → 0.1.453

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 (134) hide show
  1. package/dist/analytics-protocol/index.cjs +1 -1
  2. package/dist/analytics-protocol/index.js +115 -109
  3. package/dist/appearance/index.cjs +1 -1
  4. package/dist/appearance/index.js +1 -1
  5. package/dist/brand-studio/index.cjs +4 -4
  6. package/dist/brand-studio/index.js +15 -13
  7. package/dist/briefings/index.cjs +1 -1
  8. package/dist/briefings/index.js +39 -2131
  9. package/dist/chunks/{analyze-result-contract-BHb7sUUW.cjs → analyze-result-contract-Dxw66nUG.cjs} +1 -1
  10. package/dist/chunks/{analyze-result-contract-T-0Ntzys.js → analyze-result-contract-GHKFwThg.js} +1 -1
  11. package/dist/chunks/canonical-result-keys-Drc2x-lf.cjs +1 -0
  12. package/dist/chunks/canonical-result-keys-KLk__J_O.js +466 -0
  13. package/dist/chunks/color-CJvdlFM_.js +2162 -0
  14. package/dist/chunks/color-CyB5o13F.cjs +4 -0
  15. package/dist/chunks/{common-types-CQ6SHfLk.cjs → common-types-Ci66eflG.cjs} +1 -1
  16. package/dist/chunks/{common-types-B7Jk3Rtj.js → common-types-F6qk6PPS.js} +1 -1
  17. package/dist/chunks/contracts-CoCOpd_i.js +11 -0
  18. package/dist/chunks/contracts-CtB2VONT.cjs +1 -0
  19. package/dist/chunks/{dashboard-briefing-launcher-DCHiEkLE.js → dashboard-briefing-launcher-CFpX0WX3.js} +86 -84
  20. package/dist/chunks/dashboard-briefing-launcher-mUXWuiOZ.cjs +26 -0
  21. package/dist/chunks/{dashboard-controls-DwRFCcHV.js → dashboard-controls-BeYAmOJc.js} +15 -13
  22. package/dist/chunks/{dashboard-controls-CaFioayc.cjs → dashboard-controls-SoNubIu1.cjs} +1 -1
  23. package/dist/chunks/dashboard-json-BublPnQ4.cjs +1 -0
  24. package/dist/chunks/{dashboard-json-WoILbfTe.js → dashboard-json-DeLUagVV.js} +25 -23
  25. package/dist/chunks/edit-dashboard-visual-CrvPcO7A.cjs +172 -0
  26. package/dist/chunks/{edit-dashboard-visual-ciFhxqaI.js → edit-dashboard-visual-Go0h82DR.js} +6925 -6947
  27. package/dist/chunks/editor-action-buttons-1Lo0fIh7.cjs +16 -0
  28. package/dist/chunks/{editor-action-buttons-BPo_45pM.js → editor-action-buttons-BFNtjFzO.js} +41 -39
  29. package/dist/chunks/format-types-CFHQoIuk.js +1350 -0
  30. package/dist/chunks/format-types-PSZZ7hG8.cjs +1 -0
  31. package/dist/chunks/index-B3ZugihZ.js +3713 -0
  32. package/dist/chunks/{index-CPuawpXJ.js → index-BsH32bn1.js} +47472 -47845
  33. package/dist/chunks/index-ByFbacH7.cjs +1 -0
  34. package/dist/chunks/index-CACdoqu3.js +318 -0
  35. package/dist/chunks/index-DSKR3nKn.js +421 -0
  36. package/dist/chunks/index-DjiIh_9n.cjs +4 -0
  37. package/dist/chunks/index-F25jnH0p.cjs +1 -0
  38. package/dist/chunks/index-q12_nNUS.cjs +1392 -0
  39. package/dist/chunks/{metric-comparison-97zHGEx5.js → metric-comparison-D0T0MKRK.js} +1 -1
  40. package/dist/chunks/{metric-comparison-CUAJ8n4y.cjs → metric-comparison-DYR3RXam.cjs} +1 -1
  41. package/dist/chunks/pivot-header-presentation-DcfPaCiy.cjs +4 -0
  42. package/dist/chunks/pivot-header-presentation-nk604qc1.js +557 -0
  43. package/dist/chunks/{pivot-result-identity-CwJWpKI7.js → pivot-result-identity-C43Ai5Kr.js} +1 -1
  44. package/dist/chunks/{pivot-result-identity-CDLRT-YG.cjs → pivot-result-identity-CRUokNgm.cjs} +1 -1
  45. package/dist/chunks/pivot-result-lifecycle-4kSe0Hk1.js +1642 -0
  46. package/dist/chunks/pivot-result-lifecycle-BiJepH5S.cjs +1 -0
  47. package/dist/chunks/raw-temporal-contract-BF7PjBY9.js +64 -0
  48. package/dist/chunks/raw-temporal-contract-CxbRFwnd.cjs +1 -0
  49. package/dist/chunks/report-preferences-dialog-BEVZAE3m.cjs +1 -0
  50. package/dist/chunks/report-preferences-dialog-BNV7qXYH.js +723 -0
  51. package/dist/chunks/{report-runtime-context-bCy3CVzK.js → report-runtime-context-BJQDu2fV.js} +1 -1
  52. package/dist/chunks/{report-runtime-context-C8LZFsqV.cjs → report-runtime-context-DjYqLV-c.cjs} +1 -1
  53. package/dist/chunks/saved-temporal-bucket-format-DiZdQXOL.js +924 -0
  54. package/dist/chunks/saved-temporal-bucket-format-Gfbh4IiP.cjs +1 -0
  55. package/dist/chunks/switch-CjJ6FHYJ.cjs +138 -0
  56. package/dist/chunks/{switch-BXet-Sno.js → switch-DgLwr7O-.js} +4352 -5249
  57. package/dist/chunks/temporal-bucket-Dnj8qT9l.cjs +1 -0
  58. package/dist/chunks/temporal-bucket-FBZGrDCe.js +560 -0
  59. package/dist/chunks/temporal-bucket-authoring-7hv2laOG.cjs +1 -0
  60. package/dist/chunks/temporal-bucket-authoring-FIRnJz0e.js +221 -0
  61. package/dist/chunks/{temporal-bucket-contract-_F6vNhhH.js → temporal-bucket-contract-BQOj6Frl.js} +1 -1
  62. package/dist/chunks/{temporal-bucket-contract-ChDBWX8I.cjs → temporal-bucket-contract-anl4h-vg.cjs} +1 -1
  63. package/dist/chunks/{token-types-BHR58aTy.js → token-types-CRpQJ4kv.js} +1 -1
  64. package/dist/chunks/{token-types-BdQ8kHBm.cjs → token-types-D0i0IUX3.cjs} +1 -1
  65. package/dist/chunks/{update-policy-BxvYMYz0.cjs → update-policy-C1i9bgsy.cjs} +1 -1
  66. package/dist/chunks/{update-policy-g0rCQ9BM.js → update-policy-CaJz9aPG.js} +1 -1
  67. package/dist/chunks/{validators-Cs74WVie.js → validators-DeMXwRON.js} +253 -233
  68. package/dist/chunks/validators-Dm7Kpz6p.cjs +1 -0
  69. package/dist/dashboard/index.cjs +1 -1
  70. package/dist/dashboard/index.js +2 -2
  71. package/dist/dashboard-authoring/index.cjs +3 -3
  72. package/dist/dashboard-authoring/index.js +32 -29
  73. package/dist/data-app-builder/index.cjs +1 -1
  74. package/dist/data-app-builder/index.js +2 -2
  75. package/dist/data-app-codegen/index.cjs +1 -1
  76. package/dist/data-app-codegen/index.js +2 -2
  77. package/dist/data-app-codegen-node/index.cjs +1 -1
  78. package/dist/data-app-codegen-node/index.js +3 -3
  79. package/dist/data-app-sdk/index.cjs +1 -1
  80. package/dist/data-app-sdk/index.js +3 -3
  81. package/dist/data-app-sdk-adapters/index.cjs +1 -1
  82. package/dist/data-app-sdk-adapters/index.js +2 -2
  83. package/dist/data-app-sdk-validation/index.cjs +1 -1
  84. package/dist/data-app-sdk-validation/index.js +3 -3
  85. package/dist/format-utils/index.cjs +3 -3
  86. package/dist/format-utils/index.js +162 -145
  87. package/dist/index.cjs +1 -1
  88. package/dist/index.js +157 -155
  89. package/dist/report-runtime-context/index.cjs +1 -1
  90. package/dist/report-runtime-context/index.js +2 -2
  91. package/dist/style.css +1 -1
  92. package/dist/surfboard/index.cjs +1 -1
  93. package/dist/surfboard/index.js +3 -3
  94. package/dist/types/analytics-protocol.d.ts +37 -0
  95. package/dist/types/briefings.d.ts +718 -7
  96. package/dist/types/dashboard-assistant.d.ts +18 -0
  97. package/dist/types/dashboard-authoring.d.ts +52 -2
  98. package/dist/types/dashboard.d.ts +128 -0
  99. package/dist/types/data-app-sdk-validation.d.ts +13 -0
  100. package/dist/types/data-app-sdk.d.ts +13 -0
  101. package/dist/types/format-utils.d.ts +190 -3
  102. package/dist/types/index.cjs +1 -1
  103. package/dist/types/index.js +4 -4
  104. package/dist/types/main.d.ts +103 -12
  105. package/dist/types/shared.d.ts +5 -0
  106. package/dist/types/surfboard.d.ts +129 -1
  107. package/dist/types/types.d.ts +98 -6
  108. package/dist/types/value-format-preferences.d.ts +3 -0
  109. package/package.json +2 -1
  110. package/dist/chunks/card-config-utils-15sRtebL.cjs +0 -1
  111. package/dist/chunks/card-config-utils-BYZ5MJOh.js +0 -16
  112. package/dist/chunks/dashboard-briefing-launcher-DDgDr2s3.cjs +0 -26
  113. package/dist/chunks/dashboard-json-CYtvwtvj.cjs +0 -1
  114. package/dist/chunks/edit-dashboard-visual-DwKcvlsF.cjs +0 -177
  115. package/dist/chunks/editor-action-buttons-BVmsk0Aj.cjs +0 -16
  116. package/dist/chunks/format-types-CSv0V7mm.cjs +0 -1
  117. package/dist/chunks/format-types-DZGgYj39.js +0 -1663
  118. package/dist/chunks/index-CJdxSyQq.js +0 -2578
  119. package/dist/chunks/index-DPv8_Ild.cjs +0 -1395
  120. package/dist/chunks/index-DRlMUglg.cjs +0 -4
  121. package/dist/chunks/pivot-result-lifecycle-BBabQ_da.js +0 -914
  122. package/dist/chunks/pivot-result-lifecycle-DPc0ANwk.cjs +0 -4
  123. package/dist/chunks/presentation-execution-BLfPTGX_.js +0 -637
  124. package/dist/chunks/presentation-execution-BTV-Q43g.cjs +0 -1
  125. package/dist/chunks/report-preferences-dialog-D9ZCGh9l.js +0 -691
  126. package/dist/chunks/report-preferences-dialog-DaqTEcac.cjs +0 -1
  127. package/dist/chunks/switch-Cjk6G06r.cjs +0 -138
  128. package/dist/chunks/temporal-bucket-BnPxGrAi.js +0 -446
  129. package/dist/chunks/temporal-bucket-authoring-CPTwHzvs.cjs +0 -1
  130. package/dist/chunks/temporal-bucket-authoring-CgOuakGW.js +0 -205
  131. package/dist/chunks/temporal-bucket-pMnV-4Nj.cjs +0 -1
  132. package/dist/chunks/temporal-result-owner-6peubmhU.js +0 -443
  133. package/dist/chunks/temporal-result-owner-f6-i65Fb.cjs +0 -1
  134. package/dist/chunks/validators-9D4KBqKD.cjs +0 -1
@@ -0,0 +1,924 @@
1
+ import { S as P, a as k } from "./color-CJvdlFM_.js";
2
+ import { C as R, l as O } from "./validators-DeMXwRON.js";
3
+ import "./analyze-result-contract-GHKFwThg.js";
4
+ import { n as D } from "./catalog-field-grounding-S2jKwKGD.js";
5
+ import "../value-format-preferences/index.js";
6
+ import { v } from "./temporal-bucket-FBZGrDCe.js";
7
+ import { A as g } from "./temporal-bucket-authoring-FIRnJz0e.js";
8
+ var ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9
+ function U(e) {
10
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
11
+ }
12
+ function fe(e) {
13
+ if (e.__esModule) return e;
14
+ var r = e.default;
15
+ if (typeof r == "function") {
16
+ var a = function t() {
17
+ return this instanceof t ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
18
+ };
19
+ a.prototype = r.prototype;
20
+ } else a = {};
21
+ return Object.defineProperty(a, "__esModule", { value: !0 }), Object.keys(e).forEach(function(t) {
22
+ var d = Object.getOwnPropertyDescriptor(e, t);
23
+ Object.defineProperty(a, t, d.get ? d : {
24
+ enumerable: !0,
25
+ get: function() {
26
+ return e[t];
27
+ }
28
+ });
29
+ }), a;
30
+ }
31
+ let y;
32
+ const I = new Uint8Array(16);
33
+ function G() {
34
+ if (!y && (y = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !y))
35
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
36
+ return y(I);
37
+ }
38
+ const l = [];
39
+ for (let e = 0; e < 256; ++e)
40
+ l.push((e + 256).toString(16).slice(1));
41
+ function L(e, r = 0) {
42
+ return l[e[r + 0]] + l[e[r + 1]] + l[e[r + 2]] + l[e[r + 3]] + "-" + l[e[r + 4]] + l[e[r + 5]] + "-" + l[e[r + 6]] + l[e[r + 7]] + "-" + l[e[r + 8]] + l[e[r + 9]] + "-" + l[e[r + 10]] + l[e[r + 11]] + l[e[r + 12]] + l[e[r + 13]] + l[e[r + 14]] + l[e[r + 15]];
43
+ }
44
+ const W = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), E = {
45
+ randomUUID: W
46
+ };
47
+ function de(e, r, a) {
48
+ if (E.randomUUID && !e)
49
+ return E.randomUUID();
50
+ e = e || {};
51
+ const t = e.random || (e.rng || G)();
52
+ return t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, L(t);
53
+ }
54
+ var T = {}, B = {}, A = { exports: {} }, o = String, S = function() {
55
+ return { isColorSupported: !1, reset: o, bold: o, dim: o, italic: o, underline: o, inverse: o, hidden: o, strikethrough: o, black: o, red: o, green: o, yellow: o, blue: o, magenta: o, cyan: o, white: o, gray: o, bgBlack: o, bgRed: o, bgGreen: o, bgYellow: o, bgBlue: o, bgMagenta: o, bgCyan: o, bgWhite: o, blackBright: o, redBright: o, greenBright: o, yellowBright: o, blueBright: o, magentaBright: o, cyanBright: o, whiteBright: o, bgBlackBright: o, bgRedBright: o, bgGreenBright: o, bgYellowBright: o, bgBlueBright: o, bgMagentaBright: o, bgCyanBright: o, bgWhiteBright: o };
56
+ };
57
+ A.exports = S();
58
+ A.exports.createColors = S;
59
+ var j = A.exports;
60
+ (function(e) {
61
+ Object.defineProperty(e, "__esModule", {
62
+ value: !0
63
+ });
64
+ function r(f, u) {
65
+ for (var p in u) Object.defineProperty(f, p, {
66
+ enumerable: !0,
67
+ get: u[p]
68
+ });
69
+ }
70
+ r(e, {
71
+ dim: function() {
72
+ return s;
73
+ },
74
+ default: function() {
75
+ return c;
76
+ }
77
+ });
78
+ const a = /* @__PURE__ */ t(j);
79
+ function t(f) {
80
+ return f && f.__esModule ? f : {
81
+ default: f
82
+ };
83
+ }
84
+ let d = /* @__PURE__ */ new Set();
85
+ function n(f, u, p) {
86
+ typeof process < "u" && process.env.JEST_WORKER_ID || p && d.has(p) || (p && d.add(p), console.warn(""), u.forEach((b) => console.warn(f, "-", b)));
87
+ }
88
+ function s(f) {
89
+ return a.default.dim(f);
90
+ }
91
+ const c = {
92
+ info(f, u) {
93
+ n(a.default.bold(a.default.cyan("info")), ...Array.isArray(f) ? [
94
+ f
95
+ ] : [
96
+ u,
97
+ f
98
+ ]);
99
+ },
100
+ warn(f, u) {
101
+ n(a.default.bold(a.default.yellow("warn")), ...Array.isArray(f) ? [
102
+ f
103
+ ] : [
104
+ u,
105
+ f
106
+ ]);
107
+ },
108
+ risk(f, u) {
109
+ n(a.default.bold(a.default.magenta("risk")), ...Array.isArray(f) ? [
110
+ f
111
+ ] : [
112
+ u,
113
+ f
114
+ ]);
115
+ }
116
+ };
117
+ })(B);
118
+ (function(e) {
119
+ Object.defineProperty(e, "__esModule", {
120
+ value: !0
121
+ }), Object.defineProperty(e, "default", {
122
+ enumerable: !0,
123
+ get: function() {
124
+ return d;
125
+ }
126
+ });
127
+ const r = /* @__PURE__ */ a(B);
128
+ function a(n) {
129
+ return n && n.__esModule ? n : {
130
+ default: n
131
+ };
132
+ }
133
+ function t({ version: n, from: s, to: c }) {
134
+ r.default.warn(`${s}-color-renamed`, [
135
+ `As of Tailwind CSS ${n}, \`${s}\` has been renamed to \`${c}\`.`,
136
+ "Update your configuration file to silence this warning."
137
+ ]);
138
+ }
139
+ const d = {
140
+ inherit: "inherit",
141
+ current: "currentColor",
142
+ transparent: "transparent",
143
+ black: "#000",
144
+ white: "#fff",
145
+ slate: {
146
+ 50: "#f8fafc",
147
+ 100: "#f1f5f9",
148
+ 200: "#e2e8f0",
149
+ 300: "#cbd5e1",
150
+ 400: "#94a3b8",
151
+ 500: "#64748b",
152
+ 600: "#475569",
153
+ 700: "#334155",
154
+ 800: "#1e293b",
155
+ 900: "#0f172a",
156
+ 950: "#020617"
157
+ },
158
+ gray: {
159
+ 50: "#f9fafb",
160
+ 100: "#f3f4f6",
161
+ 200: "#e5e7eb",
162
+ 300: "#d1d5db",
163
+ 400: "#9ca3af",
164
+ 500: "#6b7280",
165
+ 600: "#4b5563",
166
+ 700: "#374151",
167
+ 800: "#1f2937",
168
+ 900: "#111827",
169
+ 950: "#030712"
170
+ },
171
+ zinc: {
172
+ 50: "#fafafa",
173
+ 100: "#f4f4f5",
174
+ 200: "#e4e4e7",
175
+ 300: "#d4d4d8",
176
+ 400: "#a1a1aa",
177
+ 500: "#71717a",
178
+ 600: "#52525b",
179
+ 700: "#3f3f46",
180
+ 800: "#27272a",
181
+ 900: "#18181b",
182
+ 950: "#09090b"
183
+ },
184
+ neutral: {
185
+ 50: "#fafafa",
186
+ 100: "#f5f5f5",
187
+ 200: "#e5e5e5",
188
+ 300: "#d4d4d4",
189
+ 400: "#a3a3a3",
190
+ 500: "#737373",
191
+ 600: "#525252",
192
+ 700: "#404040",
193
+ 800: "#262626",
194
+ 900: "#171717",
195
+ 950: "#0a0a0a"
196
+ },
197
+ stone: {
198
+ 50: "#fafaf9",
199
+ 100: "#f5f5f4",
200
+ 200: "#e7e5e4",
201
+ 300: "#d6d3d1",
202
+ 400: "#a8a29e",
203
+ 500: "#78716c",
204
+ 600: "#57534e",
205
+ 700: "#44403c",
206
+ 800: "#292524",
207
+ 900: "#1c1917",
208
+ 950: "#0c0a09"
209
+ },
210
+ red: {
211
+ 50: "#fef2f2",
212
+ 100: "#fee2e2",
213
+ 200: "#fecaca",
214
+ 300: "#fca5a5",
215
+ 400: "#f87171",
216
+ 500: "#ef4444",
217
+ 600: "#dc2626",
218
+ 700: "#b91c1c",
219
+ 800: "#991b1b",
220
+ 900: "#7f1d1d",
221
+ 950: "#450a0a"
222
+ },
223
+ orange: {
224
+ 50: "#fff7ed",
225
+ 100: "#ffedd5",
226
+ 200: "#fed7aa",
227
+ 300: "#fdba74",
228
+ 400: "#fb923c",
229
+ 500: "#f97316",
230
+ 600: "#ea580c",
231
+ 700: "#c2410c",
232
+ 800: "#9a3412",
233
+ 900: "#7c2d12",
234
+ 950: "#431407"
235
+ },
236
+ amber: {
237
+ 50: "#fffbeb",
238
+ 100: "#fef3c7",
239
+ 200: "#fde68a",
240
+ 300: "#fcd34d",
241
+ 400: "#fbbf24",
242
+ 500: "#f59e0b",
243
+ 600: "#d97706",
244
+ 700: "#b45309",
245
+ 800: "#92400e",
246
+ 900: "#78350f",
247
+ 950: "#451a03"
248
+ },
249
+ yellow: {
250
+ 50: "#fefce8",
251
+ 100: "#fef9c3",
252
+ 200: "#fef08a",
253
+ 300: "#fde047",
254
+ 400: "#facc15",
255
+ 500: "#eab308",
256
+ 600: "#ca8a04",
257
+ 700: "#a16207",
258
+ 800: "#854d0e",
259
+ 900: "#713f12",
260
+ 950: "#422006"
261
+ },
262
+ lime: {
263
+ 50: "#f7fee7",
264
+ 100: "#ecfccb",
265
+ 200: "#d9f99d",
266
+ 300: "#bef264",
267
+ 400: "#a3e635",
268
+ 500: "#84cc16",
269
+ 600: "#65a30d",
270
+ 700: "#4d7c0f",
271
+ 800: "#3f6212",
272
+ 900: "#365314",
273
+ 950: "#1a2e05"
274
+ },
275
+ green: {
276
+ 50: "#f0fdf4",
277
+ 100: "#dcfce7",
278
+ 200: "#bbf7d0",
279
+ 300: "#86efac",
280
+ 400: "#4ade80",
281
+ 500: "#22c55e",
282
+ 600: "#16a34a",
283
+ 700: "#15803d",
284
+ 800: "#166534",
285
+ 900: "#14532d",
286
+ 950: "#052e16"
287
+ },
288
+ emerald: {
289
+ 50: "#ecfdf5",
290
+ 100: "#d1fae5",
291
+ 200: "#a7f3d0",
292
+ 300: "#6ee7b7",
293
+ 400: "#34d399",
294
+ 500: "#10b981",
295
+ 600: "#059669",
296
+ 700: "#047857",
297
+ 800: "#065f46",
298
+ 900: "#064e3b",
299
+ 950: "#022c22"
300
+ },
301
+ teal: {
302
+ 50: "#f0fdfa",
303
+ 100: "#ccfbf1",
304
+ 200: "#99f6e4",
305
+ 300: "#5eead4",
306
+ 400: "#2dd4bf",
307
+ 500: "#14b8a6",
308
+ 600: "#0d9488",
309
+ 700: "#0f766e",
310
+ 800: "#115e59",
311
+ 900: "#134e4a",
312
+ 950: "#042f2e"
313
+ },
314
+ cyan: {
315
+ 50: "#ecfeff",
316
+ 100: "#cffafe",
317
+ 200: "#a5f3fc",
318
+ 300: "#67e8f9",
319
+ 400: "#22d3ee",
320
+ 500: "#06b6d4",
321
+ 600: "#0891b2",
322
+ 700: "#0e7490",
323
+ 800: "#155e75",
324
+ 900: "#164e63",
325
+ 950: "#083344"
326
+ },
327
+ sky: {
328
+ 50: "#f0f9ff",
329
+ 100: "#e0f2fe",
330
+ 200: "#bae6fd",
331
+ 300: "#7dd3fc",
332
+ 400: "#38bdf8",
333
+ 500: "#0ea5e9",
334
+ 600: "#0284c7",
335
+ 700: "#0369a1",
336
+ 800: "#075985",
337
+ 900: "#0c4a6e",
338
+ 950: "#082f49"
339
+ },
340
+ blue: {
341
+ 50: "#eff6ff",
342
+ 100: "#dbeafe",
343
+ 200: "#bfdbfe",
344
+ 300: "#93c5fd",
345
+ 400: "#60a5fa",
346
+ 500: "#3b82f6",
347
+ 600: "#2563eb",
348
+ 700: "#1d4ed8",
349
+ 800: "#1e40af",
350
+ 900: "#1e3a8a",
351
+ 950: "#172554"
352
+ },
353
+ indigo: {
354
+ 50: "#eef2ff",
355
+ 100: "#e0e7ff",
356
+ 200: "#c7d2fe",
357
+ 300: "#a5b4fc",
358
+ 400: "#818cf8",
359
+ 500: "#6366f1",
360
+ 600: "#4f46e5",
361
+ 700: "#4338ca",
362
+ 800: "#3730a3",
363
+ 900: "#312e81",
364
+ 950: "#1e1b4b"
365
+ },
366
+ violet: {
367
+ 50: "#f5f3ff",
368
+ 100: "#ede9fe",
369
+ 200: "#ddd6fe",
370
+ 300: "#c4b5fd",
371
+ 400: "#a78bfa",
372
+ 500: "#8b5cf6",
373
+ 600: "#7c3aed",
374
+ 700: "#6d28d9",
375
+ 800: "#5b21b6",
376
+ 900: "#4c1d95",
377
+ 950: "#2e1065"
378
+ },
379
+ purple: {
380
+ 50: "#faf5ff",
381
+ 100: "#f3e8ff",
382
+ 200: "#e9d5ff",
383
+ 300: "#d8b4fe",
384
+ 400: "#c084fc",
385
+ 500: "#a855f7",
386
+ 600: "#9333ea",
387
+ 700: "#7e22ce",
388
+ 800: "#6b21a8",
389
+ 900: "#581c87",
390
+ 950: "#3b0764"
391
+ },
392
+ fuchsia: {
393
+ 50: "#fdf4ff",
394
+ 100: "#fae8ff",
395
+ 200: "#f5d0fe",
396
+ 300: "#f0abfc",
397
+ 400: "#e879f9",
398
+ 500: "#d946ef",
399
+ 600: "#c026d3",
400
+ 700: "#a21caf",
401
+ 800: "#86198f",
402
+ 900: "#701a75",
403
+ 950: "#4a044e"
404
+ },
405
+ pink: {
406
+ 50: "#fdf2f8",
407
+ 100: "#fce7f3",
408
+ 200: "#fbcfe8",
409
+ 300: "#f9a8d4",
410
+ 400: "#f472b6",
411
+ 500: "#ec4899",
412
+ 600: "#db2777",
413
+ 700: "#be185d",
414
+ 800: "#9d174d",
415
+ 900: "#831843",
416
+ 950: "#500724"
417
+ },
418
+ rose: {
419
+ 50: "#fff1f2",
420
+ 100: "#ffe4e6",
421
+ 200: "#fecdd3",
422
+ 300: "#fda4af",
423
+ 400: "#fb7185",
424
+ 500: "#f43f5e",
425
+ 600: "#e11d48",
426
+ 700: "#be123c",
427
+ 800: "#9f1239",
428
+ 900: "#881337",
429
+ 950: "#4c0519"
430
+ },
431
+ get lightBlue() {
432
+ return t({
433
+ version: "v2.2",
434
+ from: "lightBlue",
435
+ to: "sky"
436
+ }), this.sky;
437
+ },
438
+ get warmGray() {
439
+ return t({
440
+ version: "v3.0",
441
+ from: "warmGray",
442
+ to: "stone"
443
+ }), this.stone;
444
+ },
445
+ get trueGray() {
446
+ return t({
447
+ version: "v3.0",
448
+ from: "trueGray",
449
+ to: "neutral"
450
+ }), this.neutral;
451
+ },
452
+ get coolGray() {
453
+ return t({
454
+ version: "v3.0",
455
+ from: "coolGray",
456
+ to: "gray"
457
+ }), this.gray;
458
+ },
459
+ get blueGray() {
460
+ return t({
461
+ version: "v3.0",
462
+ from: "blueGray",
463
+ to: "slate"
464
+ }), this.slate;
465
+ }
466
+ };
467
+ })(T);
468
+ let _ = T;
469
+ var q = (_.__esModule ? _ : { default: _ }).default;
470
+ const i = /* @__PURE__ */ U(q), N = ".semaphor-scope";
471
+ function V(e) {
472
+ return e ? e.closest(N) : null;
473
+ }
474
+ function Q(e) {
475
+ if (!e) return "light";
476
+ const r = e.dataset.semaphorTheme;
477
+ return r === "dark" || r === "light" ? r : e.classList.contains("dark") ? "dark" : "light";
478
+ }
479
+ const ie = !1, se = [
480
+ "table",
481
+ "view",
482
+ "materialized view"
483
+ ], le = ["_forecast"], ce = "dm", ue = "semaphor_calculated_fields", pe = "calculated_fields", ge = ["lg", "md", "sm", "xs", "xxs"], be = {
484
+ // dashboardHeader: ' font-mono border-b-2 border-red-700',
485
+ default: {
486
+ dashboardPanel: "",
487
+ dashboardTabsContainer: "",
488
+ // dashboard: '',
489
+ gridLayout: {
490
+ // margin: [2, 2],
491
+ className: ""
492
+ },
493
+ chart: {
494
+ font: {
495
+ family: P
496
+ // family:
497
+ // 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
498
+ },
499
+ dataset: {
500
+ // backgroundColor: [
501
+ // colors.blue[500],
502
+ // colors.teal[500],
503
+ // colors.amber[500],
504
+ // colors.red[500],
505
+ // colors.indigo[500],
506
+ // colors.green[500],
507
+ // ],
508
+ // borderColor: [
509
+ // colors.blue[500],
510
+ // colors.teal[500],
511
+ // colors.amber[500],
512
+ // colors.red[500],
513
+ // colors.indigo[500],
514
+ // colors.green[500],
515
+ // ],
516
+ backgroundColor: [
517
+ // colors.teal[900],
518
+ // colors.teal[700],
519
+ i.teal[500],
520
+ i.teal[300],
521
+ i.gray[700],
522
+ i.gray[500],
523
+ i.gray[300]
524
+ ],
525
+ borderColor: [
526
+ // colors.teal[900],
527
+ // colors.teal[700],
528
+ i.teal[500],
529
+ i.teal[300],
530
+ i.gray[700],
531
+ i.gray[500],
532
+ i.gray[300]
533
+ ]
534
+ },
535
+ options: {
536
+ // onClick: onClickFunction,
537
+ interaction: {
538
+ // intersect: false,
539
+ mode: "index"
540
+ },
541
+ plugins: {
542
+ datalabels: {
543
+ display: !1,
544
+ color: F
545
+ },
546
+ title: {
547
+ display: !0
548
+ // text: 'Chart.js Line Chart',
549
+ },
550
+ tooltip: {
551
+ backgroundColor: "#fff",
552
+ bodyColor: "#000",
553
+ borderWidth: 0.25,
554
+ titleColor: "#000",
555
+ borderColor: "rgb(128,131,139)",
556
+ cornerRadius: 4,
557
+ usePointStyle: !0,
558
+ pointStyle: "rectRounded",
559
+ boxPadding: 4
560
+ // mode: 'index',
561
+ // intersect: false,
562
+ },
563
+ legend: {
564
+ position: "top",
565
+ align: "center",
566
+ maxHeight: 0,
567
+ labels: {
568
+ useBorderRadius: !0,
569
+ borderRadius: 2
570
+ }
571
+ }
572
+ },
573
+ scales: {
574
+ y: {
575
+ grid: {
576
+ display: !0
577
+ },
578
+ title: {
579
+ display: !0,
580
+ text: ""
581
+ },
582
+ beginAtZero: !0,
583
+ ticks: {
584
+ precision: 0
585
+ }
586
+ },
587
+ x: {
588
+ grid: {
589
+ display: !0
590
+ },
591
+ title: {
592
+ display: !0
593
+ }
594
+ }
595
+ },
596
+ layout: {
597
+ padding: {
598
+ top: -40
599
+ }
600
+ },
601
+ borderRadius: 2,
602
+ responsive: !0,
603
+ //This is the key to getting the chart to resize to fit the parent container.
604
+ maintainAspectRatio: !1
605
+ //This is the key to getting the chart to resize to fit the parent container.
606
+ }
607
+ }
608
+ },
609
+ dark: {
610
+ // gridLayout: {
611
+ // margin: [2, 2],
612
+ // },
613
+ chart: {
614
+ // font: {
615
+ // family:
616
+ // 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
617
+ // },
618
+ dataset: {
619
+ // backgroundColor: [
620
+ // colors.blue[500],
621
+ // colors.teal[500],
622
+ // colors.amber[500],
623
+ // colors.red[500],
624
+ // colors.indigo[500],
625
+ // colors.green[500],
626
+ // ],
627
+ // borderColor: [
628
+ // colors.blue[500],
629
+ // colors.teal[500],
630
+ // colors.amber[500],
631
+ // colors.red[500],
632
+ // colors.indigo[500],
633
+ // colors.green[500],
634
+ // ],
635
+ datalables: {
636
+ color: F
637
+ },
638
+ backgroundColor: [
639
+ // colors.teal[900],
640
+ // colors.teal[700],
641
+ i.teal[500],
642
+ i.teal[300],
643
+ i.gray[700],
644
+ i.gray[500],
645
+ i.gray[300]
646
+ ],
647
+ borderColor: [
648
+ // colors.teal[900],
649
+ // colors.teal[700],
650
+ i.teal[500],
651
+ i.teal[300],
652
+ i.gray[700],
653
+ i.gray[500],
654
+ i.gray[300]
655
+ ]
656
+ // backgroundColor: [
657
+ // colors.teal[100],
658
+ // // colors.blue[500],
659
+ // colors.purple[100],
660
+ // colors.amber[100],
661
+ // colors.orange[100],
662
+ // colors.rose[100],
663
+ // ],
664
+ // borderColor: [
665
+ // colors.teal[400],
666
+ // // colors.blue[500],
667
+ // colors.purple[400],
668
+ // colors.amber[400],
669
+ // colors.orange[300],
670
+ // colors.rose[400],
671
+ // ],
672
+ // backgroundColor: [
673
+ // 'rgb(139, 232, 229)',
674
+ // 'rgb(213, 255, 228)',
675
+ // 'rgb(210, 224, 251)',
676
+ // 'rgb(142, 172, 205)',
677
+ // ],
678
+ // borderColor: [
679
+ // 'rgb(139, 232, 229)',
680
+ // 'rgb(213, 255, 228)',
681
+ // 'rgb(210, 224, 251)',
682
+ // 'rgb(142, 172, 205)',
683
+ // ],
684
+ },
685
+ options: {
686
+ plugins: {
687
+ tooltip: {
688
+ backgroundColor: "#000",
689
+ bodyColor: "#fff",
690
+ borderWidth: 0.25,
691
+ titleColor: "#fff",
692
+ borderColor: "rgb(128,131,139)",
693
+ cornerRadius: 2,
694
+ boxPadding: 4
695
+ }
696
+ },
697
+ datalabels: {
698
+ display: !1
699
+ },
700
+ scales: {
701
+ x: {
702
+ grid: {
703
+ display: !0,
704
+ color: i.slate[800]
705
+ }
706
+ },
707
+ y: {
708
+ grid: {
709
+ display: !0,
710
+ color: i.slate[800]
711
+ }
712
+ }
713
+ }
714
+ }
715
+ }
716
+ }
717
+ };
718
+ function F(e) {
719
+ var t, d, n, s, c, f, u, p, b;
720
+ const r = (c = (s = (n = (d = (t = e == null ? void 0 : e.chart) == null ? void 0 : t.config) == null ? void 0 : d._config) == null ? void 0 : n.options) == null ? void 0 : s.plugins) == null ? void 0 : c.datalabels;
721
+ let a = (f = e == null ? void 0 : e.dataset) == null ? void 0 : f.backgroundColor;
722
+ return (r == null ? void 0 : r.align) === "end" && (r == null ? void 0 : r.anchor) === "end" && (a = C((u = e == null ? void 0 : e.chart) == null ? void 0 : u.canvas)), (r == null ? void 0 : r.align) === "start" && (r == null ? void 0 : r.anchor) === "start" && (a = C((p = e == null ? void 0 : e.chart) == null ? void 0 : p.canvas)), $(a, {
723
+ baseColor: C((b = e == null ? void 0 : e.chart) == null ? void 0 : b.canvas)
724
+ });
725
+ }
726
+ function C(e) {
727
+ if (typeof document < "u") {
728
+ const r = V(e);
729
+ if (r) {
730
+ const t = window.getComputedStyle(r).getPropertyValue("--semaphor-background").trim();
731
+ return t ? `hsl(${t})` : Q(r) === "dark" ? "#000000" : "#FFFFFF";
732
+ }
733
+ const a = document.documentElement;
734
+ if (a.classList.contains("dark"))
735
+ return "#000000";
736
+ if (a.classList.contains("light"))
737
+ return "#FFFFFF";
738
+ }
739
+ return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "#000000" : "#FFFFFF";
740
+ }
741
+ function $(e, r = {}) {
742
+ let a = 0, t = 0, d = 0, n = 0;
743
+ const s = r.baseColor ? k(r.baseColor) : null, c = (m) => {
744
+ if (!m) return i.gray[500];
745
+ const w = k(m);
746
+ if (!w) return i.gray[500];
747
+ const h = M(w, s);
748
+ a += h.r, t += h.g, d += h.b, n++;
749
+ };
750
+ if (Array.isArray(e) ? e.forEach((m) => {
751
+ c(m);
752
+ }) : c(e), n === 0) return i.gray[500];
753
+ const f = a / n, u = t / n, p = d / n;
754
+ return (f * 299 + u * 587 + p * 114) / 1e3 >= 180 ? "black" : "white";
755
+ }
756
+ function M(e, r) {
757
+ if (e.alpha >= 1)
758
+ return e;
759
+ const a = r ? M(r, null) : H;
760
+ return {
761
+ r: e.r * e.alpha + a.r * (1 - e.alpha),
762
+ g: e.g * e.alpha + a.g * (1 - e.alpha),
763
+ b: e.b * e.alpha + a.b * (1 - e.alpha)
764
+ };
765
+ }
766
+ const H = {
767
+ r: 255,
768
+ g: 255,
769
+ b: 255
770
+ };
771
+ function K(e) {
772
+ if (!e) return !1;
773
+ const r = e.groupByColumns && e.groupByColumns.length > 0, a = e.metricColumns && e.metricColumns.length > 0, t = e.pivotByColumns && e.pivotByColumns.length > 0, d = e.detailColumns && e.detailColumns.length > 0;
774
+ return !!(r || a || t || d);
775
+ }
776
+ function me(e, r) {
777
+ var n, s, c;
778
+ if (r != null && r.skipSetupCheck || e.type === "text" || (n = e.customCardPreferences) != null && n.url)
779
+ return !1;
780
+ const a = !!(e.connectionId || (s = e.dataSource) != null && s.connectionId), t = !!((c = e.sql) != null && c.trim()), d = K(e.config);
781
+ return !a || !d && !t;
782
+ }
783
+ function ye(e) {
784
+ return e.format != null || e.dateFormat != null;
785
+ }
786
+ const Y = {
787
+ "Week of MMM DD, YYYY": {
788
+ type: "temporal_bucket",
789
+ presentation: { mode: "preset", preset: "week_of_short" }
790
+ },
791
+ "Week of MMMM DD, YYYY": {
792
+ type: "temporal_bucket",
793
+ presentation: { mode: "preset", preset: "week_of_long" }
794
+ },
795
+ "Q1 YYYY": {
796
+ type: "temporal_bucket",
797
+ presentation: { mode: "preset", preset: "quarter_short" }
798
+ },
799
+ "1st Quarter YYYY": {
800
+ type: "temporal_bucket",
801
+ presentation: { mode: "preset", preset: "quarter_long" }
802
+ },
803
+ "YYYY Q1": void 0,
804
+ "YYYY-Q1": void 0,
805
+ "Quarter 1, YYYY": void 0,
806
+ "YYYY-WW": void 0
807
+ };
808
+ function z(e, r, a, t) {
809
+ return {
810
+ code: r,
811
+ severity: "warning",
812
+ fieldId: e.fieldId,
813
+ ...t ? { ignoredPattern: t } : {},
814
+ effectiveFormat: a
815
+ };
816
+ }
817
+ function J(e, r) {
818
+ if (e.dateFormat === void 0 || e.dateFormat === null)
819
+ return { format: g };
820
+ if (typeof e.dateFormat != "string")
821
+ return {
822
+ format: g,
823
+ repairCode: "unsupported_pattern"
824
+ };
825
+ const a = e.dateFormat === "custom" ? typeof e.customFormat == "string" ? e.customFormat.trim() : "" : e.dateFormat.trim();
826
+ if (!a)
827
+ return {
828
+ format: g,
829
+ repairCode: "missing_custom_pattern"
830
+ };
831
+ if (Object.prototype.hasOwnProperty.call(Y, a)) {
832
+ const n = Y[a];
833
+ return n ? v(
834
+ n,
835
+ r
836
+ ).ok ? { format: n } : {
837
+ format: g,
838
+ repairCode: "grain_incompatible_pattern",
839
+ ignoredPattern: a
840
+ } : {
841
+ format: g,
842
+ repairCode: "unsupported_pattern",
843
+ ignoredPattern: a
844
+ };
845
+ }
846
+ const t = {
847
+ type: "temporal_bucket",
848
+ presentation: { mode: "pattern", pattern: a }
849
+ }, d = v(
850
+ t,
851
+ r
852
+ );
853
+ return d.ok ? { format: t } : {
854
+ format: g,
855
+ repairCode: d.code === "incompatible_temporal_bucket_pattern" || d.code === "incompatible_temporal_bucket_preset" ? "grain_incompatible_pattern" : "unsupported_pattern",
856
+ ignoredPattern: a
857
+ };
858
+ }
859
+ function Z(e) {
860
+ if (O(e.granularity))
861
+ return { granularity: e.granularity, assumedDay: !1 };
862
+ if (!(e.granularity !== void 0 && e.granularity !== null))
863
+ return D(e.dataType) === "date" ? { granularity: "day", assumedDay: !0 } : void 0;
864
+ }
865
+ function he(e) {
866
+ const r = Z(e);
867
+ if (!r)
868
+ return {
869
+ ok: !1,
870
+ error: { code: "ambiguous_temporal_grain", fieldId: e.fieldId }
871
+ };
872
+ let a, t, d;
873
+ if (e.format !== void 0 && e.format !== null) {
874
+ const s = R.safeParse(e.format);
875
+ if (!s.success)
876
+ a = g, t = "unsupported_pattern";
877
+ else {
878
+ const c = v(
879
+ s.data,
880
+ r.granularity
881
+ );
882
+ a = c.ok ? s.data : g, c.ok || (t = c.code === "invalid_temporal_bucket_pattern" ? "unsupported_pattern" : "grain_incompatible_pattern", d = s.data.presentation.mode === "pattern" ? s.data.presentation.pattern : s.data.presentation.mode === "preset" ? s.data.presentation.preset : void 0);
883
+ }
884
+ } else
885
+ ({ format: a, repairCode: t, ignoredPattern: d } = J(
886
+ e,
887
+ r.granularity
888
+ ));
889
+ const n = r.assumedDay ? "missing_grain_assumed_day" : t;
890
+ return {
891
+ ok: !0,
892
+ format: a,
893
+ ...n ? {
894
+ diagnostic: z(
895
+ e,
896
+ n,
897
+ a,
898
+ d
899
+ )
900
+ } : {}
901
+ };
902
+ }
903
+ export {
904
+ ge as B,
905
+ pe as C,
906
+ ce as D,
907
+ le as M,
908
+ ye as a,
909
+ ie as b,
910
+ i as c,
911
+ C as d,
912
+ U as e,
913
+ se as f,
914
+ $ as g,
915
+ K as h,
916
+ me as i,
917
+ be as j,
918
+ ne as k,
919
+ fe as l,
920
+ F as m,
921
+ ue as n,
922
+ he as r,
923
+ de as v
924
+ };