@ngxs/store 3.6.2-dev.master-8e14fe1 → 3.7.0
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/README.md +16 -16
- package/bundles/ngxs-store-internals.umd.js +210 -210
- package/bundles/ngxs-store-internals.umd.js.map +1 -1
- package/bundles/ngxs-store-internals.umd.min.js.map +1 -1
- package/bundles/ngxs-store-operators.umd.js +326 -321
- package/bundles/ngxs-store-operators.umd.js.map +1 -1
- package/bundles/ngxs-store-operators.umd.min.js +10 -10
- package/bundles/ngxs-store-operators.umd.min.js.map +1 -1
- package/bundles/ngxs-store.umd.js +4401 -4386
- package/bundles/ngxs-store.umd.js.map +1 -1
- package/bundles/ngxs-store.umd.min.js +11 -11
- package/bundles/ngxs-store.umd.min.js.map +1 -1
- package/esm2015/index.js +13 -13
- package/esm2015/internals/angular.js +40 -40
- package/esm2015/internals/index.js +10 -10
- package/esm2015/internals/initial-state.js +34 -34
- package/esm2015/internals/internal-tokens.js +16 -16
- package/esm2015/internals/memoize.js +70 -70
- package/esm2015/internals/ngxs-bootstrapper.js +41 -41
- package/esm2015/internals/ngxs-store-internals.js +8 -8
- package/esm2015/internals/src/symbols.js +14 -14
- package/esm2015/internals/symbols.js +14 -14
- package/esm2015/ngxs-store.js +25 -25
- package/esm2015/operators/append.js +31 -31
- package/esm2015/operators/compose.js +24 -24
- package/esm2015/operators/iif.js +56 -56
- package/esm2015/operators/index.js +18 -18
- package/esm2015/operators/insert-item.js +41 -41
- package/esm2015/operators/internals.js +5 -5
- package/esm2015/operators/ngxs-store-operators.js +8 -8
- package/esm2015/operators/patch.js +39 -39
- package/esm2015/operators/remove-item.js +34 -34
- package/esm2015/operators/update-item.js +52 -52
- package/esm2015/operators/utils.js +50 -50
- package/esm2015/src/actions/actions.js +39 -39
- package/esm2015/src/actions/symbols.js +39 -39
- package/esm2015/src/actions-stream.js +140 -140
- package/esm2015/src/configs/messages.config.js +87 -87
- package/esm2015/src/decorators/action.js +44 -44
- package/esm2015/src/decorators/select/select-factory.js +39 -39
- package/esm2015/src/decorators/select/select.js +45 -46
- package/esm2015/src/decorators/select/symbols.js +50 -50
- package/esm2015/src/decorators/selector/selector.js +55 -55
- package/esm2015/src/decorators/selector/symbols.js +5 -5
- package/esm2015/src/decorators/selector-options.js +34 -34
- package/esm2015/src/decorators/state.js +75 -75
- package/esm2015/src/execution/dispatch-outside-zone-ngxs-execution-strategy.js +96 -96
- package/esm2015/src/execution/internal-ngxs-execution-strategy.js +45 -45
- package/esm2015/src/execution/noop-ngxs-execution-strategy.js +27 -27
- package/esm2015/src/execution/symbols.js +29 -29
- package/esm2015/src/host-environment/host-environment.js +31 -31
- package/esm2015/src/internal/config-validator.js +67 -67
- package/esm2015/src/internal/dispatcher.js +210 -202
- package/esm2015/src/internal/internals.js +489 -489
- package/esm2015/src/internal/lifecycle-state-manager.js +129 -129
- package/esm2015/src/internal/state-context-factory.js +138 -138
- package/esm2015/src/internal/state-factory.js +401 -392
- package/esm2015/src/internal/state-operations.js +125 -125
- package/esm2015/src/internal/state-operators.js +33 -33
- package/esm2015/src/internal/state-stream.js +21 -21
- package/esm2015/src/ivy/ensure-state-class-is-injectable.js +34 -34
- package/esm2015/src/ivy/ivy-enabled-in-dev-mode.js +40 -50
- package/esm2015/src/module.js +171 -171
- package/esm2015/src/modules/ngxs-feature.module.js +63 -63
- package/esm2015/src/modules/ngxs-root.module.js +52 -52
- package/esm2015/src/operators/leave-ngxs.js +58 -58
- package/esm2015/src/operators/of-action.js +191 -188
- package/esm2015/src/plugin-manager.js +70 -70
- package/esm2015/src/plugin_api.js +10 -10
- package/esm2015/src/public_api.js +29 -29
- package/esm2015/src/public_to_deprecate.js +64 -64
- package/esm2015/src/state-token/state-token.js +45 -45
- package/esm2015/src/state-token/symbols.js +5 -5
- package/esm2015/src/store.js +174 -174
- package/esm2015/src/symbols.js +221 -221
- package/esm2015/src/utils/compose.js +44 -44
- package/esm2015/src/utils/freeze.js +35 -35
- package/esm2015/src/utils/selector-utils.js +221 -221
- package/esm2015/src/utils/store-validators.js +65 -65
- package/esm2015/src/utils/utils.js +95 -93
- package/esm5/index.js +13 -13
- package/esm5/internals/angular.js +40 -40
- package/esm5/internals/index.js +10 -10
- package/esm5/internals/initial-state.js +45 -45
- package/esm5/internals/internal-tokens.js +16 -16
- package/esm5/internals/memoize.js +71 -71
- package/esm5/internals/ngxs-bootstrapper.js +56 -56
- package/esm5/internals/ngxs-store-internals.js +8 -8
- package/esm5/internals/src/symbols.js +14 -14
- package/esm5/internals/symbols.js +14 -14
- package/esm5/ngxs-store.js +25 -25
- package/esm5/operators/append.js +31 -31
- package/esm5/operators/compose.js +28 -28
- package/esm5/operators/iif.js +56 -56
- package/esm5/operators/index.js +18 -18
- package/esm5/operators/insert-item.js +41 -41
- package/esm5/operators/internals.js +5 -5
- package/esm5/operators/ngxs-store-operators.js +8 -8
- package/esm5/operators/patch.js +40 -40
- package/esm5/operators/remove-item.js +34 -34
- package/esm5/operators/update-item.js +52 -52
- package/esm5/operators/utils.js +50 -50
- package/esm5/src/actions/actions.js +62 -62
- package/esm5/src/actions/symbols.js +39 -39
- package/esm5/src/actions-stream.js +186 -186
- package/esm5/src/configs/messages.config.js +104 -104
- package/esm5/src/decorators/action.js +56 -56
- package/esm5/src/decorators/select/select-factory.js +37 -37
- package/esm5/src/decorators/select/select.js +50 -51
- package/esm5/src/decorators/select/symbols.js +51 -51
- package/esm5/src/decorators/selector/selector.js +55 -55
- package/esm5/src/decorators/selector/symbols.js +5 -5
- package/esm5/src/decorators/selector-options.js +34 -34
- package/esm5/src/decorators/state.js +76 -76
- package/esm5/src/execution/dispatch-outside-zone-ngxs-execution-strategy.js +121 -121
- package/esm5/src/execution/internal-ngxs-execution-strategy.js +54 -54
- package/esm5/src/execution/noop-ngxs-execution-strategy.js +41 -41
- package/esm5/src/execution/symbols.js +29 -29
- package/esm5/src/host-environment/host-environment.js +29 -29
- package/esm5/src/internal/config-validator.js +76 -76
- package/esm5/src/internal/dispatcher.js +246 -238
- package/esm5/src/internal/internals.js +491 -491
- package/esm5/src/internal/lifecycle-state-manager.js +177 -177
- package/esm5/src/internal/state-context-factory.js +146 -146
- package/esm5/src/internal/state-factory.js +528 -519
- package/esm5/src/internal/state-operations.js +139 -139
- package/esm5/src/internal/state-operators.js +34 -34
- package/esm5/src/internal/state-stream.js +25 -25
- package/esm5/src/ivy/ensure-state-class-is-injectable.js +34 -34
- package/esm5/src/ivy/ivy-enabled-in-dev-mode.js +40 -50
- package/esm5/src/module.js +214 -214
- package/esm5/src/modules/ngxs-feature.module.js +65 -65
- package/esm5/src/modules/ngxs-root.module.js +47 -47
- package/esm5/src/operators/leave-ngxs.js +58 -58
- package/esm5/src/operators/of-action.js +217 -214
- package/esm5/src/plugin-manager.js +82 -82
- package/esm5/src/plugin_api.js +10 -10
- package/esm5/src/public_api.js +29 -29
- package/esm5/src/public_to_deprecate.js +64 -64
- package/esm5/src/state-token/state-token.js +57 -57
- package/esm5/src/state-token/symbols.js +5 -5
- package/esm5/src/store.js +225 -225
- package/esm5/src/symbols.js +230 -230
- package/esm5/src/utils/compose.js +55 -55
- package/esm5/src/utils/freeze.js +35 -35
- package/esm5/src/utils/selector-utils.js +230 -230
- package/esm5/src/utils/store-validators.js +86 -86
- package/esm5/src/utils/utils.js +98 -96
- package/fesm2015/ngxs-store-internals.js +191 -191
- package/fesm2015/ngxs-store-internals.js.map +1 -1
- package/fesm2015/ngxs-store-operators.js +312 -312
- package/fesm2015/ngxs-store-operators.js.map +1 -1
- package/fesm2015/ngxs-store.js +3878 -3868
- package/fesm2015/ngxs-store.js.map +1 -1
- package/fesm5/ngxs-store-internals.js +216 -216
- package/fesm5/ngxs-store-internals.js.map +1 -1
- package/fesm5/ngxs-store-operators.js +316 -316
- package/fesm5/ngxs-store-operators.js.map +1 -1
- package/fesm5/ngxs-store.js +4397 -4387
- package/fesm5/ngxs-store.js.map +1 -1
- package/index.d.ts +8 -8
- package/internals/angular.d.ts +3 -3
- package/internals/index.d.ts +6 -6
- package/internals/initial-state.d.ts +8 -8
- package/internals/internal-tokens.d.ts +9 -9
- package/internals/memoize.d.ts +9 -9
- package/internals/ngxs-bootstrapper.d.ts +13 -13
- package/internals/ngxs-store-internals.d.ts +4 -4
- package/internals/src/symbols.d.ts +7 -7
- package/internals/symbols.d.ts +7 -7
- package/ngxs-store.d.ts +22 -22
- package/ngxs-store.metadata.json +1 -1
- package/operators/append.d.ts +6 -6
- package/operators/compose.d.ts +2 -2
- package/operators/iif.d.ts +11 -11
- package/operators/index.d.ts +13 -13
- package/operators/insert-item.d.ts +7 -7
- package/operators/internals.d.ts +2 -2
- package/operators/ngxs-store-operators.d.ts +4 -4
- package/operators/patch.d.ts +10 -10
- package/operators/remove-item.d.ts +7 -7
- package/operators/update-item.d.ts +10 -10
- package/operators/utils.d.ts +9 -9
- package/package.json +4 -4
- package/src/actions/actions.d.ts +15 -15
- package/src/actions/symbols.d.ts +21 -21
- package/src/actions-stream.d.ts +49 -49
- package/src/configs/messages.config.d.ts +30 -30
- package/src/decorators/action.d.ts +5 -5
- package/src/decorators/select/select-factory.d.ts +12 -12
- package/src/decorators/select/select.d.ts +4 -5
- package/src/decorators/select/symbols.d.ts +10 -14
- package/src/decorators/selector/selector.d.ts +5 -5
- package/src/decorators/selector/symbols.d.ts +4 -4
- package/src/decorators/selector-options.d.ts +5 -5
- package/src/decorators/state.d.ts +6 -6
- package/src/execution/dispatch-outside-zone-ngxs-execution-strategy.d.ts +12 -12
- package/src/execution/internal-ngxs-execution-strategy.d.ts +7 -7
- package/src/execution/noop-ngxs-execution-strategy.d.ts +5 -5
- package/src/execution/symbols.d.ts +6 -6
- package/src/host-environment/host-environment.d.ts +6 -6
- package/src/internal/config-validator.d.ts +10 -10
- package/src/internal/dispatcher.d.ts +31 -31
- package/src/internal/internals.d.ts +167 -167
- package/src/internal/lifecycle-state-manager.d.ts +20 -20
- package/src/internal/state-context-factory.d.ts +15 -15
- package/src/internal/state-factory.d.ts +57 -57
- package/src/internal/state-operations.d.ts +21 -21
- package/src/internal/state-operators.d.ts +2 -2
- package/src/internal/state-stream.d.ts +9 -9
- package/src/ivy/ensure-state-class-is-injectable.d.ts +6 -6
- package/src/ivy/ivy-enabled-in-dev-mode.d.ts +14 -14
- package/src/module.d.ts +23 -23
- package/src/modules/ngxs-feature.module.d.ts +13 -13
- package/src/modules/ngxs-root.module.d.ts +13 -13
- package/src/operators/leave-ngxs.d.ts +7 -7
- package/src/operators/of-action.d.ts +43 -42
- package/src/plugin-manager.d.ts +10 -10
- package/src/plugin_api.d.ts +5 -5
- package/src/public_api.d.ts +17 -17
- package/src/public_to_deprecate.d.ts +21 -21
- package/src/state-token/state-token.d.ts +7 -7
- package/src/state-token/symbols.d.ts +5 -5
- package/src/store.d.ts +53 -53
- package/src/symbols.d.ts +137 -137
- package/src/utils/compose.d.ts +23 -23
- package/src/utils/freeze.d.ts +5 -5
- package/src/utils/selector-utils.d.ts +23 -23
- package/src/utils/store-validators.d.ts +8 -8
- package/src/utils/utils.d.ts +29 -29
- package/types/index.d.ts +2 -2
|
@@ -1,209 +1,209 @@
|
|
|
1
1
|
import { getPlatform, COMPILER_OPTIONS, Injectable, InjectionToken } from '@angular/core';
|
|
2
2
|
import { ReplaySubject } from 'rxjs';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* @fileoverview added by tsickle
|
|
6
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* @param {?} a
|
|
10
|
-
* @param {?} b
|
|
11
|
-
* @return {?}
|
|
12
|
-
*/
|
|
13
|
-
function defaultEqualityCheck(a, b) {
|
|
14
|
-
return a === b;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @param {?} equalityCheck
|
|
18
|
-
* @param {?} prev
|
|
19
|
-
* @param {?} next
|
|
20
|
-
* @return {?}
|
|
21
|
-
*/
|
|
22
|
-
function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
|
|
23
|
-
if (prev === null || next === null || prev.length !== next.length) {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
// Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.
|
|
27
|
-
/** @type {?} */
|
|
28
|
-
const length = prev.length;
|
|
29
|
-
for (let i = 0; i < length; i++) {
|
|
30
|
-
if (!equalityCheck(prev[i], next[i])) {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Memoize a function on its last inputs only.
|
|
38
|
-
* Originally from: https://github.com/reduxjs/reselect/blob/master/src/index.js
|
|
39
|
-
*
|
|
40
|
-
* @ignore
|
|
41
|
-
* @template T
|
|
42
|
-
* @param {?} func
|
|
43
|
-
* @param {?=} equalityCheck
|
|
44
|
-
* @return {?}
|
|
45
|
-
*/
|
|
46
|
-
function memoize(func, equalityCheck = defaultEqualityCheck) {
|
|
47
|
-
/** @type {?} */
|
|
48
|
-
let lastArgs = null;
|
|
49
|
-
/** @type {?} */
|
|
50
|
-
let lastResult = null;
|
|
51
|
-
// we reference arguments instead of spreading them for performance reasons
|
|
52
|
-
/**
|
|
53
|
-
* @return {?}
|
|
54
|
-
*/
|
|
55
|
-
function memoized() {
|
|
56
|
-
if (!areArgumentsShallowlyEqual(equalityCheck, lastArgs, arguments)) {
|
|
57
|
-
// apply arguments instead of spreading for performance.
|
|
58
|
-
lastResult = ((/** @type {?} */ (func))).apply(null, arguments);
|
|
59
|
-
}
|
|
60
|
-
lastArgs = arguments;
|
|
61
|
-
return lastResult;
|
|
62
|
-
}
|
|
63
|
-
((/** @type {?} */ (memoized))).reset = (/**
|
|
64
|
-
* @return {?}
|
|
65
|
-
*/
|
|
66
|
-
function () {
|
|
67
|
-
// The hidden (for now) ability to reset the memoization
|
|
68
|
-
lastArgs = null;
|
|
69
|
-
lastResult = null;
|
|
70
|
-
});
|
|
71
|
-
return (/** @type {?} */ (memoized));
|
|
4
|
+
/**
|
|
5
|
+
* @fileoverview added by tsickle
|
|
6
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @param {?} a
|
|
10
|
+
* @param {?} b
|
|
11
|
+
* @return {?}
|
|
12
|
+
*/
|
|
13
|
+
function defaultEqualityCheck(a, b) {
|
|
14
|
+
return a === b;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @param {?} equalityCheck
|
|
18
|
+
* @param {?} prev
|
|
19
|
+
* @param {?} next
|
|
20
|
+
* @return {?}
|
|
21
|
+
*/
|
|
22
|
+
function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
|
|
23
|
+
if (prev === null || next === null || prev.length !== next.length) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
// Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.
|
|
27
|
+
/** @type {?} */
|
|
28
|
+
const length = prev.length;
|
|
29
|
+
for (let i = 0; i < length; i++) {
|
|
30
|
+
if (!equalityCheck(prev[i], next[i])) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Memoize a function on its last inputs only.
|
|
38
|
+
* Originally from: https://github.com/reduxjs/reselect/blob/master/src/index.js
|
|
39
|
+
*
|
|
40
|
+
* @ignore
|
|
41
|
+
* @template T
|
|
42
|
+
* @param {?} func
|
|
43
|
+
* @param {?=} equalityCheck
|
|
44
|
+
* @return {?}
|
|
45
|
+
*/
|
|
46
|
+
function memoize(func, equalityCheck = defaultEqualityCheck) {
|
|
47
|
+
/** @type {?} */
|
|
48
|
+
let lastArgs = null;
|
|
49
|
+
/** @type {?} */
|
|
50
|
+
let lastResult = null;
|
|
51
|
+
// we reference arguments instead of spreading them for performance reasons
|
|
52
|
+
/**
|
|
53
|
+
* @return {?}
|
|
54
|
+
*/
|
|
55
|
+
function memoized() {
|
|
56
|
+
if (!areArgumentsShallowlyEqual(equalityCheck, lastArgs, arguments)) {
|
|
57
|
+
// apply arguments instead of spreading for performance.
|
|
58
|
+
lastResult = ((/** @type {?} */ (func))).apply(null, arguments);
|
|
59
|
+
}
|
|
60
|
+
lastArgs = arguments;
|
|
61
|
+
return lastResult;
|
|
62
|
+
}
|
|
63
|
+
((/** @type {?} */ (memoized))).reset = (/**
|
|
64
|
+
* @return {?}
|
|
65
|
+
*/
|
|
66
|
+
function () {
|
|
67
|
+
// The hidden (for now) ability to reset the memoization
|
|
68
|
+
lastArgs = null;
|
|
69
|
+
lastResult = null;
|
|
70
|
+
});
|
|
71
|
+
return (/** @type {?} */ (memoized));
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
/**
|
|
75
|
-
* @fileoverview added by tsickle
|
|
76
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
77
|
-
*/
|
|
78
|
-
/**
|
|
79
|
-
* @return {?}
|
|
80
|
-
*/
|
|
81
|
-
function _isAngularInTestMode() {
|
|
82
|
-
/** @type {?} */
|
|
83
|
-
const platformRef = getPlatform();
|
|
84
|
-
if (!platformRef)
|
|
85
|
-
return false;
|
|
86
|
-
/** @type {?} */
|
|
87
|
-
const compilerOptions = platformRef.injector.get(COMPILER_OPTIONS, null);
|
|
88
|
-
if (!compilerOptions)
|
|
89
|
-
return false;
|
|
90
|
-
/** @type {?} */
|
|
91
|
-
const isInTestMode = compilerOptions.some((/**
|
|
92
|
-
* @param {?} item
|
|
93
|
-
* @return {?}
|
|
94
|
-
*/
|
|
95
|
-
(item) => {
|
|
96
|
-
/** @type {?} */
|
|
97
|
-
const providers = (item && item.providers) || [];
|
|
98
|
-
return providers.some((/**
|
|
99
|
-
* @param {?} provider
|
|
100
|
-
* @return {?}
|
|
101
|
-
*/
|
|
102
|
-
(provider) => {
|
|
103
|
-
return ((provider && provider.provide && provider.provide.name === 'MockNgModuleResolver') ||
|
|
104
|
-
false);
|
|
105
|
-
}));
|
|
106
|
-
}));
|
|
107
|
-
return isInTestMode;
|
|
108
|
-
}
|
|
109
|
-
/** @type {?} */
|
|
74
|
+
/**
|
|
75
|
+
* @fileoverview added by tsickle
|
|
76
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
77
|
+
*/
|
|
78
|
+
/**
|
|
79
|
+
* @return {?}
|
|
80
|
+
*/
|
|
81
|
+
function _isAngularInTestMode() {
|
|
82
|
+
/** @type {?} */
|
|
83
|
+
const platformRef = getPlatform();
|
|
84
|
+
if (!platformRef)
|
|
85
|
+
return false;
|
|
86
|
+
/** @type {?} */
|
|
87
|
+
const compilerOptions = platformRef.injector.get(COMPILER_OPTIONS, null);
|
|
88
|
+
if (!compilerOptions)
|
|
89
|
+
return false;
|
|
90
|
+
/** @type {?} */
|
|
91
|
+
const isInTestMode = compilerOptions.some((/**
|
|
92
|
+
* @param {?} item
|
|
93
|
+
* @return {?}
|
|
94
|
+
*/
|
|
95
|
+
(item) => {
|
|
96
|
+
/** @type {?} */
|
|
97
|
+
const providers = (item && item.providers) || [];
|
|
98
|
+
return providers.some((/**
|
|
99
|
+
* @param {?} provider
|
|
100
|
+
* @return {?}
|
|
101
|
+
*/
|
|
102
|
+
(provider) => {
|
|
103
|
+
return ((provider && provider.provide && provider.provide.name === 'MockNgModuleResolver') ||
|
|
104
|
+
false);
|
|
105
|
+
}));
|
|
106
|
+
}));
|
|
107
|
+
return isInTestMode;
|
|
108
|
+
}
|
|
109
|
+
/** @type {?} */
|
|
110
110
|
const isAngularInTestMode = memoize(_isAngularInTestMode);
|
|
111
111
|
|
|
112
|
-
/**
|
|
113
|
-
* @fileoverview added by tsickle
|
|
114
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
115
|
-
*/
|
|
116
|
-
class NgxsBootstrapper {
|
|
117
|
-
constructor() {
|
|
118
|
-
/**
|
|
119
|
-
* Use `ReplaySubject`, thus we can get cached value even if the stream is completed
|
|
120
|
-
*/
|
|
121
|
-
this.bootstrap$ = new ReplaySubject(1);
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* @return {?}
|
|
125
|
-
*/
|
|
126
|
-
get appBootstrapped$() {
|
|
127
|
-
return this.bootstrap$.asObservable();
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* This event will be emitted after attaching `ComponentRef` of the root component
|
|
131
|
-
* to the tree of views, that's a signal that application has been fully rendered
|
|
132
|
-
* @return {?}
|
|
133
|
-
*/
|
|
134
|
-
bootstrap() {
|
|
135
|
-
this.bootstrap$.next(true);
|
|
136
|
-
this.bootstrap$.complete();
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
NgxsBootstrapper.decorators = [
|
|
140
|
-
{ type: Injectable }
|
|
141
|
-
];
|
|
142
|
-
if (false) {
|
|
143
|
-
/**
|
|
144
|
-
* Use `ReplaySubject`, thus we can get cached value even if the stream is completed
|
|
145
|
-
* @type {?}
|
|
146
|
-
* @private
|
|
147
|
-
*/
|
|
148
|
-
NgxsBootstrapper.prototype.bootstrap$;
|
|
112
|
+
/**
|
|
113
|
+
* @fileoverview added by tsickle
|
|
114
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
115
|
+
*/
|
|
116
|
+
class NgxsBootstrapper {
|
|
117
|
+
constructor() {
|
|
118
|
+
/**
|
|
119
|
+
* Use `ReplaySubject`, thus we can get cached value even if the stream is completed
|
|
120
|
+
*/
|
|
121
|
+
this.bootstrap$ = new ReplaySubject(1);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* @return {?}
|
|
125
|
+
*/
|
|
126
|
+
get appBootstrapped$() {
|
|
127
|
+
return this.bootstrap$.asObservable();
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* This event will be emitted after attaching `ComponentRef` of the root component
|
|
131
|
+
* to the tree of views, that's a signal that application has been fully rendered
|
|
132
|
+
* @return {?}
|
|
133
|
+
*/
|
|
134
|
+
bootstrap() {
|
|
135
|
+
this.bootstrap$.next(true);
|
|
136
|
+
this.bootstrap$.complete();
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
NgxsBootstrapper.decorators = [
|
|
140
|
+
{ type: Injectable }
|
|
141
|
+
];
|
|
142
|
+
if (false) {
|
|
143
|
+
/**
|
|
144
|
+
* Use `ReplaySubject`, thus we can get cached value even if the stream is completed
|
|
145
|
+
* @type {?}
|
|
146
|
+
* @private
|
|
147
|
+
*/
|
|
148
|
+
NgxsBootstrapper.prototype.bootstrap$;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
/**
|
|
152
|
-
* @fileoverview added by tsickle
|
|
153
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
154
|
-
*/
|
|
155
|
-
/** @type {?} */
|
|
156
|
-
const INITIAL_STATE_TOKEN = new InjectionToken('INITIAL_STATE_TOKEN');
|
|
157
|
-
class InitialState {
|
|
158
|
-
/**
|
|
159
|
-
* @param {?} state
|
|
160
|
-
* @return {?}
|
|
161
|
-
*/
|
|
162
|
-
static set(state) {
|
|
163
|
-
this.value = state;
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* @return {?}
|
|
167
|
-
*/
|
|
168
|
-
static pop() {
|
|
169
|
-
/** @type {?} */
|
|
170
|
-
const state = this.value;
|
|
171
|
-
this.value = {};
|
|
172
|
-
return state;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
InitialState.value = {};
|
|
176
|
-
if (false) {
|
|
177
|
-
/**
|
|
178
|
-
* @type {?}
|
|
179
|
-
* @private
|
|
180
|
-
*/
|
|
181
|
-
InitialState.value;
|
|
151
|
+
/**
|
|
152
|
+
* @fileoverview added by tsickle
|
|
153
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
154
|
+
*/
|
|
155
|
+
/** @type {?} */
|
|
156
|
+
const INITIAL_STATE_TOKEN = new InjectionToken('INITIAL_STATE_TOKEN');
|
|
157
|
+
class InitialState {
|
|
158
|
+
/**
|
|
159
|
+
* @param {?} state
|
|
160
|
+
* @return {?}
|
|
161
|
+
*/
|
|
162
|
+
static set(state) {
|
|
163
|
+
this.value = state;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* @return {?}
|
|
167
|
+
*/
|
|
168
|
+
static pop() {
|
|
169
|
+
/** @type {?} */
|
|
170
|
+
const state = this.value;
|
|
171
|
+
this.value = {};
|
|
172
|
+
return state;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
InitialState.value = {};
|
|
176
|
+
if (false) {
|
|
177
|
+
/**
|
|
178
|
+
* @type {?}
|
|
179
|
+
* @private
|
|
180
|
+
*/
|
|
181
|
+
InitialState.value;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
/**
|
|
185
|
-
* @fileoverview added by tsickle
|
|
186
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
187
|
-
*/
|
|
188
|
-
/**
|
|
189
|
-
* @see StateContextFactory as it's referenced by this token to be accessed by plugins internally
|
|
190
|
-
* @type {?}
|
|
191
|
-
*/
|
|
192
|
-
const NGXS_STATE_CONTEXT_FACTORY = new InjectionToken('Internals.StateContextFactory');
|
|
193
|
-
/**
|
|
194
|
-
* @see StateFactory as it's referenced by this token to be accessed by plugins internally
|
|
195
|
-
* @type {?}
|
|
196
|
-
*/
|
|
184
|
+
/**
|
|
185
|
+
* @fileoverview added by tsickle
|
|
186
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
187
|
+
*/
|
|
188
|
+
/**
|
|
189
|
+
* @see StateContextFactory as it's referenced by this token to be accessed by plugins internally
|
|
190
|
+
* @type {?}
|
|
191
|
+
*/
|
|
192
|
+
const NGXS_STATE_CONTEXT_FACTORY = new InjectionToken('Internals.StateContextFactory');
|
|
193
|
+
/**
|
|
194
|
+
* @see StateFactory as it's referenced by this token to be accessed by plugins internally
|
|
195
|
+
* @type {?}
|
|
196
|
+
*/
|
|
197
197
|
const NGXS_STATE_FACTORY = new InjectionToken('Internals.StateFactory');
|
|
198
198
|
|
|
199
|
-
/**
|
|
200
|
-
* @fileoverview added by tsickle
|
|
201
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
199
|
+
/**
|
|
200
|
+
* @fileoverview added by tsickle
|
|
201
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
202
202
|
*/
|
|
203
203
|
|
|
204
|
-
/**
|
|
205
|
-
* @fileoverview added by tsickle
|
|
206
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
204
|
+
/**
|
|
205
|
+
* @fileoverview added by tsickle
|
|
206
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
207
207
|
*/
|
|
208
208
|
|
|
209
209
|
export { INITIAL_STATE_TOKEN, InitialState, NGXS_STATE_CONTEXT_FACTORY, NGXS_STATE_FACTORY, NgxsBootstrapper, isAngularInTestMode, memoize };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngxs-store-internals.js","sources":["ng://@ngxs/store/internals/memoize.ts","ng://@ngxs/store/internals/angular.ts","ng://@ngxs/store/internals/ngxs-bootstrapper.ts","ng://@ngxs/store/internals/initial-state.ts","ng://@ngxs/store/internals/internal-tokens.ts"],"sourcesContent":["function defaultEqualityCheck(a: any, b: any) {\n return a === b;\n}\n\nfunction areArgumentsShallowlyEqual(\n equalityCheck: (a: any, b: any) => boolean,\n prev: IArguments | null,\n next: IArguments | null\n) {\n if (prev === null || next === null || prev.length !== next.length) {\n return false;\n }\n\n // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.\n const length = prev.length;\n for (let i = 0; i < length; i++) {\n if (!equalityCheck(prev[i], next[i])) {\n return false;\n }\n }\n\n return true;\n}\n\n/**\n * Memoize a function on its last inputs only.\n * Originally from: https://github.com/reduxjs/reselect/blob/master/src/index.js\n *\n * @ignore\n */\nexport function memoize<T extends (...args: any[]) => any>(\n func: T,\n equalityCheck = defaultEqualityCheck\n): T {\n let lastArgs: IArguments | null = null;\n let lastResult: any = null;\n // we reference arguments instead of spreading them for performance reasons\n function memoized() {\n if (!areArgumentsShallowlyEqual(equalityCheck, lastArgs, arguments)) {\n // apply arguments instead of spreading for performance.\n lastResult = (<Function>func).apply(null, arguments);\n }\n\n lastArgs = arguments;\n return lastResult;\n }\n (<any>memoized).reset = function() {\n // The hidden (for now) ability to reset the memoization\n lastArgs = null;\n lastResult = null;\n };\n return memoized as T;\n}\n","import { getPlatform, COMPILER_OPTIONS, CompilerOptions, PlatformRef } from '@angular/core';\nimport { memoize } from './memoize';\n\nfunction _isAngularInTestMode() {\n const platformRef: PlatformRef | null = getPlatform();\n if (!platformRef) return false;\n const compilerOptions = platformRef.injector.get<any>(COMPILER_OPTIONS, null);\n if (!compilerOptions) return false;\n const isInTestMode = compilerOptions.some((item: CompilerOptions) => {\n const providers = (item && item.providers) || [];\n return providers.some((provider: any) => {\n return (\n (provider && provider.provide && provider.provide.name === 'MockNgModuleResolver') ||\n false\n );\n });\n });\n return isInTestMode;\n}\n\nexport const isAngularInTestMode = memoize(_isAngularInTestMode);\n","import { Injectable } from '@angular/core';\nimport { Observable, ReplaySubject } from 'rxjs';\n\n@Injectable()\nexport class NgxsBootstrapper {\n /**\n * Use `ReplaySubject`, thus we can get cached value even if the stream is completed\n */\n private bootstrap$ = new ReplaySubject<boolean>(1);\n\n get appBootstrapped$(): Observable<boolean> {\n return this.bootstrap$.asObservable();\n }\n\n /**\n * This event will be emitted after attaching `ComponentRef` of the root component\n * to the tree of views, that's a signal that application has been fully rendered\n */\n bootstrap(): void {\n this.bootstrap$.next(true);\n this.bootstrap$.complete();\n }\n}\n","import { InjectionToken } from '@angular/core';\nimport { PlainObject } from './symbols';\n\nexport const INITIAL_STATE_TOKEN = new InjectionToken<any>('INITIAL_STATE_TOKEN');\n\nexport class InitialState {\n private static value: PlainObject = {};\n\n public static set(state: PlainObject) {\n this.value = state;\n }\n\n public static pop(): PlainObject {\n const state: PlainObject = this.value;\n this.value = {};\n return state;\n }\n}\n","import { InjectionToken } from '@angular/core';\n\n/**\n * @see StateContextFactory as it's referenced by this token to be accessed by plugins internally\n */\nexport const NGXS_STATE_CONTEXT_FACTORY: InjectionToken<any> = new InjectionToken(\n 'Internals.StateContextFactory'\n);\n\n/**\n * @see StateFactory as it's referenced by this token to be accessed by plugins internally\n */\nexport const NGXS_STATE_FACTORY: InjectionToken<any> = new InjectionToken(\n 'Internals.StateFactory'\n);\n"],"names":[],"mappings":";;;;;;;;;;;;AAAA,SAAS,oBAAoB,CAAC,CAAM,EAAE,CAAM;IAC1C,OAAO,CAAC,KAAK,CAAC,CAAC;CAChB;;;;;;;AAED,SAAS,0BAA0B,CACjC,aAA0C,EAC1C,IAAuB,EACvB,IAAuB;IAEvB,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,EAAE;QACjE,OAAO,KAAK,CAAC;KACd;;;UAGK,MAAM,GAAG,IAAI,CAAC,MAAM;IAC1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE;QAC/B,IAAI,CAAC,aAAa,CAAC,IAAI,CAA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AAY,CAAC;CACrB;;AAED,MAAa,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;;;;;;ACpBhE,MAIa,gBAAgB;IAD7B;;;;QAKU,eAAU,GAAG,IAAI,aAAa,CAAU,CAAC,CAAC,CAAC;KAcpD;;;;IAZC,IAAI,gBAAgB;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,CAAC;KACvC;;;;;;IAMD,SAAS;QACP,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3B,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;KAC5B;;;YAlBF,UAAU;;;;;;;;IAKT,sCAAmD;;;;;;;ACRrD;AAGA,MAAa,mBAAmB,GAAG,IAAI,cAAc,CAAM,qBAAqB,CAAC;AAEjF,MAAa,YAAY;;;;;IAGhB,OAAO,GAAG,CAAC,KAAkB;QAClC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;KACpB;;;;IAEM,OAAO,GAAG;;cACT,KAAK,GAAgB,IAAI,CAAC,KAAK;QACrC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;KACd;;AAVc,kBAAK,GAAgB,EAAE,CAAC;;;;;;IAAvC,mBAAuC;;;;;;;ACNzC;;;;AAKA,MAAa,0BAA0B,GAAwB,IAAI,cAAc,CAC/E,+BAA+B,CAChC;;;;;AAKD,MAAa,kBAAkB,GAAwB,IAAI,cAAc,CACvE,wBAAwB,CACzB;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"ngxs-store-internals.js","sources":["ng://@ngxs/store/internals/memoize.ts","ng://@ngxs/store/internals/angular.ts","ng://@ngxs/store/internals/ngxs-bootstrapper.ts","ng://@ngxs/store/internals/initial-state.ts","ng://@ngxs/store/internals/internal-tokens.ts"],"sourcesContent":["function defaultEqualityCheck(a: any, b: any) {\r\n return a === b;\r\n}\r\n\r\nfunction areArgumentsShallowlyEqual(\r\n equalityCheck: (a: any, b: any) => boolean,\r\n prev: IArguments | null,\r\n next: IArguments | null\r\n) {\r\n if (prev === null || next === null || prev.length !== next.length) {\r\n return false;\r\n }\r\n\r\n // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.\r\n const length = prev.length;\r\n for (let i = 0; i < length; i++) {\r\n if (!equalityCheck(prev[i], next[i])) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n}\r\n\r\n/**\r\n * Memoize a function on its last inputs only.\r\n * Originally from: https://github.com/reduxjs/reselect/blob/master/src/index.js\r\n *\r\n * @ignore\r\n */\r\nexport function memoize<T extends (...args: any[]) => any>(\r\n func: T,\r\n equalityCheck = defaultEqualityCheck\r\n): T {\r\n let lastArgs: IArguments | null = null;\r\n let lastResult: any = null;\r\n // we reference arguments instead of spreading them for performance reasons\r\n function memoized() {\r\n if (!areArgumentsShallowlyEqual(equalityCheck, lastArgs, arguments)) {\r\n // apply arguments instead of spreading for performance.\r\n lastResult = (<Function>func).apply(null, arguments);\r\n }\r\n\r\n lastArgs = arguments;\r\n return lastResult;\r\n }\r\n (<any>memoized).reset = function() {\r\n // The hidden (for now) ability to reset the memoization\r\n lastArgs = null;\r\n lastResult = null;\r\n };\r\n return memoized as T;\r\n}\r\n","import { getPlatform, COMPILER_OPTIONS, CompilerOptions, PlatformRef } from '@angular/core';\r\nimport { memoize } from './memoize';\r\n\r\nfunction _isAngularInTestMode() {\r\n const platformRef: PlatformRef | null = getPlatform();\r\n if (!platformRef) return false;\r\n const compilerOptions = platformRef.injector.get<any>(COMPILER_OPTIONS, null);\r\n if (!compilerOptions) return false;\r\n const isInTestMode = compilerOptions.some((item: CompilerOptions) => {\r\n const providers = (item && item.providers) || [];\r\n return providers.some((provider: any) => {\r\n return (\r\n (provider && provider.provide && provider.provide.name === 'MockNgModuleResolver') ||\r\n false\r\n );\r\n });\r\n });\r\n return isInTestMode;\r\n}\r\n\r\nexport const isAngularInTestMode = memoize(_isAngularInTestMode);\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable, ReplaySubject } from 'rxjs';\r\n\r\n@Injectable()\r\nexport class NgxsBootstrapper {\r\n /**\r\n * Use `ReplaySubject`, thus we can get cached value even if the stream is completed\r\n */\r\n private bootstrap$ = new ReplaySubject<boolean>(1);\r\n\r\n get appBootstrapped$(): Observable<boolean> {\r\n return this.bootstrap$.asObservable();\r\n }\r\n\r\n /**\r\n * This event will be emitted after attaching `ComponentRef` of the root component\r\n * to the tree of views, that's a signal that application has been fully rendered\r\n */\r\n bootstrap(): void {\r\n this.bootstrap$.next(true);\r\n this.bootstrap$.complete();\r\n }\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\nimport { PlainObject } from './symbols';\r\n\r\nexport const INITIAL_STATE_TOKEN = new InjectionToken<any>('INITIAL_STATE_TOKEN');\r\n\r\nexport class InitialState {\r\n private static value: PlainObject = {};\r\n\r\n public static set(state: PlainObject) {\r\n this.value = state;\r\n }\r\n\r\n public static pop(): PlainObject {\r\n const state: PlainObject = this.value;\r\n this.value = {};\r\n return state;\r\n }\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\n\r\n/**\r\n * @see StateContextFactory as it's referenced by this token to be accessed by plugins internally\r\n */\r\nexport const NGXS_STATE_CONTEXT_FACTORY: InjectionToken<any> = new InjectionToken(\r\n 'Internals.StateContextFactory'\r\n);\r\n\r\n/**\r\n * @see StateFactory as it's referenced by this token to be accessed by plugins internally\r\n */\r\nexport const NGXS_STATE_FACTORY: InjectionToken<any> = new InjectionToken(\r\n 'Internals.StateFactory'\r\n);\r\n"],"names":[],"mappings":";;;;;;;;;;;;AAAA,SAAS,oBAAoB,CAAC,CAAM,EAAE,CAAM;IAC1C,OAAO,CAAC,KAAK,CAAC,CAAC;CAChB;;;;;;;AAED,SAAS,0BAA0B,CACjC,aAA0C,EAC1C,IAAuB,EACvB,IAAuB;IAEvB,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,CAAC,MAAM,KAA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