@react-typed-forms/schemas 11.17.0 → 11.18.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/components/DefaultArrayRenderer.d.ts +3 -2
- package/lib/controlRender.d.ts +2 -2
- package/lib/createDefaultRenderers.d.ts +2 -1
- package/lib/index.js +54 -21
- package/lib/index.js.map +1 -1
- package/lib/types.d.ts +3 -0
- package/lib/util.d.ts +1 -0
- package/package.json +1 -1
package/lib/types.d.ts
CHANGED
|
@@ -251,12 +251,15 @@ export interface JsonataRenderOptions extends RenderOptions {
|
|
|
251
251
|
export interface ArrayRenderOptions extends RenderOptions {
|
|
252
252
|
type: DataRenderType.Array;
|
|
253
253
|
addText?: string | null;
|
|
254
|
+
addActionId?: string | null;
|
|
254
255
|
removeText?: string | null;
|
|
256
|
+
removeActionId?: string | null;
|
|
255
257
|
noAdd?: boolean | null;
|
|
256
258
|
noRemove?: boolean | null;
|
|
257
259
|
noReorder?: boolean | null;
|
|
258
260
|
childOptions?: RenderOptions | null;
|
|
259
261
|
}
|
|
262
|
+
export type ArrayActionOptions = Pick<ArrayRenderOptions, "addText" | "addActionId" | "removeText" | "removeActionId" | "noAdd" | "noRemove" | "noReorder">;
|
|
260
263
|
export interface CheckListRenderOptions extends RenderOptions {
|
|
261
264
|
type: DataRenderType.CheckList;
|
|
262
265
|
}
|
package/lib/util.d.ts
CHANGED
|
@@ -71,3 +71,4 @@ export declare function toDepString(x: any): string;
|
|
|
71
71
|
export declare function appendElementIndex(dataContext: ControlDataContext, elementIndex: number): ControlDataContext;
|
|
72
72
|
export declare function applyLengthRestrictions<Min, Max>(length: number, min: number | null | undefined, max: number | null | undefined, minValue: Min, maxValue: Max): [Min | undefined, Max | undefined];
|
|
73
73
|
export declare function findFieldPath(fields: SchemaField[], fieldPath: string | undefined): SchemaField[] | undefined;
|
|
74
|
+
export declare function mergeObjects<A extends Record<string, any> | undefined>(o1: A, o2: A, doMerge?: (k: keyof NonNullable<A>, v1: unknown, v2: unknown) => unknown): A;
|