@stll/workspace-ui 0.17.1 → 0.18.2
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.
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Turning a calculation result into the two strings a view shows: the compact
|
|
3
|
+
* line in the header, and the breakdown behind it.
|
|
4
|
+
*
|
|
5
|
+
* Formatting is separate from reducing because the reduction is the same
|
|
6
|
+
* everywhere and the formatting is not: it needs the reader's locale, and a
|
|
7
|
+
* monetary reduction has one line per currency to lay out.
|
|
8
|
+
*/
|
|
1
9
|
import { CalculationResult } from "@stll/calculations";
|
|
2
10
|
import { CentsAmount } from "@stll/money";
|
|
3
11
|
export type CalculationFormatters = {
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Changing which calculation a view shows for a property.
|
|
3
|
+
*
|
|
4
|
+
* The order of the list is the order the header draws, so a property that
|
|
5
|
+
* already has a calculation keeps its place when its reduction changes.
|
|
6
|
+
* Removing and re-appending would have read as the summary jumping to the end
|
|
7
|
+
* of the row every time someone switched sum to average.
|
|
8
|
+
*/
|
|
1
9
|
import { CalculationKind } from "@stll/calculations";
|
|
2
10
|
export type CalculationSelection = {
|
|
3
11
|
propertyId: string;
|
package/dist/colors.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Option colours resolve in the kit. This module stays as the workspace-facing
|
|
3
|
+
* import path so call sites do not have to move.
|
|
4
|
+
*/
|
|
1
5
|
import { ColorVariants, OptionColor, emptyColor, optionColors, resolveOptionColor } from "@stll/ui/option-color";
|
|
2
6
|
export { type ColorVariants, type OptionColor, emptyColor, optionColors, resolveOptionColor };
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The nested condition builder over the `@stll/conditions` AST.
|
|
3
|
+
*
|
|
4
|
+
* One module rather than one subpath per file: the component only means
|
|
5
|
+
* anything against the field descriptions and operator sets in `logic`, and
|
|
6
|
+
* the logic is only ever read to feed the component.
|
|
7
|
+
*
|
|
8
|
+
* The module resolves no strings and reads no schema of its own. A host
|
|
9
|
+
* describes its operands as `FieldOption`s — whose `valueType` picks both the
|
|
10
|
+
* operator set and the value editor — and brings every label it draws.
|
|
11
|
+
*/
|
|
1
12
|
import { CONDITION_OPERATORS, ConditionOperator, FieldOption, FieldOptionChoice, FieldValueType, ValueEditorKind, appendChild, asGroup, buildLeaf, fieldForNode, isConditionOperator, isMultiValue, leafFromField, leafOperand, leafOperator, leafValueList, leafValueString, operandsEqual, operatorsFor, removeChild, replaceChild, valueEditorFor } from "./logic.js";
|
|
2
13
|
import { ConditionBuilder, ConditionBuilderLabels, ConditionCapabilities, FormulaCellRenderCtx, ValueEditorRenderCtx } from "./builder.js";
|
|
3
14
|
export { CONDITION_OPERATORS, ConditionBuilder, type ConditionBuilderLabels, type ConditionCapabilities, type ConditionOperator, type FieldOption, type FieldOptionChoice, type FieldValueType, type FormulaCellRenderCtx, type ValueEditorKind, type ValueEditorRenderCtx, appendChild, asGroup, buildLeaf, fieldForNode, isConditionOperator, isMultiValue, leafFromField, leafOperand, leafOperator, leafValueList, leafValueString, operandsEqual, operatorsFor, removeChild, replaceChild, valueEditorFor };
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Feature previews: small, static product scenes composed from the same
|
|
3
|
+
* components the app renders (kanban cards, comment cards, court badges,
|
|
4
|
+
* matter icons, task status glyphs, money formatting), for marketing pages,
|
|
5
|
+
* menus and slides that must stay in step with the product.
|
|
6
|
+
*
|
|
7
|
+
* One entry rather than one subpath per scene, because the scenes share one
|
|
8
|
+
* contract: each takes its interface labels, a formatting locale and,
|
|
9
|
+
* optionally, its content (a fictional English set by default), and fills the
|
|
10
|
+
* box its host gives it.
|
|
11
|
+
*/
|
|
1
12
|
import { BillingPreview, BillingPreviewData, BillingPreviewEntry, BillingPreviewLabels } from "./billing-preview.js";
|
|
2
13
|
import { ContactsPreview, ContactsPreviewData, ContactsPreviewLabels } from "./contacts-preview.js";
|
|
3
14
|
import { DocumentsPreview, DocumentsPreviewComment, DocumentsPreviewData, DocumentsPreviewLabels } from "./documents-preview.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/workspace-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.2",
|
|
4
4
|
"description": "Reusable workspace presentation components and view helpers for Stella.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"calculations",
|
|
@@ -127,12 +127,12 @@
|
|
|
127
127
|
"test:property": "bun test --preload @stll/property-testing/preload $(grep -rlE 'fc\\.assert|assertProperty' src --include='*.test.ts')"
|
|
128
128
|
},
|
|
129
129
|
"dependencies": {
|
|
130
|
-
"@stll/calculations": "^0.1.
|
|
131
|
-
"@stll/conditions": "^0.4.
|
|
130
|
+
"@stll/calculations": "^0.1.5",
|
|
131
|
+
"@stll/conditions": "^0.4.1",
|
|
132
132
|
"@stll/money": "^0.4.0",
|
|
133
|
-
"@stll/ui": "^0.
|
|
133
|
+
"@stll/ui": "^0.72.0",
|
|
134
134
|
"better-result": "3.0.1",
|
|
135
|
-
"temporal-polyfill": "1.0.
|
|
135
|
+
"temporal-polyfill": "1.0.8",
|
|
136
136
|
"use-intl": "4.14.9"
|
|
137
137
|
},
|
|
138
138
|
"devDependencies": {
|
|
@@ -148,9 +148,9 @@
|
|
|
148
148
|
"fast-check": "^4.10.2",
|
|
149
149
|
"react": "^19.3.1",
|
|
150
150
|
"react-dom": "^19.3.1",
|
|
151
|
-
"tailwindcss": "4.3.
|
|
152
|
-
"tsdown": "0.23.
|
|
153
|
-
"tsrs": "0.
|
|
151
|
+
"tailwindcss": "4.3.5",
|
|
152
|
+
"tsdown": "0.23.7",
|
|
153
|
+
"tsrs": "0.23.0-ts7.1.0-beta"
|
|
154
154
|
},
|
|
155
155
|
"peerDependencies": {
|
|
156
156
|
"@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
|