@storeon/angular
Advanced tools
Comparing version 0.3.0 to 0.3.1
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('storeon')) : | ||
typeof define === 'function' && define.amd ? define('@storeon/angular', ['exports', '@angular/core', 'rxjs', 'rxjs/operators', 'storeon'], factory) : | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators')) : | ||
typeof define === 'function' && define.amd ? define('@storeon/angular', ['exports', '@angular/core', 'rxjs', 'rxjs/operators'], factory) : | ||
(global = global || self, factory((global.storeon = global.storeon || {}, global.storeon.angular = {}), global.ng.core, global.rxjs, global.rxjs.operators)); | ||
@@ -89,3 +89,3 @@ }(this, function (exports, core, rxjs, operators) { 'use strict'; | ||
/** | ||
* @template E, K | ||
* @template K | ||
* @param {?} event | ||
@@ -96,3 +96,3 @@ * @param {?=} data | ||
StoreonService.prototype.dispatch = /** | ||
* @template E, K | ||
* @template K | ||
* @param {?} event | ||
@@ -103,2 +103,3 @@ * @param {?=} data | ||
function (event, data) { | ||
// @ts-ignore | ||
this.store.dispatch(event, data); | ||
@@ -105,0 +106,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("storeon")):"function"==typeof define&&define.amd?define("@storeon/angular",["exports","@angular/core","rxjs","rxjs/operators","storeon"],t):t(((e=e||self).storeon=e.storeon||{},e.storeon.angular={}),e.ng.core,e.rxjs,e.rxjs.operators)}(this,function(e,t,n,r){"use strict";var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=new t.InjectionToken("Token for store object"),s=function(){function e(e){var t=this;this.store=e,this.state$=new n.BehaviorSubject(this.store.get()),this.unbind=this.store.on("@changed",function(e){return t.state$.next(o({},e)),null})}return e.prototype.useStoreon=function(e){var t;if("string"==typeof e)t=this.state$.pipe(r.pluck(e));else{if("function"!=typeof e)throw new TypeError("Unexpected type '"+typeof e+"' in select operator, expected 'string' or 'function'");t=this.state$.pipe(r.map(function(t){return e(t)}))}return t.pipe(r.distinctUntilChanged())},e.prototype.dispatch=function(e,t){this.store.dispatch(e,t)},e.prototype.ngOnDestroy=function(){this.unbind&&this.unbind()},e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:t.Inject,args:[i]}]}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(i))},token:e,providedIn:"root"}),e}();e.STOREON=i,e.StoreonService=s,e.UseStoreon=function(e){return function(n){var r=n.ngComponentDef.factory;n.ngComponentDef.factory=function(){var o=r(n.ngComponentDef.type),i=t.ɵɵdirectiveInject(s);return e.keys.forEach(function(e){return o[e]=i.useStoreon(e)}),e.dispatcher&&(o[e.dispatcher]=i.dispatch.bind(i)),o}}},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@storeon/angular",["exports","@angular/core","rxjs","rxjs/operators"],t):t(((e=e||self).storeon=e.storeon||{},e.storeon.angular={}),e.ng.core,e.rxjs,e.rxjs.operators)}(this,function(e,t,n,r){"use strict";var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=new t.InjectionToken("Token for store object"),s=function(){function e(e){var t=this;this.store=e,this.state$=new n.BehaviorSubject(this.store.get()),this.unbind=this.store.on("@changed",function(e){return t.state$.next(o({},e)),null})}return e.prototype.useStoreon=function(e){var t;if("string"==typeof e)t=this.state$.pipe(r.pluck(e));else{if("function"!=typeof e)throw new TypeError("Unexpected type '"+typeof e+"' in select operator, expected 'string' or 'function'");t=this.state$.pipe(r.map(function(t){return e(t)}))}return t.pipe(r.distinctUntilChanged())},e.prototype.dispatch=function(e,t){this.store.dispatch(e,t)},e.prototype.ngOnDestroy=function(){this.unbind&&this.unbind()},e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:t.Inject,args:[i]}]}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(i))},token:e,providedIn:"root"}),e}();e.STOREON=i,e.StoreonService=s,e.UseStoreon=function(e){return function(n){var r=n.ngComponentDef.factory;n.ngComponentDef.factory=function(){var o=r(n.ngComponentDef.type),i=t.ɵɵdirectiveInject(s);return e.keys.forEach(function(e){return o[e]=i.useStoreon(e)}),e.dispatcher&&(o[e.dispatcher]=i.dispatch.bind(i)),o}}},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=storeon-angular.umd.min.js.map |
@@ -45,2 +45,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmVvbi5kZWNvcmF0b3IuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3RvcmVvbi9hbmd1bGFyLyIsInNvdXJjZXMiOlsibGliL3N0b3Jlb24uZGVjb3JhdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsaUJBQWlCLElBQUksZUFBZSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3JFLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQzs7Ozs7Ozs7Ozs7QUFTbkQsTUFBTSxVQUFVLFVBQVUsQ0FBZ0IsTUFHekM7SUFDQzs7OztJQUFPLENBQUMsT0FBTyxFQUFFLEVBQUU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AgICB9O1xuXG4gIH07XG59XG4iXX0= |
@@ -8,3 +8,2 @@ /** | ||
import { distinctUntilChanged, map, pluck } from 'rxjs/operators'; | ||
import createStore from 'storeon'; | ||
import { STOREON } from './storeon.token'; | ||
@@ -56,3 +55,3 @@ import * as i0 from "@angular/core"; | ||
/** | ||
* @template E, K | ||
* @template K | ||
* @param {?} event | ||
@@ -63,2 +62,3 @@ * @param {?=} data | ||
dispatch(event, data) { | ||
// @ts-ignore | ||
this.store.dispatch(event, data); | ||
@@ -102,2 +102,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmVvbi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN0b3Jlb24vYW5ndWxhci8iLCJzb3VyY2VzIjpbImxpYi9zdG9yZW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFhLE1BQU0sZUFBZSxDQUFDO0FBQzlELE9BQU8sRUFBRSxlQUFlLEVBQWMsTUFBTSxNQUFNLENBQUM7QUFDbkQsT0FBTyxFQUFFLG9CQUFvQixFQUFFLEdBQUcsRUFBRSxLQUFLLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNsRSxPQUFPLFdBQVcsTUFBTSxTQUFTLENBQUM7QUFDbEMsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLGlCQUFpQixDQUFDOzs7Ozs7QUFLMUMsTUFBTSxPQUFPLGNBQWM7Ozs7SUFNekIsWUFBcUMsS0FBK0I7UUFBL0IsVUFBSyxHQUFMLEtBQUssQ0FBMEI7UUFKNUQsV0FBTSxHQUFHLElBQUksZUFBZSxDQUFRLElBQUksQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQztRQUs1RCxJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksQ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FN0b3Jlb25FdmVudHM8U3RhdGU+ID0gYW55Pihjb25maWc6IHtcbiAga2V5czogQXJyYXk8a2V5b2YgU3RhdGU+LFxuICBkaXNwYXRjaGVyPzogc3RyaW5nXG59KSB7XG4gIHJldHVybiAoY21wVHlwZSkgPT4ge1xuICAgIGNvbnN0IG9yaWdpbmFsRmFjdG9yeSA9IGNtcFR5cGUubmdDb21wb25lbnREZWYuZmFjdG9yeTtcbiAgICBjbXBUeXBlLm5nQ29tcG9uZW50RGVmLmZhY3RvcnkgPSAoKSA9PiB7XG4gICAgICBjb25zdCBjbXAgPSBvcmlnaW5hbEZhY3RvcnkoY21wVHlwZS5uZ0NvbXBvbmVudERlZi50eXBlKTtcblxuICAgICAgY29uc3Qgc3RvcmVvbiA9IGRpcmVjdGl2ZUluamVjdDxTdG9yZW9uU2VydmljZTxTdGF0ZSwgRXZlbnRzPj4oU3RvcmVvblNlcnZpY2UpO1xuXG4gICAgICBjb25maWcua2V5cy5mb3JFYWNoKGtleSA9PiBjbXBba2V5XSA9IHN0b3Jlb24udXNlU3RvcmVvbihrZXkpKTtcblxuICAgICAgaWYgKGNvbmZpZy5kaXNwYXRjaGVyKSB7XG4gICAgICAgIGNtcFtjb25maWcuZGlzcGF0Y2hlcl0gPSBzdG9yZW9uLmRpc3BhdGNoLmJpbmQoc3RvcmVvbik7XG4gICAgICB9XG5cbiAgICAgIHJldHVybiBjbXA7XG4gICAgfTtcblxuICB9O1xufVxuIl19 |
@@ -9,3 +9,2 @@ /** | ||
import { distinctUntilChanged, map, pluck } from 'rxjs/operators'; | ||
import createStore from 'storeon'; | ||
import { STOREON } from './storeon.token'; | ||
@@ -59,3 +58,3 @@ import * as i0 from "@angular/core"; | ||
/** | ||
* @template E, K | ||
* @template K | ||
* @param {?} event | ||
@@ -66,3 +65,3 @@ * @param {?=} data | ||
StoreonService.prototype.dispatch = /** | ||
* @template E, K | ||
* @template K | ||
* @param {?} event | ||
@@ -73,2 +72,3 @@ * @param {?=} data | ||
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vLyBAdHMtaWdub3JlXG4gICAgdGhpcy5zdG9yZS5kaXNwYXRjaChldmVudCwgZGF0YSk7XG4gIH1cblxuICBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICBpZiAodGhpcy51bmJpbmQpIHtcbiAgICAgIHRoaXMudW5iaW5kKCk7XG4gICAgfVxuICB9XG5cbn1cbiJdfQ== |
import { InjectionToken, Injectable, Inject, ɵɵdefineInjectable, ɵɵinject, ɵɵdirectiveInject } from '@angular/core'; | ||
import { BehaviorSubject } from 'rxjs'; | ||
import { pluck, map, distinctUntilChanged } from 'rxjs/operators'; | ||
import 'storeon'; | ||
@@ -60,3 +59,3 @@ /** | ||
/** | ||
* @template E, K | ||
* @template K | ||
* @param {?} event | ||
@@ -67,2 +66,3 @@ * @param {?=} data | ||
dispatch(event, data) { | ||
// @ts-ignore | ||
this.store.dispatch(event, data); | ||
@@ -69,0 +69,0 @@ } |
@@ -5,3 +5,2 @@ import { __assign } from 'tslib'; | ||
import { pluck, map, distinctUntilChanged } from 'rxjs/operators'; | ||
import 'storeon'; | ||
@@ -64,3 +63,3 @@ /** | ||
/** | ||
* @template E, K | ||
* @template K | ||
* @param {?} event | ||
@@ -71,3 +70,3 @@ * @param {?=} data | ||
StoreonService.prototype.dispatch = /** | ||
* @template E, K | ||
* @template K | ||
* @param {?} event | ||
@@ -78,2 +77,3 @@ * @param {?=} data | ||
function (event, data) { | ||
// @ts-ignore | ||
this.store.dispatch(event, data); | ||
@@ -80,0 +80,0 @@ }; |
@@ -0,1 +1,2 @@ | ||
import { StoreonEvents } from 'storeon'; | ||
/*** | ||
@@ -7,5 +8,5 @@ * | ||
*/ | ||
export declare function UseStoreon<State, Events>(config: { | ||
export declare function UseStoreon<State, Events extends StoreonEvents<State> = any>(config: { | ||
keys: Array<keyof State>; | ||
dispatcher?: string; | ||
}): (cmpType: any) => void; |
import { OnDestroy } from '@angular/core'; | ||
import { Observable } from 'rxjs'; | ||
import createStore from 'storeon'; | ||
export declare class StoreonService<State, Events> implements OnDestroy { | ||
import { Store, StoreonEvents } from 'storeon'; | ||
export declare class StoreonService<State, Events extends StoreonEvents<State> = any> implements OnDestroy { | ||
private store; | ||
private state$; | ||
private readonly unbind; | ||
constructor(store: createStore.Store<State>); | ||
constructor(store: Store<State, Events>); | ||
useStoreon<K>(mapFn: (state: State) => K): Observable<K>; | ||
useStoreon<K extends keyof State>(path: K): Observable<State[K]>; | ||
dispatch<E extends Events, K extends keyof E>(event: K, data?: E[K]): void; | ||
dispatch<K extends keyof Events>(event: K, data?: Events[K]): void; | ||
ngOnDestroy(): void; | ||
} |
{ | ||
"name": "@storeon/angular", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Storeon for Angular 🅰⚡", | ||
"peerDependencies": { | ||
"@angular/common": "^8.1.0", | ||
"@angular/core": "^8.1.0", | ||
"@angular/common": "^8.1.1", | ||
"@angular/core": "^8.1.1", | ||
"storeon": "^0.9.1" | ||
@@ -9,0 +9,0 @@ }, |
@@ -23,2 +23,4 @@ # @storeon/angular | ||
*@storeon/angular* **0.3.0**+ requires *storeon* **0.9.0**+ | ||
*@storeon/angular* **0.2.0**+ supports Angular **8** | ||
@@ -25,0 +27,0 @@ |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"StoreonService":{"__symbolic":"class","arity":2,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":15,"character":15},"arguments":[{"__symbolic":"reference","name":"STOREON"}]}]],"parameters":[{"__symbolic":"select","member":"Store","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":15,"character":64,"context":{"typeName":"State"},"module":"./lib/storeon.service"}]}]}],"useStoreon":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"dispatch":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"STOREON":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":2,"character":27},"arguments":["Token for store object"]},"UseStoreon":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"error","message":"Lambda not supported","line":14,"character":9,"module":"./lib/storeon.decorator"}}},"origins":{"StoreonService":"./lib/storeon.service","STOREON":"./lib/storeon.token","UseStoreon":"./lib/storeon.decorator"},"importAs":"@storeon/angular"} | ||
{"__symbolic":"module","version":4,"metadata":{"StoreonService":{"__symbolic":"class","arity":2,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":15,"character":15},"arguments":[{"__symbolic":"reference","name":"STOREON"}]}]],"parameters":[{"__symbolic":"reference","name":"Store","module":"storeon","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":15,"character":52,"context":{"typeName":"State"},"module":"./lib/storeon.service"},{"__symbolic":"error","message":"Could not resolve type","line":15,"character":59,"context":{"typeName":"Events"},"module":"./lib/storeon.service"}]}]}],"useStoreon":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"dispatch":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"STOREON":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":2,"character":27},"arguments":["Token for store object"]},"UseStoreon":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"error","message":"Lambda not supported","line":14,"character":9,"module":"./lib/storeon.decorator"}}},"origins":{"StoreonService":"./lib/storeon.service","STOREON":"./lib/storeon.token","UseStoreon":"./lib/storeon.decorator"},"importAs":"@storeon/angular"} |
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
91808
826
134