mn-angular-lib 0.0.50 → 0.0.51

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.
@@ -1528,6 +1528,10 @@ class MnTextarea {
1528
1528
  if (typeof msgDef === 'function') {
1529
1529
  return msgDef(errorArgs, errors);
1530
1530
  }
1531
+ // Interpolate {{placeholder}} tokens with validation error args
1532
+ if (typeof msgDef === 'string' && errorArgs && typeof errorArgs === 'object') {
1533
+ return msgDef.replace(/\{\{(\w+)\}\}/g, (_, key) => errorArgs[key] ?? _);
1534
+ }
1531
1535
  return msgDef;
1532
1536
  }
1533
1537
  /**
@@ -2105,6 +2109,10 @@ class MnMultiSelect {
2105
2109
  if (typeof msgDef === 'function') {
2106
2110
  return msgDef(errorArgs, errors);
2107
2111
  }
2112
+ // Interpolate {{placeholder}} tokens with validation error args
2113
+ if (typeof msgDef === 'string' && errorArgs && typeof errorArgs === 'object') {
2114
+ return msgDef.replace(/\{\{(\w+)\}\}/g, (_, key) => errorArgs[key] ?? _);
2115
+ }
2108
2116
  return msgDef;
2109
2117
  }
2110
2118
  get errorMessages() {