@rxap/forms 13.0.2 → 13.0.4
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
|
@@ -27,8 +27,26 @@ export interface ControlOptions {
|
|
|
27
27
|
* false - default behavior
|
|
28
28
|
*/
|
|
29
29
|
coerce?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* used in the RxapFormArray patchValue method.
|
|
32
|
+
*
|
|
33
|
+
* true - the length of the control array is limited by the length of the value.
|
|
34
|
+
* false - default behavior
|
|
35
|
+
*
|
|
36
|
+
* example with strict = true
|
|
37
|
+
*
|
|
38
|
+
* current from array controls: [ 0: {}, 1: {}, 2: {} ]
|
|
39
|
+
*
|
|
40
|
+
* patch value A: [ 0: {}, 1: {}, 2: {} ]
|
|
41
|
+
* result: [ 0: {}, 1: {}, 2: {} ]
|
|
42
|
+
*
|
|
43
|
+
* path value B: [ 0: {}, 1: {} ]
|
|
44
|
+
* result: [ 0: {}, 1: {} ]
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
strict?: boolean;
|
|
30
48
|
}
|
|
31
|
-
export declare type ControlEventOptions = Pick<ControlOptions, 'emitEvent' | 'onlySelf' | 'coerce'>;
|
|
49
|
+
export declare type ControlEventOptions = Pick<ControlOptions, 'emitEvent' | 'onlySelf' | 'coerce' | 'strict'>;
|
|
32
50
|
export declare type OnlySelf = Pick<ControlOptions, 'onlySelf'>;
|
|
33
51
|
export declare type EmitEvent = Pick<ControlOptions, 'emitEvent'>;
|
|
34
52
|
export declare type ControlPath = Array<string | number> | string;
|