@rxap/forms 13.0.2 → 13.0.3

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,32 @@ 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 count of array item controls is limited to the largest control id.
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
+ * patch value C: [ 1: {} ]
47
+ * result: [ 0: {}, 1: {} ]
48
+ *
49
+ * patch value D: [ 2: {} ]
50
+ * result: [ 0: {}, 1: {}, 2: {} ]
51
+ *
52
+ */
53
+ strict?: boolean;
30
54
  }
31
- export declare type ControlEventOptions = Pick<ControlOptions, 'emitEvent' | 'onlySelf' | 'coerce'>;
55
+ export declare type ControlEventOptions = Pick<ControlOptions, 'emitEvent' | 'onlySelf' | 'coerce' | 'strict'>;
32
56
  export declare type OnlySelf = Pick<ControlOptions, 'onlySelf'>;
33
57
  export declare type EmitEvent = Pick<ControlOptions, 'emitEvent'>;
34
58
  export declare type ControlPath = Array<string | number> | string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxap/forms",
3
- "version": "13.0.2",
3
+ "version": "13.0.3",
4
4
  "private": false,
5
5
  "author": "Merzough Münker",
6
6
  "homepage": "https://gitlab.com/rxap/packages/libs/forms",