@praxisui/core 10.0.0-rc.36 → 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 +81 -0
- package/ai/component-registry.json +37 -27
- package/fesm2022/praxisui-core-schema.mjs +75 -40
- package/fesm2022/praxisui-core.mjs +1746 -164
- package/package.json +1 -1
- package/types/praxisui-core-schema.d.ts +11 -1
- package/types/praxisui-core.d.ts +391 -210
|
@@ -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 =
|
|
171
|
-
const isNum =
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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(
|
|
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(
|
|
458
|
-
${target === undefined ? '' : `<span class="pfx-micro-bullet__target-val">/ Target: ${escapeHtml(
|
|
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(
|
|
464
|
-
<span>${escapeHtml(
|
|
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(
|
|
471
|
+
? `<span class="pfx-micro-bullet__compact-value">${escapeHtml(formatVisualizationMetricValue(currentValue, options, useCompactNotation, suffix))}</span>`
|
|
470
472
|
: '';
|
|
471
|
-
const currentStr =
|
|
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 ${
|
|
476
|
-
: `${currentStr} / ${
|
|
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
|
-
:
|
|
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 ${
|
|
518
|
+
? `Target ${formatVisualizationMetricValue(target, options, false, valueSuffix)}`
|
|
517
519
|
: baseline !== undefined
|
|
518
|
-
? `Base ${
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
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 =
|
|
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
|
-
|
|
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 = `${
|
|
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
|
|
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(
|
|
758
|
+
<strong>${escapeHtml(formattedValue)}</strong>
|
|
728
759
|
<span class="pfx-separator">/</span>
|
|
729
|
-
<span class="pfx-total">${escapeHtml(
|
|
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}${
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
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
|
-
${
|
|
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)}">
|