@rolster/forms 2.2.1 → 2.2.2

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.
@@ -1,6 +1,6 @@
1
1
  import { FormGroup } from '../form-group';
2
- import { AbstractArrayControl, AbstractArrayGroup, AbstractArrayControls, FormArrayGroupOptions, ValidatorGroupFn } from '../types';
3
- export type FormArrayControls<T extends AbstractArrayControl = AbstractArrayControl> = AbstractArrayControls<T>;
2
+ import { AbstractArrayGroup, AbstractArrayControls, FormArrayGroupOptions, ValidatorGroupFn, AbstractReactiveArrayControl } from '../types';
3
+ export type FormArrayControls<T extends AbstractReactiveArrayControl = AbstractReactiveArrayControl> = AbstractArrayControls<T>;
4
4
  type ArrayGroupOptions<T extends FormArrayControls> = Omit<FormArrayGroupOptions<T>, 'uuid'>;
5
5
  export declare class FormArrayGroup<C extends FormArrayControls = FormArrayControls, R = any> extends FormGroup<C> implements AbstractArrayGroup<C> {
6
6
  readonly uuid: string;
@@ -62,9 +62,12 @@ export interface AbstractFormGroup<C extends AbstractControls = AbstractControls
62
62
  state: StateGroup<C>;
63
63
  subscribe: (subscriber: SubscriberGroup<C>) => Unsubscription;
64
64
  }
65
- export interface AbstractArrayControl<T = any> extends AbstractReactiveControl<T> {
65
+ export interface AbstractArrayControl<T = any> extends AbstractFormControl<T> {
66
66
  uuid: string;
67
67
  }
68
+ export interface AbstractReactiveArrayControl<T = any> extends AbstractArrayControl<T> {
69
+ subscribe: (subscriber: SubscriberControl<T>) => Unsubscription;
70
+ }
68
71
  export type AbstractArrayControls<T extends AbstractArrayControl = AbstractArrayControl> = AbstractControls<T>;
69
72
  export interface AbstractArrayGroup<C extends AbstractArrayControls, R = any> extends AbstractGroup<C> {
70
73
  setValidators: (validators: ValidatorGroupFn<C>[]) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolster/forms",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "It implements a set of classes that allow managing the control of states of the input components of the UI.",
5
5
  "module": "dist/esm/index.js",
6
6
  "main": "dist/cjs/index.js",