@praxisui/charts 8.0.0-beta.11 → 8.0.0-beta.12
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 +33 -0
- package/fesm2022/praxisui-charts.mjs +370 -1
- package/index.d.ts +4 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -378,6 +378,39 @@ This first published version is focused on the core runtime:
|
|
|
378
378
|
- declarative `selectionChange` and `crossFilter` actions emitted from selected chart points
|
|
379
379
|
- `distinct-count` aggregation mapped to canonical `praxis.stats` `DISTINCT_COUNT`
|
|
380
380
|
- host-owned remote data resolution through `remoteDataResolver`
|
|
381
|
+
- executable agentic authoring manifest for `praxis-chart`, exported as `PRAXIS_CHARTS_AUTHORING_MANIFEST`
|
|
382
|
+
|
|
383
|
+
## Agentic Authoring Contract
|
|
384
|
+
|
|
385
|
+
`@praxisui/charts` publishes a component-level authoring manifest for `praxis-chart`.
|
|
386
|
+
The manifest is an executable backend/tooling contract for canonical
|
|
387
|
+
`PraxisXUiChartContract` documents, not prompt-routing documentation.
|
|
388
|
+
|
|
389
|
+
The governed authoring targets are:
|
|
390
|
+
|
|
391
|
+
- `chartType`
|
|
392
|
+
- `series`
|
|
393
|
+
- `axis`
|
|
394
|
+
- `dataBinding`
|
|
395
|
+
- `queryContext`
|
|
396
|
+
- `crossFilter`
|
|
397
|
+
- `drilldown`
|
|
398
|
+
- `selection`
|
|
399
|
+
- `legend`
|
|
400
|
+
- `tooltip`
|
|
401
|
+
|
|
402
|
+
Remote resource and field binding must come from governed API metadata,
|
|
403
|
+
`availableResources` and `availableFields`. Cross-filter, drilldown and
|
|
404
|
+
selection authoring persists structured `events.*` actions instead of command
|
|
405
|
+
strings or raw prompt examples. The visual editor remains the canonical
|
|
406
|
+
round-trip surface for this document: open, edit, apply/save, reset and reopen
|
|
407
|
+
must preserve the same `x-ui.chart` shape consumed by the runtime.
|
|
408
|
+
|
|
409
|
+
Each manifest operation declares its own editable target, resolver,
|
|
410
|
+
ambiguity policy, preconditions, validators, affected paths, effects and
|
|
411
|
+
`submissionImpact`. Chart document, type, series and axis changes are
|
|
412
|
+
`config-only`; remote data binding, query context and event mappings
|
|
413
|
+
`affect-remote-binding`; legend and tooltip changes are `visual-only`.
|
|
381
414
|
|
|
382
415
|
## Current Non-Goals
|
|
383
416
|
|
|
@@ -6119,6 +6119,375 @@ var praxisChartConfigEditor = /*#__PURE__*/Object.freeze({
|
|
|
6119
6119
|
PraxisChartConfigEditor: PraxisChartConfigEditor
|
|
6120
6120
|
});
|
|
6121
6121
|
|
|
6122
|
+
const chartDocumentSchema = {
|
|
6123
|
+
type: 'object',
|
|
6124
|
+
required: ['version', 'kind', 'source'],
|
|
6125
|
+
properties: {
|
|
6126
|
+
version: { const: '0.1.0' },
|
|
6127
|
+
kind: { enum: ['bar', 'combo', 'horizontal-bar', 'line', 'pie', 'donut', 'area', 'stacked-bar', 'stacked-area', 'scatter'] },
|
|
6128
|
+
chartId: { type: 'string' },
|
|
6129
|
+
title: { oneOf: [{ type: 'string' }, { type: 'object' }] },
|
|
6130
|
+
subtitle: { oneOf: [{ type: 'string' }, { type: 'object' }] },
|
|
6131
|
+
source: {
|
|
6132
|
+
type: 'object',
|
|
6133
|
+
required: ['kind'],
|
|
6134
|
+
properties: {
|
|
6135
|
+
kind: { enum: ['praxis.stats', 'derived'] },
|
|
6136
|
+
resource: { type: 'string' },
|
|
6137
|
+
operation: { enum: ['group-by', 'timeseries', 'distribution'] },
|
|
6138
|
+
options: { type: 'object' },
|
|
6139
|
+
},
|
|
6140
|
+
},
|
|
6141
|
+
dimensions: { type: 'array', items: { type: 'object' } },
|
|
6142
|
+
metrics: { type: 'array', items: { type: 'object' } },
|
|
6143
|
+
events: { type: 'object' },
|
|
6144
|
+
},
|
|
6145
|
+
};
|
|
6146
|
+
const PRAXIS_CHARTS_AUTHORING_MANIFEST = {
|
|
6147
|
+
schemaVersion: '1.0.0',
|
|
6148
|
+
componentId: 'praxis-chart',
|
|
6149
|
+
ownerPackage: '@praxisui/charts',
|
|
6150
|
+
configSchemaId: 'PraxisXUiChartContract',
|
|
6151
|
+
manifestVersion: '1.0.0',
|
|
6152
|
+
runtimeInputs: [
|
|
6153
|
+
{ name: 'chartDocument', type: 'PraxisXUiChartContract | null', description: 'Canonical x-ui.chart document used as the authoring source of truth.' },
|
|
6154
|
+
{ name: 'config', type: 'PraxisChartConfig', description: 'Runtime chart configuration mapped from or supplied beside the canonical chart document.' },
|
|
6155
|
+
{ name: 'queryContext', type: 'PraxisChartQueryContext | null', description: 'Declarative query context merged into remote datasource requests.' },
|
|
6156
|
+
{ name: 'remoteDataResolver', type: 'PraxisChartRemoteDataResolver | null', description: 'Host-governed remote row resolver for integrations outside the default praxis.stats client.' },
|
|
6157
|
+
{ name: 'availableResources', type: 'ChartEditorResourceOption[]', description: 'Governed remote resource catalog exposed to the config editor.' },
|
|
6158
|
+
{ name: 'availableFields', type: 'ChartEditorFieldOption[]', description: 'Governed semantic field catalog exposed to the config editor.' },
|
|
6159
|
+
{ name: 'availableTargets', type: 'ChartEditorTargetOption[]', description: 'Governed widget or route targets exposed to chart event authoring.' },
|
|
6160
|
+
],
|
|
6161
|
+
editableTargets: [
|
|
6162
|
+
{ kind: 'chartType', resolver: 'x-ui-chart-kind', description: 'Canonical `kind` field in PraxisXUiChartContract.' },
|
|
6163
|
+
{ kind: 'series', resolver: 'x-ui-chart-metric-by-field', description: 'Metric-backed series definition in `metrics[]`, keyed by field.' },
|
|
6164
|
+
{ kind: 'axis', resolver: 'x-ui-chart-dimension-or-metric-axis', description: 'Dimension role, metric axis and chart orientation semantics.' },
|
|
6165
|
+
{ kind: 'dataBinding', resolver: 'x-ui-chart-source-and-field-catalog', description: 'Source, dimensions, metrics and resource/field bindings.' },
|
|
6166
|
+
{ kind: 'queryContext', resolver: 'praxis-chart-query-context', description: 'Runtime queryContext contract for filters, sort, limit and page.' },
|
|
6167
|
+
{ kind: 'crossFilter', resolver: 'x-ui-chart-events-cross-filter', description: 'Cross-filter event mapping emitted as structured query-context filters.' },
|
|
6168
|
+
{ kind: 'drilldown', resolver: 'x-ui-chart-events-drill-down', description: 'Drilldown event mapping and governed target.' },
|
|
6169
|
+
{ kind: 'selection', resolver: 'x-ui-chart-events-selection-change', description: 'Selection event enablement and mapping semantics.' },
|
|
6170
|
+
{ kind: 'legend', resolver: 'x-ui-chart-legend-feature', description: 'Legend visibility through boolean or toggleable feature object.' },
|
|
6171
|
+
{ kind: 'tooltip', resolver: 'x-ui-chart-tooltip-feature', description: 'Tooltip visibility through boolean or toggleable feature object.' },
|
|
6172
|
+
],
|
|
6173
|
+
operations: [
|
|
6174
|
+
{
|
|
6175
|
+
operationId: 'chart.document.set',
|
|
6176
|
+
title: 'Set chart document',
|
|
6177
|
+
scope: 'global',
|
|
6178
|
+
targetKind: 'dataBinding',
|
|
6179
|
+
target: { kind: 'dataBinding', resolver: 'x-ui-chart-document-root', ambiguityPolicy: 'fail', required: false },
|
|
6180
|
+
inputSchema: chartDocumentSchema,
|
|
6181
|
+
effects: [{ kind: 'set-value', path: 'chartDocument' }],
|
|
6182
|
+
destructive: false,
|
|
6183
|
+
requiresConfirmation: false,
|
|
6184
|
+
validators: ['chart-document-shape', 'chart-version-supported', 'chart-type-series-axis-compatible', 'editor-runtime-round-trip'],
|
|
6185
|
+
affectedPaths: ['chartDocument'],
|
|
6186
|
+
submissionImpact: 'config-only',
|
|
6187
|
+
preconditions: ['config-initialized'],
|
|
6188
|
+
},
|
|
6189
|
+
{
|
|
6190
|
+
operationId: 'chart.type.set',
|
|
6191
|
+
title: 'Set chart type',
|
|
6192
|
+
scope: 'global',
|
|
6193
|
+
targetKind: 'chartType',
|
|
6194
|
+
target: { kind: 'chartType', resolver: 'x-ui-chart-kind', ambiguityPolicy: 'fail', required: false },
|
|
6195
|
+
inputSchema: { type: 'object', required: ['kind'], properties: { kind: { enum: ['bar', 'combo', 'horizontal-bar', 'line', 'pie', 'donut', 'area', 'stacked-bar', 'stacked-area', 'scatter'] }, orientation: { enum: ['vertical', 'horizontal'] } } },
|
|
6196
|
+
effects: [{ kind: 'merge-object', path: 'chartDocument' }],
|
|
6197
|
+
destructive: false,
|
|
6198
|
+
requiresConfirmation: false,
|
|
6199
|
+
validators: ['chart-type-supported', 'chart-type-series-axis-compatible', 'pie-single-metric', 'combo-minimum-series', 'editor-runtime-round-trip'],
|
|
6200
|
+
affectedPaths: ['chartDocument.kind', 'chartDocument.orientation', 'chartDocument.metrics[]', 'chartDocument.dimensions[]'],
|
|
6201
|
+
submissionImpact: 'config-only',
|
|
6202
|
+
preconditions: ['config-initialized'],
|
|
6203
|
+
},
|
|
6204
|
+
{
|
|
6205
|
+
operationId: 'series.add',
|
|
6206
|
+
title: 'Add chart series',
|
|
6207
|
+
scope: 'dataBinding',
|
|
6208
|
+
targetKind: 'series',
|
|
6209
|
+
target: { kind: 'series', resolver: 'x-ui-chart-metric-by-field', ambiguityPolicy: 'fail', required: false },
|
|
6210
|
+
inputSchema: {
|
|
6211
|
+
type: 'object',
|
|
6212
|
+
required: ['field'],
|
|
6213
|
+
properties: {
|
|
6214
|
+
field: { type: 'string' },
|
|
6215
|
+
label: { oneOf: [{ type: 'string' }, { type: 'object' }] },
|
|
6216
|
+
aggregation: { enum: ['sum', 'avg', 'min', 'max', 'count', 'distinct-count'] },
|
|
6217
|
+
seriesKind: { enum: ['bar', 'line', 'area'] },
|
|
6218
|
+
axis: { enum: ['primary', 'secondary'] },
|
|
6219
|
+
color: { type: 'string' },
|
|
6220
|
+
format: { type: 'string' },
|
|
6221
|
+
afterField: { type: 'string' },
|
|
6222
|
+
},
|
|
6223
|
+
},
|
|
6224
|
+
effects: [{ kind: 'compile-domain-patch', handler: 'chart-series-add', handlerContract: {
|
|
6225
|
+
reads: ['chartDocument.kind', 'chartDocument.metrics[]', 'availableFields[]'],
|
|
6226
|
+
writes: ['chartDocument.metrics[]'],
|
|
6227
|
+
identityKeys: ['chartDocument.metrics[].field'],
|
|
6228
|
+
inputSchema: {
|
|
6229
|
+
type: 'object',
|
|
6230
|
+
required: ['field'],
|
|
6231
|
+
properties: {
|
|
6232
|
+
field: { type: 'string' },
|
|
6233
|
+
label: { oneOf: [{ type: 'string' }, { type: 'object' }] },
|
|
6234
|
+
aggregation: { enum: ['sum', 'avg', 'min', 'max', 'count', 'distinct-count'] },
|
|
6235
|
+
seriesKind: { enum: ['bar', 'line', 'area'] },
|
|
6236
|
+
axis: { enum: ['primary', 'secondary'] },
|
|
6237
|
+
color: { type: 'string' },
|
|
6238
|
+
format: { type: 'string' },
|
|
6239
|
+
afterField: { type: 'string' },
|
|
6240
|
+
},
|
|
6241
|
+
},
|
|
6242
|
+
failureModes: ['field-not-in-catalog', 'duplicate-series-field', 'aggregation-not-supported', 'chart-type-series-incompatible'],
|
|
6243
|
+
description: 'Adds a metric-backed series by semantic field, validating it against availableFields and chart kind compatibility before patching metrics[].',
|
|
6244
|
+
} }],
|
|
6245
|
+
destructive: false,
|
|
6246
|
+
requiresConfirmation: false,
|
|
6247
|
+
validators: ['series-field-exists', 'series-field-aggregable', 'series-id-unique', 'chart-type-series-axis-compatible', 'editor-runtime-round-trip'],
|
|
6248
|
+
affectedPaths: ['chartDocument.metrics[]'],
|
|
6249
|
+
submissionImpact: 'config-only',
|
|
6250
|
+
preconditions: ['config-initialized'],
|
|
6251
|
+
},
|
|
6252
|
+
{
|
|
6253
|
+
operationId: 'series.remove',
|
|
6254
|
+
title: 'Remove chart series',
|
|
6255
|
+
scope: 'dataBinding',
|
|
6256
|
+
targetKind: 'series',
|
|
6257
|
+
target: { kind: 'series', resolver: 'x-ui-chart-metric-by-field', ambiguityPolicy: 'fail', required: true },
|
|
6258
|
+
inputSchema: { type: 'object', required: ['field'], properties: { field: { type: 'string' }, replacementField: { type: 'string' } } },
|
|
6259
|
+
effects: [{ kind: 'remove-by-key', path: 'chartDocument.metrics[]', key: 'field' }],
|
|
6260
|
+
destructive: true,
|
|
6261
|
+
requiresConfirmation: true,
|
|
6262
|
+
validators: ['series-exists', 'destructive-series-removal-confirmed', 'chart-keeps-required-metric', 'editor-runtime-round-trip'],
|
|
6263
|
+
affectedPaths: ['chartDocument.metrics[]'],
|
|
6264
|
+
submissionImpact: 'config-only',
|
|
6265
|
+
preconditions: ['config-initialized', 'target-series-exists', 'confirmation-collected'],
|
|
6266
|
+
},
|
|
6267
|
+
{
|
|
6268
|
+
operationId: 'axis.configure',
|
|
6269
|
+
title: 'Configure chart axis',
|
|
6270
|
+
scope: 'dataBinding',
|
|
6271
|
+
targetKind: 'axis',
|
|
6272
|
+
target: { kind: 'axis', resolver: 'x-ui-chart-dimension-or-metric-axis', ambiguityPolicy: 'fail', required: true },
|
|
6273
|
+
inputSchema: {
|
|
6274
|
+
type: 'object',
|
|
6275
|
+
properties: {
|
|
6276
|
+
dimensionField: { type: 'string' },
|
|
6277
|
+
dimensionRole: { enum: ['category', 'series', 'segment', 'time', 'value'] },
|
|
6278
|
+
metricField: { type: 'string' },
|
|
6279
|
+
metricAxis: { enum: ['primary', 'secondary'] },
|
|
6280
|
+
orientation: { enum: ['vertical', 'horizontal'] },
|
|
6281
|
+
},
|
|
6282
|
+
},
|
|
6283
|
+
effects: [{ kind: 'compile-domain-patch', handler: 'chart-axis-configure', handlerContract: {
|
|
6284
|
+
reads: ['chartDocument.kind', 'chartDocument.dimensions[]', 'chartDocument.metrics[]', 'availableFields[]'],
|
|
6285
|
+
writes: ['chartDocument.dimensions[]', 'chartDocument.metrics[]', 'chartDocument.orientation'],
|
|
6286
|
+
identityKeys: ['chartDocument.dimensions[].field', 'chartDocument.metrics[].field'],
|
|
6287
|
+
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'] } } },
|
|
6288
|
+
failureModes: ['field-not-in-catalog', 'secondary-axis-non-combo', 'missing-required-dimension', 'axis-role-incompatible'],
|
|
6289
|
+
description: 'Configures dimensions and metric axes using semantic fields, preserving combo-only secondary axis constraints.',
|
|
6290
|
+
} }],
|
|
6291
|
+
destructive: false,
|
|
6292
|
+
requiresConfirmation: false,
|
|
6293
|
+
validators: ['axis-field-exists', 'secondary-axis-combo-only', 'cartesian-dimension-required', 'editor-runtime-round-trip'],
|
|
6294
|
+
affectedPaths: ['chartDocument.dimensions[]', 'chartDocument.metrics[].axis', 'chartDocument.orientation'],
|
|
6295
|
+
submissionImpact: 'config-only',
|
|
6296
|
+
preconditions: ['config-initialized'],
|
|
6297
|
+
},
|
|
6298
|
+
{
|
|
6299
|
+
operationId: 'data.resource.bind',
|
|
6300
|
+
title: 'Bind chart data resource',
|
|
6301
|
+
scope: 'dataBinding',
|
|
6302
|
+
targetKind: 'dataBinding',
|
|
6303
|
+
target: { kind: 'dataBinding', resolver: 'x-ui-chart-source-and-field-catalog', ambiguityPolicy: 'fail', required: false },
|
|
6304
|
+
inputSchema: {
|
|
6305
|
+
type: 'object',
|
|
6306
|
+
required: ['sourceKind'],
|
|
6307
|
+
properties: {
|
|
6308
|
+
sourceKind: { enum: ['praxis.stats', 'derived'] },
|
|
6309
|
+
resource: { type: 'string' },
|
|
6310
|
+
operation: { enum: ['group-by', 'timeseries', 'distribution'] },
|
|
6311
|
+
dimensions: { type: 'array', items: { type: 'object', required: ['field'], properties: { field: { type: 'string' }, role: { type: 'string' } } } },
|
|
6312
|
+
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' } } } },
|
|
6313
|
+
},
|
|
6314
|
+
},
|
|
6315
|
+
effects: [{ kind: 'compile-domain-patch', handler: 'chart-data-resource-bind', handlerContract: {
|
|
6316
|
+
reads: ['availableResources[]', 'availableFields[]', 'chartDocument.source', 'chartDocument.dimensions[]', 'chartDocument.metrics[]'],
|
|
6317
|
+
writes: ['chartDocument.source', 'chartDocument.dimensions[]', 'chartDocument.metrics[]'],
|
|
6318
|
+
identityKeys: ['availableResources[].path', 'availableResources[].id', 'availableFields[].field'],
|
|
6319
|
+
inputSchema: { type: 'object', required: ['sourceKind'], properties: { sourceKind: { enum: ['praxis.stats', 'derived'] }, resource: { type: 'string' }, operation: { enum: ['group-by', 'timeseries', 'distribution'] }, dimensions: { type: 'array' }, metrics: { type: 'array' } } },
|
|
6320
|
+
failureModes: ['resource-not-in-api-metadata', 'field-not-in-schema', 'stats-operation-not-supported', 'remote-binding-incomplete'],
|
|
6321
|
+
description: 'Binds a derived or praxis.stats source using the governed resource and field catalogs instead of free-form prompt examples.',
|
|
6322
|
+
} }],
|
|
6323
|
+
destructive: false,
|
|
6324
|
+
requiresConfirmation: false,
|
|
6325
|
+
validators: ['remote-resource-in-api-metadata', 'bound-fields-exist', 'stats-operation-supported', 'editor-runtime-round-trip'],
|
|
6326
|
+
affectedPaths: ['chartDocument.source', 'chartDocument.dimensions[]', 'chartDocument.metrics[]'],
|
|
6327
|
+
submissionImpact: 'affects-remote-binding',
|
|
6328
|
+
preconditions: ['config-initialized'],
|
|
6329
|
+
},
|
|
6330
|
+
{
|
|
6331
|
+
operationId: 'queryContext.set',
|
|
6332
|
+
title: 'Set chart query context',
|
|
6333
|
+
scope: 'dataBinding',
|
|
6334
|
+
targetKind: 'queryContext',
|
|
6335
|
+
target: { kind: 'queryContext', resolver: 'praxis-chart-query-context', ambiguityPolicy: 'fail', required: false },
|
|
6336
|
+
inputSchema: { type: 'object', properties: { filters: { type: 'object' }, sort: { type: 'array', items: { type: 'string' } }, limit: { type: 'number' }, page: { type: 'object' }, meta: { type: 'object' } } },
|
|
6337
|
+
effects: [{ kind: 'set-value', path: 'queryContext' }],
|
|
6338
|
+
destructive: false,
|
|
6339
|
+
requiresConfirmation: false,
|
|
6340
|
+
validators: ['query-context-structured', 'query-context-fields-exist', 'query-context-safe-values', 'editor-runtime-round-trip'],
|
|
6341
|
+
affectedPaths: ['queryContext'],
|
|
6342
|
+
submissionImpact: 'config-only',
|
|
6343
|
+
preconditions: ['config-initialized'],
|
|
6344
|
+
},
|
|
6345
|
+
{
|
|
6346
|
+
operationId: 'crossFilter.configure',
|
|
6347
|
+
title: 'Configure chart cross-filter',
|
|
6348
|
+
scope: 'eventMapping',
|
|
6349
|
+
targetKind: 'crossFilter',
|
|
6350
|
+
target: { kind: 'crossFilter', resolver: 'x-ui-chart-events-cross-filter', ambiguityPolicy: 'fail', required: false },
|
|
6351
|
+
inputSchema: { type: 'object', required: ['event', 'action'], properties: { event: { enum: ['pointClick', 'selectionChange', 'drillDown', 'crossFilter'] }, action: { enum: ['filter-widget', 'open-detail', 'navigate', 'update-context', 'emit'] }, target: { type: 'string' }, mapping: { type: 'object', additionalProperties: { type: 'string' } } } },
|
|
6352
|
+
effects: [{ kind: 'compile-domain-patch', handler: 'chart-event-cross-filter-configure', handlerContract: {
|
|
6353
|
+
reads: ['chartDocument.events.crossFilter', 'chartDocument.dimensions[]', 'availableTargets[]'],
|
|
6354
|
+
writes: ['chartDocument.events.crossFilter'],
|
|
6355
|
+
identityKeys: ['availableTargets[].id'],
|
|
6356
|
+
inputSchema: { type: 'object', required: ['event', 'action'], properties: { event: { enum: ['pointClick', 'selectionChange', 'drillDown', 'crossFilter'] }, action: { enum: ['filter-widget', 'open-detail', 'navigate', 'update-context', 'emit'] }, target: { type: 'string' }, mapping: { type: 'object', additionalProperties: { type: 'string' } } } },
|
|
6357
|
+
failureModes: ['target-not-in-catalog', 'mapping-source-field-missing', 'mapping-target-invalid', 'unsafe-event-action'],
|
|
6358
|
+
description: 'Configures crossFilter as a structured event action that emits safe query-context filters to a governed target.',
|
|
6359
|
+
} }],
|
|
6360
|
+
destructive: false,
|
|
6361
|
+
requiresConfirmation: false,
|
|
6362
|
+
validators: ['cross-filter-output-structured', 'event-target-governed', 'event-mapping-fields-exist', 'editor-runtime-round-trip'],
|
|
6363
|
+
affectedPaths: ['chartDocument.events.crossFilter'],
|
|
6364
|
+
submissionImpact: 'config-only',
|
|
6365
|
+
preconditions: ['config-initialized'],
|
|
6366
|
+
},
|
|
6367
|
+
{
|
|
6368
|
+
operationId: 'drilldown.configure',
|
|
6369
|
+
title: 'Configure chart drilldown',
|
|
6370
|
+
scope: 'eventMapping',
|
|
6371
|
+
targetKind: 'drilldown',
|
|
6372
|
+
target: { kind: 'drilldown', resolver: 'x-ui-chart-events-drill-down', ambiguityPolicy: 'fail', required: false },
|
|
6373
|
+
inputSchema: { type: 'object', required: ['event', 'action'], properties: { event: { enum: ['pointClick', 'selectionChange', 'drillDown', 'crossFilter'] }, action: { enum: ['filter-widget', 'open-detail', 'navigate', 'update-context', 'emit'] }, target: { type: 'string' }, mapping: { type: 'object', additionalProperties: { type: 'string' } } } },
|
|
6374
|
+
effects: [{ kind: 'compile-domain-patch', handler: 'chart-event-drilldown-configure', handlerContract: {
|
|
6375
|
+
reads: ['chartDocument.events.drillDown', 'chartDocument.dimensions[]', 'availableTargets[]'],
|
|
6376
|
+
writes: ['chartDocument.events.drillDown'],
|
|
6377
|
+
identityKeys: ['availableTargets[].id'],
|
|
6378
|
+
inputSchema: { type: 'object', required: ['event', 'action'], properties: { event: { enum: ['pointClick', 'selectionChange', 'drillDown', 'crossFilter'] }, action: { enum: ['filter-widget', 'open-detail', 'navigate', 'update-context', 'emit'] }, target: { type: 'string' }, mapping: { type: 'object', additionalProperties: { type: 'string' } } } },
|
|
6379
|
+
failureModes: ['target-not-in-catalog', 'mapping-source-field-missing', 'drilldown-target-invalid', 'unsafe-event-action'],
|
|
6380
|
+
description: 'Configures drillDown through governed route/widget targets and structured field mappings.',
|
|
6381
|
+
} }],
|
|
6382
|
+
destructive: false,
|
|
6383
|
+
requiresConfirmation: false,
|
|
6384
|
+
validators: ['drilldown-target-governed', 'event-mapping-fields-exist', 'event-action-supported', 'editor-runtime-round-trip'],
|
|
6385
|
+
affectedPaths: ['chartDocument.events.drillDown'],
|
|
6386
|
+
submissionImpact: 'config-only',
|
|
6387
|
+
preconditions: ['config-initialized'],
|
|
6388
|
+
},
|
|
6389
|
+
{
|
|
6390
|
+
operationId: 'selection.configure',
|
|
6391
|
+
title: 'Configure chart selection',
|
|
6392
|
+
scope: 'selection',
|
|
6393
|
+
targetKind: 'selection',
|
|
6394
|
+
target: { kind: 'selection', resolver: 'x-ui-chart-events-selection-change', ambiguityPolicy: 'fail', required: false },
|
|
6395
|
+
inputSchema: { type: 'object', required: ['event', 'action'], properties: { event: { enum: ['pointClick', 'selectionChange', 'drillDown', 'crossFilter'] }, action: { enum: ['filter-widget', 'open-detail', 'navigate', 'update-context', 'emit'] }, target: { type: 'string' }, mapping: { type: 'object', additionalProperties: { type: 'string' } } } },
|
|
6396
|
+
effects: [{ kind: 'merge-object', path: 'chartDocument.events.selectionChange' }],
|
|
6397
|
+
destructive: false,
|
|
6398
|
+
requiresConfirmation: false,
|
|
6399
|
+
validators: ['selection-output-structured', 'event-mapping-fields-exist', 'event-action-supported', 'editor-runtime-round-trip'],
|
|
6400
|
+
affectedPaths: ['chartDocument.events.selectionChange'],
|
|
6401
|
+
submissionImpact: 'config-only',
|
|
6402
|
+
preconditions: ['config-initialized'],
|
|
6403
|
+
},
|
|
6404
|
+
{
|
|
6405
|
+
operationId: 'legend.configure',
|
|
6406
|
+
title: 'Configure chart legend',
|
|
6407
|
+
scope: 'skin',
|
|
6408
|
+
targetKind: 'legend',
|
|
6409
|
+
target: { kind: 'legend', resolver: 'x-ui-chart-legend-feature', ambiguityPolicy: 'fail', required: false },
|
|
6410
|
+
inputSchema: { type: 'object', required: ['enabled'], properties: { enabled: { type: 'boolean' } } },
|
|
6411
|
+
effects: [{ kind: 'set-value', path: 'chartDocument.legend' }],
|
|
6412
|
+
destructive: false,
|
|
6413
|
+
requiresConfirmation: false,
|
|
6414
|
+
validators: ['feature-toggle-valid', 'editor-runtime-round-trip'],
|
|
6415
|
+
affectedPaths: ['chartDocument.legend'],
|
|
6416
|
+
submissionImpact: 'visual-only',
|
|
6417
|
+
preconditions: ['config-initialized'],
|
|
6418
|
+
},
|
|
6419
|
+
{
|
|
6420
|
+
operationId: 'tooltip.configure',
|
|
6421
|
+
title: 'Configure chart tooltip',
|
|
6422
|
+
scope: 'skin',
|
|
6423
|
+
targetKind: 'tooltip',
|
|
6424
|
+
target: { kind: 'tooltip', resolver: 'x-ui-chart-tooltip-feature', ambiguityPolicy: 'fail', required: false },
|
|
6425
|
+
inputSchema: { type: 'object', required: ['enabled'], properties: { enabled: { type: 'boolean' } } },
|
|
6426
|
+
effects: [{ kind: 'set-value', path: 'chartDocument.tooltip' }],
|
|
6427
|
+
destructive: false,
|
|
6428
|
+
requiresConfirmation: false,
|
|
6429
|
+
validators: ['feature-toggle-valid', 'editor-runtime-round-trip'],
|
|
6430
|
+
affectedPaths: ['chartDocument.tooltip'],
|
|
6431
|
+
submissionImpact: 'visual-only',
|
|
6432
|
+
preconditions: ['config-initialized'],
|
|
6433
|
+
},
|
|
6434
|
+
],
|
|
6435
|
+
validators: [
|
|
6436
|
+
{ validatorId: 'chart-document-shape', level: 'error', code: 'CHART_DOCUMENT_SHAPE', description: 'Document must conform to PraxisXUiChartContract.' },
|
|
6437
|
+
{ validatorId: 'chart-version-supported', level: 'error', code: 'CHART_VERSION_SUPPORTED', description: 'Only x-ui.chart version 0.1.0 is authorable.' },
|
|
6438
|
+
{ validatorId: 'chart-type-supported', level: 'error', code: 'CHART_TYPE_SUPPORTED', description: 'Chart kind must be supported by @praxisui/charts.' },
|
|
6439
|
+
{ validatorId: 'chart-type-series-axis-compatible', level: 'error', code: 'CHART_TYPE_SERIES_AXIS_COMPATIBLE', description: 'Chart kind, dimensions, metrics and axes must be compatible.' },
|
|
6440
|
+
{ validatorId: 'pie-single-metric', level: 'error', code: 'PIE_SINGLE_METRIC', description: 'Pie and donut charts support a single metric.' },
|
|
6441
|
+
{ validatorId: 'combo-minimum-series', level: 'error', code: 'COMBO_MINIMUM_SERIES', description: 'Combo charts require at least two metrics.' },
|
|
6442
|
+
{ validatorId: 'series-field-exists', level: 'error', code: 'SERIES_FIELD_EXISTS', description: 'Series field must exist in availableFields or schema context.' },
|
|
6443
|
+
{ validatorId: 'series-field-aggregable', level: 'error', code: 'SERIES_FIELD_AGGREGABLE', description: 'Metric fields must support the requested aggregation.' },
|
|
6444
|
+
{ validatorId: 'series-id-unique', level: 'error', code: 'SERIES_ID_UNIQUE', description: 'Metric/series identity must be stable and unique by field.' },
|
|
6445
|
+
{ validatorId: 'series-exists', level: 'error', code: 'SERIES_EXISTS', description: 'Series removal target must exist.' },
|
|
6446
|
+
{ validatorId: 'destructive-series-removal-confirmed', level: 'error', code: 'DESTRUCTIVE_SERIES_REMOVAL_CONFIRMED', description: 'Removing a series requires explicit confirmation.' },
|
|
6447
|
+
{ validatorId: 'chart-keeps-required-metric', level: 'error', code: 'CHART_KEEPS_REQUIRED_METRIC', description: 'A chart cannot be left without required metrics.' },
|
|
6448
|
+
{ validatorId: 'axis-field-exists', level: 'error', code: 'AXIS_FIELD_EXISTS', description: 'Axis/dimension fields must exist in availableFields or schema context.' },
|
|
6449
|
+
{ validatorId: 'secondary-axis-combo-only', level: 'error', code: 'SECONDARY_AXIS_COMBO_ONLY', description: 'Secondary axis is supported only for combo charts.' },
|
|
6450
|
+
{ validatorId: 'cartesian-dimension-required', level: 'error', code: 'CARTESIAN_DIMENSION_REQUIRED', description: 'Cartesian charts require at least one dimension.' },
|
|
6451
|
+
{ validatorId: 'remote-resource-in-api-metadata', level: 'error', code: 'REMOTE_RESOURCE_IN_API_METADATA', description: 'Remote praxis.stats resource must come from the governed API metadata/resource catalog.' },
|
|
6452
|
+
{ validatorId: 'bound-fields-exist', level: 'error', code: 'BOUND_FIELDS_EXIST', description: 'Bound dimensions and metrics must exist in the schema/data context.' },
|
|
6453
|
+
{ validatorId: 'stats-operation-supported', level: 'error', code: 'STATS_OPERATION_SUPPORTED', description: 'Remote datasource operation must be supported by the stats backend.' },
|
|
6454
|
+
{ validatorId: 'query-context-structured', level: 'error', code: 'QUERY_CONTEXT_STRUCTURED', description: 'queryContext must use structured filters, sort, limit and page fields.' },
|
|
6455
|
+
{ validatorId: 'query-context-fields-exist', level: 'warning', code: 'QUERY_CONTEXT_FIELDS_EXIST', description: 'queryContext filter fields should exist in the schema/data context.' },
|
|
6456
|
+
{ validatorId: 'query-context-safe-values', level: 'error', code: 'QUERY_CONTEXT_SAFE_VALUES', description: 'queryContext values must be serializable safe data.' },
|
|
6457
|
+
{ validatorId: 'cross-filter-output-structured', level: 'error', code: 'CROSS_FILTER_OUTPUT_STRUCTURED', description: 'Cross-filter output must be structured as query-context filters.' },
|
|
6458
|
+
{ validatorId: 'event-target-governed', level: 'error', code: 'EVENT_TARGET_GOVERNED', description: 'Event targets must be selected from availableTargets or an approved host catalog.' },
|
|
6459
|
+
{ validatorId: 'event-mapping-fields-exist', level: 'error', code: 'EVENT_MAPPING_FIELDS_EXIST', description: 'Event mapping source fields must exist in chart data context.' },
|
|
6460
|
+
{ validatorId: 'event-action-supported', level: 'error', code: 'EVENT_ACTION_SUPPORTED', description: 'Event action must be one of the supported structured action kinds.' },
|
|
6461
|
+
{ validatorId: 'drilldown-target-governed', level: 'error', code: 'DRILLDOWN_TARGET_GOVERNED', description: 'Drilldown target must be a governed route or widget target.' },
|
|
6462
|
+
{ validatorId: 'selection-output-structured', level: 'error', code: 'SELECTION_OUTPUT_STRUCTURED', description: 'Selection output must resolve selected point filters deterministically.' },
|
|
6463
|
+
{ validatorId: 'feature-toggle-valid', level: 'error', code: 'FEATURE_TOGGLE_VALID', description: 'Legend and tooltip feature values must be boolean or toggleable feature objects.' },
|
|
6464
|
+
{ validatorId: 'editor-runtime-round-trip', level: 'error', code: 'EDITOR_RUNTIME_ROUND_TRIP', description: 'PraxisChartConfigEditor must save/reopen the same canonical document that runtime consumes.' },
|
|
6465
|
+
],
|
|
6466
|
+
roundTripRequirements: [
|
|
6467
|
+
'The canonical saved shape is PraxisXUiChartContract, not raw ECharts options.',
|
|
6468
|
+
'PraxisChartConfigEditor must preserve chart kind, source, dimensions, metrics, events, legend and tooltip across apply/save/reset/reopen.',
|
|
6469
|
+
'Remote bindings must be resolved from availableResources/API metadata and availableFields/schema context.',
|
|
6470
|
+
'Cross-filter, drilldown and selection authoring must persist structured event actions, not prompt examples or command strings.',
|
|
6471
|
+
],
|
|
6472
|
+
examples: [
|
|
6473
|
+
{ id: 'set-bar-chart', request: 'Use a bar chart for employees by department.', operationId: 'chart.type.set', params: { kind: 'bar' }, isPositive: true },
|
|
6474
|
+
{ id: 'add-salary-series', request: 'Add salary as a summed metric.', operationId: 'series.add', params: { field: 'salary', aggregation: 'sum', label: 'Salary' }, isPositive: true },
|
|
6475
|
+
{ id: 'remove-old-series', request: 'Remove the old cost series.', operationId: 'series.remove', target: 'cost', params: { field: 'cost' }, isPositive: true },
|
|
6476
|
+
{ 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 },
|
|
6477
|
+
{ 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 },
|
|
6478
|
+
{ 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 },
|
|
6479
|
+
{ id: 'configure-cross-filter', request: 'Use selected department to filter the employee table.', operationId: 'crossFilter.configure', params: { event: 'crossFilter', action: 'filter-widget', target: 'employeesTable', mapping: { department: 'department' } }, isPositive: true },
|
|
6480
|
+
{ id: 'configure-drilldown', request: 'Open the department detail when a point is clicked.', operationId: 'drilldown.configure', params: { event: 'drillDown', action: 'navigate', target: '/departments/detail', mapping: { department: 'departmentId' } }, isPositive: true },
|
|
6481
|
+
{ id: 'configure-selection', request: 'Emit selected department as a structured selection event.', operationId: 'selection.configure', params: { event: 'selectionChange', action: 'emit', mapping: { department: 'department' } }, isPositive: true },
|
|
6482
|
+
{ id: 'toggle-legend', request: 'Show the legend.', operationId: 'legend.configure', params: { enabled: true }, isPositive: true },
|
|
6483
|
+
{ id: 'toggle-tooltip', request: 'Disable tooltips.', operationId: 'tooltip.configure', params: { enabled: false }, isPositive: true },
|
|
6484
|
+
{ 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 },
|
|
6485
|
+
{ 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 },
|
|
6486
|
+
{ 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 },
|
|
6487
|
+
{ 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 },
|
|
6488
|
+
],
|
|
6489
|
+
};
|
|
6490
|
+
|
|
6122
6491
|
/*
|
|
6123
6492
|
* Public API Surface of praxis-charts
|
|
6124
6493
|
*/
|
|
@@ -6127,4 +6496,4 @@ var praxisChartConfigEditor = /*#__PURE__*/Object.freeze({
|
|
|
6127
6496
|
* Generated bundle index. Do not edit.
|
|
6128
6497
|
*/
|
|
6129
6498
|
|
|
6130
|
-
export { AnalyticsChartConfigAdapterService, AnalyticsChartContractService, ChartContractNormalizerService, ChartContractValidationService, ChartEditorDefaultsService, ChartEditorPreviewMapperService, PRAXIS_CHARTS_I18N, PRAXIS_CHART_BACKEND_MOCK_BAR, PRAXIS_CHART_BACKEND_MOCK_COMBO, PRAXIS_CHART_BACKEND_MOCK_DONUT, PRAXIS_CHART_BACKEND_MOCK_HORIZONTAL_BAR, PRAXIS_CHART_BACKEND_MOCK_MULTI_METRIC_BAR, PRAXIS_CHART_BACKEND_MOCK_SCATTER, PRAXIS_CHART_BACKEND_MOCK_STACKED_AREA, PRAXIS_CHART_BACKEND_MOCK_TIMESERIES, PRAXIS_CHART_COMPONENT_METADATA, PRAXIS_CHART_DRILLDOWN_DATA_BY_MONTH, PRAXIS_CHART_DRILLDOWN_PANEL_METADATA, PRAXIS_CHART_ENGINE, PRAXIS_CHART_PALETTE_TOKENS, PRAXIS_CHART_STATE_PROBE_COMPONENT_METADATA, PRAXIS_CHART_THEME_VARIANTS, PraxisChartBackendPayloadAdapterService, PraxisChartCanonicalContractMapperService, PraxisChartComponent, PraxisChartCompositionShowcaseComponent, PraxisChartConfigEditor, PraxisChartDataTransformerService, PraxisChartDrilldownPanelComponent, PraxisChartOptionBuilderService, PraxisChartSchemaMapperService, PraxisChartStateProbeComponent, PraxisChartStatsApiService, buildPraxisChartInteractiveCanvasPage, buildPraxisChartInteractiveWidgetPage, buildPraxisChartMockCanvasPage, buildPraxisChartMockWidgetPage, createPraxisChartsI18nConfig, isPraxisChartPaletteToken, providePraxisChartDrilldownPanelMetadata, providePraxisChartStateProbeMetadata, providePraxisCharts, providePraxisChartsI18n, providePraxisChartsMetadata, resolvePraxisChartPaletteToken, resolvePraxisChartsText };
|
|
6499
|
+
export { AnalyticsChartConfigAdapterService, AnalyticsChartContractService, ChartContractNormalizerService, ChartContractValidationService, ChartEditorDefaultsService, ChartEditorPreviewMapperService, PRAXIS_CHARTS_AUTHORING_MANIFEST, PRAXIS_CHARTS_I18N, PRAXIS_CHART_BACKEND_MOCK_BAR, PRAXIS_CHART_BACKEND_MOCK_COMBO, PRAXIS_CHART_BACKEND_MOCK_DONUT, PRAXIS_CHART_BACKEND_MOCK_HORIZONTAL_BAR, PRAXIS_CHART_BACKEND_MOCK_MULTI_METRIC_BAR, PRAXIS_CHART_BACKEND_MOCK_SCATTER, PRAXIS_CHART_BACKEND_MOCK_STACKED_AREA, PRAXIS_CHART_BACKEND_MOCK_TIMESERIES, PRAXIS_CHART_COMPONENT_METADATA, PRAXIS_CHART_DRILLDOWN_DATA_BY_MONTH, PRAXIS_CHART_DRILLDOWN_PANEL_METADATA, PRAXIS_CHART_ENGINE, PRAXIS_CHART_PALETTE_TOKENS, PRAXIS_CHART_STATE_PROBE_COMPONENT_METADATA, PRAXIS_CHART_THEME_VARIANTS, PraxisChartBackendPayloadAdapterService, PraxisChartCanonicalContractMapperService, PraxisChartComponent, PraxisChartCompositionShowcaseComponent, PraxisChartConfigEditor, PraxisChartDataTransformerService, PraxisChartDrilldownPanelComponent, PraxisChartOptionBuilderService, PraxisChartSchemaMapperService, PraxisChartStateProbeComponent, PraxisChartStatsApiService, buildPraxisChartInteractiveCanvasPage, buildPraxisChartInteractiveWidgetPage, buildPraxisChartMockCanvasPage, buildPraxisChartMockWidgetPage, createPraxisChartsI18nConfig, isPraxisChartPaletteToken, providePraxisChartDrilldownPanelMetadata, providePraxisChartStateProbeMetadata, providePraxisCharts, providePraxisChartsI18n, providePraxisChartsMetadata, resolvePraxisChartPaletteToken, resolvePraxisChartsText };
|
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _praxisui_charts from '@praxisui/charts';
|
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
3
|
import { InjectionToken, Provider } from '@angular/core';
|
|
4
4
|
import * as _praxisui_core from '@praxisui/core';
|
|
5
|
-
import { PraxisTextValue, WidgetDefinition, WidgetShellConfig, WidgetInstance, ComponentMetadataRegistry, ApiUrlConfig, PraxisAnalyticsProjection, AnalyticsSchemaContractService, AnalyticsPresentationResolver, WidgetPageDefinition, SettingsValueProvider, PraxisI18nDictionary, PraxisI18nConfig, PraxisI18nMessageDescriptor, ComponentDocMeta } from '@praxisui/core';
|
|
5
|
+
import { PraxisTextValue, WidgetDefinition, WidgetShellConfig, WidgetInstance, ComponentMetadataRegistry, ApiUrlConfig, PraxisAnalyticsProjection, AnalyticsSchemaContractService, AnalyticsPresentationResolver, WidgetPageDefinition, SettingsValueProvider, PraxisI18nDictionary, PraxisI18nConfig, PraxisI18nMessageDescriptor, ComponentAuthoringManifest, ComponentDocMeta } from '@praxisui/core';
|
|
6
6
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
7
7
|
import { EChartsCoreOption } from 'echarts';
|
|
8
8
|
import { HttpClient } from '@angular/common/http';
|
|
@@ -1251,6 +1251,8 @@ declare function createPraxisChartsI18nConfig(options?: PraxisChartsI18nOptions)
|
|
|
1251
1251
|
declare function providePraxisChartsI18n(options?: PraxisChartsI18nOptions): Provider[];
|
|
1252
1252
|
declare function resolvePraxisChartsText(value: PraxisChartsText | null | undefined, fallback?: string): PraxisI18nMessageDescriptor;
|
|
1253
1253
|
|
|
1254
|
+
declare const PRAXIS_CHARTS_AUTHORING_MANIFEST: ComponentAuthoringManifest;
|
|
1255
|
+
|
|
1254
1256
|
declare const PRAXIS_CHART_COMPONENT_METADATA: ComponentDocMeta;
|
|
1255
1257
|
declare function providePraxisChartsMetadata(): Provider;
|
|
1256
1258
|
|
|
@@ -1260,5 +1262,5 @@ declare function providePraxisChartDrilldownPanelMetadata(): Provider;
|
|
|
1260
1262
|
declare const PRAXIS_CHART_STATE_PROBE_COMPONENT_METADATA: ComponentDocMeta;
|
|
1261
1263
|
declare function providePraxisChartStateProbeMetadata(): Provider;
|
|
1262
1264
|
|
|
1263
|
-
export { AnalyticsChartConfigAdapterService, AnalyticsChartContractService, ChartContractNormalizerService, ChartContractValidationService, ChartEditorDefaultsService, ChartEditorPreviewMapperService, PRAXIS_CHARTS_I18N, PRAXIS_CHART_BACKEND_MOCK_BAR, PRAXIS_CHART_BACKEND_MOCK_COMBO, PRAXIS_CHART_BACKEND_MOCK_DONUT, PRAXIS_CHART_BACKEND_MOCK_HORIZONTAL_BAR, PRAXIS_CHART_BACKEND_MOCK_MULTI_METRIC_BAR, PRAXIS_CHART_BACKEND_MOCK_SCATTER, PRAXIS_CHART_BACKEND_MOCK_STACKED_AREA, PRAXIS_CHART_BACKEND_MOCK_TIMESERIES, PRAXIS_CHART_COMPONENT_METADATA, PRAXIS_CHART_DRILLDOWN_DATA_BY_MONTH, PRAXIS_CHART_DRILLDOWN_PANEL_METADATA, PRAXIS_CHART_ENGINE, PRAXIS_CHART_PALETTE_TOKENS, PRAXIS_CHART_STATE_PROBE_COMPONENT_METADATA, PRAXIS_CHART_THEME_VARIANTS, PraxisChartBackendPayloadAdapterService, PraxisChartCanonicalContractMapperService, PraxisChartComponent, PraxisChartCompositionShowcaseComponent, PraxisChartConfigEditor, PraxisChartDataTransformerService, PraxisChartDrilldownPanelComponent, PraxisChartOptionBuilderService, PraxisChartSchemaMapperService, PraxisChartStateProbeComponent, PraxisChartStatsApiService, buildPraxisChartInteractiveCanvasPage, buildPraxisChartInteractiveWidgetPage, buildPraxisChartMockCanvasPage, buildPraxisChartMockWidgetPage, createPraxisChartsI18nConfig, isPraxisChartPaletteToken, providePraxisChartDrilldownPanelMetadata, providePraxisChartStateProbeMetadata, providePraxisCharts, providePraxisChartsI18n, providePraxisChartsMetadata, resolvePraxisChartPaletteToken, resolvePraxisChartsText };
|
|
1265
|
+
export { AnalyticsChartConfigAdapterService, AnalyticsChartContractService, ChartContractNormalizerService, ChartContractValidationService, ChartEditorDefaultsService, ChartEditorPreviewMapperService, PRAXIS_CHARTS_AUTHORING_MANIFEST, PRAXIS_CHARTS_I18N, PRAXIS_CHART_BACKEND_MOCK_BAR, PRAXIS_CHART_BACKEND_MOCK_COMBO, PRAXIS_CHART_BACKEND_MOCK_DONUT, PRAXIS_CHART_BACKEND_MOCK_HORIZONTAL_BAR, PRAXIS_CHART_BACKEND_MOCK_MULTI_METRIC_BAR, PRAXIS_CHART_BACKEND_MOCK_SCATTER, PRAXIS_CHART_BACKEND_MOCK_STACKED_AREA, PRAXIS_CHART_BACKEND_MOCK_TIMESERIES, PRAXIS_CHART_COMPONENT_METADATA, PRAXIS_CHART_DRILLDOWN_DATA_BY_MONTH, PRAXIS_CHART_DRILLDOWN_PANEL_METADATA, PRAXIS_CHART_ENGINE, PRAXIS_CHART_PALETTE_TOKENS, PRAXIS_CHART_STATE_PROBE_COMPONENT_METADATA, PRAXIS_CHART_THEME_VARIANTS, PraxisChartBackendPayloadAdapterService, PraxisChartCanonicalContractMapperService, PraxisChartComponent, PraxisChartCompositionShowcaseComponent, PraxisChartConfigEditor, PraxisChartDataTransformerService, PraxisChartDrilldownPanelComponent, PraxisChartOptionBuilderService, PraxisChartSchemaMapperService, PraxisChartStateProbeComponent, PraxisChartStatsApiService, buildPraxisChartInteractiveCanvasPage, buildPraxisChartInteractiveWidgetPage, buildPraxisChartMockCanvasPage, buildPraxisChartMockWidgetPage, createPraxisChartsI18nConfig, isPraxisChartPaletteToken, providePraxisChartDrilldownPanelMetadata, providePraxisChartStateProbeMetadata, providePraxisCharts, providePraxisChartsI18n, providePraxisChartsMetadata, resolvePraxisChartPaletteToken, resolvePraxisChartsText };
|
|
1264
1266
|
export type { AnalyticsChartConfigAdapterOptions, AnalyticsChartContractDefinition, AnalyticsChartContractLoadOptions, AnalyticsChartContractLoadResult, AnalyticsChartContractSource, ChartConfigEditorApplyEvent, ChartConfigEditorResetEvent, ChartConfigEditorSaveEvent, ChartContractIssueSeverity, ChartContractValidationIssue, ChartContractValidationResult, ChartEditorFieldOption, ChartEditorPreviewPayload, ChartEditorResourceOption, ChartEditorTargetOption, PraxisChartAggregation, PraxisChartAxisConfig, PraxisChartAxisLabelConfig, PraxisChartAxisPosition, PraxisChartAxisType, PraxisChartBackendPayload, PraxisChartBackendWidgetPayload, PraxisChartCanvasItem, PraxisChartCartesianSeries, PraxisChartConfig, PraxisChartConfigEditorData, PraxisChartCrossFilterEvent, PraxisChartDataRow, PraxisChartDataSource, PraxisChartDeclarativeEventAction, PraxisChartDistributionStatsRequest, PraxisChartEmptyStateConfig, PraxisChartEngineAdapter, PraxisChartEngineRenderPayload, PraxisChartErrorStateConfig, PraxisChartGroupByStatsRequest, PraxisChartInteractionConfig, PraxisChartLegendConfig, PraxisChartLoadState, PraxisChartLocalDataSource, PraxisChartMetricConfig, PraxisChartMotionConfig, PraxisChartMotionPreset, PraxisChartPaletteToken, PraxisChartPieSlice, PraxisChartPointEvent, PraxisChartPrimitive, PraxisChartQueryConfig, PraxisChartQueryContext, PraxisChartQueryMetricConfig, PraxisChartQueryRequestEvent, PraxisChartRemoteDataResolver, PraxisChartRemoteDataResolverResult, PraxisChartRemoteDataSource, PraxisChartSchemaMeta, PraxisChartSelectionEvent, PraxisChartSeriesConfig, PraxisChartSeriesLabelConfig, PraxisChartSizingConfig, PraxisChartSizingMode, PraxisChartStateConfig, PraxisChartStatsDistributionMode, PraxisChartStatsGranularity, PraxisChartStatsMetricOperation, PraxisChartStatsMetricRequest, PraxisChartStatsOperation, PraxisChartStatsOrderBy, PraxisChartStatsRequest, PraxisChartSurfaceConfig, PraxisChartSurfaceMode, PraxisChartThemeConfig, PraxisChartThemeVariant, PraxisChartTimeSeriesStatsRequest, PraxisChartTooltipConfig, PraxisChartTransformedData, PraxisChartType, PraxisChartWidgetInstance, PraxisChartWidgetLike, PraxisChartWidgetResolution, PraxisChartWidgetSchema, PraxisChartsI18nOptions, PraxisChartsText, PraxisXUiChartAggregation, PraxisXUiChartAggregationConfig, PraxisXUiChartContract, PraxisXUiChartDimension, PraxisXUiChartEventAction, PraxisXUiChartEvents, PraxisXUiChartFilter, PraxisXUiChartKind, PraxisXUiChartMetric, PraxisXUiChartMotion, PraxisXUiChartMotionPreset, PraxisXUiChartPreset, PraxisXUiChartRefresh, PraxisXUiChartRuntimeHints, PraxisXUiChartSizing, PraxisXUiChartSizingMode, PraxisXUiChartSort, PraxisXUiChartSource, PraxisXUiChartSourceKind, PraxisXUiChartState, PraxisXUiChartStateDescriptor, PraxisXUiChartStatsDistributionMode, PraxisXUiChartStatsOperation, PraxisXUiChartStatsOrderBy, PraxisXUiChartStatsSourceOptions, PraxisXUiChartSurface, PraxisXUiChartSurfaceMode, PraxisXUiChartTextValue, PraxisXUiChartTheme, PraxisXUiChartToggleableFeature };
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/charts",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.12",
|
|
4
4
|
"description": "Metadata-driven charts library for Praxis UI Angular with engine adapters and Apache ECharts as the initial renderer.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.0.0",
|
|
7
7
|
"@angular/core": "^20.0.0",
|
|
8
|
-
"@praxisui/core": "^8.0.0-beta.
|
|
8
|
+
"@praxisui/core": "^8.0.0-beta.12"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"echarts": "^6.0.0",
|