@ngxs/store 3.7.6 → 3.8.0-dev.master-743a236
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-internals-testing.umd.js +409 -420
- package/bundles/ngxs-store-internals-testing.umd.js.map +1 -1
- package/bundles/ngxs-store-internals.umd.js +48 -117
- package/bundles/ngxs-store-internals.umd.js.map +1 -1
- package/bundles/ngxs-store-operators.umd.js +62 -402
- package/bundles/ngxs-store-operators.umd.js.map +1 -1
- package/bundles/ngxs-store.umd.js +1296 -3219
- package/bundles/ngxs-store.umd.js.map +1 -1
- package/esm2015/index.js +7 -7
- package/esm2015/internals/angular.js +1 -8
- package/esm2015/internals/index.js +2 -6
- package/esm2015/internals/initial-state.js +1 -21
- package/esm2015/internals/internal-tokens.js +4 -15
- package/esm2015/internals/memoize.js +8 -33
- package/esm2015/internals/ngxs-bootstrapper.js +7 -20
- package/esm2015/internals/ngxs-store-internals.js +2 -6
- package/esm2015/internals/src/symbols.js +2 -14
- package/esm2015/internals/symbols.js +2 -14
- package/esm2015/internals/testing/fresh-platform.js +13 -53
- package/esm2015/internals/testing/helpers/ngxs-test.component.js +11 -17
- package/esm2015/internals/testing/helpers/ngxs-test.module.js +13 -16
- package/esm2015/internals/testing/index.js +1 -5
- package/esm2015/internals/testing/ngxs-store-internals-testing.js +2 -6
- package/esm2015/internals/testing/ngxs.setup.js +1 -31
- package/esm2015/internals/testing/skip-console-logging.js +7 -42
- package/esm2015/internals/testing/symbol.js +2 -29
- package/esm2015/ngxs-store.js +2 -22
- package/esm2015/operators/append.js +7 -18
- package/esm2015/operators/compose.js +4 -22
- package/esm2015/operators/iif.js +12 -30
- package/esm2015/operators/index.js +2 -6
- package/esm2015/operators/insert-item.js +10 -22
- package/esm2015/operators/ngxs-store-operators.js +2 -6
- package/esm2015/operators/patch.js +5 -23
- package/esm2015/operators/remove-item.js +5 -17
- package/esm2015/operators/types.js +2 -0
- package/esm2015/operators/update-item.js +13 -25
- package/esm2015/operators/utils.js +1 -32
- package/esm2015/src/actions/actions.js +1 -18
- package/esm2015/src/actions/symbols.js +2 -39
- package/esm2015/src/actions-stream.js +20 -122
- package/esm2015/src/configs/messages.config.js +1 -44
- package/esm2015/src/decorators/action.js +3 -18
- package/esm2015/src/decorators/select/select-factory.js +10 -27
- package/esm2015/src/decorators/select/select.js +3 -22
- package/esm2015/src/decorators/select/symbols.js +4 -25
- package/esm2015/src/decorators/selector/selector.js +11 -38
- package/esm2015/src/decorators/selector/symbols.js +2 -5
- package/esm2015/src/decorators/selector-options.js +6 -19
- package/esm2015/src/decorators/state.js +5 -44
- package/esm2015/src/dev-features/ngxs-development.module.js +22 -0
- package/esm2015/src/dev-features/ngxs-unhandled-actions-logger.js +46 -0
- package/esm2015/src/dev-features/symbols.js +6 -0
- package/esm2015/src/execution/dispatch-outside-zone-ngxs-execution-strategy.js +10 -56
- package/esm2015/src/execution/internal-ngxs-execution-strategy.js +10 -32
- package/esm2015/src/execution/noop-ngxs-execution-strategy.js +7 -19
- package/esm2015/src/execution/symbols.js +3 -32
- package/esm2015/src/internal/custom-rxjs-subjects.js +81 -0
- package/esm2015/src/internal/dispatcher.js +26 -121
- package/esm2015/src/internal/error-handler.js +18 -72
- package/esm2015/src/internal/internals.js +24 -244
- package/esm2015/src/internal/lifecycle-state-manager.js +19 -117
- package/esm2015/src/internal/state-context-factory.js +8 -66
- package/esm2015/src/internal/state-factory.js +60 -227
- package/esm2015/src/internal/state-operations.js +19 -80
- package/esm2015/src/internal/state-operators.js +15 -28
- package/esm2015/src/internal/state-stream.js +9 -15
- package/esm2015/src/ivy/ivy-enabled-in-dev-mode.js +7 -17
- package/esm2015/src/module.js +12 -47
- package/esm2015/src/modules/ngxs-feature.module.js +18 -36
- package/esm2015/src/modules/ngxs-root.module.js +18 -26
- package/esm2015/src/operators/leave-ngxs.js +8 -43
- package/esm2015/src/operators/of-action.js +16 -105
- package/esm2015/src/plugin-manager.js +17 -50
- package/esm2015/src/plugin_api.js +1 -5
- package/esm2015/src/private_api.js +3 -0
- package/esm2015/src/public_api.js +7 -9
- package/esm2015/src/public_to_deprecate.js +1 -51
- package/esm2015/src/selectors/create-model-selector.js +28 -0
- package/esm2015/src/selectors/create-pick-selector.js +14 -0
- package/esm2015/src/selectors/create-property-selectors.js +18 -0
- package/esm2015/src/selectors/create-selector.js +9 -0
- package/esm2015/src/selectors/index.js +6 -0
- package/esm2015/src/selectors/selector-checks.util.js +18 -0
- package/esm2015/src/selectors/selector-metadata.js +30 -0
- package/esm2015/src/selectors/selector-models.js +2 -0
- package/esm2015/src/selectors/selector-types.util.js +2 -0
- package/esm2015/src/selectors/selector-utils.js +74 -0
- package/esm2015/src/state-token/state-token.js +4 -32
- package/esm2015/src/state-token/symbols.js +2 -5
- package/esm2015/src/store.js +24 -108
- package/esm2015/src/symbols.js +7 -177
- package/esm2015/src/utils/compose.js +5 -23
- package/esm2015/src/utils/freeze.js +5 -20
- package/esm2015/src/utils/store-validators.js +3 -36
- package/esm2015/src/utils/utils.js +13 -64
- package/fesm2015/ngxs-store-internals-testing.js +38 -159
- package/fesm2015/ngxs-store-internals-testing.js.map +1 -1
- package/fesm2015/ngxs-store-internals.js +18 -100
- package/fesm2015/ngxs-store-internals.js.map +1 -1
- package/fesm2015/ngxs-store-operators.js +54 -186
- package/fesm2015/ngxs-store-operators.js.map +1 -1
- package/fesm2015/ngxs-store.js +662 -2488
- package/fesm2015/ngxs-store.js.map +1 -1
- package/index.d.ts +4 -0
- package/internals/index.d.ts +1 -1
- package/internals/internal-tokens.d.ts +2 -8
- package/internals/ngxs-bootstrapper.d.ts +4 -1
- package/internals/ngxs-store-internals.d.ts +1 -0
- package/internals/package.json +2 -5
- package/internals/testing/helpers/ngxs-test.component.d.ts +3 -0
- package/internals/testing/helpers/ngxs-test.module.d.ts +6 -0
- package/internals/testing/ngxs-store-internals-testing.d.ts +1 -0
- package/internals/testing/package.json +2 -5
- package/ngxs-store.d.ts +1 -17
- package/operators/append.d.ts +2 -3
- package/operators/compose.d.ts +2 -2
- package/operators/iif.d.ts +3 -4
- package/operators/index.d.ts +3 -2
- package/operators/insert-item.d.ts +2 -3
- package/operators/ngxs-store-operators.d.ts +1 -0
- package/operators/package.json +2 -5
- package/operators/patch.d.ts +5 -8
- package/operators/remove-item.d.ts +3 -4
- package/operators/types.d.ts +56 -0
- package/operators/update-item.d.ts +3 -4
- package/operators/utils.d.ts +2 -3
- package/package.json +4 -7
- package/src/actions/actions.d.ts +2 -2
- package/src/actions-stream.d.ts +8 -22
- package/src/decorators/select/select-factory.d.ts +3 -0
- package/src/decorators/selector/selector.d.ts +7 -2
- package/src/decorators/state.d.ts +1 -1
- package/src/dev-features/ngxs-development.module.d.ts +9 -0
- package/src/dev-features/ngxs-unhandled-actions-logger.d.ts +17 -0
- package/src/dev-features/symbols.d.ts +8 -0
- package/src/execution/dispatch-outside-zone-ngxs-execution-strategy.d.ts +3 -0
- package/src/execution/internal-ngxs-execution-strategy.d.ts +3 -0
- package/src/execution/noop-ngxs-execution-strategy.d.ts +3 -0
- package/src/internal/custom-rxjs-subjects.d.ts +37 -0
- package/src/internal/dispatcher.d.ts +5 -0
- package/src/internal/error-handler.d.ts +4 -1
- package/src/internal/lifecycle-state-manager.d.ts +3 -0
- package/src/internal/state-context-factory.d.ts +3 -0
- package/src/internal/state-factory.d.ts +7 -4
- package/src/internal/state-operations.d.ts +3 -0
- package/src/internal/state-operators.d.ts +2 -2
- package/src/internal/state-stream.d.ts +5 -2
- package/src/module.d.ts +4 -0
- package/src/modules/ngxs-feature.module.d.ts +4 -0
- package/src/modules/ngxs-root.module.d.ts +4 -0
- package/src/operators/of-action.d.ts +20 -7
- package/src/plugin-manager.d.ts +4 -1
- package/src/private_api.d.ts +2 -0
- package/src/public_api.d.ts +8 -5
- package/src/selectors/create-model-selector.d.ts +10 -0
- package/src/selectors/create-pick-selector.d.ts +6 -0
- package/src/selectors/create-property-selectors.d.ts +5 -0
- package/src/selectors/create-selector.d.ts +19 -0
- package/src/selectors/index.d.ts +5 -0
- package/src/selectors/selector-checks.util.d.ts +9 -0
- package/src/selectors/selector-metadata.d.ts +7 -0
- package/src/selectors/selector-models.d.ts +10 -0
- package/src/selectors/selector-types.util.d.ts +7 -0
- package/src/selectors/selector-utils.d.ts +9 -0
- package/src/store.d.ts +3 -0
- package/src/symbols.d.ts +7 -3
- package/src/utils/utils.d.ts +1 -1
- package/bundles/ngxs-store-internals-testing.umd.min.js +0 -16
- package/bundles/ngxs-store-internals-testing.umd.min.js.map +0 -1
- package/bundles/ngxs-store-internals.umd.min.js +0 -2
- package/bundles/ngxs-store-internals.umd.min.js.map +0 -1
- package/bundles/ngxs-store-operators.umd.min.js +0 -16
- package/bundles/ngxs-store-operators.umd.min.js.map +0 -1
- package/bundles/ngxs-store.umd.min.js +0 -16
- package/bundles/ngxs-store.umd.min.js.map +0 -1
- package/esm2015/operators/internals.js +0 -5
- package/esm2015/src/utils/selector-utils.js +0 -221
- package/esm5/index.js +0 -13
- package/esm5/internals/angular.js +0 -20
- package/esm5/internals/index.js +0 -10
- package/esm5/internals/initial-state.js +0 -45
- package/esm5/internals/internal-tokens.js +0 -16
- package/esm5/internals/memoize.js +0 -71
- package/esm5/internals/ngxs-bootstrapper.js +0 -56
- package/esm5/internals/ngxs-store-internals.js +0 -9
- package/esm5/internals/src/symbols.js +0 -14
- package/esm5/internals/symbols.js +0 -14
- package/esm5/internals/testing/fresh-platform.js +0 -121
- package/esm5/internals/testing/helpers/ngxs-test.component.js +0 -32
- package/esm5/internals/testing/helpers/ngxs-test.module.js +0 -32
- package/esm5/internals/testing/index.js +0 -8
- package/esm5/internals/testing/ngxs-store-internals-testing.js +0 -9
- package/esm5/internals/testing/ngxs.setup.js +0 -98
- package/esm5/internals/testing/skip-console-logging.js +0 -62
- package/esm5/internals/testing/symbol.js +0 -29
- package/esm5/ngxs-store.js +0 -25
- package/esm5/operators/append.js +0 -31
- package/esm5/operators/compose.js +0 -28
- package/esm5/operators/iif.js +0 -56
- package/esm5/operators/index.js +0 -18
- package/esm5/operators/insert-item.js +0 -41
- package/esm5/operators/internals.js +0 -5
- package/esm5/operators/ngxs-store-operators.js +0 -9
- package/esm5/operators/patch.js +0 -40
- package/esm5/operators/remove-item.js +0 -34
- package/esm5/operators/update-item.js +0 -52
- package/esm5/operators/utils.js +0 -50
- package/esm5/src/actions/actions.js +0 -62
- package/esm5/src/actions/symbols.js +0 -39
- package/esm5/src/actions-stream.js +0 -203
- package/esm5/src/configs/messages.config.js +0 -79
- package/esm5/src/decorators/action.js +0 -60
- package/esm5/src/decorators/select/select-factory.js +0 -46
- package/esm5/src/decorators/select/select.js +0 -50
- package/esm5/src/decorators/select/symbols.js +0 -51
- package/esm5/src/decorators/selector/selector.js +0 -59
- package/esm5/src/decorators/selector/symbols.js +0 -5
- package/esm5/src/decorators/selector-options.js +0 -34
- package/esm5/src/decorators/state.js +0 -78
- package/esm5/src/execution/dispatch-outside-zone-ngxs-execution-strategy.js +0 -123
- package/esm5/src/execution/internal-ngxs-execution-strategy.js +0 -54
- package/esm5/src/execution/noop-ngxs-execution-strategy.js +0 -43
- package/esm5/src/execution/symbols.js +0 -52
- package/esm5/src/internal/dispatcher.js +0 -231
- package/esm5/src/internal/error-handler.js +0 -125
- package/esm5/src/internal/internals.js +0 -470
- package/esm5/src/internal/lifecycle-state-manager.js +0 -224
- package/esm5/src/internal/state-context-factory.js +0 -135
- package/esm5/src/internal/state-factory.js +0 -583
- package/esm5/src/internal/state-operations.js +0 -134
- package/esm5/src/internal/state-operators.js +0 -34
- package/esm5/src/internal/state-stream.js +0 -37
- package/esm5/src/ivy/ivy-enabled-in-dev-mode.js +0 -28
- package/esm5/src/module.js +0 -202
- package/esm5/src/modules/ngxs-feature.module.js +0 -65
- package/esm5/src/modules/ngxs-root.module.js +0 -44
- package/esm5/src/operators/leave-ngxs.js +0 -58
- package/esm5/src/operators/of-action.js +0 -217
- package/esm5/src/plugin-manager.js +0 -82
- package/esm5/src/plugin_api.js +0 -10
- package/esm5/src/public_api.js +0 -29
- package/esm5/src/public_to_deprecate.js +0 -64
- package/esm5/src/state-token/state-token.js +0 -57
- package/esm5/src/state-token/symbols.js +0 -5
- package/esm5/src/store.js +0 -241
- package/esm5/src/symbols.js +0 -230
- package/esm5/src/utils/compose.js +0 -55
- package/esm5/src/utils/freeze.js +0 -35
- package/esm5/src/utils/selector-utils.js +0 -230
- package/esm5/src/utils/store-validators.js +0 -78
- package/esm5/src/utils/utils.js +0 -151
- package/fesm5/ngxs-store-internals-testing.js +0 -345
- package/fesm5/ngxs-store-internals-testing.js.map +0 -1
- package/fesm5/ngxs-store-internals.js +0 -217
- package/fesm5/ngxs-store-internals.js.map +0 -1
- package/fesm5/ngxs-store-operators.js +0 -340
- package/fesm5/ngxs-store-operators.js.map +0 -1
- package/fesm5/ngxs-store.js +0 -4619
- package/fesm5/ngxs-store.js.map +0 -1
- package/internals/ngxs-store-internals.metadata.json +0 -1
- package/internals/testing/ngxs-store-internals-testing.metadata.json +0 -1
- package/ngxs-store.metadata.json +0 -1
- package/operators/internals.d.ts +0 -2
- package/operators/ngxs-store-operators.metadata.json +0 -1
- package/src/utils/selector-utils.d.ts +0 -23
- package/types/index.d.ts +0 -2
|
@@ -1,480 +1,500 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/core/testing'), require('@angular/common'), require('@angular/platform-browser'), require('@angular/platform-browser-dynamic/testing'), require('@ngxs/store')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@ngxs/store/internals/testing', ['exports', '@angular/core', '@angular/core/testing', '@angular/common', '@angular/platform-browser', '@angular/platform-browser-dynamic/testing', '@ngxs/store'], factory) :
|
|
4
|
-
(global = global || self, factory((global.ngxs = global.ngxs || {}, global.ngxs.store = global.ngxs.store || {}, global.ngxs.store.internals = global.ngxs.store.internals || {}, global.ngxs.store.internals.testing = {}), global.ng.core, global.ng.core.testing, global.ng.common, global.ng.platformBrowser, global.ng.platformBrowserDynamic.testing, global.ngxs.store));
|
|
5
|
-
}(this, function (exports,
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ngxs = global.ngxs || {}, global.ngxs.store = global.ngxs.store || {}, global.ngxs.store.internals = global.ngxs.store.internals || {}, global.ngxs.store.internals.testing = {}), global.ng.core, global.ng.core.testing, global.ng.common, global.ng.platformBrowser, global.ng.platformBrowserDynamic.testing, global.ngxs.store));
|
|
5
|
+
})(this, (function (exports, i0, testing, common, platformBrowser, testing$1, store) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
if (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
return
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
function
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
function
|
|
187
|
-
if (
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
function
|
|
195
|
-
if (
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
function
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
function
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
|
|
27
|
+
/******************************************************************************
|
|
28
|
+
Copyright (c) Microsoft Corporation.
|
|
29
|
+
|
|
30
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
31
|
+
purpose with or without fee is hereby granted.
|
|
32
|
+
|
|
33
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
34
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
35
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
36
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
37
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
38
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
39
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
40
|
+
***************************************************************************** */
|
|
41
|
+
/* global Reflect, Promise */
|
|
42
|
+
var extendStatics = function (d, b) {
|
|
43
|
+
extendStatics = Object.setPrototypeOf ||
|
|
44
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
45
|
+
function (d, b) { for (var p in b)
|
|
46
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
47
|
+
d[p] = b[p]; };
|
|
48
|
+
return extendStatics(d, b);
|
|
49
|
+
};
|
|
50
|
+
function __extends(d, b) {
|
|
51
|
+
if (typeof b !== "function" && b !== null)
|
|
52
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
53
|
+
extendStatics(d, b);
|
|
54
|
+
function __() { this.constructor = d; }
|
|
55
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
56
|
+
}
|
|
57
|
+
var __assign = function () {
|
|
58
|
+
__assign = Object.assign || function __assign(t) {
|
|
59
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
60
|
+
s = arguments[i];
|
|
61
|
+
for (var p in s)
|
|
62
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
63
|
+
t[p] = s[p];
|
|
64
|
+
}
|
|
65
|
+
return t;
|
|
66
|
+
};
|
|
67
|
+
return __assign.apply(this, arguments);
|
|
68
|
+
};
|
|
69
|
+
function __rest(s, e) {
|
|
70
|
+
var t = {};
|
|
71
|
+
for (var p in s)
|
|
72
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
73
|
+
t[p] = s[p];
|
|
74
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
75
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
76
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
77
|
+
t[p[i]] = s[p[i]];
|
|
78
|
+
}
|
|
79
|
+
return t;
|
|
80
|
+
}
|
|
81
|
+
function __decorate(decorators, target, key, desc) {
|
|
82
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
83
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
84
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
85
|
+
else
|
|
86
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
87
|
+
if (d = decorators[i])
|
|
88
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
89
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
90
|
+
}
|
|
91
|
+
function __param(paramIndex, decorator) {
|
|
92
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
93
|
+
}
|
|
94
|
+
function __metadata(metadataKey, metadataValue) {
|
|
95
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
96
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
97
|
+
}
|
|
98
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
99
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
100
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
101
|
+
function fulfilled(value) { try {
|
|
102
|
+
step(generator.next(value));
|
|
103
|
+
}
|
|
104
|
+
catch (e) {
|
|
105
|
+
reject(e);
|
|
106
|
+
} }
|
|
107
|
+
function rejected(value) { try {
|
|
108
|
+
step(generator["throw"](value));
|
|
109
|
+
}
|
|
110
|
+
catch (e) {
|
|
111
|
+
reject(e);
|
|
112
|
+
} }
|
|
113
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
114
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
function __generator(thisArg, body) {
|
|
118
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
119
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
120
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
121
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
122
|
+
function step(op) {
|
|
123
|
+
if (f)
|
|
124
|
+
throw new TypeError("Generator is already executing.");
|
|
125
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
126
|
+
try {
|
|
127
|
+
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)
|
|
128
|
+
return t;
|
|
129
|
+
if (y = 0, t)
|
|
130
|
+
op = [op[0] & 2, t.value];
|
|
131
|
+
switch (op[0]) {
|
|
132
|
+
case 0:
|
|
133
|
+
case 1:
|
|
134
|
+
t = op;
|
|
135
|
+
break;
|
|
136
|
+
case 4:
|
|
137
|
+
_.label++;
|
|
138
|
+
return { value: op[1], done: false };
|
|
139
|
+
case 5:
|
|
140
|
+
_.label++;
|
|
141
|
+
y = op[1];
|
|
142
|
+
op = [0];
|
|
143
|
+
continue;
|
|
144
|
+
case 7:
|
|
145
|
+
op = _.ops.pop();
|
|
146
|
+
_.trys.pop();
|
|
147
|
+
continue;
|
|
148
|
+
default:
|
|
149
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
150
|
+
_ = 0;
|
|
151
|
+
continue;
|
|
152
|
+
}
|
|
153
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
154
|
+
_.label = op[1];
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
158
|
+
_.label = t[1];
|
|
159
|
+
t = op;
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
if (t && _.label < t[2]) {
|
|
163
|
+
_.label = t[2];
|
|
164
|
+
_.ops.push(op);
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
if (t[2])
|
|
168
|
+
_.ops.pop();
|
|
169
|
+
_.trys.pop();
|
|
170
|
+
continue;
|
|
171
|
+
}
|
|
172
|
+
op = body.call(thisArg, _);
|
|
173
|
+
}
|
|
174
|
+
catch (e) {
|
|
175
|
+
op = [6, e];
|
|
176
|
+
y = 0;
|
|
177
|
+
}
|
|
178
|
+
finally {
|
|
179
|
+
f = t = 0;
|
|
180
|
+
}
|
|
181
|
+
if (op[0] & 5)
|
|
182
|
+
throw op[1];
|
|
183
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
187
|
+
if (k2 === undefined)
|
|
188
|
+
k2 = k;
|
|
189
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
190
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
191
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
192
|
+
}
|
|
193
|
+
Object.defineProperty(o, k2, desc);
|
|
194
|
+
}) : (function (o, m, k, k2) {
|
|
195
|
+
if (k2 === undefined)
|
|
196
|
+
k2 = k;
|
|
197
|
+
o[k2] = m[k];
|
|
198
|
+
});
|
|
199
|
+
function __exportStar(m, o) {
|
|
200
|
+
for (var p in m)
|
|
201
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
202
|
+
__createBinding(o, m, p);
|
|
203
|
+
}
|
|
204
|
+
function __values(o) {
|
|
205
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
206
|
+
if (m)
|
|
207
|
+
return m.call(o);
|
|
208
|
+
if (o && typeof o.length === "number")
|
|
209
|
+
return {
|
|
210
|
+
next: function () {
|
|
211
|
+
if (o && i >= o.length)
|
|
212
|
+
o = void 0;
|
|
213
|
+
return { value: o && o[i++], done: !o };
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
217
|
+
}
|
|
218
|
+
function __read(o, n) {
|
|
219
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
220
|
+
if (!m)
|
|
221
|
+
return o;
|
|
222
|
+
var i = m.call(o), r, ar = [], e;
|
|
223
|
+
try {
|
|
224
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
225
|
+
ar.push(r.value);
|
|
226
|
+
}
|
|
227
|
+
catch (error) {
|
|
228
|
+
e = { error: error };
|
|
229
|
+
}
|
|
230
|
+
finally {
|
|
231
|
+
try {
|
|
232
|
+
if (r && !r.done && (m = i["return"]))
|
|
233
|
+
m.call(i);
|
|
234
|
+
}
|
|
235
|
+
finally {
|
|
236
|
+
if (e)
|
|
237
|
+
throw e.error;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
return ar;
|
|
241
|
+
}
|
|
242
|
+
/** @deprecated */
|
|
243
|
+
function __spread() {
|
|
244
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
245
|
+
ar = ar.concat(__read(arguments[i]));
|
|
246
|
+
return ar;
|
|
247
|
+
}
|
|
248
|
+
/** @deprecated */
|
|
249
|
+
function __spreadArrays() {
|
|
250
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
251
|
+
s += arguments[i].length;
|
|
252
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
253
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
254
|
+
r[k] = a[j];
|
|
255
|
+
return r;
|
|
256
|
+
}
|
|
257
|
+
function __spreadArray(to, from, pack) {
|
|
258
|
+
if (pack || arguments.length === 2)
|
|
259
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
260
|
+
if (ar || !(i in from)) {
|
|
261
|
+
if (!ar)
|
|
262
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
263
|
+
ar[i] = from[i];
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
267
|
+
}
|
|
268
|
+
function __await(v) {
|
|
269
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
270
|
+
}
|
|
271
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
272
|
+
if (!Symbol.asyncIterator)
|
|
273
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
274
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
275
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
276
|
+
function verb(n) { if (g[n])
|
|
277
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
278
|
+
function resume(n, v) { try {
|
|
279
|
+
step(g[n](v));
|
|
280
|
+
}
|
|
281
|
+
catch (e) {
|
|
282
|
+
settle(q[0][3], e);
|
|
283
|
+
} }
|
|
284
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
285
|
+
function fulfill(value) { resume("next", value); }
|
|
286
|
+
function reject(value) { resume("throw", value); }
|
|
287
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
288
|
+
resume(q[0][0], q[0][1]); }
|
|
289
|
+
}
|
|
290
|
+
function __asyncDelegator(o) {
|
|
291
|
+
var i, p;
|
|
292
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
293
|
+
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; }
|
|
294
|
+
}
|
|
295
|
+
function __asyncValues(o) {
|
|
296
|
+
if (!Symbol.asyncIterator)
|
|
297
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
298
|
+
var m = o[Symbol.asyncIterator], i;
|
|
299
|
+
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);
|
|
300
|
+
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); }); }; }
|
|
301
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
302
|
+
}
|
|
303
|
+
function __makeTemplateObject(cooked, raw) {
|
|
304
|
+
if (Object.defineProperty) {
|
|
305
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
306
|
+
}
|
|
307
|
+
else {
|
|
308
|
+
cooked.raw = raw;
|
|
309
|
+
}
|
|
310
|
+
return cooked;
|
|
311
|
+
}
|
|
312
|
+
;
|
|
313
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
314
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
315
|
+
}) : function (o, v) {
|
|
316
|
+
o["default"] = v;
|
|
317
|
+
};
|
|
318
|
+
function __importStar(mod) {
|
|
319
|
+
if (mod && mod.__esModule)
|
|
320
|
+
return mod;
|
|
321
|
+
var result = {};
|
|
322
|
+
if (mod != null)
|
|
323
|
+
for (var k in mod)
|
|
324
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
325
|
+
__createBinding(result, mod, k);
|
|
326
|
+
__setModuleDefault(result, mod);
|
|
327
|
+
return result;
|
|
328
|
+
}
|
|
329
|
+
function __importDefault(mod) {
|
|
330
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
331
|
+
}
|
|
332
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
333
|
+
if (kind === "a" && !f)
|
|
334
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
335
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
336
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
337
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
338
|
+
}
|
|
339
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
340
|
+
if (kind === "m")
|
|
341
|
+
throw new TypeError("Private method is not writable");
|
|
342
|
+
if (kind === "a" && !f)
|
|
343
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
344
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
345
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
346
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
347
|
+
}
|
|
348
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
349
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
350
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
351
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
224
352
|
}
|
|
225
353
|
|
|
226
|
-
/**
|
|
227
|
-
* @fileoverview added by tsickle
|
|
228
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
229
|
-
*/
|
|
230
354
|
var NgxsTestComponent = /** @class */ (function () {
|
|
231
355
|
function NgxsTestComponent() {
|
|
232
356
|
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
*/
|
|
236
|
-
NgxsTestComponent.prototype.ngOnInit = /**
|
|
237
|
-
* @return {?}
|
|
238
|
-
*/
|
|
239
|
-
function () { };
|
|
240
|
-
/**
|
|
241
|
-
* @return {?}
|
|
242
|
-
*/
|
|
243
|
-
NgxsTestComponent.prototype.ngAfterViewInit = /**
|
|
244
|
-
* @return {?}
|
|
245
|
-
*/
|
|
246
|
-
function () { };
|
|
247
|
-
NgxsTestComponent.decorators = [
|
|
248
|
-
{ type: core.Component, args: [{
|
|
249
|
-
selector: 'app-root',
|
|
250
|
-
template: ''
|
|
251
|
-
}] }
|
|
252
|
-
];
|
|
357
|
+
NgxsTestComponent.prototype.ngOnInit = function () { };
|
|
358
|
+
NgxsTestComponent.prototype.ngAfterViewInit = function () { };
|
|
253
359
|
return NgxsTestComponent;
|
|
254
360
|
}());
|
|
361
|
+
/** @nocollapse */ NgxsTestComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NgxsTestComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
362
|
+
/** @nocollapse */ NgxsTestComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: NgxsTestComponent, selector: "app-root", ngImport: i0__namespace, template: '', isInline: true });
|
|
363
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NgxsTestComponent, decorators: [{
|
|
364
|
+
type: i0.Component,
|
|
365
|
+
args: [{
|
|
366
|
+
selector: 'app-root',
|
|
367
|
+
template: ''
|
|
368
|
+
}]
|
|
369
|
+
}] });
|
|
255
370
|
|
|
256
|
-
/**
|
|
257
|
-
* @fileoverview added by tsickle
|
|
258
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
259
|
-
*/
|
|
260
371
|
var NgxsTestModule = /** @class */ (function () {
|
|
261
372
|
function NgxsTestModule() {
|
|
262
373
|
}
|
|
263
|
-
|
|
264
|
-
* @param {?} app
|
|
265
|
-
* @return {?}
|
|
266
|
-
*/
|
|
267
|
-
NgxsTestModule.ngDoBootstrap = /**
|
|
268
|
-
* @param {?} app
|
|
269
|
-
* @return {?}
|
|
270
|
-
*/
|
|
271
|
-
function (app) {
|
|
374
|
+
NgxsTestModule.ngDoBootstrap = function (app) {
|
|
272
375
|
app.bootstrap(NgxsTestComponent);
|
|
273
376
|
};
|
|
274
|
-
NgxsTestModule
|
|
275
|
-
|
|
377
|
+
return NgxsTestModule;
|
|
378
|
+
}());
|
|
379
|
+
/** @nocollapse */ NgxsTestModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NgxsTestModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
380
|
+
/** @nocollapse */ NgxsTestModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NgxsTestModule, declarations: [NgxsTestComponent], imports: [platformBrowser.BrowserModule] });
|
|
381
|
+
/** @nocollapse */ NgxsTestModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NgxsTestModule, imports: [[platformBrowser.BrowserModule]] });
|
|
382
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NgxsTestModule, decorators: [{
|
|
383
|
+
type: i0.NgModule,
|
|
384
|
+
args: [{
|
|
276
385
|
imports: [platformBrowser.BrowserModule],
|
|
277
386
|
declarations: [NgxsTestComponent],
|
|
278
387
|
entryComponents: [NgxsTestComponent]
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
return NgxsTestModule;
|
|
282
|
-
}());
|
|
388
|
+
}]
|
|
389
|
+
}] });
|
|
283
390
|
|
|
284
|
-
/**
|
|
285
|
-
* @fileoverview added by tsickle
|
|
286
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
287
|
-
*/
|
|
288
391
|
var NgxsTestBed = /** @class */ (function () {
|
|
289
392
|
function NgxsTestBed() {
|
|
290
393
|
}
|
|
291
|
-
|
|
292
|
-
* @param {?} options
|
|
293
|
-
* @return {?}
|
|
294
|
-
*/
|
|
295
|
-
NgxsTestBed.configureTestingStates = /**
|
|
296
|
-
* @param {?} options
|
|
297
|
-
* @return {?}
|
|
298
|
-
*/
|
|
299
|
-
function (options) {
|
|
394
|
+
NgxsTestBed.configureTestingStates = function (options) {
|
|
300
395
|
this.resetTestBed();
|
|
301
396
|
if (options.before) {
|
|
302
397
|
options.before();
|
|
303
398
|
}
|
|
304
399
|
testing.TestBed.configureTestingModule({
|
|
305
|
-
imports:
|
|
400
|
+
imports: __spreadArray([
|
|
306
401
|
NgxsTestModule,
|
|
307
402
|
store.NgxsModule.forRoot(options.states || [], options.ngxsOptions || {})
|
|
308
|
-
], (options.imports || []))
|
|
403
|
+
], __read((options.imports || [])))
|
|
309
404
|
}).compileComponents();
|
|
310
405
|
NgxsTestBed.ngxsBootstrap();
|
|
311
406
|
return {
|
|
312
|
-
/**
|
|
313
|
-
* @return {?}
|
|
314
|
-
*/
|
|
315
407
|
get store() {
|
|
316
408
|
return testing.TestBed.inject(store.Store);
|
|
317
409
|
},
|
|
318
|
-
/**
|
|
319
|
-
* @return {?}
|
|
320
|
-
*/
|
|
321
410
|
get getTestBed() {
|
|
322
411
|
return testing.TestBed;
|
|
323
412
|
}
|
|
324
413
|
};
|
|
325
414
|
};
|
|
326
|
-
|
|
327
|
-
* @private
|
|
328
|
-
* @return {?}
|
|
329
|
-
*/
|
|
330
|
-
NgxsTestBed.ngxsBootstrap = /**
|
|
331
|
-
* @private
|
|
332
|
-
* @return {?}
|
|
333
|
-
*/
|
|
334
|
-
function () {
|
|
415
|
+
NgxsTestBed.ngxsBootstrap = function () {
|
|
335
416
|
NgxsTestBed.createRootNode();
|
|
336
|
-
NgxsTestModule.ngDoBootstrap(testing.TestBed.inject(
|
|
417
|
+
NgxsTestModule.ngDoBootstrap(testing.TestBed.inject(i0.ApplicationRef));
|
|
337
418
|
};
|
|
338
|
-
|
|
339
|
-
* @private
|
|
340
|
-
* @return {?}
|
|
341
|
-
*/
|
|
342
|
-
NgxsTestBed.resetTestBed = /**
|
|
343
|
-
* @private
|
|
344
|
-
* @return {?}
|
|
345
|
-
*/
|
|
346
|
-
function () {
|
|
419
|
+
NgxsTestBed.resetTestBed = function () {
|
|
347
420
|
testing.TestBed.resetTestEnvironment();
|
|
348
421
|
testing.TestBed.initTestEnvironment(testing$1.BrowserDynamicTestingModule, testing$1.platformBrowserDynamicTesting());
|
|
349
422
|
};
|
|
350
|
-
|
|
351
|
-
* @private
|
|
352
|
-
* @param {?=} selector
|
|
353
|
-
* @return {?}
|
|
354
|
-
*/
|
|
355
|
-
NgxsTestBed.createRootNode = /**
|
|
356
|
-
* @private
|
|
357
|
-
* @param {?=} selector
|
|
358
|
-
* @return {?}
|
|
359
|
-
*/
|
|
360
|
-
function (selector) {
|
|
423
|
+
NgxsTestBed.createRootNode = function (selector) {
|
|
361
424
|
if (selector === void 0) { selector = 'app-root'; }
|
|
362
|
-
/** @type {?} */
|
|
363
425
|
var document = testing.TestBed.inject(common.DOCUMENT);
|
|
364
|
-
|
|
365
|
-
var adapter = new platformBrowser.ɵBrowserDomAdapter();
|
|
366
|
-
/** @type {?} */
|
|
426
|
+
var adapter = new platformBrowser["ɵBrowserDomAdapter"]();
|
|
367
427
|
var root = adapter.createElement(selector);
|
|
368
428
|
document.body.appendChild(root);
|
|
369
429
|
};
|
|
370
430
|
return NgxsTestBed;
|
|
371
431
|
}());
|
|
372
432
|
|
|
373
|
-
/**
|
|
374
|
-
* @fileoverview added by tsickle
|
|
375
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
376
|
-
*/
|
|
377
|
-
/**
|
|
378
|
-
* @return {?}
|
|
379
|
-
*/
|
|
380
433
|
function createRootElement() {
|
|
381
|
-
/** @type {?} */
|
|
382
434
|
var document = testing.TestBed.inject(common.DOCUMENT);
|
|
383
|
-
|
|
384
|
-
var root = platformBrowser.ɵgetDOM().createElement('app-root', document);
|
|
435
|
+
var root = platformBrowser["ɵgetDOM"]().createElement('app-root', document);
|
|
385
436
|
document.body.appendChild(root);
|
|
386
437
|
}
|
|
387
|
-
/**
|
|
388
|
-
* @return {?}
|
|
389
|
-
*/
|
|
390
438
|
function removeRootElement() {
|
|
391
|
-
|
|
392
|
-
var root = (/** @type {?} */ (document.getElementsByTagName('app-root').item(0)));
|
|
439
|
+
var root = document.getElementsByTagName('app-root').item(0);
|
|
393
440
|
try {
|
|
394
441
|
document.body.removeChild(root);
|
|
395
442
|
}
|
|
396
443
|
catch (_a) { }
|
|
397
444
|
}
|
|
398
|
-
/**
|
|
399
|
-
* @return {?}
|
|
400
|
-
*/
|
|
401
445
|
function destroyPlatformBeforeBootstrappingTheNewOne() {
|
|
402
|
-
|
|
446
|
+
i0.destroyPlatform();
|
|
403
447
|
createRootElement();
|
|
404
448
|
}
|
|
405
449
|
// As we create our custom platform via `bootstrapModule`
|
|
406
450
|
// we have to destroy it after assetions and revert
|
|
407
451
|
// the previous one
|
|
408
|
-
/**
|
|
409
|
-
* @return {?}
|
|
410
|
-
*/
|
|
411
452
|
function resetPlatformAfterBootstrapping() {
|
|
412
453
|
removeRootElement();
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
var version = +core.VERSION.major;
|
|
454
|
+
i0.destroyPlatform();
|
|
455
|
+
var version = +i0.VERSION.major;
|
|
416
456
|
// https://github.com/angular/angular/commit/e250db4f261741b04ee4cbad4dec41a8908a12aa
|
|
417
457
|
if (version < 14) {
|
|
418
|
-
|
|
458
|
+
i0.createPlatform(testing.TestBed);
|
|
419
459
|
}
|
|
420
460
|
}
|
|
421
|
-
/**
|
|
422
|
-
* @param {?} fn
|
|
423
|
-
* @return {?}
|
|
424
|
-
*/
|
|
425
461
|
function freshPlatform(fn) {
|
|
426
|
-
/** @type {?} */
|
|
427
462
|
var resolve = null;
|
|
428
|
-
/** @type {?} */
|
|
429
463
|
var reject = null;
|
|
430
|
-
/** @type {?} */
|
|
431
464
|
var whenDoneIsCalledPromise = null;
|
|
432
|
-
/** @type {?} */
|
|
433
465
|
var hasDoneArgument = fn.length === 1;
|
|
434
466
|
if (hasDoneArgument) {
|
|
435
|
-
whenDoneIsCalledPromise = new Promise((
|
|
436
|
-
* @param {?} _resolve
|
|
437
|
-
* @param {?} _reject
|
|
438
|
-
* @return {?}
|
|
439
|
-
*/
|
|
440
|
-
function (_resolve, _reject) {
|
|
467
|
+
whenDoneIsCalledPromise = new Promise(function (_resolve, _reject) {
|
|
441
468
|
resolve = _resolve;
|
|
442
469
|
reject = _reject;
|
|
443
|
-
})
|
|
470
|
+
});
|
|
444
471
|
}
|
|
445
|
-
return (
|
|
446
|
-
* @return {?}
|
|
447
|
-
*/
|
|
448
|
-
function testWithAFreshPlatform() {
|
|
472
|
+
return function testWithAFreshPlatform() {
|
|
449
473
|
return __awaiter(this, void 0, void 0, function () {
|
|
450
|
-
return __generator(this, function (
|
|
451
|
-
switch (
|
|
474
|
+
return __generator(this, function (_b) {
|
|
475
|
+
switch (_b.label) {
|
|
452
476
|
case 0:
|
|
453
|
-
|
|
477
|
+
_b.trys.push([0, , 6, 7]);
|
|
454
478
|
destroyPlatformBeforeBootstrappingTheNewOne();
|
|
455
479
|
if (!hasDoneArgument) return [3 /*break*/, 3];
|
|
456
|
-
return [4 /*yield*/, fn((
|
|
457
|
-
* @param {?=} error
|
|
458
|
-
* @return {?}
|
|
459
|
-
*/
|
|
460
|
-
function (error) {
|
|
480
|
+
return [4 /*yield*/, fn(function (error) {
|
|
461
481
|
if (error) {
|
|
462
|
-
|
|
482
|
+
reject(error);
|
|
463
483
|
}
|
|
464
484
|
else {
|
|
465
|
-
|
|
485
|
+
resolve();
|
|
466
486
|
}
|
|
467
|
-
})
|
|
487
|
+
})];
|
|
468
488
|
case 1:
|
|
469
|
-
|
|
470
|
-
return [4 /*yield*/,
|
|
489
|
+
_b.sent();
|
|
490
|
+
return [4 /*yield*/, whenDoneIsCalledPromise];
|
|
471
491
|
case 2:
|
|
472
|
-
|
|
492
|
+
_b.sent();
|
|
473
493
|
return [3 /*break*/, 5];
|
|
474
494
|
case 3: return [4 /*yield*/, fn()];
|
|
475
495
|
case 4:
|
|
476
|
-
|
|
477
|
-
|
|
496
|
+
_b.sent();
|
|
497
|
+
_b.label = 5;
|
|
478
498
|
case 5: return [3 /*break*/, 7];
|
|
479
499
|
case 6:
|
|
480
500
|
resetPlatformAfterBootstrapping();
|
|
@@ -483,61 +503,26 @@
|
|
|
483
503
|
}
|
|
484
504
|
});
|
|
485
505
|
});
|
|
486
|
-
}
|
|
506
|
+
};
|
|
487
507
|
}
|
|
488
508
|
|
|
489
|
-
/**
|
|
490
|
-
* @fileoverview added by tsickle
|
|
491
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
492
|
-
*/
|
|
493
509
|
/// <reference types="jest" />
|
|
494
|
-
/// <reference types="jest" />
|
|
495
|
-
/**
|
|
496
|
-
* @template T
|
|
497
|
-
* @param {?} fn
|
|
498
|
-
* @return {?}
|
|
499
|
-
*/
|
|
500
510
|
function skipConsoleLogging(fn) {
|
|
501
|
-
/** @type {?} */
|
|
502
511
|
var consoleSpies = [
|
|
503
|
-
jest.spyOn(console, 'log').mockImplementation((
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
function () { })
|
|
507
|
-
jest.spyOn(console, 'warn').mockImplementation((/**
|
|
508
|
-
* @return {?}
|
|
509
|
-
*/
|
|
510
|
-
function () { })),
|
|
511
|
-
jest.spyOn(console, 'error').mockImplementation((/**
|
|
512
|
-
* @return {?}
|
|
513
|
-
*/
|
|
514
|
-
function () { })),
|
|
515
|
-
jest.spyOn(console, 'info').mockImplementation((/**
|
|
516
|
-
* @return {?}
|
|
517
|
-
*/
|
|
518
|
-
function () { }))
|
|
512
|
+
jest.spyOn(console, 'log').mockImplementation(function () { }),
|
|
513
|
+
jest.spyOn(console, 'warn').mockImplementation(function () { }),
|
|
514
|
+
jest.spyOn(console, 'error').mockImplementation(function () { }),
|
|
515
|
+
jest.spyOn(console, 'info').mockImplementation(function () { })
|
|
519
516
|
];
|
|
520
|
-
/**
|
|
521
|
-
* @return {?}
|
|
522
|
-
*/
|
|
523
517
|
function restoreSpies() {
|
|
524
|
-
consoleSpies.forEach((
|
|
525
|
-
* @param {?} spy
|
|
526
|
-
* @return {?}
|
|
527
|
-
*/
|
|
528
|
-
function (spy) { return spy.mockRestore(); }));
|
|
518
|
+
consoleSpies.forEach(function (spy) { return spy.mockRestore(); });
|
|
529
519
|
}
|
|
530
|
-
/** @type {?} */
|
|
531
520
|
var restoreSpyAsync = false;
|
|
532
521
|
try {
|
|
533
|
-
/** @type {?} */
|
|
534
522
|
var returnValue = fn();
|
|
535
523
|
if (returnValue instanceof Promise) {
|
|
536
524
|
restoreSpyAsync = true;
|
|
537
|
-
return (
|
|
538
|
-
* @return {?}
|
|
539
|
-
*/
|
|
540
|
-
function () { return restoreSpies(); }))));
|
|
525
|
+
return returnValue.finally(function () { return restoreSpies(); });
|
|
541
526
|
}
|
|
542
527
|
return returnValue;
|
|
543
528
|
}
|
|
@@ -548,6 +533,10 @@
|
|
|
548
533
|
}
|
|
549
534
|
}
|
|
550
535
|
|
|
536
|
+
/**
|
|
537
|
+
* Generated bundle index. Do not edit.
|
|
538
|
+
*/
|
|
539
|
+
|
|
551
540
|
exports.NgxsTestBed = NgxsTestBed;
|
|
552
541
|
exports.freshPlatform = freshPlatform;
|
|
553
542
|
exports.skipConsoleLogging = skipConsoleLogging;
|