@umriss-ui/calculation 0.54.0 → 0.55.1
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/CHANGELOG.md +8 -0
- package/dist/calculation.client.js +24 -24
- package/dist/calculation.css +1 -1
- package/docs/llms-full.md +6 -6
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,14 @@ From 0.34.0 the packages share one number - five, six from 0.40.0, when the dash
|
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
+
## 0.55.1 – Released in step with the table (Nov. 2026)
|
|
18
|
+
|
|
19
|
+
No change of its own; the number moves with the table, whose heads now stand whole and line up with their columns in every sort state.
|
|
20
|
+
|
|
21
|
+
## 0.55.0 – Released in step with core (Nov. 2026)
|
|
22
|
+
|
|
23
|
+
No change of its own; the number moves with core, which adds `ColorPicker` and makes its dark theme lighter.
|
|
24
|
+
|
|
17
25
|
## 0.54.0 – Released in step with core (Nov. 2026)
|
|
18
26
|
|
|
19
27
|
No change of its own; the number moves with core, which adds `formatDuration`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./calculation.css";
|
|
3
3
|
import { jsx as l, jsxs as q } from "react/jsx-runtime";
|
|
4
|
-
import { useId as xe, useState as ie, useRef as Se, useCallback as pe, useLayoutEffect as
|
|
4
|
+
import { useId as xe, useState as ie, useRef as Se, useCallback as pe, useLayoutEffect as ke, useEffect as Ce } from "react";
|
|
5
5
|
import { assess as Ae, verdictWeight as ae, warnOnce as Me, useDensityFor as Ee, useFormats as Ne, useWording as ye, VisuallyHidden as Te, AngleGlyph as We, Badge as le, useFreshness as Be, Tooltip as Le } from "@umriss-ui/core";
|
|
6
6
|
import { p as Re } from "./calculation.model-BTqFvIHM.js";
|
|
7
7
|
function we(e, t) {
|
|
@@ -165,8 +165,8 @@ function Ye(e, t, p, i, u, n, r, _ = () => {
|
|
|
165
165
|
A,
|
|
166
166
|
P(!0),
|
|
167
167
|
f
|
|
168
|
-
].filter(Boolean).join(", "),
|
|
169
|
-
return { amount: V(z(s, r)), ownAmount: V(s.shown), unit:
|
|
168
|
+
].filter(Boolean).join(", "), k = s.shown === null ? void 0 : h.format === "percent" ? "%" : h.unit, V = (N) => N === null ? n.statAbsentValue : u.number(N, h.decimals);
|
|
169
|
+
return { amount: V(z(s, r)), ownAmount: V(s.shown), unit: k, names: w, target: P(!1), quality: A, reason: f, sentence: J, spokenNames: B.names, spokenNumber: L };
|
|
170
170
|
}
|
|
171
171
|
function Ke(e, t, p, i, u) {
|
|
172
172
|
const n = u ? `${se(u, !0, i)} ` : "", r = t[0].spokenNames, _ = n + e + (r === void 0 ? "" : ` ${i.calculationEquals} ${r}`), h = p.map(
|
|
@@ -174,7 +174,7 @@ function Ke(e, t, p, i, u) {
|
|
|
174
174
|
), s = t[0].quality;
|
|
175
175
|
return `${_}: ${h.join("; ")}${s ? `, ${s}` : ""}`;
|
|
176
176
|
}
|
|
177
|
-
const Ze = "_frame_8hlzv_24
|
|
177
|
+
const Ze = "_frame_8hlzv_24 _text_1ftkm_22", Je = "_calculation_8hlzv_51", Xe = "_line_8hlzv_86", et = "_assessment_8hlzv_98", tt = "_disclosure_8hlzv_107", nt = "_amount_8hlzv_90", at = "_list_8hlzv_128", st = "_item_8hlzv_129", ot = "_derivation_8hlzv_130", it = "_labelCell_8hlzv_90", lt = "_names_8hlzv_90", rt = "_operator_8hlzv_90", ct = "_unit_8hlzv_90", ut = "_label_8hlzv_90", dt = "_sentence_8hlzv_260", mt = "_approximate_8hlzv_376", pt = "_target_8hlzv_102", ht = "_worst_8hlzv_102", ft = "_quality_8hlzv_102", vt = "_head_8hlzv_555", gt = "_headCell_8hlzv_562", _t = "_headUnit_8hlzv_575", bt = "_notes_8hlzv_582", Nt = "_freshness_8hlzv_596", yt = "_headLabel_8hlzv_626", o = {
|
|
178
178
|
frame: Ze,
|
|
179
179
|
calculation: Je,
|
|
180
180
|
line: Xe,
|
|
@@ -225,13 +225,13 @@ function At({
|
|
|
225
225
|
x.current = a, typeof t == "function" ? t(a) : t && (t.current = a);
|
|
226
226
|
},
|
|
227
227
|
[t]
|
|
228
|
-
), [S, J] = ie(!1),
|
|
229
|
-
const a = x.current, d = a &&
|
|
228
|
+
), [S, J] = ie(!1), k = s?.length ?? 0, V = pe(() => {
|
|
229
|
+
const a = x.current, d = a && k > 0 ? getComputedStyle(a.firstElementChild).gridTemplateColumns.split(" ").map(parseFloat) : [], m = Z(k) - 1;
|
|
230
230
|
if (!a || d.length <= m || d.some((y) => !Number.isFinite(y))) {
|
|
231
231
|
J(!1);
|
|
232
232
|
return;
|
|
233
233
|
}
|
|
234
|
-
const
|
|
234
|
+
const C = d.slice(2, m).reduce((y, E) => y + E, 0);
|
|
235
235
|
let c = 0;
|
|
236
236
|
const R = document.createRange();
|
|
237
237
|
for (const y of a.querySelectorAll(`.${o.label}`)) {
|
|
@@ -242,14 +242,14 @@ function At({
|
|
|
242
242
|
c = Math.max(c, H + E + parseFloat(getComputedStyle(Y).paddingRight));
|
|
243
243
|
}
|
|
244
244
|
const M = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
245
|
-
J(a.clientWidth -
|
|
246
|
-
}, [
|
|
247
|
-
|
|
245
|
+
J(a.clientWidth - C < Math.min(c, wt * M));
|
|
246
|
+
}, [k]);
|
|
247
|
+
ke(() => V()), Ce(() => {
|
|
248
248
|
const a = x.current;
|
|
249
|
-
if (!a ||
|
|
249
|
+
if (!a || k === 0) return;
|
|
250
250
|
const d = new ResizeObserver(() => V());
|
|
251
251
|
return d.observe(a), () => d.disconnect();
|
|
252
|
-
}, [V,
|
|
252
|
+
}, [V, k]);
|
|
253
253
|
const N = (a) => B((d) => {
|
|
254
254
|
const m = new Set(d);
|
|
255
255
|
return m.delete(a) || m.add(a), m;
|
|
@@ -259,7 +259,7 @@ function At({
|
|
|
259
259
|
W.map(({ results: m }) => m.get(a.operands[d].key).shown)
|
|
260
260
|
);
|
|
261
261
|
let b = !1;
|
|
262
|
-
const F = (a, d) => a.map(({ own: m, text:
|
|
262
|
+
const F = (a, d) => a.map(({ own: m, text: C }, c) => [
|
|
263
263
|
/* @__PURE__ */ q(
|
|
264
264
|
"span",
|
|
265
265
|
{
|
|
@@ -271,7 +271,7 @@ function At({
|
|
|
271
271
|
style: s ? { "--_calculation-column": Z(c) } : void 0,
|
|
272
272
|
children: [
|
|
273
273
|
m.approximate && /* @__PURE__ */ l(Le, { content: v.calculationApproximateNote, children: /* @__PURE__ */ l("span", { className: o.approximate, children: "≈" }) }),
|
|
274
|
-
d ?
|
|
274
|
+
d ? C.ownAmount : C.amount
|
|
275
275
|
]
|
|
276
276
|
},
|
|
277
277
|
`amount-${c}`
|
|
@@ -283,18 +283,18 @@ function At({
|
|
|
283
283
|
"aria-hidden": "true",
|
|
284
284
|
style: s ? { "--_calculation-column": $t(c) } : void 0,
|
|
285
285
|
"data-last": s && c === a.length - 1 ? "" : void 0,
|
|
286
|
-
children: s && !d ? void 0 :
|
|
286
|
+
children: s && !d ? void 0 : C.unit
|
|
287
287
|
},
|
|
288
288
|
`unit-${c}`
|
|
289
289
|
)
|
|
290
|
-
]), G = (a, d) => A === null ? void 0 : a === A ? "use" : d === A ? "operand" : void 0, j = (a, d, m,
|
|
290
|
+
]), G = (a, d) => A === null ? void 0 : a === A ? "use" : d === A ? "operand" : void 0, j = (a, d, m, C) => {
|
|
291
291
|
const c = e.quantities.get(a), R = W.map(({ view: g, results: I }) => ({
|
|
292
292
|
own: I.get(a),
|
|
293
293
|
text: Ye(g, I, a, d, O, v, m.position, (Oe) => $(c, Oe))
|
|
294
294
|
})), { own: M, text: y } = R[0], E = c.operator !== void 0 && !d, Y = a === e.result && !d, H = E && c.operands.length > 0 && (c.interim ? m.flat : Y), T = E && !H && c.operands.length > 0, D = T && w.has(a);
|
|
295
295
|
b ||= T;
|
|
296
|
-
const X = `${P}-${a}`, oe = { depth: H ? m.depth : m.depth + 1, flat: !1, parent: a }, ee = E ? c.operands.find((g) => g.previous) : void 0, re = ee && m.flat ? j(ee.key, !1, { ...m, parent: a, position: void 0 }, `${
|
|
297
|
-
(g, I) => g.previous ? null : j(g.key, g.reference, { ...oe, position: $(c, I) }, `${
|
|
296
|
+
const X = `${P}-${a}`, oe = { depth: H ? m.depth : m.depth + 1, flat: !1, parent: a }, ee = E ? c.operands.find((g) => g.previous) : void 0, re = ee && m.flat ? j(ee.key, !1, { ...m, parent: a, position: void 0 }, `${C}-c`) : [], qe = ee && !m.flat ? j(ee.key, !1, { ...oe, flat: !0 }, `${C}-c`) : [], ce = E ? c.operands.map(
|
|
297
|
+
(g, I) => g.previous ? null : j(g.key, g.reference, { ...oe, position: $(c, I) }, `${C}-${I}`)
|
|
298
298
|
) : [], K = T && !D && M.worst !== void 0 && ae(M.worst) > ae(M.verdict ?? "ok") ? M.worst : void 0, U = d ? void 0 : c.given, ze = m.position ? se(m.position, !1, v) : void 0, ue = [
|
|
299
299
|
!d && c.explanation !== void 0 && /* @__PURE__ */ l("span", { children: c.explanation }, "explanation"),
|
|
300
300
|
U?.source !== void 0 && /* @__PURE__ */ l("span", { children: v.calculationSource(U.source) }, "source"),
|
|
@@ -365,7 +365,7 @@ function At({
|
|
|
365
365
|
/* @__PURE__ */ q("li", { className: o.item, children: [
|
|
366
366
|
/* @__PURE__ */ l("ul", { className: o.list, children: ce }),
|
|
367
367
|
me
|
|
368
|
-
] },
|
|
368
|
+
] }, C)
|
|
369
369
|
] : [
|
|
370
370
|
...re,
|
|
371
371
|
/* @__PURE__ */ q("li", { className: o.item, "data-open": D ? "" : void 0, style: { "--_calculation-depth": m.depth }, children: [
|
|
@@ -396,7 +396,7 @@ function At({
|
|
|
396
396
|
}
|
|
397
397
|
) })
|
|
398
398
|
] })
|
|
399
|
-
] },
|
|
399
|
+
] }, C)
|
|
400
400
|
];
|
|
401
401
|
}, Q = j(e.result, !1, { depth: 0, flat: !0, parent: null }, "r");
|
|
402
402
|
return (
|
|
@@ -409,13 +409,13 @@ function At({
|
|
|
409
409
|
ref: L,
|
|
410
410
|
className: zt(o.frame, p),
|
|
411
411
|
style: s ? {
|
|
412
|
-
"--_calculation-figure-tracks": Array(
|
|
413
|
-
"--_calculation-figures-end": Z(
|
|
414
|
-
"--_calculation-assessment-column": Z(
|
|
412
|
+
"--_calculation-figure-tracks": Array(k * 2).fill("auto").join(" "),
|
|
413
|
+
"--_calculation-figures-end": Z(k),
|
|
414
|
+
"--_calculation-assessment-column": Z(k),
|
|
415
415
|
...i
|
|
416
416
|
} : i,
|
|
417
417
|
"data-still": b ? void 0 : "",
|
|
418
|
-
"data-metrics": s ?
|
|
418
|
+
"data-metrics": s ? k : void 0,
|
|
419
419
|
"data-two-lines": S ? "" : void 0,
|
|
420
420
|
"data-compact": z ? "" : void 0,
|
|
421
421
|
children: /* @__PURE__ */ q("ul", { className: o.calculation, "aria-label": n, "aria-labelledby": r, "aria-describedby": _, children: [
|
package/dist/calculation.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer umriss.tokens,umriss.base,umriss.components;@layer umriss.base{._text_1j10m_22{font-family:var(--u-font-sans);font-size:var(--u-text-md);line-height:var(--u-leading-normal);color:var(--u-color-text);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}@media(pointer:fine){._dense_1j10m_38{--u-control-height-sm: var(--u-control-height-xs)}}._ink_1j10m_49{--u-color-text: var(--u-color-bg);--u-color-text-secondary: color-mix(in srgb, var(--u-color-bg) 75%, transparent);--u-color-text-muted: color-mix(in srgb, var(--u-color-bg) 60%, transparent)}._extent_1j10m_75{--_chars: 20;--_extra: 0;--_tracking: 0px;--_chrome: 0px;min-inline-size:0;max-inline-size:100%;contain:inline-size;contain-intrinsic-inline-size:calc((var(--_chars) + var(--_extra)) * (1ch + var(--_tracking)) + var(--_chrome))}._field_1j10m_90{caret-color:var(--u-color-accent)}._scroll_1j10m_96{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--u-color-text) 25%,transparent) transparent}._scroll_1j10m_96::-webkit-scrollbar{width:10px;height:10px}._scroll_1j10m_96::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--u-color-text) 22%,transparent);border-radius:var(--u-radius-full);border:3px solid transparent;background-clip:content-box}._scroll_1j10m_96::-webkit-scrollbar-track{background:transparent}}@layer umriss.components{._ring_1j10m_125:focus-visible{outline:2px solid transparent;box-shadow:var(--u-focus-ring)}._control_1j10m_133{touch-action:manipulation}@media(pointer:coarse){._field_1j10m_90._field_1j10m_90,._fieldRoot_1j10m_153._fieldRoot_1j10m_153{font-size:max(16px,1rem)}}._field_1j10m_90:-webkit-autofill,._field_1j10m_90:-webkit-autofill:hover,._field_1j10m_90:-webkit-autofill:focus{-webkit-box-shadow:inset 0 0 0 1000px var(--u-color-surface),0 0 0 1px var(--u-edge-color-strong);-webkit-text-fill-color:var(--u-color-text);caret-color:var(--u-color-accent)}@media print{._text_1j10m_22{color-scheme:light}}}@layer umriss.components{._frame_8hlzv_24,._frame_8hlzv_24:before,._frame_8hlzv_24:after{box-sizing:border-box}._calculation_8hlzv_51,._calculation_8hlzv_51:before,._calculation_8hlzv_51:after{box-sizing:border-box}._line_8hlzv_86,._line_8hlzv_86:before,._line_8hlzv_86:after{box-sizing:border-box}._assessment_8hlzv_98,._assessment_8hlzv_98:before,._assessment_8hlzv_98:after{box-sizing:border-box}._disclosure_8hlzv_107,._disclosure_8hlzv_107:before,._disclosure_8hlzv_107:after{box-sizing:border-box}._amount_8hlzv_90,._amount_8hlzv_90:before,._amount_8hlzv_90:after{box-sizing:border-box}._list_8hlzv_128,._list_8hlzv_128:before,._list_8hlzv_128:after{box-sizing:border-box}._item_8hlzv_129,._item_8hlzv_129:before,._item_8hlzv_129:after{box-sizing:border-box}._derivation_8hlzv_130,._derivation_8hlzv_130:before,._derivation_8hlzv_130:after{box-sizing:border-box}._labelCell_8hlzv_90,._labelCell_8hlzv_90:before,._labelCell_8hlzv_90:after{box-sizing:border-box}._names_8hlzv_90,._names_8hlzv_90:before,._names_8hlzv_90:after{box-sizing:border-box}._operator_8hlzv_90,._operator_8hlzv_90:before,._operator_8hlzv_90:after{box-sizing:border-box}._unit_8hlzv_90,._unit_8hlzv_90:before,._unit_8hlzv_90:after{box-sizing:border-box}._label_8hlzv_90,._label_8hlzv_90:before,._label_8hlzv_90:after{box-sizing:border-box}._sentence_8hlzv_260,._sentence_8hlzv_260:before,._sentence_8hlzv_260:after{box-sizing:border-box}._approximate_8hlzv_376,._approximate_8hlzv_376:before,._approximate_8hlzv_376:after{box-sizing:border-box}._target_8hlzv_102,._target_8hlzv_102:before,._target_8hlzv_102:after{box-sizing:border-box}._worst_8hlzv_102,._worst_8hlzv_102:before,._worst_8hlzv_102:after{box-sizing:border-box}._quality_8hlzv_102,._quality_8hlzv_102:before,._quality_8hlzv_102:after{box-sizing:border-box}._head_8hlzv_555,._head_8hlzv_555:before,._head_8hlzv_555:after{box-sizing:border-box}._headCell_8hlzv_562,._headCell_8hlzv_562:before,._headCell_8hlzv_562:after{box-sizing:border-box}._headUnit_8hlzv_575,._headUnit_8hlzv_575:before,._headUnit_8hlzv_575:after{box-sizing:border-box}._notes_8hlzv_582,._notes_8hlzv_582:before,._notes_8hlzv_582:after{box-sizing:border-box}._freshness_8hlzv_596,._freshness_8hlzv_596:before,._freshness_8hlzv_596:after{box-sizing:border-box}._headLabel_8hlzv_626,._headLabel_8hlzv_626:before,._headLabel_8hlzv_626:after{box-sizing:border-box}._frame_8hlzv_24{font-size:var(--u-text-sm);border-radius:var(--u-radius-md);corner-shape:squircle;background:var(--u-color-surface);outline:1px solid transparent;box-shadow:var(--u-edge);overflow-x:auto;overflow-y:hidden;--_calculation-disclosure-size: 20px;--_calculation-disclosure-gap: var(--u-space-2);--_calculation-line-pad: var(--u-space-2);--_calculation-line-gap: var(--u-space-1);container-type:inline-size;width:100%}._calculation_8hlzv_51{display:grid;grid-template-columns:fit-content(22rem) minmax(0,1fr) auto var(--_calculation-figure-tracks, auto auto) auto;margin:0;padding:0;list-style:none}._frame_8hlzv_24[data-compact]{--_calculation-line-text: round(up, calc(var(--u-text-xs) * 1.63), 1px);--_calculation-line-pad: var(--u-space-1);--_calculation-line-gap: calc(var(--u-space-1) / 2);font-size:var(--u-text-xs);line-height:var(--_calculation-line-text)}@media(pointer:coarse){._frame_8hlzv_24[data-compact]{--_calculation-line-pad: var(--u-space-2);--_calculation-line-gap: var(--u-space-1)}}._frame_8hlzv_24[data-compact]:not([data-two-lines]) ._line_8hlzv_86{grid-template-rows:minmax(calc(var(--_calculation-line-text) + 2 * var(--_calculation-line-pad)),auto)}._frame_8hlzv_24[data-compact]:not([data-two-lines]) :is(._labelCell_8hlzv_90,._names_8hlzv_90,._operator_8hlzv_90,._amount_8hlzv_90,._unit_8hlzv_90){padding-bottom:calc(var(--_calculation-line-pad) - 1px)}._frame_8hlzv_24[data-compact]:not([data-two-lines]) ._assessment_8hlzv_98{padding-bottom:0}._frame_8hlzv_24[data-compact]:not([data-two-lines]) ._assessment_8hlzv_98>:not(._target_8hlzv_102,._worst_8hlzv_102,._quality_8hlzv_102){margin-block:-1px}._frame_8hlzv_24[data-compact] ._disclosure_8hlzv_107{margin-block:-1px}._frame_8hlzv_24[data-compact] ._line_8hlzv_86[data-kind=result]>._amount_8hlzv_90{font-size:var(--u-text-sm);text-underline-offset:3px}._frame_8hlzv_24[data-still]{--_calculation-disclosure-size: 0px;--_calculation-disclosure-gap: 0px}._frame_8hlzv_24[data-still] ._disclosure_8hlzv_107{display:none}._list_8hlzv_128,._item_8hlzv_129,._derivation_8hlzv_130{display:grid;grid-template-columns:subgrid;grid-column:1 / -1;margin:0;padding:0;list-style:none}._derivation_8hlzv_130[hidden]{display:none}._derivation_8hlzv_130:not([hidden]){animation:_derivationIn_8hlzv_1 var(--u-duration-fast) var(--u-ease-out)}@keyframes _derivationIn_8hlzv_1{0%{opacity:0}}._item_8hlzv_129,._line_8hlzv_86{--_calculation-indent: calc(var(--_calculation-depth, 0) * var(--u-space-5))}._item_8hlzv_129{--_calculation-fall: calc(var(--u-space-3) + var(--_calculation-indent) + var(--_calculation-disclosure-size) / 2 - 1px)}._derivation_8hlzv_130{position:relative}._derivation_8hlzv_130:before{content:"";position:absolute;top:0;bottom:0;left:var(--_calculation-fall);z-index:1;width:2px;background:var(--u-color-accent);pointer-events:none}:not(._derivation_8hlzv_130)>._item_8hlzv_129[data-open]>._line_8hlzv_86:not([data-mark]),:not(._derivation_8hlzv_130)>._item_8hlzv_129>._derivation_8hlzv_130{background-color:var(--u-color-surface-sunken)}._derivation_8hlzv_130 ._line_8hlzv_86{border-top-color:transparent}._line_8hlzv_86{position:relative;display:grid;grid-template-columns:subgrid;grid-column:1 / -1;align-items:baseline;border-top:1px solid var(--u-hairline)}._calculation_8hlzv_51>._item_8hlzv_129:first-child>._line_8hlzv_86:first-child,._calculation_8hlzv_51>._item_8hlzv_129:first-child>._list_8hlzv_128>._item_8hlzv_129:first-child>._line_8hlzv_86{border-top-color:transparent}._line_8hlzv_86[data-foldable]{cursor:pointer}._line_8hlzv_86[data-mark]{background:color-mix(in srgb,var(--u-color-accent-subtle) 50%,transparent)}._line_8hlzv_86[data-mark=use]{background:var(--u-color-accent-subtle)}._labelCell_8hlzv_90,._names_8hlzv_90,._operator_8hlzv_90,._amount_8hlzv_90,._unit_8hlzv_90,._assessment_8hlzv_98{grid-row:1;padding-top:var(--_calculation-line-pad);padding-bottom:var(--_calculation-line-pad)}._labelCell_8hlzv_90{grid-column:1;display:flex;align-items:baseline;gap:var(--_calculation-disclosure-gap);min-width:0;padding-left:calc(var(--u-space-3) + var(--_calculation-indent));padding-right:var(--u-space-5)}._label_8hlzv_90{min-width:0;overflow-wrap:anywhere;color:var(--u-color-text)}._sentence_8hlzv_260{user-select:none}._line_8hlzv_86[data-reference] ._label_8hlzv_90{font-style:italic;color:var(--u-color-text-secondary)}._disclosure_8hlzv_107{flex:none;align-self:center;display:inline-flex;align-items:center;justify-content:center;width:var(--_calculation-disclosure-size);height:var(--_calculation-disclosure-size);padding:0;border:none;border-radius:var(--u-radius-xs);corner-shape:squircle;background:none;color:var(--u-color-text-muted)}button._disclosure_8hlzv_107{box-sizing:border-box}button._disclosure_8hlzv_107{cursor:pointer}@media(pointer:coarse){button._disclosure_8hlzv_107{position:relative}button._disclosure_8hlzv_107:after{box-sizing:border-box}button._disclosure_8hlzv_107:after{content:"";position:absolute;inset:-2px}}button._disclosure_8hlzv_107:hover,._line_8hlzv_86[data-foldable]:hover button._disclosure_8hlzv_107{box-sizing:border-box}button._disclosure_8hlzv_107:hover,._line_8hlzv_86[data-foldable]:hover button._disclosure_8hlzv_107{background:var(--u-color-surface-sunken);color:var(--u-color-text)}button._disclosure_8hlzv_107:active,._line_8hlzv_86[data-foldable]:active button._disclosure_8hlzv_107{box-sizing:border-box}button._disclosure_8hlzv_107:active,._line_8hlzv_86[data-foldable]:active button._disclosure_8hlzv_107{background:var(--u-color-surface-pressed)}._item_8hlzv_129[data-open]>._line_8hlzv_86 button._disclosure_8hlzv_107{box-sizing:border-box}._item_8hlzv_129[data-open]>._line_8hlzv_86 button._disclosure_8hlzv_107{color:var(--u-color-accent)}button._disclosure_8hlzv_107:focus-visible{box-sizing:border-box}button._disclosure_8hlzv_107:focus-visible{outline:2px solid transparent;box-shadow:var(--u-focus-ring)}._disclosure_8hlzv_107 svg{box-sizing:border-box}._disclosure_8hlzv_107 svg{transition:transform var(--u-transition-path)}._disclosure_8hlzv_107 svg[data-open]{box-sizing:border-box}._disclosure_8hlzv_107 svg[data-open]{transform:rotate(90deg)}._names_8hlzv_90{grid-column:2;min-width:0;overflow:hidden;padding-right:var(--u-space-4);white-space:nowrap;text-overflow:ellipsis;color:var(--u-color-text-secondary)}._operator_8hlzv_90,._amount_8hlzv_90,._unit_8hlzv_90{font-family:var(--u-font-mono);font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;white-space:nowrap}._operator_8hlzv_90{grid-column:3;padding-right:var(--u-space-3);text-align:right;color:var(--u-color-text-secondary)}._amount_8hlzv_90{grid-column:var(--_calculation-column, 4);text-align:right;color:var(--u-color-text)}._amount_8hlzv_90[data-verdict=unknown]{color:var(--u-color-text-secondary)}._approximate_8hlzv_376{display:inline-block;margin-right:var(--u-space-1);color:var(--u-color-text-secondary);cursor:help}._unit_8hlzv_90{grid-column:var(--_calculation-column, 5);padding-left:var(--u-space-1);padding-right:var(--u-space-3);color:var(--u-color-text-secondary)}._assessment_8hlzv_98{grid-column:var(--_calculation-assessment-column, 6);display:flex;align-items:baseline;justify-content:flex-end;gap:var(--u-space-2);padding-right:var(--u-space-3);white-space:nowrap}._assessment_8hlzv_98:empty{padding-right:0}._target_8hlzv_102,._worst_8hlzv_102,._quality_8hlzv_102{font-size:var(--u-text-xs);color:var(--u-color-text-secondary)}._quality_8hlzv_102[data-quality=bad]{font-weight:var(--u-weight-medium)}._amount_8hlzv_90[data-quality=uncertain]{text-decoration:underline dotted;text-underline-offset:.2em}._amount_8hlzv_90[data-quality=bad]{text-decoration:underline wavy;text-underline-offset:.2em}._worst_8hlzv_102:before{content:"● "}._worst_8hlzv_102[data-verdict=unknown]:before{color:var(--u-color-text-muted)}._worst_8hlzv_102[data-verdict=warning]:before{color:var(--u-color-warning)}._worst_8hlzv_102[data-verdict=alarm]:before{color:var(--u-color-danger-text)}._line_8hlzv_86[data-inner]>._amount_8hlzv_90{color:var(--u-color-text-secondary)}._line_8hlzv_86[data-kind=interim] ._label_8hlzv_90,._line_8hlzv_86[data-kind=interim]>._amount_8hlzv_90{font-weight:var(--u-weight-medium)}._line_8hlzv_86[data-emphasis=strong] ._label_8hlzv_90,._line_8hlzv_86[data-emphasis=strong]>._amount_8hlzv_90{font-weight:var(--u-weight-semibold);color:var(--u-color-text)}._line_8hlzv_86[data-emphasis=muted] ._label_8hlzv_90,._line_8hlzv_86[data-emphasis=muted]>._amount_8hlzv_90{color:var(--u-color-text-secondary)}._line_8hlzv_86[data-inner][data-emphasis=muted] ._label_8hlzv_90,._line_8hlzv_86[data-inner][data-emphasis=muted]>._amount_8hlzv_90{color:var(--u-color-text-muted)}._line_8hlzv_86[data-rule],._derivation_8hlzv_130 ._line_8hlzv_86[data-rule]{border-top:1px solid var(--u-color-text-secondary)}._line_8hlzv_86[data-kind=interim]:before{content:"";grid-row:1;grid-column:3 / var(--_calculation-figures-end, 6);align-self:start;border-top:1px solid var(--u-color-text-secondary);pointer-events:none}._line_8hlzv_86[data-closing] ._label_8hlzv_90{font-weight:var(--u-weight-medium);color:var(--u-color-text-secondary)}._line_8hlzv_86[data-closing]:before{content:"";grid-row:1;grid-column:3 / var(--_calculation-figures-end, 6);align-self:start;border-top:1px solid var(--u-color-text-muted);pointer-events:none}._line_8hlzv_86[data-kind=result]{border-top:1px solid var(--u-edge-color-strong)}._line_8hlzv_86[data-kind=result]:not([data-mark]){background:var(--u-color-surface-sunken)}._line_8hlzv_86[data-kind=result] ._label_8hlzv_90{font-weight:var(--u-weight-semibold)}._line_8hlzv_86[data-kind=result]>._amount_8hlzv_90{font-size:var(--u-text-md);font-weight:var(--u-weight-semibold)}._line_8hlzv_86[data-kind=result]>._amount_8hlzv_90:not([data-verdict=unknown]){text-decoration-line:underline;text-decoration-style:double;text-underline-offset:5px}._line_8hlzv_86[data-kind=result]>._amount_8hlzv_90[data-quality=uncertain]{text-decoration-style:dotted}._line_8hlzv_86[data-kind=result]>._amount_8hlzv_90[data-quality=bad]{text-decoration-style:wavy}._amount_8hlzv_90[data-later]{padding-left:var(--u-space-6)}._head_8hlzv_555{display:grid;grid-template-columns:subgrid;grid-column:1 / -1;align-items:end}._headCell_8hlzv_562{grid-row:1;grid-column:var(--_calculation-column);display:flex;flex-direction:column;align-items:flex-end;padding:var(--_calculation-line-pad) 0 var(--u-space-1);font-size:var(--u-text-xs);font-weight:var(--u-weight-medium);color:var(--u-color-text-secondary);white-space:nowrap}._headUnit_8hlzv_575{font-family:var(--u-font-mono);font-weight:var(--u-weight-regular)}._notes_8hlzv_582{grid-row:2;grid-column:1 / 3;display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--u-space-3);margin-top:calc(-1 * var(--_calculation-line-gap));padding:0 var(--u-space-4) var(--_calculation-line-pad) calc(var(--u-space-3) + var(--_calculation-indent) + var(--_calculation-disclosure-size) + var(--_calculation-disclosure-gap));font-size:var(--u-text-xs);color:var(--u-color-text-secondary)}._freshness_8hlzv_596[data-freshness=stale]{color:var(--u-color-warning)}._freshness_8hlzv_596[data-freshness=lost]{color:var(--u-color-danger-text);font-weight:var(--u-weight-medium)}@container (max-width: 34rem){._calculation_8hlzv_51{grid-template-columns:minmax(0,1fr) 0 auto var(--_calculation-figure-tracks, auto auto) 0}._amount_8hlzv_90[data-later]{padding-left:var(--u-space-2)}._frame_8hlzv_24[data-metrics] ._unit_8hlzv_90:not([data-last]){padding-right:var(--u-space-2)}._headCell_8hlzv_562[data-unit] ._headLabel_8hlzv_626,._names_8hlzv_90{display:none}._labelCell_8hlzv_90{padding-right:var(--u-space-3)}._item_8hlzv_129,._line_8hlzv_86{--_calculation-indent: min(calc(var(--_calculation-depth, 0) * var(--u-space-5)), 15cqi)}._unit_8hlzv_90{white-space:normal;overflow-wrap:anywhere}._assessment_8hlzv_98:not(:empty){grid-area:2 / 1 / 3 / -1;justify-content:flex-start;flex-wrap:wrap;min-width:0;overflow:hidden;padding:0 var(--u-space-3) var(--_calculation-line-pad) calc(var(--u-space-3) + var(--_calculation-indent) + var(--_calculation-disclosure-size) + var(--_calculation-disclosure-gap));white-space:normal}._frame_8hlzv_24[data-compact]:not([data-two-lines]) ._assessment_8hlzv_98:not(:empty){padding-bottom:var(--_calculation-line-pad)}._frame_8hlzv_24[data-compact]:not([data-two-lines]) ._assessment_8hlzv_98:not(:empty)>:not(._target_8hlzv_102,._worst_8hlzv_102,._quality_8hlzv_102){margin-block:0}._notes_8hlzv_582{grid-row:3;grid-column:1 / -1}}._frame_8hlzv_24[data-two-lines] ._labelCell_8hlzv_90{grid-column:1 / -1;padding-bottom:0}._frame_8hlzv_24[data-two-lines] ._names_8hlzv_90{display:none}._frame_8hlzv_24[data-two-lines] ._line_8hlzv_86>._operator_8hlzv_90,._frame_8hlzv_24[data-two-lines] ._line_8hlzv_86>._amount_8hlzv_90,._frame_8hlzv_24[data-two-lines] ._line_8hlzv_86>._unit_8hlzv_90{grid-row:2;padding-top:var(--_calculation-line-gap)}._frame_8hlzv_24[data-two-lines] ._line_8hlzv_86[data-kind=interim]:before,._frame_8hlzv_24[data-two-lines] ._line_8hlzv_86[data-closing]:before{grid-row:2}._frame_8hlzv_24[data-two-lines] ._assessment_8hlzv_98:not(:empty){grid-area:3 / 1 / 4 / -1;justify-content:flex-start;flex-wrap:wrap;min-width:0;overflow:hidden;padding:0 var(--u-space-3) var(--_calculation-line-pad) calc(var(--u-space-3) + var(--_calculation-indent) + var(--_calculation-disclosure-size) + var(--_calculation-disclosure-gap));white-space:normal}._frame_8hlzv_24[data-two-lines] ._notes_8hlzv_582{grid-row:4;grid-column:1 / -1}@media(prefers-reduced-motion:reduce){._disclosure_8hlzv_107 svg{transition:none}._derivation_8hlzv_130:not([hidden]){animation:none}}@media(forced-colors:active){._line_8hlzv_86[data-mark]{outline:1px solid Highlight;outline-offset:-1px}._line_8hlzv_86[data-mark=use]{outline-width:2px;outline-offset:-2px}._derivation_8hlzv_130:before{background:CanvasText}._line_8hlzv_86[data-emphasis=muted] ._label_8hlzv_90,._line_8hlzv_86[data-emphasis=muted]>._amount_8hlzv_90{color:GrayText}}@media print{._frame_8hlzv_24{overflow:visible;box-shadow:none}._frame_8hlzv_24 ._disclosure_8hlzv_107{display:none}._derivation_8hlzv_130[hidden]{display:grid}._derivation_8hlzv_130:before{display:none}._line_8hlzv_86{break-inside:avoid}}}
|
|
1
|
+
@layer umriss.tokens,umriss.base,umriss.components;@layer umriss.base{._text_1ftkm_22{font-family:var(--u-font-sans);font-size:var(--u-text-md);line-height:var(--u-leading-normal);color:var(--u-color-text);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}@media(pointer:fine){._dense_1ftkm_38{--u-control-height-sm: var(--u-control-height-xs)}}._raised_1ftkm_53{--u-color-surface: var(--u-color-surface-raised);--u-color-surface-sunken: var(--u-color-surface-raised-sunken);--u-color-surface-pressed: var(--u-color-surface-raised-pressed)}._ink_1ftkm_59{--u-color-text: var(--u-color-bg);--u-color-text-secondary: color-mix(in srgb, var(--u-color-bg) 75%, transparent);--u-color-text-muted: color-mix(in srgb, var(--u-color-bg) 60%, transparent)}._extent_1ftkm_85{--_chars: 20;--_extra: 0;--_tracking: 0px;--_chrome: 0px;min-inline-size:0;max-inline-size:100%;contain:inline-size;contain-intrinsic-inline-size:calc((var(--_chars) + var(--_extra)) * (1ch + var(--_tracking)) + var(--_chrome))}._field_1ftkm_100{caret-color:var(--u-color-accent)}._scroll_1ftkm_106{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--u-color-text) 25%,transparent) transparent}._scroll_1ftkm_106::-webkit-scrollbar{width:10px;height:10px}._scroll_1ftkm_106::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--u-color-text) 22%,transparent);border-radius:var(--u-radius-full);border:3px solid transparent;background-clip:content-box}._scroll_1ftkm_106::-webkit-scrollbar-track{background:transparent}}@layer umriss.components{._ring_1ftkm_135:focus-visible{outline:2px solid transparent;box-shadow:var(--u-focus-ring)}._control_1ftkm_143{touch-action:manipulation}@media(pointer:coarse){._field_1ftkm_100._field_1ftkm_100,._fieldRoot_1ftkm_163._fieldRoot_1ftkm_163{font-size:max(16px,1rem)}}._field_1ftkm_100:-webkit-autofill,._field_1ftkm_100:-webkit-autofill:hover,._field_1ftkm_100:-webkit-autofill:focus{-webkit-box-shadow:inset 0 0 0 1000px var(--u-color-surface),0 0 0 1px var(--u-edge-color-strong);-webkit-text-fill-color:var(--u-color-text);caret-color:var(--u-color-accent)}@media print{._text_1ftkm_22{color-scheme:light}}}@layer umriss.components{._frame_8hlzv_24,._frame_8hlzv_24:before,._frame_8hlzv_24:after{box-sizing:border-box}._calculation_8hlzv_51,._calculation_8hlzv_51:before,._calculation_8hlzv_51:after{box-sizing:border-box}._line_8hlzv_86,._line_8hlzv_86:before,._line_8hlzv_86:after{box-sizing:border-box}._assessment_8hlzv_98,._assessment_8hlzv_98:before,._assessment_8hlzv_98:after{box-sizing:border-box}._disclosure_8hlzv_107,._disclosure_8hlzv_107:before,._disclosure_8hlzv_107:after{box-sizing:border-box}._amount_8hlzv_90,._amount_8hlzv_90:before,._amount_8hlzv_90:after{box-sizing:border-box}._list_8hlzv_128,._list_8hlzv_128:before,._list_8hlzv_128:after{box-sizing:border-box}._item_8hlzv_129,._item_8hlzv_129:before,._item_8hlzv_129:after{box-sizing:border-box}._derivation_8hlzv_130,._derivation_8hlzv_130:before,._derivation_8hlzv_130:after{box-sizing:border-box}._labelCell_8hlzv_90,._labelCell_8hlzv_90:before,._labelCell_8hlzv_90:after{box-sizing:border-box}._names_8hlzv_90,._names_8hlzv_90:before,._names_8hlzv_90:after{box-sizing:border-box}._operator_8hlzv_90,._operator_8hlzv_90:before,._operator_8hlzv_90:after{box-sizing:border-box}._unit_8hlzv_90,._unit_8hlzv_90:before,._unit_8hlzv_90:after{box-sizing:border-box}._label_8hlzv_90,._label_8hlzv_90:before,._label_8hlzv_90:after{box-sizing:border-box}._sentence_8hlzv_260,._sentence_8hlzv_260:before,._sentence_8hlzv_260:after{box-sizing:border-box}._approximate_8hlzv_376,._approximate_8hlzv_376:before,._approximate_8hlzv_376:after{box-sizing:border-box}._target_8hlzv_102,._target_8hlzv_102:before,._target_8hlzv_102:after{box-sizing:border-box}._worst_8hlzv_102,._worst_8hlzv_102:before,._worst_8hlzv_102:after{box-sizing:border-box}._quality_8hlzv_102,._quality_8hlzv_102:before,._quality_8hlzv_102:after{box-sizing:border-box}._head_8hlzv_555,._head_8hlzv_555:before,._head_8hlzv_555:after{box-sizing:border-box}._headCell_8hlzv_562,._headCell_8hlzv_562:before,._headCell_8hlzv_562:after{box-sizing:border-box}._headUnit_8hlzv_575,._headUnit_8hlzv_575:before,._headUnit_8hlzv_575:after{box-sizing:border-box}._notes_8hlzv_582,._notes_8hlzv_582:before,._notes_8hlzv_582:after{box-sizing:border-box}._freshness_8hlzv_596,._freshness_8hlzv_596:before,._freshness_8hlzv_596:after{box-sizing:border-box}._headLabel_8hlzv_626,._headLabel_8hlzv_626:before,._headLabel_8hlzv_626:after{box-sizing:border-box}._frame_8hlzv_24{font-size:var(--u-text-sm);border-radius:var(--u-radius-md);corner-shape:squircle;background:var(--u-color-surface);outline:1px solid transparent;box-shadow:var(--u-edge);overflow-x:auto;overflow-y:hidden;--_calculation-disclosure-size: 20px;--_calculation-disclosure-gap: var(--u-space-2);--_calculation-line-pad: var(--u-space-2);--_calculation-line-gap: var(--u-space-1);container-type:inline-size;width:100%}._calculation_8hlzv_51{display:grid;grid-template-columns:fit-content(22rem) minmax(0,1fr) auto var(--_calculation-figure-tracks, auto auto) auto;margin:0;padding:0;list-style:none}._frame_8hlzv_24[data-compact]{--_calculation-line-text: round(up, calc(var(--u-text-xs) * 1.63), 1px);--_calculation-line-pad: var(--u-space-1);--_calculation-line-gap: calc(var(--u-space-1) / 2);font-size:var(--u-text-xs);line-height:var(--_calculation-line-text)}@media(pointer:coarse){._frame_8hlzv_24[data-compact]{--_calculation-line-pad: var(--u-space-2);--_calculation-line-gap: var(--u-space-1)}}._frame_8hlzv_24[data-compact]:not([data-two-lines]) ._line_8hlzv_86{grid-template-rows:minmax(calc(var(--_calculation-line-text) + 2 * var(--_calculation-line-pad)),auto)}._frame_8hlzv_24[data-compact]:not([data-two-lines]) :is(._labelCell_8hlzv_90,._names_8hlzv_90,._operator_8hlzv_90,._amount_8hlzv_90,._unit_8hlzv_90){padding-bottom:calc(var(--_calculation-line-pad) - 1px)}._frame_8hlzv_24[data-compact]:not([data-two-lines]) ._assessment_8hlzv_98{padding-bottom:0}._frame_8hlzv_24[data-compact]:not([data-two-lines]) ._assessment_8hlzv_98>:not(._target_8hlzv_102,._worst_8hlzv_102,._quality_8hlzv_102){margin-block:-1px}._frame_8hlzv_24[data-compact] ._disclosure_8hlzv_107{margin-block:-1px}._frame_8hlzv_24[data-compact] ._line_8hlzv_86[data-kind=result]>._amount_8hlzv_90{font-size:var(--u-text-sm);text-underline-offset:3px}._frame_8hlzv_24[data-still]{--_calculation-disclosure-size: 0px;--_calculation-disclosure-gap: 0px}._frame_8hlzv_24[data-still] ._disclosure_8hlzv_107{display:none}._list_8hlzv_128,._item_8hlzv_129,._derivation_8hlzv_130{display:grid;grid-template-columns:subgrid;grid-column:1 / -1;margin:0;padding:0;list-style:none}._derivation_8hlzv_130[hidden]{display:none}._derivation_8hlzv_130:not([hidden]){animation:_derivationIn_8hlzv_1 var(--u-duration-fast) var(--u-ease-out)}@keyframes _derivationIn_8hlzv_1{0%{opacity:0}}._item_8hlzv_129,._line_8hlzv_86{--_calculation-indent: calc(var(--_calculation-depth, 0) * var(--u-space-5))}._item_8hlzv_129{--_calculation-fall: calc(var(--u-space-3) + var(--_calculation-indent) + var(--_calculation-disclosure-size) / 2 - 1px)}._derivation_8hlzv_130{position:relative}._derivation_8hlzv_130:before{content:"";position:absolute;top:0;bottom:0;left:var(--_calculation-fall);z-index:1;width:2px;background:var(--u-color-accent);pointer-events:none}:not(._derivation_8hlzv_130)>._item_8hlzv_129[data-open]>._line_8hlzv_86:not([data-mark]),:not(._derivation_8hlzv_130)>._item_8hlzv_129>._derivation_8hlzv_130{background-color:var(--u-color-surface-sunken)}._derivation_8hlzv_130 ._line_8hlzv_86{border-top-color:transparent}._line_8hlzv_86{position:relative;display:grid;grid-template-columns:subgrid;grid-column:1 / -1;align-items:baseline;border-top:1px solid var(--u-hairline)}._calculation_8hlzv_51>._item_8hlzv_129:first-child>._line_8hlzv_86:first-child,._calculation_8hlzv_51>._item_8hlzv_129:first-child>._list_8hlzv_128>._item_8hlzv_129:first-child>._line_8hlzv_86{border-top-color:transparent}._line_8hlzv_86[data-foldable]{cursor:pointer}._line_8hlzv_86[data-mark]{background:color-mix(in srgb,var(--u-color-accent-subtle) 50%,transparent)}._line_8hlzv_86[data-mark=use]{background:var(--u-color-accent-subtle)}._labelCell_8hlzv_90,._names_8hlzv_90,._operator_8hlzv_90,._amount_8hlzv_90,._unit_8hlzv_90,._assessment_8hlzv_98{grid-row:1;padding-top:var(--_calculation-line-pad);padding-bottom:var(--_calculation-line-pad)}._labelCell_8hlzv_90{grid-column:1;display:flex;align-items:baseline;gap:var(--_calculation-disclosure-gap);min-width:0;padding-left:calc(var(--u-space-3) + var(--_calculation-indent));padding-right:var(--u-space-5)}._label_8hlzv_90{min-width:0;overflow-wrap:anywhere;color:var(--u-color-text)}._sentence_8hlzv_260{user-select:none}._line_8hlzv_86[data-reference] ._label_8hlzv_90{font-style:italic;color:var(--u-color-text-secondary)}._disclosure_8hlzv_107{flex:none;align-self:center;display:inline-flex;align-items:center;justify-content:center;width:var(--_calculation-disclosure-size);height:var(--_calculation-disclosure-size);padding:0;border:none;border-radius:var(--u-radius-xs);corner-shape:squircle;background:none;color:var(--u-color-text-muted)}button._disclosure_8hlzv_107{box-sizing:border-box}button._disclosure_8hlzv_107{cursor:pointer}@media(pointer:coarse){button._disclosure_8hlzv_107{position:relative}button._disclosure_8hlzv_107:after{box-sizing:border-box}button._disclosure_8hlzv_107:after{content:"";position:absolute;inset:-2px}}button._disclosure_8hlzv_107:hover,._line_8hlzv_86[data-foldable]:hover button._disclosure_8hlzv_107{box-sizing:border-box}button._disclosure_8hlzv_107:hover,._line_8hlzv_86[data-foldable]:hover button._disclosure_8hlzv_107{background:var(--u-color-surface-sunken);color:var(--u-color-text)}button._disclosure_8hlzv_107:active,._line_8hlzv_86[data-foldable]:active button._disclosure_8hlzv_107{box-sizing:border-box}button._disclosure_8hlzv_107:active,._line_8hlzv_86[data-foldable]:active button._disclosure_8hlzv_107{background:var(--u-color-surface-pressed)}._item_8hlzv_129[data-open]>._line_8hlzv_86 button._disclosure_8hlzv_107{box-sizing:border-box}._item_8hlzv_129[data-open]>._line_8hlzv_86 button._disclosure_8hlzv_107{color:var(--u-color-accent)}button._disclosure_8hlzv_107:focus-visible{box-sizing:border-box}button._disclosure_8hlzv_107:focus-visible{outline:2px solid transparent;box-shadow:var(--u-focus-ring)}._disclosure_8hlzv_107 svg{box-sizing:border-box}._disclosure_8hlzv_107 svg{transition:transform var(--u-transition-path)}._disclosure_8hlzv_107 svg[data-open]{box-sizing:border-box}._disclosure_8hlzv_107 svg[data-open]{transform:rotate(90deg)}._names_8hlzv_90{grid-column:2;min-width:0;overflow:hidden;padding-right:var(--u-space-4);white-space:nowrap;text-overflow:ellipsis;color:var(--u-color-text-secondary)}._operator_8hlzv_90,._amount_8hlzv_90,._unit_8hlzv_90{font-family:var(--u-font-mono);font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;white-space:nowrap}._operator_8hlzv_90{grid-column:3;padding-right:var(--u-space-3);text-align:right;color:var(--u-color-text-secondary)}._amount_8hlzv_90{grid-column:var(--_calculation-column, 4);text-align:right;color:var(--u-color-text)}._amount_8hlzv_90[data-verdict=unknown]{color:var(--u-color-text-secondary)}._approximate_8hlzv_376{display:inline-block;margin-right:var(--u-space-1);color:var(--u-color-text-secondary);cursor:help}._unit_8hlzv_90{grid-column:var(--_calculation-column, 5);padding-left:var(--u-space-1);padding-right:var(--u-space-3);color:var(--u-color-text-secondary)}._assessment_8hlzv_98{grid-column:var(--_calculation-assessment-column, 6);display:flex;align-items:baseline;justify-content:flex-end;gap:var(--u-space-2);padding-right:var(--u-space-3);white-space:nowrap}._assessment_8hlzv_98:empty{padding-right:0}._target_8hlzv_102,._worst_8hlzv_102,._quality_8hlzv_102{font-size:var(--u-text-xs);color:var(--u-color-text-secondary)}._quality_8hlzv_102[data-quality=bad]{font-weight:var(--u-weight-medium)}._amount_8hlzv_90[data-quality=uncertain]{text-decoration:underline dotted;text-underline-offset:.2em}._amount_8hlzv_90[data-quality=bad]{text-decoration:underline wavy;text-underline-offset:.2em}._worst_8hlzv_102:before{content:"● "}._worst_8hlzv_102[data-verdict=unknown]:before{color:var(--u-color-text-muted)}._worst_8hlzv_102[data-verdict=warning]:before{color:var(--u-color-warning)}._worst_8hlzv_102[data-verdict=alarm]:before{color:var(--u-color-danger-text)}._line_8hlzv_86[data-inner]>._amount_8hlzv_90{color:var(--u-color-text-secondary)}._line_8hlzv_86[data-kind=interim] ._label_8hlzv_90,._line_8hlzv_86[data-kind=interim]>._amount_8hlzv_90{font-weight:var(--u-weight-medium)}._line_8hlzv_86[data-emphasis=strong] ._label_8hlzv_90,._line_8hlzv_86[data-emphasis=strong]>._amount_8hlzv_90{font-weight:var(--u-weight-semibold);color:var(--u-color-text)}._line_8hlzv_86[data-emphasis=muted] ._label_8hlzv_90,._line_8hlzv_86[data-emphasis=muted]>._amount_8hlzv_90{color:var(--u-color-text-secondary)}._line_8hlzv_86[data-inner][data-emphasis=muted] ._label_8hlzv_90,._line_8hlzv_86[data-inner][data-emphasis=muted]>._amount_8hlzv_90{color:var(--u-color-text-muted)}._line_8hlzv_86[data-rule],._derivation_8hlzv_130 ._line_8hlzv_86[data-rule]{border-top:1px solid var(--u-color-text-secondary)}._line_8hlzv_86[data-kind=interim]:before{content:"";grid-row:1;grid-column:3 / var(--_calculation-figures-end, 6);align-self:start;border-top:1px solid var(--u-color-text-secondary);pointer-events:none}._line_8hlzv_86[data-closing] ._label_8hlzv_90{font-weight:var(--u-weight-medium);color:var(--u-color-text-secondary)}._line_8hlzv_86[data-closing]:before{content:"";grid-row:1;grid-column:3 / var(--_calculation-figures-end, 6);align-self:start;border-top:1px solid var(--u-color-text-muted);pointer-events:none}._line_8hlzv_86[data-kind=result]{border-top:1px solid var(--u-edge-color-strong)}._line_8hlzv_86[data-kind=result]:not([data-mark]){background:var(--u-color-surface-sunken)}._line_8hlzv_86[data-kind=result] ._label_8hlzv_90{font-weight:var(--u-weight-semibold)}._line_8hlzv_86[data-kind=result]>._amount_8hlzv_90{font-size:var(--u-text-md);font-weight:var(--u-weight-semibold)}._line_8hlzv_86[data-kind=result]>._amount_8hlzv_90:not([data-verdict=unknown]){text-decoration-line:underline;text-decoration-style:double;text-underline-offset:5px}._line_8hlzv_86[data-kind=result]>._amount_8hlzv_90[data-quality=uncertain]{text-decoration-style:dotted}._line_8hlzv_86[data-kind=result]>._amount_8hlzv_90[data-quality=bad]{text-decoration-style:wavy}._amount_8hlzv_90[data-later]{padding-left:var(--u-space-6)}._head_8hlzv_555{display:grid;grid-template-columns:subgrid;grid-column:1 / -1;align-items:end}._headCell_8hlzv_562{grid-row:1;grid-column:var(--_calculation-column);display:flex;flex-direction:column;align-items:flex-end;padding:var(--_calculation-line-pad) 0 var(--u-space-1);font-size:var(--u-text-xs);font-weight:var(--u-weight-medium);color:var(--u-color-text-secondary);white-space:nowrap}._headUnit_8hlzv_575{font-family:var(--u-font-mono);font-weight:var(--u-weight-regular)}._notes_8hlzv_582{grid-row:2;grid-column:1 / 3;display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--u-space-3);margin-top:calc(-1 * var(--_calculation-line-gap));padding:0 var(--u-space-4) var(--_calculation-line-pad) calc(var(--u-space-3) + var(--_calculation-indent) + var(--_calculation-disclosure-size) + var(--_calculation-disclosure-gap));font-size:var(--u-text-xs);color:var(--u-color-text-secondary)}._freshness_8hlzv_596[data-freshness=stale]{color:var(--u-color-warning)}._freshness_8hlzv_596[data-freshness=lost]{color:var(--u-color-danger-text);font-weight:var(--u-weight-medium)}@container (max-width: 34rem){._calculation_8hlzv_51{grid-template-columns:minmax(0,1fr) 0 auto var(--_calculation-figure-tracks, auto auto) 0}._amount_8hlzv_90[data-later]{padding-left:var(--u-space-2)}._frame_8hlzv_24[data-metrics] ._unit_8hlzv_90:not([data-last]){padding-right:var(--u-space-2)}._headCell_8hlzv_562[data-unit] ._headLabel_8hlzv_626,._names_8hlzv_90{display:none}._labelCell_8hlzv_90{padding-right:var(--u-space-3)}._item_8hlzv_129,._line_8hlzv_86{--_calculation-indent: min(calc(var(--_calculation-depth, 0) * var(--u-space-5)), 15cqi)}._unit_8hlzv_90{white-space:normal;overflow-wrap:anywhere}._assessment_8hlzv_98:not(:empty){grid-area:2 / 1 / 3 / -1;justify-content:flex-start;flex-wrap:wrap;min-width:0;overflow:hidden;padding:0 var(--u-space-3) var(--_calculation-line-pad) calc(var(--u-space-3) + var(--_calculation-indent) + var(--_calculation-disclosure-size) + var(--_calculation-disclosure-gap));white-space:normal}._frame_8hlzv_24[data-compact]:not([data-two-lines]) ._assessment_8hlzv_98:not(:empty){padding-bottom:var(--_calculation-line-pad)}._frame_8hlzv_24[data-compact]:not([data-two-lines]) ._assessment_8hlzv_98:not(:empty)>:not(._target_8hlzv_102,._worst_8hlzv_102,._quality_8hlzv_102){margin-block:0}._notes_8hlzv_582{grid-row:3;grid-column:1 / -1}}._frame_8hlzv_24[data-two-lines] ._labelCell_8hlzv_90{grid-column:1 / -1;padding-bottom:0}._frame_8hlzv_24[data-two-lines] ._names_8hlzv_90{display:none}._frame_8hlzv_24[data-two-lines] ._line_8hlzv_86>._operator_8hlzv_90,._frame_8hlzv_24[data-two-lines] ._line_8hlzv_86>._amount_8hlzv_90,._frame_8hlzv_24[data-two-lines] ._line_8hlzv_86>._unit_8hlzv_90{grid-row:2;padding-top:var(--_calculation-line-gap)}._frame_8hlzv_24[data-two-lines] ._line_8hlzv_86[data-kind=interim]:before,._frame_8hlzv_24[data-two-lines] ._line_8hlzv_86[data-closing]:before{grid-row:2}._frame_8hlzv_24[data-two-lines] ._assessment_8hlzv_98:not(:empty){grid-area:3 / 1 / 4 / -1;justify-content:flex-start;flex-wrap:wrap;min-width:0;overflow:hidden;padding:0 var(--u-space-3) var(--_calculation-line-pad) calc(var(--u-space-3) + var(--_calculation-indent) + var(--_calculation-disclosure-size) + var(--_calculation-disclosure-gap));white-space:normal}._frame_8hlzv_24[data-two-lines] ._notes_8hlzv_582{grid-row:4;grid-column:1 / -1}@media(prefers-reduced-motion:reduce){._disclosure_8hlzv_107 svg{transition:none}._derivation_8hlzv_130:not([hidden]){animation:none}}@media(forced-colors:active){._line_8hlzv_86[data-mark]{outline:1px solid Highlight;outline-offset:-1px}._line_8hlzv_86[data-mark=use]{outline-width:2px;outline-offset:-2px}._derivation_8hlzv_130:before{background:CanvasText}._line_8hlzv_86[data-emphasis=muted] ._label_8hlzv_90,._line_8hlzv_86[data-emphasis=muted]>._amount_8hlzv_90{color:GrayText}}@media print{._frame_8hlzv_24{overflow:visible;box-shadow:none}._frame_8hlzv_24 ._disclosure_8hlzv_107{display:none}._derivation_8hlzv_130[hidden]{display:grid}._derivation_8hlzv_130:before{display:none}._line_8hlzv_86{break-inside:avoid}}}
|
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/calculation 0.
|
|
1
|
+
# @umriss-ui/calculation 0.55.1
|
|
2
2
|
|
|
3
3
|
> React calculation view for data-dense applications - a derivation written as it is shown, evaluated by the library, folded and read line by line.
|
|
4
4
|
|
|
@@ -618,7 +618,7 @@ Also takes every attribute of `<div>` – without `children`.
|
|
|
618
618
|
- No result, formula text or operator of your own: a written-out operation the library did not perform could say something the number does not ([ADR-0027](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0027-a-calculation-is-written-as-it-is-shown.md)).
|
|
619
619
|
- No input: a calculation shows how a figure came about; changing a given is your application's form.
|
|
620
620
|
|
|
621
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.
|
|
621
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
622
622
|
|
|
623
623
|
### Tree
|
|
624
624
|
|
|
@@ -899,7 +899,7 @@ type Severity = "warning" | "alarm";
|
|
|
899
899
|
- Four operators and nothing else – no powers, roots or functions; compute those before and hand them in as givens.
|
|
900
900
|
- A unit is a label and is never converted or checked; the calculation does no unit algebra.
|
|
901
901
|
|
|
902
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.
|
|
902
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
903
903
|
|
|
904
904
|
### Chain
|
|
905
905
|
|
|
@@ -1259,7 +1259,7 @@ type Severity = "warning" | "alarm";
|
|
|
1259
1259
|
|
|
1260
1260
|
- A chain in view does not fold; as an operand of a tree it folds to its last interim.
|
|
1261
1261
|
|
|
1262
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.
|
|
1262
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
1263
1263
|
|
|
1264
1264
|
### Rows from data
|
|
1265
1265
|
|
|
@@ -1699,7 +1699,7 @@ From `Metric` — the full table stands on [Metrics](#metrics).
|
|
|
1699
1699
|
|
|
1700
1700
|
- Only a sum takes any count: an empty product, a difference of one and a quotient of anything but two still fail on the first render.
|
|
1701
1701
|
|
|
1702
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.
|
|
1702
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
1703
1703
|
|
|
1704
1704
|
### Given
|
|
1705
1705
|
|
|
@@ -2421,7 +2421,7 @@ The keys of [Calculation](#calculation) apply here.
|
|
|
2421
2421
|
- Unit, format and places belong to the metric; on a quantity they fail on the first render, and so does a missing or unknown metric key in a `value`.
|
|
2422
2422
|
- No target or limits with metrics: an assessment per cell is not there yet.
|
|
2423
2423
|
|
|
2424
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.
|
|
2424
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
|
|
2425
2425
|
|
|
2426
2426
|
## In practice
|
|
2427
2427
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umriss-ui/calculation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.55.1",
|
|
4
4
|
"description": "React calculation view for data-dense applications - a derivation written as it is shown, evaluated by the library, folded and read line by line.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Roman Händler",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@umriss-ui/core": "^0.
|
|
60
|
+
"@umriss-ui/core": "^0.55.0",
|
|
61
61
|
"react": ">=19",
|
|
62
62
|
"react-dom": ">=19"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@fontsource/geist-mono": "^5.3.0",
|
|
66
66
|
"@fontsource/geist-sans": "^5.3.0",
|
|
67
|
-
"@umriss-ui/core": "0.
|
|
67
|
+
"@umriss-ui/core": "0.55.1",
|
|
68
68
|
"@umriss-ui/demo": "0.0.0",
|
|
69
69
|
"@types/node": "^22.20.2",
|
|
70
70
|
"@types/react": "^19.0.0",
|