@react-typed-forms/schemas 11.12.0 → 11.13.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.
@@ -50,6 +50,10 @@ export declare function intField<S extends Partial<SchemaField>>(displayName: st
50
50
  type: FieldType.Int;
51
51
  displayName: string;
52
52
  } & S;
53
+ export declare function doubleField<S extends Partial<SchemaField>>(displayName: string, options?: S): (name: string) => SchemaField & {
54
+ type: FieldType.Double;
55
+ displayName: string;
56
+ } & S;
53
57
  export declare function dateField<S extends Partial<SchemaField>>(displayName: string, options?: S): (name: string) => SchemaField & {
54
58
  type: FieldType.Date;
55
59
  displayName: string;
package/lib/tailwind.d.ts CHANGED
@@ -30,6 +30,7 @@ export declare const defaultTailwindTheme: {
30
30
  selectOptions: {
31
31
  emptyText: string;
32
32
  };
33
+ multilineClass: string;
33
34
  };
34
35
  adornment: {
35
36
  accordion: {
package/lib/types.d.ts CHANGED
@@ -191,11 +191,13 @@ export declare enum DataRenderType {
191
191
  Dropdown = "Dropdown",
192
192
  DisplayOnly = "DisplayOnly",
193
193
  Group = "Group",
194
- NullToggle = "NullToggle"
194
+ NullToggle = "NullToggle",
195
+ Jsonata = "Jsonata"
195
196
  }
196
197
  export interface TextfieldRenderOptions extends RenderOptions {
197
198
  type: DataRenderType.Textfield;
198
199
  placeholder?: string | null;
200
+ multiline?: boolean | null;
199
201
  }
200
202
  export interface RadioButtonRenderOptions extends RenderOptions {
201
203
  type: DataRenderType.Radio;
@@ -229,6 +231,10 @@ export interface IconMapping {
229
231
  value: string;
230
232
  materialIcon?: string | null;
231
233
  }
234
+ export interface JsonataRenderOptions extends RenderOptions {
235
+ type: DataRenderType.Jsonata;
236
+ expression: string;
237
+ }
232
238
  export interface CheckListRenderOptions extends RenderOptions {
233
239
  type: DataRenderType.CheckList;
234
240
  }
@@ -291,7 +297,8 @@ export interface DisplayData {
291
297
  export declare enum DisplayDataType {
292
298
  Text = "Text",
293
299
  Html = "Html",
294
- Icon = "Icon"
300
+ Icon = "Icon",
301
+ Custom = "Custom"
295
302
  }
296
303
  export interface TextDisplay extends DisplayData {
297
304
  type: DisplayDataType.Text;
@@ -305,6 +312,10 @@ export interface HtmlDisplay extends DisplayData {
305
312
  type: DisplayDataType.Html;
306
313
  html: string;
307
314
  }
315
+ export interface CustomDisplay extends DisplayData {
316
+ type: DisplayDataType.Custom;
317
+ customId: string;
318
+ }
308
319
  export interface ActionControlDefinition extends ControlDefinition {
309
320
  type: ControlDefinitionType.Action;
310
321
  actionId: string;
package/lib/util.d.ts CHANGED
@@ -44,7 +44,7 @@ export declare function getDisplayOnlyOptions(d: ControlDefinition): DisplayOnly
44
44
  export declare function getTypeField(context: ControlDataContext, fieldPath: SchemaField[]): Control<string> | undefined;
45
45
  export declare function visitControlDataArray<A>(controls: ControlDefinition[] | undefined | null, context: ControlDataContext, cb: (definition: DataControlDefinition, field: SchemaField, control: Control<any>, element: boolean) => A | undefined): A | undefined;
46
46
  export declare function visitControlData<A>(definition: ControlDefinition, ctx: ControlDataContext, cb: (definition: DataControlDefinition, field: SchemaField, control: Control<any>, element: boolean) => A | undefined): A | undefined;
47
- export declare function lookupChildControl(data: DataContext, path: SchemaField[]): Control<any> | undefined;
47
+ export declare function lookupChildControl(data: DataContext, path: SchemaField[], element?: number): Control<any> | undefined;
48
48
  export declare function lookupChildControlPath(data: DataContext, jsonPath: JsonPath[]): Control<any> | undefined;
49
49
  export declare function cleanDataForSchema(v: {
50
50
  [k: string]: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-typed-forms/schemas",
3
- "version": "11.12.0",
3
+ "version": "11.13.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",