@react-typed-forms/schemas 13.2.0 → 13.3.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/lib/types.d.ts CHANGED
@@ -63,6 +63,8 @@ export interface SchemaInterface {
63
63
  textValue(field: SchemaField, value: any, element?: boolean): string | undefined;
64
64
  controlLength(field: SchemaField, control: Control<any>): number;
65
65
  valueLength(field: SchemaField, value: any): number;
66
+ getDataOptions(node: SchemaDataNode): FieldOption[] | null | undefined;
67
+ getNodeOptions(node: SchemaNode): FieldOption[] | null | undefined;
66
68
  getOptions(field: SchemaField): FieldOption[] | undefined | null;
67
69
  getFilterOptions(array: SchemaDataNode, field: SchemaNode): FieldOption[] | undefined | null;
68
70
  parseToMillis(field: SchemaField, v: string): number;
@@ -214,7 +216,12 @@ export interface TextfieldRenderOptions extends RenderOptions {
214
216
  placeholder?: string | null;
215
217
  multiline?: boolean | null;
216
218
  }
217
- export interface RadioButtonRenderOptions extends RenderOptions {
219
+ export interface CheckEntryClasses {
220
+ entryWrapperClass?: string | null;
221
+ selectedClass?: string | null;
222
+ notSelectedClass?: string | null;
223
+ }
224
+ export interface RadioButtonRenderOptions extends RenderOptions, CheckEntryClasses {
218
225
  type: DataRenderType.Radio;
219
226
  }
220
227
  export interface StandardRenderer extends RenderOptions {
@@ -270,7 +277,7 @@ export type ArrayActionOptions = Pick<ArrayRenderOptions, "addText" | "addAction
270
277
  disabled?: boolean;
271
278
  designMode?: boolean;
272
279
  };
273
- export interface CheckListRenderOptions extends RenderOptions {
280
+ export interface CheckListRenderOptions extends RenderOptions, CheckEntryClasses {
274
281
  type: DataRenderType.CheckList;
275
282
  }
276
283
  export interface SynchronisedRenderOptions extends RenderOptions {
@@ -416,3 +423,4 @@ export declare function isCompoundField(sf: SchemaField): sf is CompoundField;
416
423
  export declare function isDataControl(c: ControlDefinition): c is DataControlDefinition;
417
424
  export declare function isGroupControl(c: ControlDefinition): c is GroupedControlsDefinition;
418
425
  export type ControlActionHandler = (actionId: string, actionData: any, ctx: ControlDataContext) => (() => void) | undefined;
426
+ export declare function isCheckEntryClasses(options?: RenderOptions | null): options is CheckEntryClasses & RenderOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-typed-forms/schemas",
3
- "version": "13.2.0",
3
+ "version": "13.3.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "lib/index.cjs",