@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 {
|
|
3
|
-
export type FormArrayControls<T extends
|
|
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;
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -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
|
|
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