@ngrx/store
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -633,4 +633,5 @@ var __extends = (this && this.__extends) || (function () { | ||
* @param {?} scannedActions$ | ||
* @param {?} store | ||
*/ | ||
function StoreRootModule(actions$, reducer$, scannedActions$) { | ||
function StoreRootModule(actions$, reducer$, scannedActions$, store) { | ||
} | ||
@@ -647,2 +648,3 @@ return StoreRootModule; | ||
{ type: ScannedActionsSubject, }, | ||
{ type: Store, }, | ||
]; }; | ||
@@ -654,4 +656,5 @@ var StoreFeatureModule = (function () { | ||
* @param {?} reducerManager | ||
* @param {?} root | ||
*/ | ||
function StoreFeatureModule(features, featureReducers, reducerManager) { | ||
function StoreFeatureModule(features, featureReducers, reducerManager, root) { | ||
this.features = features; | ||
@@ -685,2 +688,3 @@ this.featureReducers = featureReducers; | ||
{ type: ReducerManager, }, | ||
{ type: StoreRootModule, }, | ||
]; }; | ||
@@ -687,0 +691,0 @@ var StoreModule = (function () { |
@@ -566,4 +566,5 @@ import { Inject, Injectable, InjectionToken, Injector, NgModule } from '@angular/core'; | ||
* @param {?} scannedActions$ | ||
* @param {?} store | ||
*/ | ||
constructor(actions$, reducer$, scannedActions$) { } | ||
constructor(actions$, reducer$, scannedActions$, store) { } | ||
} | ||
@@ -578,2 +579,3 @@ StoreRootModule.decorators = [ | ||
{ type: ScannedActionsSubject, }, | ||
{ type: Store, }, | ||
]; | ||
@@ -585,4 +587,5 @@ class StoreFeatureModule { | ||
* @param {?} reducerManager | ||
* @param {?} root | ||
*/ | ||
constructor(features, featureReducers, reducerManager) { | ||
constructor(features, featureReducers, reducerManager, root) { | ||
this.features = features; | ||
@@ -614,2 +617,3 @@ this.featureReducers = featureReducers; | ||
{ type: ReducerManager, }, | ||
{ type: StoreRootModule, }, | ||
]; | ||
@@ -616,0 +620,0 @@ class StoreModule { |
@@ -628,4 +628,5 @@ (function (global, factory) { | ||
* @param {?} scannedActions$ | ||
* @param {?} store | ||
*/ | ||
function StoreRootModule(actions$, reducer$, scannedActions$) { | ||
function StoreRootModule(actions$, reducer$, scannedActions$, store) { | ||
} | ||
@@ -642,2 +643,3 @@ return StoreRootModule; | ||
{ type: ScannedActionsSubject, }, | ||
{ type: Store, }, | ||
]; }; | ||
@@ -649,4 +651,5 @@ var StoreFeatureModule = (function () { | ||
* @param {?} reducerManager | ||
* @param {?} root | ||
*/ | ||
function StoreFeatureModule(features, featureReducers, reducerManager) { | ||
function StoreFeatureModule(features, featureReducers, reducerManager, root) { | ||
this.features = features; | ||
@@ -680,2 +683,3 @@ this.featureReducers = featureReducers; | ||
{ type: ReducerManager, }, | ||
{ type: StoreRootModule, }, | ||
]; }; | ||
@@ -682,0 +686,0 @@ var StoreModule = (function () { |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs/Observable"),require("rxjs/operator/map"),require("rxjs/operator/pluck"),require("rxjs/operator/distinctUntilChanged"),require("rxjs/BehaviorSubject"),require("rxjs/scheduler/queue"),require("rxjs/operator/observeOn"),require("rxjs/operator/withLatestFrom"),require("rxjs/operator/scan"),require("rxjs/Subject")):"function"==typeof define&&define.amd?define(["exports","@angular/core","rxjs/Observable","rxjs/operator/map","rxjs/operator/pluck","rxjs/operator/distinctUntilChanged","rxjs/BehaviorSubject","rxjs/scheduler/queue","rxjs/operator/observeOn","rxjs/operator/withLatestFrom","rxjs/operator/scan","rxjs/Subject"],t):t((e.ngrx=e.ngrx||{},e.ngrx.store={}),e.ng.core,e.Rx,e.Rx.Observable.prototype,e.Rx.Observable.prototype,e.Rx.Observable.prototype,e.Rx,e.Rx.Scheduler,e.Rx.Observable.prototype,e.Rx.Observable,e.Rx.Observable.prototype,e.Rx)}(this,function(e,t,r,n,o,c,u,i,a,s,p,l){"use strict";function d(e,t){void 0===t&&(t={});for(var r=Object.keys(e),n={},o=0;o<r.length;o++){var c=r[o];"function"==typeof e[c]&&(n[c]=e[c])}var u=Object.keys(n);return function(e,r){e=e||t;for(var o=!1,c={},i=0;i<u.length;i++){var a=u[i],s=n[a],p=e[a],l=s(p,r);c[a]=l,o=o||l!==p}return o?c:e}}function f(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){if(0===e.length)return t;var r=e[e.length-1];return e.slice(0,-1).reduceRight(function(e,t){return t(e)},r(t))}}function y(e,t){return Array.isArray(t)&&t.length>0?f.apply(null,t.concat([e])):e}function v(e,t){void 0===e&&(e={state:void 0});var r=t[0];return{state:(0,t[1])(e.state,r),action:r}}function h(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(r){var u;if("string"==typeof e)u=o.pluck.call.apply(o.pluck,[r,e].concat(t));else{if("function"!=typeof e)throw new TypeError("Unexpected type '"+typeof e+"' in select operator, expected 'string' or 'function'");u=n.map.call(r,e)}return c.distinctUntilChanged.call(u)}}function g(e,t){return e===t}function j(e,t){void 0===t&&(t=g);var r=null,n=null;return{memoized:function(){if(!r)return n=e.apply(null,arguments),r=arguments,n;for(var o=0;o<arguments.length;o++)if(!t(arguments[o],r[o]))return n=e.apply(null,arguments),r=arguments,n;return n},reset:function(){r=null,n=null}}}function R(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return x(j).apply(void 0,e)}function b(e,t,r){var n=t.map(function(t){return t(e)});return r.memoized.apply(null,n)}function x(e,t){return void 0===t&&(t={stateFn:b}),function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=r;if(Array.isArray(o[0])){var c=o[0],u=o.slice(1);o=c.concat(u)}var i=o.slice(0,o.length-1),a=o[o.length-1],s=i.filter(function(e){return e.release&&"function"==typeof e.release}),p=e(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.apply(null,e)}),l=j(function(e){return t.stateFn.apply(null,[e,i,p])});return Object.assign(l.memoized,{release:function(){l.reset(),p.reset(),s.forEach(function(e){return e.release()})},projector:p.memoized})}}function I(e,r,n){return r instanceof t.InjectionToken?e.get(r):r}function m(e,r,n){return r.map(function(r,n){return r instanceof t.InjectionToken?e.get(r):r})}function S(e){return"function"==typeof e?e():e}var E=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),O="@ngrx/store/init",F=function(e){function t(){return e.call(this,{type:O})||this}return E(t,e),t.prototype.next=function(t){if(void 0===t)throw new TypeError("Actions must be objects");if(void 0===t.type)throw new TypeError("Actions must have a type property");e.prototype.next.call(this,t)},t.prototype.complete=function(){},t.prototype.ngOnDestroy=function(){e.prototype.complete.call(this)},t}(u.BehaviorSubject);F.decorators=[{type:t.Injectable}],F.ctorParameters=function(){return[]};var T=[F],_=new t.InjectionToken("@ngrx/store Internal Initial State"),k=new t.InjectionToken("@ngrx/store Initial State"),A=new t.InjectionToken("@ngrx/store Reducer Factory"),w=new t.InjectionToken("@ngrx/store Reducer Factory Provider"),M=new t.InjectionToken("@ngrx/store Initial Reducers"),U=new t.InjectionToken("@ngrx/store Internal Initial Reducers"),D=new t.InjectionToken("@ngrx/store Meta Reducers"),q=new t.InjectionToken("@ngrx/store Store Features"),C=new t.InjectionToken("@ngrx/store Internal Store Reducers"),P=new t.InjectionToken("@ngrx/store Internal Feature Reducers"),N=new t.InjectionToken("@ngrx/store Internal Feature Reducers Token"),L=new t.InjectionToken("@ngrx/store Feature Reducers"),V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return E(t,e),t}(r.Observable),z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return E(t,e),t}(F),B="@ngrx/store/update-reducers",Y=function(e){function t(t,r,n,o){var c=e.call(this,o(n,r))||this;return c.dispatcher=t,c.initialState=r,c.reducers=n,c.reducerFactory=o,c}return E(t,e),t.prototype.addFeature=function(e){var t=e.reducers,r=e.reducerFactory,n=e.metaReducers,o=e.initialState,c=e.key,u="function"==typeof t?function(e,r){return function(e,t){return Array.isArray(t)&&t.length>0?f.apply(void 0,t)(e):e}(t,n)(e||o,r)}:y(r,n)(t,o);this.addReducer(c,u)},t.prototype.removeFeature=function(e){var t=e.key;this.removeReducer(t)},t.prototype.addReducer=function(e,t){this.reducers=Object.assign({},this.reducers,(r={},r[e]=t,r)),this.updateReducers();var r},t.prototype.removeReducer=function(e){this.reducers=function(e,t){return Object.keys(e).filter(function(e){return e!==t}).reduce(function(t,r){return Object.assign(t,(n={},n[r]=e[r],n));var n},{})}(this.reducers,e),this.updateReducers()},t.prototype.updateReducers=function(){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:B})},t.prototype.ngOnDestroy=function(){this.complete()},t}(u.BehaviorSubject);Y.decorators=[{type:t.Injectable}],Y.ctorParameters=function(){return[{type:z},{type:void 0,decorators:[{type:t.Inject,args:[k]}]},{type:void 0,decorators:[{type:t.Inject,args:[M]}]},{type:void 0,decorators:[{type:t.Inject,args:[A]}]}]};var K=[Y,{provide:V,useExisting:Y},{provide:z,useExisting:F}],G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return E(t,e),t.prototype.ngOnDestroy=function(){this.complete()},t}(l.Subject);G.decorators=[{type:t.Injectable}],G.ctorParameters=function(){return[]};var H=[G],J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return E(t,e),t}(r.Observable),Q=function(e){function t(t,r,n,o){var c=e.call(this,o)||this,u=a.observeOn.call(t,i.queue),l=s.withLatestFrom.call(u,r),d=p.scan.call(l,v,{state:o});return c.stateSubscription=d.subscribe(function(e){var t=e.state,r=e.action;c.next(t),n.next(r)}),c}return E(t,e),t.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe(),this.complete()},t}(u.BehaviorSubject);Q.INIT=O,Q.decorators=[{type:t.Injectable}],Q.ctorParameters=function(){return[{type:F},{type:V},{type:G},{type:void 0,decorators:[{type:t.Inject,args:[k]}]}]};var W=[Q,{provide:J,useExisting:Q}],X=function(e){function t(t,r,n){var o=e.call(this)||this;return o.actionsObserver=r,o.reducerManager=n,o.source=t,o}return E(t,e),t.prototype.select=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return h.apply(void 0,[e].concat(t))(this)},t.prototype.lift=function(e){var r=new t(this,this.actionsObserver,this.reducerManager);return r.operator=e,r},t.prototype.dispatch=function(e){this.actionsObserver.next(e)},t.prototype.next=function(e){this.actionsObserver.next(e)},t.prototype.error=function(e){this.actionsObserver.error(e)},t.prototype.complete=function(){this.actionsObserver.complete()},t.prototype.addReducer=function(e,t){this.reducerManager.addReducer(e,t)},t.prototype.removeReducer=function(e){this.reducerManager.removeReducer(e)},t}(r.Observable);X.decorators=[{type:t.Injectable}],X.ctorParameters=function(){return[{type:J},{type:F},{type:Y}]};var Z=[X],$=function(){return function(e,t,r){}}();$.decorators=[{type:t.NgModule,args:[{}]}],$.ctorParameters=function(){return[{type:F},{type:V},{type:G}]};var ee=function(){function e(e,t,r){this.features=e,this.featureReducers=t,this.reducerManager=r,e.map(function(e,r){var n=t.shift()[r];return Object.assign({},e,{reducers:n,initialState:S(e.initialState)})}).forEach(function(e){return r.addFeature(e)})}return e.prototype.ngOnDestroy=function(){var e=this;this.features.forEach(function(t){return e.reducerManager.removeFeature(t)})},e}();ee.decorators=[{type:t.NgModule,args:[{}]}],ee.ctorParameters=function(){return[{type:Array,decorators:[{type:t.Inject,args:[q]}]},{type:Array,decorators:[{type:t.Inject,args:[L]}]},{type:Y}]};var te=function(){function e(){}return e.forRoot=function(e,r){return void 0===r&&(r={}),{ngModule:$,providers:[{provide:_,useValue:r.initialState},{provide:k,useFactory:S,deps:[_]},{provide:U,useValue:e},{provide:C,useExisting:e instanceof t.InjectionToken?e:U},{provide:M,deps:[t.Injector,U,[new t.Inject(C)]],useFactory:I},{provide:D,useValue:r.metaReducers?r.metaReducers:[]},{provide:w,useValue:r.reducerFactory?r.reducerFactory:d},{provide:A,deps:[w,D],useFactory:y},T,K,H,W,Z]}},e.forFeature=function(e,r,n){return void 0===n&&(n={}),{ngModule:ee,providers:[{provide:q,multi:!0,useValue:{key:e,reducerFactory:n.reducerFactory?n.reducerFactory:d,metaReducers:n.metaReducers?n.metaReducers:[],initialState:n.initialState}},{provide:P,multi:!0,useValue:r},{provide:N,multi:!0,useExisting:r instanceof t.InjectionToken?r:P},{provide:L,multi:!0,deps:[t.Injector,P,[new t.Inject(N)]],useFactory:m}]}},e}();te.decorators=[{type:t.NgModule,args:[{}]}],te.ctorParameters=function(){return[]},e.Store=X,e.select=h,e.combineReducers=d,e.compose=f,e.createReducerFactory=y,e.ActionsSubject=F,e.INIT=O,e.ReducerManager=Y,e.ReducerObservable=V,e.ReducerManagerDispatcher=z,e.UPDATE=B,e.ScannedActionsSubject=G,e.createSelector=R,e.createSelectorFactory=x,e.createFeatureSelector=function(e){return R(function(t){return t[e]},function(e){return e})},e.defaultMemoize=j,e.defaultStateFn=b,e.State=Q,e.StateObservable=J,e.reduceState=v,e.INITIAL_STATE=k,e._REDUCER_FACTORY=w,e.REDUCER_FACTORY=A,e._INITIAL_REDUCERS=U,e.INITIAL_REDUCERS=M,e.STORE_FEATURES=q,e._INITIAL_STATE=_,e.META_REDUCERS=D,e._STORE_REDUCERS=C,e._FEATURE_REDUCERS=P,e.FEATURE_REDUCERS=L,e._FEATURE_REDUCERS_TOKEN=N,e.StoreModule=te,e.StoreRootModule=$,e.StoreFeatureModule=ee,e._initialStateFactory=S,e._createStoreReducers=I,e._createFeatureReducers=m,e.ɵc=T,e.ɵd=K,e.ɵe=H,e.ɵf=W,e.ɵb=Z,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs/Observable"),require("rxjs/operator/map"),require("rxjs/operator/pluck"),require("rxjs/operator/distinctUntilChanged"),require("rxjs/BehaviorSubject"),require("rxjs/scheduler/queue"),require("rxjs/operator/observeOn"),require("rxjs/operator/withLatestFrom"),require("rxjs/operator/scan"),require("rxjs/Subject")):"function"==typeof define&&define.amd?define(["exports","@angular/core","rxjs/Observable","rxjs/operator/map","rxjs/operator/pluck","rxjs/operator/distinctUntilChanged","rxjs/BehaviorSubject","rxjs/scheduler/queue","rxjs/operator/observeOn","rxjs/operator/withLatestFrom","rxjs/operator/scan","rxjs/Subject"],t):t((e.ngrx=e.ngrx||{},e.ngrx.store={}),e.ng.core,e.Rx,e.Rx.Observable.prototype,e.Rx.Observable.prototype,e.Rx.Observable.prototype,e.Rx,e.Rx.Scheduler,e.Rx.Observable.prototype,e.Rx.Observable,e.Rx.Observable.prototype,e.Rx)}(this,function(e,t,r,n,o,c,u,i,a,s,p,l){"use strict";function d(e,t){void 0===t&&(t={});for(var r=Object.keys(e),n={},o=0;o<r.length;o++){var c=r[o];"function"==typeof e[c]&&(n[c]=e[c])}var u=Object.keys(n);return function(e,r){e=e||t;for(var o=!1,c={},i=0;i<u.length;i++){var a=u[i],s=n[a],p=e[a],l=s(p,r);c[a]=l,o=o||l!==p}return o?c:e}}function f(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){if(0===e.length)return t;var r=e[e.length-1];return e.slice(0,-1).reduceRight(function(e,t){return t(e)},r(t))}}function y(e,t){return Array.isArray(t)&&t.length>0?f.apply(null,t.concat([e])):e}function v(e,t){void 0===e&&(e={state:void 0});var r=t[0];return{state:(0,t[1])(e.state,r),action:r}}function h(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(r){var u;if("string"==typeof e)u=o.pluck.call.apply(o.pluck,[r,e].concat(t));else{if("function"!=typeof e)throw new TypeError("Unexpected type '"+typeof e+"' in select operator, expected 'string' or 'function'");u=n.map.call(r,e)}return c.distinctUntilChanged.call(u)}}function g(e,t){return e===t}function j(e,t){void 0===t&&(t=g);var r=null,n=null;return{memoized:function(){if(!r)return n=e.apply(null,arguments),r=arguments,n;for(var o=0;o<arguments.length;o++)if(!t(arguments[o],r[o]))return n=e.apply(null,arguments),r=arguments,n;return n},reset:function(){r=null,n=null}}}function R(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return x(j).apply(void 0,e)}function b(e,t,r){var n=t.map(function(t){return t(e)});return r.memoized.apply(null,n)}function x(e,t){return void 0===t&&(t={stateFn:b}),function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=r;if(Array.isArray(o[0])){var c=o[0],u=o.slice(1);o=c.concat(u)}var i=o.slice(0,o.length-1),a=o[o.length-1],s=i.filter(function(e){return e.release&&"function"==typeof e.release}),p=e(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.apply(null,e)}),l=j(function(e){return t.stateFn.apply(null,[e,i,p])});return Object.assign(l.memoized,{release:function(){l.reset(),p.reset(),s.forEach(function(e){return e.release()})},projector:p.memoized})}}function I(e,r,n){return r instanceof t.InjectionToken?e.get(r):r}function m(e,r,n){return r.map(function(r,n){return r instanceof t.InjectionToken?e.get(r):r})}function S(e){return"function"==typeof e?e():e}var E=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),O="@ngrx/store/init",F=function(e){function t(){return e.call(this,{type:O})||this}return E(t,e),t.prototype.next=function(t){if(void 0===t)throw new TypeError("Actions must be objects");if(void 0===t.type)throw new TypeError("Actions must have a type property");e.prototype.next.call(this,t)},t.prototype.complete=function(){},t.prototype.ngOnDestroy=function(){e.prototype.complete.call(this)},t}(u.BehaviorSubject);F.decorators=[{type:t.Injectable}],F.ctorParameters=function(){return[]};var T=[F],_=new t.InjectionToken("@ngrx/store Internal Initial State"),k=new t.InjectionToken("@ngrx/store Initial State"),A=new t.InjectionToken("@ngrx/store Reducer Factory"),w=new t.InjectionToken("@ngrx/store Reducer Factory Provider"),M=new t.InjectionToken("@ngrx/store Initial Reducers"),U=new t.InjectionToken("@ngrx/store Internal Initial Reducers"),D=new t.InjectionToken("@ngrx/store Meta Reducers"),q=new t.InjectionToken("@ngrx/store Store Features"),C=new t.InjectionToken("@ngrx/store Internal Store Reducers"),P=new t.InjectionToken("@ngrx/store Internal Feature Reducers"),N=new t.InjectionToken("@ngrx/store Internal Feature Reducers Token"),L=new t.InjectionToken("@ngrx/store Feature Reducers"),V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return E(t,e),t}(r.Observable),z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return E(t,e),t}(F),B="@ngrx/store/update-reducers",Y=function(e){function t(t,r,n,o){var c=e.call(this,o(n,r))||this;return c.dispatcher=t,c.initialState=r,c.reducers=n,c.reducerFactory=o,c}return E(t,e),t.prototype.addFeature=function(e){var t=e.reducers,r=e.reducerFactory,n=e.metaReducers,o=e.initialState,c=e.key,u="function"==typeof t?function(e,r){return function(e,t){return Array.isArray(t)&&t.length>0?f.apply(void 0,t)(e):e}(t,n)(e||o,r)}:y(r,n)(t,o);this.addReducer(c,u)},t.prototype.removeFeature=function(e){var t=e.key;this.removeReducer(t)},t.prototype.addReducer=function(e,t){this.reducers=Object.assign({},this.reducers,(r={},r[e]=t,r)),this.updateReducers();var r},t.prototype.removeReducer=function(e){this.reducers=function(e,t){return Object.keys(e).filter(function(e){return e!==t}).reduce(function(t,r){return Object.assign(t,(n={},n[r]=e[r],n));var n},{})}(this.reducers,e),this.updateReducers()},t.prototype.updateReducers=function(){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:B})},t.prototype.ngOnDestroy=function(){this.complete()},t}(u.BehaviorSubject);Y.decorators=[{type:t.Injectable}],Y.ctorParameters=function(){return[{type:z},{type:void 0,decorators:[{type:t.Inject,args:[k]}]},{type:void 0,decorators:[{type:t.Inject,args:[M]}]},{type:void 0,decorators:[{type:t.Inject,args:[A]}]}]};var K=[Y,{provide:V,useExisting:Y},{provide:z,useExisting:F}],G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return E(t,e),t.prototype.ngOnDestroy=function(){this.complete()},t}(l.Subject);G.decorators=[{type:t.Injectable}],G.ctorParameters=function(){return[]};var H=[G],J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return E(t,e),t}(r.Observable),Q=function(e){function t(t,r,n,o){var c=e.call(this,o)||this,u=a.observeOn.call(t,i.queue),l=s.withLatestFrom.call(u,r),d=p.scan.call(l,v,{state:o});return c.stateSubscription=d.subscribe(function(e){var t=e.state,r=e.action;c.next(t),n.next(r)}),c}return E(t,e),t.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe(),this.complete()},t}(u.BehaviorSubject);Q.INIT=O,Q.decorators=[{type:t.Injectable}],Q.ctorParameters=function(){return[{type:F},{type:V},{type:G},{type:void 0,decorators:[{type:t.Inject,args:[k]}]}]};var W=[Q,{provide:J,useExisting:Q}],X=function(e){function t(t,r,n){var o=e.call(this)||this;return o.actionsObserver=r,o.reducerManager=n,o.source=t,o}return E(t,e),t.prototype.select=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return h.apply(void 0,[e].concat(t))(this)},t.prototype.lift=function(e){var r=new t(this,this.actionsObserver,this.reducerManager);return r.operator=e,r},t.prototype.dispatch=function(e){this.actionsObserver.next(e)},t.prototype.next=function(e){this.actionsObserver.next(e)},t.prototype.error=function(e){this.actionsObserver.error(e)},t.prototype.complete=function(){this.actionsObserver.complete()},t.prototype.addReducer=function(e,t){this.reducerManager.addReducer(e,t)},t.prototype.removeReducer=function(e){this.reducerManager.removeReducer(e)},t}(r.Observable);X.decorators=[{type:t.Injectable}],X.ctorParameters=function(){return[{type:J},{type:F},{type:Y}]};var Z=[X],$=function(){return function(e,t,r,n){}}();$.decorators=[{type:t.NgModule,args:[{}]}],$.ctorParameters=function(){return[{type:F},{type:V},{type:G},{type:X}]};var ee=function(){function e(e,t,r,n){this.features=e,this.featureReducers=t,this.reducerManager=r,e.map(function(e,r){var n=t.shift()[r];return Object.assign({},e,{reducers:n,initialState:S(e.initialState)})}).forEach(function(e){return r.addFeature(e)})}return e.prototype.ngOnDestroy=function(){var e=this;this.features.forEach(function(t){return e.reducerManager.removeFeature(t)})},e}();ee.decorators=[{type:t.NgModule,args:[{}]}],ee.ctorParameters=function(){return[{type:Array,decorators:[{type:t.Inject,args:[q]}]},{type:Array,decorators:[{type:t.Inject,args:[L]}]},{type:Y},{type:$}]};var te=function(){function e(){}return e.forRoot=function(e,r){return void 0===r&&(r={}),{ngModule:$,providers:[{provide:_,useValue:r.initialState},{provide:k,useFactory:S,deps:[_]},{provide:U,useValue:e},{provide:C,useExisting:e instanceof t.InjectionToken?e:U},{provide:M,deps:[t.Injector,U,[new t.Inject(C)]],useFactory:I},{provide:D,useValue:r.metaReducers?r.metaReducers:[]},{provide:w,useValue:r.reducerFactory?r.reducerFactory:d},{provide:A,deps:[w,D],useFactory:y},T,K,H,W,Z]}},e.forFeature=function(e,r,n){return void 0===n&&(n={}),{ngModule:ee,providers:[{provide:q,multi:!0,useValue:{key:e,reducerFactory:n.reducerFactory?n.reducerFactory:d,metaReducers:n.metaReducers?n.metaReducers:[],initialState:n.initialState}},{provide:P,multi:!0,useValue:r},{provide:N,multi:!0,useExisting:r instanceof t.InjectionToken?r:P},{provide:L,multi:!0,deps:[t.Injector,P,[new t.Inject(N)]],useFactory:m}]}},e}();te.decorators=[{type:t.NgModule,args:[{}]}],te.ctorParameters=function(){return[]},e.Store=X,e.select=h,e.combineReducers=d,e.compose=f,e.createReducerFactory=y,e.ActionsSubject=F,e.INIT=O,e.ReducerManager=Y,e.ReducerObservable=V,e.ReducerManagerDispatcher=z,e.UPDATE=B,e.ScannedActionsSubject=G,e.createSelector=R,e.createSelectorFactory=x,e.createFeatureSelector=function(e){return R(function(t){return t[e]},function(e){return e})},e.defaultMemoize=j,e.defaultStateFn=b,e.State=Q,e.StateObservable=J,e.reduceState=v,e.INITIAL_STATE=k,e._REDUCER_FACTORY=w,e.REDUCER_FACTORY=A,e._INITIAL_REDUCERS=U,e.INITIAL_REDUCERS=M,e.STORE_FEATURES=q,e._INITIAL_STATE=_,e.META_REDUCERS=D,e._STORE_REDUCERS=C,e._FEATURE_REDUCERS=P,e.FEATURE_REDUCERS=L,e._FEATURE_REDUCERS_TOKEN=N,e.StoreModule=te,e.StoreRootModule=$,e.StoreFeatureModule=ee,e._initialStateFactory=S,e._createStoreReducers=I,e._createFeatureReducers=m,e.ɵc=T,e.ɵd=K,e.ɵe=H,e.ɵf=W,e.ɵb=Z,Object.defineProperty(e,"__esModule",{value:!0})}); |
{ | ||
"name": "@ngrx/store", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "RxJS powered Redux for Angular apps", | ||
@@ -5,0 +5,0 @@ "module": "@ngrx/store.es5.js", |
@@ -6,4 +6,5 @@ import { ModuleWithProviders, OnDestroy, InjectionToken, Injector } from '@angular/core'; | ||
import { ScannedActionsSubject } from './scanned_actions_subject'; | ||
import { Store } from './store'; | ||
export declare class StoreRootModule { | ||
constructor(actions$: ActionsSubject, reducer$: ReducerObservable, scannedActions$: ScannedActionsSubject); | ||
constructor(actions$: ActionsSubject, reducer$: ReducerObservable, scannedActions$: ScannedActionsSubject, store: Store<any>); | ||
} | ||
@@ -14,3 +15,3 @@ export declare class StoreFeatureModule implements OnDestroy { | ||
private reducerManager; | ||
constructor(features: StoreFeature<any, any>[], featureReducers: ActionReducerMap<any>[], reducerManager: ReducerManager); | ||
constructor(features: StoreFeature<any, any>[], featureReducers: ActionReducerMap<any>[], reducerManager: ReducerManager, root: StoreRootModule); | ||
ngOnDestroy(): void; | ||
@@ -17,0 +18,0 @@ } |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"ɵa":{"__symbolic":"interface"},"ɵb":[{"__symbolic":"reference","name":"Store"}],"ɵc":[{"__symbolic":"reference","name":"ActionsSubject"}],"ɵd":[{"__symbolic":"reference","name":"ReducerManager"},{"provide":{"__symbolic":"reference","name":"ReducerObservable"},"useExisting":{"__symbolic":"reference","name":"ReducerManager"}},{"provide":{"__symbolic":"reference","name":"ReducerManagerDispatcher"},"useExisting":{"__symbolic":"reference","name":"ActionsSubject"}}],"ɵe":[{"__symbolic":"reference","name":"ScannedActionsSubject"}],"ɵf":[{"__symbolic":"reference","name":"State"},{"provide":{"__symbolic":"reference","name":"StateObservable"},"useExisting":{"__symbolic":"reference","name":"State"}}],"Action":{"__symbolic":"interface"},"ActionReducer":{"__symbolic":"interface"},"ActionReducerMap":{"__symbolic":"interface"},"ActionReducerFactory":{"__symbolic":"interface"},"MetaReducer":{"__symbolic":"interface"},"Selector":{"__symbolic":"interface"},"Store":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","module":"rxjs/Observable","name":"Observable"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"StateObservable"},{"__symbolic":"reference","name":"ActionsSubject"},{"__symbolic":"reference","name":"ReducerManager"}]}],"select":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"lift":[{"__symbolic":"method"}],"dispatch":[{"__symbolic":"method"}],"next":[{"__symbolic":"method"}],"error":[{"__symbolic":"method"}],"complete":[{"__symbolic":"method"}],"addReducer":[{"__symbolic":"method"}],"removeReducer":[{"__symbolic":"method"}]}},"select":{"__symbolic":"function","parameters":["pathOrMapFn","paths"],"value":{"__symbolic":"error","message":"Function call not supported","line":169,"character":9,"module":"./src/store"}},"combineReducers":{"__symbolic":"function"},"compose":{"__symbolic":"function","parameters":["functions"],"value":{"__symbolic":"error","message":"Function call not supported","line":76,"character":9,"module":"./src/utils"}},"createReducerFactory":{"__symbolic":"function"},"ActionsSubject":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"rxjs/BehaviorSubject","name":"BehaviorSubject"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"next":[{"__symbolic":"method"}],"complete":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"INIT":"@ngrx/store/init","ReducerManager":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"rxjs/BehaviorSubject","name":"BehaviorSubject"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"INITIAL_STATE"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"INITIAL_REDUCERS"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"REDUCER_FACTORY"}]}]],"parameters":[{"__symbolic":"reference","name":"ReducerManagerDispatcher"},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"ActionReducerMap"},{"__symbolic":"reference","name":"ActionReducerFactory"}]}],"addFeature":[{"__symbolic":"method"}],"removeFeature":[{"__symbolic":"method"}],"addReducer":[{"__symbolic":"method"}],"removeReducer":[{"__symbolic":"method"}],"updateReducers":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ReducerObservable":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"rxjs/Observable","name":"Observable"},"members":{}},"ReducerManagerDispatcher":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ActionsSubject"},"members":{}},"UPDATE":"@ngrx/store/update-reducers","ScannedActionsSubject":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"rxjs/Subject","name":"Subject"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"ngOnDestroy":[{"__symbolic":"method"}]}},"createSelector":{"__symbolic":"function","parameters":["input"],"value":{"__symbolic":"call","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"createSelectorFactory"},"arguments":[{"__symbolic":"reference","name":"defaultMemoize"}]},"arguments":[{"__symbolic":"spread","expression":{"__symbolic":"reference","name":"input"}}]}},"createSelectorFactory":{"__symbolic":"function","parameters":["memoize","options"],"defaults":[null,{"stateFn":{"__symbolic":"reference","name":"defaultStateFn"}}],"value":{"__symbolic":"error","message":"Function call not supported","line":233,"character":9,"module":"./src/selector"}},"createFeatureSelector":{"__symbolic":"function","parameters":["featureName"],"value":{"__symbolic":"error","message":"Function call not supported","line":273,"character":4,"module":"./src/selector"}},"defaultMemoize":{"__symbolic":"function"},"defaultStateFn":{"__symbolic":"function"},"MemoizeFn":{"__symbolic":"interface"},"MemoizedProjection":{"__symbolic":"interface"},"MemoizedSelector":{"__symbolic":"interface"},"State":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","module":"rxjs/BehaviorSubject","name":"BehaviorSubject"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"INITIAL_STATE"}]}]],"parameters":[{"__symbolic":"reference","name":"ActionsSubject"},{"__symbolic":"reference","name":"ReducerObservable"},{"__symbolic":"reference","name":"ScannedActionsSubject"},{"__symbolic":"reference","name":"any"}]}],"ngOnDestroy":[{"__symbolic":"method"}]},"statics":{"INIT":{"__symbolic":"reference","module":"./actions_subject","name":"INIT"}}},"StateObservable":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"rxjs/Observable","name":"Observable"},"members":{}},"reduceState":{"__symbolic":"function"},"INITIAL_STATE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Initial State"]},"_REDUCER_FACTORY":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Reducer Factory Provider"]},"REDUCER_FACTORY":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Reducer Factory"]},"_INITIAL_REDUCERS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Internal Initial Reducers"]},"INITIAL_REDUCERS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Initial Reducers"]},"STORE_FEATURES":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Store Features"]},"_INITIAL_STATE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Internal Initial State"]},"META_REDUCERS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Meta Reducers"]},"_STORE_REDUCERS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Internal Store Reducers"]},"_FEATURE_REDUCERS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Internal Feature Reducers"]},"FEATURE_REDUCERS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Feature Reducers"]},"_FEATURE_REDUCERS_TOKEN":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Internal Feature Reducers Token"]},"StoreModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["reducers","config"],"defaults":[null,{}],"value":{"ngModule":{"__symbolic":"reference","name":"StoreRootModule"},"providers":[{"provide":{"__symbolic":"reference","name":"_INITIAL_STATE"},"useValue":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"initialState"}},{"provide":{"__symbolic":"reference","name":"INITIAL_STATE"},"useFactory":{"__symbolic":"reference","name":"_initialStateFactory"},"deps":[{"__symbolic":"reference","name":"_INITIAL_STATE"}]},{"provide":{"__symbolic":"reference","name":"_INITIAL_REDUCERS"},"useValue":{"__symbolic":"reference","name":"reducers"}},{"provide":{"__symbolic":"reference","name":"_STORE_REDUCERS"},"useExisting":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"reducers"},"right":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"}},"thenExpression":{"__symbolic":"reference","name":"reducers"},"elseExpression":{"__symbolic":"reference","name":"_INITIAL_REDUCERS"}}},{"provide":{"__symbolic":"reference","name":"INITIAL_REDUCERS"},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","name":"_INITIAL_REDUCERS"},[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"_STORE_REDUCERS"}]}]],"useFactory":{"__symbolic":"reference","name":"_createStoreReducers"}},{"provide":{"__symbolic":"reference","name":"META_REDUCERS"},"useValue":{"__symbolic":"if","condition":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"metaReducers"},"thenExpression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"metaReducers"},"elseExpression":[]}},{"provide":{"__symbolic":"reference","name":"_REDUCER_FACTORY"},"useValue":{"__symbolic":"if","condition":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"reducerFactory"},"thenExpression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"reducerFactory"},"elseExpression":{"__symbolic":"reference","name":"combineReducers"}}},{"provide":{"__symbolic":"reference","name":"REDUCER_FACTORY"},"deps":[{"__symbolic":"reference","name":"_REDUCER_FACTORY"},{"__symbolic":"reference","name":"META_REDUCERS"}],"useFactory":{"__symbolic":"reference","name":"createReducerFactory"}},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵb"}]}},"forFeature":{"__symbolic":"function","parameters":["featureName","reducers","config"],"defaults":[null,null,{}],"value":{"ngModule":{"__symbolic":"reference","name":"StoreFeatureModule"},"providers":[{"provide":{"__symbolic":"reference","name":"STORE_FEATURES"},"multi":true,"useValue":{"key":{"__symbolic":"reference","name":"featureName"},"reducerFactory":{"__symbolic":"if","condition":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"reducerFactory"},"thenExpression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"reducerFactory"},"elseExpression":{"__symbolic":"reference","name":"combineReducers"}},"metaReducers":{"__symbolic":"if","condition":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"metaReducers"},"thenExpression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"metaReducers"},"elseExpression":[]},"initialState":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"initialState"}}},{"provide":{"__symbolic":"reference","name":"_FEATURE_REDUCERS"},"multi":true,"useValue":{"__symbolic":"reference","name":"reducers"}},{"provide":{"__symbolic":"reference","name":"_FEATURE_REDUCERS_TOKEN"},"multi":true,"useExisting":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"reducers"},"right":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"}},"thenExpression":{"__symbolic":"reference","name":"reducers"},"elseExpression":{"__symbolic":"reference","name":"_FEATURE_REDUCERS"}}},{"provide":{"__symbolic":"reference","name":"FEATURE_REDUCERS"},"multi":true,"deps":[{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","name":"_FEATURE_REDUCERS"},[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"_FEATURE_REDUCERS_TOKEN"}]}]],"useFactory":{"__symbolic":"reference","name":"_createFeatureReducers"}}]}}}},"StoreRootModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ActionsSubject"},{"__symbolic":"reference","name":"ReducerObservable"},{"__symbolic":"reference","name":"ScannedActionsSubject"}]}]}},"StoreFeatureModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"STORE_FEATURES"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"FEATURE_REDUCERS"}]}],null],"parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"ɵa"}]},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"ActionReducerMap"}]},{"__symbolic":"reference","name":"ReducerManager"}]}],"ngOnDestroy":[{"__symbolic":"method"}]}},"_initialStateFactory":{"__symbolic":"function"},"_createStoreReducers":{"__symbolic":"function","parameters":["injector","reducers","tokenReducers"],"value":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"reducers"},"right":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"}},"thenExpression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"injector"},"member":"get"},"arguments":[{"__symbolic":"reference","name":"reducers"}]},"elseExpression":{"__symbolic":"reference","name":"reducers"}}},"_createFeatureReducers":{"__symbolic":"function"}},"origins":{"ɵa":"./src/models","ɵb":"./src/store","ɵc":"./src/actions_subject","ɵd":"./src/reducer_manager","ɵe":"./src/scanned_actions_subject","ɵf":"./src/state","Action":"./src/models","ActionReducer":"./src/models","ActionReducerMap":"./src/models","ActionReducerFactory":"./src/models","MetaReducer":"./src/models","Selector":"./src/models","Store":"./src/store","select":"./src/store","combineReducers":"./src/utils","compose":"./src/utils","createReducerFactory":"./src/utils","ActionsSubject":"./src/actions_subject","INIT":"./src/actions_subject","ReducerManager":"./src/reducer_manager","ReducerObservable":"./src/reducer_manager","ReducerManagerDispatcher":"./src/reducer_manager","UPDATE":"./src/reducer_manager","ScannedActionsSubject":"./src/scanned_actions_subject","createSelector":"./src/selector","createSelectorFactory":"./src/selector","createFeatureSelector":"./src/selector","defaultMemoize":"./src/selector","defaultStateFn":"./src/selector","MemoizeFn":"./src/selector","MemoizedProjection":"./src/selector","MemoizedSelector":"./src/selector","State":"./src/state","StateObservable":"./src/state","reduceState":"./src/state","INITIAL_STATE":"./src/tokens","_REDUCER_FACTORY":"./src/tokens","REDUCER_FACTORY":"./src/tokens","_INITIAL_REDUCERS":"./src/tokens","INITIAL_REDUCERS":"./src/tokens","STORE_FEATURES":"./src/tokens","_INITIAL_STATE":"./src/tokens","META_REDUCERS":"./src/tokens","_STORE_REDUCERS":"./src/tokens","_FEATURE_REDUCERS":"./src/tokens","FEATURE_REDUCERS":"./src/tokens","_FEATURE_REDUCERS_TOKEN":"./src/tokens","StoreModule":"./src/store_module","StoreRootModule":"./src/store_module","StoreFeatureModule":"./src/store_module","_initialStateFactory":"./src/store_module","_createStoreReducers":"./src/store_module","_createFeatureReducers":"./src/store_module"},"importAs":"@ngrx/store"} | ||
{"__symbolic":"module","version":4,"metadata":{"ɵa":{"__symbolic":"interface"},"ɵb":[{"__symbolic":"reference","name":"Store"}],"ɵc":[{"__symbolic":"reference","name":"ActionsSubject"}],"ɵd":[{"__symbolic":"reference","name":"ReducerManager"},{"provide":{"__symbolic":"reference","name":"ReducerObservable"},"useExisting":{"__symbolic":"reference","name":"ReducerManager"}},{"provide":{"__symbolic":"reference","name":"ReducerManagerDispatcher"},"useExisting":{"__symbolic":"reference","name":"ActionsSubject"}}],"ɵe":[{"__symbolic":"reference","name":"ScannedActionsSubject"}],"ɵf":[{"__symbolic":"reference","name":"State"},{"provide":{"__symbolic":"reference","name":"StateObservable"},"useExisting":{"__symbolic":"reference","name":"State"}}],"Action":{"__symbolic":"interface"},"ActionReducer":{"__symbolic":"interface"},"ActionReducerMap":{"__symbolic":"interface"},"ActionReducerFactory":{"__symbolic":"interface"},"MetaReducer":{"__symbolic":"interface"},"Selector":{"__symbolic":"interface"},"Store":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","module":"rxjs/Observable","name":"Observable"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"StateObservable"},{"__symbolic":"reference","name":"ActionsSubject"},{"__symbolic":"reference","name":"ReducerManager"}]}],"select":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"lift":[{"__symbolic":"method"}],"dispatch":[{"__symbolic":"method"}],"next":[{"__symbolic":"method"}],"error":[{"__symbolic":"method"}],"complete":[{"__symbolic":"method"}],"addReducer":[{"__symbolic":"method"}],"removeReducer":[{"__symbolic":"method"}]}},"select":{"__symbolic":"function","parameters":["pathOrMapFn","paths"],"value":{"__symbolic":"error","message":"Function call not supported","line":169,"character":9,"module":"./src/store"}},"combineReducers":{"__symbolic":"function"},"compose":{"__symbolic":"function","parameters":["functions"],"value":{"__symbolic":"error","message":"Function call not supported","line":76,"character":9,"module":"./src/utils"}},"createReducerFactory":{"__symbolic":"function"},"ActionsSubject":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"rxjs/BehaviorSubject","name":"BehaviorSubject"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"next":[{"__symbolic":"method"}],"complete":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"INIT":"@ngrx/store/init","ReducerManager":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"rxjs/BehaviorSubject","name":"BehaviorSubject"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"INITIAL_STATE"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"INITIAL_REDUCERS"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"REDUCER_FACTORY"}]}]],"parameters":[{"__symbolic":"reference","name":"ReducerManagerDispatcher"},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"ActionReducerMap"},{"__symbolic":"reference","name":"ActionReducerFactory"}]}],"addFeature":[{"__symbolic":"method"}],"removeFeature":[{"__symbolic":"method"}],"addReducer":[{"__symbolic":"method"}],"removeReducer":[{"__symbolic":"method"}],"updateReducers":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ReducerObservable":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"rxjs/Observable","name":"Observable"},"members":{}},"ReducerManagerDispatcher":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ActionsSubject"},"members":{}},"UPDATE":"@ngrx/store/update-reducers","ScannedActionsSubject":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"rxjs/Subject","name":"Subject"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"ngOnDestroy":[{"__symbolic":"method"}]}},"createSelector":{"__symbolic":"function","parameters":["input"],"value":{"__symbolic":"call","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"createSelectorFactory"},"arguments":[{"__symbolic":"reference","name":"defaultMemoize"}]},"arguments":[{"__symbolic":"spread","expression":{"__symbolic":"reference","name":"input"}}]}},"createSelectorFactory":{"__symbolic":"function","parameters":["memoize","options"],"defaults":[null,{"stateFn":{"__symbolic":"reference","name":"defaultStateFn"}}],"value":{"__symbolic":"error","message":"Function call not supported","line":233,"character":9,"module":"./src/selector"}},"createFeatureSelector":{"__symbolic":"function","parameters":["featureName"],"value":{"__symbolic":"error","message":"Function call not supported","line":273,"character":4,"module":"./src/selector"}},"defaultMemoize":{"__symbolic":"function"},"defaultStateFn":{"__symbolic":"function"},"MemoizeFn":{"__symbolic":"interface"},"MemoizedProjection":{"__symbolic":"interface"},"MemoizedSelector":{"__symbolic":"interface"},"State":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","module":"rxjs/BehaviorSubject","name":"BehaviorSubject"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"INITIAL_STATE"}]}]],"parameters":[{"__symbolic":"reference","name":"ActionsSubject"},{"__symbolic":"reference","name":"ReducerObservable"},{"__symbolic":"reference","name":"ScannedActionsSubject"},{"__symbolic":"reference","name":"any"}]}],"ngOnDestroy":[{"__symbolic":"method"}]},"statics":{"INIT":{"__symbolic":"reference","module":"./actions_subject","name":"INIT"}}},"StateObservable":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"rxjs/Observable","name":"Observable"},"members":{}},"reduceState":{"__symbolic":"function"},"INITIAL_STATE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Initial State"]},"_REDUCER_FACTORY":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Reducer Factory Provider"]},"REDUCER_FACTORY":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Reducer Factory"]},"_INITIAL_REDUCERS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Internal Initial Reducers"]},"INITIAL_REDUCERS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Initial Reducers"]},"STORE_FEATURES":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Store Features"]},"_INITIAL_STATE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Internal Initial State"]},"META_REDUCERS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Meta Reducers"]},"_STORE_REDUCERS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Internal Store Reducers"]},"_FEATURE_REDUCERS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Internal Feature Reducers"]},"FEATURE_REDUCERS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Feature Reducers"]},"_FEATURE_REDUCERS_TOKEN":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["@ngrx/store Internal Feature Reducers Token"]},"StoreModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["reducers","config"],"defaults":[null,{}],"value":{"ngModule":{"__symbolic":"reference","name":"StoreRootModule"},"providers":[{"provide":{"__symbolic":"reference","name":"_INITIAL_STATE"},"useValue":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"initialState"}},{"provide":{"__symbolic":"reference","name":"INITIAL_STATE"},"useFactory":{"__symbolic":"reference","name":"_initialStateFactory"},"deps":[{"__symbolic":"reference","name":"_INITIAL_STATE"}]},{"provide":{"__symbolic":"reference","name":"_INITIAL_REDUCERS"},"useValue":{"__symbolic":"reference","name":"reducers"}},{"provide":{"__symbolic":"reference","name":"_STORE_REDUCERS"},"useExisting":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"reducers"},"right":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"}},"thenExpression":{"__symbolic":"reference","name":"reducers"},"elseExpression":{"__symbolic":"reference","name":"_INITIAL_REDUCERS"}}},{"provide":{"__symbolic":"reference","name":"INITIAL_REDUCERS"},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","name":"_INITIAL_REDUCERS"},[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"_STORE_REDUCERS"}]}]],"useFactory":{"__symbolic":"reference","name":"_createStoreReducers"}},{"provide":{"__symbolic":"reference","name":"META_REDUCERS"},"useValue":{"__symbolic":"if","condition":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"metaReducers"},"thenExpression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"metaReducers"},"elseExpression":[]}},{"provide":{"__symbolic":"reference","name":"_REDUCER_FACTORY"},"useValue":{"__symbolic":"if","condition":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"reducerFactory"},"thenExpression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"reducerFactory"},"elseExpression":{"__symbolic":"reference","name":"combineReducers"}}},{"provide":{"__symbolic":"reference","name":"REDUCER_FACTORY"},"deps":[{"__symbolic":"reference","name":"_REDUCER_FACTORY"},{"__symbolic":"reference","name":"META_REDUCERS"}],"useFactory":{"__symbolic":"reference","name":"createReducerFactory"}},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵb"}]}},"forFeature":{"__symbolic":"function","parameters":["featureName","reducers","config"],"defaults":[null,null,{}],"value":{"ngModule":{"__symbolic":"reference","name":"StoreFeatureModule"},"providers":[{"provide":{"__symbolic":"reference","name":"STORE_FEATURES"},"multi":true,"useValue":{"key":{"__symbolic":"reference","name":"featureName"},"reducerFactory":{"__symbolic":"if","condition":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"reducerFactory"},"thenExpression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"reducerFactory"},"elseExpression":{"__symbolic":"reference","name":"combineReducers"}},"metaReducers":{"__symbolic":"if","condition":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"metaReducers"},"thenExpression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"metaReducers"},"elseExpression":[]},"initialState":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"initialState"}}},{"provide":{"__symbolic":"reference","name":"_FEATURE_REDUCERS"},"multi":true,"useValue":{"__symbolic":"reference","name":"reducers"}},{"provide":{"__symbolic":"reference","name":"_FEATURE_REDUCERS_TOKEN"},"multi":true,"useExisting":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"reducers"},"right":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"}},"thenExpression":{"__symbolic":"reference","name":"reducers"},"elseExpression":{"__symbolic":"reference","name":"_FEATURE_REDUCERS"}}},{"provide":{"__symbolic":"reference","name":"FEATURE_REDUCERS"},"multi":true,"deps":[{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","name":"_FEATURE_REDUCERS"},[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"_FEATURE_REDUCERS_TOKEN"}]}]],"useFactory":{"__symbolic":"reference","name":"_createFeatureReducers"}}]}}}},"StoreRootModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ActionsSubject"},{"__symbolic":"reference","name":"ReducerObservable"},{"__symbolic":"reference","name":"ScannedActionsSubject"},{"__symbolic":"reference","name":"Store"}]}]}},"StoreFeatureModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"STORE_FEATURES"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"FEATURE_REDUCERS"}]}],null,null],"parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"ɵa"}]},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"ActionReducerMap"}]},{"__symbolic":"reference","name":"ReducerManager"},{"__symbolic":"reference","name":"StoreRootModule"}]}],"ngOnDestroy":[{"__symbolic":"method"}]}},"_initialStateFactory":{"__symbolic":"function"},"_createStoreReducers":{"__symbolic":"function","parameters":["injector","reducers","tokenReducers"],"value":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"reducers"},"right":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"}},"thenExpression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"injector"},"member":"get"},"arguments":[{"__symbolic":"reference","name":"reducers"}]},"elseExpression":{"__symbolic":"reference","name":"reducers"}}},"_createFeatureReducers":{"__symbolic":"function"}},"origins":{"ɵa":"./src/models","ɵb":"./src/store","ɵc":"./src/actions_subject","ɵd":"./src/reducer_manager","ɵe":"./src/scanned_actions_subject","ɵf":"./src/state","Action":"./src/models","ActionReducer":"./src/models","ActionReducerMap":"./src/models","ActionReducerFactory":"./src/models","MetaReducer":"./src/models","Selector":"./src/models","Store":"./src/store","select":"./src/store","combineReducers":"./src/utils","compose":"./src/utils","createReducerFactory":"./src/utils","ActionsSubject":"./src/actions_subject","INIT":"./src/actions_subject","ReducerManager":"./src/reducer_manager","ReducerObservable":"./src/reducer_manager","ReducerManagerDispatcher":"./src/reducer_manager","UPDATE":"./src/reducer_manager","ScannedActionsSubject":"./src/scanned_actions_subject","createSelector":"./src/selector","createSelectorFactory":"./src/selector","createFeatureSelector":"./src/selector","defaultMemoize":"./src/selector","defaultStateFn":"./src/selector","MemoizeFn":"./src/selector","MemoizedProjection":"./src/selector","MemoizedSelector":"./src/selector","State":"./src/state","StateObservable":"./src/state","reduceState":"./src/state","INITIAL_STATE":"./src/tokens","_REDUCER_FACTORY":"./src/tokens","REDUCER_FACTORY":"./src/tokens","_INITIAL_REDUCERS":"./src/tokens","INITIAL_REDUCERS":"./src/tokens","STORE_FEATURES":"./src/tokens","_INITIAL_STATE":"./src/tokens","META_REDUCERS":"./src/tokens","_STORE_REDUCERS":"./src/tokens","_FEATURE_REDUCERS":"./src/tokens","FEATURE_REDUCERS":"./src/tokens","_FEATURE_REDUCERS_TOKEN":"./src/tokens","StoreModule":"./src/store_module","StoreRootModule":"./src/store_module","StoreFeatureModule":"./src/store_module","_initialStateFactory":"./src/store_module","_createStoreReducers":"./src/store_module","_createFeatureReducers":"./src/store_module"},"importAs":"@ngrx/store"} |
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
288001
2696