@praxisui/dynamic-fields 8.0.0-beta.81 → 8.0.0-beta.84
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.
|
@@ -11678,18 +11678,28 @@ class MaterialAsyncSelectComponent extends SimpleBaseSelectComponent {
|
|
|
11678
11678
|
'open';
|
|
11679
11679
|
this.initialLoadStrategy = loadOn;
|
|
11680
11680
|
// Remote config without auto-loading here (avoid duplicate /filter on init)
|
|
11681
|
-
|
|
11681
|
+
let path = optionSource?.resourcePath ??
|
|
11682
|
+
metadata.resourcePath ??
|
|
11683
|
+
metadata.endpoint;
|
|
11684
|
+
if (path && /\/options\/filter\/?$/i.test(path)) {
|
|
11685
|
+
path = path.replace(/\/options\/filter\/?$/i, '');
|
|
11686
|
+
this.useOptionsFilterEndpoint.set(true);
|
|
11687
|
+
}
|
|
11682
11688
|
if (path) {
|
|
11683
11689
|
this.resourcePath.set(path);
|
|
11684
11690
|
this.filterCriteria.set(metadata.filterCriteria ?? {});
|
|
11685
|
-
|
|
11686
|
-
|
|
11691
|
+
const optionLabelKey = metadata.optionLabelKey ??
|
|
11692
|
+
metadata.displayField;
|
|
11693
|
+
const optionValueKey = metadata.optionValueKey ??
|
|
11694
|
+
metadata.valueField;
|
|
11695
|
+
if (optionLabelKey) {
|
|
11696
|
+
this.optionLabelKey.set(optionLabelKey);
|
|
11687
11697
|
}
|
|
11688
11698
|
else if (optionSource) {
|
|
11689
11699
|
this.optionLabelKey.set('label');
|
|
11690
11700
|
}
|
|
11691
|
-
if (
|
|
11692
|
-
this.optionValueKey.set(
|
|
11701
|
+
if (optionValueKey) {
|
|
11702
|
+
this.optionValueKey.set(optionValueKey);
|
|
11693
11703
|
}
|
|
11694
11704
|
else if (optionSource) {
|
|
11695
11705
|
this.optionValueKey.set('id');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/dynamic-fields",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.84",
|
|
4
4
|
"description": "Angular Material-based dynamic form fields for Praxis UI with lazy loading and metadata-driven rendering.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"@angular/platform-browser": "^21.0.0",
|
|
12
12
|
"@angular/router": "^21.0.0",
|
|
13
13
|
"rxjs": "^7.8.0",
|
|
14
|
-
"@praxisui/core": "^8.0.0-beta.
|
|
15
|
-
"@praxisui/cron-builder": "^8.0.0-beta.
|
|
14
|
+
"@praxisui/core": "^8.0.0-beta.84",
|
|
15
|
+
"@praxisui/cron-builder": "^8.0.0-beta.84"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"libphonenumber-js": "^1.12.41",
|