@praxisui/core 10.0.0-rc.56 → 10.0.0-rc.58

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-11-19T10:38:31.259Z",
3
+ "generatedAt": "2026-11-19T19:36:26.164Z",
4
4
  "packageName": "@praxisui/core",
5
- "packageVersion": "10.0.0-rc.56",
5
+ "packageVersion": "10.0.0-rc.58",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 4,
@@ -257,12 +257,38 @@ function getPraxisStackedBarPaintStyle(segment, fallbackTone = 'neutral') {
257
257
  color: paint,
258
258
  };
259
259
  }
260
+ function isVisualizationEntrySuppressed(entry) {
261
+ if (!entry || typeof entry !== 'object') {
262
+ return false;
263
+ }
264
+ const obj = entry;
265
+ return (obj.suppressed === true
266
+ || obj.privacySuppressed === true
267
+ || (obj.value === null && obj.state === 'suppressed'));
268
+ }
269
+ function countSuppressedEntries(entries) {
270
+ if (!Array.isArray(entries)) {
271
+ return 0;
272
+ }
273
+ let count = 0;
274
+ for (const entry of entries) {
275
+ if (isVisualizationEntrySuppressed(entry)) {
276
+ count += 1;
277
+ }
278
+ }
279
+ return count;
280
+ }
281
+ function resolvePreservedSuppressedCount(value) {
282
+ return typeof value === 'number' && Number.isFinite(value) && value > 0
283
+ ? Math.trunc(value)
284
+ : 0;
285
+ }
260
286
  function resolvePraxisStackedBarSegments(visualization) {
261
287
  if (!visualization || visualization.kind !== 'stackedBar') {
262
288
  return [];
263
289
  }
264
290
  if (Array.isArray(visualization.segments) && visualization.segments.length > 0) {
265
- return visualization.segments.filter((seg) => !seg?.suppressed);
291
+ return visualization.segments.filter((seg) => !isVisualizationEntrySuppressed(seg));
266
292
  }
267
293
  if (Array.isArray(visualization.items) && visualization.items.length > 0) {
268
294
  const mapped = [];
@@ -274,7 +300,7 @@ function resolvePraxisStackedBarSegments(visualization) {
274
300
  if (!item) {
275
301
  return [];
276
302
  }
277
- if (item.suppressed === true || (item.value === null && item.state === 'suppressed')) {
303
+ if (isVisualizationEntrySuppressed(item)) {
278
304
  continue;
279
305
  }
280
306
  if (typeof item.value !== 'number' || !Number.isFinite(item.value) || item.value < 0) {
@@ -382,11 +408,7 @@ function normalizeStackedBarDistribution(value, surface) {
382
408
  }
383
409
  const parsedSegments = [];
384
410
  const parsedItems = [];
385
- const preservedSuppressedCount = typeof value.suppressedCount === 'number'
386
- && Number.isFinite(value.suppressedCount)
387
- && value.suppressedCount > 0
388
- ? Math.trunc(value.suppressedCount)
389
- : 0;
411
+ const preservedSuppressedCount = resolvePreservedSuppressedCount(value.suppressedCount);
390
412
  let suppressedCount = 0;
391
413
  for (let i = 0; i < rawEntries.length; i++) {
392
414
  if (!Object.prototype.hasOwnProperty.call(rawEntries, i)) {
@@ -415,8 +437,7 @@ function normalizeStackedBarDistribution(value, surface) {
415
437
  };
416
438
  }
417
439
  const entryObj = rawEntry;
418
- if (entryObj.suppressed === true
419
- || (entryObj.value === null && entryObj.state === 'suppressed')) {
440
+ if (isVisualizationEntrySuppressed(entryObj)) {
420
441
  suppressedCount += 1;
421
442
  continue;
422
443
  }
@@ -527,22 +548,23 @@ function normalizePraxisPresentationVisualization(value) {
527
548
  const normalizedTargetLabel = normalizeText$1(value.targetLabel);
528
549
  const thresholdsObj = normalizeThresholds(value.thresholds);
529
550
  const isTableCell = surface === 'table-cell';
551
+ const normalizedPointsObj = normalizePoints(value.points);
530
552
  let resolvedTone = tone;
531
553
  let resolvedAriaLabel = ariaLabel;
532
554
  if (!resolvedTone && thresholdsObj?.thresholds?.length) {
533
555
  let evalVal = value.value;
534
- if (evalVal === undefined && Array.isArray(value.points) && value.points.length > 0) {
535
- const last = value.points[value.points.length - 1];
536
- if (typeof last === 'number' && Number.isFinite(last)) {
537
- evalVal = last;
538
- }
539
- else if (last && typeof last === 'object' && Number.isFinite(last.value)) {
540
- evalVal = last.value;
541
- }
556
+ if (evalVal === undefined && normalizedPointsObj?.points?.length) {
557
+ evalVal = normalizedPointsObj.points[normalizedPointsObj.points.length - 1].value;
542
558
  }
543
559
  else if (Array.isArray(evalVal) && evalVal.length > 0) {
544
- const last = evalVal[evalVal.length - 1];
545
- evalVal = typeof last === 'object' && last !== null && 'value' in last ? last.value : last;
560
+ const visibleVals = evalVal.filter((entry) => !isVisualizationEntrySuppressed(entry));
561
+ if (visibleVals.length > 0) {
562
+ const last = visibleVals[visibleVals.length - 1];
563
+ evalVal = typeof last === 'object' && last !== null && 'value' in last ? last.value : last;
564
+ }
565
+ else {
566
+ evalVal = undefined;
567
+ }
546
568
  }
547
569
  if (evalVal !== undefined && evalVal !== null) {
548
570
  const resolution = resolvePraxisMicroVisualizationTone(evalVal, thresholdsObj.thresholds);
@@ -556,6 +578,7 @@ function normalizePraxisPresentationVisualization(value) {
556
578
  }
557
579
  if (kind === 'stackedBar') {
558
580
  const stacked = normalizeStackedBarDistribution(value, surface);
581
+ const stackedSuppressedCount = Math.max(stacked.suppressedCount ?? 0, countSuppressedEntries(value.points));
559
582
  return {
560
583
  kind,
561
584
  fallbackText,
@@ -584,14 +607,14 @@ function normalizePraxisPresentationVisualization(value) {
584
607
  ...(normalizeExpression(value.targetLabelExpr, 'targetLabelExpr') ?? {}),
585
608
  ...(normalizeNumber(value.baseline, 'baseline') ?? {}),
586
609
  ...(normalizeExpression(value.baselineExpr, 'baselineExpr') ?? {}),
587
- ...(normalizePoints(value.points) ?? {}),
610
+ ...(normalizedPointsObj ?? {}),
588
611
  ...(normalizeExpression(value.pointsExpr, 'pointsExpr') ?? {}),
589
612
  ...(stacked.segments ? { segments: stacked.segments } : {}),
590
613
  ...(normalizeExpression(value.segmentsExpr, 'segmentsExpr') ?? {}),
591
614
  ...(normalizeThresholds(value.thresholds) ?? {}),
592
615
  ...(normalizeExpression(value.thresholdsExpr, 'thresholdsExpr') ?? {}),
593
616
  ...(stacked.items ? { items: stacked.items } : {}),
594
- ...(stacked.suppressedCount ? { suppressedCount: stacked.suppressedCount } : {}),
617
+ ...(stackedSuppressedCount > 0 ? { suppressedCount: stackedSuppressedCount } : {}),
595
618
  ...(normalizeExpression(value.itemsExpr, 'itemsExpr') ?? {}),
596
619
  ...(normalizeExpression(value.toneExpr, 'toneExpr') ?? {}),
597
620
  ...(value.stepLabelWidth !== undefined && (typeof value.stepLabelWidth === 'number' || typeof value.stepLabelWidth === 'string')
@@ -606,6 +629,9 @@ function normalizePraxisPresentationVisualization(value) {
606
629
  }
607
630
  const normalizedTitle = isTableCell ? undefined : normalizeText$1(value.title);
608
631
  const normalizedLegend = typeof value.legend === 'boolean' ? (isTableCell ? false : value.legend) : undefined;
632
+ const suppressedCount = Math.max(resolvePreservedSuppressedCount(value.suppressedCount), countSuppressedEntries(value.points)
633
+ + countSuppressedEntries(value.items)
634
+ + countSuppressedEntries(value.segments));
609
635
  return {
610
636
  kind,
611
637
  fallbackText,
@@ -634,13 +660,14 @@ function normalizePraxisPresentationVisualization(value) {
634
660
  ...(normalizeExpression(value.targetLabelExpr, 'targetLabelExpr') ?? {}),
635
661
  ...(normalizeNumber(value.baseline, 'baseline') ?? {}),
636
662
  ...(normalizeExpression(value.baselineExpr, 'baselineExpr') ?? {}),
637
- ...(normalizePoints(value.points) ?? {}),
663
+ ...(normalizedPointsObj ?? {}),
638
664
  ...(normalizeExpression(value.pointsExpr, 'pointsExpr') ?? {}),
639
665
  ...(normalizeSegments(value.segments) ?? {}),
640
666
  ...(normalizeExpression(value.segmentsExpr, 'segmentsExpr') ?? {}),
641
667
  ...(normalizeThresholds(value.thresholds) ?? {}),
642
668
  ...(normalizeExpression(value.thresholdsExpr, 'thresholdsExpr') ?? {}),
643
669
  ...(normalizeItems(value.items) ?? {}),
670
+ ...(suppressedCount > 0 ? { suppressedCount } : {}),
644
671
  ...(normalizeExpression(value.itemsExpr, 'itemsExpr') ?? {}),
645
672
  ...(normalizeExpression(value.toneExpr, 'toneExpr') ?? {}),
646
673
  ...(value.stepLabelWidth !== undefined && (typeof value.stepLabelWidth === 'number' || typeof value.stepLabelWidth === 'string')
@@ -1086,7 +1113,7 @@ function normalizeNumericEntries(value) {
1086
1113
  const num = toFiniteNumber(item);
1087
1114
  return num !== undefined ? { value: num } : null;
1088
1115
  }
1089
- if (!item || typeof item !== 'object') {
1116
+ if (!item || typeof item !== 'object' || isVisualizationEntrySuppressed(item)) {
1090
1117
  return null;
1091
1118
  }
1092
1119
  const num = toFiniteNumber(item.value);
@@ -1106,7 +1133,7 @@ function normalizeNumericEntries(value) {
1106
1133
  .filter((item) => !!item);
1107
1134
  }
1108
1135
  function normalizeVisualizationItem(item) {
1109
- if (!item || typeof item !== 'object') {
1136
+ if (!item || typeof item !== 'object' || isVisualizationEntrySuppressed(item)) {
1110
1137
  return null;
1111
1138
  }
1112
1139
  const id = normalizeText$1(item.id);
@@ -1175,7 +1202,7 @@ function renderRadialVisualizationHtml(visualization, options) {
1175
1202
  ? Math.max(0, Math.min(100, (targetVal / total) * 100))
1176
1203
  : null;
1177
1204
  const targetArcHtml = targetPct !== null
1178
- ? `<circle class="pfx-micro-radial-svg__target-arc" cx="18" cy="18" r="13.5" pathLength="100" stroke-dasharray="${targetPct.toFixed(1)}, 100" transform="rotate(-90 18 18)" />`
1205
+ ? `<circle class="pfx-micro-radial-svg__target-arc" cx="18" cy="18" r="13.8" pathLength="100" stroke-dasharray="${targetPct.toFixed(1)}, 100" transform="rotate(-90 18 18)" />`
1179
1206
  : '';
1180
1207
  const digitTierAttr = radialNumStr.length >= 4
1181
1208
  ? ' data-digits="4"'
@@ -1207,10 +1234,10 @@ function renderRadialVisualizationHtml(visualization, options) {
1207
1234
  </linearGradient>
1208
1235
  </defs>
1209
1236
  <circle class="pfx-micro-radial-svg__bezel" cx="18" cy="18" r="17" />
1210
- <circle class="pfx-micro-radial-svg__track" cx="18" cy="18" r="13.5" pathLength="100" />
1237
+ <circle class="pfx-micro-radial-svg__track" cx="18" cy="18" r="13.8" pathLength="100" />
1211
1238
  ${targetArcHtml}
1212
- <circle class="pfx-micro-radial-svg__bar" cx="18" cy="18" r="13.5" pathLength="100"${isZero ? ' data-zero="true"' : ''} stroke="url(#${escapeHtml(gradId)})" stroke-dasharray="${dashArray}" transform="rotate(-90 18 18)" />
1213
- <circle class="pfx-micro-radial-svg__medallion" cx="18" cy="18" r="9.8" />
1239
+ <circle class="pfx-micro-radial-svg__bar" cx="18" cy="18" r="13.8" pathLength="100"${isZero ? ' data-zero="true"' : ''} stroke="url(#${escapeHtml(gradId)})" stroke-dasharray="${dashArray}" transform="rotate(-90 18 18)" />
1240
+ <circle class="pfx-micro-radial-svg__medallion" cx="18" cy="18" r="10.9" />
1214
1241
  ${svgText}
1215
1242
  </svg>
1216
1243
  ${externalText}
@@ -1375,15 +1402,8 @@ function renderLineVisualizationHtml(visualization, options) {
1375
1402
  ${leftHtml}
1376
1403
  <span class="pfx-micro-viz pfx-micro-viz__line" data-tone="${escapeHtml(tone)}" role="img" aria-label="${escapeHtml(visualization.ariaLabel ?? visualization.fallbackText)}">
1377
1404
  <svg class="pfx-micro-line__svg" viewBox="0 0 100 30">
1378
- <defs>
1379
- <linearGradient id="${escapeHtml(glowGradId)}" x1="0%" y1="0%" x2="0%" y2="100%">
1380
- <stop offset="0%" stop-color="currentColor" stop-opacity="0.16" />
1381
- <stop offset="100%" stop-color="currentColor" stop-opacity="0" />
1382
- </linearGradient>
1383
- </defs>
1384
1405
  ${refLineHtml}
1385
- <path class="pfx-micro-line__glow" d="${glowAreaD}" fill="url(#${escapeHtml(glowGradId)})" />
1386
- <path class="pfx-micro-line__path" d="${pathD}" fill="none" stroke="currentColor" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" />
1406
+ <path class="pfx-micro-line__path" d="${pathD}" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" />
1387
1407
  ${endpointHaloHtml}
1388
1408
  ${circlesHtml}
1389
1409
  </svg>
@@ -1593,7 +1613,15 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
1593
1613
  const rawItems = Array.isArray(visualization.items) && visualization.items.length > 0
1594
1614
  ? visualization.items
1595
1615
  : Array.isArray(visualization.points)
1596
- ? visualization.points.map((pt) => typeof pt === 'number' ? { value: pt } : { label: pt.label, value: pt.value, tone: pt.tone })
1616
+ ? visualization.points.map((pt) => typeof pt === 'number'
1617
+ ? { value: pt }
1618
+ : {
1619
+ label: pt.label,
1620
+ value: pt.value,
1621
+ tone: pt.tone,
1622
+ ...(pt.suppressed !== undefined ? { suppressed: pt.suppressed } : {}),
1623
+ ...(pt.privacySuppressed !== undefined ? { privacySuppressed: pt.privacySuppressed } : {}),
1624
+ })
1597
1625
  : [];
1598
1626
  if (!rawItems.length) {
1599
1627
  return [];
@@ -1604,11 +1632,17 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
1604
1632
  const steps = [];
1605
1633
  let running = 0;
1606
1634
  let hasFiniteNumeric = false;
1635
+ let hadSuppressedItems = resolvePreservedSuppressedCount(visualization.suppressedCount) > 0;
1636
+ let visibleIncrementCount = 0;
1607
1637
  for (let i = 0; i < rawItems.length; i++) {
1608
1638
  const raw = rawItems[i];
1609
1639
  if (!raw || typeof raw !== 'object') {
1610
1640
  continue;
1611
1641
  }
1642
+ if (isVisualizationEntrySuppressed(raw)) {
1643
+ hadSuppressedItems = true;
1644
+ continue;
1645
+ }
1612
1646
  const rawNumeric = toFiniteNumber(raw.value);
1613
1647
  if (rawNumeric !== undefined) {
1614
1648
  hasFiniteNumeric = true;
@@ -1619,6 +1653,9 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
1619
1653
  if (rawNumeric === undefined && role !== 'subtotal' && role !== 'total') {
1620
1654
  continue;
1621
1655
  }
1656
+ if (role !== 'subtotal' && role !== 'total') {
1657
+ visibleIncrementCount += 1;
1658
+ }
1622
1659
  let start = running;
1623
1660
  let end = running;
1624
1661
  let delta = 0;
@@ -1631,7 +1668,7 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
1631
1668
  resolvedValue = end;
1632
1669
  }
1633
1670
  else if (role === 'subtotal' || role === 'total') {
1634
- const targetEnd = rawNumeric ?? running;
1671
+ const targetEnd = hadSuppressedItems ? running : (rawNumeric ?? running);
1635
1672
  start = 0;
1636
1673
  end = targetEnd;
1637
1674
  delta = targetEnd;
@@ -1681,7 +1718,7 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
1681
1718
  readout,
1682
1719
  });
1683
1720
  }
1684
- if (!hasFiniteNumeric) {
1721
+ if (!hasFiniteNumeric || (hadSuppressedItems && visibleIncrementCount === 0)) {
1685
1722
  return [];
1686
1723
  }
1687
1724
  return steps;
@@ -1719,7 +1756,11 @@ function renderWaterfallVisualizationHtml(visualization, options) {
1719
1756
  barsHtml.push(`<rect class="pfx-micro-waterfall__bar" x="${x.toFixed(1)}" y="${clampedY.toFixed(1)}" width="${barW.toFixed(1)}" height="${rectH.toFixed(1)}" rx="1.5" fill="currentColor" data-role="${escapeHtml(step.role)}" data-tone="${escapeHtml(step.tone)}"${styleAttr} />`);
1720
1757
  if (i < steps.length - 1) {
1721
1758
  const nextX = xPad + (i + 1) * slotW + barOffset;
1722
- const connY = yEnd;
1759
+ const connY = step.end > step.start
1760
+ ? clampedY
1761
+ : step.end < step.start
1762
+ ? clampedY + rectH
1763
+ : Math.min(height - yPad, Math.max(clampedY, Math.min(clampedY + rectH, yEnd)));
1723
1764
  connectorsHtml.push(`<line class="pfx-micro-waterfall__connector" x1="${(x + barW).toFixed(1)}" y1="${connY.toFixed(1)}" x2="${nextX.toFixed(1)}" y2="${connY.toFixed(1)}" />`);
1724
1765
  }
1725
1766
  scrubSlicesHtml.push(`<span class="pfx-micro-waterfall__scrub-slice" data-tone="${escapeHtml(step.tone)}" data-role="${escapeHtml(step.role)}" data-micro-readout="${escapeHtml(step.readout)}" title="${escapeHtml(step.readout)}"></span>`);
@@ -1747,7 +1788,7 @@ function renderWaterfallVisualizationHtml(visualization, options) {
1747
1788
  <span class="pfx-micro-viz-container">
1748
1789
  ${startSummaryHtml}
1749
1790
  <span class="pfx-micro-viz pfx-micro-viz__waterfall" data-tone="${escapeHtml(fallbackTone)}" role="img" aria-label="${escapeHtml(aria)}">
1750
- <svg class="pfx-micro-waterfall__svg" viewBox="0 0 ${width} ${height}">
1791
+ <svg class="pfx-micro-waterfall__svg" viewBox="0 0 ${width} ${height}" preserveAspectRatio="none">
1751
1792
  ${baselineHtml}
1752
1793
  ${connectorsHtml.join('')}
1753
1794
  ${barsHtml.join('')}
@@ -3798,7 +3839,32 @@ class SchemaNormalizationKernel {
3798
3839
  const rawMode = String(record['mode'] ?? 'flat').trim().toLowerCase();
3799
3840
  const mode = rawMode === 'tabs' || rawMode === 'accordion' || rawMode === 'stepper' || rawMode === 'flat'
3800
3841
  ? rawMode
3801
- : 'flat';
3842
+ : rawMode === 'vertical'
3843
+ ? 'flat'
3844
+ : 'flat';
3845
+ const defaultTabId = typeof record['defaultTabId'] === 'string' && record['defaultTabId'].trim()
3846
+ ? record['defaultTabId'].trim()
3847
+ : undefined;
3848
+ const rawTabsAppearance = typeof record['tabsAppearance'] === 'string'
3849
+ ? record['tabsAppearance'].trim().toLowerCase()
3850
+ : '';
3851
+ const tabsAppearance = rawTabsAppearance === 'pills' ||
3852
+ rawTabsAppearance === 'underline' ||
3853
+ rawTabsAppearance === 'buttons'
3854
+ ? rawTabsAppearance
3855
+ : undefined;
3856
+ const accordionMulti = this.parseOptionalBoolean(record['accordionMulti']);
3857
+ const hideSectionHeaderInTabs = this.parseOptionalBoolean(record['hideSectionHeaderInTabs']);
3858
+ const hideSectionHeaderInStepper = this.parseOptionalBoolean(record['hideSectionHeaderInStepper']);
3859
+ const rawStepperInReadMode = typeof record['stepperInReadMode'] === 'string'
3860
+ ? record['stepperInReadMode'].trim().toLowerCase()
3861
+ : '';
3862
+ const stepperInReadMode = rawStepperInReadMode === 'presentation' ||
3863
+ rawStepperInReadMode === 'all' ||
3864
+ rawStepperInReadMode === 'none'
3865
+ ? rawStepperInReadMode
3866
+ : undefined;
3867
+ const stepperReviewStep = this.parseOptionalBoolean(record['stepperReviewStep']);
3802
3868
  const rawSections = Array.isArray(record['sections']) ? record['sections'] : [];
3803
3869
  const sections = [];
3804
3870
  for (let idx = 0; idx < rawSections.length; idx++) {
@@ -3814,6 +3880,7 @@ class SchemaNormalizationKernel {
3814
3880
  const subtitle = typeof item['subtitle'] === 'string' && item['subtitle'].trim() ? item['subtitle'].trim() : undefined;
3815
3881
  const icon = typeof item['icon'] === 'string' && item['icon'].trim() ? item['icon'].trim() : undefined;
3816
3882
  const groups = this.parseNonBlankStringArray(item['groups']);
3883
+ const optional = this.parseOptionalBoolean(item['optional']);
3817
3884
  sections.push({
3818
3885
  id,
3819
3886
  title,
@@ -3821,12 +3888,61 @@ class SchemaNormalizationKernel {
3821
3888
  ...(icon ? { icon } : {}),
3822
3889
  order: Number.isFinite(orderNum) ? orderNum : idx,
3823
3890
  ...(groups.length ? { groups } : {}),
3891
+ ...(optional !== undefined ? { optional } : {}),
3824
3892
  });
3825
3893
  }
3826
3894
  sections.sort((a, b) => a.order - b.order);
3895
+ const rawSteps = Array.isArray(record['steps']) ? record['steps'] : [];
3896
+ const steps = [];
3897
+ for (const entry of rawSteps) {
3898
+ if (!entry || typeof entry !== 'object' || Array.isArray(entry))
3899
+ continue;
3900
+ const item = entry;
3901
+ const id = String(item['id'] ?? '').trim();
3902
+ const label = String(item['label'] ?? '').trim() || id;
3903
+ const sectionIds = this.parseNonBlankStringArray(item['sectionIds']);
3904
+ if (!id || !sectionIds.length)
3905
+ continue;
3906
+ const description = typeof item['description'] === 'string' && item['description'].trim()
3907
+ ? item['description'].trim()
3908
+ : undefined;
3909
+ const icon = typeof item['icon'] === 'string' && item['icon'].trim()
3910
+ ? item['icon'].trim()
3911
+ : undefined;
3912
+ const optional = this.parseOptionalBoolean(item['optional']);
3913
+ const disabled = this.parseOptionalBoolean(item['disabled']);
3914
+ const tooltip = typeof item['tooltip'] === 'string' && item['tooltip'].trim()
3915
+ ? item['tooltip'].trim()
3916
+ : undefined;
3917
+ const rawBadge = item['badge'];
3918
+ const badge = typeof rawBadge === 'string'
3919
+ ? (rawBadge.trim() ? rawBadge.trim() : undefined)
3920
+ : typeof rawBadge === 'number' && Number.isFinite(rawBadge)
3921
+ ? rawBadge
3922
+ : undefined;
3923
+ steps.push({
3924
+ id,
3925
+ label,
3926
+ ...(description ? { description } : {}),
3927
+ ...(icon ? { icon } : {}),
3928
+ sectionIds,
3929
+ ...(optional !== undefined ? { optional } : {}),
3930
+ ...(badge !== undefined ? { badge } : {}),
3931
+ ...(disabled !== undefined ? { disabled } : {}),
3932
+ ...(tooltip ? { tooltip } : {}),
3933
+ });
3934
+ }
3827
3935
  return {
3828
3936
  mode,
3937
+ ...(defaultTabId ? { defaultTabId } : {}),
3938
+ ...(tabsAppearance ? { tabsAppearance } : {}),
3939
+ ...(accordionMulti !== undefined ? { accordionMulti } : {}),
3940
+ ...(hideSectionHeaderInTabs !== undefined ? { hideSectionHeaderInTabs } : {}),
3941
+ ...(hideSectionHeaderInStepper !== undefined ? { hideSectionHeaderInStepper } : {}),
3942
+ ...(stepperInReadMode ? { stepperInReadMode } : {}),
3943
+ ...(stepperReviewStep !== undefined ? { stepperReviewStep } : {}),
3829
3944
  ...(sections.length ? { sections } : {}),
3945
+ ...(steps.length ? { steps } : {}),
3830
3946
  };
3831
3947
  }
3832
3948
  parseContextBinding(raw) {
@@ -5044,20 +5160,24 @@ function resolveSchemaBooleanFormatFromFieldDefinition(def) {
5044
5160
  return explicit;
5045
5161
  const trueLabel = firstNonEmptyString(def.trueLabel) ??
5046
5162
  firstNonEmptyString(def.labelTrue) ??
5163
+ firstNonEmptyString(def.presentation?.labelTrue) ??
5047
5164
  firstNonEmptyString(def.extraProperties?.trueLabel) ??
5048
5165
  firstNonEmptyString(def.extraProperties?.labelTrue);
5049
5166
  const falseLabel = firstNonEmptyString(def.falseLabel) ??
5050
5167
  firstNonEmptyString(def.labelFalse) ??
5168
+ firstNonEmptyString(def.presentation?.labelFalse) ??
5051
5169
  firstNonEmptyString(def.extraProperties?.falseLabel) ??
5052
5170
  firstNonEmptyString(def.extraProperties?.labelFalse);
5053
- if (trueLabel && falseLabel) {
5054
- const tNorm = normalizePresentationToken(trueLabel);
5055
- const fNorm = normalizePresentationToken(falseLabel);
5171
+ if (trueLabel || falseLabel) {
5172
+ const effectiveTrue = trueLabel || 'Sim';
5173
+ const effectiveFalse = falseLabel || 'Não';
5174
+ const tNorm = normalizePresentationToken(effectiveTrue);
5175
+ const fNorm = normalizePresentationToken(effectiveFalse);
5056
5176
  if (tNorm === 'ativo' && fNorm === 'inativo')
5057
5177
  return 'active-inactive';
5058
5178
  if (tNorm === 'sim' && (fNorm === 'nao' || fNorm === 'não'))
5059
5179
  return 'yes-no';
5060
- return `custom|${trueLabel}|${falseLabel}`;
5180
+ return `custom|${effectiveTrue}|${effectiveFalse}`;
5061
5181
  }
5062
5182
  const name = normalizePresentationToken(def.name);
5063
5183
  if (name === 'ativo' || name === 'active' || name.endsWith('ativo')) {
@@ -5295,7 +5415,29 @@ function resolveRendererFromFieldPresentation(def) {
5295
5415
  },
5296
5416
  };
5297
5417
  }
5298
- if (presenter === 'iconvalue') {
5418
+ if (presenter === 'progress') {
5419
+ const valueExpr = `= row.${def.name.replace(/\./g, '?.')}`;
5420
+ return {
5421
+ type: 'progress',
5422
+ progress: {
5423
+ valueExpr,
5424
+ showLabel: true,
5425
+ ...(color ? { color } : {}),
5426
+ },
5427
+ };
5428
+ }
5429
+ if (presenter === 'rating') {
5430
+ const valueExpr = `= row.${def.name.replace(/\./g, '?.')}`;
5431
+ return {
5432
+ type: 'rating',
5433
+ rating: {
5434
+ valueExpr,
5435
+ max: 5,
5436
+ ...(color ? { color } : {}),
5437
+ },
5438
+ };
5439
+ }
5440
+ if (presenter === 'iconvalue' || presenter === 'text' || !presenter) {
5299
5441
  const rendererIcon = icon || firstNonEmptyString(def.icon);
5300
5442
  const affixes = resolveSemanticPresentationAffixes(presentation);
5301
5443
  const hasAffixes = !!(affixes.prefix || affixes.suffix);
@@ -5307,6 +5449,7 @@ function resolveRendererFromFieldPresentation(def) {
5307
5449
  icon: {
5308
5450
  ...(!hasAffixes && rendererIcon ? { name: rendererIcon } : {}),
5309
5451
  textField: def.name,
5452
+ ...(color ? { color } : {}),
5310
5453
  ...(tooltipText ? { ariaLabel: tooltipText } : {}),
5311
5454
  ...affixes,
5312
5455
  },