@sentropic/design-system-elements 0.2.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.
Files changed (93) hide show
  1. package/LICENSE.THIRD-PARTY.md +44 -1
  2. package/README.md +81 -13
  3. package/catalog.json +401 -7
  4. package/dist/browser/chunks/{Modeler-BfAmwsmK.js → Modeler-D87tL_OJ.js} +4 -4
  5. package/dist/browser/chunks/Viewer-D9zjRrp2.js +4 -0
  6. package/dist/browser/chunks/bpmn-canvas-BevbP_6a.js +1 -0
  7. package/dist/browser/chunks/bpmn-mount-BhO_zb0S.js +2202 -0
  8. package/dist/browser/chunks/dist-DRauAwm2.js +6 -0
  9. package/dist/browser/chunks/{entropic-CM5BHERN.js → entropic-MwNVEq6w.js} +639 -0
  10. package/dist/browser/chunks/focus-renderer-BWm7DlQD.js +55 -0
  11. package/dist/browser/chunks/{forge-B8hrW4lA.js → forge-CzwO8Hbe.js} +639 -0
  12. package/dist/browser/chunks/layout-T3X333Za.js +1 -0
  13. package/dist/browser/elements.js +671 -6
  14. package/dist/browser/sri.json +52 -45
  15. package/dist/contracts/bar-chart.js +2 -2
  16. package/dist/contracts/decision-dossier.d.ts +4 -8
  17. package/dist/contracts/decision-dossier.js +8 -12
  18. package/dist/contracts/index.d.ts +1 -0
  19. package/dist/contracts/index.js +2 -0
  20. package/dist/contracts/time-series-chart.d.ts +49 -0
  21. package/dist/contracts/time-series-chart.js +37 -0
  22. package/dist/dossier/dossier-mount.js +845 -0
  23. package/dist/dossier/renderer/dossier.css +2 -0
  24. package/dist/element/bpmn-mount.d.ts +11 -0
  25. package/dist/element/bpmn-mount.js +56 -0
  26. package/dist/element/bpmn-types.d.ts +27 -0
  27. package/dist/element/bpmn-types.js +12 -0
  28. package/dist/element/bpmn.d.ts +10 -0
  29. package/dist/element/bpmn.js +39 -0
  30. package/dist/element/dom/dossier-mount.d.ts +25 -0
  31. package/dist/element/dom/dossier-review-mount.d.ts +25 -0
  32. package/dist/element/dom/dossier-review-state.svelte.d.ts +13 -0
  33. package/dist/element/dom/engines/bpmn-canvas.d.ts +11 -0
  34. package/dist/element/dom/engines/bpmn-canvas.js +11 -0
  35. package/dist/element/dom/engines/dossier-diagrams.d.ts +5 -0
  36. package/dist/element/dom/engines/dossier-evidence.d.ts +9 -0
  37. package/dist/element/dom/engines/dossier-styles.d.ts +21 -0
  38. package/dist/element/dom/engines/focus-renderer.d.ts +60 -0
  39. package/dist/element/dom/engines/focus-snapshot.d.ts +3 -0
  40. package/dist/element/dom/intents.d.ts +20 -0
  41. package/dist/element/markdown/minimal-markdown.d.ts +1 -2
  42. package/dist/element/markdown/minimal-markdown.js +19 -1
  43. package/dist/element/validator.d.ts +26 -0
  44. package/dist/element/validator.js +54 -0
  45. package/dist/focus-diagrams/diagram-layout.d.ts +140 -0
  46. package/dist/focus-diagrams/diagram-layout.js +190 -0
  47. package/dist/focus-diagrams/diagram-source.d.ts +11 -0
  48. package/dist/focus-diagrams/diagram-source.js +147 -0
  49. package/dist/focus-diagrams/dossier-views.d.ts +21 -0
  50. package/dist/focus-diagrams/dossier-views.js +57 -0
  51. package/dist/focus-diagrams/ecosystem.json +853 -0
  52. package/dist/focus-kit/index.html +13 -0
  53. package/dist/focus-kit/renderer/dossier.css +2 -0
  54. package/dist/focus-kit/renderer/dossier.js +845 -0
  55. package/dist/focus-kit-manifest.json +1 -0
  56. package/dist/focus-kit.d.ts +9 -0
  57. package/dist/focus-kit.js +30 -0
  58. package/dist/format-time-series-markdown.d.ts +5 -0
  59. package/dist/format-time-series-markdown.js +24 -0
  60. package/dist/generator/parity.js +6 -1
  61. package/dist/index.d.ts +2 -0
  62. package/dist/index.js +1 -0
  63. package/dist/ports/dossier-views.d.ts +3 -0
  64. package/dist/ports/dossier-views.js +3 -0
  65. package/dist/ports/focus.d.ts +0 -1
  66. package/dist/ports/types.d.ts +0 -1
  67. package/dist/shells/BarChart.html +8494 -0
  68. package/dist/shells/BarChart.js +8482 -0
  69. package/dist/shells/DecisionDossier.html +8502 -0
  70. package/dist/shells/DecisionDossier.js +8490 -0
  71. package/dist/shells/TimeSeriesChart.html +8475 -0
  72. package/dist/shells/TimeSeriesChart.js +8463 -0
  73. package/dist/shells/manifest.json +108 -0
  74. package/dist/structure/interpreter.d.ts +1 -1
  75. package/dist/structure/interpreter.js +14 -4
  76. package/dist/time-series.d.ts +13 -0
  77. package/dist/time-series.js +15 -0
  78. package/dist/validate/envelope.js +5 -1
  79. package/dist/validate/time-series.d.ts +5 -0
  80. package/dist/validate/time-series.js +28 -0
  81. package/fixtures/time-series-multi.json +46 -0
  82. package/fixtures/time-series-single.json +28 -0
  83. package/fixtures/time-series-thresholds.json +52 -0
  84. package/package.json +40 -6
  85. package/schemas/BarChart.v1.json +2 -2
  86. package/schemas/DecisionDossier.v1.json +155 -5
  87. package/schemas/TimeSeriesChart.v1.json +287 -0
  88. package/skill/SKILL.md +27 -0
  89. package/dist/browser/chunks/Viewer-eYLzc3fD.js +0 -4
  90. package/dist/browser/chunks/bpmn-canvas-DeAWdJFy.js +0 -2207
  91. package/dist/browser/chunks/dist-O6_2ByYB.js +0 -1
  92. package/dist/browser/chunks/focus-renderer-0elVToA2.js +0 -10
  93. package/dist/browser/chunks/layout-q0TR9-aY.js +0 -1
package/catalog.json CHANGED
@@ -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",
@@ -482,6 +632,9 @@
482
632
  },
483
633
  {
484
634
  "$ref": "#/components/DecisionDossier"
635
+ },
636
+ {
637
+ "$ref": "#/components/TimeSeriesChart"
485
638
  }
486
639
  ]
487
640
  },
@@ -977,7 +1130,7 @@
977
1130
  }
978
1131
  ]
979
1132
  },
980
- "fallback": "svg",
1133
+ "fallback": "text",
981
1134
  "parity": {
982
1135
  "angular": {
983
1136
  "comparedProps": 17,
@@ -1000,7 +1153,7 @@
1000
1153
  },
1001
1154
  "vue": {
1002
1155
  "comparedProps": 17,
1003
- "file": "packages/components-vue/src/BarChart.ts",
1156
+ "file": "packages/components-vue/src/BarChart.vue",
1004
1157
  "status": "match",
1005
1158
  "type": "BarChartProps"
1006
1159
  }
@@ -1219,13 +1372,254 @@
1219
1372
  },
1220
1373
  "schema": "https://design-system.sent-tech.ca/catalogs/elements/v1/components/DecisionDossier.json",
1221
1374
  "semantic": {
1222
- "runtimePackage": "@sentropic/focus@0.5.0",
1223
- "schemaId": "urn:sentropic:focus:DecisionDossierDocument:1.0.0",
1375
+ "runtimePackage": "@sentropic/focus@0.6.0",
1376
+ "schemaId": "urn:sentropic:focus:DecisionDossierDocument:1.1.0",
1224
1377
  "schemaSubpath": "schemas/decision-dossier-document.v1.schema.json",
1225
- "sha256": "725bc07e7c6b6ad51a1f720cc9fb02649d8f31bc54e71c61c350fd20058c8852",
1378
+ "sha256": "f4b5247f025e99081c20fd9a8b0ed98b32a061c4a98597010be0264e5e564c6c",
1226
1379
  "source": "focus"
1227
1380
  }
1228
1381
  }
1382
+ },
1383
+ "TimeSeriesChart": {
1384
+ "allOf": [
1385
+ {
1386
+ "$ref": "https://a2ui.org/specification/v0_9_1/common_types.json#/$defs/ComponentCommon"
1387
+ },
1388
+ {
1389
+ "$ref": "#/$defs/CatalogComponentCommon"
1390
+ },
1391
+ {
1392
+ "properties": {
1393
+ "accessibility": {
1394
+ "additionalProperties": false,
1395
+ "properties": {
1396
+ "description": {
1397
+ "type": "string"
1398
+ },
1399
+ "label": {
1400
+ "type": "string"
1401
+ }
1402
+ },
1403
+ "type": "object"
1404
+ },
1405
+ "bands": {
1406
+ "description": "Bands in value-axis units, applied to each series.",
1407
+ "items": {
1408
+ "additionalProperties": false,
1409
+ "description": "A shaded band between two value-axis positions.",
1410
+ "properties": {
1411
+ "from": {
1412
+ "description": "Band start in value-axis units.",
1413
+ "type": "number"
1414
+ },
1415
+ "label": {
1416
+ "description": "Human-readable band label.",
1417
+ "type": "string"
1418
+ },
1419
+ "to": {
1420
+ "description": "Band end in value-axis units.",
1421
+ "type": "number"
1422
+ },
1423
+ "tone": {
1424
+ "description": "Feedback-token tone for the band.",
1425
+ "enum": [
1426
+ "error",
1427
+ "info",
1428
+ "neutral",
1429
+ "success",
1430
+ "warning"
1431
+ ],
1432
+ "type": "string"
1433
+ }
1434
+ },
1435
+ "required": [
1436
+ "from",
1437
+ "to"
1438
+ ],
1439
+ "type": "object"
1440
+ },
1441
+ "type": "array"
1442
+ },
1443
+ "component": {
1444
+ "const": "TimeSeriesChart"
1445
+ },
1446
+ "goalLine": {
1447
+ "additionalProperties": false,
1448
+ "description": "Goal in value-axis units, applied to each series.",
1449
+ "properties": {
1450
+ "label": {
1451
+ "description": "Human-readable goal label.",
1452
+ "type": "string"
1453
+ },
1454
+ "value": {
1455
+ "description": "Position of the goal line in value-axis units.",
1456
+ "type": "number"
1457
+ }
1458
+ },
1459
+ "required": [
1460
+ "value"
1461
+ ],
1462
+ "type": "object"
1463
+ },
1464
+ "label": {
1465
+ "description": "Human-readable chart name.",
1466
+ "minLength": 1,
1467
+ "type": "string"
1468
+ },
1469
+ "referenceLines": {
1470
+ "description": "Reference lines. An x-axis value is in whole UTC epoch milliseconds.",
1471
+ "items": {
1472
+ "additionalProperties": false,
1473
+ "description": "A reference line on one axis (default axis: \"y\").",
1474
+ "properties": {
1475
+ "axis": {
1476
+ "description": "Which axis the line spans; \"y\" by default.",
1477
+ "enum": [
1478
+ "x",
1479
+ "y"
1480
+ ],
1481
+ "type": "string"
1482
+ },
1483
+ "label": {
1484
+ "description": "Human-readable line label.",
1485
+ "type": "string"
1486
+ },
1487
+ "tone": {
1488
+ "description": "Feedback-token tone for the line.",
1489
+ "enum": [
1490
+ "error",
1491
+ "info",
1492
+ "neutral",
1493
+ "success",
1494
+ "warning"
1495
+ ],
1496
+ "type": "string"
1497
+ },
1498
+ "value": {
1499
+ "description": "Position of the line in value-axis units.",
1500
+ "type": "number"
1501
+ }
1502
+ },
1503
+ "required": [
1504
+ "value"
1505
+ ],
1506
+ "type": "object"
1507
+ },
1508
+ "type": "array"
1509
+ },
1510
+ "series": {
1511
+ "description": "Series in display order.",
1512
+ "items": {
1513
+ "additionalProperties": false,
1514
+ "properties": {
1515
+ "data": {
1516
+ "description": "Observations in strictly increasing timestamp order.",
1517
+ "items": {
1518
+ "additionalProperties": false,
1519
+ "properties": {
1520
+ "x": {
1521
+ "description": "Whole UTC Unix epoch milliseconds, in the ISO instant range.",
1522
+ "maximum": 8640000000000000,
1523
+ "minimum": -8640000000000000,
1524
+ "type": "integer"
1525
+ },
1526
+ "y": {
1527
+ "description": "Finite measured value.",
1528
+ "type": "number"
1529
+ }
1530
+ },
1531
+ "required": [
1532
+ "x",
1533
+ "y"
1534
+ ],
1535
+ "type": "object"
1536
+ },
1537
+ "type": "array"
1538
+ },
1539
+ "id": {
1540
+ "description": "Stable identifier, unique within the chart.",
1541
+ "minLength": 1,
1542
+ "type": "string"
1543
+ },
1544
+ "label": {
1545
+ "description": "Human-readable series name.",
1546
+ "minLength": 1,
1547
+ "type": "string"
1548
+ }
1549
+ },
1550
+ "required": [
1551
+ "data",
1552
+ "id",
1553
+ "label"
1554
+ ],
1555
+ "type": "object"
1556
+ },
1557
+ "minItems": 1,
1558
+ "type": "array"
1559
+ }
1560
+ },
1561
+ "required": [
1562
+ "component",
1563
+ "label",
1564
+ "series"
1565
+ ],
1566
+ "type": "object"
1567
+ }
1568
+ ],
1569
+ "type": "object",
1570
+ "unevaluatedProperties": false,
1571
+ "x-sentropic": {
1572
+ "contract": "1.0",
1573
+ "element": "st-time-series-chart",
1574
+ "engine": "core",
1575
+ "events": [],
1576
+ "example": {
1577
+ "component": "TimeSeriesChart",
1578
+ "id": "root",
1579
+ "label": "Queue depth",
1580
+ "series": [
1581
+ {
1582
+ "data": [
1583
+ {
1584
+ "x": 1767225600123,
1585
+ "y": 4
1586
+ },
1587
+ {
1588
+ "x": 1767225601123,
1589
+ "y": 7
1590
+ }
1591
+ ],
1592
+ "id": "jobs",
1593
+ "label": "Jobs"
1594
+ }
1595
+ ]
1596
+ },
1597
+ "fallback": "text",
1598
+ "parity": {
1599
+ "angular": {
1600
+ "file": "packages/elements/src/element/dom/time-series-chart.svelte",
1601
+ "note": "No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).",
1602
+ "status": "no-counterpart"
1603
+ },
1604
+ "react": {
1605
+ "file": "packages/elements/src/element/dom/time-series-chart.svelte",
1606
+ "note": "No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).",
1607
+ "status": "no-counterpart"
1608
+ },
1609
+ "svelte": {
1610
+ "file": "packages/elements/src/element/dom/time-series-chart.svelte",
1611
+ "note": "Reference pilot (§3.1); the catalogue is derived from it.",
1612
+ "status": "source-of-truth",
1613
+ "type": "TimeSeriesChartProps"
1614
+ },
1615
+ "vue": {
1616
+ "file": "packages/elements/src/element/dom/time-series-chart.svelte",
1617
+ "note": "No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).",
1618
+ "status": "no-counterpart"
1619
+ }
1620
+ },
1621
+ "schema": "https://design-system.sent-tech.ca/catalogs/elements/v1/components/TimeSeriesChart.json"
1622
+ }
1229
1623
  }
1230
1624
  },
1231
1625
  "description": "A2UI v0.9.1 basic catalogue of the Sentropic design system elements (JSON render standard, spec/SPEC_EVOL_DS_JSON_RENDER_STANDARD.md §5.2). Each component carries its x-sentropic contract version, element name, engine, events, fallback and standalone schema id; semantic documents are validated by their owning runtimes (§4.3).",