@react-typed-forms/schemas 10.2.0 → 10.4.0

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/lib/types.d.ts CHANGED
@@ -82,7 +82,8 @@ export declare enum DynamicPropertyType {
82
82
  Style = "Style",
83
83
  LayoutStyle = "LayoutStyle",
84
84
  AllowedOptions = "AllowedOptions",
85
- Label = "Label"
85
+ Label = "Label",
86
+ ActionData = "ActionData"
86
87
  }
87
88
  export interface EntityExpression {
88
89
  type: string;
@@ -288,6 +289,7 @@ export interface HtmlDisplay extends DisplayData {
288
289
  export interface ActionControlDefinition extends ControlDefinition {
289
290
  type: ControlDefinitionType.Action;
290
291
  actionId: string;
292
+ actionData: string;
291
293
  }
292
294
  export declare enum ValidatorType {
293
295
  Jsonata = "Jsonata",
package/lib/util.d.ts CHANGED
@@ -28,6 +28,14 @@ export declare function hasOptions(o: {
28
28
  options: FieldOption[] | undefined | null;
29
29
  }): boolean;
30
30
  export declare function defaultControlForField(sf: SchemaField): DataControlDefinition;
31
+ export declare function findControlsForCompound(compound: CompoundField, definition: ControlDefinition): ControlDefinition[];
32
+ export interface ControlGroupLookup {
33
+ groups: ControlDefinition[];
34
+ children: Record<string, ControlGroupLookup>;
35
+ }
36
+ export declare function findCompoundGroups(fields: SchemaField[], controls: ControlDefinition[]): Record<string, ControlGroupLookup>;
37
+ export declare function existsInGroups(field: SchemaField, lookup: ControlGroupLookup): [SchemaField, ControlGroupLookup][];
38
+ export declare function findNonDataGroups(controls: ControlDefinition[]): ControlDefinition[];
31
39
  export declare function addMissingControls(fields: SchemaField[], controls: ControlDefinition[]): ControlDefinition[];
32
40
  export declare function useUpdatedRef<A>(a: A): MutableRefObject<A>;
33
41
  export declare function isControlReadonly(c: ControlDefinition): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-typed-forms/schemas",
3
- "version": "10.2.0",
3
+ "version": "10.4.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "material-ui"
25
25
  ],
26
26
  "dependencies": {
27
- "@react-typed-forms/core": "^3.1.3",
27
+ "@react-typed-forms/core": "^3.2.0",
28
28
  "clsx": "^1 || ^2",
29
29
  "jsonata": "^2.0.4",
30
30
  "react": "^18.2.0"