Comparing version 0.2.0-beta.32 to 0.2.0-beta.33
@@ -11,3 +11,2 @@ "use strict"; | ||
function makeDefaultFieldProps(model) { | ||
var form = context_1.useFormContext().form; | ||
var value = model.value; | ||
@@ -28,3 +27,2 @@ var taskRef = react_1.useRef(null); | ||
} | ||
form.change$.next(); | ||
}, | ||
@@ -31,0 +29,0 @@ onCompositionStart: function () { |
@@ -1,2 +0,2 @@ | ||
import { BehaviorSubject, Subject, Observable } from 'rxjs'; | ||
import { BehaviorSubject, Observable } from 'rxjs'; | ||
import { FieldSetModel } from './set'; | ||
@@ -19,3 +19,2 @@ import { BasicModel } from './basic'; | ||
readonly isValidating$: BehaviorSubject<boolean>; | ||
readonly change$: Subject<void>; | ||
constructor(children: Children); | ||
@@ -22,0 +21,0 @@ validate(option?: ValidateOption): Promise<any>; |
@@ -22,3 +22,2 @@ "use strict"; | ||
_this.isValidating$ = new rxjs_1.BehaviorSubject(false); | ||
_this.change$ = new rxjs_1.Subject(); | ||
_this.form = _this; | ||
@@ -25,0 +24,0 @@ return _this; |
@@ -12,7 +12,7 @@ import { Observable, NextObserver } from 'rxjs'; | ||
export declare enum ValidateOption { | ||
Default = 0, | ||
IncludeAsync = 2, | ||
IncludeUntouched = 4, | ||
IncludeChildren = 8, | ||
FromParent = 256 | ||
FromParent = 256, | ||
Default = 0 | ||
} | ||
@@ -19,0 +19,0 @@ export interface IValidation { |
@@ -10,3 +10,2 @@ "use strict"; | ||
(function (ValidateOption) { | ||
ValidateOption[ValidateOption["Default"] = 0] = "Default"; | ||
ValidateOption[ValidateOption["IncludeAsync"] = 2] = "IncludeAsync"; | ||
@@ -16,2 +15,3 @@ ValidateOption[ValidateOption["IncludeUntouched"] = 4] = "IncludeUntouched"; | ||
ValidateOption[ValidateOption["FromParent"] = 256] = "FromParent"; | ||
ValidateOption[ValidateOption["Default"] = 0] = "Default"; | ||
})(ValidateOption = exports.ValidateOption || (exports.ValidateOption = {})); | ||
@@ -18,0 +18,0 @@ var ErrorSubscriber = /** @class */ (function () { |
@@ -9,3 +9,2 @@ import { useMemo, useRef, useEffect } from 'react'; | ||
export function makeDefaultFieldProps(model) { | ||
var form = useFormContext().form; | ||
var value = model.value; | ||
@@ -26,3 +25,2 @@ var taskRef = useRef(null); | ||
} | ||
form.change$.next(); | ||
}, | ||
@@ -29,0 +27,0 @@ onCompositionStart: function () { |
@@ -1,2 +0,2 @@ | ||
import { BehaviorSubject, Subject, Observable } from 'rxjs'; | ||
import { BehaviorSubject, Observable } from 'rxjs'; | ||
import { FieldSetModel } from './set'; | ||
@@ -19,3 +19,2 @@ import { BasicModel } from './basic'; | ||
readonly isValidating$: BehaviorSubject<boolean>; | ||
readonly change$: Subject<void>; | ||
constructor(children: Children); | ||
@@ -22,0 +21,0 @@ validate(option?: ValidateOption): Promise<any>; |
import * as tslib_1 from "tslib"; | ||
import { BehaviorSubject, Subject } from 'rxjs'; | ||
import { BehaviorSubject } from 'rxjs'; | ||
import { FieldSetModel } from './set'; | ||
@@ -19,3 +19,2 @@ import { ValidateOption } from '../validate'; | ||
_this.isValidating$ = new BehaviorSubject(false); | ||
_this.change$ = new Subject(); | ||
_this.form = _this; | ||
@@ -22,0 +21,0 @@ return _this; |
@@ -12,7 +12,7 @@ import { Observable, NextObserver } from 'rxjs'; | ||
export declare enum ValidateOption { | ||
Default = 0, | ||
IncludeAsync = 2, | ||
IncludeUntouched = 4, | ||
IncludeChildren = 8, | ||
FromParent = 256 | ||
FromParent = 256, | ||
Default = 0 | ||
} | ||
@@ -19,0 +19,0 @@ export interface IValidation { |
@@ -8,3 +8,2 @@ import { isObservable, from, empty, of, defer } from 'rxjs'; | ||
(function (ValidateOption) { | ||
ValidateOption[ValidateOption["Default"] = 0] = "Default"; | ||
ValidateOption[ValidateOption["IncludeAsync"] = 2] = "IncludeAsync"; | ||
@@ -14,2 +13,3 @@ ValidateOption[ValidateOption["IncludeUntouched"] = 4] = "IncludeUntouched"; | ||
ValidateOption[ValidateOption["FromParent"] = 256] = "FromParent"; | ||
ValidateOption[ValidateOption["Default"] = 0] = "Default"; | ||
})(ValidateOption || (ValidateOption = {})); | ||
@@ -16,0 +16,0 @@ var ErrorSubscriber = /** @class */ (function () { |
{ | ||
"name": "formulr", | ||
"version": "0.2.0-beta.32", | ||
"version": "0.2.0-beta.33", | ||
"description": "Form toolkit for React", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -1,2 +0,2 @@ | ||
import { BehaviorSubject, Subject, Observable } from 'rxjs'; | ||
import { BehaviorSubject, Observable } from 'rxjs'; | ||
import { FieldSetModel } from './set'; | ||
@@ -24,3 +24,2 @@ import { BasicModel } from './basic'; | ||
readonly isValidating$ = new BehaviorSubject(false); | ||
readonly change$ = new Subject<void>(); | ||
@@ -27,0 +26,0 @@ constructor(public readonly children: Children) { |
@@ -18,3 +18,2 @@ import { Observable, isObservable, from, NextObserver, empty, of, defer } from 'rxjs'; | ||
export enum ValidateOption { | ||
Default = 0b000000000, | ||
IncludeAsync = 0b000000010, | ||
@@ -25,2 +24,4 @@ IncludeUntouched = 0b000000100, | ||
FromParent = 0b100000000, | ||
Default = 0b000000000, | ||
} | ||
@@ -27,0 +28,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
327763
5530