@sentropic/design-system-elements 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/LICENSE.THIRD-PARTY.md +4734 -0
- package/README.md +146 -2
- package/catalog.json +1234 -0
- package/dist/browser/assets/bpmn-CZlEAdL6.ttf +0 -0
- package/dist/browser/assets/bpmn-DaGVGZ7K.woff +0 -0
- package/dist/browser/assets/bpmn-DaJ2be00.woff2 +0 -0
- package/dist/browser/chunks/BpmnRenderUtil-WMCgqGDs.js +1 -0
- package/dist/browser/chunks/BpmnUpdater-C-UNbzXl.js +1 -0
- package/dist/browser/chunks/LabelUtil-7QpE43Ed.js +1 -0
- package/dist/browser/chunks/LayoutUtil-hAMJmJFU.js +1 -0
- package/dist/browser/chunks/ModelUtil-CMh7LuN4.js +1 -0
- package/dist/browser/chunks/Modeler-BfAmwsmK.js +389 -0
- package/dist/browser/chunks/Viewer-eYLzc3fD.js +4 -0
- package/dist/browser/chunks/bpmn-canvas-DeAWdJFy.js +2207 -0
- package/dist/browser/chunks/colored-CSIQaGsQ.js +1 -0
- package/dist/browser/chunks/dist-Co2MgHWm.js +1 -0
- package/dist/browser/chunks/dist-O6_2ByYB.js +1 -0
- package/dist/browser/chunks/dist-kvAYI1vo.js +1 -0
- package/dist/browser/chunks/entropic-CM5BHERN.js +2173 -0
- package/dist/browser/chunks/focus-renderer-BgsZGo7n.js +8 -0
- package/dist/browser/chunks/forge-B8hrW4lA.js +2173 -0
- package/dist/browser/chunks/layout-q0TR9-aY.js +1 -0
- package/dist/browser/chunks/legend-CXdfCBh6.js +1 -0
- package/dist/browser/chunks/textMetrics-BrMS6-sA.js +2 -0
- package/dist/browser/chunks/tokens-DFPpCvf1.js +1 -0
- package/dist/browser/elements.js +2221 -0
- package/dist/browser/sri.json +166 -0
- package/dist/contracts/bar-chart.d.ts +158 -0
- package/dist/contracts/bar-chart.js +117 -0
- package/dist/contracts/bpmn-canvas.d.ts +39 -0
- package/dist/contracts/bpmn-canvas.js +77 -0
- package/dist/contracts/decision-dossier.d.ts +43 -0
- package/dist/contracts/decision-dossier.js +133 -0
- package/dist/contracts/index.d.ts +28 -0
- package/dist/contracts/index.js +35 -0
- package/dist/contracts/types.d.ts +129 -0
- package/dist/contracts/types.js +16 -0
- package/dist/element/f1/f1-to-xml.d.ts +51 -0
- package/dist/element/f1/f1-to-xml.js +220 -0
- package/dist/element/markdown/minimal-markdown.d.ts +31 -0
- package/dist/element/markdown/minimal-markdown.js +98 -0
- package/dist/element/theme/theme-scoping.d.ts +27 -0
- package/dist/element/theme/theme-scoping.js +39 -0
- package/dist/generated/a2ui-common-types.d.ts +25 -0
- package/dist/generated/a2ui-common-types.js +367 -0
- package/dist/generator/canonical.d.ts +21 -0
- package/dist/generator/canonical.js +36 -0
- package/dist/generator/emit.d.ts +48 -0
- package/dist/generator/emit.js +400 -0
- package/dist/generator/main.d.ts +19 -0
- package/dist/generator/main.js +67 -0
- package/dist/generator/parity.d.ts +55 -0
- package/dist/generator/parity.js +223 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +10 -0
- package/dist/ports/bpmn-canvas.d.ts +34 -0
- package/dist/ports/bpmn-canvas.js +36 -0
- package/dist/ports/focus.d.ts +40 -0
- package/dist/ports/focus.js +49 -0
- package/dist/ports/types.d.ts +36 -0
- package/dist/ports/types.js +12 -0
- package/dist/structure/ajv.d.ts +41 -0
- package/dist/structure/ajv.js +108 -0
- package/dist/structure/interpreter.d.ts +47 -0
- package/dist/structure/interpreter.js +576 -0
- package/dist/validate/diagnostics.d.ts +63 -0
- package/dist/validate/diagnostics.js +56 -0
- package/dist/validate/envelope.d.ts +92 -0
- package/dist/validate/envelope.js +306 -0
- package/dist/validate/index.d.ts +22 -0
- package/dist/validate/index.js +24 -0
- package/dist/validate/structure.d.ts +32 -0
- package/dist/validate/structure.js +13 -0
- package/envelope.json +43 -0
- package/package.json +54 -4
- package/schemas/BarChart.v1.json +556 -0
- package/schemas/BpmnCanvas.v1.json +139 -0
- package/schemas/DecisionDossier.v1.json +635 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.1.0",
|
|
3
|
+
"files": {
|
|
4
|
+
"assets/bpmn-CZlEAdL6.ttf": {
|
|
5
|
+
"bytes": 48652,
|
|
6
|
+
"gzip": 16428,
|
|
7
|
+
"brotli": 14794,
|
|
8
|
+
"integrity": "sha384-l7q+y9HCK5Gj6J6zjVBDaiaHYNTw4/aomO6uLglcLCtqVNRGa5BvASPzxC41ucDq",
|
|
9
|
+
"group": "engine:bpmn-canvas"
|
|
10
|
+
},
|
|
11
|
+
"assets/bpmn-DaGVGZ7K.woff": {
|
|
12
|
+
"bytes": 16160,
|
|
13
|
+
"gzip": 16171,
|
|
14
|
+
"brotli": 16030,
|
|
15
|
+
"integrity": "sha384-kFHrXxv7h2MWhU2/Fzf29BeNYqLpJqwcz/AtOQkKfFrQr5Pklk7RRIAjMa9sZrNM",
|
|
16
|
+
"group": "engine:bpmn-canvas"
|
|
17
|
+
},
|
|
18
|
+
"assets/bpmn-DaJ2be00.woff2": {
|
|
19
|
+
"bytes": 13204,
|
|
20
|
+
"gzip": 13227,
|
|
21
|
+
"brotli": 13208,
|
|
22
|
+
"integrity": "sha384-S3bT1LfGSkyt3B2W6p1qVTXVeNRweUX73NY5cVvvn1yGRhz9cpA+HwyoeXkt5iAH",
|
|
23
|
+
"group": "engine:bpmn-canvas"
|
|
24
|
+
},
|
|
25
|
+
"chunks/BpmnRenderUtil-WMCgqGDs.js": {
|
|
26
|
+
"bytes": 4851,
|
|
27
|
+
"gzip": 2056,
|
|
28
|
+
"brotli": 1825,
|
|
29
|
+
"integrity": "sha384-aiIFrSlj8SsM84cplJsIW6NentFjYfka3WdMuvxZiqyhOHmHMPlQtwhQsK9TEEEW",
|
|
30
|
+
"group": "engine:bpmn-canvas"
|
|
31
|
+
},
|
|
32
|
+
"chunks/BpmnUpdater-C-UNbzXl.js": {
|
|
33
|
+
"bytes": 8066,
|
|
34
|
+
"gzip": 2550,
|
|
35
|
+
"brotli": 2329,
|
|
36
|
+
"integrity": "sha384-PQ/KkzKhCig6BruG2BW1JLGWEbFJG2wX8jgotnhbVopsIRkidolrKHHOYUgpqby0",
|
|
37
|
+
"group": "engine:bpmn-canvas"
|
|
38
|
+
},
|
|
39
|
+
"chunks/LabelUtil-7QpE43Ed.js": {
|
|
40
|
+
"bytes": 1882,
|
|
41
|
+
"gzip": 797,
|
|
42
|
+
"brotli": 711,
|
|
43
|
+
"integrity": "sha384-IH9BLr6dCGhhByV5xZjfAgK3vVRL2+MnBY3EYymU3FHYzNDt5y0rEt1LnBDA8yQs",
|
|
44
|
+
"group": "engine:bpmn-canvas"
|
|
45
|
+
},
|
|
46
|
+
"chunks/LayoutUtil-hAMJmJFU.js": {
|
|
47
|
+
"bytes": 10197,
|
|
48
|
+
"gzip": 4715,
|
|
49
|
+
"brotli": 4208,
|
|
50
|
+
"integrity": "sha384-qhUATdNGHkga5eSxXA0pIjOnaapmzFvd5nflYkFAU+UFye+Am7ZHFQBAstm5btlH",
|
|
51
|
+
"group": "engine:bpmn-canvas"
|
|
52
|
+
},
|
|
53
|
+
"chunks/ModelUtil-CMh7LuN4.js": {
|
|
54
|
+
"bytes": 291,
|
|
55
|
+
"gzip": 193,
|
|
56
|
+
"brotli": 168,
|
|
57
|
+
"integrity": "sha384-3TjN9AKie6jVg1XbjmJUgmyL5NsOZ0/cSmlJ+zVKJg3n5r3uyg+c5BCkicQXTX7U",
|
|
58
|
+
"group": "engine:bpmn-canvas"
|
|
59
|
+
},
|
|
60
|
+
"chunks/Modeler-BfAmwsmK.js": {
|
|
61
|
+
"bytes": 365486,
|
|
62
|
+
"gzip": 104569,
|
|
63
|
+
"brotli": 87851,
|
|
64
|
+
"integrity": "sha384-iVwbjyftSwu9AL/pZFbXY//yf2ekZ2Uw3d5yNf3/ha3/mfBo4hli2X7lWmu2DNlg",
|
|
65
|
+
"group": "engine:bpmn-canvas"
|
|
66
|
+
},
|
|
67
|
+
"chunks/Viewer-eYLzc3fD.js": {
|
|
68
|
+
"bytes": 107289,
|
|
69
|
+
"gzip": 33371,
|
|
70
|
+
"brotli": 28862,
|
|
71
|
+
"integrity": "sha384-sGyqCibIey2fyV3P0J2yjen44ntsUaHGFzbZ8ZvkCF7nj8p2SjOFt6KODAYLraZn",
|
|
72
|
+
"group": "engine:bpmn-canvas"
|
|
73
|
+
},
|
|
74
|
+
"chunks/bpmn-canvas-DeAWdJFy.js": {
|
|
75
|
+
"bytes": 165740,
|
|
76
|
+
"gzip": 38294,
|
|
77
|
+
"brotli": 33661,
|
|
78
|
+
"integrity": "sha384-/NUNXChKGZnJ8lah3JgFqH3PBepTKfIzxUB7uw57AzhCzSAcryHiDwigq1fOl6B8",
|
|
79
|
+
"group": "engine:bpmn-canvas"
|
|
80
|
+
},
|
|
81
|
+
"chunks/colored-CSIQaGsQ.js": {
|
|
82
|
+
"bytes": 4182,
|
|
83
|
+
"gzip": 1608,
|
|
84
|
+
"brotli": 1432,
|
|
85
|
+
"integrity": "sha384-A6TWyL5F2fBA+F4vlHc6QOFkdE2nfoKm8DZYQ44CoFfmUUtypIYyozwqpanXm0al",
|
|
86
|
+
"group": "engine:bpmn-canvas"
|
|
87
|
+
},
|
|
88
|
+
"chunks/dist-Co2MgHWm.js": {
|
|
89
|
+
"bytes": 3257,
|
|
90
|
+
"gzip": 1259,
|
|
91
|
+
"brotli": 1137,
|
|
92
|
+
"integrity": "sha384-KTqZGeMBw0b7U/9zsE4+SBiRWZhnf81JLd1Be7uY7YsdeZ1QBDt6TqM+wmzlAw2T",
|
|
93
|
+
"group": "engine:bpmn-canvas"
|
|
94
|
+
},
|
|
95
|
+
"chunks/dist-O6_2ByYB.js": {
|
|
96
|
+
"bytes": 55,
|
|
97
|
+
"gzip": 75,
|
|
98
|
+
"brotli": 59,
|
|
99
|
+
"integrity": "sha384-jb0mctMGK51aSxNooKQ9akyb0V7IdJ5EQaXIhEd2ydGN2S7Ggc+9jmE4PRLO1Ama",
|
|
100
|
+
"group": "engine:bpmn-canvas"
|
|
101
|
+
},
|
|
102
|
+
"chunks/dist-kvAYI1vo.js": {
|
|
103
|
+
"bytes": 5679,
|
|
104
|
+
"gzip": 2413,
|
|
105
|
+
"brotli": 2106,
|
|
106
|
+
"integrity": "sha384-OmtEyDUvxFayjXe8Efj+01AdOBSIyf3vn83OFJEBIWFK7LrtWlaz2ScbhBvUmOuS",
|
|
107
|
+
"group": "engine:bpmn-canvas"
|
|
108
|
+
},
|
|
109
|
+
"chunks/entropic-CM5BHERN.js": {
|
|
110
|
+
"bytes": 112899,
|
|
111
|
+
"gzip": 13233,
|
|
112
|
+
"brotli": 5259,
|
|
113
|
+
"integrity": "sha384-k/IBoHbdks/+6maYUo8tyGlwgYpHZlQPZWZU77Yhx3BdmT85wFafDhD7LioQ6bSJ",
|
|
114
|
+
"group": "theme:entropic"
|
|
115
|
+
},
|
|
116
|
+
"chunks/focus-renderer-BgsZGo7n.js": {
|
|
117
|
+
"bytes": 53400,
|
|
118
|
+
"gzip": 19285,
|
|
119
|
+
"brotli": 17022,
|
|
120
|
+
"integrity": "sha384-pgrHCl0m3N31klcRikWpHMcsHuzDew0bof+qMVK+H2eFITYAHtg7bL9wRCdU0mOZ",
|
|
121
|
+
"group": "engine:focus"
|
|
122
|
+
},
|
|
123
|
+
"chunks/forge-B8hrW4lA.js": {
|
|
124
|
+
"bytes": 112469,
|
|
125
|
+
"gzip": 13270,
|
|
126
|
+
"brotli": 5248,
|
|
127
|
+
"integrity": "sha384-YHfC5LNSEL2MTXFpILe4WRWvxN+rHmC+8xXbFVAaJJg47g5EHawae/7J/6qWWSu/",
|
|
128
|
+
"group": "theme:forge"
|
|
129
|
+
},
|
|
130
|
+
"chunks/layout-q0TR9-aY.js": {
|
|
131
|
+
"bytes": 39559,
|
|
132
|
+
"gzip": 13440,
|
|
133
|
+
"brotli": 12196,
|
|
134
|
+
"integrity": "sha384-548lUKMqoVsMkjgmv02vdwu1TVlWZ181HEjgMAQEU4+bPRwRWk2xZjPnlNhCowr/",
|
|
135
|
+
"group": "engine:bpmn-canvas"
|
|
136
|
+
},
|
|
137
|
+
"chunks/legend-CXdfCBh6.js": {
|
|
138
|
+
"bytes": 17445,
|
|
139
|
+
"gzip": 5886,
|
|
140
|
+
"brotli": 5334,
|
|
141
|
+
"integrity": "sha384-yPXIb60WpnXZ+iS6xn4QKyLfQ7qDLyWiJrbyj5ncwkPlH/yXV/Um9e1JNYn3Eca7",
|
|
142
|
+
"group": "engine:bpmn-canvas"
|
|
143
|
+
},
|
|
144
|
+
"chunks/textMetrics-BrMS6-sA.js": {
|
|
145
|
+
"bytes": 1614,
|
|
146
|
+
"gzip": 704,
|
|
147
|
+
"brotli": 645,
|
|
148
|
+
"integrity": "sha384-XE2Q9DTbGUlluNwVcAhbuu9VEDP4Q/VjC4ASkWY61hI3h1RyE8WQxl/eFR2s/CBr",
|
|
149
|
+
"group": "engine:bpmn-canvas"
|
|
150
|
+
},
|
|
151
|
+
"chunks/tokens-DFPpCvf1.js": {
|
|
152
|
+
"bytes": 4871,
|
|
153
|
+
"gzip": 2013,
|
|
154
|
+
"brotli": 1795,
|
|
155
|
+
"integrity": "sha384-KH/LVZKzkq0XDa6h0Saw3BoHBSkewVPWkAv6v6LNMaCWKY9eX6K9D0zVjwEgfYgY",
|
|
156
|
+
"group": "engine:bpmn-canvas"
|
|
157
|
+
},
|
|
158
|
+
"elements.js": {
|
|
159
|
+
"bytes": 240753,
|
|
160
|
+
"gzip": 54153,
|
|
161
|
+
"brotli": 40800,
|
|
162
|
+
"integrity": "sha384-HinwhQaL9Xe+nrnD+WnXIjOC5HrgC6srM3Xjq60l+EAV9jrGN0whFwQXnYkpCRaK",
|
|
163
|
+
"group": "core"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contract module for `BarChart` (§5.1, §5.4 — the plain-data pilot).
|
|
3
|
+
*
|
|
4
|
+
* SOURCE OF TRUTH: `BarChartProps` — the props type of the Svelte component
|
|
5
|
+
* `BarChart.svelte` in `@sentropic/design-system-svelte` (workspace package
|
|
6
|
+
* `packages/components-svelte`, file `src/lib/BarChart.svelte`). There it is
|
|
7
|
+
* declared inline in the instance script (`type BarChartProps = { ... }`) and
|
|
8
|
+
* not exported by name; the shared chart types it references
|
|
9
|
+
* (`BarChartDatum`, `ChartAnnotation`, `DataLabelsProp`) are exported from the
|
|
10
|
+
* package index. The interface below is its JSON form, re-declared here so
|
|
11
|
+
* this package generates from its own self-contained module (the `.svelte`
|
|
12
|
+
* file is not TypeScript-sourceable by ts-json-schema-generator, and the
|
|
13
|
+
* catalogue must not depend on another workspace's build output).
|
|
14
|
+
*
|
|
15
|
+
* Exclusions (§5.1, explicit): the three callbacks and the style hook. The
|
|
16
|
+
* narrowing: `dataLabels` drops its `format` function member. No prop needed
|
|
17
|
+
* a replacement type beyond that narrowing.
|
|
18
|
+
*/
|
|
19
|
+
import type { ContractModule } from "./types.js";
|
|
20
|
+
/** Categorical tone of one bar (8-slot category palette). */
|
|
21
|
+
export type BarChartTone = "category1" | "category2" | "category3" | "category4" | "category5" | "category6" | "category7" | "category8";
|
|
22
|
+
/** One bar: its label is also its selection key. */
|
|
23
|
+
export interface BarChartDatum {
|
|
24
|
+
/** The bar's category label; also its key for selection and hover. */
|
|
25
|
+
label: string;
|
|
26
|
+
/** The bar's value (value-axis units). */
|
|
27
|
+
value: number;
|
|
28
|
+
/** Explicit categorical tone; the palette default when absent. */
|
|
29
|
+
tone?: BarChartTone;
|
|
30
|
+
/** Lower error-bar extent (value-axis units). Drawn only when finite. */
|
|
31
|
+
errorLow?: number;
|
|
32
|
+
/** Upper error-bar extent (value-axis units). Drawn only when finite. */
|
|
33
|
+
errorHigh?: number;
|
|
34
|
+
}
|
|
35
|
+
/** Semantic tone for an analytical overlay (reference line / band / goal). */
|
|
36
|
+
export type ChartOverlayTone = "neutral" | "success" | "warning" | "error" | "info";
|
|
37
|
+
/** A reference line on one axis (default axis: "y"). */
|
|
38
|
+
export interface ChartReferenceLine {
|
|
39
|
+
/** Position of the line in value-axis units. */
|
|
40
|
+
value: number;
|
|
41
|
+
/** Human-readable line label. */
|
|
42
|
+
label?: string;
|
|
43
|
+
/** Feedback-token tone for the line. */
|
|
44
|
+
tone?: ChartOverlayTone;
|
|
45
|
+
/** Which axis the line spans; "y" by default. */
|
|
46
|
+
axis?: "x" | "y";
|
|
47
|
+
}
|
|
48
|
+
/** A shaded band between two value-axis positions. */
|
|
49
|
+
export interface ChartBand {
|
|
50
|
+
/** Band start in value-axis units. */
|
|
51
|
+
from: number;
|
|
52
|
+
/** Band end in value-axis units. */
|
|
53
|
+
to: number;
|
|
54
|
+
/** Human-readable band label. */
|
|
55
|
+
label?: string;
|
|
56
|
+
/** Feedback-token tone for the band. */
|
|
57
|
+
tone?: ChartOverlayTone;
|
|
58
|
+
}
|
|
59
|
+
/** A single goal line, emphasised above the bars. */
|
|
60
|
+
export interface ChartGoalLine {
|
|
61
|
+
/** Position of the goal line in value-axis units. */
|
|
62
|
+
value: number;
|
|
63
|
+
/** Human-readable goal label. */
|
|
64
|
+
label?: string;
|
|
65
|
+
}
|
|
66
|
+
/** Marker glyph for a point annotation. */
|
|
67
|
+
export type ChartAnnotationMarker = "circle" | "square" | "diamond";
|
|
68
|
+
/**
|
|
69
|
+
* Annotation overlay in data space, discriminated on `kind`. The `x`
|
|
70
|
+
* coordinate is categorical for this chart: it matches a bar by its `label`
|
|
71
|
+
* and is ignored otherwise; `y` and every value-axis number are numeric.
|
|
72
|
+
*/
|
|
73
|
+
export type ChartAnnotation = {
|
|
74
|
+
kind: "point";
|
|
75
|
+
x: number | string;
|
|
76
|
+
y: number;
|
|
77
|
+
label?: string;
|
|
78
|
+
marker?: ChartAnnotationMarker;
|
|
79
|
+
} | {
|
|
80
|
+
kind: "label";
|
|
81
|
+
x: number | string;
|
|
82
|
+
y: number;
|
|
83
|
+
text: string;
|
|
84
|
+
anchor?: "start" | "middle" | "end";
|
|
85
|
+
} | {
|
|
86
|
+
kind: "line";
|
|
87
|
+
axis: "x" | "y";
|
|
88
|
+
value: number;
|
|
89
|
+
label?: string;
|
|
90
|
+
} | {
|
|
91
|
+
kind: "region";
|
|
92
|
+
axis: "x" | "y";
|
|
93
|
+
from: number;
|
|
94
|
+
to: number;
|
|
95
|
+
label?: string;
|
|
96
|
+
} | {
|
|
97
|
+
kind: "shape";
|
|
98
|
+
points: {
|
|
99
|
+
x: number | string;
|
|
100
|
+
y: number;
|
|
101
|
+
}[];
|
|
102
|
+
label?: string;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* JSON form of `DataLabelsProp` (§5.1 narrowing): the `format` function member
|
|
106
|
+
* is dropped — the element renders values with its own numeric formatter.
|
|
107
|
+
*/
|
|
108
|
+
export type DataLabelsJson = boolean | {
|
|
109
|
+
/** Placement hint; the chart's default when absent. */
|
|
110
|
+
position?: "auto" | "inside" | "outside" | "top" | "center";
|
|
111
|
+
};
|
|
112
|
+
/** Value-axis scale type. `log` requires strictly positive values. */
|
|
113
|
+
export type ChartScale = "linear" | "log";
|
|
114
|
+
/**
|
|
115
|
+
* The JSON subset of the Svelte `BarChartProps` (§4.1: data only — no
|
|
116
|
+
* callbacks, no style hook). Member-for-member identical to the four
|
|
117
|
+
* frameworks' `BarChartProps` minus the excluded props; the parity guard
|
|
118
|
+
* proves it mechanically against React, Vue and Angular at generation time.
|
|
119
|
+
*/
|
|
120
|
+
export interface BarChartProps {
|
|
121
|
+
/** The bars, in draw order. Required. */
|
|
122
|
+
data: BarChartDatum[];
|
|
123
|
+
/** Human-readable chart label (also the accessible name). Required. */
|
|
124
|
+
label: string;
|
|
125
|
+
/** Fixed pixel width; the container's when absent. */
|
|
126
|
+
width?: number;
|
|
127
|
+
/** Fixed pixel height; the component's default when absent. */
|
|
128
|
+
height?: number;
|
|
129
|
+
/** Bar direction; "vertical" by default. */
|
|
130
|
+
orientation?: "vertical" | "horizontal";
|
|
131
|
+
/** Fixed value-axis domain [min, max]; the auto data range when absent. */
|
|
132
|
+
domain?: [number, number];
|
|
133
|
+
/** Keys of the currently selected bars (a bar's key is its label). Controlled. */
|
|
134
|
+
selectedKeys?: string[];
|
|
135
|
+
/** Reference lines on the value axis. */
|
|
136
|
+
referenceLines?: ChartReferenceLine[];
|
|
137
|
+
/** Shaded value-axis bands. */
|
|
138
|
+
bands?: ChartBand[];
|
|
139
|
+
/** A single goal line, emphasised above the bars. */
|
|
140
|
+
goalLine?: ChartGoalLine;
|
|
141
|
+
/** Annotation overlay in data space (see ChartAnnotation). */
|
|
142
|
+
annotations?: ChartAnnotation[];
|
|
143
|
+
/** Per-bar value labels; absent or false renders none. */
|
|
144
|
+
dataLabels?: DataLabelsJson;
|
|
145
|
+
/** Value-axis scale; "linear" by default, "log" needs positive values. */
|
|
146
|
+
scale?: ChartScale;
|
|
147
|
+
/** Inverts the value axis (high values toward the origin). Default false. */
|
|
148
|
+
invertAxis?: boolean;
|
|
149
|
+
/** Accepted for cross-chart parity; BarChart has no separate legend surface. */
|
|
150
|
+
showLegend?: boolean;
|
|
151
|
+
/** Controlled synchronised hover key (a bar's label, or null for none). */
|
|
152
|
+
hoverKey?: string | null;
|
|
153
|
+
/** Keyboard navigation of the data points (roving tabindex). */
|
|
154
|
+
keyboardNav?: boolean;
|
|
155
|
+
}
|
|
156
|
+
/** The declared contract of `BarChart` (§5.1). */
|
|
157
|
+
export declare const barChartContract: ContractModule;
|
|
158
|
+
//# sourceMappingURL=bar-chart.d.ts.map
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contract module for `BarChart` (§5.1, §5.4 — the plain-data pilot).
|
|
3
|
+
*
|
|
4
|
+
* SOURCE OF TRUTH: `BarChartProps` — the props type of the Svelte component
|
|
5
|
+
* `BarChart.svelte` in `@sentropic/design-system-svelte` (workspace package
|
|
6
|
+
* `packages/components-svelte`, file `src/lib/BarChart.svelte`). There it is
|
|
7
|
+
* declared inline in the instance script (`type BarChartProps = { ... }`) and
|
|
8
|
+
* not exported by name; the shared chart types it references
|
|
9
|
+
* (`BarChartDatum`, `ChartAnnotation`, `DataLabelsProp`) are exported from the
|
|
10
|
+
* package index. The interface below is its JSON form, re-declared here so
|
|
11
|
+
* this package generates from its own self-contained module (the `.svelte`
|
|
12
|
+
* file is not TypeScript-sourceable by ts-json-schema-generator, and the
|
|
13
|
+
* catalogue must not depend on another workspace's build output).
|
|
14
|
+
*
|
|
15
|
+
* Exclusions (§5.1, explicit): the three callbacks and the style hook. The
|
|
16
|
+
* narrowing: `dataLabels` drops its `format` function member. No prop needed
|
|
17
|
+
* a replacement type beyond that narrowing.
|
|
18
|
+
*/
|
|
19
|
+
/** The declared contract of `BarChart` (§5.1). */
|
|
20
|
+
export const barChartContract = {
|
|
21
|
+
component: "BarChart",
|
|
22
|
+
propsTypeName: "BarChartProps",
|
|
23
|
+
source: {
|
|
24
|
+
packageName: "@sentropic/design-system-svelte",
|
|
25
|
+
file: "packages/components-svelte/src/lib/BarChart.svelte",
|
|
26
|
+
typeName: "BarChartProps",
|
|
27
|
+
note: "Declared inline in the Svelte instance script (not exported by name); " +
|
|
28
|
+
"reduced here to its JSON subset, excluding the callbacks and the class hook.",
|
|
29
|
+
},
|
|
30
|
+
excluded: [
|
|
31
|
+
{
|
|
32
|
+
prop: "onSelect",
|
|
33
|
+
kind: "function",
|
|
34
|
+
reason: "Callback (§4.1 data only). Its select intent is re-emitted by the element as the §4.6 intent event.",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
prop: "onHoverKeyChange",
|
|
38
|
+
kind: "function",
|
|
39
|
+
reason: "Callback (§4.1 data only). Hover stays local; no intent is emitted for it (§4.6).",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
prop: "onSelectKey",
|
|
43
|
+
kind: "function",
|
|
44
|
+
reason: "Callback (§4.1 data only). Same select intent as onSelect, from the keyboard surface.",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
prop: "class",
|
|
48
|
+
kind: "style-hook",
|
|
49
|
+
reason: "Style hook (§4.1): the envelope never carries styling. React names the same hook className; " +
|
|
50
|
+
"the parity guard applies that alias when comparing React's props.",
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
replacedTypes: [],
|
|
54
|
+
narrowedUnions: [
|
|
55
|
+
{
|
|
56
|
+
prop: "dataLabels",
|
|
57
|
+
sourceForm: "DataLabelsProp = boolean | { format?: (value: number) => string; position?: DataLabelPosition }",
|
|
58
|
+
jsonForm: "DataLabelsJson = boolean | { position?: \"auto\" | \"inside\" | \"outside\" | \"top\" | \"center\" }",
|
|
59
|
+
dropped: ["format"],
|
|
60
|
+
reason: "The format member is a function (§4.1); the element formats values itself.",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
callbacks: [
|
|
64
|
+
{
|
|
65
|
+
callback: "onSelect",
|
|
66
|
+
signature: "(key: string) => void",
|
|
67
|
+
intent: "select",
|
|
68
|
+
targetFrom: "key (the bar's label)",
|
|
69
|
+
note: "Pointer/accessible chip selection; the element emits intent select with target = key.",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
callback: "onSelectKey",
|
|
73
|
+
signature: "(key: string | null) => void",
|
|
74
|
+
intent: "select",
|
|
75
|
+
targetFrom: "key (the bar's label)",
|
|
76
|
+
note: "Keyboard selection (Enter/Space on the roving-tabindex surface); null (Escape) emits no event.",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
callback: "onHoverKeyChange",
|
|
80
|
+
signature: "(key: string | null) => void",
|
|
81
|
+
intent: null,
|
|
82
|
+
note: "Hover is transient and stays local (§4.6); no intent is emitted.",
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
frameworks: [
|
|
86
|
+
{
|
|
87
|
+
framework: "svelte",
|
|
88
|
+
file: "packages/components-svelte/src/lib/BarChart.svelte",
|
|
89
|
+
typeName: "BarChartProps",
|
|
90
|
+
role: "source-of-truth",
|
|
91
|
+
note: "Reference pilot (§3.1); not mechanically generatable (Svelte file), mirrored here member for member.",
|
|
92
|
+
},
|
|
93
|
+
{ framework: "react", file: "packages/components-react/src/BarChart.tsx", typeName: "BarChartProps", role: "compared" },
|
|
94
|
+
{ framework: "vue", file: "packages/components-vue/src/BarChart.ts", typeName: "BarChartProps", role: "compared" },
|
|
95
|
+
{ framework: "angular", file: "packages/components-angular/src/BarChart.ts", typeName: "BarChartProps", role: "compared" },
|
|
96
|
+
],
|
|
97
|
+
metadata: {
|
|
98
|
+
contract: "1.0",
|
|
99
|
+
element: "st-bar-chart",
|
|
100
|
+
engine: "core",
|
|
101
|
+
events: ["select"],
|
|
102
|
+
fallback: "svg",
|
|
103
|
+
},
|
|
104
|
+
example: {
|
|
105
|
+
id: "root",
|
|
106
|
+
component: "BarChart",
|
|
107
|
+
data: [
|
|
108
|
+
{ label: "Q1", value: 12 },
|
|
109
|
+
{ label: "Q2", value: 18 },
|
|
110
|
+
{ label: "Q3", value: 9 },
|
|
111
|
+
],
|
|
112
|
+
label: "Revenue (M€)",
|
|
113
|
+
referenceLines: [{ value: 15, label: "Target" }],
|
|
114
|
+
dataLabels: true,
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
//# sourceMappingURL=bar-chart.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contract module for `BpmnCanvas` (§5.1, §5.4 — the third-party-engine pilot).
|
|
3
|
+
*
|
|
4
|
+
* SOURCE OF TRUTH: the F1 document consumed by `@sentropic/bpmn-canvas`
|
|
5
|
+
* (§3.3, §6.7, §11.1 — `<st-bpmn-canvas>` wraps it at an exact version). No
|
|
6
|
+
* BPMN engine is installed in this workspace and the F1 input's full schema
|
|
7
|
+
* lives on an unpushed workbench branch, so per §5.1 the `document` prop is a
|
|
8
|
+
* STRUCTURAL ENVELOPE: `$type` is required, every other key is kept as an
|
|
9
|
+
* unknown F1 extension field, and the real validation is the engine's
|
|
10
|
+
* `hydrate` (§4.3 item 2), wired in L6 through the injected `bpmn-canvas`
|
|
11
|
+
* semantic port. The facts that could not be sourced locally: F1's exact
|
|
12
|
+
* document schema, the hydrate signature and its error-code list.
|
|
13
|
+
*
|
|
14
|
+
* The keep-unknown-extensions form is the declared replacement type for this
|
|
15
|
+
* prop (never an implicit `any`): the index signature is `unknown`, recorded
|
|
16
|
+
* in `replacedTypes`, and the emitted `additionalProperties: {}` is listed in
|
|
17
|
+
* the replacement inventory the no-implicit-any scan checks.
|
|
18
|
+
*/
|
|
19
|
+
import type { ContractModule } from "./types.js";
|
|
20
|
+
/**
|
|
21
|
+
* F1 structural envelope (§5.1): `$type` required, extension fields kept.
|
|
22
|
+
* The index signature is `unknown` (not `any`) and emits exactly
|
|
23
|
+
* `additionalProperties: {}`; its validation belongs to the engine's
|
|
24
|
+
* hydrate, so it carries no JSDoc of its own (the emitted schema node must
|
|
25
|
+
* stay the plain declared replacement).
|
|
26
|
+
*/
|
|
27
|
+
export interface BpmnCanvasDocument {
|
|
28
|
+
/** F1 type discriminator, e.g. "bpmn:Definitions". */
|
|
29
|
+
$type: string;
|
|
30
|
+
[key: string]: unknown;
|
|
31
|
+
}
|
|
32
|
+
/** The JSON subset of the BpmnCanvas props: the F1 document alone. */
|
|
33
|
+
export interface BpmnCanvasProps {
|
|
34
|
+
/** The F1 document to render: a structural envelope the engine's hydrate validates. */
|
|
35
|
+
"document": BpmnCanvasDocument;
|
|
36
|
+
}
|
|
37
|
+
/** The declared contract of `BpmnCanvas` (§5.1). */
|
|
38
|
+
export declare const bpmnCanvasContract: ContractModule;
|
|
39
|
+
//# sourceMappingURL=bpmn-canvas.d.ts.map
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contract module for `BpmnCanvas` (§5.1, §5.4 — the third-party-engine pilot).
|
|
3
|
+
*
|
|
4
|
+
* SOURCE OF TRUTH: the F1 document consumed by `@sentropic/bpmn-canvas`
|
|
5
|
+
* (§3.3, §6.7, §11.1 — `<st-bpmn-canvas>` wraps it at an exact version). No
|
|
6
|
+
* BPMN engine is installed in this workspace and the F1 input's full schema
|
|
7
|
+
* lives on an unpushed workbench branch, so per §5.1 the `document` prop is a
|
|
8
|
+
* STRUCTURAL ENVELOPE: `$type` is required, every other key is kept as an
|
|
9
|
+
* unknown F1 extension field, and the real validation is the engine's
|
|
10
|
+
* `hydrate` (§4.3 item 2), wired in L6 through the injected `bpmn-canvas`
|
|
11
|
+
* semantic port. The facts that could not be sourced locally: F1's exact
|
|
12
|
+
* document schema, the hydrate signature and its error-code list.
|
|
13
|
+
*
|
|
14
|
+
* The keep-unknown-extensions form is the declared replacement type for this
|
|
15
|
+
* prop (never an implicit `any`): the index signature is `unknown`, recorded
|
|
16
|
+
* in `replacedTypes`, and the emitted `additionalProperties: {}` is listed in
|
|
17
|
+
* the replacement inventory the no-implicit-any scan checks.
|
|
18
|
+
*/
|
|
19
|
+
/** The declared contract of `BpmnCanvas` (§5.1). */
|
|
20
|
+
export const bpmnCanvasContract = {
|
|
21
|
+
component: "BpmnCanvas",
|
|
22
|
+
propsTypeName: "BpmnCanvasProps",
|
|
23
|
+
source: {
|
|
24
|
+
packageName: "@sentropic/bpmn-canvas",
|
|
25
|
+
file: "packages/elements/src/contracts/bpmn-canvas.ts",
|
|
26
|
+
typeName: "BpmnCanvasProps",
|
|
27
|
+
note: "F1 input contract of the BPMN engine `@sentropic/bpmn-canvas` (§3.3, §11.1); " +
|
|
28
|
+
"the package is not installed in this workspace and its F1 schema is not published " +
|
|
29
|
+
"(unpushed workbench branch), so the props type is declared locally in this module " +
|
|
30
|
+
"and the document prop is a structural envelope whose real validation is the " +
|
|
31
|
+
"engine's hydrate (§4.3 item 2, §5.1).",
|
|
32
|
+
},
|
|
33
|
+
excluded: [],
|
|
34
|
+
replacedTypes: [
|
|
35
|
+
{
|
|
36
|
+
prop: "document",
|
|
37
|
+
sourceType: "F1 document (BPMN engine input, schema not published in this workspace)",
|
|
38
|
+
replacement: "BpmnCanvasDocument structural envelope: $type required, other keys kept as unknown F1 " +
|
|
39
|
+
"extension fields (emitted as additionalProperties: {})",
|
|
40
|
+
reason: "§5.1: F1 is catalogued as a structural envelope whose real validation is the " +
|
|
41
|
+
"engine's hydrate; the keep-unknown form is deliberate, listed in the " +
|
|
42
|
+
"replacement inventory the no-implicit-any scan checks.",
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
narrowedUnions: [],
|
|
46
|
+
callbacks: [],
|
|
47
|
+
frameworks: [
|
|
48
|
+
{ framework: "svelte", file: "packages/components-svelte", typeName: "", role: "no-counterpart" },
|
|
49
|
+
{ framework: "react", file: "packages/components-react", typeName: "", role: "no-counterpart" },
|
|
50
|
+
{ framework: "vue", file: "packages/components-vue", typeName: "", role: "no-counterpart" },
|
|
51
|
+
{ framework: "angular", file: "packages/components-angular", typeName: "", role: "no-counterpart" },
|
|
52
|
+
],
|
|
53
|
+
metadata: {
|
|
54
|
+
contract: "1.0",
|
|
55
|
+
element: "st-bpmn-canvas",
|
|
56
|
+
engine: "lazy:bpmn-canvas",
|
|
57
|
+
events: [],
|
|
58
|
+
fallback: "svg",
|
|
59
|
+
},
|
|
60
|
+
example: {
|
|
61
|
+
id: "root",
|
|
62
|
+
component: "BpmnCanvas",
|
|
63
|
+
"document": {
|
|
64
|
+
$type: "bpmn:Definitions",
|
|
65
|
+
id: "definitions-1",
|
|
66
|
+
targetNamespace: "https://example.com/bpmn",
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
semantic: {
|
|
70
|
+
source: "bpmn-canvas",
|
|
71
|
+
runtimePackage: "@sentropic/bpmn-canvas",
|
|
72
|
+
reason: "The engine's hydrate is the authoritative validator of the F1 document (§4.3 " +
|
|
73
|
+
"item 2). No engine is installed here, so the port is injected (L6) and the " +
|
|
74
|
+
"workspace-side tests use a typed stub.",
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=bpmn-canvas.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contract module for `DecisionDossier` (§5.1, §5.4 — the composition pilot).
|
|
3
|
+
*
|
|
4
|
+
* SOURCE OF TRUTH: the `DecisionDossierDocument` of `@sentropic/focus`
|
|
5
|
+
* (owner decision 2026-10-30 on 0.5.0-rc.9, pinned at 0.5.0 once it reached `latest`:
|
|
6
|
+
* same files as rc.9 except package.json, same v1 schema sha256). The pin
|
|
7
|
+
* below records WHY v1: the package's `./validate` export validates legacy v1
|
|
8
|
+
* by default when `schemaVersion` is absent (its d.ts names the v1 asset as
|
|
9
|
+
* the published schema it matches, `DOSSIER_SCHEMA_VERSION = "1.0.0"`), while
|
|
10
|
+
* v2 requires an explicit `schemaVersion: 2` with a breaking evidence
|
|
11
|
+
* envelope. The catalogue therefore embeds the v1 schema
|
|
12
|
+
* (`@sentropic/focus/schemas/decision-dossier-document.v1.schema.json`,
|
|
13
|
+
* `$id` `urn:sentropic:focus:DecisionDossierDocument:1.0.0`) and routes
|
|
14
|
+
* semantics to `@sentropic/focus/validate` (§4.3 item 2, source "focus").
|
|
15
|
+
* The embedded copy is scoped to its host document — its internal
|
|
16
|
+
* `#/$defs/X` refs are rewritten to `#/$defs/DecisionDossierDocument/$defs/X`
|
|
17
|
+
* and its root `$id` dropped (the A2UI SDK's zod converter resolves `#/` refs
|
|
18
|
+
* against the host root); the urn identity stays in
|
|
19
|
+
* `x-sentropic.semantic.schemaId`.
|
|
20
|
+
*
|
|
21
|
+
* The generator fails if the installed schema file's sha256 no longer matches
|
|
22
|
+
* the pin. The `document` prop below is a MARKER type the emitter replaces
|
|
23
|
+
* with a `$ref` to the embedded schema — the declared replacement type for
|
|
24
|
+
* this prop, never an implicit `any`.
|
|
25
|
+
*/
|
|
26
|
+
import type { ContractModule } from "./types.js";
|
|
27
|
+
/**
|
|
28
|
+
* Marker replaced at emission by
|
|
29
|
+
* `{"$ref": "#/$defs/DecisionDossierDocument"}` — the embedded, pinned focus
|
|
30
|
+
* v1 schema (see the module header for why v1). Declared so the props
|
|
31
|
+
* interface stays valid TypeScript while the schema comes from the owner.
|
|
32
|
+
*/
|
|
33
|
+
export interface DecisionDossierDocumentRef {
|
|
34
|
+
readonly "$sentropic.embedded": "DecisionDossierDocument";
|
|
35
|
+
}
|
|
36
|
+
/** The JSON subset of the DecisionDossier props: the pinned document alone. */
|
|
37
|
+
export interface DecisionDossierProps {
|
|
38
|
+
/** The pinned DecisionDossierDocument, semantically validated by the focus runtime through the injected focus port. */
|
|
39
|
+
"document": DecisionDossierDocumentRef;
|
|
40
|
+
}
|
|
41
|
+
/** The declared contract of `DecisionDossier` (§5.1, §11.2). */
|
|
42
|
+
export declare const decisionDossierContract: ContractModule;
|
|
43
|
+
//# sourceMappingURL=decision-dossier.d.ts.map
|