Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ngneat/reactive-forms

Package Overview
Dependencies
Maintainers
3
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngneat/reactive-forms - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

esm2015/lib/operators/diff.js

63

bundles/ngneat-reactive-forms.umd.js

@@ -340,2 +340,13 @@ (function (global, factory) {

}
function isObjectEmpty(obj) {
return Object.keys(obj).length === 0 && obj.constructor === Object;
}
/**
* @return {boolean} True if arrays are identical.
*/
function compareArraysContent(left, right) {
left = Array.isArray(left) ? left : [];
right = Array.isArray(right) ? right : [];
return left.length === right.length && left.every(function (value) { return right.includes(value); });
}

@@ -1001,3 +1012,54 @@ function getControlValue(control) {

var toArray = function (object) { return Object.keys(object); };
var ɵ0 = toArray;
var isArray = function (value) { return value && Array.isArray(value); };
var ɵ1 = isArray;
var isObject = function (value) { return typeof value === 'object' && value !== null; };
var ɵ2 = isObject;
var isFormArray = function (prev, curr) { return isArray(curr) || isArray(prev); };
var ɵ3 = isFormArray;
var isFormGroup = function (prev, curr) { return isObject(curr) || isObject(prev); };
var ɵ4 = isFormGroup;
var isFormControl = function (prev, curr) { return !isFormArray(prev, curr) && !isFormGroup(prev, curr); };
var ɵ5 = isFormControl;
var convertTypesToArray = function (left, right) { return [left, right]; };
var ɵ6 = convertTypesToArray;
/**
* An operator which is used to filter valueChanges$ output, that it would emit only changed parts.
* @return {MonoTypeOperatorFunction} An Observable that emits items from the source Observable with only changed values.
*/
function diff() {
return function (source$) { return source$.pipe(operators.startWith(undefined), operators.pairwise(), operators.map(function (control) { return reduceControlValue.apply(void 0, __spread(control)); }), operators.filter(function (control) { return control !== undefined; })); };
}
function reduceControlValue(prev, curr) {
if (prev === undefined) {
return curr;
}
if (isFormControl(prev, curr)) {
return prev === curr ? undefined : curr;
}
if (isFormArray(prev, curr)) {
var _a = __read(convertTypesToArray(prev, curr), 2), left = _a[0], right = _a[1];
return compareArraysContent(left, right) ? undefined : curr;
}
return compareFormGroup(prev, curr);
}
function compareFormGroup(prev, curr) {
var reduced = reduceFormGroup(prev, curr);
return toArray(reduced).length === 0 ? undefined : reduced;
}
function reduceFormGroup(prev, curr) {
if (!prev) {
return curr;
}
return toArray(curr).reduce(function (acc, key) {
var control = reduceControlValue(prev[key], curr[key]);
if (control !== undefined) {
acc[key] = control;
}
return acc;
}, {});
}
/**
* Generated bundle index. Do not edit.

@@ -1013,2 +1075,3 @@ */

exports.SessionStorageManager = SessionStorageManager;
exports.diff = diff;

@@ -1015,0 +1078,0 @@ Object.defineProperty(exports, '__esModule', { value: true });

2

bundles/ngneat-reactive-forms.umd.min.js

@@ -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="undefined"!=typeof globalThis?globalThis: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)Object.prototype.hasOwnProperty.call(r,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)}Object.create;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}Object.create;function p(t){return Array.isArray(t)?t:[t]}function c(t){return null==t}function l(t){return e.isObservable(t)||function(t){return"function"==typeof(null==t?void 0:t.then)}(t)?e.from(t):e.of(t)}function y(t,r){return t||r?Object.assign(Object.assign({},t),r):null}function h(t,r){if(!t)return null;var e=Object.assign({},t);return delete e[r],Object.keys(e).length>0?e:null}function f(t){return t.getRawValue?t.getRawValue():t.value}function d(t){return e.merge(e.defer((function(){return e.of(f(t))})),t.valueChanges.pipe(o.map((function(){return f(t)}))))}function g(t){return e.merge(e.defer((function(){return e.of(t.disabled)})),t.statusChanges.pipe(o.map((function(){return t.disabled})),o.distinctUntilChanged()))}function b(t){return e.merge(e.defer((function(){return e.of(t.enabled)})),t.statusChanges.pipe(o.map((function(){return t.enabled})),o.distinctUntilChanged()))}function v(t){return e.merge(e.defer((function(){return e.of(t.status)})),t.statusChanges.pipe(o.map((function(){return t.status})),o.distinctUntilChanged()))}function m(t,r){return e.merge(e.defer((function(){return e.of(t.errors)})),r,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 V(t,r,e){r?t.enable(e):t.disable(e)}function A(t,r,e){V(t,!r,e)}function C(t,r,e){return r.subscribe((function(r){return A(t,r,e)}))}function O(t,r,e){return r.subscribe((function(r){return V(t,r,e)}))}function E(t,r,e){t.setValidators(u([t.validator],p(r))),t.updateValueAndValidity(e)}function j(t,r){return r.subscribe((function(r){t.setErrors(r)}))}function S(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 w(t){t.markAsDirty({onlySelf:!0}),t._forEachChild((function(t){return t.markAllAsDirty()}))}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.errorsSubject=new e.Subject,a.touch$=a.touchChanges.asObservable().pipe(o.distinctUntilChanged()),a.dirty$=a.dirtyChanges.asObservable().pipe(o.distinctUntilChanged()),a.value$=d(a),a.disabled$=g(a),a.enabled$=b(a),a.status$=v(a),a.errors$=m(a,a.errorsSubject.asObservable()),a}return a(r,t),Object.defineProperty(r.prototype,"asyncValidator",{get:function(){return t.prototype.asyncValidator},set:function(r){t.prototype.asyncValidator=r},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"validator",{get:function(){return t.prototype.validator},set:function(r){t.prototype.validator=r},enumerable:!1,configurable:!0}),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 C(this,t,r)},r.prototype.enabledWhile=function(t,r){return O(this,t,r)},r.prototype.mergeValidators=function(t,r){E(this,t,r)},r.prototype.mergeAsyncValidators=function(t,r){this.setAsyncValidators(u([this.asyncValidator],p(t))),this.updateValueAndValidity(r)},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(){w(this)},r.prototype.reset=function(r,e){t.prototype.reset.call(this,r,e)},r.prototype.setValidators=function(r,e){t.prototype.setValidators.call(this,r),t.prototype.updateValueAndValidity.call(this,e)},r.prototype.setAsyncValidators=function(r,e){t.prototype.setAsyncValidators.call(this,r),t.prototype.updateValueAndValidity.call(this,e)},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={}),this.errorsSubject.next(r),t.prototype.setErrors.call(this,r,e)},r.prototype.mergeErrors=function(t,r){void 0===r&&(r={}),this.setErrors(y(this.errors,t),r)},r.prototype.removeError=function(t,r){void 0===r&&(r={}),this.setErrors(h(this.errors,t),r)},r.prototype.getError=function(r,e){return t.prototype.getError.call(this,r,e)},r.prototype.hasErrorAndTouched=function(t,r){return S(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),V(this,t,r)},r.prototype.setDisable=function(t,r){void 0===t&&(t=!0),A(this,t,r)},r.prototype.remove=function(t){this.removeWhen((function(r){return r.value===t}))},r.prototype.removeWhen=function(t){for(var r=this.length-1;r>=0;--r)t(this.at(r))&&this.removeAt(r)},r}(r.FormArray),$=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.errorsSubject=new e.Subject,a.touch$=a.touchChanges.asObservable().pipe(o.distinctUntilChanged()),a.dirty$=a.dirtyChanges.asObservable().pipe(o.distinctUntilChanged()),a.value$=d(a),a.disabled$=g(a),a.enabled$=b(a),a.status$=v(a),a.errors$=m(a,a.errorsSubject.asObservable()),a}return a(r,t),Object.defineProperty(r.prototype,"asyncValidator",{get:function(){return t.prototype.asyncValidator},set:function(r){t.prototype.asyncValidator=r},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"validator",{get:function(){return t.prototype.validator},set:function(r){t.prototype.validator=r},enumerable:!1,configurable:!0}),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 C(this,t,r)},r.prototype.enabledWhile=function(t,r){return O(this,t,r)},r.prototype.mergeValidators=function(t,r){E(this,t,r)},r.prototype.mergeAsyncValidators=function(t,r){this.setAsyncValidators(u([this.asyncValidator],p(t))),this.updateValueAndValidity(r)},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,e){t.prototype.setValidators.call(this,r),t.prototype.updateValueAndValidity.call(this,e)},r.prototype.setAsyncValidators=function(r,e){t.prototype.setAsyncValidators.call(this,r),t.prototype.updateValueAndValidity.call(this,e)},r.prototype.validateOn=function(t){return j(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={}),this.errorsSubject.next(r),t.prototype.setErrors.call(this,r,e)},r.prototype.mergeErrors=function(t,r){void 0===r&&(r={}),this.setErrors(y(this.errors,t),r)},r.prototype.removeError=function(t,r){void 0===r&&(r={}),this.setErrors(h(this.errors,t),r)},r.prototype.hasErrorAndTouched=function(t){return S(this,t)},r.prototype.hasErrorAndDirty=function(t){return k(this,t)},r.prototype.setEnable=function(t,r){void 0===t&&(t=!0),V(this,t,r)},r.prototype.setDisable=function(t,r){void 0===t&&(t=!0),A(this,t,r)},r}(r.FormControl),D=function(){function t(){}return t.prototype.setValue=function(t,r){return localStorage.setItem(t,JSON.stringify(r)),r},t.prototype.getValue=function(t){return JSON.parse(localStorage.getItem(t)||"{}")},t}(),T=function(t){function n(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.errorsSubject=new e.Subject,a.touch$=a.touchChanges.asObservable().pipe(o.distinctUntilChanged()),a.dirty$=a.dirtyChanges.asObservable().pipe(o.distinctUntilChanged()),a.value$=d(a),a.disabled$=g(a),a.enabled$=b(a),a.status$=v(a),a.errors$=m(a,a.errorsSubject.asObservable()),a}return a(n,t),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return t.prototype.asyncValidator},set:function(r){t.prototype.asyncValidator=r},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return t.prototype.validator},set:function(r){t.prototype.validator=r},enumerable:!1,configurable:!0}),n.prototype.select=function(t){return function(t,r){return t.value$.pipe(o.map(r),o.distinctUntilChanged())}(this,t)},n.prototype.getRawValue=function(){return t.prototype.getRawValue.call(this)},n.prototype.get=function(r){return t.prototype.get.call(this,r)},n.prototype.getControl=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return this.get(t)},n.prototype.addControl=function(r,e){t.prototype.addControl.call(this,r,e)},n.prototype.removeControl=function(r){t.prototype.removeControl.call(this,r)},n.prototype.contains=function(r){return t.prototype.contains.call(this,r)},n.prototype.setControl=function(r,e){t.prototype.setControl.call(this,r,e)},n.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)},n.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)},n.prototype.disabledWhile=function(t,r){return C(this,t,r)},n.prototype.enabledWhile=function(t,r){return O(this,t,r)},n.prototype.mergeValidators=function(t,r){E(this,t,r)},n.prototype.mergeAsyncValidators=function(t,r){this.setAsyncValidators(u([this.asyncValidator],p(t))),this.updateValueAndValidity(r)},n.prototype.markAsTouched=function(r){t.prototype.markAsTouched.call(this,r),this.touchChanges.next(!0)},n.prototype.markAsUntouched=function(r){t.prototype.markAsUntouched.call(this,r),this.touchChanges.next(!1)},n.prototype.markAsPristine=function(r){t.prototype.markAsPristine.call(this,r),this.dirtyChanges.next(!1)},n.prototype.markAsDirty=function(r){t.prototype.markAsDirty.call(this,r),this.dirtyChanges.next(!0)},n.prototype.markAllAsDirty=function(){w(this)},n.prototype.reset=function(r,e){t.prototype.reset.call(this,r,e)},n.prototype.setValidators=function(r,e){t.prototype.setValidators.call(this,r),t.prototype.updateValueAndValidity.call(this,e)},n.prototype.setAsyncValidators=function(r,e){t.prototype.setAsyncValidators.call(this,r),t.prototype.updateValueAndValidity.call(this,e)},n.prototype.validateOn=function(t){return j(this,t)},n.prototype.hasError=function(r,e){return t.prototype.hasError.call(this,r,e)},n.prototype.setErrors=function(r,e){return void 0===e&&(e={}),this.errorsSubject.next(r),t.prototype.setErrors.call(this,r,e)},n.prototype.mergeErrors=function(t,r){void 0===r&&(r={}),this.setErrors(y(this.errors,t),r)},n.prototype.removeError=function(t,r){void 0===r&&(r={}),this.setErrors(h(this.errors,t),r)},n.prototype.getError=function(r,e){return t.prototype.getError.call(this,r,e)},n.prototype.hasErrorAndTouched=function(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];return S.apply(void 0,u([this,t],r))},n.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))},n.prototype.setEnable=function(t,r){void 0===t&&(t=!0),V(this,t,r)},n.prototype.setDisable=function(t,r){void 0===t&&(t=!0),A(this,t,r)},n.prototype.persist=function(t,r){var e=this,n=r.debounceTime,i=r.manager,a=r.arrControlFactory,s=r.persistDisabledControls,u=i||new D;return this.restore(t,u,a).pipe(o.switchMap((function(){return function(t,r,e){return t.valueChanges.pipe(o.debounceTime(e.debounceTime),o.switchMap((function(o){return l(e.manager.setValue(r,e.persistDisabledControls?t.getRawValue():o))})))}(e,t,{debounceTime:n||250,manager:u,persistDisabledControls:s})})))},n.prototype.restore=function(t,e,n){var i=this;return l(e.getValue(t)).pipe(o.take(1),o.tap((function(t){t&&(!function(t,e,o){Object.keys(e).forEach((function(n){var i=e[n];if(Array.isArray(i)&&t.get(n)instanceof r.FormArray){if(!o||o&&!(n in o))throw new Error("Please provide arrControlFactory for "+n);var a=t.get(n),s=o[n];!function(t){for(;0!==t.length;)t.removeAt(0)}(a),i.forEach((function(t,r){return a.insert(r,s(t))}))}}))}(i,t,n),i.patchValue(t,{emitEvent:!1}))})))},n}(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 T(o,{asyncValidators:i,updateOn:e,validators:n})},r.prototype.control=function(t,r,e){return new $(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}(r.FormBuilder);U.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new U},token:U,providedIn:"root"}),U.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}];var P=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}(),_=function(){function t(){}return t.prototype.setValue=function(t,r){return sessionStorage.setItem(t,JSON.stringify(r)),r},t.prototype.getValue=function(t){return JSON.parse(sessionStorage.getItem(t)||"{}")},t}();t.ControlValueAccessor=P,t.FormArray=x,t.FormBuilder=U,t.FormControl=$,t.FormGroup=T,t.LocalStorageManager=D,t.SessionStorageManager=_,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)Object.prototype.hasOwnProperty.call(r,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)}Object.create;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}Object.create;function p(t){return Array.isArray(t)?t:[t]}function c(t){return null==t}function l(t){return e.isObservable(t)||function(t){return"function"==typeof(null==t?void 0:t.then)}(t)?e.from(t):e.of(t)}function y(t,r){return t||r?Object.assign(Object.assign({},t),r):null}function f(t,r){if(!t)return null;var e=Object.assign({},t);return delete e[r],Object.keys(e).length>0?e:null}function h(t){return t.getRawValue?t.getRawValue():t.value}function d(t){return e.merge(e.defer((function(){return e.of(h(t))})),t.valueChanges.pipe(o.map((function(){return h(t)}))))}function g(t){return e.merge(e.defer((function(){return e.of(t.disabled)})),t.statusChanges.pipe(o.map((function(){return t.disabled})),o.distinctUntilChanged()))}function b(t){return e.merge(e.defer((function(){return e.of(t.enabled)})),t.statusChanges.pipe(o.map((function(){return t.enabled})),o.distinctUntilChanged()))}function v(t){return e.merge(e.defer((function(){return e.of(t.status)})),t.statusChanges.pipe(o.map((function(){return t.status})),o.distinctUntilChanged()))}function m(t,r){return e.merge(e.defer((function(){return e.of(t.errors)})),r,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 V(t,r,e){r?t.enable(e):t.disable(e)}function A(t,r,e){V(t,!r,e)}function C(t,r,e){return r.subscribe((function(r){return A(t,r,e)}))}function O(t,r,e){return r.subscribe((function(r){return V(t,r,e)}))}function E(t,r,e){t.setValidators(u([t.validator],p(r))),t.updateValueAndValidity(e)}function j(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 S(t,r,e){return t.hasError(r,e&&0!==e.length?e:void 0)&&t.dirty}function w(t){t.markAsDirty({onlySelf:!0}),t._forEachChild((function(t){return t.markAllAsDirty()}))}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.errorsSubject=new e.Subject,a.touch$=a.touchChanges.asObservable().pipe(o.distinctUntilChanged()),a.dirty$=a.dirtyChanges.asObservable().pipe(o.distinctUntilChanged()),a.value$=d(a),a.disabled$=g(a),a.enabled$=b(a),a.status$=v(a),a.errors$=m(a,a.errorsSubject.asObservable()),a}return a(r,t),Object.defineProperty(r.prototype,"asyncValidator",{get:function(){return t.prototype.asyncValidator},set:function(r){t.prototype.asyncValidator=r},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"validator",{get:function(){return t.prototype.validator},set:function(r){t.prototype.validator=r},enumerable:!1,configurable:!0}),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 C(this,t,r)},r.prototype.enabledWhile=function(t,r){return O(this,t,r)},r.prototype.mergeValidators=function(t,r){E(this,t,r)},r.prototype.mergeAsyncValidators=function(t,r){this.setAsyncValidators(u([this.asyncValidator],p(t))),this.updateValueAndValidity(r)},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(){w(this)},r.prototype.reset=function(r,e){t.prototype.reset.call(this,r,e)},r.prototype.setValidators=function(r,e){t.prototype.setValidators.call(this,r),t.prototype.updateValueAndValidity.call(this,e)},r.prototype.setAsyncValidators=function(r,e){t.prototype.setAsyncValidators.call(this,r),t.prototype.updateValueAndValidity.call(this,e)},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={}),this.errorsSubject.next(r),t.prototype.setErrors.call(this,r,e)},r.prototype.mergeErrors=function(t,r){void 0===r&&(r={}),this.setErrors(y(this.errors,t),r)},r.prototype.removeError=function(t,r){void 0===r&&(r={}),this.setErrors(f(this.errors,t),r)},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 S(this,t,r)},r.prototype.setEnable=function(t,r){void 0===t&&(t=!0),V(this,t,r)},r.prototype.setDisable=function(t,r){void 0===t&&(t=!0),A(this,t,r)},r.prototype.remove=function(t){this.removeWhen((function(r){return r.value===t}))},r.prototype.removeWhen=function(t){for(var r=this.length-1;r>=0;--r)t(this.at(r))&&this.removeAt(r)},r}(r.FormArray),$=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.errorsSubject=new e.Subject,a.touch$=a.touchChanges.asObservable().pipe(o.distinctUntilChanged()),a.dirty$=a.dirtyChanges.asObservable().pipe(o.distinctUntilChanged()),a.value$=d(a),a.disabled$=g(a),a.enabled$=b(a),a.status$=v(a),a.errors$=m(a,a.errorsSubject.asObservable()),a}return a(r,t),Object.defineProperty(r.prototype,"asyncValidator",{get:function(){return t.prototype.asyncValidator},set:function(r){t.prototype.asyncValidator=r},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"validator",{get:function(){return t.prototype.validator},set:function(r){t.prototype.validator=r},enumerable:!1,configurable:!0}),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 C(this,t,r)},r.prototype.enabledWhile=function(t,r){return O(this,t,r)},r.prototype.mergeValidators=function(t,r){E(this,t,r)},r.prototype.mergeAsyncValidators=function(t,r){this.setAsyncValidators(u([this.asyncValidator],p(t))),this.updateValueAndValidity(r)},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,e){t.prototype.setValidators.call(this,r),t.prototype.updateValueAndValidity.call(this,e)},r.prototype.setAsyncValidators=function(r,e){t.prototype.setAsyncValidators.call(this,r),t.prototype.updateValueAndValidity.call(this,e)},r.prototype.validateOn=function(t){return j(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={}),this.errorsSubject.next(r),t.prototype.setErrors.call(this,r,e)},r.prototype.mergeErrors=function(t,r){void 0===r&&(r={}),this.setErrors(y(this.errors,t),r)},r.prototype.removeError=function(t,r){void 0===r&&(r={}),this.setErrors(f(this.errors,t),r)},r.prototype.hasErrorAndTouched=function(t){return k(this,t)},r.prototype.hasErrorAndDirty=function(t){return S(this,t)},r.prototype.setEnable=function(t,r){void 0===t&&(t=!0),V(this,t,r)},r.prototype.setDisable=function(t,r){void 0===t&&(t=!0),A(this,t,r)},r}(r.FormControl),D=function(){function t(){}return t.prototype.setValue=function(t,r){return localStorage.setItem(t,JSON.stringify(r)),r},t.prototype.getValue=function(t){return JSON.parse(localStorage.getItem(t)||"{}")},t}(),T=function(t){function n(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.errorsSubject=new e.Subject,a.touch$=a.touchChanges.asObservable().pipe(o.distinctUntilChanged()),a.dirty$=a.dirtyChanges.asObservable().pipe(o.distinctUntilChanged()),a.value$=d(a),a.disabled$=g(a),a.enabled$=b(a),a.status$=v(a),a.errors$=m(a,a.errorsSubject.asObservable()),a}return a(n,t),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return t.prototype.asyncValidator},set:function(r){t.prototype.asyncValidator=r},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return t.prototype.validator},set:function(r){t.prototype.validator=r},enumerable:!1,configurable:!0}),n.prototype.select=function(t){return function(t,r){return t.value$.pipe(o.map(r),o.distinctUntilChanged())}(this,t)},n.prototype.getRawValue=function(){return t.prototype.getRawValue.call(this)},n.prototype.get=function(r){return t.prototype.get.call(this,r)},n.prototype.getControl=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return this.get(t)},n.prototype.addControl=function(r,e){t.prototype.addControl.call(this,r,e)},n.prototype.removeControl=function(r){t.prototype.removeControl.call(this,r)},n.prototype.contains=function(r){return t.prototype.contains.call(this,r)},n.prototype.setControl=function(r,e){t.prototype.setControl.call(this,r,e)},n.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)},n.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)},n.prototype.disabledWhile=function(t,r){return C(this,t,r)},n.prototype.enabledWhile=function(t,r){return O(this,t,r)},n.prototype.mergeValidators=function(t,r){E(this,t,r)},n.prototype.mergeAsyncValidators=function(t,r){this.setAsyncValidators(u([this.asyncValidator],p(t))),this.updateValueAndValidity(r)},n.prototype.markAsTouched=function(r){t.prototype.markAsTouched.call(this,r),this.touchChanges.next(!0)},n.prototype.markAsUntouched=function(r){t.prototype.markAsUntouched.call(this,r),this.touchChanges.next(!1)},n.prototype.markAsPristine=function(r){t.prototype.markAsPristine.call(this,r),this.dirtyChanges.next(!1)},n.prototype.markAsDirty=function(r){t.prototype.markAsDirty.call(this,r),this.dirtyChanges.next(!0)},n.prototype.markAllAsDirty=function(){w(this)},n.prototype.reset=function(r,e){t.prototype.reset.call(this,r,e)},n.prototype.setValidators=function(r,e){t.prototype.setValidators.call(this,r),t.prototype.updateValueAndValidity.call(this,e)},n.prototype.setAsyncValidators=function(r,e){t.prototype.setAsyncValidators.call(this,r),t.prototype.updateValueAndValidity.call(this,e)},n.prototype.validateOn=function(t){return j(this,t)},n.prototype.hasError=function(r,e){return t.prototype.hasError.call(this,r,e)},n.prototype.setErrors=function(r,e){return void 0===e&&(e={}),this.errorsSubject.next(r),t.prototype.setErrors.call(this,r,e)},n.prototype.mergeErrors=function(t,r){void 0===r&&(r={}),this.setErrors(y(this.errors,t),r)},n.prototype.removeError=function(t,r){void 0===r&&(r={}),this.setErrors(f(this.errors,t),r)},n.prototype.getError=function(r,e){return t.prototype.getError.call(this,r,e)},n.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))},n.prototype.hasErrorAndDirty=function(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];return S.apply(void 0,u([this,t],r))},n.prototype.setEnable=function(t,r){void 0===t&&(t=!0),V(this,t,r)},n.prototype.setDisable=function(t,r){void 0===t&&(t=!0),A(this,t,r)},n.prototype.persist=function(t,r){var e=this,n=r.debounceTime,i=r.manager,a=r.arrControlFactory,s=r.persistDisabledControls,u=i||new D;return this.restore(t,u,a).pipe(o.switchMap((function(){return function(t,r,e){return t.valueChanges.pipe(o.debounceTime(e.debounceTime),o.switchMap((function(o){return l(e.manager.setValue(r,e.persistDisabledControls?t.getRawValue():o))})))}(e,t,{debounceTime:n||250,manager:u,persistDisabledControls:s})})))},n.prototype.restore=function(t,e,n){var i=this;return l(e.getValue(t)).pipe(o.take(1),o.tap((function(t){t&&(!function(t,e,o){Object.keys(e).forEach((function(n){var i=e[n];if(Array.isArray(i)&&t.get(n)instanceof r.FormArray){if(!o||o&&!(n in o))throw new Error("Please provide arrControlFactory for "+n);var a=t.get(n),s=o[n];!function(t){for(;0!==t.length;)t.removeAt(0)}(a),i.forEach((function(t,r){return a.insert(r,s(t))}))}}))}(i,t,n),i.patchValue(t,{emitEvent:!1}))})))},n}(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 T(o,{asyncValidators:i,updateOn:e,validators:n})},r.prototype.control=function(t,r,e){return new $(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}(r.FormBuilder);U.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new U},token:U,providedIn:"root"}),U.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}];var P=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}(),_=function(){function t(){}return t.prototype.setValue=function(t,r){return sessionStorage.setItem(t,JSON.stringify(r)),r},t.prototype.getValue=function(t){return JSON.parse(sessionStorage.getItem(t)||"{}")},t}(),F=function(t){return Object.keys(t)},W=function(t){return t&&Array.isArray(t)},I=function(t){return"object"==typeof t&&null!==t},R=function(t,r){return W(r)||W(t)},J=function(t,r){return I(r)||I(t)},N=function(t,r){return!R(t,r)&&!J(t,r)},M=function(t,r){return[t,r]};function q(t,r){if(void 0===t)return r;if(N(t,r))return t===r?void 0:r;if(R(t,r)){var e=s(M(t,r),2);return function(t,r){return t=Array.isArray(t)?t:[],r=Array.isArray(r)?r:[],t.length===r.length&&t.every((function(t){return r.includes(t)}))}(e[0],e[1])?void 0:r}return function(t,r){var e=function(t,r){if(!t)return r;return F(r).reduce((function(e,o){var n=q(t[o],r[o]);return void 0!==n&&(e[o]=n),e}),{})}(t,r);return 0===F(e).length?void 0:e}(t,r)}t.ControlValueAccessor=P,t.FormArray=x,t.FormBuilder=U,t.FormControl=$,t.FormGroup=T,t.LocalStorageManager=D,t.SessionStorageManager=_,t.diff=function(){return function(t){return t.pipe(o.startWith(void 0),o.pairwise(),o.map((function(t){return q.apply(void 0,u(t))})),o.filter((function(t){return void 0!==t})))}},Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=ngneat-reactive-forms.umd.min.js.map

@@ -95,2 +95,2 @@ import { FormArray as NgFormArray } from '@angular/forms';

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbC1hY3Rpb25zLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9uZXRhbmVsYmFzYWwvd3d3L3JlYWN0aXZlLWZvcm1zL3Byb2plY3RzL25nbmVhdC9yZWFjdGl2ZS1mb3Jtcy9zcmMvIiwic291cmNlcyI6WyJsaWIvY29udHJvbC1hY3Rpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBb0IsU0FBUyxJQUFJLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzVFLE9BQU8sRUFBRSxLQUFLLEVBQUUsS0FBSyxFQUFjLEVBQUUsRUFBZ0IsTUFBTSxNQUFNLENBQUM7QUFDbEUsT0FBTyxFQUFFLG9CQUFvQixFQUFFLEdBQUcsRUFBRSxZQUFZLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFjcEYsT0FBTyxFQUFFLFdBQVcsRUFBRSxLQUFLLEVBQUUsa0JBQWtCLEVBQUUsTUF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jpbImltcG9ydCB7IENvbnRyb2xWYWx1ZUFjY2Vzc29yIGFzIE5nQ29udHJvbFZhbHVlQWNjZXNzb3IgfSBmcm9tICdAYW5ndWxhci9mb3Jtcyc7XG5cbmV4cG9ydCBhYnN0cmFjdCBjbGFzcyBDb250cm9sVmFsdWVBY2Nlc3NvcjxUID0gYW55PiBpbXBsZW1lbnRzIE5nQ29udHJvbFZhbHVlQWNjZXNzb3Ige1xuICBhYnN0cmFjdCB3cml0ZVZhbHVlKHZhbHVlOiBUKTogdm9pZDtcblxuICBvbkNoYW5nZT8gPSAodmFsdWU6IFQgfCBudWxsKSA9PiB7fTtcbiAgb25Ub3VjaGVkPyA9ICgpID0+IHt9O1xuXG4gIHJlZ2lzdGVyT25DaGFuZ2UoZm46ICh2YWx1ZTogVCB8IG51bGwpID0+IHZvaWQpOiB2b2lkIHtcbiAgICB0aGlzLm9uQ2hhbmdlID0gZm47XG4gIH1cblxuICByZWdpc3Rlck9uVG91Y2hlZChmbjogKCkgPT4gdm9pZCk6IHZvaWQge1xuICAgIHRoaXMub25Ub3VjaGVkID0gZm47XG4gIH1cbn1cbiJdfQ==

@@ -150,2 +150,2 @@ import { FormArray as NgFormArray } from '@angular/forms';

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybUFycmF5LmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9uZXRhbmVsYmFzYWwvd3d3L3JlYWN0aXZlLWZvcm1zL3Byb2plY3RzL25nbmVhdC9yZWFjdGl2ZS1mb3Jtcy9zcmMvIiwic291cmNlcyI6WyJsaWIvZm9ybUFycmF5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLElBQUksV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDMUQsT0FBTyxFQUFFLFlBQVksRUFBYyxPQUFPLEVBQWdCLE1BQU0sTUFBTSxDQUFDO0FBQ3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ZXJyb3JzKSwgb3B0cyk7XG4gIH1cblxuICByZW1vdmVFcnJvcihrZXk6IGtleW9mIEUsIG9wdHM6IEVtaXRFdmVudCA9IHt9KTogdm9pZCB7XG4gICAgdGhpcy5zZXRFcnJvcnMocmVtb3ZlRXJyb3I8RT4odGhpcy5lcnJvcnMsIGtleSksIG9wdHMpO1xuICB9XG5cbiAgaGFzRXJyb3JBbmRUb3VjaGVkKGVycm9yOiBFeHRyYWN0U3RyaW5nczxFPik6IGJvb2xlYW4ge1xuICAgIHJldHVybiBoYXNFcnJvckFuZFRvdWNoZWQodGhpcywgZXJyb3IpO1xuICB9XG5cbiAgaGFzRXJyb3JBbmREaXJ0eShlcnJvcjogRXh0cmFjdFN0cmluZ3M8RT4pOiBib29sZWFuIHtcbiAgICByZXR1cm4gaGFzRXJyb3JBbmREaXJ0eSh0aGlzLCBlcnJvcik7XG4gIH1cblxuICBzZXRFbmFibGUoZW5hYmxlID0gdHJ1ZSwgb3B0cz86IENvbnRyb2xFdmVudE9wdGlvbnMpIHtcbiAgICBlbmFibGVDb250cm9sKHRoaXMsIGVuYWJsZSwgb3B0cyk7XG4gIH1cblxuICBzZXREaXNhYmxlKGRpc2FibGUgPSB0cnVlLCBvcHRzPzogQ29udHJvbEV2ZW50T3B0aW9ucykge1xuICAgIGRpc2FibGVDb250cm9sKHRoaXMsIGRpc2FibGUsIG9wdHMpO1xuICB9XG59XG4iXX0=

@@ -161,2 +161,2 @@ import { FormGroup as NgFormGroup } from '@angular/forms';

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybUdyb3VwLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9uZXRhbmVsYmFzYWwvd3d3L3JlYWN0aXZlLWZvcm1zL3Byb2plY3RzL25nbmVhdC9yZWFjdGl2ZS1mb3Jtcy9zcmMvIiwic291cmNlcyI6WyJsaWIvZm9ybUdyb3VwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ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IjpbImltcG9ydCB7IFBlcnNpc3RNYW5hZ2VyIH0gZnJvbSAnLi9wZXJzaXN0TWFuYWdlcic7XG5cbmV4cG9ydCBjbGFzcyBMb2NhbFN0b3JhZ2VNYW5hZ2VyPFQ+IGltcGxlbWVudHMgUGVyc2lzdE1hbmFnZXI8VD4ge1xuICBzZXRWYWx1ZShrZXk6IHN0cmluZywgZGF0YTogVCk6IFQge1xuICAgIGxvY2FsU3RvcmFnZS5zZXRJdGVtKGtleSwgSlNPTi5zdHJpbmdpZnkoZGF0YSkpO1xuICAgIHJldHVybiBkYXRhO1xuICB9XG5cbiAgZ2V0VmFsdWUoa2V5OiBzdHJpbmcpOiBUIHtcbiAgICByZXR1cm4gSlNPTi5wYXJzZShsb2NhbFN0b3JhZ2UuZ2V0SXRlbShrZXkpIHx8ICd7fScpO1xuICB9XG59XG4iXX0=
export {};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGVyc2lzdE1hbmFnZXIuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL25ldGFuZWxiYXNhbC93d3cvcmVhY3RpdmUtZm9ybXMvcHJvamVjdHMvbmduZWF0L3JlYWN0aXZlLWZvcm1zL3NyYy8iLCJzb3VyY2VzIjpbImxpYi9wZXJzaXN0TWFuYWdlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgT2JzZXJ2YWJsZSB9IGZyb20gJ3J4anMnO1xuXG5leHBvcnQgaW50ZXJmYWNlIFBlcnNpc3RNYW5hZ2VyPFQ+IHtcbiAgc2V0VmFsdWUoa2V5OiBzdHJpbmcsIGRhdGE6IFQpOiBUIHwgUHJvbWlzZTxUPiB8IE9ic2VydmFibGU8VD47XG4gIGdldFZhbHVlKGtleTogc3RyaW5nKTogVCB8IFByb21pc2U8VD4gfCBPYnNlcnZhYmxlPFQ+O1xufVxuIl19
//# sourceMappingURL=data:application/json;base64,e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LCB0b0FkZDogUGFydGlhbDxFPikge1xuICBpZiAoIWV4aXN0aW5nICYmICF0b0FkZCkge1xuICAgIHJldHVybiBudWxsO1xuICB9XG4gIHJldHVybiB7XG4gICAgLi4uZXhpc3RpbmcsXG4gICAgLi4udG9BZGRcbiAgfTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHJlbW92ZUVycm9yPEU+KGVycm9yczogRSwga2V5OiBrZXlvZiBFKSB7XG4gIGlmICghZXJyb3JzKSB7XG4gICAgcmV0dXJuIG51bGw7XG4gIH1cbiAgY29uc3QgdXBkYXRlZEVycm9ycyA9IHtcbiAgICAuLi5lcnJvcnNcbiAgfTtcbiAgZGVsZXRlIHVwZGF0ZWRFcnJvcnNba2V5XTtcbiAgcmV0dXJuIE9iamVjdC5rZXlzKHVwZGF0ZWRFcnJvcnMpLmxlbmd0aCA+IDAgPyB1cGRhdGVkRXJyb3JzIDogbnVsbDtcbn1cbiJdfQ==
export function isObjectEmpty(obj) {
return Object.keys(obj).length === 0 && obj.constructor === Object;
}
/**
* @return {boolean} True if arrays are identical.
*/
export function compareArraysContent(left, right) {
left = Array.isArray(left) ? left : [];
right = Array.isArray(right) ? right : [];
return left.length === right.length && left.every(value => right.includes(value));
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ25lYXQvcmVhY3RpdmUtZm9ybXMvc3JjL2xpYi91dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFFLFlBQVksRUFBYyxFQUFFLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFFMUQsTUFBTSxVQUFVLFdBQVcsQ0FBSSxLQUFjO0lBQzNDLE9BQU8sS0FBSyxDQUFDLE9BQU8sQ0FBQyxLQUFLLENBQUMsQ0FBQy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M6IEUsIGtleToga2V5b2YgRSkge1xuICBpZiAoIWVycm9ycykge1xuICAgIHJldHVybiBudWxsO1xuICB9XG4gIGNvbnN0IHVwZGF0ZWRFcnJvcnMgPSB7XG4gICAgLi4uZXJyb3JzXG4gIH07XG4gIGRlbGV0ZSB1cGRhdGVkRXJyb3JzW2tleV07XG4gIHJldHVybiBPYmplY3Qua2V5cyh1cGRhdGVkRXJyb3JzKS5sZW5ndGggPiAwID8gdXBkYXRlZEVycm9ycyA6IG51bGw7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc09iamVjdEVtcHR5KG9iaikge1xuICByZXR1cm4gT2JqZWN0LmtleXMob2JqKS5sZW5ndGggPT09IDAgJiYgb2JqLmNvbnN0cnVjdG9yID09PSBPYmplY3Q7XG59XG5cbi8qKlxuICogQHJldHVybiB7Ym9vbGVhbn0gVHJ1ZSBpZiBhcnJheXMgYXJlIGlkZW50aWNhbC5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGNvbXBhcmVBcnJheXNDb250ZW50PFQgZXh0ZW5kcyBbXT4obGVmdDogVCwgcmlnaHQ6IFQpOiBib29sZWFuIHtcbiAgbGVmdCA9IEFycmF5LmlzQXJyYXkobGVmdCkgPyBsZWZ0IDogKFtdIGFzIFQpO1xuICByaWdodCA9IEFycmF5LmlzQXJyYXkocmlnaHQpID8gcmlnaHQgOiAoW10gYXMgVCk7XG4gIHJldHVybiBsZWZ0Lmxlbmd0aCA9PT0gcmlnaHQubGVuZ3RoICYmIGxlZnQuZXZlcnkodmFsdWUgPT4gcmlnaHQuaW5jbHVkZXModmFsdWUpKTtcbn1cbiJdfQ==

@@ -5,2 +5,2 @@ /**

export * from './public-api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmduZWF0LXJlYWN0aXZlLWZvcm1zLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9uZXRhbmVsYmFzYWwvd3d3L3JlYWN0aXZlLWZvcm1zL3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Mm1YyxWYWxpZGF0b3JPck9wdHMgYXMgybVhfSBmcm9tICcuL2xpYi90eXBlcyc7Il19

@@ -8,2 +8,3 @@ export { FormArray } from './lib/formArray';

export { SessionStorageManager } from './lib/sessionStorageManager';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvVXNlcnMvbmV0YW5lbGJhc2FsL3d3dy9yZWFjdGl2ZS1mb3Jtcy9wcm9qZWN0cy9uZ25lYXQvcmVhY3RpdmUtZm9ybXMvc3JjLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDNUMsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2hELE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUM1QyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFZaEQsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFFbEUsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDaEUsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sNkJBQTZCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBGb3JtQXJyYXkgfSBmcm9tICcuL2xpYi9mb3JtQXJyYXknO1xuZXhwb3J0IHsgRm9ybUNvbnRyb2wgfSBmcm9tICcuL2xpYi9mb3JtQ29udHJvbCc7XG5leHBvcnQgeyBGb3JtR3JvdXAgfSBmcm9tICcuL2xpYi9mb3JtR3JvdXAnO1xuZXhwb3J0IHsgRm9ybUJ1aWxkZXIgfSBmcm9tICcuL2xpYi9m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hZ2VNYW5hZ2VyJztcbmV4cG9ydCB7IFNlc3Npb25TdG9yYWdlTWFuYWdlciB9IGZyb20gJy4vbGliL3Nlc3Npb25TdG9yYWdlTWFuYWdlcic7XG5leHBvcnQgeyBkaWZmIH0gZnJvbSAnLi9saWIvb3BlcmF0b3JzL2RpZmYnO1xuIl19
import { FormArray as FormArray$1, FormControl as FormControl$1, FormGroup as FormGroup$1, FormBuilder as FormBuilder$1 } from '@angular/forms';
import { isObservable, from, of, merge, defer, Subject } from 'rxjs';
import { map, distinctUntilChanged, debounceTime, switchMap, take, tap } from 'rxjs/operators';
import { map, distinctUntilChanged, debounceTime, switchMap, take, tap, startWith, pairwise, filter } from 'rxjs/operators';
import { ɵɵdefineInjectable, Injectable } from '@angular/core';

@@ -38,2 +38,13 @@

}
function isObjectEmpty(obj) {
return Object.keys(obj).length === 0 && obj.constructor === Object;
}
/**
* @return {boolean} True if arrays are identical.
*/
function compareArraysContent(left, right) {
left = Array.isArray(left) ? left : [];
right = Array.isArray(right) ? right : [];
return left.length === right.length && left.every(value => right.includes(value));
}

@@ -616,7 +627,58 @@ function getControlValue(control) {

const toArray = object => Object.keys(object);
const ɵ0 = toArray;
const isArray = (value) => value && Array.isArray(value);
const ɵ1 = isArray;
const isObject = (value) => typeof value === 'object' && value !== null;
const ɵ2 = isObject;
const isFormArray = (prev, curr) => isArray(curr) || isArray(prev);
const ɵ3 = isFormArray;
const isFormGroup = (prev, curr) => isObject(curr) || isObject(prev);
const ɵ4 = isFormGroup;
const isFormControl = (prev, curr) => !isFormArray(prev, curr) && !isFormGroup(prev, curr);
const ɵ5 = isFormControl;
const convertTypesToArray = (left, right) => [left, right];
const ɵ6 = convertTypesToArray;
/**
* An operator which is used to filter valueChanges$ output, that it would emit only changed parts.
* @return {MonoTypeOperatorFunction} An Observable that emits items from the source Observable with only changed values.
*/
function diff() {
return (source$) => source$.pipe(startWith(undefined), pairwise(), map(control => reduceControlValue(...control)), filter(control => control !== undefined));
}
function reduceControlValue(prev, curr) {
if (prev === undefined) {
return curr;
}
if (isFormControl(prev, curr)) {
return prev === curr ? undefined : curr;
}
if (isFormArray(prev, curr)) {
const [left, right] = convertTypesToArray(prev, curr);
return compareArraysContent(left, right) ? undefined : curr;
}
return compareFormGroup(prev, curr);
}
function compareFormGroup(prev, curr) {
const reduced = reduceFormGroup(prev, curr);
return toArray(reduced).length === 0 ? undefined : reduced;
}
function reduceFormGroup(prev, curr) {
if (!prev) {
return curr;
}
return toArray(curr).reduce((acc, key) => {
const control = reduceControlValue(prev[key], curr[key]);
if (control !== undefined) {
acc[key] = control;
}
return acc;
}, {});
}
/**
* Generated bundle index. Do not edit.
*/
export { ControlValueAccessor, FormArray, FormBuilder, FormControl, FormGroup, LocalStorageManager, SessionStorageManager };
export { ControlValueAccessor, FormArray, FormBuilder, FormControl, FormGroup, LocalStorageManager, SessionStorageManager, diff };
//# sourceMappingURL=ngneat-reactive-forms.js.map

@@ -9,1 +9,6 @@ import { Observable } from 'rxjs';

export declare function removeError<E>(errors: E, key: keyof E): E;
export declare function isObjectEmpty(obj: any): boolean;
/**
* @return {boolean} True if arrays are identical.
*/
export declare function compareArraysContent<T extends []>(left: T, right: T): boolean;

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"FormArray":{"__symbolic":"class","arity":2,"extends":{"__symbolic":"reference","module":"@angular/forms","name":"FormArray","line":38,"character":64},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"ɵd"}]},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}]}],"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"}],"mergeErrors":[{"__symbolic":"method"}],"removeError":[{"__symbolic":"method"}],"getError":[{"__symbolic":"method"}],"hasErrorAndTouched":[{"__symbolic":"method"}],"hasErrorAndDirty":[{"__symbolic":"method"}],"setEnable":[{"__symbolic":"method"}],"setDisable":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}],"removeWhen":[{"__symbolic":"method"}]}},"FormControl":{"__symbolic":"class","arity":2,"extends":{"__symbolic":"reference","module":"@angular/forms","name":"FormControl","line":35,"character":66},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵc"},{"__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"}],"mergeErrors":[{"__symbolic":"method"}],"removeError":[{"__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":48,"character":76},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵe"},{"__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"},{"__symbolic":"method"}],"getControl":[{"__symbolic":"method"},{"__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"}],"mergeErrors":[{"__symbolic":"method"}],"removeError":[{"__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"}],"persist":[{"__symbolic":"method"}],"restore":[{"__symbolic":"method"}]}},"FormBuilder":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/forms","name":"FormBuilder","line":35,"character":33},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":34,"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"},"ɵe":{"__symbolic":"interface"},"AbstractControl":{"__symbolic":"interface"},"ValidatorFn":{"__symbolic":"interface"},"AsyncValidatorFn":{"__symbolic":"interface"},"NgValidatorsErrors":{"__symbolic":"interface"},"ControlFactory":{"__symbolic":"interface"},"ControlFactoryMap":{"__symbolic":"interface"},"PersistOptions":{"__symbolic":"interface"},"ControlOf":{"__symbolic":"interface"},"ControlsOf":{"__symbolic":"interface"},"ControlValueAccessor":{"__symbolic":"class","arity":1,"members":{"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}]}},"PersistManager":{"__symbolic":"interface"},"LocalStorageManager":{"__symbolic":"class","arity":1,"members":{"setValue":[{"__symbolic":"method"}],"getValue":[{"__symbolic":"method"}]}},"SessionStorageManager":{"__symbolic":"class","arity":1,"members":{"setValue":[{"__symbolic":"method"}],"getValue":[{"__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","ɵe":"./lib/types","AbstractControl":"./lib/types","ValidatorFn":"./lib/types","AsyncValidatorFn":"./lib/types","NgValidatorsErrors":"./lib/types","ControlFactory":"./lib/types","ControlFactoryMap":"./lib/types","PersistOptions":"./lib/types","ControlOf":"./lib/types","ControlsOf":"./lib/types","ControlValueAccessor":"./lib/controlValueAccessor","PersistManager":"./lib/persistManager","LocalStorageManager":"./lib/localStorageManager","SessionStorageManager":"./lib/sessionStorageManager"},"importAs":"@ngneat/reactive-forms"}
{"__symbolic":"module","version":4,"metadata":{"FormArray":{"__symbolic":"class","arity":2,"extends":{"__symbolic":"reference","module":"@angular/forms","name":"FormArray","line":38,"character":64},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"ɵd"}]},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}]}],"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"}],"mergeErrors":[{"__symbolic":"method"}],"removeError":[{"__symbolic":"method"}],"getError":[{"__symbolic":"method"}],"hasErrorAndTouched":[{"__symbolic":"method"}],"hasErrorAndDirty":[{"__symbolic":"method"}],"setEnable":[{"__symbolic":"method"}],"setDisable":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}],"removeWhen":[{"__symbolic":"method"}]}},"FormControl":{"__symbolic":"class","arity":2,"extends":{"__symbolic":"reference","module":"@angular/forms","name":"FormControl","line":35,"character":66},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵc"},{"__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"}],"mergeErrors":[{"__symbolic":"method"}],"removeError":[{"__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":48,"character":76},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵe"},{"__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"},{"__symbolic":"method"}],"getControl":[{"__symbolic":"method"},{"__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"}],"mergeErrors":[{"__symbolic":"method"}],"removeError":[{"__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"}],"persist":[{"__symbolic":"method"}],"restore":[{"__symbolic":"method"}]}},"FormBuilder":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/forms","name":"FormBuilder","line":35,"character":33},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":34,"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"},"ɵe":{"__symbolic":"interface"},"AbstractControl":{"__symbolic":"interface"},"ValidatorFn":{"__symbolic":"interface"},"AsyncValidatorFn":{"__symbolic":"interface"},"NgValidatorsErrors":{"__symbolic":"interface"},"ControlFactory":{"__symbolic":"interface"},"ControlFactoryMap":{"__symbolic":"interface"},"PersistOptions":{"__symbolic":"interface"},"ControlOf":{"__symbolic":"interface"},"ControlsOf":{"__symbolic":"interface"},"ControlValueAccessor":{"__symbolic":"class","arity":1,"members":{"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}]}},"PersistManager":{"__symbolic":"interface"},"LocalStorageManager":{"__symbolic":"class","arity":1,"members":{"setValue":[{"__symbolic":"method"}],"getValue":[{"__symbolic":"method"}]}},"SessionStorageManager":{"__symbolic":"class","arity":1,"members":{"setValue":[{"__symbolic":"method"}],"getValue":[{"__symbolic":"method"}]}},"diff":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"error","message":"Lambda not supported","line":17,"character":9,"module":"./lib/operators/diff"}}},"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","ɵe":"./lib/types","AbstractControl":"./lib/types","ValidatorFn":"./lib/types","AsyncValidatorFn":"./lib/types","NgValidatorsErrors":"./lib/types","ControlFactory":"./lib/types","ControlFactoryMap":"./lib/types","PersistOptions":"./lib/types","ControlOf":"./lib/types","ControlsOf":"./lib/types","ControlValueAccessor":"./lib/controlValueAccessor","PersistManager":"./lib/persistManager","LocalStorageManager":"./lib/localStorageManager","SessionStorageManager":"./lib/sessionStorageManager","diff":"./lib/operators/diff"},"importAs":"@ngneat/reactive-forms"}
{
"name": "@ngneat/reactive-forms",
"description": "(Angular Reactive) Forms with Benefits",
"version": "1.6.0",
"version": "1.6.1",
"schematics": "./schematics/collection.json",

@@ -6,0 +6,0 @@ "keywords": [

@@ -10,1 +10,2 @@ export { FormArray } from './lib/formArray';

export { SessionStorageManager } from './lib/sessionStorageManager';
export { diff } from './lib/operators/diff';

@@ -26,2 +26,4 @@ <p align="center">

✅ Offers (almost) seamless `FormControl`, `FormGroup`, `FormArray` Replacement<br>

@@ -45,2 +47,3 @@ ✅ Allows Typed Forms! <br>

- [Control Errors](#control-errors)
- [Control Operators](#control-operators)
- [ControlValueAccessor](#controlvalueaccessor)

@@ -84,3 +87,3 @@ - [Form Builder](#form-builder)

```ts
import { FormGroup } from '@ngneat/reactive-forms';
import { FormGroup, FormControl } from '@ngneat/reactive-forms';

@@ -114,3 +117,3 @@ interface Profile {

```ts
import { FormGroup } from '@ngneat/reactive-forms';
import { FormGroup, FormControl } from '@ngneat/reactive-forms';

@@ -476,3 +479,24 @@ interface ProfileControls {

```
## Control Operators
Each `valueChanges` or `values$` takes an operator `diff()`, which emits only changed parts of form:
```ts
import { FormGroup, FormControl, diff } from '@ngneat/reactive-forms';
const control = new FormGroup<string>({
name: new FormControl(''),
phone: new FormGroup({
num: new FormControl(),
prefix: new FormControl()
}),
skills: new FormArray([])
});
control.value$
.pipe(diff())
.subscribe(value => {
// value is emitted only if it has been changed, and only the changed parts.
});
```
## ControlValueAccessor

@@ -479,0 +503,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc