@praxisui/list 8.0.0-beta.6 → 8.0.0-beta.8
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/fesm2022/praxisui-list.mjs +11 -3
- package/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -9022,19 +9022,27 @@ class PraxisList {
|
|
|
9022
9022
|
return this.resolveTemplate(raw, ctx);
|
|
9023
9023
|
return raw;
|
|
9024
9024
|
}
|
|
9025
|
-
resolveTemplate(raw, ctx) {
|
|
9025
|
+
resolveTemplate(raw, ctx, key) {
|
|
9026
|
+
if (this.isDeferredTemplateExpressionKey(key) && typeof raw === 'string') {
|
|
9027
|
+
return raw;
|
|
9028
|
+
}
|
|
9026
9029
|
if (typeof raw === 'string')
|
|
9027
9030
|
return this.resolveStringTemplate(raw, ctx);
|
|
9028
9031
|
if (Array.isArray(raw))
|
|
9029
|
-
return raw.map((v) => this.resolveTemplate(v, ctx));
|
|
9032
|
+
return raw.map((v) => this.resolveTemplate(v, ctx, key));
|
|
9030
9033
|
if (raw && typeof raw === 'object') {
|
|
9031
9034
|
const out = {};
|
|
9032
9035
|
for (const [k, v] of Object.entries(raw))
|
|
9033
|
-
out[k] = this.resolveTemplate(v, ctx);
|
|
9036
|
+
out[k] = this.resolveTemplate(v, ctx, k);
|
|
9034
9037
|
return out;
|
|
9035
9038
|
}
|
|
9036
9039
|
return raw;
|
|
9037
9040
|
}
|
|
9041
|
+
isDeferredTemplateExpressionKey(key) {
|
|
9042
|
+
if (!key)
|
|
9043
|
+
return false;
|
|
9044
|
+
return key === 'expr' || key.endsWith('Expr');
|
|
9045
|
+
}
|
|
9038
9046
|
resolveStringTemplate(raw, ctx) {
|
|
9039
9047
|
const single = raw.match(/^\$\{([^}]+)\}$/);
|
|
9040
9048
|
if (single)
|
package/index.d.ts
CHANGED
|
@@ -585,6 +585,7 @@ declare class PraxisList implements OnInit, OnChanges, OnDestroy {
|
|
|
585
585
|
private isGlobalCommand;
|
|
586
586
|
private resolveActionPayload;
|
|
587
587
|
private resolveTemplate;
|
|
588
|
+
private isDeferredTemplateExpressionKey;
|
|
588
589
|
private resolveStringTemplate;
|
|
589
590
|
private lookup;
|
|
590
591
|
onSelectionChange(_change: MatSelectionListChange): void;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/list",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.8",
|
|
4
4
|
"description": "List components and helpers for Praxis UI.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": ">=16 <21",
|
|
7
7
|
"@angular/core": ">=16 <21",
|
|
8
8
|
"@angular/material": ">=16 <21",
|
|
9
|
-
"@praxisui/dynamic-fields": "^8.0.0-beta.
|
|
9
|
+
"@praxisui/dynamic-fields": "^8.0.0-beta.8",
|
|
10
10
|
"rxjs": ">=7 <9"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|