@umriss-ui/table 0.7.3 → 0.7.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 +17 -0
- package/dist/table.js +435 -435
- package/docs/llms-full.md +57 -2
- package/package.json +3 -3
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/table 0.7.
|
|
1
|
+
# @umriss-ui/table 0.7.5
|
|
2
2
|
|
|
3
3
|
> React data table for data-dense applications - sorting, filtering, grouping, aggregates, virtualisation. Declared the way it reads: columns as JSX, typed against their rows.
|
|
4
4
|
|
|
@@ -6451,7 +6451,10 @@ The demos' shared data, which some examples import from beside themselves. Copie
|
|
|
6451
6451
|
* where the month is closed (January and February), the forecast for every
|
|
6452
6452
|
* month; Marketing overspends, IT runs under;
|
|
6453
6453
|
* - `INVOICES` - incoming invoices with their lines (quantity, unit price,
|
|
6454
|
-
* discount, VAT rate), and `APPROVALS`, who signed which, or has yet to
|
|
6454
|
+
* discount, VAT rate), and `APPROVALS`, who signed which, or has yet to;
|
|
6455
|
+
* - `TEAMS` - the teams of each cost centre with their headcount, full-time
|
|
6456
|
+
* equivalents and monthly staff cost, and `BUSINESS_LINES`, which cost
|
|
6457
|
+
* centres each of the three business lines holds.
|
|
6455
6458
|
*
|
|
6456
6459
|
* Amounts in euros. "Now" is Tuesday, 17 March 2026. Plain data and small pure
|
|
6457
6460
|
* functions, no imports: copy the file beside an example and it runs.
|
|
@@ -6603,6 +6606,58 @@ export const APPROVALS: readonly Approval[] = [
|
|
|
6603
6606
|
{ invoice: "INV-26-0226", step: "finance", approver: "Martina Vogel", decision: "approved", at: on(3, 2) },
|
|
6604
6607
|
{ invoice: "INV-26-0221", step: "cost centre", approver: "Anika Sørensen", decision: "rejected", at: on(2, 24), comment: "Not ordered - the review was cancelled in January." },
|
|
6605
6608
|
];
|
|
6609
|
+
|
|
6610
|
+
export interface Team {
|
|
6611
|
+
/** The cost centre the team books to. */
|
|
6612
|
+
costCentre: string;
|
|
6613
|
+
name: string;
|
|
6614
|
+
/** People employed, whatever their hours. */
|
|
6615
|
+
headcount: number;
|
|
6616
|
+
/** Full-time equivalents: contracted hours over 40 a week. */
|
|
6617
|
+
fte: number;
|
|
6618
|
+
/** Staff cost of a month, in thousand euros. */
|
|
6619
|
+
monthlyCost: number;
|
|
6620
|
+
}
|
|
6621
|
+
|
|
6622
|
+
/** Every team, on 17 March: 102 people, 91.5 full-time equivalents. */
|
|
6623
|
+
export const TEAMS: readonly Team[] = [
|
|
6624
|
+
{ costCentre: "CC-1100", name: "Field sales North", headcount: 9, fte: 8.6, monthlyCost: 61.2 },
|
|
6625
|
+
{ costCentre: "CC-1100", name: "Field sales South", headcount: 8, fte: 7.5, monthlyCost: 53.9 },
|
|
6626
|
+
{ costCentre: "CC-1100", name: "Inside sales", headcount: 6, fte: 5.2, monthlyCost: 29.8 },
|
|
6627
|
+
{ costCentre: "CC-1100", name: "Key accounts", headcount: 4, fte: 4.0, monthlyCost: 33.6 },
|
|
6628
|
+
{ costCentre: "CC-1200", name: "Brand", headcount: 3, fte: 2.8, monthlyCost: 19.4 },
|
|
6629
|
+
{ costCentre: "CC-1200", name: "Online marketing", headcount: 4, fte: 3.5, monthlyCost: 24.1 },
|
|
6630
|
+
{ costCentre: "CC-1200", name: "Trade fairs", headcount: 2, fte: 1.5, monthlyCost: 10.2 },
|
|
6631
|
+
{ costCentre: "CC-3100", name: "Service desk", headcount: 7, fte: 5.9, monthlyCost: 31.3 },
|
|
6632
|
+
{ costCentre: "CC-3100", name: "Returns", headcount: 3, fte: 2.5, monthlyCost: 12.6 },
|
|
6633
|
+
{ costCentre: "CC-2100", name: "Seating", headcount: 6, fte: 5.8, monthlyCost: 43.5 },
|
|
6634
|
+
{ costCentre: "CC-2100", name: "Desks", headcount: 7, fte: 6.5, monthlyCost: 48.1 },
|
|
6635
|
+
{ costCentre: "CC-2100", name: "Storage", headcount: 5, fte: 4.6, monthlyCost: 33.9 },
|
|
6636
|
+
{ costCentre: "CC-2100", name: "Test lab", headcount: 3, fte: 2.5, monthlyCost: 16.8 },
|
|
6637
|
+
{ costCentre: "CC-2200", name: "Industrial design", headcount: 4, fte: 3.6, monthlyCost: 27.2 },
|
|
6638
|
+
{ costCentre: "CC-2200", name: "Colour and material", headcount: 2, fte: 1.8, monthlyCost: 12.9 },
|
|
6639
|
+
{ costCentre: "CC-4100", name: "Accounting", headcount: 5, fte: 4.4, monthlyCost: 27.5 },
|
|
6640
|
+
{ costCentre: "CC-4100", name: "Controlling", headcount: 3, fte: 3.0, monthlyCost: 21.3 },
|
|
6641
|
+
{ costCentre: "CC-4200", name: "Recruiting", headcount: 2, fte: 1.8, monthlyCost: 12.4 },
|
|
6642
|
+
{ costCentre: "CC-4200", name: "Payroll", headcount: 2, fte: 1.5, monthlyCost: 9.6 },
|
|
6643
|
+
{ costCentre: "CC-4300", name: "Workplace", headcount: 4, fte: 3.8, monthlyCost: 24.2 },
|
|
6644
|
+
{ costCentre: "CC-4300", name: "Applications", headcount: 5, fte: 4.5, monthlyCost: 34.8 },
|
|
6645
|
+
{ costCentre: "CC-4400", name: "Buildings", headcount: 3, fte: 3.0, monthlyCost: 16.9 },
|
|
6646
|
+
{ costCentre: "CC-4400", name: "Canteen", headcount: 5, fte: 3.2, monthlyCost: 14.7 },
|
|
6647
|
+
];
|
|
6648
|
+
|
|
6649
|
+
export interface BusinessLine {
|
|
6650
|
+
name: string;
|
|
6651
|
+
/** Its cost centres, in the order a report lists them. */
|
|
6652
|
+
costCentres: readonly string[];
|
|
6653
|
+
}
|
|
6654
|
+
|
|
6655
|
+
/** How the company reports: three business lines over the nine cost centres. */
|
|
6656
|
+
export const BUSINESS_LINES: readonly BusinessLine[] = [
|
|
6657
|
+
{ name: "Commercial", costCentres: ["CC-1100", "CC-1200", "CC-3100"] },
|
|
6658
|
+
{ name: "Product", costCentres: ["CC-2100", "CC-2200"] },
|
|
6659
|
+
{ name: "Corporate services", costCentres: ["CC-4100", "CC-4200", "CC-4300", "CC-4400"] },
|
|
6660
|
+
];
|
|
6606
6661
|
```
|
|
6607
6662
|
|
|
6608
6663
|
### `logistics.ts`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umriss-ui/table",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
4
4
|
"description": "React data table for data-dense applications - sorting, filtering, grouping, aggregates, virtualisation. Declared the way it reads: columns as JSX, typed against their rows.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Roman Händler",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": ">=18",
|
|
53
53
|
"react-dom": ">=18",
|
|
54
|
-
"@umriss-ui/core": "^0.
|
|
54
|
+
"@umriss-ui/core": "^0.18.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@fontsource/geist-mono": "^5.3.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"vite": "^6.0.0",
|
|
67
67
|
"vite-plugin-dts": "^4.3.0",
|
|
68
68
|
"@umriss-ui/demo": "0.0.0",
|
|
69
|
-
"@umriss-ui/core": "0.
|
|
69
|
+
"@umriss-ui/core": "0.18.0"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"props": "node --disable-warning=ExperimentalWarning --experimental-strip-types demo/props.ts",
|