@ngxs/store 3.7.3-dev.master-d470dff → 3.7.3-dev.master-8ecbd7f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/ngxs-store.umd.js +82 -59
- package/bundles/ngxs-store.umd.js.map +1 -1
- package/bundles/ngxs-store.umd.min.js +1 -1
- package/bundles/ngxs-store.umd.min.js.map +1 -1
- package/esm2015/ngxs-store.js +12 -13
- package/esm2015/src/execution/dispatch-outside-zone-ngxs-execution-strategy.js +4 -2
- package/esm2015/src/execution/noop-ngxs-execution-strategy.js +4 -2
- package/esm2015/src/execution/symbols.js +26 -3
- package/esm2015/src/module.js +4 -5
- package/esm5/ngxs-store.js +12 -13
- package/esm5/src/execution/dispatch-outside-zone-ngxs-execution-strategy.js +4 -2
- package/esm5/src/execution/noop-ngxs-execution-strategy.js +4 -2
- package/esm5/src/execution/symbols.js +26 -3
- package/esm5/src/module.js +4 -5
- package/fesm2015/ngxs-store.js +55 -32
- package/fesm2015/ngxs-store.js.map +1 -1
- package/fesm5/ngxs-store.js +68 -45
- package/fesm5/ngxs-store.js.map +1 -1
- package/ngxs-store.d.ts +11 -12
- package/ngxs-store.metadata.json +1 -1
- package/package.json +1 -1
- package/src/execution/symbols.d.ts +5 -1
|
@@ -382,13 +382,14 @@
|
|
|
382
382
|
return func();
|
|
383
383
|
};
|
|
384
384
|
DispatchOutsideZoneNgxsExecutionStrategy.decorators = [
|
|
385
|
-
{ type: core.Injectable }
|
|
385
|
+
{ type: core.Injectable, args: [{ providedIn: 'root' },] }
|
|
386
386
|
];
|
|
387
387
|
/** @nocollapse */
|
|
388
388
|
DispatchOutsideZoneNgxsExecutionStrategy.ctorParameters = function () { return [
|
|
389
389
|
{ type: core.NgZone },
|
|
390
390
|
{ type: String, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] }
|
|
391
391
|
]; };
|
|
392
|
+
/** @nocollapse */ DispatchOutsideZoneNgxsExecutionStrategy.ngInjectableDef = core.defineInjectable({ factory: function DispatchOutsideZoneNgxsExecutionStrategy_Factory() { return new DispatchOutsideZoneNgxsExecutionStrategy(core.inject(core.NgZone), core.inject(core.PLATFORM_ID)); }, token: DispatchOutsideZoneNgxsExecutionStrategy, providedIn: "root" });
|
|
392
393
|
return DispatchOutsideZoneNgxsExecutionStrategy;
|
|
393
394
|
}());
|
|
394
395
|
if (false) {
|
|
@@ -643,11 +644,72 @@
|
|
|
643
644
|
* @fileoverview added by tsickle
|
|
644
645
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
645
646
|
*/
|
|
647
|
+
var NoopNgxsExecutionStrategy = /** @class */ (function () {
|
|
648
|
+
function NoopNgxsExecutionStrategy() {
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* @template T
|
|
652
|
+
* @param {?} func
|
|
653
|
+
* @return {?}
|
|
654
|
+
*/
|
|
655
|
+
NoopNgxsExecutionStrategy.prototype.enter = /**
|
|
656
|
+
* @template T
|
|
657
|
+
* @param {?} func
|
|
658
|
+
* @return {?}
|
|
659
|
+
*/
|
|
660
|
+
function (func) {
|
|
661
|
+
return func();
|
|
662
|
+
};
|
|
663
|
+
/**
|
|
664
|
+
* @template T
|
|
665
|
+
* @param {?} func
|
|
666
|
+
* @return {?}
|
|
667
|
+
*/
|
|
668
|
+
NoopNgxsExecutionStrategy.prototype.leave = /**
|
|
669
|
+
* @template T
|
|
670
|
+
* @param {?} func
|
|
671
|
+
* @return {?}
|
|
672
|
+
*/
|
|
673
|
+
function (func) {
|
|
674
|
+
return func();
|
|
675
|
+
};
|
|
676
|
+
NoopNgxsExecutionStrategy.decorators = [
|
|
677
|
+
{ type: core.Injectable, args: [{ providedIn: 'root' },] }
|
|
678
|
+
];
|
|
679
|
+
/** @nocollapse */ NoopNgxsExecutionStrategy.ngInjectableDef = core.defineInjectable({ factory: function NoopNgxsExecutionStrategy_Factory() { return new NoopNgxsExecutionStrategy(); }, token: NoopNgxsExecutionStrategy, providedIn: "root" });
|
|
680
|
+
return NoopNgxsExecutionStrategy;
|
|
681
|
+
}());
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* @fileoverview added by tsickle
|
|
685
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
686
|
+
*/
|
|
687
|
+
/**
|
|
688
|
+
* The strategy that might be provided by users through `options.executionStrategy`.
|
|
689
|
+
* @type {?}
|
|
690
|
+
*/
|
|
691
|
+
var USER_PROVIDED_NGXS_EXECUTION_STRATEGY = new core.InjectionToken('USER_PROVIDED_NGXS_EXECUTION_STRATEGY');
|
|
646
692
|
/*
|
|
647
693
|
* Internal execution strategy injection token
|
|
648
694
|
*/
|
|
649
695
|
/** @type {?} */
|
|
650
|
-
var NGXS_EXECUTION_STRATEGY = new core.InjectionToken('NGXS_EXECUTION_STRATEGY'
|
|
696
|
+
var NGXS_EXECUTION_STRATEGY = new core.InjectionToken('NGXS_EXECUTION_STRATEGY', {
|
|
697
|
+
providedIn: 'root',
|
|
698
|
+
factory: (/**
|
|
699
|
+
* @return {?}
|
|
700
|
+
*/
|
|
701
|
+
function () {
|
|
702
|
+
/** @type {?} */
|
|
703
|
+
var injector = core.inject(core.INJECTOR);
|
|
704
|
+
/** @type {?} */
|
|
705
|
+
var executionStrategy = injector.get(USER_PROVIDED_NGXS_EXECUTION_STRATEGY);
|
|
706
|
+
return executionStrategy
|
|
707
|
+
? injector.get(executionStrategy)
|
|
708
|
+
: injector.get(typeof core.ɵglobal.Zone !== 'undefined'
|
|
709
|
+
? DispatchOutsideZoneNgxsExecutionStrategy
|
|
710
|
+
: NoopNgxsExecutionStrategy);
|
|
711
|
+
})
|
|
712
|
+
});
|
|
651
713
|
/**
|
|
652
714
|
* @record
|
|
653
715
|
*/
|
|
@@ -4053,8 +4115,8 @@
|
|
|
4053
4115
|
function (states, options) {
|
|
4054
4116
|
return [
|
|
4055
4117
|
{
|
|
4056
|
-
provide:
|
|
4057
|
-
|
|
4118
|
+
provide: USER_PROVIDED_NGXS_EXECUTION_STRATEGY,
|
|
4119
|
+
useValue: options.executionStrategy
|
|
4058
4120
|
},
|
|
4059
4121
|
{
|
|
4060
4122
|
provide: ROOT_STATE_TOKEN,
|
|
@@ -4629,45 +4691,6 @@
|
|
|
4629
4691
|
});
|
|
4630
4692
|
}
|
|
4631
4693
|
|
|
4632
|
-
/**
|
|
4633
|
-
* @fileoverview added by tsickle
|
|
4634
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4635
|
-
*/
|
|
4636
|
-
var NoopNgxsExecutionStrategy = /** @class */ (function () {
|
|
4637
|
-
function NoopNgxsExecutionStrategy() {
|
|
4638
|
-
}
|
|
4639
|
-
/**
|
|
4640
|
-
* @template T
|
|
4641
|
-
* @param {?} func
|
|
4642
|
-
* @return {?}
|
|
4643
|
-
*/
|
|
4644
|
-
NoopNgxsExecutionStrategy.prototype.enter = /**
|
|
4645
|
-
* @template T
|
|
4646
|
-
* @param {?} func
|
|
4647
|
-
* @return {?}
|
|
4648
|
-
*/
|
|
4649
|
-
function (func) {
|
|
4650
|
-
return func();
|
|
4651
|
-
};
|
|
4652
|
-
/**
|
|
4653
|
-
* @template T
|
|
4654
|
-
* @param {?} func
|
|
4655
|
-
* @return {?}
|
|
4656
|
-
*/
|
|
4657
|
-
NoopNgxsExecutionStrategy.prototype.leave = /**
|
|
4658
|
-
* @template T
|
|
4659
|
-
* @param {?} func
|
|
4660
|
-
* @return {?}
|
|
4661
|
-
*/
|
|
4662
|
-
function (func) {
|
|
4663
|
-
return func();
|
|
4664
|
-
};
|
|
4665
|
-
NoopNgxsExecutionStrategy.decorators = [
|
|
4666
|
-
{ type: core.Injectable }
|
|
4667
|
-
];
|
|
4668
|
-
return NoopNgxsExecutionStrategy;
|
|
4669
|
-
}());
|
|
4670
|
-
|
|
4671
4694
|
/**
|
|
4672
4695
|
* @fileoverview added by tsickle
|
|
4673
4696
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -4757,22 +4780,22 @@
|
|
|
4757
4780
|
exports.ɵe = SELECTOR_META_KEY;
|
|
4758
4781
|
exports.ɵf = NgxsConfig;
|
|
4759
4782
|
exports.ɵg = mergeDeep;
|
|
4760
|
-
exports.ɵh =
|
|
4761
|
-
exports.ɵi =
|
|
4762
|
-
exports.ɵj =
|
|
4763
|
-
exports.ɵk =
|
|
4764
|
-
exports.ɵl =
|
|
4765
|
-
exports.ɵm =
|
|
4766
|
-
exports.ɵn =
|
|
4767
|
-
exports.ɵo =
|
|
4768
|
-
exports.ɵp =
|
|
4769
|
-
exports.ɵ
|
|
4770
|
-
exports.ɵs =
|
|
4771
|
-
exports.ɵt =
|
|
4772
|
-
exports.ɵu =
|
|
4773
|
-
exports.ɵv =
|
|
4774
|
-
exports.ɵw =
|
|
4775
|
-
exports.ɵx =
|
|
4783
|
+
exports.ɵh = USER_PROVIDED_NGXS_EXECUTION_STRATEGY;
|
|
4784
|
+
exports.ɵi = NGXS_EXECUTION_STRATEGY;
|
|
4785
|
+
exports.ɵj = NgxsRootModule;
|
|
4786
|
+
exports.ɵk = StateFactory;
|
|
4787
|
+
exports.ɵl = InternalDispatchedActionResults;
|
|
4788
|
+
exports.ɵm = InternalDispatcher;
|
|
4789
|
+
exports.ɵn = StateContextFactory;
|
|
4790
|
+
exports.ɵo = InternalStateOperations;
|
|
4791
|
+
exports.ɵp = PluginManager;
|
|
4792
|
+
exports.ɵq = InternalNgxsExecutionStrategy;
|
|
4793
|
+
exports.ɵs = ensureStoreMetadata;
|
|
4794
|
+
exports.ɵt = getStoreMetadata;
|
|
4795
|
+
exports.ɵu = ensureSelectorMetadata;
|
|
4796
|
+
exports.ɵv = getSelectorMetadata;
|
|
4797
|
+
exports.ɵw = LifecycleStateManager;
|
|
4798
|
+
exports.ɵx = NgxsFeatureModule;
|
|
4776
4799
|
|
|
4777
4800
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4778
4801
|
|