@danxbot/ui 7.0.3 → 7.2.0
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/confidence.css +202 -0
- package/dist/index.js +66 -59
- package/dist/index.js.map +1 -1
- package/dist/pure.js +72 -58
- package/dist/pure.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/provenance/types.d.ts +0 -16
- package/dist/types/index.d.ts +2 -1
- package/dist/types/lib/confidence.d.ts +23 -0
- package/dist/types/pure.d.ts +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
THE COLOUR RAMPS — TIER 1 primitives, and nothing else.
|
|
3
|
+
|
|
4
|
+
Split out of tokens.css (SG-901) so a surface that is NOT a consumer of this
|
|
5
|
+
design system can still read the ONE confidence scale: `dist/confidence.css`
|
|
6
|
+
ships these ramps plus the confidence tokens as a self-contained file, and a
|
|
7
|
+
separate Vue package (the demand letter's verification overlay) imports it
|
|
8
|
+
rather than keeping its own copy of five colours. tokens.css imports this file
|
|
9
|
+
first, so nothing about how the library itself resolves a colour changes.
|
|
10
|
+
|
|
11
|
+
Never referenced by a component — see tokens.css for the tier rules.
|
|
12
|
+
========================================================================= */
|
|
13
|
+
|
|
14
|
+
:root {
|
|
15
|
+
/* --- Neutral: SLATE ----------------------------------------------------
|
|
16
|
+
Cool, faintly violet-tinted (hue 267). The tint is small but load-bearing:
|
|
17
|
+
it makes large dark fills read as deep atmosphere rather than flat grey,
|
|
18
|
+
and it harmonises with the aqua/iris accents instead of fighting them.
|
|
19
|
+
|
|
20
|
+
The dark end deliberately STOPS at L 0.17 rather than approaching black.
|
|
21
|
+
Near-black surfaces make every accent scream and leave nowhere to go for
|
|
22
|
+
a recessed state; a lifted floor is what makes the dark theme read as
|
|
23
|
+
soft rather than severe. */
|
|
24
|
+
--slate-25: oklch(0.986 0.003 267);
|
|
25
|
+
--slate-50: oklch(0.970 0.005 267);
|
|
26
|
+
--slate-100: oklch(0.938 0.009 267);
|
|
27
|
+
--slate-200: oklch(0.882 0.013 267);
|
|
28
|
+
--slate-300: oklch(0.802 0.017 267);
|
|
29
|
+
--slate-400: oklch(0.694 0.020 267);
|
|
30
|
+
/* Two half-steps, added because the ramp's 500 lands almost exactly ON the
|
|
31
|
+
AA boundary (3.80:1 on the light canvas, 4.49:1 on the dark one) — which
|
|
32
|
+
is not a step you can build de-emphasised TEXT from in either theme. Both
|
|
33
|
+
were measured, not guessed: `node scripts/contrast.mjs`. */
|
|
34
|
+
--slate-450: oklch(0.620 0.022 267);
|
|
35
|
+
--slate-500: oklch(0.588 0.022 267);
|
|
36
|
+
--slate-550: oklch(0.545 0.022 267);
|
|
37
|
+
--slate-600: oklch(0.492 0.023 267);
|
|
38
|
+
--slate-700: oklch(0.402 0.023 268);
|
|
39
|
+
--slate-750: oklch(0.348 0.023 268);
|
|
40
|
+
--slate-800: oklch(0.302 0.022 268);
|
|
41
|
+
--slate-850: oklch(0.264 0.021 268);
|
|
42
|
+
--slate-900: oklch(0.242 0.020 269);
|
|
43
|
+
--slate-950: oklch(0.212 0.019 269);
|
|
44
|
+
--slate-975: oklch(0.186 0.018 269);
|
|
45
|
+
|
|
46
|
+
/* --- Primary: AQUA -----------------------------------------------------
|
|
47
|
+
Electric cyan-teal. Luminous and unmistakably technical, but off the
|
|
48
|
+
default blue (250-260) that every framework ships, so it reads as chosen
|
|
49
|
+
rather than inherited. */
|
|
50
|
+
--aqua-50: oklch(0.974 0.022 196);
|
|
51
|
+
--aqua-100: oklch(0.944 0.046 196);
|
|
52
|
+
--aqua-200: oklch(0.896 0.078 196);
|
|
53
|
+
--aqua-300: oklch(0.846 0.100 197);
|
|
54
|
+
--aqua-400: oklch(0.802 0.116 198);
|
|
55
|
+
--aqua-500: oklch(0.748 0.126 199);
|
|
56
|
+
--aqua-600: oklch(0.664 0.118 201);
|
|
57
|
+
--aqua-700: oklch(0.554 0.098 203);
|
|
58
|
+
--aqua-800: oklch(0.448 0.078 205);
|
|
59
|
+
--aqua-900: oklch(0.352 0.058 207);
|
|
60
|
+
--aqua-950: oklch(0.262 0.042 209);
|
|
61
|
+
|
|
62
|
+
/* --- Signal: IRIS ------------------------------------------------------
|
|
63
|
+
The high-energy counterpart, rationed hard — hero moments, live states,
|
|
64
|
+
the one thing on screen that should pull the eye. Sitting at hue 302 it
|
|
65
|
+
is deliberately off the 277/292 violet-indigo that reads as generic. */
|
|
66
|
+
--iris-50: oklch(0.970 0.024 302);
|
|
67
|
+
--iris-100: oklch(0.938 0.050 302);
|
|
68
|
+
--iris-200: oklch(0.888 0.086 302);
|
|
69
|
+
--iris-300: oklch(0.824 0.120 302);
|
|
70
|
+
--iris-400: oklch(0.760 0.148 303);
|
|
71
|
+
--iris-500: oklch(0.700 0.166 303);
|
|
72
|
+
--iris-600: oklch(0.620 0.174 304);
|
|
73
|
+
/* A half-step, because iris-600 under WHITE text measures 3.91:1 — the
|
|
74
|
+
brand button's exact case, and a fail. This is the lightest, most
|
|
75
|
+
saturated violet that still clears AA with white on it (4.71:1), so the
|
|
76
|
+
brand keeps its punch instead of retreating to the much duller 700. */
|
|
77
|
+
--iris-650: oklch(0.575 0.165 304);
|
|
78
|
+
--iris-700: oklch(0.518 0.148 305);
|
|
79
|
+
--iris-800: oklch(0.422 0.118 306);
|
|
80
|
+
--iris-900: oklch(0.336 0.090 307);
|
|
81
|
+
--iris-950: oklch(0.250 0.066 308);
|
|
82
|
+
|
|
83
|
+
/* --- Status ramps ------------------------------------------------------
|
|
84
|
+
Hues spread widely (18 / 88 / 158 / 252) so status survives colour-vision
|
|
85
|
+
deficiency: lightness and hue-distance carry the signal, never red-vs-
|
|
86
|
+
green alone. Success sits at 158 — far enough from the 199 primary that
|
|
87
|
+
"succeeded" never reads as "selected". */
|
|
88
|
+
--rose-50: oklch(0.968 0.020 18);
|
|
89
|
+
--rose-100: oklch(0.932 0.042 18);
|
|
90
|
+
--rose-200: oklch(0.876 0.080 18);
|
|
91
|
+
--rose-300: oklch(0.794 0.130 20);
|
|
92
|
+
--rose-400: oklch(0.714 0.170 22);
|
|
93
|
+
--rose-500: oklch(0.646 0.200 24);
|
|
94
|
+
--rose-600: oklch(0.574 0.200 25);
|
|
95
|
+
--rose-700: oklch(0.480 0.170 26);
|
|
96
|
+
--rose-800: oklch(0.390 0.134 26);
|
|
97
|
+
--rose-900: oklch(0.310 0.100 26);
|
|
98
|
+
--rose-950: oklch(0.230 0.072 26);
|
|
99
|
+
|
|
100
|
+
--amber-50: oklch(0.980 0.024 92);
|
|
101
|
+
--amber-100: oklch(0.954 0.054 92);
|
|
102
|
+
--amber-200: oklch(0.910 0.100 90);
|
|
103
|
+
--amber-300: oklch(0.862 0.134 88);
|
|
104
|
+
--amber-400: oklch(0.814 0.150 86);
|
|
105
|
+
--amber-500: oklch(0.762 0.146 84);
|
|
106
|
+
--amber-600: oklch(0.670 0.130 80);
|
|
107
|
+
/* A half-step, for the light-theme confidence scale (SG-896): the lightest amber that still
|
|
108
|
+
clears WCAG 1.4.11 3:1 on BOTH light grounds (3.07 on slate-50, 3.35 on white) — 600 is
|
|
109
|
+
2.79 on the canvas. Measured with scripts/contrast.mjs, pinned by confidence-contrast.test. */
|
|
110
|
+
--amber-650: oklch(0.645 0.124 78);
|
|
111
|
+
--amber-700: oklch(0.554 0.108 76);
|
|
112
|
+
--amber-800: oklch(0.450 0.086 74);
|
|
113
|
+
--amber-900: oklch(0.358 0.066 72);
|
|
114
|
+
--amber-950: oklch(0.264 0.050 70);
|
|
115
|
+
|
|
116
|
+
--mint-50: oklch(0.972 0.026 158);
|
|
117
|
+
--mint-100: oklch(0.942 0.052 158);
|
|
118
|
+
--mint-200: oklch(0.892 0.084 158);
|
|
119
|
+
--mint-300: oklch(0.836 0.108 158);
|
|
120
|
+
--mint-400: oklch(0.780 0.122 159);
|
|
121
|
+
--mint-500: oklch(0.722 0.126 160);
|
|
122
|
+
--mint-600: oklch(0.636 0.114 161);
|
|
123
|
+
/* A half-step, for the same reason as amber-650: the lightest mint clearing 3:1 on both
|
|
124
|
+
light grounds (3.10 on slate-50, 3.39 on white) — 600 is 2.97 on the canvas. */
|
|
125
|
+
--mint-650: oklch(0.625 0.110 161);
|
|
126
|
+
--mint-700: oklch(0.528 0.094 162);
|
|
127
|
+
--mint-800: oklch(0.428 0.074 163);
|
|
128
|
+
--mint-900: oklch(0.338 0.056 164);
|
|
129
|
+
--mint-950: oklch(0.250 0.040 165);
|
|
130
|
+
|
|
131
|
+
--azure-50: oklch(0.970 0.020 252);
|
|
132
|
+
--azure-100: oklch(0.938 0.040 252);
|
|
133
|
+
--azure-200: oklch(0.884 0.072 252);
|
|
134
|
+
--azure-300: oklch(0.810 0.104 252);
|
|
135
|
+
--azure-400: oklch(0.730 0.130 253);
|
|
136
|
+
--azure-500: oklch(0.656 0.146 254);
|
|
137
|
+
--azure-600: oklch(0.576 0.154 255);
|
|
138
|
+
--azure-700: oklch(0.482 0.130 256);
|
|
139
|
+
--azure-800: oklch(0.394 0.102 257);
|
|
140
|
+
--azure-900: oklch(0.314 0.076 258);
|
|
141
|
+
--azure-950: oklch(0.234 0.054 259);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* ============================================================================
|
|
145
|
+
THE FIVE-STEP CONFIDENCE SCALE (SG-843 / SG-896 / SG-901).
|
|
146
|
+
|
|
147
|
+
One colour per level of a 1-5 self-rating, named by the operator: dark red,
|
|
148
|
+
light red, yellow, light green, dark green, plus a visible colour for "not
|
|
149
|
+
rated". Deliberately NOT the three status bands in tokens.css — a 4 and a 5
|
|
150
|
+
are both fine but must read as different, and three bands cannot say that.
|
|
151
|
+
|
|
152
|
+
ITS OWN FILE, SO IT CAN BE THE ONLY COPY. Every surface that draws a rating
|
|
153
|
+
reads these tokens: this library's `ConfidenceBar` (through tokens.css's
|
|
154
|
+
theme, via authored.css), and the demand letter's verification overlay — a
|
|
155
|
+
separate Vue package that is not a consumer of this design system, which
|
|
156
|
+
imports `dist/confidence.css` (this file plus palette.css, self-contained)
|
|
157
|
+
instead of keeping its own five colours. A second copy of five colours is how
|
|
158
|
+
a letter and the screen beside it came to disagree about what a 4 looks like.
|
|
159
|
+
|
|
160
|
+
EVERY STATE CLEARS WCAG 1.4.11 3:1 against its theme's surface and canvas —
|
|
161
|
+
an invisible level is the hidden state the bar exists to rule out. Pinned by
|
|
162
|
+
`src/__tests__/confidence-contrast.test.ts`, which reads this file.
|
|
163
|
+
|
|
164
|
+
Selectors mirror tokens.css exactly: dark is the default, an explicit
|
|
165
|
+
`[data-theme]` wins, and the OS preference applies only when nothing is set.
|
|
166
|
+
========================================================================= */
|
|
167
|
+
|
|
168
|
+
/* DARK (the default). "Dark" and "light" are relative to each other within a
|
|
169
|
+
hue; on the dark canvas the darker step is still lifted enough to read. */
|
|
170
|
+
:root,
|
|
171
|
+
[data-theme="dark"] {
|
|
172
|
+
--confidence-1: var(--rose-600);
|
|
173
|
+
--confidence-2: var(--rose-300);
|
|
174
|
+
--confidence-3: var(--amber-400);
|
|
175
|
+
--confidence-4: var(--mint-300);
|
|
176
|
+
--confidence-5: var(--mint-600);
|
|
177
|
+
--confidence-none: var(--slate-500);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* LIGHT. Every step clears 3:1 on white (10.3, 3.6, 3.4, 3.4, 7.9) and on the
|
|
181
|
+
slate-50 canvas, which is why these stops sit darker than the dark theme's:
|
|
182
|
+
rose-400, amber-400 and mint-400 measure 2.7, 1.8 and 1.9 on white. */
|
|
183
|
+
[data-theme="light"],
|
|
184
|
+
html:has(> body > script[src$="_ds_bundle.js"]) {
|
|
185
|
+
--confidence-1: var(--rose-800);
|
|
186
|
+
--confidence-2: var(--rose-500);
|
|
187
|
+
--confidence-3: var(--amber-650);
|
|
188
|
+
--confidence-4: var(--mint-650);
|
|
189
|
+
--confidence-5: var(--mint-800);
|
|
190
|
+
--confidence-none: var(--slate-500);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@media (prefers-color-scheme: light) {
|
|
194
|
+
:root:not([data-theme="dark"]):not([data-theme="light"]) {
|
|
195
|
+
--confidence-1: var(--rose-800);
|
|
196
|
+
--confidence-2: var(--rose-500);
|
|
197
|
+
--confidence-3: var(--amber-650);
|
|
198
|
+
--confidence-4: var(--mint-650);
|
|
199
|
+
--confidence-5: var(--mint-800);
|
|
200
|
+
--confidence-none: var(--slate-500);
|
|
201
|
+
}
|
|
202
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -46506,21 +46506,16 @@ function FG(e, t) {
|
|
|
46506
46506
|
function q4(e) {
|
|
46507
46507
|
return e >= 0.9 ? "high" : e >= 0.7 ? "moderate" : "low";
|
|
46508
46508
|
}
|
|
46509
|
-
|
|
46510
|
-
if (!Number.isFinite(e) || !Number.isFinite(t) || t <= 0 || e <= 0) return null;
|
|
46511
|
-
const n = Math.round(Math.min(e, t) / t * 5);
|
|
46512
|
-
return Math.max(1, Math.min(5, n));
|
|
46513
|
-
}
|
|
46514
|
-
const X4 = {
|
|
46509
|
+
const Y4 = {
|
|
46515
46510
|
high: "success",
|
|
46516
46511
|
moderate: "warning",
|
|
46517
46512
|
low: "danger"
|
|
46518
|
-
},
|
|
46513
|
+
}, X4 = {
|
|
46519
46514
|
high: "High confidence",
|
|
46520
46515
|
moderate: "Moderate confidence",
|
|
46521
46516
|
low: "Low confidence"
|
|
46522
46517
|
};
|
|
46523
|
-
function
|
|
46518
|
+
function Z4({
|
|
46524
46519
|
confidence: e,
|
|
46525
46520
|
unscoredLabel: t = "Not scored",
|
|
46526
46521
|
compact: n = !1,
|
|
@@ -46533,15 +46528,26 @@ function Q4({
|
|
|
46533
46528
|
t_,
|
|
46534
46529
|
{
|
|
46535
46530
|
value: s,
|
|
46536
|
-
tone:
|
|
46531
|
+
tone: Y4[o],
|
|
46537
46532
|
size: "sm",
|
|
46538
|
-
label: n ? void 0 :
|
|
46533
|
+
label: n ? void 0 : X4[o],
|
|
46539
46534
|
format: (i) => `${i}%`,
|
|
46540
46535
|
showValue: !0
|
|
46541
46536
|
}
|
|
46542
46537
|
) });
|
|
46543
46538
|
}
|
|
46544
|
-
|
|
46539
|
+
function Q4(e, t) {
|
|
46540
|
+
if (!Number.isFinite(e) || !Number.isFinite(t) || t <= 0 || e <= 0) return null;
|
|
46541
|
+
const n = Math.round(Math.min(e, t) / t * 5);
|
|
46542
|
+
return Math.max(1, Math.min(5, n));
|
|
46543
|
+
}
|
|
46544
|
+
const $G = {
|
|
46545
|
+
1: "Just a guess",
|
|
46546
|
+
2: "Somewhat unsure",
|
|
46547
|
+
3: "Fairly confident",
|
|
46548
|
+
4: "Confident",
|
|
46549
|
+
5: "Highly confident"
|
|
46550
|
+
}, J4 = pt({
|
|
46545
46551
|
slots: {
|
|
46546
46552
|
slot: "flex shrink-0 overflow-hidden rounded-full",
|
|
46547
46553
|
fill: "h-full rounded-full"
|
|
@@ -46578,7 +46584,7 @@ function eH({
|
|
|
46578
46584
|
size: r,
|
|
46579
46585
|
className: o
|
|
46580
46586
|
}) {
|
|
46581
|
-
const s = e === null ? null :
|
|
46587
|
+
const s = e === null ? null : Q4(e, t), i = s === null || e === null ? `${n} — not rated` : `${n} ${String(Math.round(e))} of ${String(Math.round(t))}`, a = J4({ size: r, level: s ?? "none" });
|
|
46582
46588
|
return /* @__PURE__ */ f(ln, { content: i, children: /* @__PURE__ */ f(
|
|
46583
46589
|
"span",
|
|
46584
46590
|
{
|
|
@@ -46606,7 +46612,7 @@ function tH({
|
|
|
46606
46612
|
className: o
|
|
46607
46613
|
}
|
|
46608
46614
|
) : /* @__PURE__ */ f(
|
|
46609
|
-
|
|
46615
|
+
Z4,
|
|
46610
46616
|
{
|
|
46611
46617
|
confidence: e.score,
|
|
46612
46618
|
compact: r,
|
|
@@ -46645,7 +46651,7 @@ function IN({
|
|
|
46645
46651
|
}
|
|
46646
46652
|
);
|
|
46647
46653
|
}
|
|
46648
|
-
function
|
|
46654
|
+
function LG(e) {
|
|
46649
46655
|
return kN[e].label;
|
|
46650
46656
|
}
|
|
46651
46657
|
const nH = {
|
|
@@ -46777,7 +46783,7 @@ function rH({
|
|
|
46777
46783
|
] })
|
|
46778
46784
|
] });
|
|
46779
46785
|
}
|
|
46780
|
-
function
|
|
46786
|
+
function zG({
|
|
46781
46787
|
record: e,
|
|
46782
46788
|
actions: t,
|
|
46783
46789
|
emptyLabel: n = "No value",
|
|
@@ -46897,7 +46903,7 @@ async function Nl(e) {
|
|
|
46897
46903
|
throw await Iv(o), new cH("Simulated network failure (Flaky mode).");
|
|
46898
46904
|
await Iv(o);
|
|
46899
46905
|
}
|
|
46900
|
-
function
|
|
46906
|
+
function BG(e, t, n, r = {}) {
|
|
46901
46907
|
const o = r.namespace ?? "demo", s = `${o}:${e}`;
|
|
46902
46908
|
let i = ph(s, (p) => Array.isArray(p)) ?? t;
|
|
46903
46909
|
const a = /* @__PURE__ */ new Set();
|
|
@@ -47238,7 +47244,7 @@ function xH(e, t, n) {
|
|
|
47238
47244
|
const r = e.x + e.width, o = e.y + e.height / 2, s = t.x, i = t.y + t.height / 2, a = (r + s) / 2;
|
|
47239
47245
|
return `M ${r} ${o} C ${a} ${o}, ${a} ${i}, ${s} ${i}`;
|
|
47240
47246
|
}
|
|
47241
|
-
function
|
|
47247
|
+
function HG({
|
|
47242
47248
|
root: e,
|
|
47243
47249
|
label: t,
|
|
47244
47250
|
renderNode: n,
|
|
@@ -47575,7 +47581,7 @@ function EH(e) {
|
|
|
47575
47581
|
return e.startsWith("__") || e === "deleted_at";
|
|
47576
47582
|
}
|
|
47577
47583
|
const Cc = /* @__PURE__ */ new Map();
|
|
47578
|
-
function
|
|
47584
|
+
function UG(e, t = {}) {
|
|
47579
47585
|
const n = Ia(e);
|
|
47580
47586
|
n !== e && rn(
|
|
47581
47587
|
"defineRecordType",
|
|
@@ -47596,7 +47602,7 @@ function RH(e, t) {
|
|
|
47596
47602
|
function NH(e) {
|
|
47597
47603
|
return Cc.get(e)?.staleFields ?? [];
|
|
47598
47604
|
}
|
|
47599
|
-
function
|
|
47605
|
+
function GG() {
|
|
47600
47606
|
Cc.clear();
|
|
47601
47607
|
}
|
|
47602
47608
|
const FN = -1, Ln = /* @__PURE__ */ new Map(), Sr = /* @__PURE__ */ new Map(), ao = /* @__PURE__ */ new Map(), _r = /* @__PURE__ */ new Map(), Xi = /* @__PURE__ */ new Set(), no = /* @__PURE__ */ new Map();
|
|
@@ -47779,7 +47785,7 @@ function _H(e) {
|
|
|
47779
47785
|
});
|
|
47780
47786
|
return ao.set(e, o), o;
|
|
47781
47787
|
}
|
|
47782
|
-
function
|
|
47788
|
+
function jG(e, t, n) {
|
|
47783
47789
|
return Ma(oi(e, t), n);
|
|
47784
47790
|
}
|
|
47785
47791
|
let Ts = /* @__PURE__ */ new Set(), Fn = null;
|
|
@@ -47911,10 +47917,10 @@ function fp(e, t) {
|
|
|
47911
47917
|
if (Zi(e))
|
|
47912
47918
|
for (const n of Object.values(e)) fp(n, t);
|
|
47913
47919
|
}
|
|
47914
|
-
function
|
|
47920
|
+
function WG() {
|
|
47915
47921
|
Fn !== null && (Gg(Fn), Fn = null), Ln.clear(), Sr.clear(), ao.clear(), _r.clear(), Xi.clear(), no.clear(), Ts = /* @__PURE__ */ new Set(), Ri = Wg, Is = 0, lo = void 0;
|
|
47916
47922
|
}
|
|
47917
|
-
function
|
|
47923
|
+
function KG() {
|
|
47918
47924
|
return { records: Ln.size, memos: Sr.size, roots: no.size, listeners: _r.size };
|
|
47919
47925
|
}
|
|
47920
47926
|
function Zi(e) {
|
|
@@ -47943,7 +47949,7 @@ function jH(e, t, n) {
|
|
|
47943
47949
|
), a = kr(s, i, DH);
|
|
47944
47950
|
return Ye(() => r === null ? void 0 : qg([r]), [r]), a;
|
|
47945
47951
|
}
|
|
47946
|
-
function
|
|
47952
|
+
function qG(e, t, n) {
|
|
47947
47953
|
const r = n.needs, o = qe(() => t.map((d) => oi(e.type, d)), [e.type, t.join("\0")]), s = o.join("\0"), i = Ve(
|
|
47948
47954
|
(d) => {
|
|
47949
47955
|
const p = o.map((h) => jg(h, d));
|
|
@@ -47959,7 +47965,7 @@ function KG(e, t, n) {
|
|
|
47959
47965
|
}, [s, r]), c = qe(() => Object.freeze(o.map(() => Ta)), [s]), u = Ve(() => c, [c]), m = kr(i, l, u);
|
|
47960
47966
|
return Ye(() => qg(o), [s]), m;
|
|
47961
47967
|
}
|
|
47962
|
-
function
|
|
47968
|
+
function YG() {
|
|
47963
47969
|
return kr(BN, Kg, BH);
|
|
47964
47970
|
}
|
|
47965
47971
|
const WH = 6e4, KH = 6e4, qH = 1e3, YH = 3e4, XH = 6;
|
|
@@ -47978,7 +47984,7 @@ function JH() {
|
|
|
47978
47984
|
Yu += 1;
|
|
47979
47985
|
for (const e of [...Ec]) e();
|
|
47980
47986
|
}
|
|
47981
|
-
function
|
|
47987
|
+
function XG() {
|
|
47982
47988
|
Yu = 0, Ec.clear(), Rc.clear();
|
|
47983
47989
|
}
|
|
47984
47990
|
function Xu(e) {
|
|
@@ -48381,7 +48387,7 @@ function vi(e, t) {
|
|
|
48381
48387
|
}
|
|
48382
48388
|
}
|
|
48383
48389
|
const UN = An(null);
|
|
48384
|
-
function
|
|
48390
|
+
function ZG({
|
|
48385
48391
|
transport: e,
|
|
48386
48392
|
tenant: t,
|
|
48387
48393
|
ownsStoreTenant: n = !0,
|
|
@@ -48396,7 +48402,7 @@ function XG({
|
|
|
48396
48402
|
function GN() {
|
|
48397
48403
|
return On(UN);
|
|
48398
48404
|
}
|
|
48399
|
-
function
|
|
48405
|
+
function QG(e, t, n) {
|
|
48400
48406
|
const r = GN(), o = Xg(Xu(t)), s = [...n].sort().join(","), i = ke({ scope: t, events: n });
|
|
48401
48407
|
i.current = { scope: t, events: n }, Ye(() => {
|
|
48402
48408
|
if (r)
|
|
@@ -48410,7 +48416,7 @@ const Mv = Object.freeze({
|
|
|
48410
48416
|
epoch: 0,
|
|
48411
48417
|
lastError: void 0
|
|
48412
48418
|
});
|
|
48413
|
-
function
|
|
48419
|
+
function JG() {
|
|
48414
48420
|
const e = GN(), t = Ve(
|
|
48415
48421
|
(o) => {
|
|
48416
48422
|
if (!e) return () => {
|
|
@@ -48424,7 +48430,7 @@ function QG() {
|
|
|
48424
48430
|
), n = Ve(() => e ? e.readHealth() : Mv, [e]), r = Ve(() => Mv, []);
|
|
48425
48431
|
return kr(t, n, r);
|
|
48426
48432
|
}
|
|
48427
|
-
function
|
|
48433
|
+
function e9() {
|
|
48428
48434
|
return kr(Yg, ZH, () => 0);
|
|
48429
48435
|
}
|
|
48430
48436
|
const r6 = 1e3;
|
|
@@ -48507,7 +48513,7 @@ function i6() {
|
|
|
48507
48513
|
function a6() {
|
|
48508
48514
|
for (const e of [...Ms.values()]) e.request();
|
|
48509
48515
|
}
|
|
48510
|
-
function
|
|
48516
|
+
function t9() {
|
|
48511
48517
|
Ms.clear(), KN();
|
|
48512
48518
|
}
|
|
48513
48519
|
const Zu = Object.freeze({
|
|
@@ -48643,7 +48649,7 @@ function Ov(e, t) {
|
|
|
48643
48649
|
function S6(e, t) {
|
|
48644
48650
|
return e.length === t.length && e.every((n, r) => n === t[r]);
|
|
48645
48651
|
}
|
|
48646
|
-
function
|
|
48652
|
+
function n9() {
|
|
48647
48653
|
for (const e of $n.values()) {
|
|
48648
48654
|
for (const t of e.memberReleases) t();
|
|
48649
48655
|
e.retainRelease?.();
|
|
@@ -48651,7 +48657,7 @@ function t9() {
|
|
|
48651
48657
|
$n.clear(), ws.clear(), Wo?.(), Wo = null;
|
|
48652
48658
|
}
|
|
48653
48659
|
const qN = { inFlight: !1, settled: !1, error: void 0 };
|
|
48654
|
-
function
|
|
48660
|
+
function r9(e, t, n) {
|
|
48655
48661
|
const { tag: r, tenant: o, enabled: s = !0, minRefetchIntervalMs: i } = n, a = t == null ? null : oi(e.type, t), l = jH(e, t, { needs: r }), [c, u] = Re(qN), m = ke(n.fetch);
|
|
48656
48662
|
m.current = n.fetch;
|
|
48657
48663
|
const d = ke(o);
|
|
@@ -48695,7 +48701,7 @@ function n9(e, t, n) {
|
|
|
48695
48701
|
[l, c, g]
|
|
48696
48702
|
);
|
|
48697
48703
|
}
|
|
48698
|
-
function
|
|
48704
|
+
function o9(e, t) {
|
|
48699
48705
|
const { key: n, tag: r, tenant: o, enabled: s = !0, minRefetchIntervalMs: i, createdScope: a } = t, l = a === void 0 ? void 0 : Xu(a), c = l === void 0 ? "" : Xg(l), u = ke(l);
|
|
48700
48706
|
u.current = l;
|
|
48701
48707
|
const [m, d] = Re(qN), p = ke(t.fetch);
|
|
@@ -48746,14 +48752,14 @@ function r9(e, t) {
|
|
|
48746
48752
|
[w, m, S]
|
|
48747
48753
|
);
|
|
48748
48754
|
}
|
|
48749
|
-
function
|
|
48755
|
+
function s9(e, t) {
|
|
48750
48756
|
return qu(e, {
|
|
48751
48757
|
source: "fetch",
|
|
48752
48758
|
tag: t.tag,
|
|
48753
48759
|
tenant: t.tenant ?? Hg()
|
|
48754
48760
|
});
|
|
48755
48761
|
}
|
|
48756
|
-
function
|
|
48762
|
+
function i9(e = 6e4) {
|
|
48757
48763
|
Ye(() => {
|
|
48758
48764
|
const t = setInterval(() => GH(), e);
|
|
48759
48765
|
return () => clearInterval(t);
|
|
@@ -48792,6 +48798,7 @@ export {
|
|
|
48792
48798
|
nF as Breadcrumb,
|
|
48793
48799
|
Nt as Button,
|
|
48794
48800
|
Nv as CATEGORY_TONES,
|
|
48801
|
+
$G as CONFIDENCE_LEVEL_LABELS,
|
|
48795
48802
|
CG as CalendarMonth,
|
|
48796
48803
|
EG as CalendarTimeGrid,
|
|
48797
48804
|
A6 as Callout,
|
|
@@ -48819,7 +48826,7 @@ export {
|
|
|
48819
48826
|
aU as CommandPalette,
|
|
48820
48827
|
l3 as Composer,
|
|
48821
48828
|
eH as ConfidenceBar,
|
|
48822
|
-
|
|
48829
|
+
Z4 as ConfidenceMeter,
|
|
48823
48830
|
tH as ConfidenceReadout,
|
|
48824
48831
|
W6 as ConnectionCard,
|
|
48825
48832
|
h3 as ContextMeter,
|
|
@@ -48878,7 +48885,7 @@ export {
|
|
|
48878
48885
|
t_ as Meter,
|
|
48879
48886
|
C3 as ModelSelector,
|
|
48880
48887
|
mU as MultiCombobox,
|
|
48881
|
-
|
|
48888
|
+
HG as NodeCanvas,
|
|
48882
48889
|
cU as NumberInput,
|
|
48883
48890
|
uU as OTPInput,
|
|
48884
48891
|
rF as Pagination,
|
|
@@ -48895,14 +48902,14 @@ export {
|
|
|
48895
48902
|
Kd as ProjectionError,
|
|
48896
48903
|
IN as ProvenanceBadge,
|
|
48897
48904
|
rH as ProvenanceDetail,
|
|
48898
|
-
|
|
48905
|
+
zG as ProvenanceDisclosure,
|
|
48899
48906
|
NG as RBACProvider,
|
|
48900
48907
|
G1 as Radio,
|
|
48901
48908
|
Z6 as RadioCard,
|
|
48902
48909
|
X6 as RadioField,
|
|
48903
48910
|
K6 as RadioGroup,
|
|
48904
48911
|
jU as ReadMore,
|
|
48905
|
-
|
|
48912
|
+
ZG as RealtimeProvider,
|
|
48906
48913
|
gU as RecordCard,
|
|
48907
48914
|
vU as RecordCardBadges,
|
|
48908
48915
|
xU as RecordCardEyebrow,
|
|
@@ -48976,7 +48983,7 @@ export {
|
|
|
48976
48983
|
KU as applyBoardMoves,
|
|
48977
48984
|
Sv as applyCalendarDelta,
|
|
48978
48985
|
Og as applyMove,
|
|
48979
|
-
|
|
48986
|
+
s9 as applyMutationResult,
|
|
48980
48987
|
Mu as assertSteps,
|
|
48981
48988
|
nG as atMidnight,
|
|
48982
48989
|
rG as atTime,
|
|
@@ -49001,12 +49008,12 @@ export {
|
|
|
49001
49008
|
W as cn,
|
|
49002
49009
|
Pi as comparePlainDate,
|
|
49003
49010
|
q4 as confidenceBand,
|
|
49004
|
-
|
|
49011
|
+
Q4 as confidenceLevel,
|
|
49005
49012
|
K4 as confidenceScore,
|
|
49006
49013
|
gc as constructAt,
|
|
49007
49014
|
zR as convertBlock,
|
|
49008
49015
|
vk as coreIcons,
|
|
49009
|
-
|
|
49016
|
+
BG as createSimStore,
|
|
49010
49017
|
Cl as createdEvent,
|
|
49011
49018
|
Yi as dayFraction,
|
|
49012
49019
|
vG as dayKey,
|
|
@@ -49016,7 +49023,7 @@ export {
|
|
|
49016
49023
|
hv as daysBetween,
|
|
49017
49024
|
zs as daysInMonth,
|
|
49018
49025
|
_n as defineGrammar,
|
|
49019
|
-
|
|
49026
|
+
UG as defineRecordType,
|
|
49020
49027
|
RR as deleteColumn,
|
|
49021
49028
|
ER as deleteRow,
|
|
49022
49029
|
NR as deleteTable,
|
|
@@ -49102,11 +49109,11 @@ export {
|
|
|
49102
49109
|
pG as parsePhone,
|
|
49103
49110
|
O3 as parsePlainDate,
|
|
49104
49111
|
DN as pathToNode,
|
|
49105
|
-
|
|
49112
|
+
jG as peekRecord,
|
|
49106
49113
|
Fg as plainDateTimeToInstant,
|
|
49107
49114
|
qy as project,
|
|
49108
49115
|
_5 as projectedText,
|
|
49109
|
-
|
|
49116
|
+
LG as provenanceStateLabel,
|
|
49110
49117
|
FG as ratedConfidence,
|
|
49111
49118
|
iB as readMoreVariants,
|
|
49112
49119
|
ZH as readRealtimeEpoch,
|
|
@@ -49116,17 +49123,17 @@ export {
|
|
|
49116
49123
|
Ma as readState,
|
|
49117
49124
|
ph as readStored,
|
|
49118
49125
|
oi as recordKey,
|
|
49119
|
-
|
|
49126
|
+
KG as recordStoreStats,
|
|
49120
49127
|
WN as registerActiveRead,
|
|
49121
49128
|
HU as registerGrammar,
|
|
49122
49129
|
I6 as registerIcon,
|
|
49123
49130
|
T6 as registerIcons,
|
|
49124
|
-
|
|
49125
|
-
|
|
49126
|
-
|
|
49127
|
-
|
|
49131
|
+
t9 as resetActiveReads,
|
|
49132
|
+
XG as resetRealtimeSignals,
|
|
49133
|
+
WG as resetRecordStore,
|
|
49134
|
+
GG as resetRecordTypes,
|
|
49128
49135
|
C4 as resetSimStores,
|
|
49129
|
-
|
|
49136
|
+
n9 as resetSlots,
|
|
49130
49137
|
bi as resolveCalendarTarget,
|
|
49131
49138
|
m5 as resolveKey,
|
|
49132
49139
|
BU as resolveLanguage,
|
|
@@ -49203,17 +49210,17 @@ export {
|
|
|
49203
49210
|
f4 as useNow,
|
|
49204
49211
|
_S as usePersistedState,
|
|
49205
49212
|
Ku as useRBAC,
|
|
49206
|
-
|
|
49207
|
-
|
|
49208
|
-
|
|
49213
|
+
QG as useRealtime,
|
|
49214
|
+
e9 as useRealtimeEpoch,
|
|
49215
|
+
JG as useRealtimeHealth,
|
|
49209
49216
|
GN as useRealtimeRegistry,
|
|
49210
49217
|
jH as useRecord,
|
|
49211
|
-
|
|
49212
|
-
|
|
49213
|
-
|
|
49214
|
-
|
|
49218
|
+
o9 as useRecordListRead,
|
|
49219
|
+
r9 as useRecordRead,
|
|
49220
|
+
i9 as useRecordStoreSweep,
|
|
49221
|
+
qG as useRecords,
|
|
49215
49222
|
T4 as useSimSettings,
|
|
49216
|
-
|
|
49223
|
+
YG as useStaleness,
|
|
49217
49224
|
UD as useTheme,
|
|
49218
49225
|
eU as useToast,
|
|
49219
49226
|
jD as useUiScale,
|