@webtypen/webframez-core 0.3.59 → 0.3.60

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/README.md CHANGED
@@ -478,8 +478,8 @@ builder.registerType({
478
478
  mixed_target: {
479
479
  type: "option",
480
480
  optionsMapping: [
481
- { from: "default_values", value: "key", label: "name", valuePrefix: "@defaults." },
482
- { from: "features_targets", value: "key", label: "name" },
481
+ { from: "default_values", value: "key", label: "name", valuePrefix: "@defaults.", labelPrefix: "Standard: " },
482
+ { from: "features_targets", value: "key", label: "name", labelPrefix: "Ziel: " },
483
483
  { from: "@parent.attributes", value: "key", label: "name" }
484
484
  ]
485
485
  },
@@ -499,9 +499,11 @@ builder.registerType({
499
499
 
500
500
  `option` fields can use static `options: [{ value, label }]` or a client-side
501
501
  `optionsMapping`. The mapping can be a single object or an array of objects with
502
- `{ from: string; value: string; label: string; valuePrefix?: string }`. Multiple
503
- mapping entries are aggregated in order, and `@parent...` source paths resolve
504
- against the nearest outer array entry in the current form data.
502
+ `{ from: string; value: string; label: string; valuePrefix?: string; labelPrefix?: string }`. Multiple
503
+ mapping entries are aggregated in order. `@parent.<field>` source paths resolve
504
+ schema-aware to the closest parent schema context defining `<field>`, for example
505
+ `features_groups[].licenses[].adds[].key` with `@parent.attributes` resolves to
506
+ `features_groups[].attributes`.
505
507
 
506
508
  Array fields can set `toggable: true` to let the frontend collapse entries. Use
507
509
  `previewLabel` with the same template syntax to render a label in the entry title
@@ -23,6 +23,7 @@ export type DataBuilderOptionMapping = {
23
23
  value: string;
24
24
  label: string;
25
25
  valuePrefix?: string;
26
+ labelPrefix?: string;
26
27
  };
27
28
  export type DataBuilderOptionsMapping = DataBuilderOptionMapping | DataBuilderOptionMapping[];
28
29
  export type DataBuilderType = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webtypen/webframez-core",
3
- "version": "0.3.59",
3
+ "version": "0.3.60",
4
4
  "description": "The core package of the typescript based webframez (web-framework) by webtypen.de",
5
5
  "homepage": "https://webtypen.de/",
6
6
  "license": "MIT",