@ngxs/store 3.7.4 → 3.7.5
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-testing.umd.js +315 -315
- package/bundles/ngxs-store-internals-testing.umd.js.map +1 -1
- package/bundles/ngxs-store-internals-testing.umd.min.js.map +1 -1
- package/bundles/ngxs-store-internals.umd.js +192 -397
- package/bundles/ngxs-store-internals.umd.js.map +1 -1
- package/bundles/ngxs-store-internals.umd.min.js +1 -1
- package/bundles/ngxs-store-internals.umd.min.js.map +1 -1
- package/bundles/ngxs-store-operators.umd.js +310 -310
- package/bundles/ngxs-store-operators.umd.js.map +1 -1
- package/bundles/ngxs-store-operators.umd.min.js.map +1 -1
- package/bundles/ngxs-store.umd.js +4401 -4481
- 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/index.js +13 -13
- package/esm2015/internals/angular.js +20 -20
- package/esm2015/internals/index.js +10 -11
- 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 +9 -9
- package/esm2015/internals/src/symbols.js +14 -14
- package/esm2015/internals/symbols.js +14 -14
- package/esm2015/internals/testing/fresh-platform.js +110 -110
- package/esm2015/internals/testing/helpers/ngxs-test.component.js +22 -22
- package/esm2015/internals/testing/helpers/ngxs-test.module.js +24 -24
- package/esm2015/internals/testing/index.js +8 -8
- package/esm2015/internals/testing/ngxs-store-internals-testing.js +8 -8
- package/esm2015/internals/testing/ngxs.setup.js +76 -76
- package/esm2015/internals/testing/skip-console-logging.js +62 -62
- package/esm2015/internals/testing/symbol.js +29 -29
- package/esm2015/ngxs-store.js +24 -23
- 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 +79 -79
- package/esm2015/src/decorators/action.js +48 -48
- package/esm2015/src/decorators/select/select-factory.js +45 -49
- package/esm2015/src/decorators/select/select.js +45 -81
- package/esm2015/src/decorators/select/symbols.js +50 -94
- package/esm2015/src/decorators/selector/selector.js +59 -59
- package/esm2015/src/decorators/selector/symbols.js +5 -5
- package/esm2015/src/decorators/selector-options.js +34 -34
- package/esm2015/src/decorators/state.js +77 -83
- package/esm2015/src/execution/dispatch-outside-zone-ngxs-execution-strategy.js +103 -103
- package/esm2015/src/execution/internal-ngxs-execution-strategy.js +45 -45
- package/esm2015/src/execution/noop-ngxs-execution-strategy.js +29 -29
- package/esm2015/src/execution/symbols.js +52 -52
- package/esm2015/src/internal/dispatcher.js +219 -217
- package/esm2015/src/internal/internals.js +493 -493
- 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 +457 -449
- package/esm2015/src/internal/state-operations.js +124 -133
- package/esm2015/src/internal/state-operators.js +33 -33
- package/esm2015/src/internal/state-stream.js +30 -30
- package/esm2015/src/ivy/ivy-enabled-in-dev-mode.js +28 -28
- package/esm2015/src/module.js +159 -157
- package/esm2015/src/modules/ngxs-feature.module.js +63 -63
- package/esm2015/src/modules/ngxs-root.module.js +49 -52
- package/esm2015/src/operators/leave-ngxs.js +58 -58
- package/esm2015/src/operators/of-action.js +191 -191
- 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 +190 -190
- package/esm2015/src/symbols.js +221 -220
- 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 +60 -60
- package/esm2015/src/utils/utils.js +143 -143
- package/esm5/index.js +13 -13
- package/esm5/internals/angular.js +20 -20
- package/esm5/internals/index.js +10 -11
- 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 +9 -9
- package/esm5/internals/src/symbols.js +14 -14
- package/esm5/internals/symbols.js +14 -14
- package/esm5/internals/testing/fresh-platform.js +121 -121
- package/esm5/internals/testing/helpers/ngxs-test.component.js +32 -32
- package/esm5/internals/testing/helpers/ngxs-test.module.js +32 -32
- package/esm5/internals/testing/index.js +8 -8
- package/esm5/internals/testing/ngxs-store-internals-testing.js +8 -8
- package/esm5/internals/testing/ngxs.setup.js +98 -98
- package/esm5/internals/testing/skip-console-logging.js +62 -62
- package/esm5/internals/testing/symbol.js +29 -29
- package/esm5/ngxs-store.js +24 -23
- 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 +79 -79
- package/esm5/src/decorators/action.js +60 -60
- package/esm5/src/decorators/select/select-factory.js +46 -50
- package/esm5/src/decorators/select/select.js +50 -87
- package/esm5/src/decorators/select/symbols.js +51 -95
- package/esm5/src/decorators/selector/selector.js +59 -59
- package/esm5/src/decorators/selector/symbols.js +5 -5
- package/esm5/src/decorators/selector-options.js +34 -34
- package/esm5/src/decorators/state.js +78 -84
- package/esm5/src/execution/dispatch-outside-zone-ngxs-execution-strategy.js +123 -123
- package/esm5/src/execution/internal-ngxs-execution-strategy.js +54 -54
- package/esm5/src/execution/noop-ngxs-execution-strategy.js +43 -43
- package/esm5/src/execution/symbols.js +52 -52
- package/esm5/src/internal/dispatcher.js +255 -253
- package/esm5/src/internal/internals.js +495 -495
- 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 +583 -575
- package/esm5/src/internal/state-operations.js +134 -143
- package/esm5/src/internal/state-operators.js +34 -34
- package/esm5/src/internal/state-stream.js +37 -37
- package/esm5/src/ivy/ivy-enabled-in-dev-mode.js +28 -28
- package/esm5/src/module.js +202 -200
- package/esm5/src/modules/ngxs-feature.module.js +65 -65
- package/esm5/src/modules/ngxs-root.module.js +44 -47
- package/esm5/src/operators/leave-ngxs.js +58 -58
- package/esm5/src/operators/of-action.js +217 -217
- 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 +241 -241
- package/esm5/src/symbols.js +230 -229
- 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 +78 -78
- package/esm5/src/utils/utils.js +151 -151
- package/fesm2015/ngxs-store-internals-testing.js +274 -274
- package/fesm2015/ngxs-store-internals-testing.js.map +1 -1
- package/fesm2015/ngxs-store-internals.js +175 -377
- 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 +3915 -3995
- package/fesm2015/ngxs-store.js.map +1 -1
- package/fesm5/ngxs-store-internals-testing.js +321 -321
- package/fesm5/ngxs-store-internals-testing.js.map +1 -1
- package/fesm5/ngxs-store-internals.js +200 -402
- 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 +4410 -4491
- package/fesm5/ngxs-store.js.map +1 -1
- package/index.d.ts +8 -8
- package/internals/angular.d.ts +1 -1
- package/internals/index.d.ts +6 -7
- 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/ngxs-store-internals.metadata.json +1 -1
- package/internals/src/symbols.d.ts +7 -7
- package/internals/symbols.d.ts +7 -7
- package/internals/testing/fresh-platform.d.ts +1 -1
- package/internals/testing/helpers/ngxs-test.component.d.ts +5 -5
- package/internals/testing/helpers/ngxs-test.module.d.ts +4 -4
- package/internals/testing/index.d.ts +4 -4
- package/internals/testing/ngxs-store-internals-testing.d.ts +4 -4
- package/internals/testing/ngxs.setup.d.ts +7 -7
- package/internals/testing/skip-console-logging.d.ts +1 -1
- package/internals/testing/symbol.d.ts +14 -14
- package/ngxs-store.d.ts +20 -19
- 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 +1 -1
- 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 +11 -11
- package/src/decorators/action.d.ts +5 -5
- package/src/decorators/select/select-factory.d.ts +13 -13
- package/src/decorators/select/select.d.ts +4 -4
- 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 +11 -11
- 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 +10 -10
- package/src/internal/dispatcher.d.ts +32 -32
- package/src/internal/internals.d.ts +166 -166
- 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 +19 -19
- package/src/internal/state-operators.d.ts +2 -2
- package/src/internal/state-stream.d.ts +11 -11
- package/src/ivy/ivy-enabled-in-dev-mode.d.ts +6 -6
- 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 -43
- 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 +59 -59
- package/src/symbols.d.ts +139 -138
- 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 +7 -7
- package/src/utils/utils.d.ts +46 -46
- package/types/index.d.ts +2 -2
- package/esm2015/internals/decorator-injector-adapter.js +0 -204
- package/esm5/internals/decorator-injector-adapter.js +0 -204
- package/internals/decorator-injector-adapter.d.ts +0 -15
|
@@ -1,177 +1,177 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Injectable } from '@angular/core';
|
|
7
|
-
import { NgxsBootstrapper } from '@ngxs/store/internals';
|
|
8
|
-
import { filter, mergeMap, tap } from 'rxjs/operators';
|
|
9
|
-
import { StateContextFactory } from './state-context-factory';
|
|
10
|
-
import { InternalStateOperations } from './state-operations';
|
|
11
|
-
import { getStateDiffChanges } from './internals';
|
|
12
|
-
var LifecycleStateManager = /** @class */ (function () {
|
|
13
|
-
function LifecycleStateManager(internalStateOperations, stateContextFactory, bootstrapper) {
|
|
14
|
-
this.internalStateOperations = internalStateOperations;
|
|
15
|
-
this.stateContextFactory = stateContextFactory;
|
|
16
|
-
this.bootstrapper = bootstrapper;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @template T
|
|
20
|
-
* @param {?} action
|
|
21
|
-
* @param {?} results
|
|
22
|
-
* @return {?}
|
|
23
|
-
*/
|
|
24
|
-
LifecycleStateManager.prototype.ngxsBootstrap = /**
|
|
25
|
-
* @template T
|
|
26
|
-
* @param {?} action
|
|
27
|
-
* @param {?} results
|
|
28
|
-
* @return {?}
|
|
29
|
-
*/
|
|
30
|
-
function (action, results) {
|
|
31
|
-
var _this = this;
|
|
32
|
-
this.internalStateOperations
|
|
33
|
-
.getRootStateOperations()
|
|
34
|
-
.dispatch(action)
|
|
35
|
-
.pipe(filter((/**
|
|
36
|
-
* @return {?}
|
|
37
|
-
*/
|
|
38
|
-
function () { return !!results; })), tap((/**
|
|
39
|
-
* @return {?}
|
|
40
|
-
*/
|
|
41
|
-
function () { return _this.invokeInit((/** @type {?} */ (results)).states); })), mergeMap((/**
|
|
42
|
-
* @return {?}
|
|
43
|
-
*/
|
|
44
|
-
function () { return _this.bootstrapper.appBootstrapped$; })), filter((/**
|
|
45
|
-
* @param {?} appBootstrapped
|
|
46
|
-
* @return {?}
|
|
47
|
-
*/
|
|
48
|
-
function (appBootstrapped) { return !!appBootstrapped; })))
|
|
49
|
-
.subscribe((/**
|
|
50
|
-
* @return {?}
|
|
51
|
-
*/
|
|
52
|
-
function () { return _this.invokeBootstrap((/** @type {?} */ (results)).states); }));
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Invoke the init function on the states.
|
|
56
|
-
*/
|
|
57
|
-
/**
|
|
58
|
-
* Invoke the init function on the states.
|
|
59
|
-
* @param {?} mappedStores
|
|
60
|
-
* @return {?}
|
|
61
|
-
*/
|
|
62
|
-
LifecycleStateManager.prototype.invokeInit = /**
|
|
63
|
-
* Invoke the init function on the states.
|
|
64
|
-
* @param {?} mappedStores
|
|
65
|
-
* @return {?}
|
|
66
|
-
*/
|
|
67
|
-
function (mappedStores) {
|
|
68
|
-
var e_1, _a;
|
|
69
|
-
try {
|
|
70
|
-
for (var mappedStores_1 = tslib_1.__values(mappedStores), mappedStores_1_1 = mappedStores_1.next(); !mappedStores_1_1.done; mappedStores_1_1 = mappedStores_1.next()) {
|
|
71
|
-
var mappedStore = mappedStores_1_1.value;
|
|
72
|
-
/** @type {?} */
|
|
73
|
-
var instance = mappedStore.instance;
|
|
74
|
-
if (instance.ngxsOnChanges) {
|
|
75
|
-
/** @type {?} */
|
|
76
|
-
var currentAppState = {};
|
|
77
|
-
/** @type {?} */
|
|
78
|
-
var newAppState = this.internalStateOperations
|
|
79
|
-
.getRootStateOperations()
|
|
80
|
-
.getState();
|
|
81
|
-
/** @type {?} */
|
|
82
|
-
var firstDiffChange = getStateDiffChanges(mappedStore, {
|
|
83
|
-
currentAppState: currentAppState,
|
|
84
|
-
newAppState: newAppState
|
|
85
|
-
});
|
|
86
|
-
instance.ngxsOnChanges(firstDiffChange);
|
|
87
|
-
}
|
|
88
|
-
if (instance.ngxsOnInit) {
|
|
89
|
-
instance.ngxsOnInit(this.getStateContext(mappedStore));
|
|
90
|
-
}
|
|
91
|
-
mappedStore.isInitialised = true;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
95
|
-
finally {
|
|
96
|
-
try {
|
|
97
|
-
if (mappedStores_1_1 && !mappedStores_1_1.done && (_a = mappedStores_1.return)) _a.call(mappedStores_1);
|
|
98
|
-
}
|
|
99
|
-
finally { if (e_1) throw e_1.error; }
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* Invoke the bootstrap function on the states.
|
|
104
|
-
*/
|
|
105
|
-
/**
|
|
106
|
-
* Invoke the bootstrap function on the states.
|
|
107
|
-
* @param {?} mappedStores
|
|
108
|
-
* @return {?}
|
|
109
|
-
*/
|
|
110
|
-
LifecycleStateManager.prototype.invokeBootstrap = /**
|
|
111
|
-
* Invoke the bootstrap function on the states.
|
|
112
|
-
* @param {?} mappedStores
|
|
113
|
-
* @return {?}
|
|
114
|
-
*/
|
|
115
|
-
function (mappedStores) {
|
|
116
|
-
var e_2, _a;
|
|
117
|
-
try {
|
|
118
|
-
for (var mappedStores_2 = tslib_1.__values(mappedStores), mappedStores_2_1 = mappedStores_2.next(); !mappedStores_2_1.done; mappedStores_2_1 = mappedStores_2.next()) {
|
|
119
|
-
var mappedStore = mappedStores_2_1.value;
|
|
120
|
-
/** @type {?} */
|
|
121
|
-
var instance = mappedStore.instance;
|
|
122
|
-
if (instance.ngxsAfterBootstrap) {
|
|
123
|
-
instance.ngxsAfterBootstrap(this.getStateContext(mappedStore));
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
128
|
-
finally {
|
|
129
|
-
try {
|
|
130
|
-
if (mappedStores_2_1 && !mappedStores_2_1.done && (_a = mappedStores_2.return)) _a.call(mappedStores_2);
|
|
131
|
-
}
|
|
132
|
-
finally { if (e_2) throw e_2.error; }
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
/**
|
|
136
|
-
* @private
|
|
137
|
-
* @param {?} mappedStore
|
|
138
|
-
* @return {?}
|
|
139
|
-
*/
|
|
140
|
-
LifecycleStateManager.prototype.getStateContext = /**
|
|
141
|
-
* @private
|
|
142
|
-
* @param {?} mappedStore
|
|
143
|
-
* @return {?}
|
|
144
|
-
*/
|
|
145
|
-
function (mappedStore) {
|
|
146
|
-
return this.stateContextFactory.createStateContext(mappedStore);
|
|
147
|
-
};
|
|
148
|
-
LifecycleStateManager.decorators = [
|
|
149
|
-
{ type: Injectable }
|
|
150
|
-
];
|
|
151
|
-
/** @nocollapse */
|
|
152
|
-
LifecycleStateManager.ctorParameters = function () { return [
|
|
153
|
-
{ type: InternalStateOperations },
|
|
154
|
-
{ type: StateContextFactory },
|
|
155
|
-
{ type: NgxsBootstrapper }
|
|
156
|
-
]; };
|
|
157
|
-
return LifecycleStateManager;
|
|
158
|
-
}());
|
|
159
|
-
export { LifecycleStateManager };
|
|
160
|
-
if (false) {
|
|
161
|
-
/**
|
|
162
|
-
* @type {?}
|
|
163
|
-
* @private
|
|
164
|
-
*/
|
|
165
|
-
LifecycleStateManager.prototype.internalStateOperations;
|
|
166
|
-
/**
|
|
167
|
-
* @type {?}
|
|
168
|
-
* @private
|
|
169
|
-
*/
|
|
170
|
-
LifecycleStateManager.prototype.stateContextFactory;
|
|
171
|
-
/**
|
|
172
|
-
* @type {?}
|
|
173
|
-
* @private
|
|
174
|
-
*/
|
|
175
|
-
LifecycleStateManager.prototype.bootstrapper;
|
|
176
|
-
}
|
|
177
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import * as tslib_1 from "tslib";
|
|
6
|
+
import { Injectable } from '@angular/core';
|
|
7
|
+
import { NgxsBootstrapper } from '@ngxs/store/internals';
|
|
8
|
+
import { filter, mergeMap, tap } from 'rxjs/operators';
|
|
9
|
+
import { StateContextFactory } from './state-context-factory';
|
|
10
|
+
import { InternalStateOperations } from './state-operations';
|
|
11
|
+
import { getStateDiffChanges } from './internals';
|
|
12
|
+
var LifecycleStateManager = /** @class */ (function () {
|
|
13
|
+
function LifecycleStateManager(internalStateOperations, stateContextFactory, bootstrapper) {
|
|
14
|
+
this.internalStateOperations = internalStateOperations;
|
|
15
|
+
this.stateContextFactory = stateContextFactory;
|
|
16
|
+
this.bootstrapper = bootstrapper;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @template T
|
|
20
|
+
* @param {?} action
|
|
21
|
+
* @param {?} results
|
|
22
|
+
* @return {?}
|
|
23
|
+
*/
|
|
24
|
+
LifecycleStateManager.prototype.ngxsBootstrap = /**
|
|
25
|
+
* @template T
|
|
26
|
+
* @param {?} action
|
|
27
|
+
* @param {?} results
|
|
28
|
+
* @return {?}
|
|
29
|
+
*/
|
|
30
|
+
function (action, results) {
|
|
31
|
+
var _this = this;
|
|
32
|
+
this.internalStateOperations
|
|
33
|
+
.getRootStateOperations()
|
|
34
|
+
.dispatch(action)
|
|
35
|
+
.pipe(filter((/**
|
|
36
|
+
* @return {?}
|
|
37
|
+
*/
|
|
38
|
+
function () { return !!results; })), tap((/**
|
|
39
|
+
* @return {?}
|
|
40
|
+
*/
|
|
41
|
+
function () { return _this.invokeInit((/** @type {?} */ (results)).states); })), mergeMap((/**
|
|
42
|
+
* @return {?}
|
|
43
|
+
*/
|
|
44
|
+
function () { return _this.bootstrapper.appBootstrapped$; })), filter((/**
|
|
45
|
+
* @param {?} appBootstrapped
|
|
46
|
+
* @return {?}
|
|
47
|
+
*/
|
|
48
|
+
function (appBootstrapped) { return !!appBootstrapped; })))
|
|
49
|
+
.subscribe((/**
|
|
50
|
+
* @return {?}
|
|
51
|
+
*/
|
|
52
|
+
function () { return _this.invokeBootstrap((/** @type {?} */ (results)).states); }));
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Invoke the init function on the states.
|
|
56
|
+
*/
|
|
57
|
+
/**
|
|
58
|
+
* Invoke the init function on the states.
|
|
59
|
+
* @param {?} mappedStores
|
|
60
|
+
* @return {?}
|
|
61
|
+
*/
|
|
62
|
+
LifecycleStateManager.prototype.invokeInit = /**
|
|
63
|
+
* Invoke the init function on the states.
|
|
64
|
+
* @param {?} mappedStores
|
|
65
|
+
* @return {?}
|
|
66
|
+
*/
|
|
67
|
+
function (mappedStores) {
|
|
68
|
+
var e_1, _a;
|
|
69
|
+
try {
|
|
70
|
+
for (var mappedStores_1 = tslib_1.__values(mappedStores), mappedStores_1_1 = mappedStores_1.next(); !mappedStores_1_1.done; mappedStores_1_1 = mappedStores_1.next()) {
|
|
71
|
+
var mappedStore = mappedStores_1_1.value;
|
|
72
|
+
/** @type {?} */
|
|
73
|
+
var instance = mappedStore.instance;
|
|
74
|
+
if (instance.ngxsOnChanges) {
|
|
75
|
+
/** @type {?} */
|
|
76
|
+
var currentAppState = {};
|
|
77
|
+
/** @type {?} */
|
|
78
|
+
var newAppState = this.internalStateOperations
|
|
79
|
+
.getRootStateOperations()
|
|
80
|
+
.getState();
|
|
81
|
+
/** @type {?} */
|
|
82
|
+
var firstDiffChange = getStateDiffChanges(mappedStore, {
|
|
83
|
+
currentAppState: currentAppState,
|
|
84
|
+
newAppState: newAppState
|
|
85
|
+
});
|
|
86
|
+
instance.ngxsOnChanges(firstDiffChange);
|
|
87
|
+
}
|
|
88
|
+
if (instance.ngxsOnInit) {
|
|
89
|
+
instance.ngxsOnInit(this.getStateContext(mappedStore));
|
|
90
|
+
}
|
|
91
|
+
mappedStore.isInitialised = true;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
95
|
+
finally {
|
|
96
|
+
try {
|
|
97
|
+
if (mappedStores_1_1 && !mappedStores_1_1.done && (_a = mappedStores_1.return)) _a.call(mappedStores_1);
|
|
98
|
+
}
|
|
99
|
+
finally { if (e_1) throw e_1.error; }
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Invoke the bootstrap function on the states.
|
|
104
|
+
*/
|
|
105
|
+
/**
|
|
106
|
+
* Invoke the bootstrap function on the states.
|
|
107
|
+
* @param {?} mappedStores
|
|
108
|
+
* @return {?}
|
|
109
|
+
*/
|
|
110
|
+
LifecycleStateManager.prototype.invokeBootstrap = /**
|
|
111
|
+
* Invoke the bootstrap function on the states.
|
|
112
|
+
* @param {?} mappedStores
|
|
113
|
+
* @return {?}
|
|
114
|
+
*/
|
|
115
|
+
function (mappedStores) {
|
|
116
|
+
var e_2, _a;
|
|
117
|
+
try {
|
|
118
|
+
for (var mappedStores_2 = tslib_1.__values(mappedStores), mappedStores_2_1 = mappedStores_2.next(); !mappedStores_2_1.done; mappedStores_2_1 = mappedStores_2.next()) {
|
|
119
|
+
var mappedStore = mappedStores_2_1.value;
|
|
120
|
+
/** @type {?} */
|
|
121
|
+
var instance = mappedStore.instance;
|
|
122
|
+
if (instance.ngxsAfterBootstrap) {
|
|
123
|
+
instance.ngxsAfterBootstrap(this.getStateContext(mappedStore));
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
128
|
+
finally {
|
|
129
|
+
try {
|
|
130
|
+
if (mappedStores_2_1 && !mappedStores_2_1.done && (_a = mappedStores_2.return)) _a.call(mappedStores_2);
|
|
131
|
+
}
|
|
132
|
+
finally { if (e_2) throw e_2.error; }
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* @private
|
|
137
|
+
* @param {?} mappedStore
|
|
138
|
+
* @return {?}
|
|
139
|
+
*/
|
|
140
|
+
LifecycleStateManager.prototype.getStateContext = /**
|
|
141
|
+
* @private
|
|
142
|
+
* @param {?} mappedStore
|
|
143
|
+
* @return {?}
|
|
144
|
+
*/
|
|
145
|
+
function (mappedStore) {
|
|
146
|
+
return this.stateContextFactory.createStateContext(mappedStore);
|
|
147
|
+
};
|
|
148
|
+
LifecycleStateManager.decorators = [
|
|
149
|
+
{ type: Injectable }
|
|
150
|
+
];
|
|
151
|
+
/** @nocollapse */
|
|
152
|
+
LifecycleStateManager.ctorParameters = function () { return [
|
|
153
|
+
{ type: InternalStateOperations },
|
|
154
|
+
{ type: StateContextFactory },
|
|
155
|
+
{ type: NgxsBootstrapper }
|
|
156
|
+
]; };
|
|
157
|
+
return LifecycleStateManager;
|
|
158
|
+
}());
|
|
159
|
+
export { LifecycleStateManager };
|
|
160
|
+
if (false) {
|
|
161
|
+
/**
|
|
162
|
+
* @type {?}
|
|
163
|
+
* @private
|
|
164
|
+
*/
|
|
165
|
+
LifecycleStateManager.prototype.internalStateOperations;
|
|
166
|
+
/**
|
|
167
|
+
* @type {?}
|
|
168
|
+
* @private
|
|
169
|
+
*/
|
|
170
|
+
LifecycleStateManager.prototype.stateContextFactory;
|
|
171
|
+
/**
|
|
172
|
+
* @type {?}
|
|
173
|
+
* @private
|
|
174
|
+
*/
|
|
175
|
+
LifecycleStateManager.prototype.bootstrapper;
|
|
176
|
+
}
|
|
177
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlmZWN5Y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