@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
package/dist/browser/sri.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.3.2",
|
|
3
3
|
"files": {
|
|
4
4
|
"assets/bpmn-CZlEAdL6.ttf": {
|
|
5
5
|
"bytes": 48652,
|
|
@@ -57,25 +57,32 @@
|
|
|
57
57
|
"integrity": "sha384-3TjN9AKie6jVg1XbjmJUgmyL5NsOZ0/cSmlJ+zVKJg3n5r3uyg+c5BCkicQXTX7U",
|
|
58
58
|
"group": "engine:bpmn-canvas"
|
|
59
59
|
},
|
|
60
|
-
"chunks/Modeler-
|
|
61
|
-
"bytes":
|
|
62
|
-
"gzip":
|
|
63
|
-
"brotli":
|
|
64
|
-
"integrity": "sha384-
|
|
60
|
+
"chunks/Modeler-D87tL_OJ.js": {
|
|
61
|
+
"bytes": 365485,
|
|
62
|
+
"gzip": 104568,
|
|
63
|
+
"brotli": 87917,
|
|
64
|
+
"integrity": "sha384-Yp3t5sbDF3i1yNhrr85PjGnqQmn175Zirxd1mh4YiZ/OYRRwSa48beAroOgtSIU6",
|
|
65
65
|
"group": "engine:bpmn-canvas"
|
|
66
66
|
},
|
|
67
|
-
"chunks/Viewer-
|
|
68
|
-
"bytes":
|
|
69
|
-
"gzip":
|
|
70
|
-
"brotli":
|
|
71
|
-
"integrity": "sha384-
|
|
67
|
+
"chunks/Viewer-D9zjRrp2.js": {
|
|
68
|
+
"bytes": 107262,
|
|
69
|
+
"gzip": 33356,
|
|
70
|
+
"brotli": 28947,
|
|
71
|
+
"integrity": "sha384-GlqbX05QPKR0MiqSGIFYOt6RFjK3h5sab2GEFBy3N8hwozunPp52UUBYzRWH/eoF",
|
|
72
72
|
"group": "engine:bpmn-canvas"
|
|
73
73
|
},
|
|
74
|
-
"chunks/bpmn-canvas-
|
|
75
|
-
"bytes":
|
|
76
|
-
"gzip":
|
|
77
|
-
"brotli":
|
|
78
|
-
"integrity": "sha384
|
|
74
|
+
"chunks/bpmn-canvas-BevbP_6a.js": {
|
|
75
|
+
"bytes": 3108,
|
|
76
|
+
"gzip": 1262,
|
|
77
|
+
"brotli": 1124,
|
|
78
|
+
"integrity": "sha384-RSViiXeQIq7weTyry6VhsOZs1vtHRBES2tqHBtHzNVTw8LApfFZwWF7AR4PT9+VA",
|
|
79
|
+
"group": "engine:bpmn-canvas"
|
|
80
|
+
},
|
|
81
|
+
"chunks/bpmn-mount-BhO_zb0S.js": {
|
|
82
|
+
"bytes": 93963,
|
|
83
|
+
"gzip": 21588,
|
|
84
|
+
"brotli": 18816,
|
|
85
|
+
"integrity": "sha384-vpWL+Ta2uEvEr8B6S5d2k2/wE5nPkQQdFQJzwdYaPRwgKfUZUotSOOhaC8K1jXo6",
|
|
79
86
|
"group": "engine:bpmn-canvas"
|
|
80
87
|
},
|
|
81
88
|
"chunks/colored-CSIQaGsQ.js": {
|
|
@@ -92,11 +99,11 @@
|
|
|
92
99
|
"integrity": "sha384-KTqZGeMBw0b7U/9zsE4+SBiRWZhnf81JLd1Be7uY7YsdeZ1QBDt6TqM+wmzlAw2T",
|
|
93
100
|
"group": "engine:bpmn-canvas"
|
|
94
101
|
},
|
|
95
|
-
"chunks/dist-
|
|
96
|
-
"bytes":
|
|
97
|
-
"gzip":
|
|
98
|
-
"brotli":
|
|
99
|
-
"integrity": "sha384-
|
|
102
|
+
"chunks/dist-DRauAwm2.js": {
|
|
103
|
+
"bytes": 68658,
|
|
104
|
+
"gzip": 15947,
|
|
105
|
+
"brotli": 14341,
|
|
106
|
+
"integrity": "sha384-oJOqQugNFOcwIdsyMbv2oNf+NcXelMYcyhZPHbDWoiRM05iaXViGv5iNzGxq4Qw+",
|
|
100
107
|
"group": "engine:bpmn-canvas"
|
|
101
108
|
},
|
|
102
109
|
"chunks/dist-kvAYI1vo.js": {
|
|
@@ -106,32 +113,32 @@
|
|
|
106
113
|
"integrity": "sha384-OmtEyDUvxFayjXe8Efj+01AdOBSIyf3vn83OFJEBIWFK7LrtWlaz2ScbhBvUmOuS",
|
|
107
114
|
"group": "engine:bpmn-canvas"
|
|
108
115
|
},
|
|
109
|
-
"chunks/entropic-
|
|
110
|
-
"bytes":
|
|
111
|
-
"gzip":
|
|
112
|
-
"brotli":
|
|
113
|
-
"integrity": "sha384-
|
|
116
|
+
"chunks/entropic-MwNVEq6w.js": {
|
|
117
|
+
"bytes": 153721,
|
|
118
|
+
"gzip": 18621,
|
|
119
|
+
"brotli": 6874,
|
|
120
|
+
"integrity": "sha384-NkHfykfC1soLF/0+d8+OoKUq6O6LfqoIHTOesPqMU4uiKfLSAryYeE1+Np/heBHY",
|
|
114
121
|
"group": "theme:entropic"
|
|
115
122
|
},
|
|
116
|
-
"chunks/focus-renderer-
|
|
117
|
-
"bytes":
|
|
118
|
-
"gzip":
|
|
119
|
-
"brotli":
|
|
120
|
-
"integrity": "sha384-
|
|
123
|
+
"chunks/focus-renderer-BWm7DlQD.js": {
|
|
124
|
+
"bytes": 76430,
|
|
125
|
+
"gzip": 25014,
|
|
126
|
+
"brotli": 22243,
|
|
127
|
+
"integrity": "sha384-j7jggeYIpx5jGEvirkkbWMOtz1OMPtYQ/6hfa+ZwfPHuu1EGNnG9tofajwooPAK3",
|
|
121
128
|
"group": "engine:focus"
|
|
122
129
|
},
|
|
123
|
-
"chunks/forge-
|
|
124
|
-
"bytes":
|
|
125
|
-
"gzip":
|
|
126
|
-
"brotli":
|
|
127
|
-
"integrity": "sha384-
|
|
130
|
+
"chunks/forge-CzwO8Hbe.js": {
|
|
131
|
+
"bytes": 153291,
|
|
132
|
+
"gzip": 18647,
|
|
133
|
+
"brotli": 6870,
|
|
134
|
+
"integrity": "sha384-NffZJRu6m29vTuwIolLucJ8bPUxTpSGqK92zlB7Osps2kuJQKga2R+etKfvVAcIm",
|
|
128
135
|
"group": "theme:forge"
|
|
129
136
|
},
|
|
130
|
-
"chunks/layout-
|
|
131
|
-
"bytes":
|
|
132
|
-
"gzip":
|
|
133
|
-
"brotli":
|
|
134
|
-
"integrity": "sha384-
|
|
137
|
+
"chunks/layout-T3X333Za.js": {
|
|
138
|
+
"bytes": 39557,
|
|
139
|
+
"gzip": 13422,
|
|
140
|
+
"brotli": 12163,
|
|
141
|
+
"integrity": "sha384-dYyi7wT3Dp9dloV4+QOMHJomYbZZtNYU4b7PHTQ0cs3tzvevy9ueu/D1pQ/PHxyc",
|
|
135
142
|
"group": "engine:bpmn-canvas"
|
|
136
143
|
},
|
|
137
144
|
"chunks/legend-CXdfCBh6.js": {
|
|
@@ -156,10 +163,10 @@
|
|
|
156
163
|
"group": "engine:bpmn-canvas"
|
|
157
164
|
},
|
|
158
165
|
"elements.js": {
|
|
159
|
-
"bytes":
|
|
160
|
-
"gzip":
|
|
161
|
-
"brotli":
|
|
162
|
-
"integrity": "sha384-
|
|
166
|
+
"bytes": 317862,
|
|
167
|
+
"gzip": 69309,
|
|
168
|
+
"brotli": 48338,
|
|
169
|
+
"integrity": "sha384-p66TjMxt7mF6de1vhcS2wipP9tKTZ9MQlHkIcCtxMGKIoqZO0RvqImYYmAVewt/a",
|
|
163
170
|
"group": "core"
|
|
164
171
|
}
|
|
165
172
|
}
|
|
@@ -91,7 +91,7 @@ export const barChartContract = {
|
|
|
91
91
|
note: "Reference pilot (§3.1); not mechanically generatable (Svelte file), mirrored here member for member.",
|
|
92
92
|
},
|
|
93
93
|
{ framework: "react", file: "packages/components-react/src/BarChart.tsx", typeName: "BarChartProps", role: "compared" },
|
|
94
|
-
{ framework: "vue", file: "packages/components-vue/src/BarChart.
|
|
94
|
+
{ framework: "vue", file: "packages/components-vue/src/BarChart.vue", typeName: "BarChartProps", role: "compared" },
|
|
95
95
|
{ framework: "angular", file: "packages/components-angular/src/BarChart.ts", typeName: "BarChartProps", role: "compared" },
|
|
96
96
|
],
|
|
97
97
|
metadata: {
|
|
@@ -99,7 +99,7 @@ export const barChartContract = {
|
|
|
99
99
|
element: "st-bar-chart",
|
|
100
100
|
engine: "core",
|
|
101
101
|
events: ["select"],
|
|
102
|
-
fallback: "
|
|
102
|
+
fallback: "text",
|
|
103
103
|
},
|
|
104
104
|
example: {
|
|
105
105
|
id: "root",
|
|
@@ -2,15 +2,11 @@
|
|
|
2
2
|
* Contract module for `DecisionDossier` (§5.1, §5.4 — the composition pilot).
|
|
3
3
|
*
|
|
4
4
|
* SOURCE OF TRUTH: the `DecisionDossierDocument` of `@sentropic/focus`
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
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
|
|
5
|
+
* 0.6.0. The catalogue keeps the decision-only v1 envelope for third-party
|
|
6
|
+
* hosts. The separate light DOM kit dispatches decisions and reports via
|
|
7
|
+
* `assertFocusDocument`. The catalogue embeds the current v1 schema
|
|
12
8
|
* (`@sentropic/focus/schemas/decision-dossier-document.v1.schema.json`,
|
|
13
|
-
* `$id` `urn:sentropic:focus:DecisionDossierDocument:1.
|
|
9
|
+
* `$id` `urn:sentropic:focus:DecisionDossierDocument:1.1.0`) and routes
|
|
14
10
|
* semantics to `@sentropic/focus/validate` (§4.3 item 2, source "focus").
|
|
15
11
|
* The embedded copy is scoped to its host document — its internal
|
|
16
12
|
* `#/$defs/X` refs are rewritten to `#/$defs/DecisionDossierDocument/$defs/X`
|
|
@@ -2,15 +2,11 @@
|
|
|
2
2
|
* Contract module for `DecisionDossier` (§5.1, §5.4 — the composition pilot).
|
|
3
3
|
*
|
|
4
4
|
* SOURCE OF TRUTH: the `DecisionDossierDocument` of `@sentropic/focus`
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
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
|
|
5
|
+
* 0.6.0. The catalogue keeps the decision-only v1 envelope for third-party
|
|
6
|
+
* hosts. The separate light DOM kit dispatches decisions and reports via
|
|
7
|
+
* `assertFocusDocument`. The catalogue embeds the current v1 schema
|
|
12
8
|
* (`@sentropic/focus/schemas/decision-dossier-document.v1.schema.json`,
|
|
13
|
-
* `$id` `urn:sentropic:focus:DecisionDossierDocument:1.
|
|
9
|
+
* `$id` `urn:sentropic:focus:DecisionDossierDocument:1.1.0`) and routes
|
|
14
10
|
* semantics to `@sentropic/focus/validate` (§4.3 item 2, source "focus").
|
|
15
11
|
* The embedded copy is scoped to its host document — its internal
|
|
16
12
|
* `#/$defs/X` refs are rewritten to `#/$defs/DecisionDossierDocument/$defs/X`
|
|
@@ -38,7 +34,7 @@ export const decisionDossierContract = {
|
|
|
38
34
|
replacedTypes: [
|
|
39
35
|
{
|
|
40
36
|
prop: "document",
|
|
41
|
-
sourceType: "DecisionDossierDocument (focus v1, urn:sentropic:focus:DecisionDossierDocument:1.
|
|
37
|
+
sourceType: "DecisionDossierDocument (focus v1, urn:sentropic:focus:DecisionDossierDocument:1.1.0)",
|
|
42
38
|
replacement: "Embedded focus v1 JSON Schema under $defs.DecisionDossierDocument, referenced by " +
|
|
43
39
|
"$ref from the document property (marker type DecisionDossierDocumentRef). The " +
|
|
44
40
|
"embedded copy is scoped to its host: the root $id is dropped and every internal " +
|
|
@@ -122,10 +118,10 @@ export const decisionDossierContract = {
|
|
|
122
118
|
},
|
|
123
119
|
semantic: {
|
|
124
120
|
source: "focus",
|
|
125
|
-
runtimePackage: "@sentropic/focus@0.
|
|
121
|
+
runtimePackage: "@sentropic/focus@0.6.0",
|
|
126
122
|
schemaSubpath: "schemas/decision-dossier-document.v1.schema.json",
|
|
127
|
-
schemaId: "urn:sentropic:focus:DecisionDossierDocument:1.
|
|
128
|
-
sha256: "
|
|
123
|
+
schemaId: "urn:sentropic:focus:DecisionDossierDocument:1.1.0",
|
|
124
|
+
sha256: "f4b5247f025e99081c20fd9a8b0ed98b32a061c4a98597010be0264e5e564c6c",
|
|
129
125
|
reason: "§4.3 item 2: the pinned focus validator is authoritative for a DecisionDossierDocument. " +
|
|
130
126
|
"The example above is valid for both the embedded schema and the real validator.",
|
|
131
127
|
},
|
|
@@ -8,6 +8,7 @@ export type { ContractModule } from "./types.js";
|
|
|
8
8
|
export { type BarChartProps, type BarChartDatum, type BarChartTone, type ChartAnnotation, type ChartAnnotationMarker, type ChartBand, type ChartGoalLine, type ChartOverlayTone, type ChartReferenceLine, type ChartScale, type DataLabelsJson, } from "./bar-chart.js";
|
|
9
9
|
export { type BpmnCanvasDocument, type BpmnCanvasProps } from "./bpmn-canvas.js";
|
|
10
10
|
export { type DecisionDossierDocumentRef, type DecisionDossierProps } from "./decision-dossier.js";
|
|
11
|
+
export type { EpochMilliseconds, TimeSeries, TimeSeriesChartProps, TimeSeriesPoint } from "./time-series-chart.js";
|
|
11
12
|
/** The catalogue identity (§5.2): `$id` = `catalogId`. */
|
|
12
13
|
export declare const CATALOG_ID = "https://design-system.sent-tech.ca/catalogs/elements/v1/catalog.json";
|
|
13
14
|
/** The envelope schema's `$id` (the standalone schemas live next to it, §5.2). */
|
package/dist/contracts/index.js
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { barChartContract } from "./bar-chart.js";
|
|
7
7
|
import { bpmnCanvasContract } from "./bpmn-canvas.js";
|
|
8
8
|
import { decisionDossierContract } from "./decision-dossier.js";
|
|
9
|
+
import { timeSeriesChartContract } from "./time-series-chart.js";
|
|
9
10
|
export {} from "./bar-chart.js";
|
|
10
11
|
export {} from "./bpmn-canvas.js";
|
|
11
12
|
export {} from "./decision-dossier.js";
|
|
@@ -31,5 +32,6 @@ export const contracts = [
|
|
|
31
32
|
barChartContract,
|
|
32
33
|
bpmnCanvasContract,
|
|
33
34
|
decisionDossierContract,
|
|
35
|
+
timeSeriesChartContract,
|
|
34
36
|
];
|
|
35
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ChartBand, ChartGoalLine, ChartReferenceLine } from "./bar-chart.js";
|
|
2
|
+
import type { ContractModule } from "./types.js";
|
|
3
|
+
/** A UTC instant as whole milliseconds since 1970-01-01T00:00:00Z. */
|
|
4
|
+
export type EpochMilliseconds = number;
|
|
5
|
+
export interface TimeSeriesPoint {
|
|
6
|
+
/**
|
|
7
|
+
* Whole UTC Unix epoch milliseconds, in the ISO instant range.
|
|
8
|
+
* @asType integer
|
|
9
|
+
* @minimum -8640000000000000
|
|
10
|
+
* @maximum 8640000000000000
|
|
11
|
+
*/
|
|
12
|
+
x: EpochMilliseconds;
|
|
13
|
+
/** Finite measured value. */
|
|
14
|
+
y: number;
|
|
15
|
+
}
|
|
16
|
+
export interface TimeSeries {
|
|
17
|
+
/**
|
|
18
|
+
* Stable identifier, unique within the chart.
|
|
19
|
+
* @minLength 1
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
* Human-readable series name.
|
|
24
|
+
* @minLength 1
|
|
25
|
+
*/
|
|
26
|
+
label: string;
|
|
27
|
+
/** Observations in strictly increasing timestamp order. */
|
|
28
|
+
data: TimeSeriesPoint[];
|
|
29
|
+
}
|
|
30
|
+
export interface TimeSeriesChartProps {
|
|
31
|
+
/**
|
|
32
|
+
* Human-readable chart name.
|
|
33
|
+
* @minLength 1
|
|
34
|
+
*/
|
|
35
|
+
label: string;
|
|
36
|
+
/**
|
|
37
|
+
* Series in display order.
|
|
38
|
+
* @minItems 1
|
|
39
|
+
*/
|
|
40
|
+
series: TimeSeries[];
|
|
41
|
+
/** Reference lines. An x-axis value is in whole UTC epoch milliseconds. */
|
|
42
|
+
referenceLines?: ChartReferenceLine[];
|
|
43
|
+
/** Bands in value-axis units, applied to each series. */
|
|
44
|
+
bands?: ChartBand[];
|
|
45
|
+
/** Goal in value-axis units, applied to each series. */
|
|
46
|
+
goalLine?: ChartGoalLine;
|
|
47
|
+
}
|
|
48
|
+
export declare const timeSeriesChartContract: ContractModule;
|
|
49
|
+
//# sourceMappingURL=time-series-chart.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const source = {
|
|
2
|
+
file: "packages/elements/src/element/dom/time-series-chart.svelte",
|
|
3
|
+
typeName: "TimeSeriesChartProps",
|
|
4
|
+
};
|
|
5
|
+
export const timeSeriesChartContract = {
|
|
6
|
+
component: "TimeSeriesChart",
|
|
7
|
+
propsTypeName: "TimeSeriesChartProps",
|
|
8
|
+
source: {
|
|
9
|
+
...source,
|
|
10
|
+
packageName: "@sentropic/design-system-elements",
|
|
11
|
+
note: "Composition of the Svelte LineChart, sharing a UTC time domain and analytical overlays.",
|
|
12
|
+
},
|
|
13
|
+
excluded: [],
|
|
14
|
+
replacedTypes: [],
|
|
15
|
+
narrowedUnions: [],
|
|
16
|
+
callbacks: [],
|
|
17
|
+
frameworks: [
|
|
18
|
+
{ ...source, framework: "svelte", role: "source-of-truth" },
|
|
19
|
+
{ ...source, framework: "react", role: "no-counterpart" },
|
|
20
|
+
{ ...source, framework: "vue", role: "no-counterpart" },
|
|
21
|
+
{ ...source, framework: "angular", role: "no-counterpart" },
|
|
22
|
+
],
|
|
23
|
+
metadata: {
|
|
24
|
+
contract: "1.0",
|
|
25
|
+
element: "st-time-series-chart",
|
|
26
|
+
engine: "core",
|
|
27
|
+
events: [],
|
|
28
|
+
fallback: "text",
|
|
29
|
+
},
|
|
30
|
+
example: {
|
|
31
|
+
id: "root",
|
|
32
|
+
component: "TimeSeriesChart",
|
|
33
|
+
label: "Queue depth",
|
|
34
|
+
series: [{ id: "jobs", label: "Jobs", data: [{ x: 1767225600123, y: 4 }, { x: 1767225601123, y: 7 }] }],
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=time-series-chart.js.map
|