@storeon/angular
Advanced tools
Comparing version 0.3.1 to 1.1.0
@@ -5,19 +5,33 @@ (function (global, factory) { | ||
(global = global || self, factory((global.storeon = global.storeon || {}, global.storeon.angular = {}), global.ng.core, global.rxjs, global.rxjs.operators)); | ||
}(this, function (exports, core, rxjs, operators) { 'use strict'; | ||
}(this, (function (exports, core, rxjs, operators) { 'use strict'; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
Copyright (c) Microsoft Corporation. | ||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
/* global Reflect, Promise */ | ||
var extendStatics = function(d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
function __extends(d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
} | ||
var __assign = function() { | ||
@@ -34,5 +48,185 @@ __assign = Object.assign || function __assign(t) { | ||
function __rest(s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
} | ||
function __decorate(decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
} | ||
function __param(paramIndex, decorator) { | ||
return function (target, key) { decorator(target, key, paramIndex); } | ||
} | ||
function __metadata(metadataKey, metadataValue) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); | ||
} | ||
function __awaiter(thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
} | ||
function __generator(thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
function step(op) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
case 0: case 1: t = op; break; | ||
case 4: _.label++; return { value: op[1], done: false }; | ||
case 5: _.label++; y = op[1]; op = [0]; continue; | ||
case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
default: | ||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
if (t[2]) _.ops.pop(); | ||
_.trys.pop(); continue; | ||
} | ||
op = body.call(thisArg, _); | ||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
} | ||
} | ||
function __createBinding(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
} | ||
function __exportStar(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
function __values(o) { | ||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; | ||
if (m) return m.call(o); | ||
if (o && typeof o.length === "number") return { | ||
next: function () { | ||
if (o && i >= o.length) o = void 0; | ||
return { value: o && o[i++], done: !o }; | ||
} | ||
}; | ||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); | ||
} | ||
function __read(o, n) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator]; | ||
if (!m) return o; | ||
var i = m.call(o), r, ar = [], e; | ||
try { | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); | ||
} | ||
catch (error) { e = { error: error }; } | ||
finally { | ||
try { | ||
if (r && !r.done && (m = i["return"])) m.call(i); | ||
} | ||
finally { if (e) throw e.error; } | ||
} | ||
return ar; | ||
} | ||
function __spread() { | ||
for (var ar = [], i = 0; i < arguments.length; i++) | ||
ar = ar.concat(__read(arguments[i])); | ||
return ar; | ||
} | ||
function __spreadArrays() { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
function __await(v) { | ||
return this instanceof __await ? (this.v = v, this) : new __await(v); | ||
} | ||
function __asyncGenerator(thisArg, _arguments, generator) { | ||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); | ||
var g = generator.apply(thisArg, _arguments || []), i, q = []; | ||
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; | ||
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } | ||
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } | ||
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } | ||
function fulfill(value) { resume("next", value); } | ||
function reject(value) { resume("throw", value); } | ||
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } | ||
} | ||
function __asyncDelegator(o) { | ||
var i, p; | ||
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; | ||
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } | ||
} | ||
function __asyncValues(o) { | ||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); | ||
var m = o[Symbol.asyncIterator], i; | ||
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); | ||
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } | ||
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } | ||
} | ||
function __makeTemplateObject(cooked, raw) { | ||
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } | ||
return cooked; | ||
}; | ||
function __importStar(mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result.default = mod; | ||
return result; | ||
} | ||
function __importDefault(mod) { | ||
return (mod && mod.__esModule) ? mod : { default: mod }; | ||
} | ||
function __classPrivateFieldGet(receiver, privateMap) { | ||
if (!privateMap.has(receiver)) { | ||
throw new TypeError("attempted to get private field on non-instance"); | ||
} | ||
return privateMap.get(receiver); | ||
} | ||
function __classPrivateFieldSet(receiver, privateMap, value) { | ||
if (!privateMap.has(receiver)) { | ||
throw new TypeError("attempted to set private field on non-instance"); | ||
} | ||
privateMap.set(receiver, value); | ||
return value; | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: lib/storeon.token.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -44,3 +238,4 @@ /** @type {?} */ | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: lib/storeon.service.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -127,9 +322,27 @@ /** | ||
]; }; | ||
/** @nocollapse */ StoreonService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function StoreonService_Factory() { return new StoreonService(core.ɵɵinject(STOREON)); }, token: StoreonService, providedIn: "root" }); | ||
/** @nocollapse */ StoreonService.ɵprov = core.ɵɵdefineInjectable({ factory: function StoreonService_Factory() { return new StoreonService(core.ɵɵinject(STOREON)); }, token: StoreonService, providedIn: "root" }); | ||
return StoreonService; | ||
}()); | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
StoreonService.prototype.state$; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
StoreonService.prototype.unbind; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
StoreonService.prototype.store; | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: lib/storeon.decorator.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -181,3 +394,3 @@ /** | ||
})); | ||
}))); | ||
//# sourceMappingURL=storeon-angular.umd.js.map |
@@ -1,2 +0,16 @@ | ||
!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})}); | ||
!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"; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */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)};var 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:void 0,decorators:[{type:t.Inject,args:[i]}]}]},e.ɵprov=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 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: lib/storeon.decorator.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -45,2 +46,2 @@ import { ɵɵdirectiveInject as directiveInject } from '@angular/core'; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmVvbi5kZWNvcmF0b3IuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3RvcmVvbi9hbmd1bGFyLyIsInNvdXJjZXMiOlsibGliL3N0b3Jlb24uZGVjb3JhdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsaUJBQWlCLElBQUksZUFBZSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3JFLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQzs7Ozs7Ozs7Ozs7QUFT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3Jlb24udXNlU3RvcmVvbihrZXkpKTtcblxuICAgICAgaWYgKGNvbmZpZy5kaXNwYXRjaGVyKSB7XG4gICAgICAgIGNtcFtjb25maWcuZGlzcGF0Y2hlcl0gPSBzdG9yZW9uLmRpc3BhdGNoLmJpbmQoc3RvcmVvbik7XG4gICAgICB9XG5cbiAgICAgIHJldHVybiBjbXA7XG4gICAgfTtcblxuICB9O1xufVxuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: lib/storeon.service.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { Injectable, Inject } from '@angular/core'; | ||
import { Inject, Injectable } from '@angular/core'; | ||
import { BehaviorSubject } from 'rxjs'; | ||
@@ -81,3 +82,3 @@ import { distinctUntilChanged, map, pluck } from 'rxjs/operators'; | ||
]; | ||
/** @nocollapse */ StoreonService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function StoreonService_Factory() { return new StoreonService(i0.ɵɵinject(i1.STOREON)); }, token: StoreonService, providedIn: "root" }); | ||
/** @nocollapse */ StoreonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function StoreonService_Factory() { return new StoreonService(i0.ɵɵinject(i1.STOREON)); }, token: StoreonService, providedIn: "root" }); | ||
if (false) { | ||
@@ -100,2 +101,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmVvbi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN0b3Jlb24vYW5ndWxhci8iLCJzb3VyY2VzIjpbImxpYi9zdG9yZW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFhLE1BQU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luZycpIHtcbiAgICAgIG1hcHBlZCQgPSB0aGlzLnN0YXRlJC5waXBlKHBsdWNrKHBhdGhPck1hcEZuKSk7XG4gICAgfSBlbHNlIGlmICh0eXBlb2YgcGF0aE9yTWFwRm4gPT09ICdmdW5jdGlvbicpIHtcbiAgICAgIG1hcHBlZCQgPSB0aGlzLnN0YXRlJC5waXBlKFxuICAgICAgICBtYXAoc291cmNlID0+IHBhdGhPck1hcEZuKHNvdXJjZSkpXG4gICAgICApO1xuICAgIH0gZWxzZSB7XG4gICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKFxuICAgICAgICBgVW5leHBlY3RlZCB0eXBlICcke3R5cGVvZiBwYXRoT3JNYXBGbn0nIGluIHNlbGVjdCBvcGVyYXRvcixgICtcbiAgICAgICAgYCBleHBlY3RlZCAnc3RyaW5nJyBvciAnZnVuY3Rpb24nYFxuICAgICAgKTtcbiAgICB9XG5cbiAgICByZXR1cm4gbWFwcGVkJC5waXBlKGRpc3RpbmN0VW50aWxDaGFuZ2VkKCkpO1xuICB9XG5cbiAgZGlzcGF0Y2g8SyBleHRlbmRzIGtleW9mIEV2ZW50cz4oZXZlbnQ6IEssIGRhdGE/OiBFdmVudHNbS10pIHtcbiAgICAvLyBAdHMtaWdub3JlXG4gICAgdGhpcy5zdG9yZS5kaXNwYXRjaChldmVudCwgZGF0YSk7XG4gIH1cblxuICBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICBpZiAodGhpcy51bmJpbmQpIHtcbiAgICAgIHRoaXMudW5iaW5kKCk7XG4gICAgfVxuICB9XG5cbn1cbiJdfQ== |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: lib/storeon.token.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -8,2 +9,2 @@ import { InjectionToken } from '@angular/core'; | ||
export const STOREON = new InjectionToken('Token for store object'); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmVvbi50b2tlbi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdG9yZW9uL2FuZ3VsYXIvIiwic291cmNlcyI6WyJsaWIvc3RvcmVvbi50b2tlbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFFL0MsTUFBTSxPQUFPLE9BQU8sR0FBRyxJQUFJLGNBQWMsQ0FBQyx3QkFBd0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGlvblRva2VuIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmV4cG9ydCBjb25zdCBTVE9SRU9OID0gbmV3IEluamVjdGlvblRva2VuKCdUb2tlbiBmb3Igc3RvcmUgb2JqZWN0Jyk7XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmVvbi50b2tlbi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdG9yZW9uL2FuZ3VsYXIvIiwic291cmNlcyI6WyJsaWIvc3RvcmVvbi50b2tlbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBRS9DLE1BQU0sT0FBTyxPQUFPLEdBQUcsSUFBSSxjQUFjLENBQUMsd0JBQXdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3Rpb25Ub2tlbiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5leHBvcnQgY29uc3QgU1RPUkVPTiA9IG5ldyBJbmplY3Rpb25Ub2tlbignVG9rZW4gZm9yIHN0b3JlIG9iamVjdCcpO1xuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: public_api.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -11,2 +12,2 @@ /* | ||
export { UseStoreon } from './lib/storeon.decorator'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdG9yZW9uL2FuZ3VsYXIvIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSwrQkFBYyx1QkFBdUIsQ0FBQztBQUN0Qyx3QkFBYyxxQkFBcUIsQ0FBQztBQUNwQywyQkFBYyx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgQHN0b3Jlb24vYW5ndWxhclxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL3N0b3Jlb24uc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zdG9yZW9uLnRva2VuJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3N0b3Jlb24uZGVjb3JhdG9yJztcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdG9yZW9uL2FuZ3VsYXIvIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBSUEsK0JBQWMsdUJBQXVCLENBQUM7QUFDdEMsd0JBQWMscUJBQXFCLENBQUM7QUFDcEMsMkJBQWMseUJBQXlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIEBzdG9yZW9uL2FuZ3VsYXJcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9zdG9yZW9uLnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvc3RvcmVvbi50b2tlbic7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zdG9yZW9uLmRlY29yYXRvcic7XG4iXX0= |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: storeon-angular.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -9,2 +10,2 @@ /** | ||
export { StoreonService, STOREON, UseStoreon } from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmVvbi1hbmd1bGFyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN0b3Jlb24vYW5ndWxhci8iLCJzb3VyY2VzIjpbInN0b3Jlb24tYW5ndWxhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsb0RBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmVvbi1hbmd1bGFyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN0b3Jlb24vYW5ndWxhci8iLCJzb3VyY2VzIjpbInN0b3Jlb24tYW5ndWxhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUlBLG9EQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ== |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: lib/storeon.decorator.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -45,2 +46,2 @@ import { ɵɵdirectiveInject as directiveInject } from '@angular/core'; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmVvbi5kZWNvcmF0b3IuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3RvcmVvbi9hbmd1bGFyLyIsInNvdXJjZXMiOlsibGliL3N0b3Jlb24uZGVjb3JhdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsaUJBQWlCLElBQUksZUFBZSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3JFLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQzs7Ozs7Ozs7Ozs7QUFTbkQsTUFBTSxVQUFVLFVBQVUsQ0FBbUQsTUFHNUU7SUFDQzs7OztJQUFPLFVBQUMsT0FBTzs7WUFDUCxlQUFlLEdBQUcsT0FBTyxDQUFDLGNBQWMsQ0FBQyxPQUFPO1FBQ3RELE9BQU8sQ0FBQyxjQUFjLENBQUMsT0FBTzs7O1FBQUc7O2dCQUN6QixHQUFHLEdBQUcsZUFBZSxD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ickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: lib/storeon.service.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable, Inject } from '@angular/core'; | ||
import { __assign } from "tslib"; | ||
import { Inject, Injectable } from '@angular/core'; | ||
import { BehaviorSubject } from 'rxjs'; | ||
@@ -25,3 +26,3 @@ import { distinctUntilChanged, map, pluck } from 'rxjs/operators'; | ||
function (state) { | ||
_this.state$.next(tslib_1.__assign({}, (/** @type {?} */ (state)))); | ||
_this.state$.next(__assign({}, (/** @type {?} */ (state)))); | ||
return null; | ||
@@ -93,3 +94,3 @@ })); | ||
]; }; | ||
/** @nocollapse */ StoreonService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function StoreonService_Factory() { return new StoreonService(i0.ɵɵinject(i1.STOREON)); }, token: StoreonService, providedIn: "root" }); | ||
/** @nocollapse */ StoreonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function StoreonService_Factory() { return new StoreonService(i0.ɵɵinject(i1.STOREON)); }, token: StoreonService, providedIn: "root" }); | ||
return StoreonService; | ||
@@ -115,2 +116,2 @@ }()); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmVvbi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN0b3Jlb24vYW5ndWxhci8iLCJzb3VyY2VzIjpbImxpYi9zdG9yZW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUM5RCxPQUFPLEVBQUUsZUFBZSxFQUFjLE1BQU0sTUFBTSxDQUFDO0FBQ25ELE9B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odHlwZW9mIHBhdGhPck1hcEZuID09PSAnc3RyaW5nJykge1xuICAgICAgbWFwcGVkJCA9IHRoaXMuc3RhdGUkLnBpcGUocGx1Y2socGF0aE9yTWFwRm4pKTtcbiAgICB9IGVsc2UgaWYgKHR5cGVvZiBwYXRoT3JNYXBGbiA9PT0gJ2Z1bmN0aW9uJykge1xuICAgICAgbWFwcGVkJCA9IHRoaXMuc3RhdGUkLnBpcGUoXG4gICAgICAgIG1hcChzb3VyY2UgPT4gcGF0aE9yTWFwRm4oc291cmNlKSlcbiAgICAgICk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoXG4gICAgICAgIGBVbmV4cGVjdGVkIHR5cGUgJyR7dHlwZW9mIHBhdGhPck1hcEZufScgaW4gc2VsZWN0IG9wZXJhdG9yLGAgK1xuICAgICAgICBgIGV4cGVjdGVkICdzdHJpbmcnIG9yICdmdW5jdGlvbidgXG4gICAgICApO1xuICAgIH1cblxuICAgIHJldHVybiBtYXBwZWQkLnBpcGUoZGlzdGluY3RVbnRpbENoYW5nZWQoKSk7XG4gIH1cblxuICBkaXNwYXRjaDxLIGV4dGVuZHMga2V5b2YgRXZlbnRzPihldmVudDogSywgZGF0YT86IEV2ZW50c1tLXSkge1xuICAgIC8vIEB0cy1pZ25vcmVcbiAgICB0aGlzLnN0b3JlLmRpc3BhdGNoKGV2ZW50LCBkYXRhKTtcbiAgfVxuXG4gIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgIGlmICh0aGlzLnVuYmluZCkge1xuICAgICAgdGhpcy51bmJpbmQoKTtcbiAgICB9XG4gIH1cblxufVxuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: lib/storeon.token.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -8,2 +9,2 @@ import { InjectionToken } from '@angular/core'; | ||
export var STOREON = new InjectionToken('Token for store object'); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmVvbi50b2tlbi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdG9yZW9uL2FuZ3VsYXIvIiwic291cmNlcyI6WyJsaWIvc3RvcmVvbi50b2tlbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFFL0MsTUFBTSxLQUFPLE9BQU8sR0FBRyxJQUFJLGNBQWMsQ0FBQyx3QkFBd0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGlvblRva2VuIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmV4cG9ydCBjb25zdCBTVE9SRU9OID0gbmV3IEluamVjdGlvblRva2VuKCdUb2tlbiBmb3Igc3RvcmUgb2JqZWN0Jyk7XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmVvbi50b2tlbi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdG9yZW9uL2FuZ3VsYXIvIiwic291cmNlcyI6WyJsaWIvc3RvcmVvbi50b2tlbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBRS9DLE1BQU0sS0FBTyxPQUFPLEdBQUcsSUFBSSxjQUFjLENBQUMsd0JBQXdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3Rpb25Ub2tlbiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5leHBvcnQgY29uc3QgU1RPUkVPTiA9IG5ldyBJbmplY3Rpb25Ub2tlbignVG9rZW4gZm9yIHN0b3JlIG9iamVjdCcpO1xuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: public_api.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -11,2 +12,2 @@ /* | ||
export { UseStoreon } from './lib/storeon.decorator'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdG9yZW9uL2FuZ3VsYXIvIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSwrQkFBYyx1QkFBdUIsQ0FBQztBQUN0Qyx3QkFBYyxxQkFBcUIsQ0FBQztBQUNwQywyQkFBYyx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgQHN0b3Jlb24vYW5ndWxhclxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL3N0b3Jlb24uc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zdG9yZW9uLnRva2VuJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3N0b3Jlb24uZGVjb3JhdG9yJztcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdG9yZW9uL2FuZ3VsYXIvIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBSUEsK0JBQWMsdUJBQXVCLENBQUM7QUFDdEMsd0JBQWMscUJBQXFCLENBQUM7QUFDcEMsMkJBQWMseUJBQXlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIEBzdG9yZW9uL2FuZ3VsYXJcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9zdG9yZW9uLnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvc3RvcmVvbi50b2tlbic7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zdG9yZW9uLmRlY29yYXRvcic7XG4iXX0= |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: storeon-angular.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -9,2 +10,2 @@ /** | ||
export { StoreonService, STOREON, UseStoreon } from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmVvbi1hbmd1bGFyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN0b3Jlb24vYW5ndWxhci8iLCJzb3VyY2VzIjpbInN0b3Jlb24tYW5ndWxhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsb0RBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmVvbi1hbmd1bGFyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN0b3Jlb24vYW5ndWxhci8iLCJzb3VyY2VzIjpbInN0b3Jlb24tYW5ndWxhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUlBLG9EQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ== |
@@ -7,3 +7,4 @@ import { InjectionToken, Injectable, Inject, ɵɵdefineInjectable, ɵɵinject, ɵɵdirectiveInject } from '@angular/core'; | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: lib/storeon.token.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -15,3 +16,4 @@ /** @type {?} */ | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: lib/storeon.service.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -88,7 +90,25 @@ /** | ||
]; | ||
/** @nocollapse */ StoreonService.ngInjectableDef = ɵɵdefineInjectable({ factory: function StoreonService_Factory() { return new StoreonService(ɵɵinject(STOREON)); }, token: StoreonService, providedIn: "root" }); | ||
/** @nocollapse */ StoreonService.ɵprov = ɵɵdefineInjectable({ factory: function StoreonService_Factory() { return new StoreonService(ɵɵinject(STOREON)); }, token: StoreonService, providedIn: "root" }); | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
StoreonService.prototype.state$; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
StoreonService.prototype.unbind; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
StoreonService.prototype.store; | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: lib/storeon.decorator.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -134,3 +154,15 @@ /** | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: public_api.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: storeon-angular.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
export { STOREON, StoreonService, UseStoreon }; | ||
//# sourceMappingURL=storeon-angular.js.map |
@@ -8,3 +8,4 @@ import { __assign } from 'tslib'; | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: lib/storeon.token.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -16,3 +17,4 @@ /** @type {?} */ | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: lib/storeon.service.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -99,9 +101,27 @@ /** | ||
]; }; | ||
/** @nocollapse */ StoreonService.ngInjectableDef = ɵɵdefineInjectable({ factory: function StoreonService_Factory() { return new StoreonService(ɵɵinject(STOREON)); }, token: StoreonService, providedIn: "root" }); | ||
/** @nocollapse */ StoreonService.ɵprov = ɵɵdefineInjectable({ factory: function StoreonService_Factory() { return new StoreonService(ɵɵinject(STOREON)); }, token: StoreonService, providedIn: "root" }); | ||
return StoreonService; | ||
}()); | ||
if (false) { | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
StoreonService.prototype.state$; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
StoreonService.prototype.unbind; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
StoreonService.prototype.store; | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated from: lib/storeon.decorator.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -147,3 +167,15 @@ /** | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: public_api.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: storeon-angular.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
export { STOREON, StoreonService, UseStoreon }; | ||
//# sourceMappingURL=storeon-angular.js.map |
import { OnDestroy } from '@angular/core'; | ||
import { Observable } from 'rxjs'; | ||
import { Store, StoreonEvents } from 'storeon'; | ||
import { StoreonEvents, StoreonStore } from 'storeon'; | ||
export declare class StoreonService<State, Events extends StoreonEvents<State> = any> implements OnDestroy { | ||
@@ -8,3 +8,3 @@ private store; | ||
private readonly unbind; | ||
constructor(store: Store<State, Events>); | ||
constructor(store: StoreonStore<State, Events>); | ||
useStoreon<K>(mapFn: (state: State) => K): Observable<K>; | ||
@@ -11,0 +11,0 @@ useStoreon<K extends keyof State>(path: K): Observable<State[K]>; |
import { InjectionToken } from '@angular/core'; | ||
export declare const STOREON: InjectionToken<{}>; | ||
export declare const STOREON: InjectionToken<unknown>; |
{ | ||
"name": "@storeon/angular", | ||
"version": "0.3.1", | ||
"version": "1.1.0", | ||
"description": "Storeon for Angular 🅰⚡", | ||
"peerDependencies": { | ||
"@angular/common": "^8.1.1", | ||
"@angular/core": "^8.1.1", | ||
"storeon": "^0.9.1" | ||
"@angular/common": "^9.1", | ||
"@angular/core": "^9.1", | ||
"storeon": "^3.0.3" | ||
}, | ||
@@ -39,4 +39,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"tslib": "^1.9.0" | ||
"tslib": "^1.10.0" | ||
} | ||
} |
@@ -23,2 +23,4 @@ # @storeon/angular | ||
*@storeon/angular* **1.0.0**+ requires *storeon* **3.0.3**+ | ||
*@storeon/angular* **0.3.0**+ requires *storeon* **0.9.0**+ | ||
@@ -33,4 +35,4 @@ | ||
```typescript | ||
import createStore, { Module, StoreonEvents } from 'storeon'; | ||
import devtools from 'storeon/devtools'; | ||
import { createStoreon, StoreonModule, StoreonEvents } from 'storeon'; | ||
import { storeonDevtools } from 'storeon/devtools'; | ||
import { environment } from 'src/environments/environment'; | ||
@@ -50,3 +52,3 @@ | ||
// Initial state, reducers and business logic are packed in independent modules | ||
const counterModule: Module<State, Events> = store => { | ||
const counterModule: StoreonModule<State, Events> = store => { | ||
// Initial state | ||
@@ -61,3 +63,3 @@ store.on('@init', () => ({ | ||
export const defaultStore = createStore<State, Events>([counterModule, !environment.production && devtools]); | ||
export const defaultStore = createStoreon<State, Events>([counterModule, !environment.production && storeonDevtools]); | ||
@@ -114,3 +116,3 @@ // your NgModule | ||
import { Events, State } from '../app.module'; | ||
import { Dispatch } from 'storeon'; | ||
import { StoreonDispatch } from 'storeon'; | ||
@@ -126,3 +128,3 @@ @Component({ | ||
count: Observable<number>; | ||
dispatch: Dispatch<Events>; | ||
dispatch: StoreonDispatch<Events>; | ||
@@ -129,0 +131,0 @@ constructor() { } |
@@ -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":"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"} | ||
{"__symbolic":"module","version":4,"metadata":{"StoreonService":{"__symbolic":"class","arity":2,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":16,"character":15},"arguments":[{"__symbolic":"reference","name":"STOREON"}]}]],"parameters":[{"__symbolic":"reference","name":"StoreonStore","module":"storeon","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":16,"character":59,"context":{"typeName":"State"},"module":"./lib/storeon.service"},{"__symbolic":"error","message":"Could not resolve type","line":16,"character":66,"context":{"typeName":"Events"},"module":"./lib/storeon.service"}]}]}],"useStoreon":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"dispatch":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
121575
0
1098
1
136
+ Added@angular/common@9.1.13(transitive)
+ Added@angular/core@9.1.13(transitive)
+ Addedstoreon@3.1.5(transitive)
+ Addedzone.js@0.10.3(transitive)
- Removed@angular/common@8.2.14(transitive)
- Removed@angular/core@8.2.14(transitive)
- Removedstoreon@0.9.8(transitive)
- Removedzone.js@0.9.1(transitive)
Updatedtslib@^1.10.0