@ngneat/reactive-forms
Advanced tools
Comparing version 1.0.0-beta.35 to 1.0.0-beta.40
@@ -315,6 +315,6 @@ (function (global, factory) { | ||
_this.value$ = controlValueChanges$(_this); | ||
_this.disabledChanges$ = controlDisabled$(_this); | ||
_this.enabledChanges$ = controlEnabled$(_this); | ||
_this.statusChanges$ = controlStatusChanges$(_this); | ||
_this.errorChanges$ = controlErrorChanges$(_this); | ||
_this.disabled$ = controlDisabled$(_this); | ||
_this.enabled$ = controlEnabled$(_this); | ||
_this.status$ = controlStatusChanges$(_this); | ||
_this.errors$ = controlErrorChanges$(_this); | ||
return _this; | ||
@@ -336,5 +336,3 @@ } | ||
} | ||
else { | ||
_super.prototype.setValue.call(this, valueOrObservable, options); | ||
} | ||
_super.prototype.setValue.call(this, valueOrObservable, options); | ||
}; | ||
@@ -346,9 +344,3 @@ FormArray.prototype.patchValue = function (valueOrObservable, options) { | ||
} | ||
else { | ||
var value = valueOrObservable; | ||
if (isFunction(valueOrObservable)) { | ||
value = valueOrObservable(this.value); | ||
} | ||
_super.prototype.patchValue.call(this, value, options); | ||
} | ||
_super.prototype.patchValue.call(this, valueOrObservable, options); | ||
}; | ||
@@ -443,2 +435,3 @@ FormArray.prototype.push = function (control) { | ||
function FormControl(formState, validatorOrOpts, asyncValidator) { | ||
if (formState === void 0) { formState = null; } | ||
var _this = _super.call(this, formState, validatorOrOpts, asyncValidator) || this; | ||
@@ -456,5 +449,2 @@ _this.touchChanges = new rxjs.Subject(); | ||
} | ||
FormControl.prototype.select = function (mapFn) { | ||
return selectControlValue$(this, mapFn); | ||
}; | ||
FormControl.prototype.setValue = function (valueOrObservable, options) { | ||
@@ -465,5 +455,3 @@ var _this = this; | ||
} | ||
else { | ||
_super.prototype.setValue.call(this, valueOrObservable, options); | ||
} | ||
_super.prototype.setValue.call(this, valueOrObservable, options); | ||
}; | ||
@@ -475,9 +463,3 @@ FormControl.prototype.patchValue = function (valueOrObservable, options) { | ||
} | ||
else { | ||
var value = valueOrObservable; | ||
if (isFunction(valueOrObservable)) { | ||
value = valueOrObservable(this.value); | ||
} | ||
_super.prototype.patchValue.call(this, value, options); | ||
} | ||
_super.prototype.patchValue.call(this, valueOrObservable, options); | ||
}; | ||
@@ -517,2 +499,3 @@ FormControl.prototype.disabledWhile = function (observable, options) { | ||
FormControl.prototype.reset = function (formState, options) { | ||
if (formState === void 0) { formState = null; } | ||
_super.prototype.reset.call(this, formState, options); | ||
@@ -607,5 +590,3 @@ }; | ||
} | ||
else { | ||
_super.prototype.setValue.call(this, valueOrObservable, options); | ||
} | ||
_super.prototype.setValue.call(this, valueOrObservable, options); | ||
}; | ||
@@ -617,9 +598,3 @@ FormGroup.prototype.patchValue = function (valueOrObservable, options) { | ||
} | ||
else { | ||
var value = valueOrObservable; | ||
if (isFunction(valueOrObservable)) { | ||
value = valueOrObservable(this.value); | ||
} | ||
_super.prototype.patchValue.call(this, value, options); | ||
} | ||
_super.prototype.patchValue.call(this, valueOrObservable, options); | ||
}; | ||
@@ -718,2 +693,3 @@ FormGroup.prototype.disabledWhile = function (observable, options) { | ||
FormBuilder.prototype.group = function (controlsConfig, options) { | ||
if (options === void 0) { options = null; } | ||
var controls = this._reduceControls(controlsConfig); | ||
@@ -739,2 +715,3 @@ var validators = null; | ||
FormBuilder.prototype.control = function (formState, validatorOrOpts, asyncValidator) { | ||
if (formState === void 0) { formState = null; } | ||
return new FormControl(formState, validatorOrOpts, asyncValidator); | ||
@@ -741,0 +718,0 @@ }; |
@@ -15,3 +15,3 @@ !function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@angular/forms"),require("rxjs"),require("rxjs/operators"),require("@angular/core")):"function"==typeof define&&define.amd?define("@ngneat/reactive-forms",["exports","@angular/forms","rxjs","rxjs/operators","@angular/core"],r):r(((t=t||self).ngneat=t.ngneat||{},t.ngneat["reactive-forms"]={}),t.ng.forms,t.rxjs,t.rxjs.operators,t.ng.core)}(this,(function(t,r,e,o,n){"use strict"; | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var i=function(t,r){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(t,r)};function a(t,r){function e(){this.constructor=t}i(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}function s(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,n,i=e.call(t),a=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(n)throw n.error}}return a}function u(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(s(arguments[r]));return t}function p(t){return Array.isArray(t)?t:[t]}function l(t){return"function"==typeof t}function c(t){return null==t}function h(t){return t.getRawValue?t.getRawValue():t.value}function y(t){return e.merge(e.defer((function(){return e.of(h(t))})),t.valueChanges.pipe(o.map((function(){return h(t)}))))}function f(t){return e.merge(e.defer((function(){return e.of(t.disabled)})),t.statusChanges.pipe(o.map((function(){return t.disabled})),o.distinctUntilChanged()))}function d(t){return e.merge(e.defer((function(){return e.of(t.enabled)})),t.statusChanges.pipe(o.map((function(){return t.enabled})),o.distinctUntilChanged()))}function g(t){return e.merge(e.defer((function(){return e.of(t.status)})),t.statusChanges.pipe(o.map((function(){return t.status})),o.distinctUntilChanged()))}function v(t){return e.merge(e.defer((function(){return e.of(t.errors)})),t.valueChanges.pipe(o.map((function(){return t.errors})),o.distinctUntilChanged((function(t,r){return function(t,r){return c(t)||c(r)?t===r:JSON.stringify(t)===JSON.stringify(r)}(t,r)}))))}function b(t,r,e){r?t.enable(e):t.disable(e)}function V(t,r,e){b(t,!r,e)}function m(t,r,e){return r.subscribe((function(r){return V(t,r,e)}))}function A(t,r,e){return r.subscribe((function(r){return b(t,r,e)}))}function C(t,r){t.setValidators(u([t.validator],p(r))),t.updateValueAndValidity()}function E(t,r){return r.subscribe((function(r){t.setErrors(r)}))}function k(t,r,e){return t.hasError(r,e&&0!==e.length?e:void 0)&&t.touched}function O(t,r,e){return t.hasError(r,e&&0!==e.length?e:void 0)&&t.dirty}function $(t){t.markAsDirty({onlySelf:!0}),t._forEachChild((function(t){return t.markAllAsDirty()}))}function j(t,r){return t.value$.pipe(o.map(r),o.distinctUntilChanged())}var x=function(t){function r(r,n,i){var a=t.call(this,r,n,i)||this;return a.controls=r,a.touchChanges=new e.Subject,a.dirtyChanges=new e.Subject,a.touch$=a.touchChanges.asObservable().pipe(o.distinctUntilChanged()),a.dirty$=a.dirtyChanges.asObservable().pipe(o.distinctUntilChanged()),a.value$=y(a),a.disabledChanges$=f(a),a.enabledChanges$=d(a),a.statusChanges$=g(a),a.errorChanges$=v(a),a}return a(r,t),r.prototype.select=function(t){return this.value$.pipe(o.map(t),o.distinctUntilChanged())},r.prototype.getRawValue=function(){return t.prototype.getRawValue.call(this)},r.prototype.at=function(r){return t.prototype.at.call(this,r)},r.prototype.setValue=function(r,o){var n=this;if(e.isObservable(r))return r.subscribe((function(r){return t.prototype.setValue.call(n,r,o)}));t.prototype.setValue.call(this,r,o)},r.prototype.patchValue=function(r,o){var n=this;if(e.isObservable(r))return r.subscribe((function(r){return t.prototype.patchValue.call(n,r,o)}));var i=r;l(r)&&(i=r(this.value)),t.prototype.patchValue.call(this,i,o)},r.prototype.push=function(r){return t.prototype.push.call(this,r)},r.prototype.insert=function(r,e){return t.prototype.insert.call(this,r,e)},r.prototype.setControl=function(r,e){return t.prototype.setControl.call(this,r,e)},r.prototype.disabledWhile=function(t,r){return m(this,t,r)},r.prototype.enabledWhile=function(t,r){return A(this,t,r)},r.prototype.mergeValidators=function(t){C(this,t)},r.prototype.mergeAsyncValidators=function(t){this.setAsyncValidators(u([this.asyncValidator],p(t))),this.updateValueAndValidity()},r.prototype.markAsTouched=function(r){t.prototype.markAsTouched.call(this,r),this.touchChanges.next(!0)},r.prototype.markAsUntouched=function(r){t.prototype.markAsUntouched.call(this,r),this.touchChanges.next(!1)},r.prototype.markAsPristine=function(r){t.prototype.markAsPristine.call(this,r),this.dirtyChanges.next(!1)},r.prototype.markAsDirty=function(r){t.prototype.markAsDirty.call(this,r),this.dirtyChanges.next(!0)},r.prototype.markAllAsDirty=function(){$(this)},r.prototype.reset=function(r,e){t.prototype.reset.call(this,r,e)},r.prototype.setValidators=function(r){t.prototype.setValidators.call(this,r),t.prototype.updateValueAndValidity.call(this)},r.prototype.setAsyncValidators=function(r){t.prototype.setAsyncValidators.call(this,r),t.prototype.updateValueAndValidity.call(this)},r.prototype.validateOn=function(t){var r=this;return t.subscribe((function(t){r.setErrors(t)}))},r.prototype.hasError=function(r,e){return t.prototype.hasError.call(this,r,e)},r.prototype.setErrors=function(r,e){return void 0===e&&(e={}),t.prototype.setErrors.call(this,r,e)},r.prototype.getError=function(r,e){return t.prototype.getError.call(this,r,e)},r.prototype.hasErrorAndTouched=function(t,r){return k(this,t,r)},r.prototype.hasErrorAndDirty=function(t,r){return O(this,t,r)},r.prototype.setEnable=function(t,r){void 0===t&&(t=!0),b(this,t,r)},r.prototype.setDisable=function(t,r){void 0===t&&(t=!0),V(this,t,r)},r}(r.FormArray),w=function(t){function r(r,n,i){var a=t.call(this,r,n,i)||this;return a.touchChanges=new e.Subject,a.dirtyChanges=new e.Subject,a.touch$=a.touchChanges.asObservable().pipe(o.distinctUntilChanged()),a.dirty$=a.dirtyChanges.asObservable().pipe(o.distinctUntilChanged()),a.value$=y(a),a.disabled$=f(a),a.enabled$=d(a),a.status$=g(a),a.errors$=v(a),a}return a(r,t),r.prototype.select=function(t){return j(this,t)},r.prototype.setValue=function(r,o){var n=this;if(e.isObservable(r))return r.subscribe((function(r){return t.prototype.setValue.call(n,r,o)}));t.prototype.setValue.call(this,r,o)},r.prototype.patchValue=function(r,o){var n=this;if(e.isObservable(r))return r.subscribe((function(r){return t.prototype.patchValue.call(n,r,o)}));var i=r;l(r)&&(i=r(this.value)),t.prototype.patchValue.call(this,i,o)},r.prototype.disabledWhile=function(t,r){return m(this,t,r)},r.prototype.enabledWhile=function(t,r){return A(this,t,r)},r.prototype.mergeValidators=function(t){C(this,t)},r.prototype.mergeAsyncValidators=function(t){this.setAsyncValidators(u([this.asyncValidator],p(t))),this.updateValueAndValidity()},r.prototype.markAsTouched=function(r){t.prototype.markAsTouched.call(this,r),this.touchChanges.next(!0)},r.prototype.markAsUntouched=function(r){t.prototype.markAsUntouched.call(this,r),this.touchChanges.next(!1)},r.prototype.markAsPristine=function(r){t.prototype.markAsPristine.call(this,r),this.dirtyChanges.next(!1)},r.prototype.markAsDirty=function(r){t.prototype.markAsDirty.call(this,r),this.dirtyChanges.next(!0)},r.prototype.markAllAsDirty=function(){this.markAsDirty({onlySelf:!0})},r.prototype.reset=function(r,e){t.prototype.reset.call(this,r,e)},r.prototype.setValidators=function(r){t.prototype.setValidators.call(this,r),t.prototype.updateValueAndValidity.call(this)},r.prototype.setAsyncValidators=function(r){t.prototype.setAsyncValidators.call(this,r),t.prototype.updateValueAndValidity.call(this)},r.prototype.validateOn=function(t){return E(this,t)},r.prototype.getError=function(r){return t.prototype.getError.call(this,r)},r.prototype.hasError=function(r){return t.prototype.hasError.call(this,r)},r.prototype.setErrors=function(r,e){return void 0===e&&(e={}),t.prototype.setErrors.call(this,r,e)},r.prototype.hasErrorAndTouched=function(t){return k(this,t)},r.prototype.hasErrorAndDirty=function(t){return O(this,t)},r.prototype.setEnable=function(t,r){void 0===t&&(t=!0),b(this,t,r)},r.prototype.setDisable=function(t,r){void 0===t&&(t=!0),V(this,t,r)},r}(r.FormControl),D=function(t){function r(r,n,i){var a=t.call(this,r,n,i)||this;return a.controls=r,a.touchChanges=new e.Subject,a.dirtyChanges=new e.Subject,a.touch$=a.touchChanges.asObservable().pipe(o.distinctUntilChanged()),a.dirty$=a.dirtyChanges.asObservable().pipe(o.distinctUntilChanged()),a.value$=y(a),a.disabled$=f(a),a.enabled$=d(a),a.status$=g(a),a.errors$=v(a),a}return a(r,t),r.prototype.select=function(t){return j(this,t)},r.prototype.getRawValue=function(){return t.prototype.getRawValue.call(this)},r.prototype.get=function(r){return t.prototype.get.call(this,r)},r.prototype.getControl=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return this.get(t.join("."))},r.prototype.addControl=function(r,e){t.prototype.addControl.call(this,r,e)},r.prototype.removeControl=function(r){t.prototype.removeControl.call(this,r)},r.prototype.contains=function(r){return t.prototype.contains.call(this,r)},r.prototype.setControl=function(r,e){t.prototype.setControl.call(this,r,e)},r.prototype.setValue=function(r,o){var n=this;if(e.isObservable(r))return r.subscribe((function(r){return t.prototype.setValue.call(n,r,o)}));t.prototype.setValue.call(this,r,o)},r.prototype.patchValue=function(r,o){var n=this;if(e.isObservable(r))return r.subscribe((function(r){return t.prototype.patchValue.call(n,r,o)}));var i=r;l(r)&&(i=r(this.value)),t.prototype.patchValue.call(this,i,o)},r.prototype.disabledWhile=function(t,r){return m(this,t,r)},r.prototype.enabledWhile=function(t,r){return A(this,t,r)},r.prototype.mergeValidators=function(t){C(this,t)},r.prototype.mergeAsyncValidators=function(t){this.setAsyncValidators(u([this.asyncValidator],p(t))),this.updateValueAndValidity()},r.prototype.markAsTouched=function(r){t.prototype.markAsTouched.call(this,r),this.touchChanges.next(!0)},r.prototype.markAsUntouched=function(r){t.prototype.markAsUntouched.call(this,r),this.touchChanges.next(!1)},r.prototype.markAsPristine=function(r){t.prototype.markAsPristine.call(this,r),this.dirtyChanges.next(!1)},r.prototype.markAsDirty=function(r){t.prototype.markAsDirty.call(this,r),this.dirtyChanges.next(!0)},r.prototype.markAllAsDirty=function(){$(this)},r.prototype.reset=function(r,e){t.prototype.reset.call(this,r,e)},r.prototype.setValidators=function(r){t.prototype.setValidators.call(this,r),t.prototype.updateValueAndValidity.call(this)},r.prototype.setAsyncValidators=function(r){t.prototype.setAsyncValidators.call(this,r),t.prototype.updateValueAndValidity.call(this)},r.prototype.validateOn=function(t){return E(this,t)},r.prototype.hasError=function(r,e){return t.prototype.hasError.call(this,r,e)},r.prototype.setErrors=function(r,e){return void 0===e&&(e={}),t.prototype.setErrors.call(this,r,e)},r.prototype.getError=function(r,e){return t.prototype.getError.call(this,r,e)},r.prototype.hasErrorAndTouched=function(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];return k.apply(void 0,u([this,t],r))},r.prototype.hasErrorAndDirty=function(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];return O.apply(void 0,u([this,t],r))},r.prototype.setEnable=function(t,r){void 0===t&&(t=!0),b(this,t,r)},r.prototype.setDisable=function(t,r){void 0===t&&(t=!0),V(this,t,r)},r}(r.FormGroup);var U=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return a(r,t),r.prototype.group=function(t,r){var e,o=this._reduceControls(t),n=null,i=null;return null!=r&&(!function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(r)?(n=null!=r.validator?r.validator:null,i=null!=r.asyncValidator?r.asyncValidator:null):(n=null!=r.validators?r.validators:null,i=null!=r.asyncValidators?r.asyncValidators:null,e=null!=r.updateOn?r.updateOn:void 0)),new D(o,{asyncValidators:i,updateOn:e,validators:n})},r.prototype.control=function(t,r,e){return new w(t,r,e)},r.prototype.array=function(t,r,e){var o=this,n=t.map((function(t){return o._createControl(t)}));return new x(n,r,e)},r.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new r},token:r,providedIn:"root"}),r=function(t,r,e,o){var n,i=arguments.length,a=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(r,e,a):n(r,e))||a);return i>3&&a&&Object.defineProperty(r,e,a),a}([n.Injectable({providedIn:"root"})],r)}(r.FormBuilder),_=function(){function t(){this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t}();t.ControlValueAccessor=_,t.FormArray=x,t.FormBuilder=U,t.FormControl=w,t.FormGroup=D,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
***************************************************************************** */var i=function(t,r){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(t,r)};function a(t,r){function e(){this.constructor=t}i(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}function s(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,n,i=e.call(t),a=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(n)throw n.error}}return a}function u(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(s(arguments[r]));return t}function p(t){return Array.isArray(t)?t:[t]}function l(t){return null==t}function c(t){return t.getRawValue?t.getRawValue():t.value}function h(t){return e.merge(e.defer((function(){return e.of(c(t))})),t.valueChanges.pipe(o.map((function(){return c(t)}))))}function y(t){return e.merge(e.defer((function(){return e.of(t.disabled)})),t.statusChanges.pipe(o.map((function(){return t.disabled})),o.distinctUntilChanged()))}function d(t){return e.merge(e.defer((function(){return e.of(t.enabled)})),t.statusChanges.pipe(o.map((function(){return t.enabled})),o.distinctUntilChanged()))}function f(t){return e.merge(e.defer((function(){return e.of(t.status)})),t.statusChanges.pipe(o.map((function(){return t.status})),o.distinctUntilChanged()))}function g(t){return e.merge(e.defer((function(){return e.of(t.errors)})),t.valueChanges.pipe(o.map((function(){return t.errors})),o.distinctUntilChanged((function(t,r){return function(t,r){return l(t)||l(r)?t===r:JSON.stringify(t)===JSON.stringify(r)}(t,r)}))))}function b(t,r,e){r?t.enable(e):t.disable(e)}function v(t,r,e){b(t,!r,e)}function V(t,r,e){return r.subscribe((function(r){return v(t,r,e)}))}function m(t,r,e){return r.subscribe((function(r){return b(t,r,e)}))}function A(t,r){t.setValidators(u([t.validator],p(r))),t.updateValueAndValidity()}function C(t,r){return r.subscribe((function(r){t.setErrors(r)}))}function E(t,r,e){return t.hasError(r,e&&0!==e.length?e:void 0)&&t.touched}function k(t,r,e){return t.hasError(r,e&&0!==e.length?e:void 0)&&t.dirty}function O(t){t.markAsDirty({onlySelf:!0}),t._forEachChild((function(t){return t.markAllAsDirty()}))}var $=function(t){function r(r,n,i){var a=t.call(this,r,n,i)||this;return a.controls=r,a.touchChanges=new e.Subject,a.dirtyChanges=new e.Subject,a.touch$=a.touchChanges.asObservable().pipe(o.distinctUntilChanged()),a.dirty$=a.dirtyChanges.asObservable().pipe(o.distinctUntilChanged()),a.value$=h(a),a.disabled$=y(a),a.enabled$=d(a),a.status$=f(a),a.errors$=g(a),a}return a(r,t),r.prototype.select=function(t){return this.value$.pipe(o.map(t),o.distinctUntilChanged())},r.prototype.getRawValue=function(){return t.prototype.getRawValue.call(this)},r.prototype.at=function(r){return t.prototype.at.call(this,r)},r.prototype.setValue=function(r,o){var n=this;if(e.isObservable(r))return r.subscribe((function(r){return t.prototype.setValue.call(n,r,o)}));t.prototype.setValue.call(this,r,o)},r.prototype.patchValue=function(r,o){var n=this;if(e.isObservable(r))return r.subscribe((function(r){return t.prototype.patchValue.call(n,r,o)}));t.prototype.patchValue.call(this,r,o)},r.prototype.push=function(r){return t.prototype.push.call(this,r)},r.prototype.insert=function(r,e){return t.prototype.insert.call(this,r,e)},r.prototype.setControl=function(r,e){return t.prototype.setControl.call(this,r,e)},r.prototype.disabledWhile=function(t,r){return V(this,t,r)},r.prototype.enabledWhile=function(t,r){return m(this,t,r)},r.prototype.mergeValidators=function(t){A(this,t)},r.prototype.mergeAsyncValidators=function(t){this.setAsyncValidators(u([this.asyncValidator],p(t))),this.updateValueAndValidity()},r.prototype.markAsTouched=function(r){t.prototype.markAsTouched.call(this,r),this.touchChanges.next(!0)},r.prototype.markAsUntouched=function(r){t.prototype.markAsUntouched.call(this,r),this.touchChanges.next(!1)},r.prototype.markAsPristine=function(r){t.prototype.markAsPristine.call(this,r),this.dirtyChanges.next(!1)},r.prototype.markAsDirty=function(r){t.prototype.markAsDirty.call(this,r),this.dirtyChanges.next(!0)},r.prototype.markAllAsDirty=function(){O(this)},r.prototype.reset=function(r,e){t.prototype.reset.call(this,r,e)},r.prototype.setValidators=function(r){t.prototype.setValidators.call(this,r),t.prototype.updateValueAndValidity.call(this)},r.prototype.setAsyncValidators=function(r){t.prototype.setAsyncValidators.call(this,r),t.prototype.updateValueAndValidity.call(this)},r.prototype.validateOn=function(t){var r=this;return t.subscribe((function(t){r.setErrors(t)}))},r.prototype.hasError=function(r,e){return t.prototype.hasError.call(this,r,e)},r.prototype.setErrors=function(r,e){return void 0===e&&(e={}),t.prototype.setErrors.call(this,r,e)},r.prototype.getError=function(r,e){return t.prototype.getError.call(this,r,e)},r.prototype.hasErrorAndTouched=function(t,r){return E(this,t,r)},r.prototype.hasErrorAndDirty=function(t,r){return k(this,t,r)},r.prototype.setEnable=function(t,r){void 0===t&&(t=!0),b(this,t,r)},r.prototype.setDisable=function(t,r){void 0===t&&(t=!0),v(this,t,r)},r}(r.FormArray),j=function(t){function r(r,n,i){void 0===r&&(r=null);var a=t.call(this,r,n,i)||this;return a.touchChanges=new e.Subject,a.dirtyChanges=new e.Subject,a.touch$=a.touchChanges.asObservable().pipe(o.distinctUntilChanged()),a.dirty$=a.dirtyChanges.asObservable().pipe(o.distinctUntilChanged()),a.value$=h(a),a.disabled$=y(a),a.enabled$=d(a),a.status$=f(a),a.errors$=g(a),a}return a(r,t),r.prototype.setValue=function(r,o){var n=this;if(e.isObservable(r))return r.subscribe((function(r){return t.prototype.setValue.call(n,r,o)}));t.prototype.setValue.call(this,r,o)},r.prototype.patchValue=function(r,o){var n=this;if(e.isObservable(r))return r.subscribe((function(r){return t.prototype.patchValue.call(n,r,o)}));t.prototype.patchValue.call(this,r,o)},r.prototype.disabledWhile=function(t,r){return V(this,t,r)},r.prototype.enabledWhile=function(t,r){return m(this,t,r)},r.prototype.mergeValidators=function(t){A(this,t)},r.prototype.mergeAsyncValidators=function(t){this.setAsyncValidators(u([this.asyncValidator],p(t))),this.updateValueAndValidity()},r.prototype.markAsTouched=function(r){t.prototype.markAsTouched.call(this,r),this.touchChanges.next(!0)},r.prototype.markAsUntouched=function(r){t.prototype.markAsUntouched.call(this,r),this.touchChanges.next(!1)},r.prototype.markAsPristine=function(r){t.prototype.markAsPristine.call(this,r),this.dirtyChanges.next(!1)},r.prototype.markAsDirty=function(r){t.prototype.markAsDirty.call(this,r),this.dirtyChanges.next(!0)},r.prototype.markAllAsDirty=function(){this.markAsDirty({onlySelf:!0})},r.prototype.reset=function(r,e){void 0===r&&(r=null),t.prototype.reset.call(this,r,e)},r.prototype.setValidators=function(r){t.prototype.setValidators.call(this,r),t.prototype.updateValueAndValidity.call(this)},r.prototype.setAsyncValidators=function(r){t.prototype.setAsyncValidators.call(this,r),t.prototype.updateValueAndValidity.call(this)},r.prototype.validateOn=function(t){return C(this,t)},r.prototype.getError=function(r){return t.prototype.getError.call(this,r)},r.prototype.hasError=function(r){return t.prototype.hasError.call(this,r)},r.prototype.setErrors=function(r,e){return void 0===e&&(e={}),t.prototype.setErrors.call(this,r,e)},r.prototype.hasErrorAndTouched=function(t){return E(this,t)},r.prototype.hasErrorAndDirty=function(t){return k(this,t)},r.prototype.setEnable=function(t,r){void 0===t&&(t=!0),b(this,t,r)},r.prototype.setDisable=function(t,r){void 0===t&&(t=!0),v(this,t,r)},r}(r.FormControl),x=function(t){function r(r,n,i){var a=t.call(this,r,n,i)||this;return a.controls=r,a.touchChanges=new e.Subject,a.dirtyChanges=new e.Subject,a.touch$=a.touchChanges.asObservable().pipe(o.distinctUntilChanged()),a.dirty$=a.dirtyChanges.asObservable().pipe(o.distinctUntilChanged()),a.value$=h(a),a.disabled$=y(a),a.enabled$=d(a),a.status$=f(a),a.errors$=g(a),a}return a(r,t),r.prototype.select=function(t){return function(t,r){return t.value$.pipe(o.map(r),o.distinctUntilChanged())}(this,t)},r.prototype.getRawValue=function(){return t.prototype.getRawValue.call(this)},r.prototype.get=function(r){return t.prototype.get.call(this,r)},r.prototype.getControl=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return this.get(t.join("."))},r.prototype.addControl=function(r,e){t.prototype.addControl.call(this,r,e)},r.prototype.removeControl=function(r){t.prototype.removeControl.call(this,r)},r.prototype.contains=function(r){return t.prototype.contains.call(this,r)},r.prototype.setControl=function(r,e){t.prototype.setControl.call(this,r,e)},r.prototype.setValue=function(r,o){var n=this;if(e.isObservable(r))return r.subscribe((function(r){return t.prototype.setValue.call(n,r,o)}));t.prototype.setValue.call(this,r,o)},r.prototype.patchValue=function(r,o){var n=this;if(e.isObservable(r))return r.subscribe((function(r){return t.prototype.patchValue.call(n,r,o)}));t.prototype.patchValue.call(this,r,o)},r.prototype.disabledWhile=function(t,r){return V(this,t,r)},r.prototype.enabledWhile=function(t,r){return m(this,t,r)},r.prototype.mergeValidators=function(t){A(this,t)},r.prototype.mergeAsyncValidators=function(t){this.setAsyncValidators(u([this.asyncValidator],p(t))),this.updateValueAndValidity()},r.prototype.markAsTouched=function(r){t.prototype.markAsTouched.call(this,r),this.touchChanges.next(!0)},r.prototype.markAsUntouched=function(r){t.prototype.markAsUntouched.call(this,r),this.touchChanges.next(!1)},r.prototype.markAsPristine=function(r){t.prototype.markAsPristine.call(this,r),this.dirtyChanges.next(!1)},r.prototype.markAsDirty=function(r){t.prototype.markAsDirty.call(this,r),this.dirtyChanges.next(!0)},r.prototype.markAllAsDirty=function(){O(this)},r.prototype.reset=function(r,e){t.prototype.reset.call(this,r,e)},r.prototype.setValidators=function(r){t.prototype.setValidators.call(this,r),t.prototype.updateValueAndValidity.call(this)},r.prototype.setAsyncValidators=function(r){t.prototype.setAsyncValidators.call(this,r),t.prototype.updateValueAndValidity.call(this)},r.prototype.validateOn=function(t){return C(this,t)},r.prototype.hasError=function(r,e){return t.prototype.hasError.call(this,r,e)},r.prototype.setErrors=function(r,e){return void 0===e&&(e={}),t.prototype.setErrors.call(this,r,e)},r.prototype.getError=function(r,e){return t.prototype.getError.call(this,r,e)},r.prototype.hasErrorAndTouched=function(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];return E.apply(void 0,u([this,t],r))},r.prototype.hasErrorAndDirty=function(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];return k.apply(void 0,u([this,t],r))},r.prototype.setEnable=function(t,r){void 0===t&&(t=!0),b(this,t,r)},r.prototype.setDisable=function(t,r){void 0===t&&(t=!0),v(this,t,r)},r}(r.FormGroup);var w=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return a(r,t),r.prototype.group=function(t,r){void 0===r&&(r=null);var e,o=this._reduceControls(t),n=null,i=null;return null!=r&&(!function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(r)?(n=null!=r.validator?r.validator:null,i=null!=r.asyncValidator?r.asyncValidator:null):(n=null!=r.validators?r.validators:null,i=null!=r.asyncValidators?r.asyncValidators:null,e=null!=r.updateOn?r.updateOn:void 0)),new x(o,{asyncValidators:i,updateOn:e,validators:n})},r.prototype.control=function(t,r,e){return void 0===t&&(t=null),new j(t,r,e)},r.prototype.array=function(t,r,e){var o=this,n=t.map((function(t){return o._createControl(t)}));return new $(n,r,e)},r.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new r},token:r,providedIn:"root"}),r=function(t,r,e,o){var n,i=arguments.length,a=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(r,e,a):n(r,e))||a);return i>3&&a&&Object.defineProperty(r,e,a),a}([n.Injectable({providedIn:"root"})],r)}(r.FormBuilder),D=function(){function t(){this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t}();t.ControlValueAccessor=D,t.FormArray=$,t.FormBuilder=w,t.FormControl=j,t.FormGroup=x,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngneat-reactive-forms.umd.min.js.map |
@@ -72,2 +72,2 @@ import { defer, merge, of } from 'rxjs'; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbC1hY3Rpb25zLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nbmVhdC9yZWFjdGl2ZS1mb3Jtcy8iLCJzb3VyY2VzIjpbImxpYi9jb250cm9sLWFjdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLEtBQUssRUFBRSxLQUFLLEVBQWMsRUFBRSxFQUFnQixNQUFNLE1BQU0sQ0FBQztBQUNsRSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsR0FBRyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFLM0QsT0FBTyxFQUFFLFdBQVcsRUFBRSxLQUFLLEVBQUUsTUFBTSxTQUFTLENBQUM7QUFFN0MsU0FBUyxlQUFlLENBQUksT0FBMkI7SUFDckQsSUFBSyxPQUFlLENBQUMsV0FBVyxFQUFFO1FBQ2hDLE9BQVEsT0FBZSxDQUFDLFdBQVcsRUFBRSxDQUFDO0tBQ3ZDO0lBQ0QsT0FBTyxPQUFPLENBQUMsS0FBSyxDQUFDO0FBQ3ZCLENBQUM7QUFFRCxTQUFTLGFBQWEsQ0FBQyxDQUEwQixFQUFFLENBQTBCO0lBQzNFLElBQUksS0FBSyxDQUFDLENBQUMsQ0FBQyxJQUFJLEtBQUssQ0FBQyxDQUFDLENBQUMsRUFBRTtRQUN4QixPQUFPLENBQUMsS0FBSyxDQUFDLENBQUM7S0FDaEI7SUFDRCxPQUFPLElBQUksQ0FB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biAgcmV0dXJuIGhhc0Vycm9yICYmIGNvbnRyb2wudG91Y2hlZDtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGhhc0Vycm9yQW5kRGlydHkoY29udHJvbDogQWJzdHJhY3RDb250cm9sLCBlcnJvcjogc3RyaW5nLCBwYXRoPzogQ29udHJvbFBhdGgpOiBib29sZWFuIHtcbiAgY29uc3QgaGFzRXJyb3IgPSBjb250cm9sLmhhc0Vycm9yKGVycm9yLCAhcGF0aCB8fCBwYXRoLmxlbmd0aCA9PT0gMCA/IHVuZGVmaW5lZCA6IHBhdGgpO1xuICByZXR1cm4gaGFzRXJyb3IgJiYgY29udHJvbC5kaXJ0eTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIG1hcmtBbGxEaXJ0eTxUPihjb250cm9sOiBGb3JtQXJyYXk8VD4gfCBGb3JtR3JvdXApOiB2b2lkIHtcbiAgY29udHJvbC5tYXJrQXNEaXJ0eSh7IG9ubHlTZWxmOiB0cnVlIH0pO1xuICAoY29udHJvbCBhcyBhbnkpLl9mb3JFYWNoQ2hpbGQoY29udHJvbCA9PiBjb250cm9sLm1hcmtBbGxBc0RpcnR5KCkpO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gc2VsZWN0Q29udHJvbFZhbHVlJDxULCBSPihcbiAgY29udHJvbDogRm9ybUdyb3VwIHwgRm9ybUFycmF5IHwgRm9ybUNvbnRyb2wsXG4gIG1hcEZuOiAoc3RhdGU6IFQgfCBUW10pID0+IFJcbik6IE9ic2VydmFibGU8Uj4ge1xuICByZXR1cm4gKGNvbnRyb2wudmFsdWUkIGFzIE9ic2VydmFibGU8YW55PikucGlwZShtYXAobWFwRm4pLCBkaXN0aW5jdFVudGlsQ2hhbmdlZCgpKTtcbn1cbiJdfQ== |
@@ -5,3 +5,3 @@ import { FormArray as NgFormArray } from '@angular/forms'; | ||
import { controlDisabled$, controlDisabledWhile, controlEnabled$, controlEnabledWhile, controlErrorChanges$, controlStatusChanges$, controlValueChanges$, disableControl, enableControl, hasErrorAndDirty, hasErrorAndTouched, markAllDirty, mergeControlValidators } from './control-actions'; | ||
import { coerceArray, isFunction } from './utils'; | ||
import { coerceArray } from './utils'; | ||
export class FormArray extends NgFormArray { | ||
@@ -16,6 +16,6 @@ constructor(controls, validatorOrOpts, asyncValidator) { | ||
this.value$ = controlValueChanges$(this); | ||
this.disabledChanges$ = controlDisabled$(this); | ||
this.enabledChanges$ = controlEnabled$(this); | ||
this.statusChanges$ = controlStatusChanges$(this); | ||
this.errorChanges$ = controlErrorChanges$(this); | ||
this.disabled$ = controlDisabled$(this); | ||
this.enabled$ = controlEnabled$(this); | ||
this.status$ = controlStatusChanges$(this); | ||
this.errors$ = controlErrorChanges$(this); | ||
} | ||
@@ -33,19 +33,11 @@ select(mapFn) { | ||
if (isObservable(valueOrObservable)) { | ||
return valueOrObservable.subscribe(value => super.setValue(value, options)); | ||
return valueOrObservable.subscribe((value) => super.setValue(value, options)); | ||
} | ||
else { | ||
super.setValue(valueOrObservable, options); | ||
} | ||
super.setValue(valueOrObservable, options); | ||
} | ||
patchValue(valueOrObservable, options) { | ||
if (isObservable(valueOrObservable)) { | ||
return valueOrObservable.subscribe(value => super.patchValue(value, options)); | ||
return valueOrObservable.subscribe((value) => super.patchValue(value, options)); | ||
} | ||
else { | ||
let value = valueOrObservable; | ||
if (isFunction(valueOrObservable)) { | ||
value = valueOrObservable(this.value); | ||
} | ||
super.patchValue(value, options); | ||
} | ||
super.patchValue(valueOrObservable, options); | ||
} | ||
@@ -131,2 +123,2 @@ push(control) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybUFycmF5LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nbmVhdC9yZWFjdGl2ZS1mb3Jtcy8iLCJzb3VyY2VzIjpbImxpYi9mb3JtQXJyYXkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVM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vbnRyb2xQYXRoKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIGhhc0Vycm9yQW5kVG91Y2hlZCh0aGlzLCBlcnJvckNvZGUsIHBhdGgpO1xuICB9XG5cbiAgaGFzRXJyb3JBbmREaXJ0eShlcnJvckNvZGU6IEV4dHJhY3RTdHJpbmdzPEU+LCBwYXRoPzogQ29udHJvbFBhdGgpOiBib29sZWFuIHtcbiAgICByZXR1cm4gaGFzRXJyb3JBbmREaXJ0eSh0aGlzLCBlcnJvckNvZGUsIHBhdGgpO1xuICB9XG5cbiAgc2V0RW5hYmxlKGVuYWJsZSA9IHRydWUsIG9wdHM/OiBDb250cm9sRXZlbnRPcHRpb25zKSB7XG4gICAgZW5hYmxlQ29udHJvbCh0aGlzLCBlbmFibGUsIG9wdHMpO1xuICB9XG5cbiAgc2V0RGlzYWJsZShkaXNhYmxlID0gdHJ1ZSwgb3B0cz86IENvbnRyb2xFdmVudE9wdGlvbnMpIHtcbiAgICBkaXNhYmxlQ29udHJvbCh0aGlzLCBkaXNhYmxlLCBvcHRzKTtcbiAgfVxufVxuIl19 |
@@ -14,3 +14,3 @@ import { __decorate } from "tslib"; | ||
let FormBuilder = class FormBuilder extends NgFormBuilder { | ||
group(controlsConfig, options) { | ||
group(controlsConfig, options = null) { | ||
const controls = this._reduceControls(controlsConfig); | ||
@@ -35,3 +35,3 @@ let validators = null; | ||
} | ||
control(formState, validatorOrOpts, asyncValidator) { | ||
control(formState = null, validatorOrOpts, asyncValidator) { | ||
return new FormControl(formState, validatorOrOpts, asyncValidator); | ||
@@ -49,2 +49,2 @@ } | ||
export { FormBuilder }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybUJ1aWxkZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmduZWF0L3JlYWN0aXZlLWZvcm1zLyIsInNvdXJjZXMiOlsibGliL2Zvcm1CdWlsZGVyLnRzIl0sIm5hbWVzIjpbXSwibW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uICAgIHJldHVybiBuZXcgRm9ybUNvbnRyb2woZm9ybVN0YXRlLCB2YWxpZGF0b3JPck9wdHMsIGFzeW5jVmFsaWRhdG9yKTtcbiAgfVxuXG4gIGFycmF5PFQgPSBhbnksIEUgZXh0ZW5kcyBvYmplY3QgPSBhbnk+KFxuICAgIGNvbnRyb2xzQ29uZmlnOiBGYkNvbnRyb2xDb25maWc8VCwgRT5bXSxcbiAgICB2YWxpZGF0b3JPck9wdHM/OiBWYWxpZGF0b3JPck9wdHMsXG4gICAgYXN5bmNWYWxpZGF0b3I/OiBBc3luY1ZhbGlkYXRvclxuICApOiBGb3JtQXJyYXk8VCwgRT4ge1xuICAgIGNvbnN0IGNvbnRyb2xzID0gY29udHJvbHNDb25maWcubWFwKGMgPT4gKHRoaXMgYXMgYW55KS5fY3JlYXRlQ29udHJvbChjKSk7XG4gICAgcmV0dXJuIG5ldyBGb3JtQXJyYXkoY29udHJvbHMsIHZhbGlkYXRvck9yT3B0cywgYXN5bmNWYWxpZGF0b3IgYXMgYW55KTtcbiAgfVxufVxuIl19 |
import { FormControl as NgFormControl } from '@angular/forms'; | ||
import { isObservable, Subject } from 'rxjs'; | ||
import { distinctUntilChanged } from 'rxjs/operators'; | ||
import { controlDisabled$, controlDisabledWhile, controlEnabled$, controlEnabledWhile, controlErrorChanges$, controlStatusChanges$, controlValueChanges$, disableControl, enableControl, hasErrorAndDirty, hasErrorAndTouched, mergeControlValidators, selectControlValue$, validateControlOn } from './control-actions'; | ||
import { coerceArray, isFunction } from './utils'; | ||
import { controlDisabled$, controlDisabledWhile, controlEnabled$, controlEnabledWhile, controlErrorChanges$, controlStatusChanges$, controlValueChanges$, disableControl, enableControl, hasErrorAndDirty, hasErrorAndTouched, mergeControlValidators, validateControlOn } from './control-actions'; | ||
import { coerceArray } from './utils'; | ||
export class FormControl extends NgFormControl { | ||
constructor(formState, validatorOrOpts, asyncValidator) { | ||
constructor(formState = null, validatorOrOpts, asyncValidator) { | ||
super(formState, validatorOrOpts, asyncValidator); | ||
@@ -19,5 +19,2 @@ this.touchChanges = new Subject(); | ||
} | ||
select(mapFn) { | ||
return selectControlValue$(this, mapFn); | ||
} | ||
setValue(valueOrObservable, options) { | ||
@@ -27,5 +24,3 @@ if (isObservable(valueOrObservable)) { | ||
} | ||
else { | ||
super.setValue(valueOrObservable, options); | ||
} | ||
super.setValue(valueOrObservable, options); | ||
} | ||
@@ -36,9 +31,3 @@ patchValue(valueOrObservable, options) { | ||
} | ||
else { | ||
let value = valueOrObservable; | ||
if (isFunction(valueOrObservable)) { | ||
value = valueOrObservable(this.value); | ||
} | ||
super.patchValue(value, options); | ||
} | ||
super.patchValue(valueOrObservable, options); | ||
} | ||
@@ -77,3 +66,3 @@ disabledWhile(observable, options) { | ||
} | ||
reset(formState, options) { | ||
reset(formState = null, options) { | ||
super.reset(formState, options); | ||
@@ -114,2 +103,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybUNvbnRyb2wuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmduZWF0L3JlYWN0aXZlLWZvcm1zLyIsInNvdXJjZXMiOlsibGliL2Zvcm1Db250cm9sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLElBQUksYUFBYSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDOUQsT0FBTyxFQUFFLFlBQVksRUFBYyxPQUFPLEVBQWdCLE1BQU0sTUFBTSxDQUFDO0FBQ3ZFLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3RELE9BQU8sRUFDTCxnQkFBZ0IsRUFDaEIsb0JBQW9CLEVBQ3BCLGVBQWUsRUFDZixtQkFBbUIsRUFDbkIsb0JBQW9CLEVBQ3BCLHFCQUFxQixFQUNyQixvQkFBb0IsRUFDcEIsY0FBYyxFQUNkLGFBQWEsRUFDYixnQ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wgbnVsbCwgb3B0czogRW1pdEV2ZW50ID0ge30pIHtcbiAgICByZXR1cm4gc3VwZXIuc2V0RXJyb3JzKGVycm9ycywgb3B0cyk7XG4gIH1cblxuICBoYXNFcnJvckFuZFRvdWNoZWQoZXJyb3I6IEV4dHJhY3RTdHJpbmdzPEU+KTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIGhhc0Vycm9yQW5kVG91Y2hlZCh0aGlzLCBlcnJvcik7XG4gIH1cblxuICBoYXNFcnJvckFuZERpcnR5KGVycm9yOiBFeHRyYWN0U3RyaW5nczxFPik6IGJvb2xlYW4ge1xuICAgIHJldHVybiBoYXNFcnJvckFuZERpcnR5KHRoaXMsIGVycm9yKTtcbiAgfVxuXG4gIHNldEVuYWJsZShlbmFibGUgPSB0cnVlLCBvcHRzPzogQ29udHJvbEV2ZW50T3B0aW9ucykge1xuICAgIGVuYWJsZUNvbnRyb2wodGhpcywgZW5hYmxlLCBvcHRzKTtcbiAgfVxuXG4gIHNldERpc2FibGUoZGlzYWJsZSA9IHRydWUsIG9wdHM/OiBDb250cm9sRXZlbnRPcHRpb25zKSB7XG4gICAgZGlzYWJsZUNvbnRyb2wodGhpcywgZGlzYWJsZSwgb3B0cyk7XG4gIH1cbn1cbiJdfQ== |
@@ -5,3 +5,3 @@ import { FormGroup as NgFormGroup } from '@angular/forms'; | ||
import { controlDisabled$, controlDisabledWhile, controlEnabled$, controlEnabledWhile, controlErrorChanges$, controlStatusChanges$, controlValueChanges$, disableControl, enableControl, hasErrorAndDirty, hasErrorAndTouched, markAllDirty, mergeControlValidators, selectControlValue$, validateControlOn } from './control-actions'; | ||
import { coerceArray, isFunction } from './utils'; | ||
import { coerceArray } from './utils'; | ||
export class FormGroup extends NgFormGroup { | ||
@@ -49,17 +49,9 @@ constructor(controls, validatorOrOpts, asyncValidator) { | ||
} | ||
else { | ||
super.setValue(valueOrObservable, options); | ||
} | ||
super.setValue(valueOrObservable, options); | ||
} | ||
patchValue(valueOrObservable, options) { | ||
if (isObservable(valueOrObservable)) { | ||
return valueOrObservable.subscribe(value => super.patchValue(value, options)); | ||
return valueOrObservable.subscribe((value) => super.patchValue(value, options)); | ||
} | ||
else { | ||
let value = valueOrObservable; | ||
if (isFunction(valueOrObservable)) { | ||
value = valueOrObservable(this.value); | ||
} | ||
super.patchValue(value, options); | ||
} | ||
super.patchValue(valueOrObservable, options); | ||
} | ||
@@ -134,2 +126,2 @@ disabledWhile(observable, options) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybUdyb3VwLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nbmVhdC9yZWFjdGl2ZS1mb3Jtcy8iLCJzb3VyY2VzIjpbImxpYi9mb3JtR3JvdXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsSUFBSSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUMxRCxPQUFPLEVBQUUsWUFBWSxFQUFjLE9BQU8sRUFBZ0IsTUFBTSxNQUFNLENBQUM7QUFDdkUsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDdEQsT0FBTyxFQUNMLGdCQUFnQixFQUNoQixvQkFBb0IsRUFDcEIsZUFBZSxFQUNmLG1CQUFtQixFQUNuQixvQkFBb0IsRUFDcEIscUJBQXFCLEVBQ3JCLG9CQUFvQixFQUNwQixjQUFjLEVBQ2QsYUFBYSxFQUNiLGdCQUFnQixFQUNoQixrQkFBa0IsRUFDbEIsWUFBWSxFQUNaLHNCQUFzQixFQUN0QixtQkFBbUIsRUFDbkIsaUJBQWlCLEVBQ2xCLE1BQU0sbUJBQW1CLENBQUM7QUFnQjNCLE9BQU8sRUFBRSxXQUFXLEVBQUUsVUFBVSxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBRWxELE1BQU0sT0FBTyxTQUF1RCxTQUFRLFdBQVc7S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IHwgQWJzdHJhY3RDb250cm9sT3B0aW9ucyk/LFxuICAoQXN5bmNWYWxpZGF0b3JGbiB8IEFzeW5jVmFsaWRhdG9yRm5bXSk/XG5dXG4gIHwgRm9ybUNvbnRyb2w8VCwgVj47XG5cbmV4cG9ydCBpbnRlcmZhY2UgTGVnYWN5Q29udHJvbE9wdGlvbnMge1xuICB2YWxpZGF0b3I/OiBWYWxpZGF0b3JGbiB8IFZhbGlkYXRvckZuW10gfCBudWxsO1xuICBhc3luY1ZhbGlkYXRvcj86IEFzeW5jVmFsaWRhdG9yRm4gfCBBc3luY1ZhbGlkYXRvckZuW10gfCBudWxsO1xufVxuIl19 |
@@ -5,2 +5,2 @@ /** | ||
export * from './public-api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmduZWF0LXJlYWN0aXZlLWZvcm1zLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nbmVhdC9yZWFjdGl2ZS1mb3Jtcy8iLCJzb3VyY2VzIjpbIm5nbmVhdC1yZWFjdGl2ZS1mb3Jtcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuXG5leHBvcnQge0V4dHJhY3RBYnN0cmFjdENvbnRyb2wgYXMgybViLE9yQm94ZWRWYWx1ZSBhcyDJtWF9IGZyb20gJy4vbGliL3R5cGVzJzsiXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmduZWF0LXJlYWN0aXZlLWZvcm1zLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nbmVhdC9yZWFjdGl2ZS1mb3Jtcy8iLCJzb3VyY2VzIjpbIm5nbmVhdC1yZWFjdGl2ZS1mb3Jtcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuXG5leHBvcnQge0FzeW5jVmFsaWRhdG9yIGFzIMm1YixDb250cm9sVHlwZSBhcyDJtWMsRm9ybUNvbnRyb2xTdGF0ZSBhcyDJtWQsVmFsaWRhdG9yT3JPcHRzIGFzIMm1YX0gZnJvbSAnLi9saWIvdHlwZXMnOyJdfQ== |
@@ -6,2 +6,2 @@ export { FormArray } from './lib/formArray'; | ||
export { ControlValueAccessor } from './lib/controlValueAccessor'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ25lYXQvcmVhY3RpdmUtZm9ybXMvIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUM1QyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDaEQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzVDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUVoRCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEZvcm1BcnJheSB9IGZyb20gJy4vbGliL2Zvcm1Bc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b250cm9sOiBGb3JtR3JvdXAgfCBGb3JtQXJyYXkgfCBGb3JtQ29udHJvbCxcbiAgbWFwRm46IChzdGF0ZTogVCB8IFRbXSkgPT4gUlxuKTogT2JzZXJ2YWJsZTxSPiB7XG4gIHJldHVybiAoY29udHJvbC52YWx1ZSQgYXMgT2JzZXJ2YWJsZTxhbnk+KS5waXBlKG1hcChtYXBGbiksIGRpc3RpbmN0VW50aWxDaGFuZ2VkKCkpO1xufVxuIl19 |
@@ -6,3 +6,3 @@ import { __extends, __read, __spread } from "tslib"; | ||
import { controlDisabled$, controlDisabledWhile, controlEnabled$, controlEnabledWhile, controlErrorChanges$, controlStatusChanges$, controlValueChanges$, disableControl, enableControl, hasErrorAndDirty, hasErrorAndTouched, markAllDirty, mergeControlValidators } from './control-actions'; | ||
import { coerceArray, isFunction } from './utils'; | ||
import { coerceArray } from './utils'; | ||
var FormArray = /** @class */ (function (_super) { | ||
@@ -18,6 +18,6 @@ __extends(FormArray, _super); | ||
_this.value$ = controlValueChanges$(_this); | ||
_this.disabledChanges$ = controlDisabled$(_this); | ||
_this.enabledChanges$ = controlEnabled$(_this); | ||
_this.statusChanges$ = controlStatusChanges$(_this); | ||
_this.errorChanges$ = controlErrorChanges$(_this); | ||
_this.disabled$ = controlDisabled$(_this); | ||
_this.enabled$ = controlEnabled$(_this); | ||
_this.status$ = controlStatusChanges$(_this); | ||
_this.errors$ = controlErrorChanges$(_this); | ||
return _this; | ||
@@ -39,5 +39,3 @@ } | ||
} | ||
else { | ||
_super.prototype.setValue.call(this, valueOrObservable, options); | ||
} | ||
_super.prototype.setValue.call(this, valueOrObservable, options); | ||
}; | ||
@@ -49,9 +47,3 @@ FormArray.prototype.patchValue = function (valueOrObservable, options) { | ||
} | ||
else { | ||
var value = valueOrObservable; | ||
if (isFunction(valueOrObservable)) { | ||
value = valueOrObservable(this.value); | ||
} | ||
_super.prototype.patchValue.call(this, value, options); | ||
} | ||
_super.prototype.patchValue.call(this, valueOrObservable, options); | ||
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OiBib29sZWFuIHtcbiAgICByZXR1cm4gaGFzRXJyb3JBbmREaXJ0eSh0aGlzLCBlcnJvckNvZGUsIHBhdGgpO1xuICB9XG5cbiAgc2V0RW5hYmxlKGVuYWJsZSA9IHRydWUsIG9wdHM/OiBDb250cm9sRXZlbnRPcHRpb25zKSB7XG4gICAgZW5hYmxlQ29udHJvbCh0aGlzLCBlbmFibGUsIG9wdHMpO1xuICB9XG5cbiAgc2V0RGlzYWJsZShkaXNhYmxlID0gdHJ1ZSwgb3B0cz86IENvbnRyb2xFdmVudE9wdGlvbnMpIHtcbiAgICBkaXNhYmxlQ29udHJvbCh0aGlzLCBkaXNhYmxlLCBvcHRzKTtcbiAgfVxufVxuIl19 |
@@ -19,2 +19,3 @@ import { __decorate, __extends } from "tslib"; | ||
FormBuilder.prototype.group = function (controlsConfig, options) { | ||
if (options === void 0) { options = null; } | ||
var controls = this._reduceControls(controlsConfig); | ||
@@ -40,2 +41,3 @@ var validators = null; | ||
FormBuilder.prototype.control = function (formState, validatorOrOpts, asyncValidator) { | ||
if (formState === void 0) { formState = null; } | ||
return new FormControl(formState, validatorOrOpts, asyncValidator); | ||
@@ -55,2 +57,2 @@ }; | ||
export { FormBuilder }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybUJ1aWxkZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmduZWF0L3JlYWN0aXZlLWZvcm1zLyIsInNvdXJjZXMiOlsibGliL2Zvcm1CdWlsZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxXQUFXLElBQUksYUFBYSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDOUQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUN4QyxPQUFPLEVBQ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3luY1ZhbGlkYXRvclxuICApOiBGb3JtQ29udHJvbDxULCBFPiB7XG4gICAgcmV0dXJuIG5ldyBGb3JtQ29udHJvbChmb3JtU3RhdGUsIHZhbGlkYXRvck9yT3B0cywgYXN5bmNWYWxpZGF0b3IpO1xuICB9XG5cbiAgYXJyYXk8VCA9IGFueSwgRSBleHRlbmRzIG9iamVjdCA9IGFueT4oXG4gICAgY29udHJvbHNDb25maWc6IEZiQ29udHJvbENvbmZpZzxULCBFPltdLFxuICAgIHZhbGlkYXRvck9yT3B0cz86IFZhbGlkYXRvck9yT3B0cyxcbiAgICBhc3luY1ZhbGlkYXRvcj86IEFzeW5jVmFsaWRhdG9yXG4gICk6IEZvcm1BcnJheTxULCBFPiB7XG4gICAgY29uc3QgY29udHJvbHMgPSBjb250cm9sc0NvbmZpZy5tYXAoYyA9PiAodGhpcyBhcyBhbnkpLl9jcmVhdGVDb250cm9sKGMpKTtcbiAgICByZXR1cm4gbmV3IEZvcm1BcnJheShjb250cm9scywgdmFsaWRhdG9yT3JPcHRzLCBhc3luY1ZhbGlkYXRvciBhcyBhbnkpO1xuICB9XG59XG4iXX0= |
@@ -5,7 +5,8 @@ import { __extends, __read, __spread } from "tslib"; | ||
import { distinctUntilChanged } from 'rxjs/operators'; | ||
import { controlDisabled$, controlDisabledWhile, controlEnabled$, controlEnabledWhile, controlErrorChanges$, controlStatusChanges$, controlValueChanges$, disableControl, enableControl, hasErrorAndDirty, hasErrorAndTouched, mergeControlValidators, selectControlValue$, validateControlOn } from './control-actions'; | ||
import { coerceArray, isFunction } from './utils'; | ||
import { controlDisabled$, controlDisabledWhile, controlEnabled$, controlEnabledWhile, controlErrorChanges$, controlStatusChanges$, controlValueChanges$, disableControl, enableControl, hasErrorAndDirty, hasErrorAndTouched, mergeControlValidators, validateControlOn } from './control-actions'; | ||
import { coerceArray } from './utils'; | ||
var FormControl = /** @class */ (function (_super) { | ||
__extends(FormControl, _super); | ||
function FormControl(formState, validatorOrOpts, asyncValidator) { | ||
if (formState === void 0) { formState = null; } | ||
var _this = _super.call(this, formState, validatorOrOpts, asyncValidator) || this; | ||
@@ -23,5 +24,2 @@ _this.touchChanges = new Subject(); | ||
} | ||
FormControl.prototype.select = function (mapFn) { | ||
return selectControlValue$(this, mapFn); | ||
}; | ||
FormControl.prototype.setValue = function (valueOrObservable, options) { | ||
@@ -32,5 +30,3 @@ var _this = this; | ||
} | ||
else { | ||
_super.prototype.setValue.call(this, valueOrObservable, options); | ||
} | ||
_super.prototype.setValue.call(this, valueOrObservable, options); | ||
}; | ||
@@ -42,9 +38,3 @@ FormControl.prototype.patchValue = function (valueOrObservable, options) { | ||
} | ||
else { | ||
var value = valueOrObservable; | ||
if (isFunction(valueOrObservable)) { | ||
value = valueOrObservable(this.value); | ||
} | ||
_super.prototype.patchValue.call(this, value, options); | ||
} | ||
_super.prototype.patchValue.call(this, valueOrObservable, options); | ||
}; | ||
@@ -84,2 +74,3 @@ FormControl.prototype.disabledWhile = function (observable, options) { | ||
FormControl.prototype.reset = function (formState, options) { | ||
if (formState === void 0) { formState = null; } | ||
_super.prototype.reset.call(this, formState, options); | ||
@@ -125,2 +116,2 @@ }; | ||
export { FormControl }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybUNvbnRyb2wuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmduZWF0L3JlYWN0aXZlLWZvcm1zLyIsInNvdXJjZXMiOlsibGliL2Zvcm1Db250cm9sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsV0FBVyxJQUFJLGFBQWEsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzlELE9BQU8sRUFBRSxZQUFZLEVBQWMsT0FBTyxFQUFnQixNQUFNLE1BQU0sQ0FBQztBQUN2RSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUN0RCxPQUFPLEVB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xuICB9XG5cbiAgZ2V0RXJyb3I8SyBleHRlbmRzIEV4dHJhY3RTdHJpbmdzPEU+PihlcnJvckNvZGU6IEspOiBFW0tdIHwgbnVsbCB7XG4gICAgcmV0dXJuIHN1cGVyLmdldEVycm9yKGVycm9yQ29kZSkgYXMgRVtLXSB8IG51bGw7XG4gIH1cblxuICBoYXNFcnJvcjxLIGV4dGVuZHMgRXh0cmFjdFN0cmluZ3M8RT4+KGVycm9yQ29kZTogSykge1xuICAgIHJldHVybiBzdXBlci5oYXNFcnJvcihlcnJvckNvZGUpO1xuICB9XG5cbiAgc2V0RXJyb3JzKGVycm9yczogUGFydGlhbDxFPiB8IG51bGwsIG9wdHM6IEVtaXRFdmVudCA9IHt9KSB7XG4gICAgcmV0dXJuIHN1cGVyLnNldEVycm9ycyhlcnJvcnMsIG9wdHMpO1xuICB9XG5cbiAgaGFzRXJyb3JBbmRUb3VjaGVkKGVycm9yOiBFeHRyYWN0U3RyaW5nczxFPik6IGJvb2xlYW4ge1xuICAgIHJldHVybiBoYXNFcnJvckFuZFRvdWNoZWQodGhpcywgZXJyb3IpO1xuICB9XG5cbiAgaGFzRXJyb3JBbmREaXJ0eShlcnJvcjogRXh0cmFjdFN0cmluZ3M8RT4pOiBib29sZWFuIHtcbiAgICByZXR1cm4gaGFzRXJyb3JBbmREaXJ0eSh0aGlzLCBlcnJvcik7XG4gIH1cblxuICBzZXRFbmFibGUoZW5hYmxlID0gdHJ1ZSwgb3B0cz86IENvbnRyb2xFdmVudE9wdGlvbnMpIHtcbiAgICBlbmFibGVDb250cm9sKHRoaXMsIGVuYWJsZSwgb3B0cyk7XG4gIH1cblxuICBzZXREaXNhYmxlKGRpc2FibGUgPSB0cnVlLCBvcHRzPzogQ29udHJvbEV2ZW50T3B0aW9ucykge1xuICAgIGRpc2FibGVDb250cm9sKHRoaXMsIGRpc2FibGUsIG9wdHMpO1xuICB9XG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uI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yQW5kRGlydHkodGhpcywgZXJyb3IpO1xuICB9XG5cbiAgc2V0RW5hYmxlKGVuYWJsZSA9IHRydWUsIG9wdHM/OiBDb250cm9sRXZlbnRPcHRpb25zKSB7XG4gICAgZW5hYmxlQ29udHJvbCh0aGlzLCBlbmFibGUsIG9wdHMpO1xuICB9XG5cbiAgc2V0RGlzYWJsZShkaXNhYmxlID0gdHJ1ZSwgb3B0cz86IENvbnRyb2xFdmVudE9wdGlvbnMpIHtcbiAgICBkaXNhYmxlQ29udHJvbCh0aGlzLCBkaXNhYmxlLCBvcHRzKTtcbiAgfVxufVxuIl19 |
@@ -6,3 +6,3 @@ import { __extends, __read, __spread } from "tslib"; | ||
import { controlDisabled$, controlDisabledWhile, controlEnabled$, controlEnabledWhile, controlErrorChanges$, controlStatusChanges$, controlValueChanges$, disableControl, enableControl, hasErrorAndDirty, hasErrorAndTouched, markAllDirty, mergeControlValidators, selectControlValue$, validateControlOn } from './control-actions'; | ||
import { coerceArray, isFunction } from './utils'; | ||
import { coerceArray } from './utils'; | ||
var FormGroup = /** @class */ (function (_super) { | ||
@@ -57,5 +57,3 @@ __extends(FormGroup, _super); | ||
} | ||
else { | ||
_super.prototype.setValue.call(this, valueOrObservable, options); | ||
} | ||
_super.prototype.setValue.call(this, valueOrObservable, options); | ||
}; | ||
@@ -67,9 +65,3 @@ FormGroup.prototype.patchValue = function (valueOrObservable, options) { | ||
} | ||
else { | ||
var value = valueOrObservable; | ||
if (isFunction(valueOrObservable)) { | ||
value = valueOrObservable(this.value); | ||
} | ||
_super.prototype.patchValue.call(this, value, options); | ||
} | ||
_super.prototype.patchValue.call(this, valueOrObservable, options); | ||
}; | ||
@@ -157,2 +149,2 @@ FormGroup.prototype.disabledWhile = function (observable, options) { | ||
export { FormGroup }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybUdyb3VwLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nbmVhdC9yZWFj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mb3Jtcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuXG5leHBvcnQge0V4dHJhY3RBYnN0cmFjdENvbnRyb2wgYXMgybViLE9yQm94ZWRWYWx1ZSBhcyDJtWF9IGZyb20gJy4vbGliL3R5cGVzJzsiXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmduZWF0LXJlYWN0aXZlLWZvcm1zLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nbmVhdC9yZWFjdGl2ZS1mb3Jtcy8iLCJzb3VyY2VzIjpbIm5nbmVhdC1yZWFjdGl2ZS1mb3Jtcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuXG5leHBvcnQge0FzeW5jVmFsaWRhdG9yIGFzIMm1YixDb250cm9sVHlwZSBhcyDJtWMsRm9ybUNvbnRyb2xTdGF0ZSBhcyDJtWQsVmFsaWRhdG9yT3JPcHRzIGFzIMm1YX0gZnJvbSAnLi9saWIvdHlwZXMnOyJdfQ== |
@@ -6,2 +6,2 @@ export { FormArray } from './lib/formArray'; | ||
export { ControlValueAccessor } from './lib/controlValueAccessor'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJv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aWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUM1QyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDaEQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzVDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUVoRCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEZvcm1BcnJheSB9IGZyb20gJy4vbGliL2Zvcm1BcnJheSc7XG5leHBvcnQgeyBGb3JtQ29udHJvbCB9IGZyb20gJy4vbGliL2Zvcm1Db250cm9sJztcbmV4cG9ydCB7IEZvcm1Hcm91cCB9IGZyb20gJy4vbGliL2Zvcm1Hcm91cCc7XG5leHBvcnQgeyBGb3JtQnVpbGRlciB9IGZyb20gJy4vbGliL2Zvcm1CdWlsZGVyJztcbmV4cG9ydCB7IFZhbGlkYXRvckZuLCBBc3luY1ZhbGlkYXRvckZuLCBOZ1ZhbGlkYXRvcnNFcnJvcnMgfSBmcm9tICcuL2xpYi90eXBlcyc7XG5leHBvcnQgeyBDb250cm9sVmFsdWVBY2Nlc3NvciB9IGZyb20gJy4vbGliL2NvbnRyb2xWYWx1ZUFjY2Vzc29yJztcbiJdfQ== |
@@ -95,6 +95,6 @@ import { FormArray as FormArray$1, FormControl as FormControl$1, FormGroup as FormGroup$1, FormBuilder as FormBuilder$1 } from '@angular/forms'; | ||
this.value$ = controlValueChanges$(this); | ||
this.disabledChanges$ = controlDisabled$(this); | ||
this.enabledChanges$ = controlEnabled$(this); | ||
this.statusChanges$ = controlStatusChanges$(this); | ||
this.errorChanges$ = controlErrorChanges$(this); | ||
this.disabled$ = controlDisabled$(this); | ||
this.enabled$ = controlEnabled$(this); | ||
this.status$ = controlStatusChanges$(this); | ||
this.errors$ = controlErrorChanges$(this); | ||
} | ||
@@ -112,19 +112,11 @@ select(mapFn) { | ||
if (isObservable(valueOrObservable)) { | ||
return valueOrObservable.subscribe(value => super.setValue(value, options)); | ||
return valueOrObservable.subscribe((value) => super.setValue(value, options)); | ||
} | ||
else { | ||
super.setValue(valueOrObservable, options); | ||
} | ||
super.setValue(valueOrObservable, options); | ||
} | ||
patchValue(valueOrObservable, options) { | ||
if (isObservable(valueOrObservable)) { | ||
return valueOrObservable.subscribe(value => super.patchValue(value, options)); | ||
return valueOrObservable.subscribe((value) => super.patchValue(value, options)); | ||
} | ||
else { | ||
let value = valueOrObservable; | ||
if (isFunction(valueOrObservable)) { | ||
value = valueOrObservable(this.value); | ||
} | ||
super.patchValue(value, options); | ||
} | ||
super.patchValue(valueOrObservable, options); | ||
} | ||
@@ -212,3 +204,3 @@ push(control) { | ||
class FormControl extends FormControl$1 { | ||
constructor(formState, validatorOrOpts, asyncValidator) { | ||
constructor(formState = null, validatorOrOpts, asyncValidator) { | ||
super(formState, validatorOrOpts, asyncValidator); | ||
@@ -225,5 +217,2 @@ this.touchChanges = new Subject(); | ||
} | ||
select(mapFn) { | ||
return selectControlValue$(this, mapFn); | ||
} | ||
setValue(valueOrObservable, options) { | ||
@@ -233,5 +222,3 @@ if (isObservable(valueOrObservable)) { | ||
} | ||
else { | ||
super.setValue(valueOrObservable, options); | ||
} | ||
super.setValue(valueOrObservable, options); | ||
} | ||
@@ -242,9 +229,3 @@ patchValue(valueOrObservable, options) { | ||
} | ||
else { | ||
let value = valueOrObservable; | ||
if (isFunction(valueOrObservable)) { | ||
value = valueOrObservable(this.value); | ||
} | ||
super.patchValue(value, options); | ||
} | ||
super.patchValue(valueOrObservable, options); | ||
} | ||
@@ -283,3 +264,3 @@ disabledWhile(observable, options) { | ||
} | ||
reset(formState, options) { | ||
reset(formState = null, options) { | ||
super.reset(formState, options); | ||
@@ -363,17 +344,9 @@ } | ||
} | ||
else { | ||
super.setValue(valueOrObservable, options); | ||
} | ||
super.setValue(valueOrObservable, options); | ||
} | ||
patchValue(valueOrObservable, options) { | ||
if (isObservable(valueOrObservable)) { | ||
return valueOrObservable.subscribe(value => super.patchValue(value, options)); | ||
return valueOrObservable.subscribe((value) => super.patchValue(value, options)); | ||
} | ||
else { | ||
let value = valueOrObservable; | ||
if (isFunction(valueOrObservable)) { | ||
value = valueOrObservable(this.value); | ||
} | ||
super.patchValue(value, options); | ||
} | ||
super.patchValue(valueOrObservable, options); | ||
} | ||
@@ -455,3 +428,3 @@ disabledWhile(observable, options) { | ||
let FormBuilder = class FormBuilder extends FormBuilder$1 { | ||
group(controlsConfig, options) { | ||
group(controlsConfig, options = null) { | ||
const controls = this._reduceControls(controlsConfig); | ||
@@ -476,3 +449,3 @@ let validators = null; | ||
} | ||
control(formState, validatorOrOpts, asyncValidator) { | ||
control(formState = null, validatorOrOpts, asyncValidator) { | ||
return new FormControl(formState, validatorOrOpts, asyncValidator); | ||
@@ -479,0 +452,0 @@ } |
@@ -96,6 +96,6 @@ import { __spread, __extends, __decorate } from 'tslib'; | ||
_this.value$ = controlValueChanges$(_this); | ||
_this.disabledChanges$ = controlDisabled$(_this); | ||
_this.enabledChanges$ = controlEnabled$(_this); | ||
_this.statusChanges$ = controlStatusChanges$(_this); | ||
_this.errorChanges$ = controlErrorChanges$(_this); | ||
_this.disabled$ = controlDisabled$(_this); | ||
_this.enabled$ = controlEnabled$(_this); | ||
_this.status$ = controlStatusChanges$(_this); | ||
_this.errors$ = controlErrorChanges$(_this); | ||
return _this; | ||
@@ -117,5 +117,3 @@ } | ||
} | ||
else { | ||
_super.prototype.setValue.call(this, valueOrObservable, options); | ||
} | ||
_super.prototype.setValue.call(this, valueOrObservable, options); | ||
}; | ||
@@ -127,9 +125,3 @@ FormArray.prototype.patchValue = function (valueOrObservable, options) { | ||
} | ||
else { | ||
var value = valueOrObservable; | ||
if (isFunction(valueOrObservable)) { | ||
value = valueOrObservable(this.value); | ||
} | ||
_super.prototype.patchValue.call(this, value, options); | ||
} | ||
_super.prototype.patchValue.call(this, valueOrObservable, options); | ||
}; | ||
@@ -224,2 +216,3 @@ FormArray.prototype.push = function (control) { | ||
function FormControl(formState, validatorOrOpts, asyncValidator) { | ||
if (formState === void 0) { formState = null; } | ||
var _this = _super.call(this, formState, validatorOrOpts, asyncValidator) || this; | ||
@@ -237,5 +230,2 @@ _this.touchChanges = new Subject(); | ||
} | ||
FormControl.prototype.select = function (mapFn) { | ||
return selectControlValue$(this, mapFn); | ||
}; | ||
FormControl.prototype.setValue = function (valueOrObservable, options) { | ||
@@ -246,5 +236,3 @@ var _this = this; | ||
} | ||
else { | ||
_super.prototype.setValue.call(this, valueOrObservable, options); | ||
} | ||
_super.prototype.setValue.call(this, valueOrObservable, options); | ||
}; | ||
@@ -256,9 +244,3 @@ FormControl.prototype.patchValue = function (valueOrObservable, options) { | ||
} | ||
else { | ||
var value = valueOrObservable; | ||
if (isFunction(valueOrObservable)) { | ||
value = valueOrObservable(this.value); | ||
} | ||
_super.prototype.patchValue.call(this, value, options); | ||
} | ||
_super.prototype.patchValue.call(this, valueOrObservable, options); | ||
}; | ||
@@ -298,2 +280,3 @@ FormControl.prototype.disabledWhile = function (observable, options) { | ||
FormControl.prototype.reset = function (formState, options) { | ||
if (formState === void 0) { formState = null; } | ||
_super.prototype.reset.call(this, formState, options); | ||
@@ -388,5 +371,3 @@ }; | ||
} | ||
else { | ||
_super.prototype.setValue.call(this, valueOrObservable, options); | ||
} | ||
_super.prototype.setValue.call(this, valueOrObservable, options); | ||
}; | ||
@@ -398,9 +379,3 @@ FormGroup.prototype.patchValue = function (valueOrObservable, options) { | ||
} | ||
else { | ||
var value = valueOrObservable; | ||
if (isFunction(valueOrObservable)) { | ||
value = valueOrObservable(this.value); | ||
} | ||
_super.prototype.patchValue.call(this, value, options); | ||
} | ||
_super.prototype.patchValue.call(this, valueOrObservable, options); | ||
}; | ||
@@ -499,2 +474,3 @@ FormGroup.prototype.disabledWhile = function (observable, options) { | ||
FormBuilder.prototype.group = function (controlsConfig, options) { | ||
if (options === void 0) { options = null; } | ||
var controls = this._reduceControls(controlsConfig); | ||
@@ -520,2 +496,3 @@ var validators = null; | ||
FormBuilder.prototype.control = function (formState, validatorOrOpts, asyncValidator) { | ||
if (formState === void 0) { formState = null; } | ||
return new FormControl(formState, validatorOrOpts, asyncValidator); | ||
@@ -522,0 +499,0 @@ }; |
@@ -0,1 +1,2 @@ | ||
import { AbstractControl } from '@angular/forms'; | ||
import { Observable, Subscription } from 'rxjs'; | ||
@@ -5,17 +6,17 @@ import { FormArray } from './formArray'; | ||
import { FormGroup } from './formGroup'; | ||
import { AbstractControl, ControlOptions, ControlState, ValidatorFn, ControlPath } from './types'; | ||
export declare function controlValueChanges$<T>(control: AbstractControl<T>): Observable<T>; | ||
export declare function controlDisabled$<T>(control: AbstractControl<T>): Observable<boolean>; | ||
export declare function controlEnabled$<T>(control: AbstractControl<T>): Observable<boolean>; | ||
export declare function controlStatusChanges$<T>(control: AbstractControl<T>): Observable<ControlState>; | ||
import { ControlOptions, ControlPath, ControlState, ValidatorFn } from './types'; | ||
export declare function controlValueChanges$<T>(control: AbstractControl): Observable<T>; | ||
export declare function controlDisabled$<T>(control: AbstractControl): Observable<boolean>; | ||
export declare function controlEnabled$<T>(control: AbstractControl): Observable<boolean>; | ||
export declare function controlStatusChanges$<T>(control: AbstractControl): Observable<ControlState>; | ||
export declare function controlErrorChanges$<E>(control: AbstractControl): Observable<E | null>; | ||
export declare function enableControl<T>(control: AbstractControl<T>, enabled: boolean, opts?: ControlOptions): void; | ||
export declare function disableControl<T>(control: AbstractControl<T>, disabled: boolean, opts?: ControlOptions): void; | ||
export declare function controlDisabledWhile<T>(control: AbstractControl<T>, observable: Observable<boolean>, opts?: ControlOptions): Subscription; | ||
export declare function controlEnabledWhile<T>(control: AbstractControl<T>, observable: Observable<boolean>, opts?: ControlOptions): Subscription; | ||
export declare function mergeControlValidators<T, E, Control extends AbstractControl<T>>(control: Control, validators: ValidatorFn<Partial<E>, T> | ValidatorFn<Partial<E>, T>[]): void; | ||
export declare function validateControlOn<T>(control: AbstractControl<T>, validation: Observable<null | object>): Subscription; | ||
export declare function hasErrorAndTouched<T>(control: AbstractControl<T>, error: string, path?: ControlPath): boolean; | ||
export declare function hasErrorAndDirty<T>(control: AbstractControl<T>, error: string, path?: ControlPath): boolean; | ||
export declare function markAllDirty<T>(control: FormArray<T> | FormGroup<T>): void; | ||
export declare function selectControlValue$<T, R>(control: FormGroup<T> | FormArray<T> | FormControl<T>, mapFn: (state: T | T[]) => R): Observable<R>; | ||
export declare function enableControl<T>(control: AbstractControl, enabled: boolean, opts?: ControlOptions): void; | ||
export declare function disableControl<T>(control: AbstractControl, disabled: boolean, opts?: ControlOptions): void; | ||
export declare function controlDisabledWhile<T>(control: AbstractControl, observable: Observable<boolean>, opts?: ControlOptions): Subscription; | ||
export declare function controlEnabledWhile<T>(control: AbstractControl, observable: Observable<boolean>, opts?: ControlOptions): Subscription; | ||
export declare function mergeControlValidators<T, Control extends AbstractControl>(control: Control, validators: ValidatorFn | ValidatorFn[]): void; | ||
export declare function validateControlOn<T>(control: AbstractControl, validation: Observable<null | object>): Subscription; | ||
export declare function hasErrorAndTouched<T>(control: AbstractControl, error: string, path?: ControlPath): boolean; | ||
export declare function hasErrorAndDirty(control: AbstractControl, error: string, path?: ControlPath): boolean; | ||
export declare function markAllDirty<T>(control: FormArray<T> | FormGroup): void; | ||
export declare function selectControlValue$<T, R>(control: FormGroup | FormArray | FormControl, mapFn: (state: T | T[]) => R): Observable<R>; |
import { FormArray as NgFormArray } from '@angular/forms'; | ||
import { Observable, Subscription } from 'rxjs'; | ||
import { AbstractControl, AbstractControlOptions, AsyncValidatorFn, ControlEventOptions, ControlOptions, ControlPath, ControlState, EmitEvent, ExtractStrings, OnlySelf, ValidatorFn } from './types'; | ||
import { AsyncValidator, AsyncValidatorFn, ControlEventOptions, ControlOptions, ControlPath, ControlState, ControlType, EmitEvent, ExtractModelValue, ExtractStrings, OnlySelf, Validator, ValidatorOrOpts } from './types'; | ||
export declare class FormArray<T = any, E extends object = any> extends NgFormArray { | ||
controls: Array<AbstractControl<T>>; | ||
value: T[]; | ||
valueChanges: Observable<T[]>; | ||
status: ControlState; | ||
statusChanges: Observable<ControlState>; | ||
errors: E | null; | ||
controls: ControlType<T, E>[]; | ||
readonly value: ExtractModelValue<T>[]; | ||
readonly valueChanges: Observable<ExtractModelValue<T>[]>; | ||
readonly status: ControlState; | ||
readonly statusChanges: Observable<ControlState>; | ||
readonly errors: E | null; | ||
private touchChanges; | ||
private dirtyChanges; | ||
touch$: Observable<boolean>; | ||
dirty$: Observable<boolean>; | ||
value$: Observable<T[]>; | ||
disabledChanges$: Observable<boolean>; | ||
enabledChanges$: Observable<boolean>; | ||
statusChanges$: Observable<ControlState>; | ||
errorChanges$: Observable<E>; | ||
constructor(controls: Array<AbstractControl<T>>, validatorOrOpts?: ValidatorFn<Partial<E>, T[]> | ValidatorFn<Partial<E>, T[]>[] | AbstractControlOptions<T[], E> | null, asyncValidator?: AsyncValidatorFn<Partial<E>, T[]> | AsyncValidatorFn<Partial<E>, T[]>[] | null); | ||
select<R>(mapFn: (state: T[]) => R): Observable<R>; | ||
getRawValue(): T[]; | ||
at(index: number): AbstractControl<T>; | ||
setValue(valueOrObservable: Observable<T[]>, options?: ControlEventOptions): Subscription; | ||
setValue(valueOrObservable: T[], options?: ControlEventOptions): void; | ||
patchValue(valueOrObservable: Observable<T[]>, options?: ControlEventOptions): Subscription; | ||
patchValue(valueOrObservable: T[], options?: ControlEventOptions): void; | ||
patchValue(valueOrObservable: (state: T[]) => T[], options?: ControlOptions): void; | ||
push(control: AbstractControl<T>): void; | ||
insert(index: number, control: AbstractControl<T>): void; | ||
setControl(index: number, control: AbstractControl<T>): void; | ||
readonly touch$: Observable<boolean>; | ||
readonly dirty$: Observable<boolean>; | ||
readonly value$: Observable<ExtractModelValue<T>[]>; | ||
readonly disabled$: Observable<boolean>; | ||
readonly enabled$: Observable<boolean>; | ||
readonly status$: Observable<ControlState>; | ||
readonly errors$: Observable<E>; | ||
constructor(controls: ControlType<T, E>[], validatorOrOpts?: ValidatorOrOpts, asyncValidator?: AsyncValidatorFn); | ||
select<R>(mapFn: (state: ExtractModelValue<T>[]) => R): Observable<R>; | ||
getRawValue(): ExtractModelValue<T>[]; | ||
at(index: number): ControlType<T, E>; | ||
setValue(valueOrObservable: Observable<ExtractModelValue<T>[]>, options?: ControlEventOptions): Subscription; | ||
setValue(valueOrObservable: ExtractModelValue<T>[], options?: ControlEventOptions): void; | ||
patchValue(valueOrObservable: Observable<ExtractModelValue<T>[]>, options?: ControlEventOptions): Subscription; | ||
patchValue(valueOrObservable: ExtractModelValue<T>[], options?: ControlEventOptions): void; | ||
push(control: ControlType<T, E>): void; | ||
insert(index: number, control: ControlType<T, E>): void; | ||
setControl(index: number, control: ControlType<T, E>): void; | ||
disabledWhile(observable: Observable<boolean>, options?: ControlOptions): Subscription; | ||
enabledWhile(observable: Observable<boolean>, options?: ControlOptions): Subscription; | ||
mergeValidators(validators: ValidatorFn<Partial<E>, T[]> | ValidatorFn<Partial<E>, T[]>[]): void; | ||
mergeAsyncValidators(validators: AsyncValidatorFn<Partial<E>, T[]> | AsyncValidatorFn<any, T[]>[]): void; | ||
mergeValidators(validators: Validator): void; | ||
mergeAsyncValidators(validators: AsyncValidator): void; | ||
markAsTouched(opts?: OnlySelf): void; | ||
@@ -41,5 +40,5 @@ markAsUntouched(opts?: OnlySelf): void; | ||
markAllAsDirty(): void; | ||
reset(value?: T[], options?: ControlEventOptions): void; | ||
setValidators(newValidator: ValidatorFn<Partial<E>, T[]> | ValidatorFn<Partial<E>, T[]>[] | null): void; | ||
setAsyncValidators(newValidator: AsyncValidatorFn<Partial<E>, T[]> | AsyncValidatorFn<Partial<E>, T[]>[] | null): void; | ||
reset(value?: ExtractModelValue<T>[], options?: ControlEventOptions): void; | ||
setValidators(newValidator: Validator): void; | ||
setAsyncValidators(newValidator: AsyncValidator): void; | ||
validateOn(observableValidation: Observable<null | object>): Subscription; | ||
@@ -46,0 +45,0 @@ hasError(errorCode: ExtractStrings<E>, path?: ControlPath): boolean; |
@@ -1,16 +0,12 @@ | ||
import { FormBuilder as NgFormBuilder } from '@angular/forms'; | ||
import { AbstractControlOptions, FormBuilder as NgFormBuilder } from '@angular/forms'; | ||
import { FormArray } from './formArray'; | ||
import { FormControl } from './formControl'; | ||
import { FormGroup } from './formGroup'; | ||
import { AbstractControlOptions, AsyncValidatorFn, AbstractControl, OrBoxedValue, ValidatorFn } from './types'; | ||
export declare type FbControlConfig<T = any, E extends object = any> = AbstractControl<T> | [OrBoxedValue<T>, ValidatorFn<Partial<E>, T> | ValidatorFn<Partial<E>, T>[] | null, AsyncValidatorFn<T> | AsyncValidatorFn<T>[] | null] | [OrBoxedValue<T>, ValidatorFn<Partial<E>, T> | ValidatorFn<Partial<E>, T>[] | AbstractControlOptions<T> | null] | [T | OrBoxedValue<T>] | OrBoxedValue<T> | T; | ||
import { AsyncValidator, FbControlConfig, FormControlState, LegacyControlOptions, ValidatorOrOpts } from './types'; | ||
export declare class FormBuilder extends NgFormBuilder { | ||
group<T extends object, E extends object = any>(controlsConfig: { | ||
[K in keyof T]: FbControlConfig<T[K]>; | ||
}, options?: AbstractControlOptions<T> | { | ||
validator?: ValidatorFn<Partial<E>, T> | ValidatorFn<Partial<E>, T>[]; | ||
asyncValidator?: AsyncValidatorFn<Partial<E>, T> | AsyncValidatorFn<Partial<E>, T>[]; | ||
} | null): FormGroup<T, E>; | ||
control<T, E extends object = any>(formState: OrBoxedValue<T>, validatorOrOpts?: ValidatorFn<Partial<E>, T> | ValidatorFn<Partial<E>, T>[] | AbstractControlOptions<T> | null, asyncValidator?: AsyncValidatorFn<Partial<E>, T> | AsyncValidatorFn<Partial<E>, T>[] | null): FormControl<T, E>; | ||
array<T, E extends object = any>(controlsConfig: FbControlConfig<T>[], validatorOrOpts?: ValidatorFn<Partial<E>, T[]> | ValidatorFn<Partial<E>, T[]>[] | AbstractControlOptions<T[]> | null, asyncValidator?: AsyncValidatorFn<Partial<E>, T[]> | AsyncValidatorFn<Partial<E>, T[]>[] | null): FormArray<T, E>; | ||
group<T extends object = any, E extends object = any>(controlsConfig: { | ||
[P in keyof T]: FbControlConfig<T[P], E>; | ||
}, options?: AbstractControlOptions | LegacyControlOptions | null): FormGroup<T, E>; | ||
control<T = any, E extends object = any>(formState?: FormControlState<T>, validatorOrOpts?: ValidatorOrOpts, asyncValidator?: AsyncValidator): FormControl<T, E>; | ||
array<T = any, E extends object = any>(controlsConfig: FbControlConfig<T, E>[], validatorOrOpts?: ValidatorOrOpts, asyncValidator?: AsyncValidator): FormArray<T, E>; | ||
} |
import { FormControl as NgFormControl } from '@angular/forms'; | ||
import { Observable, Subscription } from 'rxjs'; | ||
import { AbstractControlOptions, AsyncValidatorFn, ControlEventOptions, ControlOptions, ControlState, EmitEvent, ExtractStrings, OnlySelf, OrBoxedValue, ValidatorFn } from './types'; | ||
import { AsyncValidator, ControlEventOptions, ControlOptions, ControlState, EmitEvent, ExtractControlValue, ExtractStrings, FormControlState, OnlySelf, Validator, ValidatorOrOpts } from './types'; | ||
export declare class FormControl<T = any, E extends object = any> extends NgFormControl { | ||
value: T; | ||
errors: E | null; | ||
asyncValidator: AsyncValidatorFn<Partial<E>, T>; | ||
valueChanges: Observable<T>; | ||
status: ControlState; | ||
statusChanges: Observable<ControlState>; | ||
readonly value: ExtractControlValue<T>; | ||
readonly valueChanges: Observable<ExtractControlValue<T>>; | ||
readonly errors: E | null; | ||
readonly status: ControlState; | ||
readonly statusChanges: Observable<ControlState>; | ||
private touchChanges; | ||
private dirtyChanges; | ||
touch$: Observable<boolean>; | ||
dirty$: Observable<boolean>; | ||
value$: Observable<T>; | ||
disabled$: Observable<boolean>; | ||
enabled$: Observable<boolean>; | ||
status$: Observable<ControlState>; | ||
errors$: Observable<E>; | ||
constructor(formState?: OrBoxedValue<T>, validatorOrOpts?: ValidatorFn<Partial<E>, T> | ValidatorFn<any, T>[] | AbstractControlOptions<T, E> | null, asyncValidator?: AsyncValidatorFn<Partial<E>, T> | AsyncValidatorFn<any, T>[] | null); | ||
select<R>(mapFn: (state: T) => R): Observable<R>; | ||
readonly touch$: Observable<boolean>; | ||
readonly dirty$: Observable<boolean>; | ||
readonly value$: Observable<ExtractControlValue<T>>; | ||
readonly disabled$: Observable<boolean>; | ||
readonly enabled$: Observable<boolean>; | ||
readonly status$: Observable<ControlState>; | ||
readonly errors$: Observable<E>; | ||
constructor(formState?: FormControlState<T>, validatorOrOpts?: ValidatorOrOpts, asyncValidator?: AsyncValidator); | ||
setValue(valueOrObservable: Observable<T>, options?: ControlOptions): Subscription; | ||
setValue(valueOrObservable: T, options?: ControlOptions): void; | ||
patchValue(valueOrObservable: Observable<T>, options?: ControlOptions): Subscription; | ||
patchValue(valueOrObservable: (state: T) => T, options?: ControlOptions): void; | ||
patchValue(valueOrObservable: T, options?: ControlOptions): void; | ||
patchValue(valueOrObservable: Observable<Partial<T>>, options?: ControlOptions): Subscription; | ||
patchValue(valueOrObservable: Partial<T>, options?: ControlOptions): void; | ||
disabledWhile(observable: Observable<boolean>, options?: ControlOptions): Subscription; | ||
enabledWhile(observable: Observable<boolean>, options?: ControlOptions): Subscription; | ||
mergeValidators(validators: ValidatorFn<Partial<E>, T> | ValidatorFn<Partial<E>, T>[]): void; | ||
mergeAsyncValidators(validators: AsyncValidatorFn<Partial<E>, T> | AsyncValidatorFn<any, T>[]): void; | ||
mergeValidators(validators: Validator): void; | ||
mergeAsyncValidators(validators: AsyncValidator): void; | ||
markAsTouched(opts?: OnlySelf): void; | ||
@@ -36,5 +33,5 @@ markAsUntouched(opts?: OnlySelf): void; | ||
markAllAsDirty(): void; | ||
reset(formState?: OrBoxedValue<T>, options?: ControlEventOptions): void; | ||
setValidators(newValidator: ValidatorFn<Partial<E>, T> | ValidatorFn<Partial<E>, T>[] | null): void; | ||
setAsyncValidators(newValidator: AsyncValidatorFn<Partial<E>, T> | AsyncValidatorFn<any, T>[] | null): void; | ||
reset(formState?: FormControlState<T>, options?: ControlEventOptions): void; | ||
setValidators(newValidator: Validator): void; | ||
setAsyncValidators(newValidator: AsyncValidator): void; | ||
validateOn(observableValidation: Observable<null | object>): Subscription; | ||
@@ -41,0 +38,0 @@ getError<K extends ExtractStrings<E>>(errorCode: K): E[K] | null; |
import { FormGroup as NgFormGroup } from '@angular/forms'; | ||
import { Observable, Subscription } from 'rxjs'; | ||
import { AbstractControl, AbstractControlOptions, AsyncValidatorFn, ControlEventOptions, ControlOptions, ControlState, EmitEvent, ExtractStrings, OnlySelf, ValidatorFn, KeyValueControls, Obj, ExtractAbstractControl } from './types'; | ||
export declare class FormGroup<T extends Obj = any, E extends object = any> extends NgFormGroup { | ||
controls: ExtractAbstractControl<KeyValueControls<T, E>, T>; | ||
value: T; | ||
errors: E | null; | ||
valueChanges: Observable<T>; | ||
status: ControlState; | ||
statusChanges: Observable<ControlState>; | ||
import { AsyncValidator, ControlEventOptions, ControlOptions, ControlState, ControlType, EmitEvent, ExtractGroupValue, ExtractStrings, OnlySelf, Validator, ValidatorOrOpts } from './types'; | ||
export declare class FormGroup<T extends object = any, E extends object = any> extends NgFormGroup { | ||
controls: { | ||
[P in keyof T]: ControlType<T[P], E>; | ||
}; | ||
readonly value: ExtractGroupValue<T>; | ||
readonly valueChanges: Observable<ExtractGroupValue<T>>; | ||
readonly errors: E | null; | ||
readonly status: ControlState; | ||
readonly statusChanges: Observable<ControlState>; | ||
private touchChanges; | ||
private dirtyChanges; | ||
touch$: Observable<boolean>; | ||
dirty$: Observable<boolean>; | ||
value$: Observable<T>; | ||
disabled$: Observable<boolean>; | ||
enabled$: Observable<boolean>; | ||
status$: Observable<ControlState>; | ||
errors$: Observable<E>; | ||
constructor(controls: ExtractAbstractControl<KeyValueControls<T, E>, T>, validatorOrOpts?: ValidatorFn<Partial<E>, T> | ValidatorFn<any, T>[] | AbstractControlOptions<T, E> | null, asyncValidator?: AsyncValidatorFn<Partial<E>, T> | AsyncValidatorFn<Partial<E>, T>[] | null); | ||
select<R>(mapFn: (state: T) => R): Observable<R>; | ||
getRawValue(): T; | ||
get<K1 extends keyof T>(path?: [K1]): AbstractControl<T[K1]>; | ||
get<K1 extends keyof T, K2 extends keyof T[K1]>(path?: [K1, K2]): AbstractControl<T[K1][K2]>; | ||
get<K1 extends keyof T, K2 extends keyof T[K1], K3 extends keyof T[K1][K2]>(path?: [K1, K2, K3]): AbstractControl<T[K1][K2][K3]>; | ||
get(path?: string): AbstractControl; | ||
getControl<P1 extends keyof T>(prop1: P1): AbstractControl<T[P1]>; | ||
getControl<P1 extends keyof T, P2 extends keyof T[P1]>(prop1: P1, prop2: P2): AbstractControl<T[P1][P2]>; | ||
getControl<P1 extends keyof T, P2 extends keyof T[P1], P3 extends keyof T[P1][P2]>(prop1: P1, prop2: P2, prop3: P3): AbstractControl<T[P1][P2][P3]>; | ||
getControl<P1 extends keyof T, P2 extends keyof T[P1], P3 extends keyof T[P1][P2], P4 extends keyof T[P1][P2][P3]>(prop1: P1, prop2: P2, prop3: P3, prop4: P4): AbstractControl<T[P1][P2][P3][P4]>; | ||
addControl<K extends ExtractStrings<T>>(name: K, control: AbstractControl<T[K]>): void; | ||
readonly touch$: Observable<boolean>; | ||
readonly dirty$: Observable<boolean>; | ||
readonly value$: Observable<ExtractGroupValue<T>>; | ||
readonly disabled$: Observable<boolean>; | ||
readonly enabled$: Observable<boolean>; | ||
readonly status$: Observable<ControlState>; | ||
readonly errors$: Observable<E>; | ||
constructor(controls: { | ||
[P in keyof T]: ControlType<T[P], E>; | ||
}, validatorOrOpts?: ValidatorOrOpts, asyncValidator?: AsyncValidator); | ||
select<R>(mapFn: (state: ExtractGroupValue<T>) => R): Observable<R>; | ||
getRawValue(): ExtractGroupValue<T>; | ||
get<K1 extends keyof T>(path?: [K1]): ControlType<T[K1]>; | ||
get<K1 extends keyof T, K2 extends keyof T[K1]>(path?: [K1, K2]): ControlType<T[K1][K2]>; | ||
get<K1 extends keyof T, K2 extends keyof T[K1], K3 extends keyof T[K1][K2]>(path?: [K1, K2, K3]): ControlType<T[K1][K2][K3]>; | ||
get(path?: string): ControlType; | ||
getControl<P1 extends keyof T>(prop1: P1): ControlType<T[P1]>; | ||
getControl<P1 extends keyof T, P2 extends keyof T[P1]>(prop1: P1, prop2: P2): ControlType<T[P1][P2]>; | ||
getControl<P1 extends keyof T, P2 extends keyof T[P1], P3 extends keyof T[P1][P2]>(prop1: P1, prop2: P2, prop3: P3): ControlType<T[P1][P2][P3]>; | ||
getControl<P1 extends keyof T, P2 extends keyof T[P1], P3 extends keyof T[P1][P2], P4 extends keyof T[P1][P2][P3]>(prop1: P1, prop2: P2, prop3: P3, prop4: P4): ControlType<T[P1][P2][P3][P4]>; | ||
addControl<K extends ExtractStrings<T>>(name: K, control: ControlType<T[K]>): void; | ||
removeControl(name: ExtractStrings<T>): void; | ||
contains(controlName: ExtractStrings<T>): boolean; | ||
setControl<K extends ExtractStrings<T>>(name: K, control: AbstractControl<T[K]>): void; | ||
setValue(valueOrObservable: Observable<T>, options?: ControlEventOptions): Subscription; | ||
setValue(valueOrObservable: T, options?: ControlEventOptions): void; | ||
patchValue(valueOrObservable: Observable<Partial<T>>, options?: ControlEventOptions): Subscription; | ||
patchValue(valueOrObservable: Partial<T>, options?: ControlEventOptions): void; | ||
patchValue(valueOrObservable: (state: T) => T, options?: ControlOptions): void; | ||
setControl<K extends ExtractStrings<T>>(name: K, control: ControlType<T[K]>): void; | ||
setValue(valueOrObservable: Observable<ExtractGroupValue<T>>, options?: ControlEventOptions): Subscription; | ||
setValue(valueOrObservable: ExtractGroupValue<T>, options?: ControlEventOptions): void; | ||
patchValue(valueOrObservable: Observable<Partial<ExtractGroupValue<T>>>, options?: ControlEventOptions): Subscription; | ||
patchValue(valueOrObservable: Partial<ExtractGroupValue<T>>, options?: ControlEventOptions): void; | ||
disabledWhile(observable: Observable<boolean>, options?: ControlOptions): Subscription; | ||
enabledWhile(observable: Observable<boolean>, options?: ControlOptions): Subscription; | ||
mergeValidators(validators: ValidatorFn<Partial<E>, T> | ValidatorFn<Partial<E>, T>[]): void; | ||
mergeAsyncValidators(validators: AsyncValidatorFn<Partial<E>, T> | AsyncValidatorFn<any, T>[]): void; | ||
mergeValidators(validators: Validator): void; | ||
mergeAsyncValidators(validators: AsyncValidator): void; | ||
markAsTouched(opts?: OnlySelf): void; | ||
@@ -49,5 +52,5 @@ markAsUntouched(opts?: OnlySelf): void; | ||
markAllAsDirty(): void; | ||
reset(formState?: Partial<T>, options?: ControlEventOptions): void; | ||
setValidators(newValidator: ValidatorFn<Partial<E>, T> | ValidatorFn<Partial<E>, T>[] | null): void; | ||
setAsyncValidators(newValidator: AsyncValidatorFn<Partial<E>, T> | AsyncValidatorFn<Partial<E>, T>[] | null): void; | ||
reset(formState?: Partial<ExtractGroupValue<T>>, options?: ControlEventOptions): void; | ||
setValidators(newValidator: Validator): void; | ||
setAsyncValidators(newValidator: AsyncValidator): void; | ||
validateOn(observableValidation: Observable<null | object>): Subscription; | ||
@@ -54,0 +57,0 @@ hasError<K1 extends keyof T>(errorCode: ExtractStrings<E>, path?: [K1]): boolean; |
@@ -1,12 +0,9 @@ | ||
import { AbstractControl as NgAbstractControl, AbstractControlOptions as NgAbstractControlOptions, ValidationErrors } from '@angular/forms'; | ||
import { AbstractControl, AbstractControlOptions } from '@angular/forms'; | ||
import { Observable } from 'rxjs'; | ||
import { FormGroup } from './formGroup'; | ||
import { FormControl } from './formControl'; | ||
import { FormArray } from './formArray'; | ||
import { FormControl } from './formControl'; | ||
import { FormGroup } from './formGroup'; | ||
export declare type ValidatorFn<E extends ValidationErrors = any, T = any> = (control: any) => E | null; | ||
export declare type AsyncValidatorFn<E extends ValidationErrors = any, T = any> = (control: any) => Promise<E | null> | Observable<E | null>; | ||
export interface AbstractControlOptions<T = any, E extends ValidationErrors = any> extends NgAbstractControlOptions { | ||
validators?: ValidatorFn<Partial<E>, T> | ValidatorFn<Partial<E>, T>[] | null; | ||
asyncValidators?: AsyncValidatorFn<Partial<E>, T> | AsyncValidatorFn<Partial<E>, T>[] | null; | ||
} | ||
export declare type ValidationErrors<T extends object = any> = T; | ||
export declare type ValidatorFn = (control: AbstractControl) => ValidationErrors | null; | ||
export declare type AsyncValidatorFn = (control: AbstractControl) => Promise<ValidationErrors | null> | Observable<ValidationErrors | null>; | ||
export interface ControlOptions { | ||
@@ -23,6 +20,5 @@ onlySelf?: boolean; | ||
export declare type ControlState = 'VALID' | 'INVALID' | 'PENDING' | 'DISABLED'; | ||
export interface AbstractControl<T = any, E extends object = any> extends NgAbstractControl { | ||
value: T; | ||
errors: E | null; | ||
} | ||
export declare type ValidatorOrOpts = ValidatorFn | ValidatorFn[] | AbstractControlOptions | null; | ||
export declare type AsyncValidator = AsyncValidatorFn | AsyncValidatorFn[] | null; | ||
export declare type Validator = ValidatorFn | ValidatorFn[] | null; | ||
export declare type ExtractStrings<T> = Extract<keyof T, string>; | ||
@@ -53,17 +49,27 @@ export interface NgValidatorsErrors { | ||
} | ||
export declare type BoxedValue<T> = { | ||
value: T; | ||
export declare type Control<T extends object> = T & UniqToken; | ||
declare const sym: unique symbol; | ||
interface UniqToken { | ||
[sym]: never; | ||
} | ||
declare type ExtractAny<T> = T extends Extract<T, string & number & boolean & object & null & undefined> ? any : never; | ||
export declare type ControlType<T = any, V extends object = any> = [T] extends ExtractAny<T> ? AbstractControl : T extends Control<infer ControlModel> ? FormControl<ControlModel, V> : T extends Array<infer Item> ? FormArray<Item, V> : T extends object ? FormGroup<T, V> : FormControl<T, V>; | ||
export declare type FormControlState<T> = null | ExtractModelValue<T> | { | ||
value: null | ExtractModelValue<T>; | ||
disabled: boolean; | ||
}; | ||
export declare type OrBoxedValue<T> = T | BoxedValue<T>; | ||
export declare type Obj = { | ||
[key: string]: any; | ||
export declare type ExtractModelValue<T> = [T] extends [ExtractAny<T>] ? any : [T] extends [Array<infer Item>] ? Array<ExtractModelValue<Item>> : [T] extends [Control<infer ControlModel>] ? ControlModel : [T] extends [object] ? ExtractGroupValue<T> : T; | ||
export declare type ExtractControlValue<T> = T extends Control<infer ControlModel> ? ControlModel : T; | ||
export declare type ExtractGroupValue<T extends object> = { | ||
[P in keyof T]: ExtractModelValue<T[P]>; | ||
}; | ||
declare type ArrayType<T> = T extends Array<infer R> ? R : any; | ||
export declare type KeyValueControls<T extends Obj, E = any> = { | ||
[K in keyof T]: T[K] extends FormControl<T[K]> ? FormControl<T[K]> : T[K] extends FormGroup<T[K]> ? FormGroup<T[K]> : T[K] extends FormArray<ArrayType<T[K]>> ? FormArray<ArrayType<T[K]>> : AbstractControl<T[K]>; | ||
export declare type ExtractGroupStateValue<T extends object> = { | ||
[P in keyof T]: FormControlState<T[P]>; | ||
}; | ||
export declare type ExtractAbstractControl<T, U> = T extends KeyValueControls<any> ? { | ||
[K in keyof U]: AbstractControl<U[K]>; | ||
} : T; | ||
export declare type FbControlConfig<T, V extends object = any> = [T] extends [ExtractAny<T>] ? AbstractControl : [T] extends [Control<infer ControlModel>] ? FbControl<ControlModel, V> : [T] extends [Array<infer Item>] ? FormArray<Item, V> : [T] extends [object] ? FormGroup<T, V> : FbControl<T, V>; | ||
export declare type FbControl<T, V extends object = any> = ExtractModelValue<T> | FormControlState<T> | [FormControlState<T>, (ValidatorFn | ValidatorFn[] | AbstractControlOptions)?, (AsyncValidatorFn | AsyncValidatorFn[])?] | FormControl<T, V>; | ||
export interface LegacyControlOptions { | ||
validator?: ValidatorFn | ValidatorFn[] | null; | ||
asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null; | ||
} | ||
export {}; |
@@ -5,2 +5,2 @@ /** | ||
export * from './public-api'; | ||
export { ExtractAbstractControl as ɵb, OrBoxedValue as ɵa } from './lib/types'; | ||
export { AsyncValidator as ɵb, ControlType as ɵc, FormControlState as ɵd, ValidatorOrOpts as ɵa } from './lib/types'; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"FormArray":{"__symbolic":"class","arity":2,"extends":{"__symbolic":"reference","module":"@angular/forms","name":"FormArray","line":33,"character":64},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"AbstractControl"}]},{"__symbolic":"reference","name":"ValidatorFn"},{"__symbolic":"reference","name":"AsyncValidatorFn"}]}],"select":[{"__symbolic":"method"}],"getRawValue":[{"__symbolic":"method"}],"at":[{"__symbolic":"method"}],"setValue":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"patchValue":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"push":[{"__symbolic":"method"}],"insert":[{"__symbolic":"method"}],"setControl":[{"__symbolic":"method"}],"disabledWhile":[{"__symbolic":"method"}],"enabledWhile":[{"__symbolic":"method"}],"mergeValidators":[{"__symbolic":"method"}],"mergeAsyncValidators":[{"__symbolic":"method"}],"markAsTouched":[{"__symbolic":"method"}],"markAsUntouched":[{"__symbolic":"method"}],"markAsPristine":[{"__symbolic":"method"}],"markAsDirty":[{"__symbolic":"method"}],"markAllAsDirty":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"setValidators":[{"__symbolic":"method"}],"setAsyncValidators":[{"__symbolic":"method"}],"validateOn":[{"__symbolic":"method"}],"hasError":[{"__symbolic":"method"}],"setErrors":[{"__symbolic":"method"}],"getError":[{"__symbolic":"method"}],"hasErrorAndTouched":[{"__symbolic":"method"}],"hasErrorAndDirty":[{"__symbolic":"method"}],"setEnable":[{"__symbolic":"method"}],"setDisable":[{"__symbolic":"method"}]}},"FormControl":{"__symbolic":"class","arity":2,"extends":{"__symbolic":"reference","module":"@angular/forms","name":"FormControl","line":33,"character":66},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ValidatorFn"},{"__symbolic":"reference","name":"AsyncValidatorFn"}]}],"select":[{"__symbolic":"method"}],"setValue":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"patchValue":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"disabledWhile":[{"__symbolic":"method"}],"enabledWhile":[{"__symbolic":"method"}],"mergeValidators":[{"__symbolic":"method"}],"mergeAsyncValidators":[{"__symbolic":"method"}],"markAsTouched":[{"__symbolic":"method"}],"markAsUntouched":[{"__symbolic":"method"}],"markAsPristine":[{"__symbolic":"method"}],"markAsDirty":[{"__symbolic":"method"}],"markAllAsDirty":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"setValidators":[{"__symbolic":"method"}],"setAsyncValidators":[{"__symbolic":"method"}],"validateOn":[{"__symbolic":"method"}],"getError":[{"__symbolic":"method"}],"hasError":[{"__symbolic":"method"}],"setErrors":[{"__symbolic":"method"}],"hasErrorAndTouched":[{"__symbolic":"method"}],"hasErrorAndDirty":[{"__symbolic":"method"}],"setEnable":[{"__symbolic":"method"}],"setDisable":[{"__symbolic":"method"}]}},"FormGroup":{"__symbolic":"class","arity":2,"extends":{"__symbolic":"reference","module":"@angular/forms","name":"FormGroup","line":37,"character":76},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ValidatorFn"},{"__symbolic":"reference","name":"AsyncValidatorFn"}]}],"select":[{"__symbolic":"method"}],"getRawValue":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"getControl":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"addControl":[{"__symbolic":"method"}],"removeControl":[{"__symbolic":"method"}],"contains":[{"__symbolic":"method"}],"setControl":[{"__symbolic":"method"}],"setValue":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"patchValue":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"disabledWhile":[{"__symbolic":"method"}],"enabledWhile":[{"__symbolic":"method"}],"mergeValidators":[{"__symbolic":"method"}],"mergeAsyncValidators":[{"__symbolic":"method"}],"markAsTouched":[{"__symbolic":"method"}],"markAsUntouched":[{"__symbolic":"method"}],"markAsPristine":[{"__symbolic":"method"}],"markAsDirty":[{"__symbolic":"method"}],"markAllAsDirty":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"setValidators":[{"__symbolic":"method"}],"setAsyncValidators":[{"__symbolic":"method"}],"validateOn":[{"__symbolic":"method"}],"hasError":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"setErrors":[{"__symbolic":"method"}],"getError":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"hasErrorAndTouched":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"hasErrorAndDirty":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"setEnable":[{"__symbolic":"method"}],"setDisable":[{"__symbolic":"method"}]}},"FormBuilder":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/forms","name":"FormBuilder","line":30,"character":33},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":29,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"group":[{"__symbolic":"method"}],"control":[{"__symbolic":"method"}],"array":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"ɵa":{"__symbolic":"interface"},"ɵb":{"__symbolic":"interface"},"AbstractControl":{"__symbolic":"interface"},"ValidatorFn":{"__symbolic":"interface"},"AsyncValidatorFn":{"__symbolic":"interface"},"NgValidatorsErrors":{"__symbolic":"interface"},"ControlValueAccessor":{"__symbolic":"class","arity":1,"members":{"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}]}}},"origins":{"FormArray":"./lib/formArray","FormControl":"./lib/formControl","FormGroup":"./lib/formGroup","FormBuilder":"./lib/formBuilder","ɵa":"./lib/types","ɵb":"./lib/types","AbstractControl":"./lib/types","ValidatorFn":"./lib/types","AsyncValidatorFn":"./lib/types","NgValidatorsErrors":"./lib/types","ControlValueAccessor":"./lib/controlValueAccessor"},"importAs":"@ngneat/reactive-forms"} | ||
{"__symbolic":"module","version":4,"metadata":{"FormArray":{"__symbolic":"class","arity":2,"extends":{"__symbolic":"reference","module":"@angular/forms","name":"FormArray","line":7,"character":64},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"ɵc"}]},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"AsyncValidatorFn"}]}],"select":[{"__symbolic":"method"}],"getRawValue":[{"__symbolic":"method"}],"at":[{"__symbolic":"method"}],"setValue":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"patchValue":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"push":[{"__symbolic":"method"}],"insert":[{"__symbolic":"method"}],"setControl":[{"__symbolic":"method"}],"disabledWhile":[{"__symbolic":"method"}],"enabledWhile":[{"__symbolic":"method"}],"mergeValidators":[{"__symbolic":"method"}],"mergeAsyncValidators":[{"__symbolic":"method"}],"markAsTouched":[{"__symbolic":"method"}],"markAsUntouched":[{"__symbolic":"method"}],"markAsPristine":[{"__symbolic":"method"}],"markAsDirty":[{"__symbolic":"method"}],"markAllAsDirty":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"setValidators":[{"__symbolic":"method"}],"setAsyncValidators":[{"__symbolic":"method"}],"validateOn":[{"__symbolic":"method"}],"hasError":[{"__symbolic":"method"}],"setErrors":[{"__symbolic":"method"}],"getError":[{"__symbolic":"method"}],"hasErrorAndTouched":[{"__symbolic":"method"}],"hasErrorAndDirty":[{"__symbolic":"method"}],"setEnable":[{"__symbolic":"method"}],"setDisable":[{"__symbolic":"method"}]}},"FormControl":{"__symbolic":"class","arity":2,"extends":{"__symbolic":"reference","module":"@angular/forms","name":"FormControl","line":7,"character":66},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}]}],"setValue":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"patchValue":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"disabledWhile":[{"__symbolic":"method"}],"enabledWhile":[{"__symbolic":"method"}],"mergeValidators":[{"__symbolic":"method"}],"mergeAsyncValidators":[{"__symbolic":"method"}],"markAsTouched":[{"__symbolic":"method"}],"markAsUntouched":[{"__symbolic":"method"}],"markAsPristine":[{"__symbolic":"method"}],"markAsDirty":[{"__symbolic":"method"}],"markAllAsDirty":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"setValidators":[{"__symbolic":"method"}],"setAsyncValidators":[{"__symbolic":"method"}],"validateOn":[{"__symbolic":"method"}],"getError":[{"__symbolic":"method"}],"hasError":[{"__symbolic":"method"}],"setErrors":[{"__symbolic":"method"}],"hasErrorAndTouched":[{"__symbolic":"method"}],"hasErrorAndDirty":[{"__symbolic":"method"}],"setEnable":[{"__symbolic":"method"}],"setDisable":[{"__symbolic":"method"}]}},"FormGroup":{"__symbolic":"class","arity":2,"extends":{"__symbolic":"reference","module":"@angular/forms","name":"FormGroup","line":7,"character":79},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Expression form not supported","line":27,"character":21,"module":"./lib/formGroup"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}]}],"select":[{"__symbolic":"method"}],"getRawValue":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"getControl":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"addControl":[{"__symbolic":"method"}],"removeControl":[{"__symbolic":"method"}],"contains":[{"__symbolic":"method"}],"setControl":[{"__symbolic":"method"}],"setValue":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"patchValue":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"disabledWhile":[{"__symbolic":"method"}],"enabledWhile":[{"__symbolic":"method"}],"mergeValidators":[{"__symbolic":"method"}],"mergeAsyncValidators":[{"__symbolic":"method"}],"markAsTouched":[{"__symbolic":"method"}],"markAsUntouched":[{"__symbolic":"method"}],"markAsPristine":[{"__symbolic":"method"}],"markAsDirty":[{"__symbolic":"method"}],"markAllAsDirty":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"setValidators":[{"__symbolic":"method"}],"setAsyncValidators":[{"__symbolic":"method"}],"validateOn":[{"__symbolic":"method"}],"hasError":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"setErrors":[{"__symbolic":"method"}],"getError":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"hasErrorAndTouched":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"hasErrorAndDirty":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"setEnable":[{"__symbolic":"method"}],"setDisable":[{"__symbolic":"method"}]}},"FormBuilder":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/forms","name":"FormBuilder","line":18,"character":33},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":17,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"group":[{"__symbolic":"method"}],"control":[{"__symbolic":"method"}],"array":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"ɵa":{"__symbolic":"interface"},"ɵb":{"__symbolic":"interface"},"ɵc":{"__symbolic":"interface"},"ɵd":{"__symbolic":"interface"},"ValidatorFn":{"__symbolic":"interface"},"AsyncValidatorFn":{"__symbolic":"interface"},"NgValidatorsErrors":{"__symbolic":"interface"},"ControlValueAccessor":{"__symbolic":"class","arity":1,"members":{"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}]}}},"origins":{"FormArray":"./lib/formArray","FormControl":"./lib/formControl","FormGroup":"./lib/formGroup","FormBuilder":"./lib/formBuilder","ɵa":"./lib/types","ɵb":"./lib/types","ɵc":"./lib/types","ɵd":"./lib/types","ValidatorFn":"./lib/types","AsyncValidatorFn":"./lib/types","NgValidatorsErrors":"./lib/types","ControlValueAccessor":"./lib/controlValueAccessor"},"importAs":"@ngneat/reactive-forms"} |
{ | ||
"name": "@ngneat/reactive-forms", | ||
"description": "(Angular Reactive) Forms with Benefits", | ||
"version": "1.0.0-beta.35", | ||
"version": "1.0.0-beta.40", | ||
"schematics": "./schematics/collection.json", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -5,3 +5,3 @@ export { FormArray } from './lib/formArray'; | ||
export { FormBuilder } from './lib/formBuilder'; | ||
export { AbstractControl, ValidatorFn, AsyncValidatorFn, NgValidatorsErrors } from './lib/types'; | ||
export { ValidatorFn, AsyncValidatorFn, NgValidatorsErrors } from './lib/types'; | ||
export { ControlValueAccessor } from './lib/controlValueAccessor'; |
@@ -23,4 +23,5 @@ "use strict"; | ||
importClause.getChildren().forEach((c) => { | ||
if (!c.elements) | ||
if (!c.elements) { | ||
return; | ||
} | ||
let counter = 0; | ||
@@ -94,6 +95,2 @@ const changes = []; | ||
...controlClasses, | ||
'AbstractControl', | ||
'ValidatorFn', | ||
'AsyncValidatorFn', | ||
'Validators', | ||
'ControlValueAccessor', | ||
@@ -103,3 +100,3 @@ 'FormBuilder' | ||
glob(`${options.path}/**/*.ts`, {}, (er, files) => { | ||
// insertAnyGeneric(files, controlClasses); | ||
insertAnyGeneric(files, controlClasses); | ||
replaceImports(files, importSigns, '@ngneat/reactive-forms', tree); | ||
@@ -106,0 +103,0 @@ Object.entries(addChanges).forEach(([filePath, changes]) => (tree = change_1.applyChanges(tree, filePath, changes))); |
@@ -27,3 +27,5 @@ import { Rule, SchematicContext, Tree, SchematicsException } from '@angular-devkit/schematics'; | ||
importClause.getChildren().forEach((c: any) => { | ||
if (!c.elements) return; | ||
if (!c.elements) { | ||
return; | ||
} | ||
let counter = 0; | ||
@@ -102,6 +104,2 @@ const changes = []; | ||
...controlClasses, | ||
'AbstractControl', | ||
'ValidatorFn', | ||
'AsyncValidatorFn', | ||
'Validators', | ||
'ControlValueAccessor', | ||
@@ -112,3 +110,3 @@ 'FormBuilder' | ||
glob(`${options.path}/**/*.ts`, {}, (er, files) => { | ||
// insertAnyGeneric(files, controlClasses); | ||
insertAnyGeneric(files, controlClasses); | ||
replaceImports(files, importSigns, '@ngneat/reactive-forms', tree); | ||
@@ -115,0 +113,0 @@ Object.entries(addChanges).forEach(([filePath, changes]) => (tree = applyChanges(tree, filePath, changes))); |
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
580946
3944