@praxisui/charts 10.0.0-rc.33 → 10.0.0-rc.34

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-10-18T21:58:32.782Z",
3
+ "generatedAt": "2026-10-19T09:48:25.455Z",
4
4
  "packageName": "@praxisui/charts",
5
- "packageVersion": "10.0.0-rc.33",
5
+ "packageVersion": "10.0.0-rc.34",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 4,
@@ -2113,29 +2113,28 @@ class PraxisChartStatsApiService {
2113
2113
  return { operation: metric.toUpperCase() };
2114
2114
  }
2115
2115
  if ('operation' in metric && metric.operation) {
2116
+ const op = metric.operation.toUpperCase();
2116
2117
  const result = {
2117
- operation: metric.operation.toUpperCase(),
2118
+ operation: op,
2118
2119
  };
2119
- if (metric.field)
2120
+ if (metric.field && op !== 'COUNT')
2120
2121
  result.field = metric.field;
2121
2122
  if (metric.alias)
2122
2123
  result.alias = metric.alias;
2123
2124
  return result;
2124
2125
  }
2125
2126
  if ('aggregation' in metric && metric.aggregation) {
2126
- const op = metric.aggregation === 'distinct-count' ? 'DISTINCT_COUNT' : metric.aggregation.toUpperCase();
2127
+ const op = (metric.aggregation === 'distinct-count' ? 'DISTINCT_COUNT' : metric.aggregation.toUpperCase());
2127
2128
  const result = {
2128
2129
  operation: op,
2129
2130
  };
2130
- if (metric.field)
2131
+ if (metric.field && op !== 'COUNT')
2131
2132
  result.field = metric.field;
2132
2133
  if (metric.alias)
2133
2134
  result.alias = metric.alias;
2134
2135
  return result;
2135
2136
  }
2136
2137
  const result = { operation: 'COUNT' };
2137
- if (metric.field)
2138
- result.field = metric.field;
2139
2138
  if (metric.alias)
2140
2139
  result.alias = metric.alias;
2141
2140
  return result;
@@ -8360,7 +8359,6 @@ class PraxisChartConfigEditorContextResolverService {
8360
8359
  */
8361
8360
  catalogProjectionRequest;
8362
8361
  capabilityRequests = new Map();
8363
- catalogFieldsByResourceId = new Map();
8364
8362
  async resolve(request) {
8365
8363
  const targetProjection = this.targetAdapter.resolve(request);
8366
8364
  let projection;
@@ -8447,7 +8445,12 @@ class PraxisChartConfigEditorContextResolverService {
8447
8445
  if (identity && id !== identity && this.normalizeOperationalPath(identity) !== resourcePath) {
8448
8446
  return null;
8449
8447
  }
8450
- const catalogFieldsByName = this.catalogFieldsByResourceId.get(id);
8448
+ const catalogFieldsEntries = knownResource.catalogFields
8449
+ ? Object.entries(knownResource.catalogFields)
8450
+ : [];
8451
+ const catalogFieldsByName = catalogFieldsEntries.length
8452
+ ? new Map(catalogFieldsEntries)
8453
+ : undefined;
8451
8454
  return {
8452
8455
  option: {
8453
8456
  ...knownResource,
@@ -8707,9 +8710,9 @@ class PraxisChartConfigEditorContextResolverService {
8707
8710
  }
8708
8711
  }
8709
8712
  }
8710
- if (catalogFieldsByName.size) {
8711
- this.catalogFieldsByResourceId.set(resourceKey, catalogFieldsByName);
8712
- }
8713
+ const catalogFieldsRecord = catalogFieldsByName.size
8714
+ ? Object.fromEntries(catalogFieldsByName.entries())
8715
+ : undefined;
8713
8716
  candidates.push({
8714
8717
  capabilitiesHref: capabilitiesEndpoint.path,
8715
8718
  ...(catalogFieldsByName.size ? { catalogFieldsByName } : {}),
@@ -8724,6 +8727,7 @@ class PraxisChartConfigEditorContextResolverService {
8724
8727
  ...(typeof readOnly === 'boolean' ? { readOnly } : {}),
8725
8728
  ...(tags.length ? { tags } : {}),
8726
8729
  ...(searchTerms.length ? { searchTerms } : {}),
8730
+ ...(catalogFieldsRecord ? { catalogFields: catalogFieldsRecord } : {}),
8727
8731
  },
8728
8732
  });
8729
8733
  }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@praxisui/charts",
3
- "version": "10.0.0-rc.33",
3
+ "version": "10.0.0-rc.34",
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": "^21.0.0",
7
7
  "@angular/core": "^21.0.0",
8
- "@praxisui/core": "^10.0.0-rc.33",
8
+ "@praxisui/core": "^10.0.0-rc.34",
9
9
  "@angular/forms": "^21.0.0",
10
10
  "@angular/material": "^21.0.0",
11
- "@praxisui/table": "^10.0.0-rc.33",
11
+ "@praxisui/table": "^10.0.0-rc.34",
12
12
  "rxjs": "~7.8.0"
13
13
  },
14
14
  "dependencies": {
@@ -597,6 +597,10 @@ interface ChartEditorResourceOption {
597
597
  tags?: string[];
598
598
  searchTerms?: string[];
599
599
  operations?: PraxisXUiChartStatsOperation[];
600
+ catalogFields?: Readonly<Record<string, {
601
+ label?: string;
602
+ description?: string;
603
+ }>>;
600
604
  }
601
605
  interface ChartEditorFieldOption {
602
606
  field: string;