@praxisui/list 10.0.0-rc.51 → 10.0.0-rc.53
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-
|
|
3
|
+
"generatedAt": "2026-11-18T18:58:23.543Z",
|
|
4
4
|
"packageName": "@praxisui/list",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.53",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 4,
|
|
@@ -14545,7 +14545,11 @@ function normalizeSingleNode(input, index, hierarchyType, options) {
|
|
|
14545
14545
|
const icon = resolveUnitIcon(record, variant, typeLabel, commandStatus, extinct, options);
|
|
14546
14546
|
const avatarUrl = asNonEmptyString(readCandidate(record, [mapping?.avatarUrlField, 'avatarUrl', 'photoUrl']));
|
|
14547
14547
|
const avatarText = asNonEmptyString(record['avatarText']) ??
|
|
14548
|
-
computeOrganogramInitials(variant === 'person'
|
|
14548
|
+
computeOrganogramInitials(variant === 'person'
|
|
14549
|
+
? title
|
|
14550
|
+
: extinct || isVacantCommandStatus(commandStatus, mapping)
|
|
14551
|
+
? title
|
|
14552
|
+
: leaderName ?? title);
|
|
14549
14553
|
const badge = asNonEmptyString(record['badge']);
|
|
14550
14554
|
const numberBadge = record['numberBadge'] ??
|
|
14551
14555
|
(variant === 'person'
|
|
@@ -14603,15 +14607,30 @@ function matchesSearchTerm(node, query) {
|
|
|
14603
14607
|
.toLowerCase();
|
|
14604
14608
|
return haystack.includes(query);
|
|
14605
14609
|
}
|
|
14610
|
+
function isVacantCommandStatus(commandStatus, mapping) {
|
|
14611
|
+
if (!commandStatus) {
|
|
14612
|
+
return false;
|
|
14613
|
+
}
|
|
14614
|
+
const normalized = commandStatus.trim().toUpperCase();
|
|
14615
|
+
if (normalized === 'NO_LEADER' ||
|
|
14616
|
+
normalized === 'VACANT' ||
|
|
14617
|
+
normalized === 'VACANT_LEADER' ||
|
|
14618
|
+
normalized === 'UNASSIGNED') {
|
|
14619
|
+
return true;
|
|
14620
|
+
}
|
|
14621
|
+
const customStatuses = mapping?.vacantStatuses;
|
|
14622
|
+
if (!customStatuses || customStatuses.length === 0) {
|
|
14623
|
+
return false;
|
|
14624
|
+
}
|
|
14625
|
+
return customStatuses.some((entry) => typeof entry === 'string' && entry.trim().toUpperCase() === normalized);
|
|
14626
|
+
}
|
|
14606
14627
|
function createPolymorphicChildren(unit, options) {
|
|
14607
14628
|
if (unit.variant !== 'unit')
|
|
14608
14629
|
return [];
|
|
14609
14630
|
const children = [];
|
|
14610
14631
|
const wantsLeader = options.synthesizeLeaderNodes !== false;
|
|
14611
14632
|
const wantsQuota = options.synthesizeQuotaNodes !== false;
|
|
14612
|
-
const isVacant = unit.commandStatus
|
|
14613
|
-
unit.commandStatus === 'VACANT' ||
|
|
14614
|
-
unit.commandStatus === 'VACANT_LEADER';
|
|
14633
|
+
const isVacant = isVacantCommandStatus(unit.commandStatus, options.mapping);
|
|
14615
14634
|
if (wantsLeader && unit.leaderName && !unit.extinct && !isVacant) {
|
|
14616
14635
|
const activeLeader = unit.substituteName || unit.leaderName;
|
|
14617
14636
|
const isSubstitute = Boolean(unit.substituteName);
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/list",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.53",
|
|
4
4
|
"description": "List components and helpers for Praxis UI.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0",
|
|
8
8
|
"@angular/cdk": "^21.0.0",
|
|
9
9
|
"@angular/material": "^21.0.0",
|
|
10
|
-
"@praxisui/dynamic-fields": "^10.0.0-rc.
|
|
10
|
+
"@praxisui/dynamic-fields": "^10.0.0-rc.53",
|
|
11
11
|
"rxjs": ">=7 <9",
|
|
12
12
|
"@angular/forms": "^21.0.0",
|
|
13
13
|
"@angular/router": "^21.0.0",
|
|
14
|
-
"@praxisui/ai": "^10.0.0-rc.
|
|
15
|
-
"@praxisui/core": "^10.0.0-rc.
|
|
16
|
-
"@praxisui/rich-content": "^10.0.0-rc.
|
|
17
|
-
"@praxisui/settings-panel": "^10.0.0-rc.
|
|
14
|
+
"@praxisui/ai": "^10.0.0-rc.53",
|
|
15
|
+
"@praxisui/core": "^10.0.0-rc.53",
|
|
16
|
+
"@praxisui/rich-content": "^10.0.0-rc.53",
|
|
17
|
+
"@praxisui/settings-panel": "^10.0.0-rc.53"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"tslib": "^2.3.0",
|
package/types/praxisui-list.d.ts
CHANGED
|
@@ -1167,6 +1167,11 @@ interface PraxisOrganogramFieldMapping {
|
|
|
1167
1167
|
leaderNameField?: string;
|
|
1168
1168
|
leaderRoleField?: string;
|
|
1169
1169
|
substituteNameField?: string;
|
|
1170
|
+
/**
|
|
1171
|
+
* Optional list of custom status tokens (matched case-insensitively) treated as vacant leadership,
|
|
1172
|
+
* suppressing synthesized `person` child cards even if a placeholder label is present in `leaderNameField`.
|
|
1173
|
+
*/
|
|
1174
|
+
vacantStatuses?: ReadonlyArray<string>;
|
|
1170
1175
|
authorizedCountField?: string;
|
|
1171
1176
|
occupiedCountField?: string;
|
|
1172
1177
|
balanceCountField?: string;
|