@ng-forge/dynamic-form-mcp 1.3.0-next.2 → 1.3.0-next.3

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.
@@ -1578,6 +1578,19 @@ var UI_ADAPTERS = [
1578
1578
  default: false
1579
1579
  }
1580
1580
  }
1581
+ },
1582
+ {
1583
+ type: "datepicker",
1584
+ componentName: "IonicDatepickerFieldComponent",
1585
+ additionalProps: {
1586
+ locale: {
1587
+ name: "locale",
1588
+ type: "string",
1589
+ description: "BCP 47 locale for the picker and the displayed value",
1590
+ required: false,
1591
+ default: "browser locale"
1592
+ }
1593
+ }
1581
1594
  }
1582
1595
  ]
1583
1596
  }
@@ -6658,6 +6671,13 @@ var PrimeFormConfigSchema = createFormConfigSchema(PrimeFieldSchema, PrimeFormDe
6658
6671
 
6659
6672
  // internal/dynamic-forms-validation/ionic/src/props/index.ts
6660
6673
  import { z as z53 } from "zod";
6674
+ function isLocaleTag(value) {
6675
+ try {
6676
+ return Intl.getCanonicalLocales(value).length > 0;
6677
+ } catch {
6678
+ return false;
6679
+ }
6680
+ }
6661
6681
  var IonicColorSchema = z53.enum(["primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", "dark"]);
6662
6682
  var IonicLabelPlacementSchema = z53.enum(["start", "end", "fixed", "stacked", "floating"]);
6663
6683
  var IonicJustifySchema = z53.enum(["start", "end", "space-between"]);
@@ -6719,6 +6739,7 @@ var IonicDatepickerPropsSchema = z53.object({
6719
6739
  size: z53.enum(["cover", "fixed"]).optional(),
6720
6740
  color: z53.enum(["primary", "secondary", "tertiary", "success", "warning", "danger"]).optional(),
6721
6741
  hint: DynamicTextSchema.optional(),
6742
+ locale: z53.string().refine(isLocaleTag, { message: 'Expected a BCP 47 locale tag such as "de-DE"' }).optional(),
6722
6743
  placeholder: DynamicTextSchema.optional()
6723
6744
  });
6724
6745
  var IonicSelectPropsSchema = z53.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-forge/dynamic-form-mcp",
3
- "version": "1.3.0-next.2",
3
+ "version": "1.3.0-next.3",
4
4
  "description": "MCP server for ng-forge dynamic forms - AI-assisted form schema generation",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -53,11 +53,11 @@
53
53
  "zod": "^4.5.4"
54
54
  },
55
55
  "devDependencies": {
56
- "@ng-forge/dynamic-forms": "^1.3.0-next.2",
57
- "@ng-forge/dynamic-forms-bootstrap": "^1.3.0-next.2",
58
- "@ng-forge/dynamic-forms-ionic": "^1.3.0-next.2",
59
- "@ng-forge/dynamic-forms-material": "^1.3.0-next.2",
60
- "@ng-forge/dynamic-forms-primeng": "^1.3.0-next.2",
56
+ "@ng-forge/dynamic-forms": "^1.3.0-next.3",
57
+ "@ng-forge/dynamic-forms-bootstrap": "^1.3.0-next.3",
58
+ "@ng-forge/dynamic-forms-ionic": "^1.3.0-next.3",
59
+ "@ng-forge/dynamic-forms-material": "^1.3.0-next.3",
60
+ "@ng-forge/dynamic-forms-primeng": "^1.3.0-next.3",
61
61
  "tsx": "^4.19.0"
62
62
  }
63
63
  }
package/src/index.js CHANGED
@@ -1576,6 +1576,19 @@ var UI_ADAPTERS = [
1576
1576
  default: false
1577
1577
  }
1578
1578
  }
1579
+ },
1580
+ {
1581
+ type: "datepicker",
1582
+ componentName: "IonicDatepickerFieldComponent",
1583
+ additionalProps: {
1584
+ locale: {
1585
+ name: "locale",
1586
+ type: "string",
1587
+ description: "BCP 47 locale for the picker and the displayed value",
1588
+ required: false,
1589
+ default: "browser locale"
1590
+ }
1591
+ }
1579
1592
  }
1580
1593
  ]
1581
1594
  }
@@ -6703,6 +6716,13 @@ var PrimeFormConfigSchema = createFormConfigSchema(PrimeFieldSchema, PrimeFormDe
6703
6716
 
6704
6717
  // internal/dynamic-forms-validation/ionic/src/props/index.ts
6705
6718
  import { z as z53 } from "zod";
6719
+ function isLocaleTag(value) {
6720
+ try {
6721
+ return Intl.getCanonicalLocales(value).length > 0;
6722
+ } catch {
6723
+ return false;
6724
+ }
6725
+ }
6706
6726
  var IonicColorSchema = z53.enum(["primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", "dark"]);
6707
6727
  var IonicLabelPlacementSchema = z53.enum(["start", "end", "fixed", "stacked", "floating"]);
6708
6728
  var IonicJustifySchema = z53.enum(["start", "end", "space-between"]);
@@ -6764,6 +6784,7 @@ var IonicDatepickerPropsSchema = z53.object({
6764
6784
  size: z53.enum(["cover", "fixed"]).optional(),
6765
6785
  color: z53.enum(["primary", "secondary", "tertiary", "success", "warning", "danger"]).optional(),
6766
6786
  hint: DynamicTextSchema.optional(),
6787
+ locale: z53.string().refine(isLocaleTag, { message: 'Expected a BCP 47 locale tag such as "de-DE"' }).optional(),
6767
6788
  placeholder: DynamicTextSchema.optional()
6768
6789
  });
6769
6790
  var IonicSelectPropsSchema = z53.object({
@@ -1 +1 @@
1
- {"version":3,"file":"ui-adapters.d.ts","sourceRoot":"","sources":["../../../../../packages/dynamic-form-mcp/src/registry/ui-adapters.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,aAAa,EA0VtC,CAAC"}
1
+ {"version":3,"file":"ui-adapters.d.ts","sourceRoot":"","sources":["../../../../../packages/dynamic-form-mcp/src/registry/ui-adapters.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,aAAa,EAuWtC,CAAC"}