@vectoriox/iox-ui 4.31.0 → 4.31.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-ui",
3
- "version": "4.31.0",
3
+ "version": "4.31.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -23,7 +23,10 @@ export const RULE_MESSAGE_KEYS: Readonly<Record<RuleName, string>> = Object.free
23
23
  [RuleName.MaxLength]: `${MESSAGE_NAMESPACE}.maxLength`,
24
24
  [RuleName.Min]: `${MESSAGE_NAMESPACE}.min`,
25
25
  [RuleName.Max]: `${MESSAGE_NAMESPACE}.max`,
26
- [RuleName.Pattern]: `${MESSAGE_NAMESPACE}.pattern`,
26
+ // ⚠️ `.pattern.generic`, not `.pattern`: the preset keys below live UNDER `pattern`, and a JSON
27
+ // translation bundle cannot have the same key be both a string and an object — ngx-translate
28
+ // would hand back the object (or the raw key) for the generic case.
29
+ [RuleName.Pattern]: `${MESSAGE_NAMESPACE}.pattern.generic`,
27
30
  [RuleName.Matches]: `${MESSAGE_NAMESPACE}.matches`,
28
31
  [RuleName.Accepted]: `${MESSAGE_NAMESPACE}.accepted`,
29
32
  [RuleName.FileType]: `${MESSAGE_NAMESPACE}.fileType`,