@umriss-ui/calculation 0.3.3 → 0.3.5
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 +18 -0
- package/README.md +1 -1
- package/docs/llms-full.md +9 -9
- package/package.json +10 -8
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,24 @@ under a heading "Changed" of its own, no matter which digit rose.
|
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
+
## 0.3.5 – Found by search (Sep. 2026)
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- **The package's description and keywords say what it is in the words a
|
|
19
|
+
search uses**, and the demo it links to addresses every page by a path
|
|
20
|
+
(`…/calculation/<page>/`) instead of a hash, with the page's text readable before
|
|
21
|
+
the demo starts. Old `#/<page>` links still land. Nothing in the package's
|
|
22
|
+
code changed.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 0.3.4 – Core 0.14.0 (Sep. 2026)
|
|
27
|
+
|
|
28
|
+
Needs `@umriss-ui/core` 0.14; the peer range moves to `^0.14.0`. Nothing else changes for a caller.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
14
32
|
## 0.3.3 – Core 0.13.0 (Sep. 2026)
|
|
15
33
|
|
|
16
34
|
Needs `@umriss-ui/core` 0.13; the peer range moves to `^0.13.0`. Nothing else changes for a caller.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @umriss-ui/calculation
|
|
2
2
|
|
|
3
|
-
A calculation a reader can follow and redo. A screen shows a figure — an
|
|
3
|
+
A React calculation view: a calculation a reader can follow and redo. A screen shows a figure — an
|
|
4
4
|
availability of 99.9 %, a cost per tour, an invoice total — and this package
|
|
5
5
|
shows how it came about, as a
|
|
6
6
|
statement of account: the operator before each number, the final result above a
|
package/docs/llms-full.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# @umriss-ui/calculation 0.3.
|
|
1
|
+
# @umriss-ui/calculation 0.3.5
|
|
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
|
|
|
5
5
|
Install with `pnpm add @umriss-ui/calculation`. This text is generated from the package's demo (https://romanhaendler.github.io/umriss-ui/calculation/): every page with its import line, its examples - the source exactly as it runs, with the package name where the demo imports its own source - its props tables generated from the code, and what it deliberately does not do. The pages index stands in https://romanhaendler.github.io/umriss-ui/calculation/llms.txt.
|
|
6
6
|
|
|
@@ -532,7 +532,7 @@ Show a figure together with how it came about (a derivation, a statement of acco
|
|
|
532
532
|
import { Calculation, Given, Difference, Quotient, Ref } from "@umriss-ui/calculation";
|
|
533
533
|
```
|
|
534
534
|
|
|
535
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/calculation
|
|
535
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/calculation/installation/
|
|
536
536
|
|
|
537
537
|
Install with `pnpm add @umriss-ui/calculation @umriss-ui/core`; core is a peer dependency and brings formats, wording and the assessment of targets and limits. React 18 or 19 as a peer as well.
|
|
538
538
|
|
|
@@ -576,7 +576,7 @@ Lets a reader follow and redo a figure: each line a quantity with its operator,
|
|
|
576
576
|
import { Calculation, Given, Sum, Product, Quotient, Ref, Chain, Plus, Interim } from "@umriss-ui/calculation";
|
|
577
577
|
```
|
|
578
578
|
|
|
579
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/calculation
|
|
579
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/calculation/calculation/
|
|
580
580
|
|
|
581
581
|
There is no prop for a result. Every derived number is computed with the operator its line names, at full precision; only the screen rounds.
|
|
582
582
|
|
|
@@ -724,7 +724,7 @@ Sum, difference, product and quotient, each holding its operands: the form for a
|
|
|
724
724
|
import { Sum, Difference, Product, Quotient, Ref } from "@umriss-ui/calculation";
|
|
725
725
|
```
|
|
726
726
|
|
|
727
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/calculation
|
|
727
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/calculation/tree/
|
|
728
728
|
|
|
729
729
|
`Sum`, `Product` and `Difference` (a − b − c) take two or more operands, `Quotient` exactly two. A quantity used twice is defined once with an `id` and stands elsewhere as a `Ref`, which shows its name and number but never its derivation again.
|
|
730
730
|
|
|
@@ -917,7 +917,7 @@ A sheet read top to bottom (a running calculation): each line worked into the va
|
|
|
917
917
|
import { Chain, Plus, Minus, Times, DividedBy, Interim } from "@umriss-ui/calculation";
|
|
918
918
|
```
|
|
919
919
|
|
|
920
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/calculation
|
|
920
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/calculation/chain/
|
|
921
921
|
|
|
922
922
|
A chain has no precedence: every line works into the value before it, strictly in order. So `Times` and `DividedBy` stand alone between two named values; anything else fails on the first render.
|
|
923
923
|
|
|
@@ -1194,7 +1194,7 @@ The numbers a calculation starts from (inputs, leaves): where they came from, wh
|
|
|
1194
1194
|
import { Given } from "@umriss-ui/calculation";
|
|
1195
1195
|
```
|
|
1196
1196
|
|
|
1197
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/calculation
|
|
1197
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/calculation/given/
|
|
1198
1198
|
|
|
1199
1199
|
A given with `asOf` and `ages` carries a freshness through core, as a `Stat` does – beside the number, never instead of its verdict. There are no default ages.
|
|
1200
1200
|
|
|
@@ -1313,7 +1313,7 @@ A number not there yet, a division by zero, rounded figures that do not add up,
|
|
|
1313
1313
|
import { Calculation } from "@umriss-ui/calculation";
|
|
1314
1314
|
```
|
|
1315
1315
|
|
|
1316
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/calculation
|
|
1316
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/calculation/what-can-go-wrong/
|
|
1317
1317
|
|
|
1318
1318
|
An absent given is never zero: every quantity that depends on it is absent too, with the reason, up to the result. A quotient by zero is absent with its own reason.
|
|
1319
1319
|
|
|
@@ -1441,7 +1441,7 @@ Whole figures as a screen shows them: the cost per stop of a day's tours, invoic
|
|
|
1441
1441
|
import { Calculation, Chain, Given, Ref } from "@umriss-ui/calculation";
|
|
1442
1442
|
```
|
|
1443
1443
|
|
|
1444
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/calculation
|
|
1444
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/calculation/worked-examples/
|
|
1445
1445
|
|
|
1446
1446
|
#### Examples
|
|
1447
1447
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umriss-ui/calculation",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.3.5",
|
|
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",
|
|
7
7
|
"homepage": "https://romanhaendler.github.io/umriss-ui/calculation/",
|
|
@@ -15,11 +15,13 @@
|
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"react",
|
|
18
|
-
"components",
|
|
19
|
-
"ui",
|
|
20
|
-
"umriss",
|
|
18
|
+
"react-components",
|
|
21
19
|
"calculation",
|
|
22
|
-
"derivation"
|
|
20
|
+
"derivation",
|
|
21
|
+
"formula",
|
|
22
|
+
"explainable",
|
|
23
|
+
"typescript",
|
|
24
|
+
"umriss"
|
|
23
25
|
],
|
|
24
26
|
"type": "module",
|
|
25
27
|
"files": [
|
|
@@ -45,7 +47,7 @@
|
|
|
45
47
|
"peerDependencies": {
|
|
46
48
|
"react": ">=18",
|
|
47
49
|
"react-dom": ">=18",
|
|
48
|
-
"@umriss-ui/core": "^0.
|
|
50
|
+
"@umriss-ui/core": "^0.14.1"
|
|
49
51
|
},
|
|
50
52
|
"devDependencies": {
|
|
51
53
|
"@fontsource/geist-mono": "^5.3.0",
|
|
@@ -59,7 +61,7 @@
|
|
|
59
61
|
"typescript": "^5.6.3",
|
|
60
62
|
"vite": "^6.0.0",
|
|
61
63
|
"vite-plugin-dts": "^4.3.0",
|
|
62
|
-
"@umriss-ui/core": "0.
|
|
64
|
+
"@umriss-ui/core": "0.14.1",
|
|
63
65
|
"@umriss-ui/demo": "0.0.0"
|
|
64
66
|
},
|
|
65
67
|
"scripts": {
|