@sentropic/design-system-elements 0.1.0 → 0.3.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.
- package/LICENSE.THIRD-PARTY.md +44 -1
- package/README.md +123 -12
- package/catalog.json +401 -7
- package/dist/browser/chunks/{Modeler-BfAmwsmK.js → Modeler-D87tL_OJ.js} +4 -4
- package/dist/browser/chunks/Viewer-D9zjRrp2.js +4 -0
- package/dist/browser/chunks/bpmn-canvas-BevbP_6a.js +1 -0
- package/dist/browser/chunks/bpmn-mount-BhO_zb0S.js +2202 -0
- package/dist/browser/chunks/dist-DRauAwm2.js +6 -0
- package/dist/browser/chunks/{entropic-CM5BHERN.js → entropic-MwNVEq6w.js} +639 -0
- package/dist/browser/chunks/focus-renderer-BWm7DlQD.js +55 -0
- package/dist/browser/chunks/{forge-B8hrW4lA.js → forge-CzwO8Hbe.js} +639 -0
- package/dist/browser/chunks/layout-T3X333Za.js +1 -0
- package/dist/browser/elements.js +671 -6
- package/dist/browser/sri.json +52 -45
- package/dist/contracts/bar-chart.js +2 -2
- package/dist/contracts/decision-dossier.d.ts +4 -8
- package/dist/contracts/decision-dossier.js +8 -12
- package/dist/contracts/index.d.ts +1 -0
- package/dist/contracts/index.js +2 -0
- package/dist/contracts/time-series-chart.d.ts +49 -0
- package/dist/contracts/time-series-chart.js +37 -0
- package/dist/dossier/dossier-mount.js +845 -0
- package/dist/dossier/renderer/dossier.css +2 -0
- package/dist/element/bpmn-mount.d.ts +11 -0
- package/dist/element/bpmn-mount.js +56 -0
- package/dist/element/bpmn-types.d.ts +27 -0
- package/dist/element/bpmn-types.js +12 -0
- package/dist/element/bpmn.d.ts +10 -0
- package/dist/element/bpmn.js +39 -0
- package/dist/element/dom/dossier-mount.d.ts +25 -0
- package/dist/element/dom/dossier-review-mount.d.ts +25 -0
- package/dist/element/dom/dossier-review-state.svelte.d.ts +13 -0
- package/dist/element/dom/engines/bpmn-canvas.d.ts +11 -0
- package/dist/element/dom/engines/bpmn-canvas.js +11 -0
- package/dist/element/dom/engines/dossier-diagrams.d.ts +5 -0
- package/dist/element/dom/engines/dossier-evidence.d.ts +9 -0
- package/dist/element/dom/engines/dossier-styles.d.ts +21 -0
- package/dist/element/dom/engines/focus-renderer.d.ts +60 -0
- package/dist/element/dom/engines/focus-snapshot.d.ts +3 -0
- package/dist/element/dom/intents.d.ts +20 -0
- package/dist/element/markdown/minimal-markdown.d.ts +1 -2
- package/dist/element/markdown/minimal-markdown.js +19 -1
- package/dist/element/validator.d.ts +26 -0
- package/dist/element/validator.js +54 -0
- package/dist/focus-diagrams/diagram-layout.d.ts +140 -0
- package/dist/focus-diagrams/diagram-layout.js +190 -0
- package/dist/focus-diagrams/diagram-source.d.ts +11 -0
- package/dist/focus-diagrams/diagram-source.js +147 -0
- package/dist/focus-diagrams/dossier-views.d.ts +21 -0
- package/dist/focus-diagrams/dossier-views.js +57 -0
- package/dist/focus-diagrams/ecosystem.json +853 -0
- package/dist/focus-kit/index.html +13 -0
- package/dist/focus-kit/renderer/dossier.css +2 -0
- package/dist/focus-kit/renderer/dossier.js +845 -0
- package/dist/focus-kit-manifest.json +1 -0
- package/dist/focus-kit.d.ts +9 -0
- package/dist/focus-kit.js +30 -0
- package/dist/format-time-series-markdown.d.ts +5 -0
- package/dist/format-time-series-markdown.js +24 -0
- package/dist/generator/parity.js +6 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/ports/dossier-views.d.ts +3 -0
- package/dist/ports/dossier-views.js +3 -0
- package/dist/ports/focus.d.ts +0 -1
- package/dist/ports/types.d.ts +0 -1
- package/dist/shells/BarChart.html +8494 -0
- package/dist/shells/BarChart.js +8482 -0
- package/dist/shells/DecisionDossier.html +8502 -0
- package/dist/shells/DecisionDossier.js +8490 -0
- package/dist/shells/TimeSeriesChart.html +8475 -0
- package/dist/shells/TimeSeriesChart.js +8463 -0
- package/dist/shells/manifest.json +108 -0
- package/dist/structure/interpreter.d.ts +1 -1
- package/dist/structure/interpreter.js +14 -4
- package/dist/time-series.d.ts +13 -0
- package/dist/time-series.js +15 -0
- package/dist/validate/envelope.js +5 -1
- package/dist/validate/time-series.d.ts +5 -0
- package/dist/validate/time-series.js +28 -0
- package/fixtures/time-series-multi.json +46 -0
- package/fixtures/time-series-single.json +28 -0
- package/fixtures/time-series-thresholds.json +52 -0
- package/package.json +40 -6
- package/schemas/BarChart.v1.json +2 -2
- package/schemas/DecisionDossier.v1.json +155 -5
- package/schemas/TimeSeriesChart.v1.json +287 -0
- package/skill/SKILL.md +27 -0
- package/dist/browser/chunks/Viewer-eYLzc3fD.js +0 -4
- package/dist/browser/chunks/bpmn-canvas-DeAWdJFy.js +0 -2207
- package/dist/browser/chunks/dist-O6_2ByYB.js +0 -1
- package/dist/browser/chunks/focus-renderer-BgsZGo7n.js +0 -8
- package/dist/browser/chunks/layout-q0TR9-aY.js +0 -1
|
@@ -79,8 +79,109 @@
|
|
|
79
79
|
},
|
|
80
80
|
"diagramNode": {
|
|
81
81
|
"additionalProperties": false,
|
|
82
|
+
"allOf": [
|
|
83
|
+
{
|
|
84
|
+
"oneOf": [
|
|
85
|
+
{
|
|
86
|
+
"required": [
|
|
87
|
+
"source"
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"required": [
|
|
92
|
+
"sourceRef"
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"not": {
|
|
99
|
+
"allOf": [
|
|
100
|
+
{
|
|
101
|
+
"required": [
|
|
102
|
+
"source"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"not": {
|
|
107
|
+
"required": [
|
|
108
|
+
"syntax"
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"not": {
|
|
117
|
+
"allOf": [
|
|
118
|
+
{
|
|
119
|
+
"required": [
|
|
120
|
+
"source"
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"required": [
|
|
125
|
+
"renderComponent"
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"not": {
|
|
133
|
+
"allOf": [
|
|
134
|
+
{
|
|
135
|
+
"required": [
|
|
136
|
+
"sourceRef"
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"not": {
|
|
141
|
+
"required": [
|
|
142
|
+
"renderComponent"
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"not": {
|
|
151
|
+
"allOf": [
|
|
152
|
+
{
|
|
153
|
+
"required": [
|
|
154
|
+
"sourceRef"
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"required": [
|
|
159
|
+
"syntax"
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"not": {
|
|
167
|
+
"allOf": [
|
|
168
|
+
{
|
|
169
|
+
"required": [
|
|
170
|
+
"sourceRef"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"required": [
|
|
175
|
+
"scene"
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
],
|
|
82
182
|
"properties": {
|
|
83
183
|
"alt": {
|
|
184
|
+
"pattern": "^[\\s\\S]*\\S[\\s\\S]*$",
|
|
84
185
|
"type": "string"
|
|
85
186
|
},
|
|
86
187
|
"id": {
|
|
@@ -89,11 +190,20 @@
|
|
|
89
190
|
"kind": {
|
|
90
191
|
"const": "diagram"
|
|
91
192
|
},
|
|
193
|
+
"renderComponent": {
|
|
194
|
+
"pattern": "^[A-Za-z][A-Za-z0-9-]*$",
|
|
195
|
+
"type": "string"
|
|
196
|
+
},
|
|
92
197
|
"scene": {
|
|
93
198
|
"description": "diagram-core SemanticDocument, profile generic@1, without views, geometry or layout hints. Opaque JSON until the design-system publishes its authoritative schema; no Focus-specific scene model.",
|
|
94
199
|
"type": "object"
|
|
95
200
|
},
|
|
96
201
|
"source": {
|
|
202
|
+
"pattern": "^[\\s\\S]*\\S[\\s\\S]*$",
|
|
203
|
+
"type": "string"
|
|
204
|
+
},
|
|
205
|
+
"sourceRef": {
|
|
206
|
+
"pattern": "^[A-Za-z][A-Za-z0-9+.-]*:\\S+$",
|
|
97
207
|
"type": "string"
|
|
98
208
|
},
|
|
99
209
|
"syntax": {
|
|
@@ -110,8 +220,6 @@
|
|
|
110
220
|
"alt",
|
|
111
221
|
"id",
|
|
112
222
|
"kind",
|
|
113
|
-
"source",
|
|
114
|
-
"syntax",
|
|
115
223
|
"targetRef"
|
|
116
224
|
],
|
|
117
225
|
"type": "object"
|
|
@@ -270,9 +378,19 @@
|
|
|
270
378
|
"proseNode": {
|
|
271
379
|
"additionalProperties": false,
|
|
272
380
|
"properties": {
|
|
381
|
+
"completionCriterion": {
|
|
382
|
+
"pattern": "^[\\s\\S]*\\S[\\s\\S]*$",
|
|
383
|
+
"type": "string"
|
|
384
|
+
},
|
|
273
385
|
"id": {
|
|
274
386
|
"type": "string"
|
|
275
387
|
},
|
|
388
|
+
"inputs": {
|
|
389
|
+
"items": {
|
|
390
|
+
"$ref": "#/$defs/DecisionDossierDocument/$defs/sectionInput"
|
|
391
|
+
},
|
|
392
|
+
"type": "array"
|
|
393
|
+
},
|
|
276
394
|
"kind": {
|
|
277
395
|
"const": "prose"
|
|
278
396
|
},
|
|
@@ -319,12 +437,22 @@
|
|
|
319
437
|
"answer": {
|
|
320
438
|
"type": "string"
|
|
321
439
|
},
|
|
440
|
+
"completionCriterion": {
|
|
441
|
+
"pattern": "^[\\s\\S]*\\S[\\s\\S]*$",
|
|
442
|
+
"type": "string"
|
|
443
|
+
},
|
|
322
444
|
"context": {
|
|
323
445
|
"type": "string"
|
|
324
446
|
},
|
|
325
447
|
"id": {
|
|
326
448
|
"type": "string"
|
|
327
449
|
},
|
|
450
|
+
"inputs": {
|
|
451
|
+
"items": {
|
|
452
|
+
"$ref": "#/$defs/DecisionDossierDocument/$defs/sectionInput"
|
|
453
|
+
},
|
|
454
|
+
"type": "array"
|
|
455
|
+
},
|
|
328
456
|
"kind": {
|
|
329
457
|
"const": "question"
|
|
330
458
|
},
|
|
@@ -412,6 +540,28 @@
|
|
|
412
540
|
"$ref": "#/$defs/DecisionDossierDocument/$defs/diagramNode"
|
|
413
541
|
}
|
|
414
542
|
]
|
|
543
|
+
},
|
|
544
|
+
"sectionInput": {
|
|
545
|
+
"additionalProperties": false,
|
|
546
|
+
"properties": {
|
|
547
|
+
"kind": {
|
|
548
|
+
"pattern": "^[\\s\\S]*\\S[\\s\\S]*$",
|
|
549
|
+
"type": "string"
|
|
550
|
+
},
|
|
551
|
+
"label": {
|
|
552
|
+
"pattern": "^[\\s\\S]*\\S[\\s\\S]*$",
|
|
553
|
+
"type": "string"
|
|
554
|
+
},
|
|
555
|
+
"ref": {
|
|
556
|
+
"pattern": "^[\\s\\S]*\\S[\\s\\S]*$",
|
|
557
|
+
"type": "string"
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
"required": [
|
|
561
|
+
"kind",
|
|
562
|
+
"ref"
|
|
563
|
+
],
|
|
564
|
+
"type": "object"
|
|
415
565
|
}
|
|
416
566
|
},
|
|
417
567
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -590,10 +740,10 @@
|
|
|
590
740
|
},
|
|
591
741
|
"schema": "https://design-system.sent-tech.ca/catalogs/elements/v1/components/DecisionDossier.json",
|
|
592
742
|
"semantic": {
|
|
593
|
-
"runtimePackage": "@sentropic/focus@0.
|
|
594
|
-
"schemaId": "urn:sentropic:focus:DecisionDossierDocument:1.
|
|
743
|
+
"runtimePackage": "@sentropic/focus@0.6.0",
|
|
744
|
+
"schemaId": "urn:sentropic:focus:DecisionDossierDocument:1.1.0",
|
|
595
745
|
"schemaSubpath": "schemas/decision-dossier-document.v1.schema.json",
|
|
596
|
-
"sha256": "
|
|
746
|
+
"sha256": "f4b5247f025e99081c20fd9a8b0ed98b32a061c4a98597010be0264e5e564c6c",
|
|
597
747
|
"source": "focus"
|
|
598
748
|
}
|
|
599
749
|
}
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$defs": {
|
|
3
|
+
"CatalogComponentCommon": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"weight": {
|
|
6
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column.",
|
|
7
|
+
"type": "number"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"type": "object"
|
|
11
|
+
},
|
|
12
|
+
"component": {
|
|
13
|
+
"allOf": [
|
|
14
|
+
{
|
|
15
|
+
"$ref": "https://a2ui.org/specification/v0_9_1/common_types.json#/$defs/ComponentCommon"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"$ref": "#/$defs/CatalogComponentCommon"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"properties": {
|
|
22
|
+
"accessibility": {
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"properties": {
|
|
25
|
+
"description": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"label": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"type": "object"
|
|
33
|
+
},
|
|
34
|
+
"bands": {
|
|
35
|
+
"description": "Bands in value-axis units, applied to each series.",
|
|
36
|
+
"items": {
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"description": "A shaded band between two value-axis positions.",
|
|
39
|
+
"properties": {
|
|
40
|
+
"from": {
|
|
41
|
+
"description": "Band start in value-axis units.",
|
|
42
|
+
"type": "number"
|
|
43
|
+
},
|
|
44
|
+
"label": {
|
|
45
|
+
"description": "Human-readable band label.",
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"to": {
|
|
49
|
+
"description": "Band end in value-axis units.",
|
|
50
|
+
"type": "number"
|
|
51
|
+
},
|
|
52
|
+
"tone": {
|
|
53
|
+
"description": "Feedback-token tone for the band.",
|
|
54
|
+
"enum": [
|
|
55
|
+
"error",
|
|
56
|
+
"info",
|
|
57
|
+
"neutral",
|
|
58
|
+
"success",
|
|
59
|
+
"warning"
|
|
60
|
+
],
|
|
61
|
+
"type": "string"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": [
|
|
65
|
+
"from",
|
|
66
|
+
"to"
|
|
67
|
+
],
|
|
68
|
+
"type": "object"
|
|
69
|
+
},
|
|
70
|
+
"type": "array"
|
|
71
|
+
},
|
|
72
|
+
"component": {
|
|
73
|
+
"const": "TimeSeriesChart"
|
|
74
|
+
},
|
|
75
|
+
"goalLine": {
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"description": "Goal in value-axis units, applied to each series.",
|
|
78
|
+
"properties": {
|
|
79
|
+
"label": {
|
|
80
|
+
"description": "Human-readable goal label.",
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
"value": {
|
|
84
|
+
"description": "Position of the goal line in value-axis units.",
|
|
85
|
+
"type": "number"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"required": [
|
|
89
|
+
"value"
|
|
90
|
+
],
|
|
91
|
+
"type": "object"
|
|
92
|
+
},
|
|
93
|
+
"label": {
|
|
94
|
+
"description": "Human-readable chart name.",
|
|
95
|
+
"minLength": 1,
|
|
96
|
+
"type": "string"
|
|
97
|
+
},
|
|
98
|
+
"referenceLines": {
|
|
99
|
+
"description": "Reference lines. An x-axis value is in whole UTC epoch milliseconds.",
|
|
100
|
+
"items": {
|
|
101
|
+
"additionalProperties": false,
|
|
102
|
+
"description": "A reference line on one axis (default axis: \"y\").",
|
|
103
|
+
"properties": {
|
|
104
|
+
"axis": {
|
|
105
|
+
"description": "Which axis the line spans; \"y\" by default.",
|
|
106
|
+
"enum": [
|
|
107
|
+
"x",
|
|
108
|
+
"y"
|
|
109
|
+
],
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
"label": {
|
|
113
|
+
"description": "Human-readable line label.",
|
|
114
|
+
"type": "string"
|
|
115
|
+
},
|
|
116
|
+
"tone": {
|
|
117
|
+
"description": "Feedback-token tone for the line.",
|
|
118
|
+
"enum": [
|
|
119
|
+
"error",
|
|
120
|
+
"info",
|
|
121
|
+
"neutral",
|
|
122
|
+
"success",
|
|
123
|
+
"warning"
|
|
124
|
+
],
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
"value": {
|
|
128
|
+
"description": "Position of the line in value-axis units.",
|
|
129
|
+
"type": "number"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"required": [
|
|
133
|
+
"value"
|
|
134
|
+
],
|
|
135
|
+
"type": "object"
|
|
136
|
+
},
|
|
137
|
+
"type": "array"
|
|
138
|
+
},
|
|
139
|
+
"series": {
|
|
140
|
+
"description": "Series in display order.",
|
|
141
|
+
"items": {
|
|
142
|
+
"additionalProperties": false,
|
|
143
|
+
"properties": {
|
|
144
|
+
"data": {
|
|
145
|
+
"description": "Observations in strictly increasing timestamp order.",
|
|
146
|
+
"items": {
|
|
147
|
+
"additionalProperties": false,
|
|
148
|
+
"properties": {
|
|
149
|
+
"x": {
|
|
150
|
+
"description": "Whole UTC Unix epoch milliseconds, in the ISO instant range.",
|
|
151
|
+
"maximum": 8640000000000000,
|
|
152
|
+
"minimum": -8640000000000000,
|
|
153
|
+
"type": "integer"
|
|
154
|
+
},
|
|
155
|
+
"y": {
|
|
156
|
+
"description": "Finite measured value.",
|
|
157
|
+
"type": "number"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"required": [
|
|
161
|
+
"x",
|
|
162
|
+
"y"
|
|
163
|
+
],
|
|
164
|
+
"type": "object"
|
|
165
|
+
},
|
|
166
|
+
"type": "array"
|
|
167
|
+
},
|
|
168
|
+
"id": {
|
|
169
|
+
"description": "Stable identifier, unique within the chart.",
|
|
170
|
+
"minLength": 1,
|
|
171
|
+
"type": "string"
|
|
172
|
+
},
|
|
173
|
+
"label": {
|
|
174
|
+
"description": "Human-readable series name.",
|
|
175
|
+
"minLength": 1,
|
|
176
|
+
"type": "string"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"required": [
|
|
180
|
+
"data",
|
|
181
|
+
"id",
|
|
182
|
+
"label"
|
|
183
|
+
],
|
|
184
|
+
"type": "object"
|
|
185
|
+
},
|
|
186
|
+
"minItems": 1,
|
|
187
|
+
"type": "array"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"required": [
|
|
191
|
+
"component",
|
|
192
|
+
"label",
|
|
193
|
+
"series"
|
|
194
|
+
],
|
|
195
|
+
"type": "object"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"type": "object",
|
|
199
|
+
"unevaluatedProperties": false,
|
|
200
|
+
"x-sentropic": {
|
|
201
|
+
"contract": "1.0",
|
|
202
|
+
"element": "st-time-series-chart",
|
|
203
|
+
"engine": "core",
|
|
204
|
+
"events": [],
|
|
205
|
+
"example": {
|
|
206
|
+
"component": "TimeSeriesChart",
|
|
207
|
+
"id": "root",
|
|
208
|
+
"label": "Queue depth",
|
|
209
|
+
"series": [
|
|
210
|
+
{
|
|
211
|
+
"data": [
|
|
212
|
+
{
|
|
213
|
+
"x": 1767225600123,
|
|
214
|
+
"y": 4
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"x": 1767225601123,
|
|
218
|
+
"y": 7
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"id": "jobs",
|
|
222
|
+
"label": "Jobs"
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
"fallback": "text",
|
|
227
|
+
"parity": {
|
|
228
|
+
"angular": {
|
|
229
|
+
"file": "packages/elements/src/element/dom/time-series-chart.svelte",
|
|
230
|
+
"note": "No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).",
|
|
231
|
+
"status": "no-counterpart"
|
|
232
|
+
},
|
|
233
|
+
"react": {
|
|
234
|
+
"file": "packages/elements/src/element/dom/time-series-chart.svelte",
|
|
235
|
+
"note": "No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).",
|
|
236
|
+
"status": "no-counterpart"
|
|
237
|
+
},
|
|
238
|
+
"svelte": {
|
|
239
|
+
"file": "packages/elements/src/element/dom/time-series-chart.svelte",
|
|
240
|
+
"note": "Reference pilot (§3.1); the catalogue is derived from it.",
|
|
241
|
+
"status": "source-of-truth",
|
|
242
|
+
"type": "TimeSeriesChartProps"
|
|
243
|
+
},
|
|
244
|
+
"vue": {
|
|
245
|
+
"file": "packages/elements/src/element/dom/time-series-chart.svelte",
|
|
246
|
+
"note": "No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).",
|
|
247
|
+
"status": "no-counterpart"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"schema": "https://design-system.sent-tech.ca/catalogs/elements/v1/components/TimeSeriesChart.json"
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"$id": "https://design-system.sent-tech.ca/catalogs/elements/v1/components/TimeSeriesChart.json",
|
|
255
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
256
|
+
"description": "The envelope schema specialised to one component (§5.2): the §4.2 render envelope (optional catalogId, contract, optional mode, root) whose root is the TimeSeriesChart component object; its component part ($defs.component) is equivalent, after canonical sorting, to catalog.json#/components/TimeSeriesChart. Requires the A2UI common types under https://a2ui.org/specification/v0_9_1/common_types.json.",
|
|
257
|
+
"properties": {
|
|
258
|
+
"catalogId": {
|
|
259
|
+
"const": "https://design-system.sent-tech.ca/catalogs/elements/v1/catalog.json",
|
|
260
|
+
"description": "Optional catalogue identifier; absent = the renderer's catalogue (§4.2).",
|
|
261
|
+
"type": "string"
|
|
262
|
+
},
|
|
263
|
+
"contract": {
|
|
264
|
+
"description": "Component-contract version the producer targets (§4.2, §4.4).",
|
|
265
|
+
"pattern": "^[0-9]+\\.[0-9]+$",
|
|
266
|
+
"type": "string"
|
|
267
|
+
},
|
|
268
|
+
"mode": {
|
|
269
|
+
"description": "\"snapshot\" (default) | \"preview\" (reserved, §10.3).",
|
|
270
|
+
"enum": [
|
|
271
|
+
"preview",
|
|
272
|
+
"snapshot"
|
|
273
|
+
],
|
|
274
|
+
"type": "string"
|
|
275
|
+
},
|
|
276
|
+
"root": {
|
|
277
|
+
"$ref": "#/$defs/component"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"required": [
|
|
281
|
+
"contract",
|
|
282
|
+
"root"
|
|
283
|
+
],
|
|
284
|
+
"title": "TimeSeriesChart standalone envelope schema",
|
|
285
|
+
"type": "object",
|
|
286
|
+
"unevaluatedProperties": false
|
|
287
|
+
}
|
package/skill/SKILL.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sentropic-render
|
|
3
|
+
description: Choose a Sentropic catalogue chart and render numeric MCP results over time or by category.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Render charts from MCP results
|
|
7
|
+
|
|
8
|
+
When an MCP result reports numeric measurements over time, select `TimeSeriesChart`.
|
|
9
|
+
For numeric measurements grouped by category, select `BarChart`.
|
|
10
|
+
|
|
11
|
+
Use `get_schema` for the selected component when the rendering service exposes it.
|
|
12
|
+
Call `render_TimeSeriesChart` or `render_BarChart` when the matching tool is
|
|
13
|
+
advertised. If the service exposes `render` and lists the component in its
|
|
14
|
+
catalogue, send a JSON envelope with that component in `root.component`.
|
|
15
|
+
|
|
16
|
+
For `TimeSeriesChart`, give each series a unique `id`, a `label`, and observations
|
|
17
|
+
with finite `y` values and strictly increasing `x` values in whole UTC Unix epoch
|
|
18
|
+
milliseconds. Convert timestamps whose timezone is known before sending the data.
|
|
19
|
+
Use the shared temporal domain for series measured at different instants.
|
|
20
|
+
|
|
21
|
+
Use the renderer's output for the chart. In a text host, present the bounded
|
|
22
|
+
Markdown table. For validated temporal props the package exports
|
|
23
|
+
`formatTimeSeriesMarkdown`, which enforces the 4096-byte limit.
|
|
24
|
+
|
|
25
|
+
[TimeSeriesChart schema](../schemas/TimeSeriesChart.v1.json) ·
|
|
26
|
+
[BarChart schema](../schemas/BarChart.v1.json) ·
|
|
27
|
+
[Multiple-series example](../fixtures/time-series-multi.json)
|