@praxisui/core 10.0.0-rc.37 → 10.0.0-rc.38

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 CHANGED
@@ -4,6 +4,46 @@ Shared contracts, tokens, services, metadata models, widget runtime primitives,
4
4
 
5
5
  Use this package directly when a host application or library needs Praxis UI types, global actions, metadata registries, schema clients, resource discovery, i18n, theme bridge, dynamic widget contracts, or shared runtime services.
6
6
 
7
+ ## Closed page authoring profile
8
+
9
+ The additive page codec validates and preserves the Config-owned publication
10
+ profile, copies typed widget/link identities and materializes stable route/child
11
+ identities. Structural success is distinct from native validation and server
12
+ admission. See [the codec contract](https://github.com/codexrodrigues/praxis-ui-angular/blob/main/projects/praxis-core/docs/page-publication-codec.md) for APIs,
13
+ limits, examples and evidence scope. This API alone does not activate publication.
14
+
15
+ ## Context-bound runtime navigation
16
+
17
+ `EnterpriseRuntimeContextService.navigation({ parentRef?, cursor?, pageSize? })`
18
+ reads one page from the host's existing `/api/praxis/runtime/navigation` endpoint.
19
+ It waits for a confirmed ready context and sends its `X-Praxis-Context-Version`
20
+ with the existing authenticated host headers. `pageSize` defaults to 50 (1–100);
21
+ `parentRef` is a canonical group UUID and the opaque cursor is bounded to 4096
22
+ characters. Omit `parentRef` for roots; use a returned group ID for its children.
23
+ The server remains responsible for current authorization, cursor admission,
24
+ ordering and the complete authorized projection.
25
+
26
+ The response uses `praxis-enterprise-runtime-navigation.v1` and requires `nodes`,
27
+ `capabilities`, `contextVersion`, `receiptEtag`, `headReceipts`, `nextCursor` and
28
+ `resolvedAt`; empty arrays and a null `nextCursor` are valid. Nodes can carry an
29
+ admitted icon identifier, and `children: null` denotes on-demand loading. Head
30
+ receipts use Core's existing `UiLayoutReleaseHeadReceipt`. The semantic read
31
+ receipt is distinct from each strong write `headEtag`; Core does not introduce
32
+ navigation caching or send `If-None-Match` in this slice.
33
+
34
+ The service captures the local context generation before awaiting readiness and
35
+ rejects stale success/error responses with `EnterpriseRuntimeContextObsoleteError`,
36
+ including A → B → A and a response confirming another context. An unconfirmed
37
+ context fails before navigation dispatch. HTTP errors in the current generation
38
+ remain HTTP errors; callers must handle unavailable or stale continuations rather
39
+ than silently restarting or combining pages. A cursor never grants access.
40
+
41
+ This is the Core wire/transport slice of [Config's frozen P3-B design](https://github.com/codexrodrigues/praxis-config-starter/blob/c161609f14ffcdc39024e66a886a1bd5df471fc8/docs/ai/contracts/page-publication-p0/P3B-DESIGN.md).
42
+ It does not install a host navigation provider. An absent provider remains
43
+ `503 RUNTIME_PROVIDER_UNAVAILABLE`. Shell rendering, published-page routes and
44
+ their visual E2E remain P4; real host HTTP proof remains P3-C. A service HTTP spec
45
+ and a direct-consumer build do not establish those later integrations.
46
+
7
47
  ## Contextual table defaults
8
48
 
9
49
  `createDefaultTableConfig()` leaves `pagination.strategy` and `sorting.strategy`
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-10-21T22:13:30.176Z",
3
+ "generatedAt": "2026-10-23T20:24:09.136Z",
4
4
  "packageName": "@praxisui/core",
5
- "packageVersion": "10.0.0-rc.37",
5
+ "packageVersion": "10.0.0-rc.38",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 4,
@@ -167,8 +167,8 @@ function resolvePraxisMicroVisualizationTone(value, thresholds, fallbackTone) {
167
167
  if (value === undefined || value === null || !Array.isArray(thresholds) || thresholds.length === 0) {
168
168
  return fallbackTone ? { tone: fallbackTone } : undefined;
169
169
  }
170
- const num = typeof value === 'number' ? value : Number(value);
171
- const isNum = Number.isFinite(num);
170
+ const num = toFiniteNumber(value);
171
+ const isNum = num !== undefined;
172
172
  // 1. Pass 1: Correspondencia discreta (equals) tem prioridade maxima
173
173
  for (const t of thresholds) {
174
174
  if (!t || !t.tone || t.equals === undefined) {
@@ -177,7 +177,8 @@ function resolvePraxisMicroVisualizationTone(value, thresholds, fallbackTone) {
177
177
  if (t.equals === value || String(t.equals) === String(value)) {
178
178
  return { tone: t.tone, label: t.label, matchedThreshold: t };
179
179
  }
180
- if (isNum && Number.isFinite(Number(t.equals)) && Number(t.equals) === num) {
180
+ const eqNum = toFiniteNumber(t.equals);
181
+ if (isNum && eqNum !== undefined && eqNum === num) {
181
182
  return { tone: t.tone, label: t.label, matchedThreshold: t };
182
183
  }
183
184
  }
@@ -354,7 +355,7 @@ function renderComparisonVisualizationHtml(visualization, options) {
354
355
  const rows = points
355
356
  .map((point) => {
356
357
  const width = percent(point.value, max);
357
- const formattedVal = `${formatMicroNumber(point.value, options.locale, useCompact)}${suffix}`;
358
+ const formattedVal = formatVisualizationMetricValue(point.value, options, useCompact, suffix);
358
359
  const readout = `${point.label ? `${point.label}: ` : ''}${formattedVal} (${Math.round(Number(width))}%)`;
359
360
  return `
360
361
  <span class="pfx-micro-viz__row" data-tone="${escapeHtml(point.tone ?? visualization.tone ?? 'info')}" data-micro-readout="${escapeHtml(readout)}">
@@ -379,10 +380,11 @@ function renderStackedBarVisualizationHtml(visualization, options) {
379
380
  ? visualization.total
380
381
  : Math.max(1, segments.reduce((sum, segment) => sum + Math.max(0, segment.value), 0));
381
382
  const suffix = visualization.valueSuffix ?? '';
383
+ const useCompact = visualization.compactValue === true;
382
384
  const bars = segments
383
385
  .map((segment) => {
384
386
  const pctStr = percent(segment.value, total);
385
- const formattedVal = `${formatMicroNumber(segment.value, options.locale)}${suffix}`;
387
+ const formattedVal = formatVisualizationMetricValue(segment.value, options, useCompact, suffix);
386
388
  const readout = `${segment.label ? `${segment.label}: ` : ''}${formattedVal} (${Math.round(Number(pctStr))}%)`;
387
389
  return `
388
390
  <span
@@ -396,7 +398,7 @@ function renderStackedBarVisualizationHtml(visualization, options) {
396
398
  .join('');
397
399
  const meta = segments
398
400
  .slice(0, 3)
399
- .map((segment) => `<span>${escapeHtml(segment.label ?? '')}: ${escapeHtml(formatMicroNumber(segment.value, options.locale))}</span>`)
401
+ .map((segment) => `<span>${escapeHtml(segment.label ?? '')}: ${escapeHtml(formatVisualizationMetricValue(segment.value, options, useCompact, suffix))}</span>`)
400
402
  .join('');
401
403
  return `
402
404
  <span class="pfx-micro-viz pfx-micro-viz__stacked" role="img" aria-label="${escapeHtml(visualization.ariaLabel ?? visualization.fallbackText)}">
@@ -454,26 +456,26 @@ function renderBulletVisualizationHtml(visualization, options) {
454
456
  <div class="pfx-micro-bullet__top">
455
457
  <span class="pfx-micro-bullet__label">${escapeHtml(visualization.fallbackText)}</span>
456
458
  <span class="pfx-micro-bullet__value">
457
- ${escapeHtml(formatMicroNumber(currentValue, options.locale))}
458
- ${target === undefined ? '' : `<span class="pfx-micro-bullet__target-val">/ Target: ${escapeHtml(formatMicroNumber(target, options.locale))}</span>`}
459
+ ${escapeHtml(formatVisualizationMetricValue(currentValue, options, false, suffix))}
460
+ ${target === undefined ? '' : `<span class="pfx-micro-bullet__target-val">/ Target: ${escapeHtml(formatVisualizationMetricValue(target, options, false, suffix))}</span>`}
459
461
  </span>
460
462
  </div>`;
461
463
  const bottomHtml = isTable ? '' : `
462
464
  <div class="pfx-micro-bullet__bottom">
463
- <span>${escapeHtml(formatMicroNumber(visualization.baseline ?? 0, options.locale))}</span>
464
- <span>${escapeHtml(formatMicroNumber(max, options.locale))}</span>
465
+ <span>${escapeHtml(formatVisualizationMetricValue(visualization.baseline ?? 0, options, false, suffix))}</span>
466
+ <span>${escapeHtml(formatVisualizationMetricValue(max, options, false, suffix))}</span>
465
467
  </div>`;
466
468
  const showCompactValue = isTable && visualization.compactValue !== false;
467
469
  const useCompactNotation = visualization.compactValue === true;
468
470
  const compactValueHtml = showCompactValue
469
- ? `<span class="pfx-micro-bullet__compact-value">${escapeHtml(formatMicroNumber(currentValue, options.locale, useCompactNotation))}${escapeHtml(suffix)}</span>`
471
+ ? `<span class="pfx-micro-bullet__compact-value">${escapeHtml(formatVisualizationMetricValue(currentValue, options, useCompactNotation, suffix))}</span>`
470
472
  : '';
471
- const currentStr = `${formatMicroNumber(currentValue, options.locale)}${suffix}`;
473
+ const currentStr = formatVisualizationMetricValue(currentValue, options, false, suffix);
472
474
  const diff = target !== undefined ? currentValue - target : undefined;
473
475
  const diffSign = diff !== undefined && diff > 0 ? '+' : '';
474
476
  const bulletReadout = target !== undefined && diff !== undefined
475
- ? `${currentStr} / Target ${formatMicroNumber(target, options.locale)}${suffix} (${diffSign}${formatMicroNumber(diff, options.locale)}${suffix})`
476
- : `${currentStr} / ${formatMicroNumber(max, options.locale)}${suffix}`;
477
+ ? `${currentStr} / Target ${formatVisualizationMetricValue(target, options, false, suffix)} (${diffSign}${formatVisualizationMetricValue(diff, options, false, suffix)})`
478
+ : `${currentStr} / ${formatVisualizationMetricValue(max, options, false, suffix)}`;
477
479
  const tabIndexAttr = isTable ? '' : ' tabindex="0"';
478
480
  return `
479
481
  <span class="pfx-micro-viz pfx-micro-viz__bullet"${tabIndexAttr} data-tone="${escapeHtml(visualization.tone ?? 'info')}" data-micro-readout="${escapeHtml(bulletReadout)}" role="img" aria-label="${escapeHtml(visualization.ariaLabel ?? visualization.fallbackText)}">
@@ -502,7 +504,7 @@ function renderDeltaVisualizationHtml(visualization, options) {
502
504
  const valueSuffix = visualization.valueSuffix ?? '';
503
505
  const text = value === undefined
504
506
  ? visualization.fallbackText
505
- : `${formatMicroNumber(Math.abs(value), options.locale)}${valueSuffix}`;
507
+ : formatVisualizationMetricValue(Math.abs(value), options, visualization.compactValue === true, valueSuffix);
506
508
  const directionLabel = direction === 'up'
507
509
  ? 'up'
508
510
  : direction === 'down'
@@ -513,9 +515,9 @@ function renderDeltaVisualizationHtml(visualization, options) {
513
515
  const baseline = toFiniteNumber(visualization.baseline);
514
516
  const isTable = visualization.surface === 'table-cell';
515
517
  const deltaReadout = target !== undefined
516
- ? `Target ${formatMicroNumber(target, options.locale)}${valueSuffix}`
518
+ ? `Target ${formatVisualizationMetricValue(target, options, false, valueSuffix)}`
517
519
  : baseline !== undefined
518
- ? `Base ${formatMicroNumber(baseline, options.locale)}${valueSuffix}`
520
+ ? `Base ${formatVisualizationMetricValue(baseline, options, false, valueSuffix)}`
519
521
  : null;
520
522
  const readoutAttr = deltaReadout
521
523
  ? `${isTable ? '' : ' tabindex="0"'} data-micro-readout="${escapeHtml(deltaReadout)}"`
@@ -533,7 +535,27 @@ function percent(value, total) {
533
535
  return Math.max(0, Math.min(100, (value / total) * 100)).toFixed(2);
534
536
  }
535
537
  function toFiniteNumber(value) {
536
- return typeof value === 'number' && Number.isFinite(value) ? value : undefined;
538
+ if (typeof value === 'number') {
539
+ return Number.isFinite(value) ? value : undefined;
540
+ }
541
+ if (typeof value === 'string') {
542
+ const trimmed = value.trim();
543
+ if (!trimmed) {
544
+ return undefined;
545
+ }
546
+ const parsed = Number(trimmed);
547
+ return Number.isFinite(parsed) ? parsed : undefined;
548
+ }
549
+ return undefined;
550
+ }
551
+ function formatVisualizationMetricValue(value, options, compactValue = false, suffix = '') {
552
+ if (typeof options.formatValue === 'function') {
553
+ const custom = options.formatValue(value, compactValue);
554
+ if (typeof custom === 'string' && custom.trim().length > 0) {
555
+ return suffix && !custom.endsWith(suffix) ? `${custom}${suffix}` : custom;
556
+ }
557
+ }
558
+ return `${formatMicroNumber(value, options.locale, compactValue)}${suffix}`;
537
559
  }
538
560
  function formatMicroNumber(value, locale, compactValue = false) {
539
561
  if (compactValue && Math.abs(value) >= 1000) {
@@ -617,16 +639,21 @@ function normalizeNumericEntries(value) {
617
639
  }
618
640
  return value
619
641
  .map((item) => {
620
- if (typeof item === 'number') {
621
- return Number.isFinite(item) ? { value: item } : null;
642
+ if (typeof item === 'number' || typeof item === 'string') {
643
+ const num = toFiniteNumber(item);
644
+ return num !== undefined ? { value: num } : null;
645
+ }
646
+ if (!item || typeof item !== 'object') {
647
+ return null;
622
648
  }
623
- if (!item || typeof item !== 'object' || !Number.isFinite(item.value)) {
649
+ const num = toFiniteNumber(item.value);
650
+ if (num === undefined) {
624
651
  return null;
625
652
  }
626
653
  const label = normalizeText$1(item.label);
627
654
  const tone = normalizeEnum$1(item.tone, VISUALIZATION_TONES);
628
655
  return {
629
- value: item.value,
656
+ value: num,
630
657
  ...(label ? { label } : {}),
631
658
  ...(tone ? { tone } : {}),
632
659
  };
@@ -642,7 +669,7 @@ function normalizeVisualizationItem(item) {
642
669
  const icon = normalizeText$1(item.icon);
643
670
  const state = normalizeText$1(item.state);
644
671
  const tone = normalizeEnum$1(item.tone, VISUALIZATION_TONES);
645
- const normalizedValue = Number.isFinite(item.value) ? item.value : undefined;
672
+ const normalizedValue = toFiniteNumber(item.value);
646
673
  if (!id && !label && normalizedValue === undefined && !icon && !state && !tone) {
647
674
  return null;
648
675
  }
@@ -656,7 +683,8 @@ function normalizeVisualizationItem(item) {
656
683
  };
657
684
  }
658
685
  function normalizeNumber(value, key) {
659
- return Number.isFinite(value) ? { [key]: value } : undefined;
686
+ const num = toFiniteNumber(value);
687
+ return num !== undefined ? { [key]: num } : undefined;
660
688
  }
661
689
  function normalizeEnum$1(value, allowed) {
662
690
  if (typeof value !== 'string') {
@@ -691,7 +719,7 @@ function renderRadialVisualizationHtml(visualization, options) {
691
719
  const externalText = isTable
692
720
  ? `<span class="pfx-micro-radial-value">${escapeHtml(pctText)}</span>`
693
721
  : '';
694
- const radialReadout = `${formatMicroNumber(value, options.locale)}${suffix} / ${formatMicroNumber(total, options.locale)}${suffix} (${pctText})`;
722
+ const radialReadout = `${formatVisualizationMetricValue(value, options, false, suffix)} / ${formatVisualizationMetricValue(total, options, false, suffix)} (${pctText})`;
695
723
  const tabIndexAttr = isTable ? '' : ' tabindex="0"';
696
724
  return `
697
725
  <span class="pfx-micro-viz pfx-micro-viz__radial"${tabIndexAttr} data-tone="${escapeHtml(tone)}" data-micro-readout="${escapeHtml(radialReadout)}" role="img" aria-label="${escapeHtml(aria)}">
@@ -713,10 +741,13 @@ function renderHarveyBallVisualizationHtml(visualization, options) {
713
741
  const tone = visualization.tone ?? 'info';
714
742
  const isTable = visualization.surface === 'table-cell';
715
743
  const tabIndexAttr = isTable ? '' : ' tabindex="0"';
744
+ const suffix = visualization.valueSuffix ?? '';
716
745
  const strokeLength = pct * 0.50265;
717
746
  const dashArray = `${strokeLength.toFixed(3)} 50.265`;
718
747
  const aria = visualization.ariaLabel ?? `${visualization.fallbackText} (${Math.round(pct)}%)`;
719
- const harveyReadout = `${formatMicroNumber(value, options.locale)}/${formatMicroNumber(total, options.locale)} (${Math.round(pct)}%)`;
748
+ const formattedValue = formatVisualizationMetricValue(value, options, false, suffix);
749
+ const formattedTotal = formatVisualizationMetricValue(total, options, false, suffix);
750
+ const harveyReadout = `${formattedValue}/${formattedTotal} (${Math.round(pct)}%)`;
720
751
  return `
721
752
  <span class="pfx-micro-viz pfx-micro-viz__harvey"${tabIndexAttr} data-tone="${escapeHtml(tone)}" data-micro-readout="${escapeHtml(harveyReadout)}" role="img" aria-label="${escapeHtml(aria)}">
722
753
  <svg class="pfx-micro-harvey-svg" viewBox="0 0 36 36">
@@ -724,9 +755,9 @@ function renderHarveyBallVisualizationHtml(visualization, options) {
724
755
  <circle class="pfx-micro-harvey-svg__bar" cx="18" cy="18" r="8" stroke-dasharray="${dashArray}" transform="rotate(-90 18 18)" />
725
756
  </svg>
726
757
  <span class="pfx-micro-harvey-fraction">
727
- <strong>${escapeHtml(formatMicroNumber(value, options.locale))}</strong>
758
+ <strong>${escapeHtml(formattedValue)}</strong>
728
759
  <span class="pfx-separator">/</span>
729
- <span class="pfx-total">${escapeHtml(formatMicroNumber(total, options.locale))}</span>
760
+ <span class="pfx-total">${escapeHtml(formattedTotal)}</span>
730
761
  </span>
731
762
  </span>`;
732
763
  }
@@ -775,7 +806,7 @@ function renderTrendScrubLayerHtml(points, coords, width, height, visualization,
775
806
  ? resolvePraxisMicroVisualizationTone(point.value, visualization.thresholds)?.tone ?? defaultTone
776
807
  : defaultTone);
777
808
  const labelPrefix = point.label ? `${point.label}: ` : `#${index + 1}: `;
778
- const readout = `${labelPrefix}${formatMicroNumber(point.value, options.locale)}${suffix}`;
809
+ const readout = `${labelPrefix}${formatVisualizationMetricValue(point.value, options, visualization.compactValue === true, suffix)}`;
779
810
  return `<span class="pfx-micro-trend__scrub-slice" data-tone="${escapeHtml(pointTone)}" data-micro-readout="${escapeHtml(readout)}" style="--pfx-scrub-x:${xPct}%;--pfx-scrub-y:${yPct}%;"></span>`;
780
811
  })
781
812
  .join('');
@@ -817,14 +848,15 @@ function renderLineVisualizationHtml(visualization, options) {
817
848
  const isTable = visualization.surface === 'table-cell';
818
849
  const firstPoint = points[0];
819
850
  const lastPoint = points[points.length - 1];
851
+ const suffix = visualization.valueSuffix ?? '';
820
852
  const leftHtml = isTable ? '' : `
821
853
  <div class="pfx-micro-trend__label-col pfx-micro-trend__label-col--start">
822
- <span class="pfx-micro-trend__value">${escapeHtml(formatMicroNumber(firstPoint.value, options.locale))}</span>
854
+ <span class="pfx-micro-trend__value">${escapeHtml(formatVisualizationMetricValue(firstPoint.value, options, visualization.compactValue === true, suffix))}</span>
823
855
  ${firstPoint.label ? `<span class="pfx-micro-trend__label">${escapeHtml(firstPoint.label)}</span>` : ''}
824
856
  </div>`;
825
857
  const rightHtml = isTable ? '' : `
826
858
  <div class="pfx-micro-trend__label-col pfx-micro-trend__label-col--end">
827
- <span class="pfx-micro-trend__value">${escapeHtml(formatMicroNumber(lastPoint.value, options.locale))}</span>
859
+ <span class="pfx-micro-trend__value">${escapeHtml(formatVisualizationMetricValue(lastPoint.value, options, visualization.compactValue === true, suffix))}</span>
828
860
  ${lastPoint.label ? `<span class="pfx-micro-trend__label">${escapeHtml(lastPoint.label)}</span>` : ''}
829
861
  </div>`;
830
862
  return `
@@ -880,14 +912,15 @@ function renderAreaVisualizationHtml(visualization, options) {
880
912
  const isTable = visualization.surface === 'table-cell';
881
913
  const firstPoint = points[0];
882
914
  const lastPoint = points[points.length - 1];
915
+ const suffix = visualization.valueSuffix ?? '';
883
916
  const leftHtml = isTable ? '' : `
884
917
  <div class="pfx-micro-trend__label-col pfx-micro-trend__label-col--start">
885
- <span class="pfx-micro-trend__value">${escapeHtml(formatMicroNumber(firstPoint.value, options.locale))}</span>
918
+ <span class="pfx-micro-trend__value">${escapeHtml(formatVisualizationMetricValue(firstPoint.value, options, visualization.compactValue === true, suffix))}</span>
886
919
  ${firstPoint.label ? `<span class="pfx-micro-trend__label">${escapeHtml(firstPoint.label)}</span>` : ''}
887
920
  </div>`;
888
921
  const rightHtml = isTable ? '' : `
889
922
  <div class="pfx-micro-trend__label-col pfx-micro-trend__label-col--end">
890
- <span class="pfx-micro-trend__value">${escapeHtml(formatMicroNumber(lastPoint.value, options.locale))}</span>
923
+ <span class="pfx-micro-trend__value">${escapeHtml(formatVisualizationMetricValue(lastPoint.value, options, visualization.compactValue === true, suffix))}</span>
891
924
  ${lastPoint.label ? `<span class="pfx-micro-trend__label">${escapeHtml(lastPoint.label)}</span>` : ''}
892
925
  </div>`;
893
926
  return `
@@ -933,14 +966,15 @@ function renderColumnVisualizationHtml(visualization, options) {
933
966
  const isTable = visualization.surface === 'table-cell';
934
967
  const firstPoint = points[0];
935
968
  const lastPoint = points[points.length - 1];
969
+ const suffix = visualization.valueSuffix ?? '';
936
970
  const leftHtml = isTable ? '' : `
937
971
  <div class="pfx-micro-trend__label-col pfx-micro-trend__label-col--start">
938
- <span class="pfx-micro-trend__value">${escapeHtml(formatMicroNumber(firstPoint.value, options.locale))}</span>
972
+ <span class="pfx-micro-trend__value">${escapeHtml(formatVisualizationMetricValue(firstPoint.value, options, visualization.compactValue === true, suffix))}</span>
939
973
  ${firstPoint.label ? `<span class="pfx-micro-trend__label">${escapeHtml(firstPoint.label)}</span>` : ''}
940
974
  </div>`;
941
975
  const rightHtml = isTable ? '' : `
942
976
  <div class="pfx-micro-trend__label-col pfx-micro-trend__label-col--end">
943
- <span class="pfx-micro-trend__value">${escapeHtml(formatMicroNumber(lastPoint.value, options.locale))}</span>
977
+ <span class="pfx-micro-trend__value">${escapeHtml(formatVisualizationMetricValue(lastPoint.value, options, visualization.compactValue === true, suffix))}</span>
944
978
  ${lastPoint.label ? `<span class="pfx-micro-trend__label">${escapeHtml(lastPoint.label)}</span>` : ''}
945
979
  </div>`;
946
980
  return `
@@ -980,20 +1014,21 @@ function renderProcessFlowVisualizationHtml(visualization, options) {
980
1014
  const itemState = item.state ?? '';
981
1015
  const isLast = index === items.length - 1;
982
1016
  const itemLabel = stepLabels[index];
1017
+ const normalizedIcon = item.icon ? item.icon.replace(/-/g, '_') : undefined;
983
1018
  const label = !isTable && item.label ? `<span class="pfx-micro-step__label"${labelInlineStyle}>${escapeHtml(item.label)}</span>` : '';
984
1019
  const isActiveStep = itemState === 'active' ||
985
1020
  itemState === 'current' ||
986
1021
  itemState === 'in_progress' ||
987
- item.icon === 'sync' ||
988
- item.icon === 'pending' ||
989
- item.icon === 'pending_actions' ||
990
- item.icon === 'schedule' ||
1022
+ normalizedIcon === 'sync' ||
1023
+ normalizedIcon === 'pending' ||
1024
+ normalizedIcon === 'pending_actions' ||
1025
+ normalizedIcon === 'schedule' ||
991
1026
  (!itemState && itemTone === 'warning');
992
1027
  const stepReadout = `${index + 1}/${items.length} · ${itemLabel}`;
993
1028
  const connector = !isLast ? `<span class="pfx-micro-step__connector" data-tone="${escapeHtml(itemTone)}"></span>` : '';
994
1029
  const stepCircle = `
995
1030
  <span class="pfx-micro-step__node" data-tone="${escapeHtml(itemTone)}"${isActiveStep ? ' data-active="true"' : ''} aria-hidden="true">
996
- ${item.icon ? `<span class="material-icons pfx-micro-step__icon" aria-hidden="true">${escapeHtml(item.icon)}</span>` : `${index + 1}`}
1031
+ ${normalizedIcon ? `<span class="material-icons pfx-micro-step__icon" aria-hidden="true">${escapeHtml(normalizedIcon)}</span>` : `${index + 1}`}
997
1032
  </span>`;
998
1033
  return `
999
1034
  <div class="pfx-micro-step" data-state="${escapeHtml(itemState)}" data-tone="${escapeHtml(itemTone)}">