@praxisui/charts 9.0.24 → 9.0.26
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/README.md +29 -0
- package/ai/component-registry.json +418 -54
- package/fesm2022/praxisui-charts.mjs +1495 -1061
- package/package.json +3 -3
- package/types/praxisui-charts.d.ts +80 -9
|
@@ -1,12 +1,372 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-08-
|
|
3
|
+
"generatedAt": "2026-08-26T21:39:46.376Z",
|
|
4
4
|
"packageName": "@praxisui/charts",
|
|
5
|
-
"packageVersion": "9.0.
|
|
5
|
+
"packageVersion": "9.0.26",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
|
-
"componentCount":
|
|
8
|
+
"componentCount": 3,
|
|
9
9
|
"components": {
|
|
10
|
+
"praxis-analytics-presentation": {
|
|
11
|
+
"id": "praxis-analytics-presentation",
|
|
12
|
+
"description": "Alterna renderers elegíveis para uma projection x-ui.analytics selecionada por id, preservando o query context.",
|
|
13
|
+
"category": "table",
|
|
14
|
+
"inputs": [
|
|
15
|
+
{
|
|
16
|
+
"name": "analytics",
|
|
17
|
+
"type": "PraxisXUiAnalytics",
|
|
18
|
+
"required": false,
|
|
19
|
+
"description": "Contrato x-ui.analytics que contém a projection canônica.",
|
|
20
|
+
"default": {
|
|
21
|
+
"projections": [
|
|
22
|
+
{
|
|
23
|
+
"id": "analytics-presentation-sample",
|
|
24
|
+
"intent": "ranking",
|
|
25
|
+
"source": {
|
|
26
|
+
"kind": "praxis.stats",
|
|
27
|
+
"resource": "/api/sample",
|
|
28
|
+
"operation": "group-by"
|
|
29
|
+
},
|
|
30
|
+
"bindings": {
|
|
31
|
+
"primaryDimension": {
|
|
32
|
+
"field": "category",
|
|
33
|
+
"role": "category",
|
|
34
|
+
"label": "Categoria"
|
|
35
|
+
},
|
|
36
|
+
"primaryMetrics": [
|
|
37
|
+
{
|
|
38
|
+
"field": "value",
|
|
39
|
+
"aggregation": "sum",
|
|
40
|
+
"label": "Valor"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"presentationHints": {
|
|
45
|
+
"preferredFamilies": [
|
|
46
|
+
"chart",
|
|
47
|
+
"analytic-table"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "projectionId",
|
|
56
|
+
"type": "string",
|
|
57
|
+
"required": false,
|
|
58
|
+
"description": "Identidade exata da projection; labels não são usados para seleção.",
|
|
59
|
+
"default": "analytics-presentation-sample"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "availableFamilies",
|
|
63
|
+
"type": "AnalyticsPresentationFamily[]",
|
|
64
|
+
"required": false,
|
|
65
|
+
"description": "Famílias autorizadas após capabilities e renderers instalados.",
|
|
66
|
+
"default": [
|
|
67
|
+
"chart",
|
|
68
|
+
"analytic-table"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "preferredFamily",
|
|
73
|
+
"type": "AnalyticsPresentationFamily | null",
|
|
74
|
+
"required": false,
|
|
75
|
+
"description": "Preferência persistida pelo host; a escolha temporária do usuário tem precedência.",
|
|
76
|
+
"default": null
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "queryContext",
|
|
80
|
+
"type": "PraxisDataQueryContext | null",
|
|
81
|
+
"required": false,
|
|
82
|
+
"description": "Contexto governado compartilhado por chart e analytic-table.",
|
|
83
|
+
"default": null
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "title",
|
|
87
|
+
"type": "PraxisTextValue",
|
|
88
|
+
"required": false,
|
|
89
|
+
"description": "Título compartilhado pelos renderers."
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "subtitle",
|
|
93
|
+
"type": "PraxisTextValue",
|
|
94
|
+
"required": false,
|
|
95
|
+
"description": "Subtítulo compartilhado pelos renderers."
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "enableCustomization",
|
|
99
|
+
"type": "boolean",
|
|
100
|
+
"required": false,
|
|
101
|
+
"description": "Habilita authoring interno do chart quando aplicável.",
|
|
102
|
+
"default": false
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"outputs": [
|
|
106
|
+
{
|
|
107
|
+
"name": "presentationChange",
|
|
108
|
+
"type": "PraxisAnalyticsPresentationChange",
|
|
109
|
+
"required": false,
|
|
110
|
+
"description": "Escolha temporária do usuário; o host decide se persiste."
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "pointClick",
|
|
114
|
+
"type": "PraxisChartPointEvent",
|
|
115
|
+
"required": false,
|
|
116
|
+
"description": "Evidência de ponto/linha preservada entre renderers."
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "pointAction",
|
|
120
|
+
"type": "PraxisChartPointActionEvent",
|
|
121
|
+
"required": false,
|
|
122
|
+
"description": "Ação configurada emitida pelo chart."
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "selectionChange",
|
|
126
|
+
"type": "PraxisChartSelectionEvent",
|
|
127
|
+
"required": false,
|
|
128
|
+
"description": "Seleção semântica emitida pelo chart."
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "drillDown",
|
|
132
|
+
"type": "PraxisChartDrillDownEvent",
|
|
133
|
+
"required": false,
|
|
134
|
+
"description": "Drill-down emitido pelo chart."
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "crossFilter",
|
|
138
|
+
"type": "PraxisChartCrossFilterEvent",
|
|
139
|
+
"required": false,
|
|
140
|
+
"description": "Cross-filter emitido pelo chart."
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "queryRequest",
|
|
144
|
+
"type": "PraxisChartQueryRequestEvent",
|
|
145
|
+
"required": false,
|
|
146
|
+
"description": "Observação da consulta remota do chart."
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "loadStateChange",
|
|
150
|
+
"type": "PraxisChartLoadState",
|
|
151
|
+
"required": false,
|
|
152
|
+
"description": "Estado de carga do chart."
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"configSchemaId": null,
|
|
156
|
+
"selector": "praxis-analytics-presentation",
|
|
157
|
+
"friendlyName": "Apresentação analítica governada",
|
|
158
|
+
"icon": "monitoring",
|
|
159
|
+
"tags": [
|
|
160
|
+
"analytics",
|
|
161
|
+
"chart",
|
|
162
|
+
"table",
|
|
163
|
+
"projection",
|
|
164
|
+
"dashboard"
|
|
165
|
+
],
|
|
166
|
+
"lib": "@praxisui/charts",
|
|
167
|
+
"authoringManifestRef": {
|
|
168
|
+
"componentId": "praxis-analytics-presentation",
|
|
169
|
+
"version": "1.0.0",
|
|
170
|
+
"source": "PRAXIS_ANALYTICS_PRESENTATION_AUTHORING_MANIFEST"
|
|
171
|
+
},
|
|
172
|
+
"source": "projects/praxis-charts/src/lib/praxis-analytics-presentation.metadata.ts",
|
|
173
|
+
"exportName": "PRAXIS_ANALYTICS_PRESENTATION_COMPONENT_METADATA",
|
|
174
|
+
"authoringManifest": {
|
|
175
|
+
"schemaVersion": "1.0.0",
|
|
176
|
+
"componentId": "praxis-analytics-presentation",
|
|
177
|
+
"ownerPackage": "@praxisui/charts",
|
|
178
|
+
"configSchemaId": "PraxisAnalyticsPresentationInputs",
|
|
179
|
+
"manifestVersion": "1.0.0",
|
|
180
|
+
"runtimeInputs": [
|
|
181
|
+
{
|
|
182
|
+
"name": "analytics",
|
|
183
|
+
"type": "PraxisXUiAnalytics",
|
|
184
|
+
"description": "Canonical x-ui.analytics projections."
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "projectionId",
|
|
188
|
+
"type": "string",
|
|
189
|
+
"description": "Stable projection identity; labels never select projections."
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "availableFamilies",
|
|
193
|
+
"type": "AnalyticsPresentationFamily[]",
|
|
194
|
+
"description": "Capability- and host-authorized renderer families."
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "preferredFamily",
|
|
198
|
+
"type": "AnalyticsPresentationFamily | null",
|
|
199
|
+
"allowedValues": [
|
|
200
|
+
"chart",
|
|
201
|
+
"analytic-table"
|
|
202
|
+
],
|
|
203
|
+
"description": "Persisted host preference. Temporary user choice remains runtime-only."
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "queryContext",
|
|
207
|
+
"type": "PraxisDataQueryContext | null",
|
|
208
|
+
"description": "Shared governed query context forwarded to the selected renderer."
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"editableTargets": [
|
|
212
|
+
{
|
|
213
|
+
"kind": "analyticsPresentationPreference",
|
|
214
|
+
"resolver": "component-config",
|
|
215
|
+
"description": "Persisted preferredFamily for the projection selected by exact projectionId."
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"operations": [
|
|
219
|
+
{
|
|
220
|
+
"operationId": "analytics.presentation.prefer-family",
|
|
221
|
+
"title": "Prefer analytics presentation family",
|
|
222
|
+
"description": "Persists a renderer-family preference without changing the canonical projection, bindings or query context.",
|
|
223
|
+
"scope": "global",
|
|
224
|
+
"targetKind": "analyticsPresentationPreference",
|
|
225
|
+
"target": {
|
|
226
|
+
"kind": "analyticsPresentationPreference",
|
|
227
|
+
"resolver": "component-config",
|
|
228
|
+
"ambiguityPolicy": "fail",
|
|
229
|
+
"required": false
|
|
230
|
+
},
|
|
231
|
+
"inputSchema": {
|
|
232
|
+
"type": "object",
|
|
233
|
+
"additionalProperties": false,
|
|
234
|
+
"required": [
|
|
235
|
+
"family"
|
|
236
|
+
],
|
|
237
|
+
"properties": {
|
|
238
|
+
"family": {
|
|
239
|
+
"enum": [
|
|
240
|
+
"chart",
|
|
241
|
+
"analytic-table"
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"effects": [
|
|
247
|
+
{
|
|
248
|
+
"kind": "set-value",
|
|
249
|
+
"path": "preferredFamily",
|
|
250
|
+
"inputPath": "family"
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
"destructive": false,
|
|
254
|
+
"requiresConfirmation": false,
|
|
255
|
+
"validators": [
|
|
256
|
+
"diagnostics-before-patch",
|
|
257
|
+
"renderer-supported",
|
|
258
|
+
"runtime-component-resolves"
|
|
259
|
+
],
|
|
260
|
+
"affectedPaths": [
|
|
261
|
+
"preferredFamily"
|
|
262
|
+
],
|
|
263
|
+
"submissionImpact": "visual-only",
|
|
264
|
+
"preconditions": [
|
|
265
|
+
"analytics-projection-resolved"
|
|
266
|
+
]
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
"validators": [
|
|
270
|
+
{
|
|
271
|
+
"validatorId": "diagnostics-before-patch",
|
|
272
|
+
"level": "error",
|
|
273
|
+
"code": "ANALYTICS_DIAGNOSTICS_BEFORE_PATCH",
|
|
274
|
+
"description": "Projection resolution and family eligibility diagnostics must be clear before changing the preference."
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"validatorId": "renderer-supported",
|
|
278
|
+
"level": "error",
|
|
279
|
+
"code": "ANALYTICS_RENDERER_SUPPORTED",
|
|
280
|
+
"description": "The requested family must be a renderer supported by the component manifest."
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"validatorId": "runtime-component-resolves",
|
|
284
|
+
"level": "error",
|
|
285
|
+
"code": "ANALYTICS_RUNTIME_COMPONENT_RESOLVES",
|
|
286
|
+
"description": "The analytics presentation runtime must be registered before persisting its preference."
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
"roundTripRequirements": [
|
|
290
|
+
"Save and reopen must preserve preferredFamily without copying remote analytics results into the page document.",
|
|
291
|
+
"Changing preferredFamily must preserve analytics, projectionId and queryContext byte-for-byte.",
|
|
292
|
+
"Temporary user choice emitted by presentationChange must not mutate preferredFamily unless the host explicitly persists it."
|
|
293
|
+
],
|
|
294
|
+
"presentationAffordances": {
|
|
295
|
+
"version": "1.0.0",
|
|
296
|
+
"componentId": "praxis-analytics-presentation",
|
|
297
|
+
"defaultTargetKind": "analyticsPresentationPreference",
|
|
298
|
+
"sourceRef": "AnalyticsPresentationResolver",
|
|
299
|
+
"affordances": [
|
|
300
|
+
{
|
|
301
|
+
"id": "analytics-presentation-family",
|
|
302
|
+
"targetKind": "analyticsPresentationPreference",
|
|
303
|
+
"category": "analytics-renderer",
|
|
304
|
+
"description": "Compatible presentation families resolved from the canonical projection and installed renderers.",
|
|
305
|
+
"options": [
|
|
306
|
+
"chart",
|
|
307
|
+
"analytic-table"
|
|
308
|
+
],
|
|
309
|
+
"appliesToTypes": [
|
|
310
|
+
"PraxisXUiAnalytics"
|
|
311
|
+
],
|
|
312
|
+
"unknownCompatible": false
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
"examples": [
|
|
317
|
+
{
|
|
318
|
+
"id": "prefer-analytic-table",
|
|
319
|
+
"request": "Use the table presentation for projection supplier-procurement-funnel.",
|
|
320
|
+
"operationId": "analytics.presentation.prefer-family",
|
|
321
|
+
"params": {
|
|
322
|
+
"family": "analytic-table"
|
|
323
|
+
},
|
|
324
|
+
"isPositive": true
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"id": "reject-kpi-without-renderer",
|
|
328
|
+
"request": "Use KPI even though no KPI renderer is installed.",
|
|
329
|
+
"operationId": "analytics.presentation.prefer-family",
|
|
330
|
+
"params": {
|
|
331
|
+
"family": "kpi"
|
|
332
|
+
},
|
|
333
|
+
"isPositive": false
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
"chunks": [
|
|
338
|
+
{
|
|
339
|
+
"chunkIndex": 0,
|
|
340
|
+
"chunkKind": "summary",
|
|
341
|
+
"content": "Component ID: praxis-analytics-presentation\nSelector: praxis-analytics-presentation\nFriendly Name: Apresentação analítica governada\nDescription: Alterna renderers elegíveis para uma projection x-ui.analytics selecionada por id, preservando o query context.\nCategory: table\nLib/Package: @praxisui/charts\nTags: analytics, chart, table, projection, dashboard\nInputs:\n - analytics (PraxisXUiAnalytics)\n - projectionId (string)\n - availableFamilies (AnalyticsPresentationFamily[])\n - preferredFamily (AnalyticsPresentationFamily | null)\n - queryContext (PraxisDataQueryContext | null)\n - title (PraxisTextValue)\n - subtitle (PraxisTextValue)\n - enableCustomization (boolean)\nOutputs:\n - presentationChange (PraxisAnalyticsPresentationChange)\n - pointClick (PraxisChartPointEvent)\n - pointAction (PraxisChartPointActionEvent)\n - selectionChange (PraxisChartSelectionEvent)\n - drillDown (PraxisChartDrillDownEvent)\n - crossFilter (PraxisChartCrossFilterEvent)\n - queryRequest (PraxisChartQueryRequestEvent)\n - loadStateChange (PraxisChartLoadState)\n",
|
|
342
|
+
"sourcePointer": "projects/praxis-charts/src/lib/praxis-analytics-presentation.metadata.ts",
|
|
343
|
+
"contentHash": "16b70734c3a1da1fa7b42ce42bc69ea91c6bfadcac970015678f16954376d4f3",
|
|
344
|
+
"sourceKind": "component_definition",
|
|
345
|
+
"sourceId": "praxis-analytics-presentation",
|
|
346
|
+
"corpusVersion": "1.0.0"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"chunkIndex": 1,
|
|
350
|
+
"chunkKind": "authoring_manifest",
|
|
351
|
+
"content": "{\"operationId\":\"analytics.presentation.prefer-family\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-analytics-presentation\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisAnalyticsPresentationInputs\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Prefer analytics presentation family Persists a renderer-family preference without changing the canonical projection, bindings or query context. Effects: set-value. Use the table presentation for projection supplier-procurement-funnel. Use KPI even though no KPI renderer is installed.\",\"scope\":\"global\",\"target\":{\"kind\":\"analyticsPresentationPreference\",\"resolver\":\"component-config\",\"required\":false},\"inputContract\":{\"required\":[\"family\"],\"properties\":[\"family\"],\"semanticTerms\":[\"family\",\"chart\",\"analytic-table\"]},\"effects\":[\"set-value\"],\"affectedPaths\":[\"preferredFamily\"],\"validators\":[{\"validatorId\":\"diagnostics-before-patch\",\"level\":\"error\",\"code\":\"ANALYTICS_DIAGNOSTICS_BEFORE_PATCH\",\"description\":\"Projection resolution and family eligibility diagnostics must be clear before changing the preference.\"},{\"validatorId\":\"renderer-supported\",\"level\":\"error\",\"code\":\"ANALYTICS_RENDERER_SUPPORTED\",\"description\":\"The requested family must be a renderer supported by the component manifest.\"},{\"validatorId\":\"runtime-component-resolves\",\"level\":\"error\",\"code\":\"ANALYTICS_RUNTIME_COMPONENT_RESOLVES\",\"description\":\"The analytics presentation runtime must be registered before persisting its preference.\"}],\"preconditions\":[\"analytics-projection-resolved\"],\"submissionImpact\":\"visual-only\",\"presentationAffordances\":[{\"id\":\"analytics-presentation-family\",\"targetKind\":\"analyticsPresentationPreference\",\"category\":\"analytics-renderer\",\"description\":\"Compatible presentation families resolved from the canonical projection and installed renderers.\",\"options\":[\"chart\",\"analytic-table\"],\"appliesToTypes\":[\"PraxisXUiAnalytics\"],\"unknownCompatible\":false}],\"positiveExamples\":[{\"id\":\"prefer-analytic-table\",\"request\":\"Use the table presentation for projection supplier-procurement-funnel.\",\"operationId\":\"analytics.presentation.prefer-family\",\"params\":{\"family\":\"analytic-table\"},\"isPositive\":true}],\"negativeExamples\":[{\"id\":\"reject-kpi-without-renderer\",\"request\":\"Use KPI even though no KPI renderer is installed.\",\"operationId\":\"analytics.presentation.prefer-family\",\"params\":{\"family\":\"kpi\"},\"isPositive\":false}]}",
|
|
352
|
+
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-analytics-presentation-authoring-manifest.ts",
|
|
353
|
+
"contentHash": "a1cf9a25267674c2707d3aad502db763d6687c6fee653566a2988d3b9e1d6a72",
|
|
354
|
+
"sourceKind": "component_definition",
|
|
355
|
+
"sourceId": "praxis-analytics-presentation",
|
|
356
|
+
"corpusVersion": "1.0.0"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"chunkIndex": 2,
|
|
360
|
+
"chunkKind": "authoring_manifest",
|
|
361
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"componentId\":\"praxis-analytics-presentation\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisAnalyticsPresentationInputs\",\"manifestVersion\":\"1.0.0\",\"runtimeInputs\":[{\"name\":\"analytics\",\"type\":\"PraxisXUiAnalytics\",\"description\":\"Canonical x-ui.analytics projections.\"},{\"name\":\"projectionId\",\"type\":\"string\",\"description\":\"Stable projection identity; labels never select projections.\"},{\"name\":\"availableFamilies\",\"type\":\"AnalyticsPresentationFamily[]\",\"description\":\"Capability- and host-authorized renderer families.\"},{\"name\":\"preferredFamily\",\"type\":\"AnalyticsPresentationFamily | null\",\"allowedValues\":[\"chart\",\"analytic-table\"],\"description\":\"Persisted host preference. Temporary user choice remains runtime-only.\"},{\"name\":\"queryContext\",\"type\":\"PraxisDataQueryContext | null\",\"description\":\"Shared governed query context forwarded to the selected renderer.\"}],\"editableTargets\":[{\"kind\":\"analyticsPresentationPreference\",\"resolver\":\"component-config\",\"description\":\"Persisted preferredFamily for the projection selected by exact projectionId.\"}],\"operations\":[{\"operationId\":\"analytics.presentation.prefer-family\",\"title\":\"Prefer analytics presentation family\",\"description\":\"Persists a renderer-family preference without changing the canonical projection, bindings or query context.\",\"scope\":\"global\",\"targetKind\":\"analyticsPresentationPreference\",\"target\":{\"kind\":\"analyticsPresentationPreference\",\"resolver\":\"component-config\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"family\"],\"properties\":{\"family\":{\"enum\":[\"chart\",\"analytic-table\"]}}},\"effects\":[{\"kind\":\"set-value\",\"path\":\"preferredFamily\",\"inputPath\":\"family\"}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"diagnostics-before-patch\",\"renderer-supported\",\"runtime-component-resolves\"],\"affectedPaths\":[\"preferredFamily\"],\"submissionImpact\":\"visual-only\",\"preconditions\":[\"analytics-projection-resolved\"]}],\"validators\":[{\"validatorId\":\"diagnostics-before-patch\",\"level\":\"error\",\"code\":\"ANALYTICS_DIAGNOSTICS_BEFORE_PATCH\",\"description\":\"Projection resolution and family eligibility diagnostics must be clear before changing the preference.\"},{\"validatorId\":\"renderer-supported\",\"level\":\"error\",\"code\":\"ANALYTICS_RENDERER_SUPPORTED\",\"description\":\"The requested family must be a renderer supported by the component manifest.\"},{\"validatorId\":\"runtime-component-resolves\",\"level\":\"error\",\"code\":\"ANALYTICS_RUNTIME_COMPONENT_RESOLVES\",\"description\":\"The analytics presentation runtime must be registered before persisting its preference.\"}],\"roundTripRequirements\":[\"Save and reopen must preserve preferredFamily without copying remote analytics results into the page document.\",\"Changing preferredFamily must preserve analytics, projectionId and queryContext byte-for-byte.\",\"Temporary user choice emitted by presentationChange must not mutate preferredFamily unless the host explicitly persists it.\"],\"presentationAffordances\":{\"version\":\"1.0.0\",\"componentId\":\"praxis-analytics-presentation\",\"defaultTargetKind\":\"analyticsPresentationPreference\",\"sourceRef\":\"AnalyticsPresentationResolver\",\"affordances\":[{\"id\":\"analytics-presentation-family\",\"targetKind\":\"analyticsPresentationPreference\",\"category\":\"analytics-renderer\",\"description\":\"Compatible presentation families resolved from the canonical projection and installed renderers.\",\"options\":[\"chart\",\"analytic-table\"],\"appliesToTypes\":[\"PraxisXUiAnalytics\"],\"unknownCompatible\":false}]},\"examples\":[{\"id\":\"prefer-analytic-table\",\"request\":\"Use the table presentation for projection supplier-procurement-funnel.\",\"operationId\":\"analytics.presentation.prefer-family\",\"params\":{\"family\":\"analytic-table\"},\"isPositive\":true},{\"id\":\"reject-kpi-without-renderer\",\"request\":\"Use KPI even though no KPI renderer is installed.\",\"operationId\":\"analytics.presentation.prefer-family\",\"params\":{\"family\":\"kpi\"},\"isPositive\":false}]}",
|
|
362
|
+
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-analytics-presentation-authoring-manifest.ts",
|
|
363
|
+
"contentHash": "1443f84accf6bce241a798431904b644c012ebbc6ebd8ca1eea1b5ad30ff87ba",
|
|
364
|
+
"sourceKind": "component_definition",
|
|
365
|
+
"sourceId": "praxis-analytics-presentation",
|
|
366
|
+
"corpusVersion": "1.0.0"
|
|
367
|
+
}
|
|
368
|
+
]
|
|
369
|
+
},
|
|
10
370
|
"praxis-chart": {
|
|
11
371
|
"id": "praxis-chart",
|
|
12
372
|
"description": "Chart component for analytics and metadata-driven visualizations in Praxis UI.",
|
|
@@ -502,7 +862,7 @@
|
|
|
502
862
|
"componentId": "praxis-chart",
|
|
503
863
|
"ownerPackage": "@praxisui/charts",
|
|
504
864
|
"configSchemaId": "PraxisXUiChartContract",
|
|
505
|
-
"manifestVersion": "1.
|
|
865
|
+
"manifestVersion": "1.2.0",
|
|
506
866
|
"runtimeInputs": [
|
|
507
867
|
{
|
|
508
868
|
"name": "chartDocument",
|
|
@@ -631,7 +991,9 @@
|
|
|
631
991
|
"area",
|
|
632
992
|
"stacked-bar",
|
|
633
993
|
"stacked-area",
|
|
634
|
-
"scatter"
|
|
994
|
+
"scatter",
|
|
995
|
+
"funnel",
|
|
996
|
+
"pyramid"
|
|
635
997
|
]
|
|
636
998
|
},
|
|
637
999
|
"chartId": {
|
|
@@ -789,7 +1151,9 @@
|
|
|
789
1151
|
"area",
|
|
790
1152
|
"stacked-bar",
|
|
791
1153
|
"stacked-area",
|
|
792
|
-
"scatter"
|
|
1154
|
+
"scatter",
|
|
1155
|
+
"funnel",
|
|
1156
|
+
"pyramid"
|
|
793
1157
|
]
|
|
794
1158
|
},
|
|
795
1159
|
"orientation": {
|
|
@@ -811,7 +1175,7 @@
|
|
|
811
1175
|
"validators": [
|
|
812
1176
|
"chart-type-supported",
|
|
813
1177
|
"chart-type-series-axis-compatible",
|
|
814
|
-
"
|
|
1178
|
+
"category-slice-single-metric",
|
|
815
1179
|
"combo-minimum-series",
|
|
816
1180
|
"editor-runtime-round-trip"
|
|
817
1181
|
],
|
|
@@ -2018,10 +2382,10 @@
|
|
|
2018
2382
|
"description": "Chart kind, dimensions, metrics and axes must be compatible."
|
|
2019
2383
|
},
|
|
2020
2384
|
{
|
|
2021
|
-
"validatorId": "
|
|
2385
|
+
"validatorId": "category-slice-single-metric",
|
|
2022
2386
|
"level": "error",
|
|
2023
|
-
"code": "
|
|
2024
|
-
"description": "Pie and
|
|
2387
|
+
"code": "CATEGORY_SLICE_SINGLE_METRIC",
|
|
2388
|
+
"description": "Pie, donut, funnel and pyramid charts require exactly one metric."
|
|
2025
2389
|
},
|
|
2026
2390
|
{
|
|
2027
2391
|
"validatorId": "combo-minimum-series",
|
|
@@ -2437,9 +2801,9 @@
|
|
|
2437
2801
|
{
|
|
2438
2802
|
"chunkIndex": 1,
|
|
2439
2803
|
"chunkKind": "authoring_manifest",
|
|
2440
|
-
"content": "{\"operationId\":\"chart.document.set\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2804
|
+
"content": "{\"operationId\":\"chart.document.set\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Set chart document Effects: set-value. Save this chart in the editor and reopen it without changing the runtime chart document.\",\"scope\":\"global\",\"target\":{\"kind\":\"dataBinding\",\"resolver\":\"x-ui-chart-document-root\",\"required\":false},\"inputContract\":{\"required\":[\"version\",\"kind\",\"source\"],\"properties\":[\"version\",\"kind\",\"chartId\",\"title\",\"subtitle\",\"source\",\"dimensions\",\"metrics\",\"events\"],\"semanticTerms\":[\"version\",\"kind\",\"chartId\",\"title\",\"subtitle\",\"source\",\"dimensions\",\"metrics\",\"events\",\"0.1.0\",\"bar\",\"combo\",\"horizontal-bar\",\"line\",\"pie\",\"donut\",\"area\",\"stacked-bar\",\"stacked-area\",\"scatter\",\"funnel\",\"pyramid\",\"source.kind\",\"source.resource\",\"source.operation\",\"source.options\",\"praxis.stats\",\"derived\",\"group-by\",\"timeseries\",\"distribution\",\"comparison\",\"source.options.comparisonPeriod\",\"source.options.comparisonPeriod.field\",\"source.options.comparisonPeriod.timezone\",\"source.options.comparisonPeriod.preset\",\"source.options.comparisonPeriod.mode\",\"TODAY\",\"YESTERDAY\",\"LAST_7_DAYS\",\"LAST_30_DAYS\",\"THIS_MONTH\",\"LAST_MONTH\",\"THIS_QUARTER\",\"THIS_YEAR\",\"PREVIOUS_ALIGNED\",\"PREVIOUS_CALENDAR_PERIOD\"]},\"effects\":[\"set-value\"],\"affectedPaths\":[\"chartDocument\"],\"validators\":[{\"validatorId\":\"chart-document-shape\",\"level\":\"error\",\"code\":\"CHART_DOCUMENT_SHAPE\",\"description\":\"Document must conform to PraxisXUiChartContract.\"},{\"validatorId\":\"chart-version-supported\",\"level\":\"error\",\"code\":\"CHART_VERSION_SUPPORTED\"},{\"validatorId\":\"chart-type-series-axis-compatible\",\"level\":\"error\",\"code\":\"CHART_TYPE_SERIES_AXIS_COMPATIBLE\",\"description\":\"Chart kind, dimensions, metrics and axes must be compatible.\"},{\"validatorId\":\"editor-runtime-round-trip\",\"level\":\"error\",\"code\":\"EDITOR_RUNTIME_ROUND_TRIP\",\"description\":\"PraxisChartConfigEditor must save/reopen the same canonical document that runtime consumes.\"}],\"preconditions\":[\"config-initialized\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"round-trip-editor-runtime\",\"request\":\"Save this chart in the editor and reopen it without changing the runtime chart document.\",\"operationId\":\"chart.document.set\",\"params\":{\"version\":\"0.1.0\",\"kind\":\"bar\",\"source\":{\"kind\":\"derived\"},\"dimensions\":[{\"field\":\"department\"}],\"metrics\":[{\"field\":\"total\",\"aggregation\":\"count\"}]},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
2441
2805
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2442
|
-
"contentHash": "
|
|
2806
|
+
"contentHash": "6faac5ef0b408dd65aa12b686b5eed32eaa4aa3b8601140749ddeb46e75949d3",
|
|
2443
2807
|
"sourceKind": "component_definition",
|
|
2444
2808
|
"sourceId": "praxis-chart",
|
|
2445
2809
|
"corpusVersion": "1.0.0"
|
|
@@ -2447,9 +2811,9 @@
|
|
|
2447
2811
|
{
|
|
2448
2812
|
"chunkIndex": 2,
|
|
2449
2813
|
"chunkKind": "authoring_manifest",
|
|
2450
|
-
"content": "{\"operationId\":\"chart.type.set\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2814
|
+
"content": "{\"operationId\":\"chart.type.set\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Set chart type Effects: merge-object. Use a bar chart for employees by department.\",\"scope\":\"global\",\"target\":{\"kind\":\"chartType\",\"resolver\":\"x-ui-chart-kind\",\"required\":false},\"inputContract\":{\"required\":[\"kind\"],\"properties\":[\"kind\",\"orientation\"],\"semanticTerms\":[\"kind\",\"orientation\",\"bar\",\"combo\",\"horizontal-bar\",\"line\",\"pie\",\"donut\",\"area\",\"stacked-bar\",\"stacked-area\",\"scatter\",\"funnel\",\"pyramid\",\"vertical\",\"horizontal\"]},\"effects\":[\"merge-object\"],\"affectedPaths\":[\"chartDocument.kind\",\"chartDocument.orientation\",\"chartDocument.metrics[]\",\"chartDocument.dimensions[]\"],\"validators\":[{\"validatorId\":\"chart-type-supported\",\"level\":\"error\",\"code\":\"CHART_TYPE_SUPPORTED\",\"description\":\"Chart kind must be supported by @praxisui/charts.\"},{\"validatorId\":\"chart-type-series-axis-compatible\",\"level\":\"error\",\"code\":\"CHART_TYPE_SERIES_AXIS_COMPATIBLE\",\"description\":\"Chart kind, dimensions, metrics and axes must be compatible.\"},{\"validatorId\":\"category-slice-single-metric\",\"level\":\"error\",\"code\":\"CATEGORY_SLICE_SINGLE_METRIC\",\"description\":\"Pie, donut, funnel and pyramid charts require exactly one metric.\"},{\"validatorId\":\"combo-minimum-series\",\"level\":\"error\",\"code\":\"COMBO_MINIMUM_SERIES\",\"description\":\"Combo charts require at least two metrics.\"},{\"validatorId\":\"editor-runtime-round-trip\",\"level\":\"error\",\"code\":\"EDITOR_RUNTIME_ROUND_TRIP\",\"description\":\"PraxisChartConfigEditor must save/reopen the same canonical document that runtime consumes.\"}],\"preconditions\":[\"config-initialized\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"set-bar-chart\",\"request\":\"Use a bar chart for employees by department.\",\"operationId\":\"chart.type.set\",\"params\":{\"kind\":\"bar\"},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
2451
2815
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2452
|
-
"contentHash": "
|
|
2816
|
+
"contentHash": "1c83fe5a705156a8cdfebb931996ad82a5d3ba174e017237e282bec2f6532b17",
|
|
2453
2817
|
"sourceKind": "component_definition",
|
|
2454
2818
|
"sourceId": "praxis-chart",
|
|
2455
2819
|
"corpusVersion": "1.0.0"
|
|
@@ -2457,9 +2821,9 @@
|
|
|
2457
2821
|
{
|
|
2458
2822
|
"chunkIndex": 3,
|
|
2459
2823
|
"chunkKind": "authoring_manifest",
|
|
2460
|
-
"content": "{\"operationId\":\"series.add\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2824
|
+
"content": "{\"operationId\":\"series.add\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Add chart series Effects: compile-domain-patch. Add salary as a summed metric.\",\"scope\":\"dataBinding\",\"target\":{\"kind\":\"series\",\"resolver\":\"x-ui-chart-metric-by-field\",\"required\":false},\"inputContract\":{\"required\":[\"field\"],\"properties\":[\"field\",\"label\",\"aggregation\",\"seriesKind\",\"axis\",\"color\",\"format\",\"afterField\"],\"semanticTerms\":[\"field\",\"label\",\"aggregation\",\"seriesKind\",\"axis\",\"color\",\"format\",\"afterField\",\"sum\",\"avg\",\"min\",\"max\",\"count\",\"distinct-count\",\"bar\",\"line\",\"area\",\"primary\",\"secondary\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"chartDocument.metrics[]\"],\"validators\":[{\"validatorId\":\"series-field-exists\",\"level\":\"error\",\"code\":\"SERIES_FIELD_EXISTS\",\"description\":\"Series field must exist in availableFields or schema context.\"},{\"validatorId\":\"series-field-aggregable\",\"level\":\"error\",\"code\":\"SERIES_FIELD_AGGREGABLE\",\"description\":\"Metric fields must support the requested aggregation.\"},{\"validatorId\":\"series-id-unique\",\"level\":\"error\",\"code\":\"SERIES_ID_UNIQUE\",\"description\":\"Metric/series identity must be stable and unique by field.\"},{\"validatorId\":\"chart-type-series-axis-compatible\",\"level\":\"error\",\"code\":\"CHART_TYPE_SERIES_AXIS_COMPATIBLE\",\"description\":\"Chart kind, dimensions, metrics and axes must be compatible.\"},{\"validatorId\":\"editor-runtime-round-trip\",\"level\":\"error\",\"code\":\"EDITOR_RUNTIME_ROUND_TRIP\",\"description\":\"PraxisChartConfigEditor must save/reopen the same canonical document that runtime consumes.\"}],\"preconditions\":[\"config-initialized\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"add-salary-series\",\"request\":\"Add salary as a summed metric.\",\"operationId\":\"series.add\",\"params\":{\"field\":\"salary\",\"aggregation\":\"sum\",\"label\":\"Salary\"},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
2461
2825
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2462
|
-
"contentHash": "
|
|
2826
|
+
"contentHash": "4a2ff273eebab60ee31a3467a5be1125aab688c64cc97086e9ca3ab3ae751a6e",
|
|
2463
2827
|
"sourceKind": "component_definition",
|
|
2464
2828
|
"sourceId": "praxis-chart",
|
|
2465
2829
|
"corpusVersion": "1.0.0"
|
|
@@ -2467,9 +2831,9 @@
|
|
|
2467
2831
|
{
|
|
2468
2832
|
"chunkIndex": 4,
|
|
2469
2833
|
"chunkKind": "authoring_manifest",
|
|
2470
|
-
"content": "{\"operationId\":\"series.remove\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2834
|
+
"content": "{\"operationId\":\"series.remove\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Remove chart series Effects: remove-by-key. Remove the old cost series. Remove total when more than one chart series resolves to total.\",\"scope\":\"dataBinding\",\"target\":{\"kind\":\"series\",\"resolver\":\"x-ui-chart-metric-by-field\",\"required\":true},\"inputContract\":{\"required\":[\"field\"],\"properties\":[\"field\",\"replacementField\"],\"semanticTerms\":[\"field\",\"replacementField\"]},\"effects\":[\"remove-by-key\"],\"affectedPaths\":[\"chartDocument.metrics[]\"],\"validators\":[{\"validatorId\":\"series-exists\",\"level\":\"error\",\"code\":\"SERIES_EXISTS\",\"description\":\"Series removal target must exist.\"},{\"validatorId\":\"destructive-series-removal-confirmed\",\"level\":\"error\",\"code\":\"DESTRUCTIVE_SERIES_REMOVAL_CONFIRMED\",\"description\":\"Removing a series requires explicit confirmation.\"},{\"validatorId\":\"chart-keeps-required-metric\",\"level\":\"error\",\"code\":\"CHART_KEEPS_REQUIRED_METRIC\",\"description\":\"A chart cannot be left without required metrics.\"},{\"validatorId\":\"editor-runtime-round-trip\",\"level\":\"error\",\"code\":\"EDITOR_RUNTIME_ROUND_TRIP\",\"description\":\"PraxisChartConfigEditor must save/reopen the same canonical document that runtime consumes.\"}],\"preconditions\":[\"config-initialized\",\"target-series-exists\",\"confirmation-collected\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"remove-old-series\",\"request\":\"Remove the old cost series.\",\"operationId\":\"series.remove\",\"target\":\"cost\",\"params\":{\"field\":\"cost\"},\"isPositive\":true}],\"negativeExamples\":[{\"id\":\"reject-ambiguous-series-target\",\"request\":\"Remove total when more than one chart series resolves to total.\",\"operationId\":\"series.remove\",\"target\":\"total\",\"params\":{\"field\":\"total\"},\"isPositive\":false}]}",
|
|
2471
2835
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2472
|
-
"contentHash": "
|
|
2836
|
+
"contentHash": "803d7eecc411e29fe9f916253bf1e5f970232416d590130acb558f1c4791a562",
|
|
2473
2837
|
"sourceKind": "component_definition",
|
|
2474
2838
|
"sourceId": "praxis-chart",
|
|
2475
2839
|
"corpusVersion": "1.0.0"
|
|
@@ -2477,9 +2841,9 @@
|
|
|
2477
2841
|
{
|
|
2478
2842
|
"chunkIndex": 5,
|
|
2479
2843
|
"chunkKind": "authoring_manifest",
|
|
2480
|
-
"content": "{\"operationId\":\"axis.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2844
|
+
"content": "{\"operationId\":\"axis.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Configure chart axis Effects: compile-domain-patch. Put margin on a secondary axis for the combo chart.\",\"scope\":\"dataBinding\",\"target\":{\"kind\":\"axis\",\"resolver\":\"x-ui-chart-dimension-or-metric-axis\",\"required\":true},\"inputContract\":{\"required\":[],\"properties\":[\"dimensionField\",\"dimensionRole\",\"metricField\",\"metricAxis\",\"orientation\"],\"semanticTerms\":[\"dimensionField\",\"dimensionRole\",\"metricField\",\"metricAxis\",\"orientation\",\"category\",\"series\",\"segment\",\"time\",\"value\",\"primary\",\"secondary\",\"vertical\",\"horizontal\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"chartDocument.dimensions[]\",\"chartDocument.metrics[].axis\",\"chartDocument.orientation\"],\"validators\":[{\"validatorId\":\"axis-field-exists\",\"level\":\"error\",\"code\":\"AXIS_FIELD_EXISTS\",\"description\":\"Axis/dimension fields must exist in availableFields or schema context.\"},{\"validatorId\":\"secondary-axis-combo-only\",\"level\":\"error\",\"code\":\"SECONDARY_AXIS_COMBO_ONLY\",\"description\":\"Secondary axis is supported only for combo charts.\"},{\"validatorId\":\"cartesian-dimension-required\",\"level\":\"error\",\"code\":\"CARTESIAN_DIMENSION_REQUIRED\",\"description\":\"Cartesian charts require at least one dimension.\"},{\"validatorId\":\"editor-runtime-round-trip\",\"level\":\"error\",\"code\":\"EDITOR_RUNTIME_ROUND_TRIP\",\"description\":\"PraxisChartConfigEditor must save/reopen the same canonical document that runtime consumes.\"}],\"preconditions\":[\"config-initialized\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"configure-secondary-axis\",\"request\":\"Put margin on a secondary axis for the combo chart.\",\"operationId\":\"axis.configure\",\"params\":{\"metricField\":\"margin\",\"metricAxis\":\"secondary\"},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
2481
2845
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2482
|
-
"contentHash": "
|
|
2846
|
+
"contentHash": "398bd117f73087b29a90fdbac91a43e0af51947b52a38c176c104ba1ab64a6f3",
|
|
2483
2847
|
"sourceKind": "component_definition",
|
|
2484
2848
|
"sourceId": "praxis-chart",
|
|
2485
2849
|
"corpusVersion": "1.0.0"
|
|
@@ -2487,9 +2851,9 @@
|
|
|
2487
2851
|
{
|
|
2488
2852
|
"chunkIndex": 6,
|
|
2489
2853
|
"chunkKind": "authoring_manifest",
|
|
2490
|
-
"content": "{\"operationId\":\"data.resource.bind\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2854
|
+
"content": "{\"operationId\":\"data.resource.bind\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Bind chart data resource Effects: compile-domain-patch. Bind this chart to payroll stats grouped by department. Compare active employees by department with the previous aligned 30-day period. Use the prompt example text to decide which backend endpoint to call.\",\"scope\":\"dataBinding\",\"target\":{\"kind\":\"dataBinding\",\"resolver\":\"x-ui-chart-source-and-field-catalog\",\"required\":false},\"inputContract\":{\"required\":[\"sourceKind\"],\"properties\":[\"sourceKind\",\"resource\",\"operation\",\"comparisonPeriod\",\"dimensions\",\"metrics\"],\"semanticTerms\":[\"sourceKind\",\"resource\",\"operation\",\"comparisonPeriod\",\"dimensions\",\"metrics\",\"praxis.stats\",\"derived\",\"group-by\",\"timeseries\",\"distribution\",\"comparison\",\"comparisonPeriod.field\",\"comparisonPeriod.timezone\",\"comparisonPeriod.preset\",\"comparisonPeriod.mode\",\"TODAY\",\"YESTERDAY\",\"LAST_7_DAYS\",\"LAST_30_DAYS\",\"THIS_MONTH\",\"LAST_MONTH\",\"THIS_QUARTER\",\"THIS_YEAR\",\"PREVIOUS_ALIGNED\",\"PREVIOUS_CALENDAR_PERIOD\",\"dimensions.field\",\"dimensions.role\",\"metrics.field\",\"metrics.label\",\"metrics.aggregation\",\"metrics.seriesKind\",\"metrics.axis\",\"metrics.color\",\"metrics.format\",\"metrics.afterField\",\"sum\",\"avg\",\"min\",\"max\",\"count\",\"distinct-count\",\"bar\",\"line\",\"area\",\"primary\",\"secondary\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"chartDocument.source\",\"chartDocument.source.options.comparisonPeriod\",\"chartDocument.dimensions[]\",\"chartDocument.metrics[]\"],\"validators\":[{\"validatorId\":\"remote-resource-in-api-metadata\",\"level\":\"error\",\"code\":\"REMOTE_RESOURCE_IN_API_METADATA\",\"description\":\"Remote praxis.stats resource must equal a governed root-relative availableResources[].path beginning with exactly one slash; a discovery id is not an executable resource path.\"},{\"validatorId\":\"bound-fields-exist\",\"level\":\"error\",\"code\":\"BOUND_FIELDS_EXIST\",\"description\":\"Bound dimensions and metrics must exist in the capability-backed field context and satisfy its operation, aggregation and distribution-mode eligibility.\"},{\"validatorId\":\"stats-operation-supported\",\"level\":\"error\",\"code\":\"STATS_OPERATION_SUPPORTED\",\"description\":\"Remote datasource operation must be supported by the stats backend.\"},{\"validatorId\":\"comparison-period-complete\",\"level\":\"error\",\"code\":\"COMPARISON_PERIOD_COMPLETE\",\"description\":\"Comparison requires a time-series eligible period field, timezone, preset and mode grounded in the governed resource capabilities.\"},{\"validatorId\":\"comparison-metrics-supported\",\"level\":\"error\",\"code\":\"COMPARISON_METRICS_SUPPORTED\",\"description\":\"Comparison requires unique metrics[] aliases using only COUNT, DISTINCT_COUNT or SUM capabilities; singular metric payloads are not authorable.\"},{\"validatorId\":\"editor-runtime-round-trip\",\"level\":\"error\",\"code\":\"EDITOR_RUNTIME_ROUND_TRIP\",\"description\":\"PraxisChartConfigEditor must save/reopen the same canonical document that runtime consumes.\"}],\"preconditions\":[\"config-initialized\"],\"submissionImpact\":\"affects-remote-binding\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"bind-stats-resource\",\"request\":\"Bind this chart to payroll stats grouped by department.\",\"operationId\":\"data.resource.bind\",\"params\":{\"sourceKind\":\"praxis.stats\",\"resource\":\"/api/stats/payroll\",\"operation\":\"group-by\"},\"isPositive\":true},{\"id\":\"bind-comparison-resource\",\"request\":\"Compare active employees by department with the previous aligned 30-day period.\",\"operationId\":\"data.resource.bind\",\"params\":{\"sourceKind\":\"praxis.stats\",\"resource\":\"/api/human-resources/employees\",\"operation\":\"comparison\",\"comparisonPeriod\":{\"field\":\"admissionDate\",\"timezone\":\"America/Sao_Paulo\",\"preset\":\"LAST_30_DAYS\",\"mode\":\"PREVIOUS_ALIGNED\"},\"dimensions\":[{\"field\":\"department\"}],\"metrics\":[{\"field\":\"employeeId\",\"aggregation\":\"distinct-count\"}]},\"isPositive\":true}],\"negativeExamples\":[{\"id\":\"reject-prompt-routing\",\"request\":\"Use the prompt example text to decide which backend endpoint to call.\",\"operationId\":\"data.resource.bind\",\"params\":{\"sourceKind\":\"praxis.stats\",\"resource\":\"from prompt example\"},\"isPositive\":false}]}",
|
|
2491
2855
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2492
|
-
"contentHash": "
|
|
2856
|
+
"contentHash": "cf71b7f0b53d85de9e86e39991d3b8e9484fdc69eacc8dd7e069f87a7629194e",
|
|
2493
2857
|
"sourceKind": "component_definition",
|
|
2494
2858
|
"sourceId": "praxis-chart",
|
|
2495
2859
|
"corpusVersion": "1.0.0"
|
|
@@ -2497,9 +2861,9 @@
|
|
|
2497
2861
|
{
|
|
2498
2862
|
"chunkIndex": 7,
|
|
2499
2863
|
"chunkKind": "authoring_manifest",
|
|
2500
|
-
"content": "{\"operationId\":\"queryContext.set\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2864
|
+
"content": "{\"operationId\":\"queryContext.set\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Set chart query context Effects: set-value. Limit the chart to active employees and sort by total descending.\",\"scope\":\"dataBinding\",\"target\":{\"kind\":\"queryContext\",\"resolver\":\"praxis-chart-query-context\",\"required\":false},\"inputContract\":{\"required\":[],\"properties\":[\"filters\",\"filterExpression\",\"sort\",\"limit\",\"page\",\"meta\"],\"semanticTerms\":[\"filters\",\"filterExpression\",\"sort\",\"limit\",\"page\",\"meta\"]},\"effects\":[\"set-value\"],\"affectedPaths\":[\"queryContext\"],\"validators\":[{\"validatorId\":\"query-context-structured\",\"level\":\"error\",\"code\":\"QUERY_CONTEXT_STRUCTURED\",\"description\":\"queryContext must use the canonical @praxisui/core structure for filters, filterExpression, sort, limit, page and meta.\"},{\"validatorId\":\"query-context-filter-expression-stats-unsupported\",\"level\":\"error\",\"code\":\"QUERY_CONTEXT_FILTER_EXPRESSION_STATS_UNSUPPORTED\",\"description\":\"praxis.stats currently executes only flat queryContext.filters; governed filterExpression must be preserved for diagnostics and rejected until backend expression support is declared.\"},{\"validatorId\":\"query-context-fields-exist\",\"level\":\"warning\",\"code\":\"QUERY_CONTEXT_FIELDS_EXIST\",\"description\":\"queryContext filter fields should exist in the schema/data context.\"},{\"validatorId\":\"query-context-safe-values\",\"level\":\"error\",\"code\":\"QUERY_CONTEXT_SAFE_VALUES\",\"description\":\"queryContext values must be serializable safe data.\"},{\"validatorId\":\"editor-runtime-round-trip\",\"level\":\"error\",\"code\":\"EDITOR_RUNTIME_ROUND_TRIP\",\"description\":\"PraxisChartConfigEditor must save/reopen the same canonical document that runtime consumes.\"}],\"preconditions\":[\"config-initialized\"],\"submissionImpact\":\"affects-schema-backed-data\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"set-query-context\",\"request\":\"Limit the chart to active employees and sort by total descending.\",\"operationId\":\"queryContext.set\",\"params\":{\"filters\":{\"status\":\"ACTIVE\"},\"sort\":[\"total,desc\"],\"limit\":10},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
2501
2865
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2502
|
-
"contentHash": "
|
|
2866
|
+
"contentHash": "137ab3c245e031cb8af075b3b87e6f338d1a469deb99eecf50e8a3bf839525b8",
|
|
2503
2867
|
"sourceKind": "component_definition",
|
|
2504
2868
|
"sourceId": "praxis-chart",
|
|
2505
2869
|
"corpusVersion": "1.0.0"
|
|
@@ -2507,9 +2871,9 @@
|
|
|
2507
2871
|
{
|
|
2508
2872
|
"chunkIndex": 8,
|
|
2509
2873
|
"chunkKind": "authoring_manifest",
|
|
2510
|
-
"content": "{\"operationId\":\"pointClick.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2874
|
+
"content": "{\"operationId\":\"pointClick.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Configure chart point click Effects: compile-domain-patch.\",\"scope\":\"eventMapping\",\"target\":{\"kind\":\"pointClick\",\"resolver\":\"x-ui-chart-events-point-click\",\"required\":false},\"inputContract\":{\"required\":[\"action\"],\"properties\":[\"action\",\"target\",\"mapping\"],\"semanticTerms\":[\"action\",\"target\",\"mapping\",\"filter-widget\",\"open-detail\",\"navigate\",\"update-context\",\"emit\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"chartDocument.events.pointClick\"],\"validators\":[{\"validatorId\":\"point-click-action-structured\",\"level\":\"error\",\"code\":\"POINT_CLICK_ACTION_STRUCTURED\",\"description\":\"Configured pointClick actions must be emitted through pointAction while pointClick remains raw point evidence.\"},{\"validatorId\":\"event-target-governed\",\"level\":\"error\",\"code\":\"EVENT_TARGET_GOVERNED\",\"description\":\"Event targets must resolve to exactly one availableTargets[].id and declare the authored event plus action; missing, duplicate or cross-event identities fail closed.\"},{\"validatorId\":\"event-mapping-fields-exist\",\"level\":\"error\",\"code\":\"EVENT_MAPPING_FIELDS_EXIST\",\"description\":\"Event mapping source fields must exist in chart data context; praxis.stats reserves key for bucket identity and label for presentation.\"},{\"validatorId\":\"event-action-supported\",\"level\":\"error\",\"code\":\"EVENT_ACTION_SUPPORTED\",\"description\":\"Event action must be one of the supported structured action kinds.\"},{\"validatorId\":\"editor-runtime-round-trip\",\"level\":\"error\",\"code\":\"EDITOR_RUNTIME_ROUND_TRIP\",\"description\":\"PraxisChartConfigEditor must save/reopen the same canonical document that runtime consumes.\"}],\"preconditions\":[\"config-initialized\"],\"submissionImpact\":\"affects-schema-backed-data\",\"presentationAffordances\":[],\"positiveExamples\":[],\"negativeExamples\":[]}",
|
|
2511
2875
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2512
|
-
"contentHash": "
|
|
2876
|
+
"contentHash": "5e728512774882f35caddcca3f6b399454df20c6cb8de0ecc41473099986e0da",
|
|
2513
2877
|
"sourceKind": "component_definition",
|
|
2514
2878
|
"sourceId": "praxis-chart",
|
|
2515
2879
|
"corpusVersion": "1.0.0"
|
|
@@ -2517,9 +2881,9 @@
|
|
|
2517
2881
|
{
|
|
2518
2882
|
"chunkIndex": 9,
|
|
2519
2883
|
"chunkKind": "authoring_manifest",
|
|
2520
|
-
"content": "{\"operationId\":\"crossFilter.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2884
|
+
"content": "{\"operationId\":\"crossFilter.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Configure chart cross-filter Effects: compile-domain-patch. Use selected department to filter the employee table. Use the governed department bucket identity to filter the employee table.\",\"scope\":\"eventMapping\",\"target\":{\"kind\":\"crossFilter\",\"resolver\":\"x-ui-chart-events-cross-filter\",\"required\":false},\"inputContract\":{\"required\":[\"action\"],\"properties\":[\"action\",\"target\",\"mapping\"],\"semanticTerms\":[\"action\",\"target\",\"mapping\",\"filter-widget\",\"open-detail\",\"navigate\",\"update-context\",\"emit\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"chartDocument.events.crossFilter\"],\"validators\":[{\"validatorId\":\"cross-filter-output-structured\",\"level\":\"error\",\"code\":\"CROSS_FILTER_OUTPUT_STRUCTURED\",\"description\":\"Cross-filter output must be structured as query-context filters.\"},{\"validatorId\":\"event-target-governed\",\"level\":\"error\",\"code\":\"EVENT_TARGET_GOVERNED\",\"description\":\"Event targets must resolve to exactly one availableTargets[].id and declare the authored event plus action; missing, duplicate or cross-event identities fail closed.\"},{\"validatorId\":\"event-mapping-fields-exist\",\"level\":\"error\",\"code\":\"EVENT_MAPPING_FIELDS_EXIST\",\"description\":\"Event mapping source fields must exist in chart data context; praxis.stats reserves key for bucket identity and label for presentation.\"},{\"validatorId\":\"editor-runtime-round-trip\",\"level\":\"error\",\"code\":\"EDITOR_RUNTIME_ROUND_TRIP\",\"description\":\"PraxisChartConfigEditor must save/reopen the same canonical document that runtime consumes.\"}],\"preconditions\":[\"config-initialized\"],\"submissionImpact\":\"affects-schema-backed-data\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"configure-cross-filter\",\"request\":\"Use selected department to filter the employee table.\",\"operationId\":\"crossFilter.configure\",\"params\":{\"action\":\"filter-widget\",\"target\":\"employeesTable\",\"mapping\":{\"department\":\"department\"}},\"isPositive\":true},{\"id\":\"configure-stats-key-cross-filter\",\"request\":\"Use the governed department bucket identity to filter the employee table.\",\"operationId\":\"crossFilter.configure\",\"params\":{\"action\":\"filter-widget\",\"target\":\"employeesTable\",\"mapping\":{\"key\":\"departmentIdsIn\"}},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
2521
2885
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2522
|
-
"contentHash": "
|
|
2886
|
+
"contentHash": "b4bd782c24e28724ddb6b4e12fa8a2eb7ed55d73743f000e0599b25249febef6",
|
|
2523
2887
|
"sourceKind": "component_definition",
|
|
2524
2888
|
"sourceId": "praxis-chart",
|
|
2525
2889
|
"corpusVersion": "1.0.0"
|
|
@@ -2527,9 +2891,9 @@
|
|
|
2527
2891
|
{
|
|
2528
2892
|
"chunkIndex": 10,
|
|
2529
2893
|
"chunkKind": "authoring_manifest",
|
|
2530
|
-
"content": "{\"operationId\":\"drilldown.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2894
|
+
"content": "{\"operationId\":\"drilldown.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Configure chart drilldown Effects: compile-domain-patch. Open the department detail when a point is clicked. Navigate to javascript:alert(1) on drilldown.\",\"scope\":\"eventMapping\",\"target\":{\"kind\":\"drilldown\",\"resolver\":\"x-ui-chart-events-drill-down\",\"required\":false},\"inputContract\":{\"required\":[\"action\"],\"properties\":[\"action\",\"target\",\"mapping\"],\"semanticTerms\":[\"action\",\"target\",\"mapping\",\"filter-widget\",\"open-detail\",\"navigate\",\"update-context\",\"emit\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"chartDocument.events.drillDown\"],\"validators\":[{\"validatorId\":\"drilldown-target-governed\",\"level\":\"error\",\"code\":\"DRILLDOWN_TARGET_GOVERNED\",\"description\":\"Drilldown target must be a governed route or widget target.\"},{\"validatorId\":\"event-mapping-fields-exist\",\"level\":\"error\",\"code\":\"EVENT_MAPPING_FIELDS_EXIST\",\"description\":\"Event mapping source fields must exist in chart data context; praxis.stats reserves key for bucket identity and label for presentation.\"},{\"validatorId\":\"event-action-supported\",\"level\":\"error\",\"code\":\"EVENT_ACTION_SUPPORTED\",\"description\":\"Event action must be one of the supported structured action kinds.\"},{\"validatorId\":\"editor-runtime-round-trip\",\"level\":\"error\",\"code\":\"EDITOR_RUNTIME_ROUND_TRIP\",\"description\":\"PraxisChartConfigEditor must save/reopen the same canonical document that runtime consumes.\"}],\"preconditions\":[\"config-initialized\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"configure-drilldown\",\"request\":\"Open the department detail when a point is clicked.\",\"operationId\":\"drilldown.configure\",\"params\":{\"action\":\"navigate\",\"target\":\"/departments/detail\",\"mapping\":{\"department\":\"departmentId\"}},\"isPositive\":true}],\"negativeExamples\":[{\"id\":\"reject-unsafe-target\",\"request\":\"Navigate to javascript:alert(1) on drilldown.\",\"operationId\":\"drilldown.configure\",\"params\":{\"event\":\"drillDown\",\"action\":\"navigate\",\"target\":\"javascript:alert(1)\"},\"isPositive\":false}]}",
|
|
2531
2895
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2532
|
-
"contentHash": "
|
|
2896
|
+
"contentHash": "e4fa18ba6088734b26409b34f0cf9ac04decf7be4605366e48951ce6caf5c2f9",
|
|
2533
2897
|
"sourceKind": "component_definition",
|
|
2534
2898
|
"sourceId": "praxis-chart",
|
|
2535
2899
|
"corpusVersion": "1.0.0"
|
|
@@ -2537,9 +2901,9 @@
|
|
|
2537
2901
|
{
|
|
2538
2902
|
"chunkIndex": 11,
|
|
2539
2903
|
"chunkKind": "authoring_manifest",
|
|
2540
|
-
"content": "{\"operationId\":\"selection.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2904
|
+
"content": "{\"operationId\":\"selection.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Configure chart selection Effects: compile-domain-patch. Emit selected department as a structured selection event.\",\"scope\":\"selection\",\"target\":{\"kind\":\"selection\",\"resolver\":\"x-ui-chart-events-selection-change\",\"required\":false},\"inputContract\":{\"required\":[\"action\"],\"properties\":[\"action\",\"target\",\"mapping\"],\"semanticTerms\":[\"action\",\"target\",\"mapping\",\"filter-widget\",\"open-detail\",\"navigate\",\"update-context\",\"emit\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"chartDocument.events.selectionChange\"],\"validators\":[{\"validatorId\":\"selection-output-structured\",\"level\":\"error\",\"code\":\"SELECTION_OUTPUT_STRUCTURED\",\"description\":\"Selection output must resolve selected point filters deterministically.\"},{\"validatorId\":\"event-target-governed\",\"level\":\"error\",\"code\":\"EVENT_TARGET_GOVERNED\",\"description\":\"Event targets must resolve to exactly one availableTargets[].id and declare the authored event plus action; missing, duplicate or cross-event identities fail closed.\"},{\"validatorId\":\"event-mapping-fields-exist\",\"level\":\"error\",\"code\":\"EVENT_MAPPING_FIELDS_EXIST\",\"description\":\"Event mapping source fields must exist in chart data context; praxis.stats reserves key for bucket identity and label for presentation.\"},{\"validatorId\":\"event-action-supported\",\"level\":\"error\",\"code\":\"EVENT_ACTION_SUPPORTED\",\"description\":\"Event action must be one of the supported structured action kinds.\"},{\"validatorId\":\"editor-runtime-round-trip\",\"level\":\"error\",\"code\":\"EDITOR_RUNTIME_ROUND_TRIP\",\"description\":\"PraxisChartConfigEditor must save/reopen the same canonical document that runtime consumes.\"}],\"preconditions\":[\"config-initialized\"],\"submissionImpact\":\"affects-schema-backed-data\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"configure-selection\",\"request\":\"Emit selected department as a structured selection event.\",\"operationId\":\"selection.configure\",\"params\":{\"action\":\"emit\",\"mapping\":{\"department\":\"department\"}},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
2541
2905
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2542
|
-
"contentHash": "
|
|
2906
|
+
"contentHash": "e5bc5749765c25d4099601dfbe1311f78d54ab80510fe7eaf4a705e7094a4a81",
|
|
2543
2907
|
"sourceKind": "component_definition",
|
|
2544
2908
|
"sourceId": "praxis-chart",
|
|
2545
2909
|
"corpusVersion": "1.0.0"
|
|
@@ -2547,9 +2911,9 @@
|
|
|
2547
2911
|
{
|
|
2548
2912
|
"chunkIndex": 12,
|
|
2549
2913
|
"chunkKind": "authoring_manifest",
|
|
2550
|
-
"content": "{\"operationId\":\"legend.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2914
|
+
"content": "{\"operationId\":\"legend.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Configure chart legend Effects: set-value. Show the legend.\",\"scope\":\"skin\",\"target\":{\"kind\":\"legend\",\"resolver\":\"x-ui-chart-legend-feature\",\"required\":false},\"inputContract\":{\"required\":[\"enabled\"],\"properties\":[\"enabled\"],\"semanticTerms\":[\"enabled\"]},\"effects\":[\"set-value\"],\"affectedPaths\":[\"chartDocument.legend\"],\"validators\":[{\"validatorId\":\"feature-toggle-valid\",\"level\":\"error\",\"code\":\"FEATURE_TOGGLE_VALID\",\"description\":\"Legend and tooltip feature values must be boolean or toggleable feature objects.\"},{\"validatorId\":\"editor-runtime-round-trip\",\"level\":\"error\",\"code\":\"EDITOR_RUNTIME_ROUND_TRIP\",\"description\":\"PraxisChartConfigEditor must save/reopen the same canonical document that runtime consumes.\"}],\"preconditions\":[\"config-initialized\"],\"submissionImpact\":\"visual-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"toggle-legend\",\"request\":\"Show the legend.\",\"operationId\":\"legend.configure\",\"params\":{\"enabled\":true},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
2551
2915
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2552
|
-
"contentHash": "
|
|
2916
|
+
"contentHash": "a7fa2928962ed3573eef43f63c35bfef7de21245a0d378cf599beaad799bcfb0",
|
|
2553
2917
|
"sourceKind": "component_definition",
|
|
2554
2918
|
"sourceId": "praxis-chart",
|
|
2555
2919
|
"corpusVersion": "1.0.0"
|
|
@@ -2557,9 +2921,9 @@
|
|
|
2557
2921
|
{
|
|
2558
2922
|
"chunkIndex": 13,
|
|
2559
2923
|
"chunkKind": "authoring_manifest",
|
|
2560
|
-
"content": "{\"operationId\":\"tooltip.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2924
|
+
"content": "{\"operationId\":\"tooltip.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Configure chart tooltip Effects: set-value. Disable tooltips.\",\"scope\":\"skin\",\"target\":{\"kind\":\"tooltip\",\"resolver\":\"x-ui-chart-tooltip-feature\",\"required\":false},\"inputContract\":{\"required\":[\"enabled\"],\"properties\":[\"enabled\"],\"semanticTerms\":[\"enabled\"]},\"effects\":[\"set-value\"],\"affectedPaths\":[\"chartDocument.tooltip\"],\"validators\":[{\"validatorId\":\"feature-toggle-valid\",\"level\":\"error\",\"code\":\"FEATURE_TOGGLE_VALID\",\"description\":\"Legend and tooltip feature values must be boolean or toggleable feature objects.\"},{\"validatorId\":\"editor-runtime-round-trip\",\"level\":\"error\",\"code\":\"EDITOR_RUNTIME_ROUND_TRIP\",\"description\":\"PraxisChartConfigEditor must save/reopen the same canonical document that runtime consumes.\"}],\"preconditions\":[\"config-initialized\"],\"submissionImpact\":\"visual-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"toggle-tooltip\",\"request\":\"Disable tooltips.\",\"operationId\":\"tooltip.configure\",\"params\":{\"enabled\":false},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
2561
2925
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2562
|
-
"contentHash": "
|
|
2926
|
+
"contentHash": "59715858e03aca14b1644e483d1024fa4d3cfa9d67d48e9beca4cb99567ac4df",
|
|
2563
2927
|
"sourceKind": "component_definition",
|
|
2564
2928
|
"sourceId": "praxis-chart",
|
|
2565
2929
|
"corpusVersion": "1.0.0"
|
|
@@ -2567,9 +2931,9 @@
|
|
|
2567
2931
|
{
|
|
2568
2932
|
"chunkIndex": 14,
|
|
2569
2933
|
"chunkKind": "authoring_manifest",
|
|
2570
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2934
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"identity\"}",
|
|
2571
2935
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2572
|
-
"contentHash": "
|
|
2936
|
+
"contentHash": "94b86e959840ad7bc8583a6ea469af8da3fa026a6c2a26dfb63704a32647ee53",
|
|
2573
2937
|
"sourceKind": "component_definition",
|
|
2574
2938
|
"sourceId": "praxis-chart",
|
|
2575
2939
|
"corpusVersion": "1.0.0"
|
|
@@ -2577,9 +2941,9 @@
|
|
|
2577
2941
|
{
|
|
2578
2942
|
"chunkIndex": 15,
|
|
2579
2943
|
"chunkKind": "authoring_manifest",
|
|
2580
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2944
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"runtimeInputs\",\"runtimeInputs\":[{\"name\":\"chartDocument\",\"type\":\"PraxisXUiChartContract | null\",\"description\":\"Canonical x-ui.chart document used as the authoring source of truth.\"},{\"name\":\"config\",\"type\":\"PraxisChartConfig\",\"description\":\"Runtime chart configuration mapped from or supplied beside the canonical chart document.\"},{\"name\":\"queryContext\",\"type\":\"PraxisChartQueryContext | null\",\"description\":\"Canonical @praxisui/core query context observed by remote datasource requests; flat filters execute in praxis.stats and governed filterExpression is preserved but rejected until stats expression support is proven.\"},{\"name\":\"remoteDataResolver\",\"type\":\"PraxisChartRemoteDataResolver | null\",\"description\":\"Host-governed remote row resolver for integrations outside the default praxis.stats client.\"},{\"name\":\"availableResources\",\"type\":\"ChartEditorResourceOption[]\",\"description\":\"Transient authoring catalog: id is the stable /schemas/catalog discovery identity, while path is the governed root-relative operational value persisted to chartDocument.source.resource.\"},{\"name\":\"availableFields\",\"type\":\"ChartEditorFieldOption[]\",\"description\":\"Transient capability-backed field catalog. operations, aggregations and distributionModes declare exact group-by, timeseries, distribution/terms and distribution/histogram eligibility.\"},{\"name\":\"availableTargets\",\"type\":\"ChartEditorTargetOption[]\",\"description\":\"Transient visual-authoring targets derived from existing top-level composition links to public, non-deprecated widget ports or explicitly writable declared page state; id is the unique authoring identity and events[] declares the exact structured Chart events authorized by compatible links. Raw pointClick evidence never authorizes events.pointClick, which is emitted through pointAction. Local transform.output semantic-kind inspection does not replace a Core-validated transform-output projection (P2), and the visual catalog does not yet publish the target input-schema/port projection required for end-to-end mapping validation.\"}]}",
|
|
2581
2945
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2582
|
-
"contentHash": "
|
|
2946
|
+
"contentHash": "86eb867274349362d768b23c28d58d1f2a2600f79d27108c11bbf6297b235c67",
|
|
2583
2947
|
"sourceKind": "component_definition",
|
|
2584
2948
|
"sourceId": "praxis-chart",
|
|
2585
2949
|
"corpusVersion": "1.0.0"
|
|
@@ -2587,9 +2951,9 @@
|
|
|
2587
2951
|
{
|
|
2588
2952
|
"chunkIndex": 16,
|
|
2589
2953
|
"chunkKind": "authoring_manifest",
|
|
2590
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2954
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"editableTargets\",\"editableTargets\":[{\"kind\":\"chartType\",\"resolver\":\"x-ui-chart-kind\",\"description\":\"Canonical `kind` field in PraxisXUiChartContract.\"},{\"kind\":\"series\",\"resolver\":\"x-ui-chart-metric-by-field\",\"description\":\"Metric-backed series definition in `metrics[]`, keyed by field.\"},{\"kind\":\"axis\",\"resolver\":\"x-ui-chart-dimension-or-metric-axis\",\"description\":\"Dimension role, metric axis and chart orientation semantics.\"},{\"kind\":\"dataBinding\",\"resolver\":\"x-ui-chart-source-and-field-catalog\",\"description\":\"Source, dimensions, metrics and resource/field bindings.\"},{\"kind\":\"queryContext\",\"resolver\":\"praxis-chart-query-context\",\"description\":\"Runtime @praxisui/core queryContext contract for filters, filterExpression, sort, limit, page and governance metadata.\"},{\"kind\":\"pointClick\",\"resolver\":\"x-ui-chart-events-point-click\",\"description\":\"Raw pointClick evidence plus a separate pointAction output for configured pointClick actions.\"},{\"kind\":\"crossFilter\",\"resolver\":\"x-ui-chart-events-cross-filter\",\"description\":\"Cross-filter event mapping emitted as structured query-context filters.\"},{\"kind\":\"drilldown\",\"resolver\":\"x-ui-chart-events-drill-down\",\"description\":\"Drilldown event mapping and governed target.\"},{\"kind\":\"selection\",\"resolver\":\"x-ui-chart-events-selection-change\",\"description\":\"Single-point selection event enablement and mapping semantics; toggle and multi-select are intentionally not advertised.\"},{\"kind\":\"legend\",\"resolver\":\"x-ui-chart-legend-feature\",\"description\":\"Legend visibility through boolean or toggleable feature object.\"},{\"kind\":\"tooltip\",\"resolver\":\"x-ui-chart-tooltip-feature\",\"description\":\"Tooltip visibility through boolean or toggleable feature object.\"}]}",
|
|
2591
2955
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2592
|
-
"contentHash": "
|
|
2956
|
+
"contentHash": "6c6868847223be78ca3090e70de72156951bec8fc24d67c5f05714c5c6636d65",
|
|
2593
2957
|
"sourceKind": "component_definition",
|
|
2594
2958
|
"sourceId": "praxis-chart",
|
|
2595
2959
|
"corpusVersion": "1.0.0"
|
|
@@ -2597,9 +2961,9 @@
|
|
|
2597
2961
|
{
|
|
2598
2962
|
"chunkIndex": 17,
|
|
2599
2963
|
"chunkKind": "authoring_manifest",
|
|
2600
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2964
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"chart.document.set\",\"title\":\"Set chart document\",\"scope\":\"global\",\"targetKind\":\"dataBinding\",\"target\":{\"kind\":\"dataBinding\",\"resolver\":\"x-ui-chart-document-root\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"version\",\"kind\",\"source\"],\"properties\":{\"version\":{\"const\":\"0.1.0\"},\"kind\":{\"enum\":[\"bar\",\"combo\",\"horizontal-bar\",\"line\",\"pie\",\"donut\",\"area\",\"stacked-bar\",\"stacked-area\",\"scatter\",\"funnel\",\"pyramid\"]},\"chartId\":{\"type\":\"string\"},\"title\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"object\"}]},\"subtitle\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"object\"}]},\"source\":{\"type\":\"object\",\"required\":[\"kind\"],\"properties\":{\"kind\":{\"enum\":[\"praxis.stats\",\"derived\"]},\"resource\":{\"type\":\"string\"},\"operation\":{\"enum\":[\"group-by\",\"timeseries\",\"distribution\",\"comparison\"]},\"options\":{\"type\":\"object\",\"properties\":{\"comparisonPeriod\":{\"type\":\"object\",\"required\":[\"field\",\"timezone\",\"preset\",\"mode\"],\"properties\":{\"field\":{\"type\":\"string\"},\"timezone\":{\"type\":\"string\"},\"preset\":{\"enum\":[\"TODAY\",\"YESTERDAY\",\"LAST_7_DAYS\",\"LAST_30_DAYS\",\"THIS_MONTH\",\"LAST_MONTH\",\"THIS_QUARTER\",\"THIS_YEAR\"]},\"mode\":{\"enum\":[\"PREVIOUS_ALIGNED\",\"PREVIOUS_CALENDAR_PERIOD\"]}}}}}}},\"dimensions\":{\"type\":\"array\",\"items\":{\"type\":\"object\"}},\"metrics\":{\"type\":\"array\",\"items\":{\"type\":\"object\"}},\"events\":{\"type\":\"object\"}}},\"effects\":[{\"kind\":\"set-value\",\"path\":\"chartDocument\"}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"chart-document-shape\",\"chart-version-supported\",\"chart-type-series-axis-compatible\",\"editor-runtime-round-trip\"],\"affectedPaths\":[\"chartDocument\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"chart.type.set\",\"title\":\"Set chart type\",\"scope\":\"global\",\"targetKind\":\"chartType\",\"target\":{\"kind\":\"chartType\",\"resolver\":\"x-ui-chart-kind\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"kind\"],\"properties\":{\"kind\":{\"enum\":[\"bar\",\"combo\",\"horizontal-bar\",\"line\",\"pie\",\"donut\",\"area\",\"stacked-bar\",\"stacked-area\",\"scatter\",\"funnel\",\"pyramid\"]},\"orientation\":{\"enum\":[\"vertical\",\"horizontal\"]}}},\"effects\":[{\"kind\":\"merge-object\",\"path\":\"chartDocument\"}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"chart-type-supported\",\"chart-type-series-axis-compatible\",\"category-slice-single-metric\",\"combo-minimum-series\",\"editor-runtime-round-trip\"],\"affectedPaths\":[\"chartDocument.kind\",\"chartDocument.orientation\",\"chartDocument.metrics[]\",\"chartDocument.dimensions[]\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"series.add\",\"title\":\"Add chart series\",\"scope\":\"dataBinding\",\"targetKind\":\"series\",\"target\":{\"kind\":\"series\",\"resolver\":\"x-ui-chart-metric-by-field\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"field\"],\"properties\":{\"field\":{\"type\":\"string\"},\"label\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"object\"}]},\"aggregation\":{\"enum\":[\"sum\",\"avg\",\"min\",\"max\",\"count\",\"distinct-count\"]},\"seriesKind\":{\"enum\":[\"bar\",\"line\",\"area\"]},\"axis\":{\"enum\":[\"primary\",\"secondary\"]},\"color\":{\"type\":\"string\"},\"format\":{\"type\":\"string\"},\"afterField\":{\"type\":\"string\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"chart-series-add\",\"handlerContract\":{\"reads\":[\"chartDocument.kind\",\"chartDocument.metrics[]\",\"availableFields[]\"],\"writes\":[\"chartDocument.metrics[]\"],\"identityKeys\":[\"chartDocument.metrics[].field\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"field\"],\"properties\":{\"field\":{\"type\":\"string\"},\"label\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"object\"}]},\"aggregation\":{\"enum\":[\"sum\",\"avg\",\"min\",\"max\",\"count\",\"distinct-count\"]},\"seriesKind\":{\"enum\":[\"bar\",\"line\",\"area\"]},\"axis\":{\"enum\":[\"primary\",\"secondary\"]},\"color\":{\"type\":\"string\"},\"format\":{\"type\":\"string\"},\"afterField\":{\"type\":\"string\"}}},\"failureModes\":[\"field-not-in-catalog\",\"duplicate-series-field\",\"aggregation-not-supported\",\"chart-type-series-incompatible\"],\"description\":\"Adds a metric-backed series by semantic field, validating it against availableFields and chart kind compatibility before patching metrics[].\"}}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"series-field-exists\",\"series-field-aggregable\",\"series-id-unique\",\"chart-type-series-axis-compatible\",\"editor-runtime-round-trip\"],\"affectedPaths\":[\"chartDocument.metrics[]\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"series.remove\",\"title\":\"Remove chart series\",\"scope\":\"dataBinding\",\"targetKind\":\"series\",\"target\":{\"kind\":\"series\",\"resolver\":\"x-ui-chart-metric-by-field\",\"ambiguityPolicy\":\"fail\",\"required\":true},\"inputSchema\":{\"type\":\"object\",\"required\":[\"field\"],\"properties\":{\"field\":{\"type\":\"string\"},\"replacementField\":{\"type\":\"string\"}}},\"effects\":[{\"kind\":\"remove-by-key\",\"path\":\"chartDocument.metrics[]\",\"key\":\"field\"}],\"destructive\":true,\"requiresConfirmation\":true,\"validators\":[\"series-exists\",\"destructive-series-removal-confirmed\",\"chart-keeps-required-metric\",\"editor-runtime-round-trip\"],\"affectedPaths\":[\"chartDocument.metrics[]\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\",\"target-series-exists\",\"confirmation-collected\"]},{\"operationId\":\"axis.configure\",\"title\":\"Configure chart axis\",\"scope\":\"dataBinding\",\"targetKind\":\"axis\",\"target\":{\"kind\":\"axis\",\"resolver\":\"x-ui-chart-dimension-or-metric-axis\",\"ambiguityPolicy\":\"fail\",\"required\":true},\"inputSchema\":{\"type\":\"object\",\"properties\":{\"dimensionField\":{\"type\":\"string\"},\"dimensionRole\":{\"enum\":[\"category\",\"series\",\"segment\",\"time\",\"value\"]},\"metricField\":{\"type\":\"string\"},\"metricAxis\":{\"enum\":[\"primary\",\"secondary\"]},\"orientation\":{\"enum\":[\"vertical\",\"horizontal\"]}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"chart-axis-configure\",\"handlerContract\":{\"reads\":[\"chartDocument.kind\",\"chartDocument.dimensions[]\",\"chartDocument.metrics[]\",\"availableFields[]\"],\"writes\":[\"chartDocument.dimensions[]\",\"chartDocument.metrics[]\",\"chartDocument.orientation\"],\"identityKeys\":[\"chartDocument.dimensions[].field\",\"chartDocument.metrics[].field\"],\"inputSchema\":{\"type\":\"object\",\"properties\":{\"dimensionField\":{\"type\":\"string\"},\"dimensionRole\":{\"enum\":[\"category\",\"series\",\"segment\",\"time\",\"value\"]},\"metricField\":{\"type\":\"string\"},\"metricAxis\":{\"enum\":[\"primary\",\"secondary\"]},\"orientation\":{\"enum\":[\"vertical\",\"horizontal\"]}}},\"failureModes\":[\"field-not-in-catalog\",\"secondary-axis-non-combo\",\"missing-required-dimension\",\"axis-role-incompatible\"],\"description\":\"Configures dimensions and metric axes using semantic fields, preserving combo-only secondary axis constraints.\"}}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"axis-field-exists\",\"secondary-axis-combo-only\",\"cartesian-dimension-required\",\"editor-runtime-round-trip\"],\"affectedPaths\":[\"chartDocument.dimensions[]\",\"chartDocument.metrics[].axis\",\"chartDocument.orientation\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\"]}]}",
|
|
2601
2965
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2602
|
-
"contentHash": "
|
|
2966
|
+
"contentHash": "4d50b2a992d61972b9ecc54d9d65eb0773910d8a948d6b5f41ff429b50db4acc",
|
|
2603
2967
|
"sourceKind": "component_definition",
|
|
2604
2968
|
"sourceId": "praxis-chart",
|
|
2605
2969
|
"corpusVersion": "1.0.0"
|
|
@@ -2607,9 +2971,9 @@
|
|
|
2607
2971
|
{
|
|
2608
2972
|
"chunkIndex": 18,
|
|
2609
2973
|
"chunkKind": "authoring_manifest",
|
|
2610
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2974
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"data.resource.bind\",\"title\":\"Bind chart data resource\",\"scope\":\"dataBinding\",\"targetKind\":\"dataBinding\",\"target\":{\"kind\":\"dataBinding\",\"resolver\":\"x-ui-chart-source-and-field-catalog\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"sourceKind\"],\"properties\":{\"sourceKind\":{\"enum\":[\"praxis.stats\",\"derived\"]},\"resource\":{\"type\":\"string\",\"pattern\":\"^/(?!/)\"},\"operation\":{\"enum\":[\"group-by\",\"timeseries\",\"distribution\",\"comparison\"]},\"comparisonPeriod\":{\"type\":\"object\",\"required\":[\"field\",\"timezone\",\"preset\",\"mode\"],\"properties\":{\"field\":{\"type\":\"string\"},\"timezone\":{\"type\":\"string\"},\"preset\":{\"enum\":[\"TODAY\",\"YESTERDAY\",\"LAST_7_DAYS\",\"LAST_30_DAYS\",\"THIS_MONTH\",\"LAST_MONTH\",\"THIS_QUARTER\",\"THIS_YEAR\"]},\"mode\":{\"enum\":[\"PREVIOUS_ALIGNED\",\"PREVIOUS_CALENDAR_PERIOD\"]}}},\"dimensions\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"required\":[\"field\"],\"properties\":{\"field\":{\"type\":\"string\"},\"role\":{\"type\":\"string\"}}}},\"metrics\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"required\":[\"field\"],\"properties\":{\"field\":{\"type\":\"string\"},\"label\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"object\"}]},\"aggregation\":{\"enum\":[\"sum\",\"avg\",\"min\",\"max\",\"count\",\"distinct-count\"]},\"seriesKind\":{\"enum\":[\"bar\",\"line\",\"area\"]},\"axis\":{\"enum\":[\"primary\",\"secondary\"]},\"color\":{\"type\":\"string\"},\"format\":{\"type\":\"string\"},\"afterField\":{\"type\":\"string\"}}}}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"chart-data-resource-bind\",\"handlerContract\":{\"reads\":[\"availableResources[]\",\"availableFields[]\",\"chartDocument.source\",\"chartDocument.dimensions[]\",\"chartDocument.metrics[]\"],\"writes\":[\"chartDocument.source\",\"chartDocument.source.options.comparisonPeriod\",\"chartDocument.dimensions[]\",\"chartDocument.metrics[]\"],\"identityKeys\":[\"availableResources[].path\",\"availableFields[].field\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"sourceKind\"],\"properties\":{\"sourceKind\":{\"enum\":[\"praxis.stats\",\"derived\"]},\"resource\":{\"type\":\"string\",\"pattern\":\"^/(?!/)\"},\"operation\":{\"enum\":[\"group-by\",\"timeseries\",\"distribution\",\"comparison\"]},\"comparisonPeriod\":{\"type\":\"object\",\"required\":[\"field\",\"timezone\",\"preset\",\"mode\"],\"properties\":{\"field\":{\"type\":\"string\"},\"timezone\":{\"type\":\"string\"},\"preset\":{\"enum\":[\"TODAY\",\"YESTERDAY\",\"LAST_7_DAYS\",\"LAST_30_DAYS\",\"THIS_MONTH\",\"LAST_MONTH\",\"THIS_QUARTER\",\"THIS_YEAR\"]},\"mode\":{\"enum\":[\"PREVIOUS_ALIGNED\",\"PREVIOUS_CALENDAR_PERIOD\"]}}},\"dimensions\":{\"type\":\"array\"},\"metrics\":{\"type\":\"array\"}}},\"failureModes\":[\"resource-not-in-api-metadata\",\"field-not-in-schema\",\"stats-operation-not-supported\",\"comparison-period-incomplete\",\"comparison-metric-unsupported\",\"remote-binding-incomplete\"],\"description\":\"Binds a derived or praxis.stats source using governed resource, capability and field catalogs. For praxis.stats, availableResources[].id is discovery-only: validation requires the matching availableResources[].path and compilation persists that path. Comparison requires one canonical operation, metrics[] and an eligible period field.\"}}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"remote-resource-in-api-metadata\",\"bound-fields-exist\",\"stats-operation-supported\",\"comparison-period-complete\",\"comparison-metrics-supported\",\"editor-runtime-round-trip\"],\"affectedPaths\":[\"chartDocument.source\",\"chartDocument.source.options.comparisonPeriod\",\"chartDocument.dimensions[]\",\"chartDocument.metrics[]\"],\"submissionImpact\":\"affects-remote-binding\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"queryContext.set\",\"title\":\"Set chart query context\",\"scope\":\"dataBinding\",\"targetKind\":\"queryContext\",\"target\":{\"kind\":\"queryContext\",\"resolver\":\"praxis-chart-query-context\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"properties\":{\"filters\":{\"type\":\"object\"},\"filterExpression\":{\"type\":\"object\"},\"sort\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"limit\":{\"type\":\"number\"},\"page\":{\"type\":\"object\"},\"meta\":{\"type\":\"object\"}}},\"effects\":[{\"kind\":\"set-value\",\"path\":\"queryContext\"}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"query-context-structured\",\"query-context-filter-expression-stats-unsupported\",\"query-context-fields-exist\",\"query-context-safe-values\",\"editor-runtime-round-trip\"],\"affectedPaths\":[\"queryContext\"],\"submissionImpact\":\"affects-schema-backed-data\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"pointClick.configure\",\"title\":\"Configure chart point click\",\"scope\":\"eventMapping\",\"targetKind\":\"pointClick\",\"target\":{\"kind\":\"pointClick\",\"resolver\":\"x-ui-chart-events-point-click\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"action\"],\"properties\":{\"action\":{\"enum\":[\"filter-widget\",\"open-detail\",\"navigate\",\"update-context\",\"emit\"]},\"target\":{\"type\":\"string\"},\"mapping\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"chart-event-point-click-configure\",\"handlerContract\":{\"reads\":[\"chartDocument.events.pointClick\",\"chartDocument.dimensions[]\",\"availableTargets[]\"],\"writes\":[\"chartDocument.events.pointClick\"],\"identityKeys\":[\"availableTargets[].id\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"action\"],\"properties\":{\"action\":{\"enum\":[\"filter-widget\",\"open-detail\",\"navigate\",\"update-context\",\"emit\"]},\"target\":{\"type\":\"string\"},\"mapping\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}}}},\"failureModes\":[\"target-not-in-catalog\",\"mapping-source-field-missing\",\"mapping-target-invalid\",\"unsafe-event-action\"],\"description\":\"Configures pointClick through the pointAction output while keeping pointClick as raw point evidence.\"}}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"point-click-action-structured\",\"event-target-governed\",\"event-mapping-fields-exist\",\"event-action-supported\",\"editor-runtime-round-trip\"],\"affectedPaths\":[\"chartDocument.events.pointClick\"],\"submissionImpact\":\"affects-schema-backed-data\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"crossFilter.configure\",\"title\":\"Configure chart cross-filter\",\"scope\":\"eventMapping\",\"targetKind\":\"crossFilter\",\"target\":{\"kind\":\"crossFilter\",\"resolver\":\"x-ui-chart-events-cross-filter\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"action\"],\"properties\":{\"action\":{\"enum\":[\"filter-widget\",\"open-detail\",\"navigate\",\"update-context\",\"emit\"]},\"target\":{\"type\":\"string\"},\"mapping\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"chart-event-cross-filter-configure\",\"handlerContract\":{\"reads\":[\"chartDocument.events.crossFilter\",\"chartDocument.dimensions[]\",\"availableTargets[]\"],\"writes\":[\"chartDocument.events.crossFilter\"],\"identityKeys\":[\"availableTargets[].id\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"action\"],\"properties\":{\"action\":{\"enum\":[\"filter-widget\",\"open-detail\",\"navigate\",\"update-context\",\"emit\"]},\"target\":{\"type\":\"string\"},\"mapping\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}}}},\"failureModes\":[\"target-not-in-catalog\",\"mapping-source-field-missing\",\"mapping-target-invalid\",\"unsafe-event-action\"],\"description\":\"Configures crossFilter as a structured event action emitted through the crossFilter output with safe query-context filters to a governed target. For praxis.stats rows, key is governed bucket identity and label is presentation evidence; mappings may use key when the target schema accepts that identity.\"}}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"cross-filter-output-structured\",\"event-target-governed\",\"event-mapping-fields-exist\",\"editor-runtime-round-trip\"],\"affectedPaths\":[\"chartDocument.events.crossFilter\"],\"submissionImpact\":\"affects-schema-backed-data\",\"preconditions\":[\"config-initialized\"]}]}",
|
|
2611
2975
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2612
|
-
"contentHash": "
|
|
2976
|
+
"contentHash": "7d3ef41e5490d34e75d9a7d15826e68a2c21678e74b58445d11a5cff79efbfea",
|
|
2613
2977
|
"sourceKind": "component_definition",
|
|
2614
2978
|
"sourceId": "praxis-chart",
|
|
2615
2979
|
"corpusVersion": "1.0.0"
|
|
@@ -2617,9 +2981,9 @@
|
|
|
2617
2981
|
{
|
|
2618
2982
|
"chunkIndex": 19,
|
|
2619
2983
|
"chunkKind": "authoring_manifest",
|
|
2620
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2984
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"drilldown.configure\",\"title\":\"Configure chart drilldown\",\"scope\":\"eventMapping\",\"targetKind\":\"drilldown\",\"target\":{\"kind\":\"drilldown\",\"resolver\":\"x-ui-chart-events-drill-down\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"action\"],\"properties\":{\"action\":{\"enum\":[\"filter-widget\",\"open-detail\",\"navigate\",\"update-context\",\"emit\"]},\"target\":{\"type\":\"string\"},\"mapping\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"chart-event-drilldown-configure\",\"handlerContract\":{\"reads\":[\"chartDocument.events.drillDown\",\"chartDocument.dimensions[]\",\"availableTargets[]\"],\"writes\":[\"chartDocument.events.drillDown\"],\"identityKeys\":[\"availableTargets[].id\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"action\"],\"properties\":{\"action\":{\"enum\":[\"filter-widget\",\"open-detail\",\"navigate\",\"update-context\",\"emit\"]},\"target\":{\"type\":\"string\"},\"mapping\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}}}},\"failureModes\":[\"target-not-in-catalog\",\"mapping-source-field-missing\",\"drilldown-target-invalid\",\"unsafe-event-action\"],\"description\":\"Configures drillDown through the dedicated drillDown output with governed route/widget targets and structured field mappings.\"}}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"drilldown-target-governed\",\"event-mapping-fields-exist\",\"event-action-supported\",\"editor-runtime-round-trip\"],\"affectedPaths\":[\"chartDocument.events.drillDown\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"selection.configure\",\"title\":\"Configure chart selection\",\"scope\":\"selection\",\"targetKind\":\"selection\",\"target\":{\"kind\":\"selection\",\"resolver\":\"x-ui-chart-events-selection-change\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"action\"],\"properties\":{\"action\":{\"enum\":[\"filter-widget\",\"open-detail\",\"navigate\",\"update-context\",\"emit\"]},\"target\":{\"type\":\"string\"},\"mapping\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"chart-event-selection-configure\",\"handlerContract\":{\"reads\":[\"chartDocument.events.selectionChange\",\"chartDocument.dimensions[]\",\"availableTargets[]\"],\"writes\":[\"chartDocument.events.selectionChange\"],\"identityKeys\":[\"availableTargets[].id\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"action\"],\"properties\":{\"action\":{\"enum\":[\"filter-widget\",\"open-detail\",\"navigate\",\"update-context\",\"emit\"]},\"target\":{\"type\":\"string\"},\"mapping\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}}}},\"failureModes\":[\"target-not-in-catalog\",\"mapping-source-field-missing\",\"mapping-target-invalid\",\"unsafe-event-action\"],\"description\":\"Configures selectionChange as single-point selection evidence whose event key is governed by the operation.\"}}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"selection-output-structured\",\"event-target-governed\",\"event-mapping-fields-exist\",\"event-action-supported\",\"editor-runtime-round-trip\"],\"affectedPaths\":[\"chartDocument.events.selectionChange\"],\"submissionImpact\":\"affects-schema-backed-data\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"legend.configure\",\"title\":\"Configure chart legend\",\"scope\":\"skin\",\"targetKind\":\"legend\",\"target\":{\"kind\":\"legend\",\"resolver\":\"x-ui-chart-legend-feature\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"type\":\"boolean\"}}},\"effects\":[{\"kind\":\"set-value\",\"path\":\"chartDocument.legend\"}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"feature-toggle-valid\",\"editor-runtime-round-trip\"],\"affectedPaths\":[\"chartDocument.legend\"],\"submissionImpact\":\"visual-only\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"tooltip.configure\",\"title\":\"Configure chart tooltip\",\"scope\":\"skin\",\"targetKind\":\"tooltip\",\"target\":{\"kind\":\"tooltip\",\"resolver\":\"x-ui-chart-tooltip-feature\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"type\":\"boolean\"}}},\"effects\":[{\"kind\":\"set-value\",\"path\":\"chartDocument.tooltip\"}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"feature-toggle-valid\",\"editor-runtime-round-trip\"],\"affectedPaths\":[\"chartDocument.tooltip\"],\"submissionImpact\":\"visual-only\",\"preconditions\":[\"config-initialized\"]}]}",
|
|
2621
2985
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2622
|
-
"contentHash": "
|
|
2986
|
+
"contentHash": "6910dad230ac5e580e85ccaa5cbd12f1abd250aa480d7ba1b5d2ee7f0ee014ce",
|
|
2623
2987
|
"sourceKind": "component_definition",
|
|
2624
2988
|
"sourceId": "praxis-chart",
|
|
2625
2989
|
"corpusVersion": "1.0.0"
|
|
@@ -2627,9 +2991,9 @@
|
|
|
2627
2991
|
{
|
|
2628
2992
|
"chunkIndex": 20,
|
|
2629
2993
|
"chunkKind": "authoring_manifest",
|
|
2630
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
2994
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"validators\",\"validators\":[{\"validatorId\":\"chart-document-shape\",\"level\":\"error\",\"code\":\"CHART_DOCUMENT_SHAPE\",\"description\":\"Document must conform to PraxisXUiChartContract.\"},{\"validatorId\":\"chart-version-supported\",\"level\":\"error\",\"code\":\"CHART_VERSION_SUPPORTED\"},{\"validatorId\":\"chart-type-supported\",\"level\":\"error\",\"code\":\"CHART_TYPE_SUPPORTED\",\"description\":\"Chart kind must be supported by @praxisui/charts.\"},{\"validatorId\":\"chart-type-series-axis-compatible\",\"level\":\"error\",\"code\":\"CHART_TYPE_SERIES_AXIS_COMPATIBLE\",\"description\":\"Chart kind, dimensions, metrics and axes must be compatible.\"},{\"validatorId\":\"category-slice-single-metric\",\"level\":\"error\",\"code\":\"CATEGORY_SLICE_SINGLE_METRIC\",\"description\":\"Pie, donut, funnel and pyramid charts require exactly one metric.\"},{\"validatorId\":\"combo-minimum-series\",\"level\":\"error\",\"code\":\"COMBO_MINIMUM_SERIES\",\"description\":\"Combo charts require at least two metrics.\"},{\"validatorId\":\"series-field-exists\",\"level\":\"error\",\"code\":\"SERIES_FIELD_EXISTS\",\"description\":\"Series field must exist in availableFields or schema context.\"},{\"validatorId\":\"series-field-aggregable\",\"level\":\"error\",\"code\":\"SERIES_FIELD_AGGREGABLE\",\"description\":\"Metric fields must support the requested aggregation.\"},{\"validatorId\":\"series-id-unique\",\"level\":\"error\",\"code\":\"SERIES_ID_UNIQUE\",\"description\":\"Metric/series identity must be stable and unique by field.\"},{\"validatorId\":\"series-exists\",\"level\":\"error\",\"code\":\"SERIES_EXISTS\",\"description\":\"Series removal target must exist.\"},{\"validatorId\":\"destructive-series-removal-confirmed\",\"level\":\"error\",\"code\":\"DESTRUCTIVE_SERIES_REMOVAL_CONFIRMED\",\"description\":\"Removing a series requires explicit confirmation.\"},{\"validatorId\":\"chart-keeps-required-metric\",\"level\":\"error\",\"code\":\"CHART_KEEPS_REQUIRED_METRIC\",\"description\":\"A chart cannot be left without required metrics.\"},{\"validatorId\":\"axis-field-exists\",\"level\":\"error\",\"code\":\"AXIS_FIELD_EXISTS\",\"description\":\"Axis/dimension fields must exist in availableFields or schema context.\"},{\"validatorId\":\"secondary-axis-combo-only\",\"level\":\"error\",\"code\":\"SECONDARY_AXIS_COMBO_ONLY\",\"description\":\"Secondary axis is supported only for combo charts.\"},{\"validatorId\":\"cartesian-dimension-required\",\"level\":\"error\",\"code\":\"CARTESIAN_DIMENSION_REQUIRED\",\"description\":\"Cartesian charts require at least one dimension.\"},{\"validatorId\":\"remote-resource-in-api-metadata\",\"level\":\"error\",\"code\":\"REMOTE_RESOURCE_IN_API_METADATA\",\"description\":\"Remote praxis.stats resource must equal a governed root-relative availableResources[].path beginning with exactly one slash; a discovery id is not an executable resource path.\"},{\"validatorId\":\"bound-fields-exist\",\"level\":\"error\",\"code\":\"BOUND_FIELDS_EXIST\",\"description\":\"Bound dimensions and metrics must exist in the capability-backed field context and satisfy its operation, aggregation and distribution-mode eligibility.\"},{\"validatorId\":\"stats-operation-supported\",\"level\":\"error\",\"code\":\"STATS_OPERATION_SUPPORTED\",\"description\":\"Remote datasource operation must be supported by the stats backend.\"},{\"validatorId\":\"comparison-period-complete\",\"level\":\"error\",\"code\":\"COMPARISON_PERIOD_COMPLETE\",\"description\":\"Comparison requires a time-series eligible period field, timezone, preset and mode grounded in the governed resource capabilities.\"},{\"validatorId\":\"comparison-metrics-supported\",\"level\":\"error\",\"code\":\"COMPARISON_METRICS_SUPPORTED\",\"description\":\"Comparison requires unique metrics[] aliases using only COUNT, DISTINCT_COUNT or SUM capabilities; singular metric payloads are not authorable.\"},{\"validatorId\":\"query-context-structured\",\"level\":\"error\",\"code\":\"QUERY_CONTEXT_STRUCTURED\",\"description\":\"queryContext must use the canonical @praxisui/core structure for filters, filterExpression, sort, limit, page and meta.\"},{\"validatorId\":\"query-context-filter-expression-stats-unsupported\",\"level\":\"error\",\"code\":\"QUERY_CONTEXT_FILTER_EXPRESSION_STATS_UNSUPPORTED\",\"description\":\"praxis.stats currently executes only flat queryContext.filters; governed filterExpression must be preserved for diagnostics and rejected until backend expression support is declared.\"},{\"validatorId\":\"query-context-fields-exist\",\"level\":\"warning\",\"code\":\"QUERY_CONTEXT_FIELDS_EXIST\",\"description\":\"queryContext filter fields should exist in the schema/data context.\"},{\"validatorId\":\"query-context-safe-values\",\"level\":\"error\",\"code\":\"QUERY_CONTEXT_SAFE_VALUES\",\"description\":\"queryContext values must be serializable safe data.\"},{\"validatorId\":\"point-click-action-structured\",\"level\":\"error\",\"code\":\"POINT_CLICK_ACTION_STRUCTURED\",\"description\":\"Configured pointClick actions must be emitted through pointAction while pointClick remains raw point evidence.\"},{\"validatorId\":\"cross-filter-output-structured\",\"level\":\"error\",\"code\":\"CROSS_FILTER_OUTPUT_STRUCTURED\",\"description\":\"Cross-filter output must be structured as query-context filters.\"},{\"validatorId\":\"event-target-governed\",\"level\":\"error\",\"code\":\"EVENT_TARGET_GOVERNED\",\"description\":\"Event targets must resolve to exactly one availableTargets[].id and declare the authored event plus action; missing, duplicate or cross-event identities fail closed.\"},{\"validatorId\":\"event-mapping-fields-exist\",\"level\":\"error\",\"code\":\"EVENT_MAPPING_FIELDS_EXIST\",\"description\":\"Event mapping source fields must exist in chart data context; praxis.stats reserves key for bucket identity and label for presentation.\"},{\"validatorId\":\"event-action-supported\",\"level\":\"error\",\"code\":\"EVENT_ACTION_SUPPORTED\",\"description\":\"Event action must be one of the supported structured action kinds.\"},{\"validatorId\":\"drilldown-target-governed\",\"level\":\"error\",\"code\":\"DRILLDOWN_TARGET_GOVERNED\",\"description\":\"Drilldown target must be a governed route or widget target.\"},{\"validatorId\":\"selection-output-structured\",\"level\":\"error\",\"code\":\"SELECTION_OUTPUT_STRUCTURED\",\"description\":\"Selection output must resolve selected point filters deterministically.\"},{\"validatorId\":\"feature-toggle-valid\",\"level\":\"error\",\"code\":\"FEATURE_TOGGLE_VALID\",\"description\":\"Legend and tooltip feature values must be boolean or toggleable feature objects.\"},{\"validatorId\":\"editor-runtime-round-trip\",\"level\":\"error\",\"code\":\"EDITOR_RUNTIME_ROUND_TRIP\",\"description\":\"PraxisChartConfigEditor must save/reopen the same canonical document that runtime consumes.\"}]}",
|
|
2631
2995
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2632
|
-
"contentHash": "
|
|
2996
|
+
"contentHash": "f11f9ce90b2cd022a5e16d0af27e46398fa6f117db2a2c847493dfd512a7ca88",
|
|
2633
2997
|
"sourceKind": "component_definition",
|
|
2634
2998
|
"sourceId": "praxis-chart",
|
|
2635
2999
|
"corpusVersion": "1.0.0"
|
|
@@ -2637,9 +3001,9 @@
|
|
|
2637
3001
|
{
|
|
2638
3002
|
"chunkIndex": 21,
|
|
2639
3003
|
"chunkKind": "authoring_manifest",
|
|
2640
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
3004
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"roundTripRequirements\",\"roundTripRequirements\":[\"The canonical saved shape is PraxisXUiChartContract, not raw ECharts options.\",\"PraxisChartConfigEditor must preserve chart kind, source, dimensions, metrics, events, legend and tooltip across apply/save/reset/reopen.\",\"Remote bindings persist availableResources[].path; availableResources[].id remains discovery identity, and transient resource/field/target catalogs and diagnostics are never persisted in widget inputs.\",\"Comparison must preserve one canonical /stats/comparison request with metrics[] and a complete comparisonPeriod; it must not downgrade into independent group-by calls.\",\"Cross-filter, drilldown and selection authoring must persist structured event actions, not prompt examples or command strings.\",\"[P1] Backend handler, resolver and validators now execute directly; end-to-end Page Builder parity remains open until assistant requests project the transient availableTargets[].events catalog through validationContext and expose its fail-closed diagnostics.\",\"[P2] Transform-output semantics and target input-schema/port fields must be materialized and validated by Core; local transform.output inspection and backend-enriched inputFields are not substitutes for those canonical projections.\",\"Enrichment of capability-backed availableFields with /schemas/filtered property metadata remains a later schema-flow gate.\"]}",
|
|
2641
3005
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2642
|
-
"contentHash": "
|
|
3006
|
+
"contentHash": "e4761a318bc8b7911559355ea213403838979475124d1fcfc49859b883415b9c",
|
|
2643
3007
|
"sourceKind": "component_definition",
|
|
2644
3008
|
"sourceId": "praxis-chart",
|
|
2645
3009
|
"corpusVersion": "1.0.0"
|
|
@@ -2647,9 +3011,9 @@
|
|
|
2647
3011
|
{
|
|
2648
3012
|
"chunkIndex": 22,
|
|
2649
3013
|
"chunkKind": "authoring_manifest",
|
|
2650
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.
|
|
3014
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.2.0\",\"componentId\":\"praxis-chart\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisXUiChartContract\",\"chunkSection\":\"examples\",\"examples\":[{\"id\":\"set-bar-chart\",\"request\":\"Use a bar chart for employees by department.\",\"operationId\":\"chart.type.set\",\"params\":{\"kind\":\"bar\"},\"isPositive\":true},{\"id\":\"add-salary-series\",\"request\":\"Add salary as a summed metric.\",\"operationId\":\"series.add\",\"params\":{\"field\":\"salary\",\"aggregation\":\"sum\",\"label\":\"Salary\"},\"isPositive\":true},{\"id\":\"remove-old-series\",\"request\":\"Remove the old cost series.\",\"operationId\":\"series.remove\",\"target\":\"cost\",\"params\":{\"field\":\"cost\"},\"isPositive\":true},{\"id\":\"configure-secondary-axis\",\"request\":\"Put margin on a secondary axis for the combo chart.\",\"operationId\":\"axis.configure\",\"params\":{\"metricField\":\"margin\",\"metricAxis\":\"secondary\"},\"isPositive\":true},{\"id\":\"bind-stats-resource\",\"request\":\"Bind this chart to payroll stats grouped by department.\",\"operationId\":\"data.resource.bind\",\"params\":{\"sourceKind\":\"praxis.stats\",\"resource\":\"/api/stats/payroll\",\"operation\":\"group-by\"},\"isPositive\":true},{\"id\":\"bind-comparison-resource\",\"request\":\"Compare active employees by department with the previous aligned 30-day period.\",\"operationId\":\"data.resource.bind\",\"params\":{\"sourceKind\":\"praxis.stats\",\"resource\":\"/api/human-resources/employees\",\"operation\":\"comparison\",\"comparisonPeriod\":{\"field\":\"admissionDate\",\"timezone\":\"America/Sao_Paulo\",\"preset\":\"LAST_30_DAYS\",\"mode\":\"PREVIOUS_ALIGNED\"},\"dimensions\":[{\"field\":\"department\"}],\"metrics\":[{\"field\":\"employeeId\",\"aggregation\":\"distinct-count\"}]},\"isPositive\":true},{\"id\":\"set-query-context\",\"request\":\"Limit the chart to active employees and sort by total descending.\",\"operationId\":\"queryContext.set\",\"params\":{\"filters\":{\"status\":\"ACTIVE\"},\"sort\":[\"total,desc\"],\"limit\":10},\"isPositive\":true},{\"id\":\"configure-cross-filter\",\"request\":\"Use selected department to filter the employee table.\",\"operationId\":\"crossFilter.configure\",\"params\":{\"action\":\"filter-widget\",\"target\":\"employeesTable\",\"mapping\":{\"department\":\"department\"}},\"isPositive\":true},{\"id\":\"configure-stats-key-cross-filter\",\"request\":\"Use the governed department bucket identity to filter the employee table.\",\"operationId\":\"crossFilter.configure\",\"params\":{\"action\":\"filter-widget\",\"target\":\"employeesTable\",\"mapping\":{\"key\":\"departmentIdsIn\"}},\"isPositive\":true},{\"id\":\"configure-drilldown\",\"request\":\"Open the department detail when a point is clicked.\",\"operationId\":\"drilldown.configure\",\"params\":{\"action\":\"navigate\",\"target\":\"/departments/detail\",\"mapping\":{\"department\":\"departmentId\"}},\"isPositive\":true},{\"id\":\"configure-selection\",\"request\":\"Emit selected department as a structured selection event.\",\"operationId\":\"selection.configure\",\"params\":{\"action\":\"emit\",\"mapping\":{\"department\":\"department\"}},\"isPositive\":true},{\"id\":\"toggle-legend\",\"request\":\"Show the legend.\",\"operationId\":\"legend.configure\",\"params\":{\"enabled\":true},\"isPositive\":true},{\"id\":\"toggle-tooltip\",\"request\":\"Disable tooltips.\",\"operationId\":\"tooltip.configure\",\"params\":{\"enabled\":false},\"isPositive\":true},{\"id\":\"round-trip-editor-runtime\",\"request\":\"Save this chart in the editor and reopen it without changing the runtime chart document.\",\"operationId\":\"chart.document.set\",\"params\":{\"version\":\"0.1.0\",\"kind\":\"bar\",\"source\":{\"kind\":\"derived\"},\"dimensions\":[{\"field\":\"department\"}],\"metrics\":[{\"field\":\"total\",\"aggregation\":\"count\"}]},\"isPositive\":true},{\"id\":\"reject-ambiguous-series-target\",\"request\":\"Remove total when more than one chart series resolves to total.\",\"operationId\":\"series.remove\",\"target\":\"total\",\"params\":{\"field\":\"total\"},\"isPositive\":false},{\"id\":\"reject-prompt-routing\",\"request\":\"Use the prompt example text to decide which backend endpoint to call.\",\"operationId\":\"data.resource.bind\",\"params\":{\"sourceKind\":\"praxis.stats\",\"resource\":\"from prompt example\"},\"isPositive\":false},{\"id\":\"reject-unsafe-target\",\"request\":\"Navigate to javascript:alert(1) on drilldown.\",\"operationId\":\"drilldown.configure\",\"params\":{\"event\":\"drillDown\",\"action\":\"navigate\",\"target\":\"javascript:alert(1)\"},\"isPositive\":false}]}",
|
|
2651
3015
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-charts-authoring-manifest.ts",
|
|
2652
|
-
"contentHash": "
|
|
3016
|
+
"contentHash": "a469707a1a812c493eb7d32f2375a5af0190519d031cffcbae380e71b60211e2",
|
|
2653
3017
|
"sourceKind": "component_definition",
|
|
2654
3018
|
"sourceId": "praxis-chart",
|
|
2655
3019
|
"corpusVersion": "1.0.0"
|