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