@masterteam/work-center 0.0.64 → 0.0.65
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.
|
@@ -1481,6 +1481,15 @@ class WorkCenterEscalationInstanceType {
|
|
|
1481
1481
|
: isFinal
|
|
1482
1482
|
? this.transloco.translate('workCenter.preview.final')
|
|
1483
1483
|
: null,
|
|
1484
|
+
// Semantic color for the badge — every step state renders with the
|
|
1485
|
+
// same pill and is told apart by color alone.
|
|
1486
|
+
badgeTone: isClosed
|
|
1487
|
+
? 'closed'
|
|
1488
|
+
: isInitial
|
|
1489
|
+
? 'initial'
|
|
1490
|
+
: isFinal
|
|
1491
|
+
? 'final'
|
|
1492
|
+
: 'accent',
|
|
1484
1493
|
style: 'detail',
|
|
1485
1494
|
current: currentIds.has(String(step.id)),
|
|
1486
1495
|
};
|
|
@@ -1493,6 +1502,7 @@ class WorkCenterEscalationInstanceType {
|
|
|
1493
1502
|
color: 'color',
|
|
1494
1503
|
subtitle: 'subtitle',
|
|
1495
1504
|
badge: 'badge',
|
|
1505
|
+
badgeTone: 'badgeTone',
|
|
1496
1506
|
status: 'status',
|
|
1497
1507
|
style: 'style',
|
|
1498
1508
|
current: 'current',
|
|
@@ -1869,6 +1879,9 @@ class WorkCenterProcessPreview {
|
|
|
1869
1879
|
: isFinal
|
|
1870
1880
|
? this.transloco.translate('workCenter.preview.final')
|
|
1871
1881
|
: null,
|
|
1882
|
+
// Semantic color for the badge — every step state renders with the
|
|
1883
|
+
// same pill and is told apart by color alone.
|
|
1884
|
+
badgeTone: step.isInitial ? 'initial' : isFinal ? 'final' : 'accent',
|
|
1872
1885
|
status: step.status ?? null,
|
|
1873
1886
|
style: isAppAction || isApprovalCommit ? 'icon' : 'detail',
|
|
1874
1887
|
current: currentStepIds.has(String(step.id)),
|
|
@@ -1889,6 +1902,7 @@ class WorkCenterProcessPreview {
|
|
|
1889
1902
|
color: 'color',
|
|
1890
1903
|
subtitle: 'subtitle',
|
|
1891
1904
|
badge: 'badge',
|
|
1905
|
+
badgeTone: 'badgeTone',
|
|
1892
1906
|
status: 'status',
|
|
1893
1907
|
style: 'style',
|
|
1894
1908
|
current: 'current',
|